Definition. Functor [002v]
- November 29, 2025
Definition. Functor [002v]
- November 29, 2025
1. The data
- November 29, 2025
1. The data
- November 29, 2025
For categories \(C\) and \(D\), a functor \(F : C \to D\) consists of:
- An assignment on objects \[ \text {Ob}(C) \to \text {Ob}(D) \quad X \mapsto F(X) \]
- An assignment on morphisms \[ C(X, Y) \to D(F(X), F(Y)) \quad f \mapsto F(f) \] equivalently we can denote this explicitly as \[ F_{X, Y} : \text {Hom}_C(X, Y) \to \text {Hom}_D(F(X), F(Y)) \]
2. The axioms
- November 29, 2025
2. The axioms
- November 29, 2025
The data must satisfy composition and identity axioms:
- The equality \[ F(g \circ f) = F(g) \circ F(f) \]
- For each object \(X \in \text {Ob}(C)\) the equality \[ F(\text {id}_X) = \text {id}_{F(X)} \in D(F(X), F(X)) \]
3. Commutative diagram
- November 29, 2025
3. Commutative diagram
- November 29, 2025
If we wish to represent the composition axiom diagrammatically we can do so as follows:
4. Lean definition
- November 29, 2025
4. Lean definition
- November 29, 2025
structure Functor
(C : Type u₁) [Category.{v₁} C]
(D : Type u₂) [Category.{v₂} D] :
Type max v₁ v₂ u₁ u₂ where
/-- The action of a functor on objects. -/
obj : C → D
/-- The action of a functor on morphisms. -/
map : ∀ {X Y : C}, (X ⟶ Y) → ((obj X) ⟶ (obj Y))
/-- A functor preserves identity morphisms. -/
map_id : ∀ X : C, map (𝟙 X) = 𝟙 (obj X) := by cat_disch
/-- A functor preserves composition. -/
map_comp : ∀ {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z),
map (f ≫ g) = map f ≫ map g := by cat_disch
/-- Notation for a functor between categories. -/
scoped [CategoryTheory] infixr:26 " ⥤ " => Functor -- type as \func