Open anuyts opened 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
Anyone is very welcome to contribute a suggestion in a PR and we can then discuss it further
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 ?
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:
Functor
for clarity if needed (e.g. I called the Hom functor HomFunctor
),η
and μ
for monadic unit and multiplication.GroupHom
, RingHom
etc outrageous?
- 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.
A few things for which there do not seem to be conventions:
Category
, although all-caps names are also found),