HoTT / Coq-HoTT

A Coq library for Homotopy Type Theory
http://homotopytypetheory.org/
Other
1.26k stars 193 forks source link

How to name functors #1510

Open Alizter opened 3 years ago

Alizter commented 3 years ago

Should we decide on a convention for functors and stick with it? In #1143 we are opting for X_2functor so naturally X_functor would make sense as a name. However, currently there are various things called functor_X.

Changing these to X_functor will have a few advantages:

mikeshulman commented 3 years ago

In equiv_functor_sigma the equiv was originally considered to go with the functor (it is "functoriality on sigmas"), so I'm not sure that splitting them up into equiv_sigma_functor makes sense. But I suppose you could view the latter as "an equivalence built from sigma_functor?

Alizter commented 3 years ago

Yes, when I read equiv_sigma_functor I see an equiv made from sigma_functor.

mikeshulman commented 3 years ago

Sure, I could live with that. But we could also regard "functoriality on equivalences" as another kind of functoriality, and write something like sigma_efunctor.