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.Category.Cat.Limit

19 declarations. Mathlib docs · Source

The category of small categories has all small limits.

An object in the limit consists of a family of objects, which are carried to one another by the functors in the diagram. A morphism between two such objects is a family of morphisms between the corresponding objects, which are carried to one another by the action on morphisms of the functors in the diagram.

TODO

Can the indexing category live in a lower universe?

instance CategoryTheory.Cat.HasLimits.categoryObjects E0 #

{J : Type v} →
  [inst : CategoryTheory.SmallCategory J] →
    {F : CategoryTheory.Functor J CategoryTheory.Cat} →
      {j : J} → CategoryTheory.SmallCategory ((F.comp CategoryTheory.Cat.objects).obj j)

def CategoryTheory.Cat.HasLimits.homDiagram E1 #

{J : Type v} →
  [inst : CategoryTheory.SmallCategory J] →
    {F : CategoryTheory.Functor J CategoryTheory.Cat} →
      CategoryTheory.Limits.limit (F.comp CategoryTheory.Cat.objects) →
        CategoryTheory.Limits.limit (F.comp CategoryTheory.Cat.objects) → CategoryTheory.Functor J (Type v)

Auxiliary definition: the diagram whose limit gives the morphism space between two objects of the limit category.

theorem CategoryTheory.Cat.HasLimits.homDiagram_map E0 #

∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] {F : CategoryTheory.Functor J CategoryTheory.Cat}
  (X Y : CategoryTheory.Limits.limit (F.comp CategoryTheory.Cat.objects)) {X_1 Y_1 : J} (f : X_1 ⟶ Y_1),
  (CategoryTheory.Cat.HasLimits.homDiagram X Y).map f =
    TypeCat.ofHom fun g ↦
      CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
        (CategoryTheory.CategoryStruct.comp ((F.map f).toFunctor.map g) (CategoryTheory.eqToHom ⋯))

theorem CategoryTheory.Cat.HasLimits.homDiagram_obj E0 #

∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] {F : CategoryTheory.Functor J CategoryTheory.Cat}
  (X Y : CategoryTheory.Limits.limit (F.comp CategoryTheory.Cat.objects)) (j : J),
  (CategoryTheory.Cat.HasLimits.homDiagram X Y).obj j =
    ((CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π (F.comp CategoryTheory.Cat.objects) j)) X ⟶
      (CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π (F.comp CategoryTheory.Cat.objects) j)) Y)

theorem CategoryTheory.Cat.HasLimits.id_def E0 #

∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J CategoryTheory.Cat)
  (X : CategoryTheory.Limits.limit (F.comp CategoryTheory.Cat.objects)),
  CategoryTheory.CategoryStruct.id X =
    CategoryTheory.Limits.Types.Limit.mk (CategoryTheory.Cat.HasLimits.homDiagram X X)
      (fun x ↦
        CategoryTheory.CategoryStruct.id
          ((CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π (F.comp CategoryTheory.Cat.objects) x))
            X))
      ⋯

instance CategoryTheory.Cat.HasLimits.instCategoryLimitCompObjects E0 #

{J : Type v} →
  [inst : CategoryTheory.SmallCategory J] →
    (F : CategoryTheory.Functor J CategoryTheory.Cat) →
      CategoryTheory.Category.{v, v} (CategoryTheory.Limits.limit (F.comp CategoryTheory.Cat.objects))

theorem CategoryTheory.Cat.HasLimits.comp_def E0 #

∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J CategoryTheory.Cat)
  {X Y Z : CategoryTheory.Limits.limit (F.comp CategoryTheory.Cat.objects)}
  (f : CategoryTheory.Limits.limit (CategoryTheory.Cat.HasLimits.homDiagram X Y))
  (g : CategoryTheory.Limits.limit (CategoryTheory.Cat.HasLimits.homDiagram Y Z)),
  CategoryTheory.CategoryStruct.comp f g =
    CategoryTheory.Limits.Types.Limit.mk (CategoryTheory.Cat.HasLimits.homDiagram X Z)
      (fun j ↦
        CategoryTheory.CategoryStruct.comp
          ((CategoryTheory.ConcreteCategory.hom
              (CategoryTheory.Limits.limit.π (CategoryTheory.Cat.HasLimits.homDiagram X Y) j))
            f)
          ((CategoryTheory.ConcreteCategory.hom
              (CategoryTheory.Limits.limit.π (CategoryTheory.Cat.HasLimits.homDiagram Y Z) j))
            g))
      ⋯

def CategoryTheory.Cat.HasLimits.limitConeX E1 #

{J : Type v} →
  [inst : CategoryTheory.SmallCategory J] → CategoryTheory.Functor J CategoryTheory.Cat → CategoryTheory.Cat

Auxiliary definition: the limit category.

theorem CategoryTheory.Cat.HasLimits.limitConeX_α E0 #

∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J CategoryTheory.Cat),
  ↑(CategoryTheory.Cat.HasLimits.limitConeX F) = CategoryTheory.Limits.limit (F.comp CategoryTheory.Cat.objects)

