The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V24. Category theory

Mathlib.CategoryTheory.Functor.Functorial

11 declarations. Mathlib docs · Source

def CategoryTheory.Functorial.ctorIdx E1 #

{C : Type u₁} →
  {inst : CategoryTheory.Category.{v₁, u₁} C} →
    {D : Type u₂} → {inst_1 : CategoryTheory.Category.{v₂, u₂} D} → {F : C → D} → CategoryTheory.Functorial F → ℕ

class CategoryTheory.Functorial E1 #

{C : Type u₁} →
  [CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} → [CategoryTheory.Category.{v₂, u₂} D] → (C → D) → Type (max v₁ v₂ u₁ u₂)

An unbundled functor.

ctor CategoryTheory.Functorial.mk E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : C → D} →
          (map : {X Y : C} → (X ⟶ Y) → (F X ⟶ F Y)) →
            autoParam (∀ {X : C}, map (CategoryTheory.CategoryStruct.id X) = CategoryTheory.CategoryStruct.id (F X))
                CategoryTheory.Functorial.map_id._autoParam →
              autoParam
                  (∀ {X Y Z : C} {f : X ⟶ Y} {g : Y ⟶ Z},
                    map (CategoryTheory.CategoryStruct.comp f g) = CategoryTheory.CategoryStruct.comp (map f) (map g))
                  CategoryTheory.Functorial.map_comp._autoParam →
                CategoryTheory.Functorial F

abbrev CategoryTheory.Functorial.map E1 #

{C : Type u₁} →
  {inst : CategoryTheory.Category.{v₁, u₁} C} →
    {D : Type u₂} →
      {inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
        (F : C → D) → [self : CategoryTheory.Functorial F] → {X Y : C} → (X ⟶ Y) → (F X ⟶ F Y)

If F : C → D (just a function) has [Functorial F], we can write map F f : F X ⟶ F Y for the action of F on a morphism f : X ⟶ Y.

theorem CategoryTheory.Functorial.map_id E0 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {F : C → D} [self : CategoryTheory.Functorial F] {X : C},
  CategoryTheory.map F (CategoryTheory.CategoryStruct.id X) = CategoryTheory.CategoryStruct.id (F X)

A functorial map preserves identities.

theorem CategoryTheory.Functorial.map_comp E0 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {F : C → D} [self : CategoryTheory.Functorial F] {X Y Z : C} {f : X ⟶ Y} {g : Y ⟶ Z},
  CategoryTheory.map F (CategoryTheory.CategoryStruct.comp f g) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.map F f) (CategoryTheory.map F g)

A functorial map preserves composition of morphisms.

def CategoryTheory.Functor.of E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (F : C → D) → [I : CategoryTheory.Functorial F] → CategoryTheory.Functor C D

Bundle a functorial function as a functor.

instance CategoryTheory.instFunctorialObj E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] → (F : CategoryTheory.Functor C D) → CategoryTheory.Functorial F.obj

theorem CategoryTheory.map_functorial_obj E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (F : CategoryTheory.Functor C D) {X Y : C} (f : X ⟶ Y), CategoryTheory.map F.obj f = F.map f

instance CategoryTheory.functorial_id E0 #

{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Functorial id

def CategoryTheory.functorial_comp E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {E : Type u₃} →
          [inst_2 : CategoryTheory.Category.{v₃, u₃} E] →
            (F : C → D) →
              [CategoryTheory.Functorial F] →
                (G : D → E) → [CategoryTheory.Functorial G] → CategoryTheory.Functorial (G ∘ F)

G ∘ F is a functorial if both F and G are.