agda-stdlib icon indicating copy to clipboard operation
agda-stdlib copied to clipboard

Add unique morphisms from/to `Initial` and `Terminal` algebras

Open jamesmckinna opened this issue 1 year ago • 4 comments

Following up on #1906 , but with different location for the constructions.

  • [x] Monoid
  • [x] Group
  • [x] NearSemiring
  • [x] Semiring
  • [x] Ring

PR does not introduce Algebra.Morphism.Construct.Zero, by contrast with Algebra.Construct.Zero, because the initial/terminal morphisms are different, even while the zero objects are identical...

jamesmckinna avatar Feb 14 '24 20:02 jamesmckinna

I think I liked OneMorphism and ZeroMorphism (without the cuteness) more than The. In some ways, if these files are meant to be used qualified, then just Morphism might work, so that they would be Terminal.Morphism and Initial.Morphism.

JacquesCarette avatar Feb 16 '24 16:02 JacquesCarette

I think I liked OneMorphism and ZeroMorphism (without the cuteness) more than The. In some ways, if these files are meant to be used qualified, then just Morphism might work, so that they would be Terminal.Morphism and Initial.Morphism.

I don't want to make this a hill on which either of us die defending... I'd be happy/ier with plain Morphism than One or Zero (I agree with removing the cuteness), but I liked the rhetorical force (not: cuteness!) of the The (Unique... would also work?).

jamesmckinna avatar Feb 19 '24 08:02 jamesmckinna

Unique has a certain charm to it, I agree.

JacquesCarette avatar Feb 19 '24 13:02 JacquesCarette

Happy to merge, and will try to abstain in future from my inclination towards boilerplate/bureaucracy...

jamesmckinna avatar Feb 26 '24 09:02 jamesmckinna