The category of functors and natural transformations between two fixed categories. #
We provide the category instance on C ⥤ D
, with morphisms the natural transformations.
At the end of the file, we provide the left and right unitors, and the associator, for functor composition. (In fact functor composition is definitionally associative, but very often relying on this causes extremely slow elaboration, so it is better to insert it explicitly.)
Universes #
If C
and D
are both small categories at the same universe level,
this is another small category at that level.
However if C
and D
are both large categories at the same universe level,
this is a small category at the next higher level.
Functor.category C D
gives the category structure on functors and natural transformations
between categories C
and D
.
Notice that if C
and D
are both small categories at the same universe level,
this is another small category at that level.
However if C
and D
are both large categories at the same universe level,
this is a small category at the next higher level.
Equations
- One or more equations did not get rendered due to their size.
A natural transformation is a monomorphism if each component is.
A natural transformation is an epimorphism if each component is.
The monoid of natural transformations of the identity is commutative.
hcomp α β
is the horizontal composition of natural transformations.
Equations
Instances For
Notation for horizontal composition of natural transformations.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Flip the arguments of a bifunctor. See also Currying.lean
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The left unitor, a natural isomorphism ((𝟭 _) ⋙ F) ≅ F
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The right unitor, a natural isomorphism (F ⋙ (𝟭 B)) ≅ F
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The associator for functors, a natural isomorphism ((F ⋙ G) ⋙ H) ≅ (F ⋙ (G ⋙ H))
.
(In fact, iso.refl _
will work here, but it tends to make Lean slow later,
and it's usually best to insert explicit associators.)
Equations
- One or more equations did not get rendered due to their size.
Instances For
The functor (C ⥤ D ⥤ E) ⥤ D ⥤ C ⥤ E
which flips the variables.
Equations
- One or more equations did not get rendered due to their size.