agda / cubical

An experimental library for Cubical Agda
https://agda.github.io/cubical/Cubical.README.html
Other
449 stars 138 forks source link

Naming conventions for category theory #803

Open anuyts opened 2 years ago

anuyts commented 2 years ago

A few things for which there do not seem to be conventions:

mortberg commented 2 years ago

Yes, we should have naming conventions for CategoryTheory similar to those we recently added for Algebra:

https://github.com/agda/cubical/blob/master/Cubical/Algebra/NAMING.md

mortberg commented 2 years ago

Anyone is very welcome to contribute a suggestion in a PR and we can then discuss it further

thomas-lamiaux commented 2 years ago

We were just talking about it. We have decided convention for Algebra and for some stuff in the general library but not for Category. The entire folder should also be cleaned. For instance there is a folder Functor and one called Functors. I think that @mzeuner have some comment about that ?

anuyts commented 2 years ago

We can discuss here, would a pull-request facilitate discussion?

I guess it would be in line with the rule

An instance of an algebraic structure should include the name of the structure. For example UnitGroup and ℤGroup.

to have functors end in Functor, natural transformations in NatTrans and algebra homomorphisms ending in Hom, e.g. group homomorphisms in GroupHom. On the other hand, this leads to very long names. I think the following exceptions are worthwhile:

felixwellen commented 2 years ago
  • I haven't been working with the algebra libraries much. Is adding GroupHom, RingHom etc outrageous?

No - that is actually how types of Homs are named right now. So I would like it, when they are named the same in the Category-part of the library.