Functors #
Defines a functor between categories, extending a Prefunctor
between quivers.
Introduces, in the CategoryTheory
scope, notations C ⥤ D
for the type of all functors
from C
to D
, 𝟭
for the identity functor and ⋙
for functor composition.
TODO: Switch to using the ⇒
arrow.
Functor C D
represents a functor between categories C
and D
.
To apply a functor F
to an object use F.obj X
, and to a morphism use F.map f
.
The axiom map_id
expresses preservation of identities, and
map_comp
expresses functoriality.
- obj : C → D
The action of a functor on objects.
The action of a functor on morphisms.
A functor preserves identity morphisms.
- map_comp {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z) : self.map (CategoryStruct.comp f g) = CategoryStruct.comp (self.map f) (self.map g)
A functor preserves composition.
Instances For
Notation for a functor between categories.
Equations
Instances For
𝟭 C
is the identity functor on a category C
.
Equations
Instances For
Notation for the identity functor on a category.
Equations
Instances For
Equations
The prefunctor between the underlying quivers.
Equations
Instances For
F ⋙ G
is the composition of a functor F
and a functor G
(F
first, then G
).
Equations
Instances For
Notation for composition of functors.