theorem CategoryTheory.Cat.HasLimits.limitConeX_str E0 #

∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J CategoryTheory.Cat),
  (CategoryTheory.Cat.HasLimits.limitConeX F).str = inferInstance

def CategoryTheory.Cat.HasLimits.limitCone E1 #

{J : Type v} →
  [inst : CategoryTheory.SmallCategory J] →
    (F : CategoryTheory.Functor J CategoryTheory.Cat) → CategoryTheory.Limits.Cone F

Auxiliary definition: the cone over the limit category.

theorem CategoryTheory.Cat.HasLimits.limitCone_π_app E0 #

∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J CategoryTheory.Cat) (j : J),
  (CategoryTheory.Cat.HasLimits.limitCone F).π.app j =
    {
        obj :=
          ⇑(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π (F.comp CategoryTheory.Cat.objects) j)),
        map := fun {X Y} f ↦
          (CategoryTheory.ConcreteCategory.hom
              (CategoryTheory.Limits.limit.π (CategoryTheory.Cat.HasLimits.homDiagram X Y) j))
            f,
        map_id := ⋯, map_comp := ⋯ }.toCatHom

theorem CategoryTheory.Cat.HasLimits.limitCone_pt E0 #

∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J CategoryTheory.Cat),
  (CategoryTheory.Cat.HasLimits.limitCone F).pt = CategoryTheory.Cat.HasLimits.limitConeX F

def CategoryTheory.Cat.HasLimits.limitConeLift E1 #

{J : Type v} →
  [inst : CategoryTheory.SmallCategory J] →
    (F : CategoryTheory.Functor J CategoryTheory.Cat) →
      (s : CategoryTheory.Limits.Cone F) → s.pt ⟶ CategoryTheory.Cat.HasLimits.limitConeX F

Auxiliary definition: the universal morphism to the proposed limit cone.

theorem CategoryTheory.Cat.HasLimits.limitConeLift_toFunctor E0 #

∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J CategoryTheory.Cat)
  (s : CategoryTheory.Limits.Cone F),
  (CategoryTheory.Cat.HasLimits.limitConeLift F s).toFunctor =
    {
      obj :=
        ⇑(CategoryTheory.ConcreteCategory.hom
            (CategoryTheory.Limits.limit.lift (F.comp CategoryTheory.Cat.objects)
              { pt := ↑s.pt, π := { app := fun j ↦ TypeCat.ofHom (s.π.app j).toFunctor.obj, naturality := ⋯ } })),
      map := fun {X Y} f ↦
        CategoryTheory.Limits.Types.Limit.mk
          (CategoryTheory.Cat.HasLimits.homDiagram
            ((CategoryTheory.ConcreteCategory.hom
                (CategoryTheory.Limits.limit.lift (F.comp CategoryTheory.Cat.objects)
                  { pt := ↑s.pt, π := { app := fun j ↦ TypeCat.ofHom (s.π.app j).toFunctor.obj, naturality := ⋯ } }))
              X)
            ((CategoryTheory.ConcreteCategory.hom
                (CategoryTheory.Limits.limit.lift (F.comp CategoryTheory.Cat.objects)
                  { pt := ↑s.pt, π := { app := fun j ↦ TypeCat.ofHom (s.π.app j).toFunctor.obj, naturality := ⋯ } }))
              Y))
          (fun j ↦
            CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
              (CategoryTheory.CategoryStruct.comp ((s.π.app j).toFunctor.map f) (CategoryTheory.eqToHom ⋯)))
          ⋯,
      map_id := ⋯, map_comp := ⋯ }

theorem CategoryTheory.Cat.HasLimits.limit_π_homDiagram_eqToHom E1 #

∀ {J : Type v} [inst : CategoryTheory.SmallCategory J] {F : CategoryTheory.Functor J CategoryTheory.Cat}
  (X Y : CategoryTheory.Limits.limit (F.comp CategoryTheory.Cat.objects)) (j : J) (h : X = Y),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.limit.π (CategoryTheory.Cat.HasLimits.homDiagram X Y) j))
      (CategoryTheory.eqToHom h) =
    CategoryTheory.eqToHom ⋯

def CategoryTheory.Cat.HasLimits.limitConeIsLimit E1 #

{J : Type v} →
  [inst : CategoryTheory.SmallCategory J] →
    (F : CategoryTheory.Functor J CategoryTheory.Cat) →
      CategoryTheory.Limits.IsLimit (CategoryTheory.Cat.HasLimits.limitCone F)

Auxiliary definition: the proposed cone is a limit cone.

instance CategoryTheory.Cat.instHasLimits E0 #

CategoryTheory.Limits.HasLimits CategoryTheory.Cat

The category of small categories has all small limits.

instance CategoryTheory.Cat.instPreservesLimitsObjects E0 #

CategoryTheory.Limits.PreservesLimits CategoryTheory.Cat.objects