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.Limits.Shapes.Equalizers

281 declarations and 3 deprecated aliases. Mathlib docs · Source

Equalizers and coequalizers

This file defines (co)equalizers as special cases of (co)limits.

An equalizer is the categorical generalization of the subobject ${a ∈ A | f(a) = g(a)}$ known from abelian groups or modules. It is a limit cone over the diagram formed by f and g.

A coequalizer is the dual concept.

Main definitions

  • WalkingParallelPair is the indexing category used for (co)equalizer diagrams
  • parallelPair is a functor from WalkingParallelPair to our category C.
  • a fork is a cone over a parallel pair.
    • there is really only one interesting morphism in a fork: the arrow from the vertex of the fork to the domain of f and g. It is called fork.ι.
  • an equalizer is now just a limit (parallelPair f g)

Each of these has a dual.

Main statements

  • equalizer.ι_mono states that every equalizer map is a monomorphism
  • isIso_limit_cone_parallelPair_of_self states that the identity on the domain of f is an equalizer of f and f.

Implementation notes

As with the other special shapes in the limits library, all the definitions here are given as abbrevs of the general statements for limits, so all the simp lemmas and theorems about general limits can be used.

References

  • [F. Borceux, Handbook of Categorical Algebra 1][borceux-vol1]

abbrev CategoryTheory.Limits.WalkingParallelPair.ofNat E1 #

ℕ → CategoryTheory.Limits.WalkingParallelPair

theorem CategoryTheory.Limits.WalkingParallelPair.ofNat_ctorIdx E1 #

∀ (x : CategoryTheory.Limits.WalkingParallelPair), CategoryTheory.Limits.WalkingParallelPair.ofNat x.ctorIdx = x

def CategoryTheory.Limits.WalkingParallelPairHom.ctorIdx E1 #

{a a_1 : CategoryTheory.Limits.WalkingParallelPair} → CategoryTheory.Limits.WalkingParallelPairHom a a_1 → ℕ

theorem CategoryTheory.Limits.Cofork.IsColimit.desc.congr_simp E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {s : CategoryTheory.Limits.Cofork f g}
  (hs hs_1 : CategoryTheory.Limits.IsColimit s),
  hs = hs_1 →
    ∀ {W : C} (k k_1 : X ⟶ W) (e_k : k = k_1)
      (h : CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k),
      CategoryTheory.Limits.Cofork.IsColimit.desc hs k h = CategoryTheory.Limits.Cofork.IsColimit.desc hs_1 k_1 ⋯

def CategoryTheory.Limits.WalkingParallelPair.ctorIdx E1 #

CategoryTheory.Limits.WalkingParallelPair → ℕ

theorem CategoryTheory.Limits.Cofork.mkHom.congr_simp E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  {s t : CategoryTheory.Limits.Cofork f g} (k k_1 : t.pt ⟶ s.pt) (e_k : k = k_1)
  (w : CategoryTheory.CategoryStruct.comp t.π k = s.π),
  CategoryTheory.Limits.Cofork.mkHom k w = CategoryTheory.Limits.Cofork.mkHom k_1 ⋯

def CategoryTheory.Limits.instInhabitedWalkingParallelPair.default E1 #

CategoryTheory.Limits.WalkingParallelPair

abbrev CategoryTheory.Limits.WalkingParallelPairHom.ctorElimType E1 #

{motive :
    (a a_1 : CategoryTheory.Limits.WalkingParallelPair) → CategoryTheory.Limits.WalkingParallelPairHom a a_1 → Sort u} →
  ℕ → Sort (max 1 u)

abbrev CategoryTheory.Limits.WalkingParallelPair.ctorElimType E1 #

{motive : CategoryTheory.Limits.WalkingParallelPair → Sort u} → ℕ → Sort (max 1 u)

theorem CategoryTheory.Limits.coequalizer.desc.congr_simp E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] {W : C} (k k_1 : X ⟶ W) (e_k : k = k_1)
  (h : CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k),
  CategoryTheory.Limits.coequalizer.desc k h = CategoryTheory.Limits.coequalizer.desc k_1 ⋯

theorem CategoryTheory.Limits.equalizer.lift.congr_simp E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g] {W : C} (k k_1 : W ⟶ X) (e_k : k = k_1)
  (h : CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g),
  CategoryTheory.Limits.equalizer.lift k h = CategoryTheory.Limits.equalizer.lift k_1 ⋯

theorem CategoryTheory.Limits.Fork.IsLimit.lift.congr_simp E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s : CategoryTheory.Limits.Fork f g}
  (hs hs_1 : CategoryTheory.Limits.IsLimit s),
  hs = hs_1 →
    ∀ {W : C} (k k_1 : W ⟶ X) (e_k : k = k_1)
      (h : CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g),
      CategoryTheory.Limits.Fork.IsLimit.lift hs k h = CategoryTheory.Limits.Fork.IsLimit.lift hs_1 k_1 ⋯

theorem CategoryTheory.Limits.Fork.mkHom.congr_simp E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s t : CategoryTheory.Limits.Fork f g}
  (k k_1 : s.pt ⟶ t.pt) (e_k : k = k_1) (w : CategoryTheory.CategoryStruct.comp k t.ι = s.ι),
  CategoryTheory.Limits.Fork.mkHom k w = CategoryTheory.Limits.Fork.mkHom k_1 ⋯

inductive CategoryTheory.Limits.WalkingParallelPair E3 #

Type

The type of objects for the diagram indexing a (co)equalizer.

ctor CategoryTheory.Limits.WalkingParallelPair.zero E0 #

CategoryTheory.Limits.WalkingParallelPair

ctor CategoryTheory.Limits.WalkingParallelPair.one E0 #

CategoryTheory.Limits.WalkingParallelPair

instance CategoryTheory.Limits.instDecidableEqWalkingParallelPair E0 #

DecidableEq CategoryTheory.Limits.WalkingParallelPair

instance CategoryTheory.Limits.instInhabitedWalkingParallelPair E0 #

Inhabited CategoryTheory.Limits.WalkingParallelPair

inductive CategoryTheory.Limits.WalkingParallelPairHom E1 #

CategoryTheory.Limits.WalkingParallelPair → CategoryTheory.Limits.WalkingParallelPair → Type

The type family of morphisms for the diagram indexing a (co)equalizer.

ctor CategoryTheory.Limits.WalkingParallelPairHom.left E0 #

CategoryTheory.Limits.WalkingParallelPairHom CategoryTheory.Limits.WalkingParallelPair.zero
  CategoryTheory.Limits.WalkingParallelPair.one

ctor CategoryTheory.Limits.WalkingParallelPairHom.right E0 #

CategoryTheory.Limits.WalkingParallelPairHom CategoryTheory.Limits.WalkingParallelPair.zero
  CategoryTheory.Limits.WalkingParallelPair.one

ctor CategoryTheory.Limits.WalkingParallelPairHom.id E0 #

(X : CategoryTheory.Limits.WalkingParallelPair) → CategoryTheory.Limits.WalkingParallelPairHom X X

def CategoryTheory.Limits.instDecidableEqWalkingParallelPairHom.decEq E1 #

{a a_1 : CategoryTheory.Limits.WalkingParallelPair} →
  (x x_1 : CategoryTheory.Limits.WalkingParallelPairHom a a_1) → Decidable (x = x_1)

instance CategoryTheory.Limits.instDecidableEqWalkingParallelPairHom E0 #

{a a_1 : CategoryTheory.Limits.WalkingParallelPair} → DecidableEq (CategoryTheory.Limits.WalkingParallelPairHom a a_1)

instance CategoryTheory.Limits.instInhabitedWalkingParallelPairHomZeroOne E0 #

Inhabited
  (CategoryTheory.Limits.WalkingParallelPairHom CategoryTheory.Limits.WalkingParallelPair.zero
    CategoryTheory.Limits.WalkingParallelPair.one)

Satisfying the inhabited linter

def CategoryTheory.Limits.WalkingParallelPairHom.comp E1 #

{X Y Z : CategoryTheory.Limits.WalkingParallelPair} →
  CategoryTheory.Limits.WalkingParallelPairHom X Y →
    CategoryTheory.Limits.WalkingParallelPairHom Y Z → CategoryTheory.Limits.WalkingParallelPairHom X Z

Composition of morphisms in the indexing diagram for (co)equalizers.

theorem CategoryTheory.Limits.WalkingParallelPairHom.id_comp E1 #

∀ {X Y : CategoryTheory.Limits.WalkingParallelPair} (f : CategoryTheory.Limits.WalkingParallelPairHom Y X),
  (CategoryTheory.Limits.WalkingParallelPairHom.id Y).comp f = f

theorem CategoryTheory.Limits.WalkingParallelPairHom.comp_id E1 #

∀ {X Y : CategoryTheory.Limits.WalkingParallelPair} (f : CategoryTheory.Limits.WalkingParallelPairHom X Y),
  f.comp (CategoryTheory.Limits.WalkingParallelPairHom.id Y) = f

theorem CategoryTheory.Limits.WalkingParallelPairHom.assoc E1 #

∀ {X Y Z W : CategoryTheory.Limits.WalkingParallelPair} (f : CategoryTheory.Limits.WalkingParallelPairHom X Y)
  (g : CategoryTheory.Limits.WalkingParallelPairHom Y Z) (h : CategoryTheory.Limits.WalkingParallelPairHom Z W),
  (f.comp g).comp h = f.comp (g.comp h)

instance CategoryTheory.Limits.walkingParallelPairHomCategory E0 #

CategoryTheory.SmallCategory CategoryTheory.Limits.WalkingParallelPair

theorem CategoryTheory.Limits.walkingParallelPairHom_id E0 #

∀ (X : CategoryTheory.Limits.WalkingParallelPair),
  CategoryTheory.Limits.WalkingParallelPairHom.id X = CategoryTheory.CategoryStruct.id X

def CategoryTheory.Limits.walkingParallelPairOp E1 #

CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair CategoryTheory.Limits.WalkingParallelPairᵒᵖ

The functor WalkingParallelPair ⥤ WalkingParallelPairᵒᵖ sending left to left and right to right.

theorem CategoryTheory.Limits.walkingParallelPairOp_zero E0 #

CategoryTheory.Limits.walkingParallelPairOp.obj CategoryTheory.Limits.WalkingParallelPair.zero =
  Opposite.op CategoryTheory.Limits.WalkingParallelPair.one

theorem CategoryTheory.Limits.walkingParallelPairOp_one E0 #

CategoryTheory.Limits.walkingParallelPairOp.obj CategoryTheory.Limits.WalkingParallelPair.one =
  Opposite.op CategoryTheory.Limits.WalkingParallelPair.zero

theorem CategoryTheory.Limits.walkingParallelPairOp_left E0 #

CategoryTheory.Limits.walkingParallelPairOp.map CategoryTheory.Limits.WalkingParallelPairHom.left =
  Quiver.Hom.op CategoryTheory.Limits.WalkingParallelPairHom.left

theorem CategoryTheory.Limits.walkingParallelPairOp_right E0 #

CategoryTheory.Limits.walkingParallelPairOp.map CategoryTheory.Limits.WalkingParallelPairHom.right =
  Quiver.Hom.op CategoryTheory.Limits.WalkingParallelPairHom.right

def CategoryTheory.Limits.walkingParallelPairOpEquiv E1 #

CategoryTheory.Limits.WalkingParallelPair ≌ CategoryTheory.Limits.WalkingParallelPairᵒᵖ

The equivalence WalkingParallelPair ⥤ WalkingParallelPairᵒᵖ sending left to left and right to right.

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_functor E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.functor = CategoryTheory.Limits.walkingParallelPairOp

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_inverse E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.inverse = CategoryTheory.Limits.walkingParallelPairOp.leftOp

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_unitIso_one E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.unitIso.app CategoryTheory.Limits.WalkingParallelPair.one =
  CategoryTheory.Iso.refl CategoryTheory.Limits.WalkingParallelPair.one

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_unitIso_zero E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.unitIso.app CategoryTheory.Limits.WalkingParallelPair.zero =
  CategoryTheory.Iso.refl CategoryTheory.Limits.WalkingParallelPair.zero

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_counitIso_zero E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.counitIso.app
    (Opposite.op CategoryTheory.Limits.WalkingParallelPair.zero) =
  CategoryTheory.Iso.refl (Opposite.op CategoryTheory.Limits.WalkingParallelPair.zero)

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_counitIso_one E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.counitIso.app
    (Opposite.op CategoryTheory.Limits.WalkingParallelPair.one) =
  CategoryTheory.Iso.refl (Opposite.op CategoryTheory.Limits.WalkingParallelPair.one)

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_unitIso_hom_app_zero E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.unitIso.hom.app CategoryTheory.Limits.WalkingParallelPair.zero =
  CategoryTheory.CategoryStruct.id CategoryTheory.Limits.WalkingParallelPair.zero

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_unitIso_inv_app_one E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.unitIso.inv.app CategoryTheory.Limits.WalkingParallelPair.one =
  CategoryTheory.CategoryStruct.id CategoryTheory.Limits.WalkingParallelPair.one

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_unitIso_inv_app_zero E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.unitIso.inv.app CategoryTheory.Limits.WalkingParallelPair.zero =
  CategoryTheory.CategoryStruct.id CategoryTheory.Limits.WalkingParallelPair.zero

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_unitIso_hom_app_one E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.unitIso.hom.app CategoryTheory.Limits.WalkingParallelPair.one =
  CategoryTheory.CategoryStruct.id CategoryTheory.Limits.WalkingParallelPair.one

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_counitIso_inv_app_op_one E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.counitIso.inv.app
    (Opposite.op CategoryTheory.Limits.WalkingParallelPair.one) =
  CategoryTheory.CategoryStruct.id (Opposite.op CategoryTheory.Limits.WalkingParallelPair.one)

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_counitIso_hom_app_op_zero E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.counitIso.hom.app
    (Opposite.op CategoryTheory.Limits.WalkingParallelPair.zero) =
  CategoryTheory.CategoryStruct.id (Opposite.op CategoryTheory.Limits.WalkingParallelPair.zero)

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_counitIso_hom_app_op_one E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.counitIso.hom.app
    (Opposite.op CategoryTheory.Limits.WalkingParallelPair.one) =
  CategoryTheory.CategoryStruct.id (Opposite.op CategoryTheory.Limits.WalkingParallelPair.one)

theorem CategoryTheory.Limits.walkingParallelPairOpEquiv_counitIso_inv_app_op_zero E0 #

CategoryTheory.Limits.walkingParallelPairOpEquiv.counitIso.inv.app
    (Opposite.op CategoryTheory.Limits.WalkingParallelPair.zero) =
  CategoryTheory.CategoryStruct.id (Opposite.op CategoryTheory.Limits.WalkingParallelPair.zero)

def CategoryTheory.Limits.parallelPair.parallelPairObj E1 #

{C : Type u} → C → C → CategoryTheory.Limits.WalkingParallelPair → C

Implementation of parallelPair, do not use directly.

theorem CategoryTheory.Limits.parallelPair.parallelPairObj_zero E0 #

∀ {C : Type u} {X Y : C},
  CategoryTheory.Limits.parallelPair.parallelPairObj X Y CategoryTheory.Limits.WalkingParallelPair.zero = X

theorem CategoryTheory.Limits.parallelPair.parallelPairObj_one E0 #

∀ {C : Type u} {X Y : C},
  CategoryTheory.Limits.parallelPair.parallelPairObj X Y CategoryTheory.Limits.WalkingParallelPair.one = Y

def CategoryTheory.Limits.parallelPair.parallelPairHom E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (X ⟶ Y) →
        (X ⟶ Y) →
          {x y : CategoryTheory.Limits.WalkingParallelPair} →
            (x ⟶ y) →
              (CategoryTheory.Limits.parallelPair.parallelPairObj X Y x ⟶
                CategoryTheory.Limits.parallelPair.parallelPairObj X Y y)

Implementation of parallelPair, do not use directly.

theorem CategoryTheory.Limits.parallelPair.parallelPairHom_id E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  {x : CategoryTheory.Limits.WalkingParallelPair},
  CategoryTheory.Limits.parallelPair.parallelPairHom f g (CategoryTheory.CategoryStruct.id x) =
    CategoryTheory.CategoryStruct.id (CategoryTheory.Limits.parallelPair.parallelPairObj X Y x)

theorem CategoryTheory.Limits.parallelPair.parallelPairHom_left E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y},
  CategoryTheory.Limits.parallelPair.parallelPairHom f g CategoryTheory.Limits.WalkingParallelPairHom.left = f

theorem CategoryTheory.Limits.parallelPair.parallelPairHom_right E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y},
  CategoryTheory.Limits.parallelPair.parallelPairHom f g CategoryTheory.Limits.WalkingParallelPairHom.right = g

def CategoryTheory.Limits.parallelPair E3 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (X ⟶ Y) → (X ⟶ Y) → CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C

parallelPair f g is the diagram in C consisting of the two morphisms f and g with common domain and codomain.

theorem CategoryTheory.Limits.parallelPair_obj_one E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : Y ⟶ X),
  (CategoryTheory.Limits.parallelPair f g).obj CategoryTheory.Limits.WalkingParallelPair.one = X

theorem CategoryTheory.Limits.parallelPair_obj_zero E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y),
  (CategoryTheory.Limits.parallelPair f g).obj CategoryTheory.Limits.WalkingParallelPair.zero = X

theorem CategoryTheory.Limits.parallelPair_map_left E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y),
  (CategoryTheory.Limits.parallelPair f g).map CategoryTheory.Limits.WalkingParallelPairHom.left = f

theorem CategoryTheory.Limits.parallelPair_map_right E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y),
  (CategoryTheory.Limits.parallelPair f g).map CategoryTheory.Limits.WalkingParallelPairHom.right = g

theorem CategoryTheory.Limits.parallelPair_functor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  {F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C}
  (j : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.parallelPair (F.map CategoryTheory.Limits.WalkingParallelPairHom.left)
          (F.map CategoryTheory.Limits.WalkingParallelPairHom.right)).obj
      j =
    F.obj j

def CategoryTheory.Limits.diagramIsoParallelPair E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C) →
      F ≅
        CategoryTheory.Limits.parallelPair (F.map CategoryTheory.Limits.WalkingParallelPairHom.left)
          (F.map CategoryTheory.Limits.WalkingParallelPairHom.right)

Every functor indexing a (co)equalizer is naturally isomorphic (actually, equal) to a parallelPair

theorem CategoryTheory.Limits.diagramIsoParallelPair_hom_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  (F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C)
  (X : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.diagramIsoParallelPair F).hom.app X = CategoryTheory.eqToHom ⋯

theorem CategoryTheory.Limits.diagramIsoParallelPair_inv_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  (F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C)
  (X : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.diagramIsoParallelPair F).inv.app X = CategoryTheory.eqToHom ⋯

def CategoryTheory.Limits.parallelPairHomMk E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F G : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C} →
      (p :
          F.obj CategoryTheory.Limits.WalkingParallelPair.zero ⟶ G.obj CategoryTheory.Limits.WalkingParallelPair.zero) →
        (q :
            F.obj CategoryTheory.Limits.WalkingParallelPair.one ⟶ G.obj CategoryTheory.Limits.WalkingParallelPair.one) →
          autoParam
              (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.left) q =
                CategoryTheory.CategoryStruct.comp p (G.map CategoryTheory.Limits.WalkingParallelPairHom.left))
              CategoryTheory.Limits.parallelPairHomMk._auto_1 →
            autoParam
                (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.right) q =
                  CategoryTheory.CategoryStruct.comp p (G.map CategoryTheory.Limits.WalkingParallelPairHom.right))
                CategoryTheory.Limits.parallelPairHomMk._auto_3 →
              (F ⟶ G)

Constructor for natural transformations between parallel pairs.

theorem CategoryTheory.Limits.parallelPairHomMk_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  {F G : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C}
  (p : F.obj CategoryTheory.Limits.WalkingParallelPair.zero ⟶ G.obj CategoryTheory.Limits.WalkingParallelPair.zero)
  (q : F.obj CategoryTheory.Limits.WalkingParallelPair.one ⟶ G.obj CategoryTheory.Limits.WalkingParallelPair.one)
  (hl :
    autoParam
      (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.left) q =
        CategoryTheory.CategoryStruct.comp p (G.map CategoryTheory.Limits.WalkingParallelPairHom.left))
      CategoryTheory.Limits.parallelPairHomMk._auto_1)
  (hr :
    autoParam
      (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.right) q =
        CategoryTheory.CategoryStruct.comp p (G.map CategoryTheory.Limits.WalkingParallelPairHom.right))
      CategoryTheory.Limits.parallelPairHomMk._auto_3)
  (X : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.parallelPairHomMk p q hl hr).app X = CategoryTheory.Limits.WalkingParallelPair.casesOn X p q

def CategoryTheory.Limits.parallelPairIsoMk E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F G : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C} →
      (p :
          F.obj CategoryTheory.Limits.WalkingParallelPair.zero ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.zero) →
        (q :
            F.obj CategoryTheory.Limits.WalkingParallelPair.one ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.one) →
          autoParam
              (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.left) q.hom =
                CategoryTheory.CategoryStruct.comp p.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.left))
              CategoryTheory.Limits.parallelPairIsoMk._auto_1 →
            autoParam
                (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.right) q.hom =
                  CategoryTheory.CategoryStruct.comp p.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.right))
                CategoryTheory.Limits.parallelPairIsoMk._auto_3 →
              (F ≅ G)

Constructor for natural isomorphisms between parallel pairs.

theorem CategoryTheory.Limits.parallelPairIsoMk_inv_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  {F G : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C}
  (p : F.obj CategoryTheory.Limits.WalkingParallelPair.zero ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.zero)
  (q : F.obj CategoryTheory.Limits.WalkingParallelPair.one ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.one)
  (hl :
    autoParam
      (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.left) q.hom =
        CategoryTheory.CategoryStruct.comp p.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.left))
      CategoryTheory.Limits.parallelPairIsoMk._auto_1)
  (hr :
    autoParam
      (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.right) q.hom =
        CategoryTheory.CategoryStruct.comp p.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.right))
      CategoryTheory.Limits.parallelPairIsoMk._auto_3)
  (X : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.parallelPairIsoMk p q hl hr).inv.app X =
    (CategoryTheory.Limits.WalkingParallelPair.rec p q X).inv

theorem CategoryTheory.Limits.parallelPairIsoMk_hom_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  {F G : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C}
  (p : F.obj CategoryTheory.Limits.WalkingParallelPair.zero ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.zero)
  (q : F.obj CategoryTheory.Limits.WalkingParallelPair.one ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.one)
  (hl :
    autoParam
      (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.left) q.hom =
        CategoryTheory.CategoryStruct.comp p.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.left))
      CategoryTheory.Limits.parallelPairIsoMk._auto_1)
  (hr :
    autoParam
      (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.right) q.hom =
        CategoryTheory.CategoryStruct.comp p.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.right))
      CategoryTheory.Limits.parallelPairIsoMk._auto_3)
  (X : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.parallelPairIsoMk p q hl hr).hom.app X =
    (CategoryTheory.Limits.WalkingParallelPair.rec p q X).hom

def CategoryTheory.Limits.parallelPairHom E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {X' Y' : C} →
        (f g : X ⟶ Y) →
          (f' g' : X' ⟶ Y') →
            (p : X ⟶ X') →
              (q : Y ⟶ Y') →
                CategoryTheory.CategoryStruct.comp f q = CategoryTheory.CategoryStruct.comp p f' →
                  CategoryTheory.CategoryStruct.comp g q = CategoryTheory.CategoryStruct.comp p g' →
                    (CategoryTheory.Limits.parallelPair f g ⟶ CategoryTheory.Limits.parallelPair f' g')

Construct a morphism between parallel pairs.

def CategoryTheory.Limits.parallelPairIso E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {X' Y' : C} →
        (f g : X ⟶ Y) →
          (f' g' : X' ⟶ Y') →
            (p : X ≅ X') →
              (q : Y ≅ Y') →
                CategoryTheory.CategoryStruct.comp f q.hom = CategoryTheory.CategoryStruct.comp p.hom f' →
                  CategoryTheory.CategoryStruct.comp g q.hom = CategoryTheory.CategoryStruct.comp p.hom g' →
                    (CategoryTheory.Limits.parallelPair f g ≅ CategoryTheory.Limits.parallelPair f' g')

Construct a isomorphism between parallel pairs.

theorem CategoryTheory.Limits.parallelPairHom_app_zero E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {X' Y' : C} (f g : X ⟶ Y) (f' g' : X' ⟶ Y')
  (p : X ⟶ X') (q : Y ⟶ Y') (wf : CategoryTheory.CategoryStruct.comp f q = CategoryTheory.CategoryStruct.comp p f')
  (wg : CategoryTheory.CategoryStruct.comp g q = CategoryTheory.CategoryStruct.comp p g'),
  (CategoryTheory.Limits.parallelPairHom f g f' g' p q wf wg).app CategoryTheory.Limits.WalkingParallelPair.zero = p

theorem CategoryTheory.Limits.parallelPairHom_app_one E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {X' Y' : C} (f g : X ⟶ Y) (f' g' : X' ⟶ Y')
  (p : X ⟶ X') (q : Y ⟶ Y') (wf : CategoryTheory.CategoryStruct.comp f q = CategoryTheory.CategoryStruct.comp p f')
  (wg : CategoryTheory.CategoryStruct.comp g q = CategoryTheory.CategoryStruct.comp p g'),
  (CategoryTheory.Limits.parallelPairHom f g f' g' p q wf wg).app CategoryTheory.Limits.WalkingParallelPair.one = q

def CategoryTheory.Limits.parallelPair.ext E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F G : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C} →
      (zero :
          F.obj CategoryTheory.Limits.WalkingParallelPair.zero ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.zero) →
        (one :
            F.obj CategoryTheory.Limits.WalkingParallelPair.one ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.one) →
          autoParam
              (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.left) one.hom =
                CategoryTheory.CategoryStruct.comp zero.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.left))
              CategoryTheory.Limits.parallelPair.ext._auto_1 →
            autoParam
                (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.right) one.hom =
                  CategoryTheory.CategoryStruct.comp zero.hom
                    (G.map CategoryTheory.Limits.WalkingParallelPairHom.right))
                CategoryTheory.Limits.parallelPair.ext._auto_3 →
              (F ≅ G)

Construct a natural isomorphism between functors out of the walking parallel pair from its components.

theorem CategoryTheory.Limits.parallelPair.ext_hom_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  {F G : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C}
  (zero : F.obj CategoryTheory.Limits.WalkingParallelPair.zero ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.zero)
  (one : F.obj CategoryTheory.Limits.WalkingParallelPair.one ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.one)
  (left :
    autoParam
      (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.left) one.hom =
        CategoryTheory.CategoryStruct.comp zero.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.left))
      CategoryTheory.Limits.parallelPair.ext._auto_1)
  (right :
    autoParam
      (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.right) one.hom =
        CategoryTheory.CategoryStruct.comp zero.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.right))
      CategoryTheory.Limits.parallelPair.ext._auto_3)
  (X : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.parallelPair.ext zero one left right).hom.app X =
    (CategoryTheory.Limits.WalkingParallelPair.rec zero one X).hom

theorem CategoryTheory.Limits.parallelPair.ext_inv_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  {F G : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C}
  (zero : F.obj CategoryTheory.Limits.WalkingParallelPair.zero ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.zero)
  (one : F.obj CategoryTheory.Limits.WalkingParallelPair.one ≅ G.obj CategoryTheory.Limits.WalkingParallelPair.one)
  (left :
    autoParam
      (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.left) one.hom =
        CategoryTheory.CategoryStruct.comp zero.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.left))
      CategoryTheory.Limits.parallelPair.ext._auto_1)
  (right :
    autoParam
      (CategoryTheory.CategoryStruct.comp (F.map CategoryTheory.Limits.WalkingParallelPairHom.right) one.hom =
        CategoryTheory.CategoryStruct.comp zero.hom (G.map CategoryTheory.Limits.WalkingParallelPairHom.right))
      CategoryTheory.Limits.parallelPair.ext._auto_3)
  (X : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.parallelPair.ext zero one left right).inv.app X =
    (CategoryTheory.Limits.WalkingParallelPair.rec zero one X).inv

def CategoryTheory.Limits.parallelPair.eqOfHomEq E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g f' g' : X ⟶ Y} →
        f = f' → g = g' → (CategoryTheory.Limits.parallelPair f g ≅ CategoryTheory.Limits.parallelPair f' g')

Construct a natural isomorphism between parallelPair f g and parallelPair f' g' given equalities f = f' and g = g'.

theorem CategoryTheory.Limits.parallelPair.eqOfHomEq_hom_app E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g f' g' : X ⟶ Y} (hf : f = f') (hg : g = g')
  (X_1 : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.parallelPair.eqOfHomEq hf hg).hom.app X_1 =
    (CategoryTheory.Limits.WalkingParallelPair.rec (CategoryTheory.Iso.refl X) (CategoryTheory.Iso.refl Y) X_1).hom

theorem CategoryTheory.Limits.parallelPair.eqOfHomEq_inv_app E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g f' g' : X ⟶ Y} (hf : f = f') (hg : g = g')
  (X_1 : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.parallelPair.eqOfHomEq hf hg).inv.app X_1 =
    (CategoryTheory.Limits.WalkingParallelPair.rec (CategoryTheory.Iso.refl X) (CategoryTheory.Iso.refl Y) X_1).inv

abbrev CategoryTheory.Limits.Fork E1 #

{C : Type u} → {X Y : C} → [inst : CategoryTheory.Category.{v, u} C] → (X ⟶ Y) → (X ⟶ Y) → Type (max (max 0 u) v)

A fork on f and g is just a Cone (parallelPair f g).

abbrev CategoryTheory.Limits.Cofork E1 #

{C : Type u} → {X Y : C} → [inst : CategoryTheory.Category.{v, u} C] → (Y ⟶ X) → (Y ⟶ X) → Type (max (max 0 u) v)

A cofork on f and g is just a Cocone (parallelPair f g).

def CategoryTheory.Limits.Fork.ι E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] → {f g : X ⟶ Y} → (t : CategoryTheory.Limits.Fork f g) → t.pt ⟶ X

A fork t on the parallel pair f g : X ⟶ Y consists of two morphisms t.π.app zero : t.pt ⟶ X and t.π.app one : t.pt ⟶ Y. Of these, only the first one is interesting, and we give it the shorter name Fork.ι t.

def CategoryTheory.Limits.Cofork.π E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] → {f g : Y ⟶ X} → (t : CategoryTheory.Limits.Cofork f g) → X ⟶ t.pt

A cofork t on the parallelPair f g : X ⟶ Y consists of two morphisms t.ι.app zero : X ⟶ t.pt and t.ι.app one : Y ⟶ t.pt. Of these, only the second one is interesting, and we give it the shorter name Cofork.π t.

theorem CategoryTheory.Limits.Fork.app_zero_eq_ι E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} (t : CategoryTheory.Limits.Fork f g),
  t.π.app CategoryTheory.Limits.WalkingParallelPair.zero = t.ι

theorem CategoryTheory.Limits.Cofork.app_one_eq_π E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} (t : CategoryTheory.Limits.Cofork f g),
  t.ι.app CategoryTheory.Limits.WalkingParallelPair.one = t.π

theorem CategoryTheory.Limits.Cofork.app_zero_eq_comp_π_left E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} (s : CategoryTheory.Limits.Cofork f g),
  s.ι.app CategoryTheory.Limits.WalkingParallelPair.zero = CategoryTheory.CategoryStruct.comp f s.π

theorem CategoryTheory.Limits.Fork.app_one_eq_ι_comp_left E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} (s : CategoryTheory.Limits.Fork f g),
  s.π.app CategoryTheory.Limits.WalkingParallelPair.one = CategoryTheory.CategoryStruct.comp s.ι f

theorem CategoryTheory.Limits.Fork.app_one_eq_ι_comp_right_assoc E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} (s : CategoryTheory.Limits.Fork f g)
  {Z : C} (h : (CategoryTheory.Limits.parallelPair f g).obj CategoryTheory.Limits.WalkingParallelPair.one ⟶ Z),
  CategoryTheory.CategoryStruct.comp (s.π.app CategoryTheory.Limits.WalkingParallelPair.one) h =
    CategoryTheory.CategoryStruct.comp s.ι (CategoryTheory.CategoryStruct.comp g h)

theorem CategoryTheory.Limits.Cofork.app_zero_eq_comp_π_right E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} (s : CategoryTheory.Limits.Cofork f g),
  s.ι.app CategoryTheory.Limits.WalkingParallelPair.zero = CategoryTheory.CategoryStruct.comp g s.π

theorem CategoryTheory.Limits.Cofork.app_zero_eq_comp_π_right_assoc E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} (s : CategoryTheory.Limits.Cofork f g)
  {Z : C}
  (h :
    ((CategoryTheory.Functor.const CategoryTheory.Limits.WalkingParallelPair).obj s.pt).obj
        CategoryTheory.Limits.WalkingParallelPair.zero ⟶
      Z),
  CategoryTheory.CategoryStruct.comp (s.ι.app CategoryTheory.Limits.WalkingParallelPair.zero) h =
    CategoryTheory.CategoryStruct.comp g (CategoryTheory.CategoryStruct.comp s.π h)

theorem CategoryTheory.Limits.Fork.app_one_eq_ι_comp_right E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} (s : CategoryTheory.Limits.Fork f g),
  s.π.app CategoryTheory.Limits.WalkingParallelPair.one = CategoryTheory.CategoryStruct.comp s.ι g

def CategoryTheory.Limits.Fork.ofι E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {P : C} →
          (ι : P ⟶ X) →
            CategoryTheory.CategoryStruct.comp ι f = CategoryTheory.CategoryStruct.comp ι g →
              CategoryTheory.Limits.Fork f g

A fork on f g : X ⟶ Y is determined by the morphism ι : P ⟶ X satisfying ι ≫ f = ι ≫ g.

theorem CategoryTheory.Limits.Fork.ofι_pt E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {P : C} (ι : P ⟶ X)
  (w : CategoryTheory.CategoryStruct.comp ι f = CategoryTheory.CategoryStruct.comp ι g),
  (CategoryTheory.Limits.Fork.ofι ι w).pt = P

theorem CategoryTheory.Limits.Fork.ofι_π_app E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {P : C} (ι : P ⟶ X)
  (w : CategoryTheory.CategoryStruct.comp ι f = CategoryTheory.CategoryStruct.comp ι g)
  (X_1 : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.Fork.ofι ι w).π.app X_1 =
    CategoryTheory.Limits.WalkingParallelPair.casesOn (motive := fun t ↦
      X_1 = t →
        (((CategoryTheory.Functor.const CategoryTheory.Limits.WalkingParallelPair).obj P).obj X_1 ⟶
          (CategoryTheory.Limits.parallelPair f g).obj X_1))
      X_1 (fun h ↦ ⋯ ▸ ι) (fun h ↦ ⋯ ▸ CategoryTheory.CategoryStruct.comp ι f) ⋯

def CategoryTheory.Limits.Cofork.ofπ E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} →
        {P : C} →
          (π : X ⟶ P) →
            CategoryTheory.CategoryStruct.comp f π = CategoryTheory.CategoryStruct.comp g π →
              CategoryTheory.Limits.Cofork f g

A cofork on f g : X ⟶ Y is determined by the morphism π : Y ⟶ P satisfying f ≫ π = g ≫ π.

theorem CategoryTheory.Limits.Cofork.ofπ_pt E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {P : C} (π : X ⟶ P)
  (w : CategoryTheory.CategoryStruct.comp f π = CategoryTheory.CategoryStruct.comp g π),
  (CategoryTheory.Limits.Cofork.ofπ π w).pt = P

theorem CategoryTheory.Limits.Cofork.ofπ_ι_app E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {P : C} (π : X ⟶ P)
  (w : CategoryTheory.CategoryStruct.comp f π = CategoryTheory.CategoryStruct.comp g π)
  (X_1 : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.Cofork.ofπ π w).ι.app X_1 =
    CategoryTheory.Limits.WalkingParallelPair.casesOn (motive := fun t ↦
      X_1 = t →
        ((CategoryTheory.Limits.parallelPair f g).obj X_1 ⟶
          ((CategoryTheory.Functor.const CategoryTheory.Limits.WalkingParallelPair).obj P).obj X_1))
      X_1 (fun h ↦ ⋯ ▸ CategoryTheory.CategoryStruct.comp f π) (fun h ↦ ⋯ ▸ π) ⋯

theorem CategoryTheory.Limits.Cofork.π_ofπ E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {P : C} (π : X ⟶ P)
  (w : CategoryTheory.CategoryStruct.comp f π = CategoryTheory.CategoryStruct.comp g π),
  (CategoryTheory.Limits.Cofork.ofπ π w).π = π

theorem CategoryTheory.Limits.Fork.ι_ofι E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {P : C} (ι : P ⟶ X)
  (w : CategoryTheory.CategoryStruct.comp ι f = CategoryTheory.CategoryStruct.comp ι g),
  (CategoryTheory.Limits.Fork.ofι ι w).ι = ι

theorem CategoryTheory.Limits.Cofork.condition_assoc E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} (t : CategoryTheory.Limits.Cofork f g)
  {Z : C} (h : t.pt ⟶ Z),
  CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp t.π h) =
    CategoryTheory.CategoryStruct.comp g (CategoryTheory.CategoryStruct.comp t.π h)

theorem CategoryTheory.Limits.Cofork.condition E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} (t : CategoryTheory.Limits.Cofork f g),
  CategoryTheory.CategoryStruct.comp f t.π = CategoryTheory.CategoryStruct.comp g t.π

theorem CategoryTheory.Limits.Fork.condition E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} (t : CategoryTheory.Limits.Fork f g),
  CategoryTheory.CategoryStruct.comp t.ι f = CategoryTheory.CategoryStruct.comp t.ι g

theorem CategoryTheory.Limits.Fork.condition_assoc E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} (t : CategoryTheory.Limits.Fork f g)
  {Z : C} (h : Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp t.ι (CategoryTheory.CategoryStruct.comp f h) =
    CategoryTheory.CategoryStruct.comp t.ι (CategoryTheory.CategoryStruct.comp g h)

theorem CategoryTheory.Limits.Fork.equalizer_ext E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} (s : CategoryTheory.Limits.Fork f g)
  {W : C} {k l : W ⟶ s.pt},
  CategoryTheory.CategoryStruct.comp k s.ι = CategoryTheory.CategoryStruct.comp l s.ι →
    ∀ (j : CategoryTheory.Limits.WalkingParallelPair),
      CategoryTheory.CategoryStruct.comp k (s.π.app j) = CategoryTheory.CategoryStruct.comp l (s.π.app j)

To check whether two maps are equalized by both maps of a fork, it suffices to check it for the first map

theorem CategoryTheory.Limits.Cofork.coequalizer_ext E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} (s : CategoryTheory.Limits.Cofork f g)
  {W : C} {k l : s.pt ⟶ W},
  CategoryTheory.CategoryStruct.comp s.π k = CategoryTheory.CategoryStruct.comp s.π l →
    ∀ (j : CategoryTheory.Limits.WalkingParallelPair),
      CategoryTheory.CategoryStruct.comp (s.ι.app j) k = CategoryTheory.CategoryStruct.comp (s.ι.app j) l

To check whether two maps are coequalized by both maps of a cofork, it suffices to check it for the second map

theorem CategoryTheory.Limits.Cofork.IsColimit.hom_ext E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {s : CategoryTheory.Limits.Cofork f g}
  (hs : CategoryTheory.Limits.IsColimit s) {W : C} {k l : s.pt ⟶ W},
  CategoryTheory.CategoryStruct.comp s.π k = CategoryTheory.CategoryStruct.comp s.π l → k = l

theorem CategoryTheory.Limits.Fork.IsLimit.hom_ext E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s : CategoryTheory.Limits.Fork f g}
  (hs : CategoryTheory.Limits.IsLimit s) {W : C} {k l : W ⟶ s.pt},
  CategoryTheory.CategoryStruct.comp k s.ι = CategoryTheory.CategoryStruct.comp l s.ι → k = l

theorem CategoryTheory.Limits.Cofork.IsColimit.π_desc_assoc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  {s t : CategoryTheory.Limits.Cofork f g} (hs : CategoryTheory.Limits.IsColimit s) {Z : C} (h : t.pt ⟶ Z),
  CategoryTheory.CategoryStruct.comp s.π (CategoryTheory.CategoryStruct.comp (hs.desc t) h) =
    CategoryTheory.CategoryStruct.comp t.π h

theorem CategoryTheory.Limits.Fork.IsLimit.lift_ι E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s t : CategoryTheory.Limits.Fork f g}
  (hs : CategoryTheory.Limits.IsLimit s), CategoryTheory.CategoryStruct.comp (hs.lift t) s.ι = t.ι

theorem CategoryTheory.Limits.Fork.IsLimit.lift_ι_assoc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s t : CategoryTheory.Limits.Fork f g}
  (hs : CategoryTheory.Limits.IsLimit s) {Z : C} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp (hs.lift t) (CategoryTheory.CategoryStruct.comp s.ι h) =
    CategoryTheory.CategoryStruct.comp t.ι h

theorem CategoryTheory.Limits.Cofork.IsColimit.π_desc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  {s t : CategoryTheory.Limits.Cofork f g} (hs : CategoryTheory.Limits.IsColimit s),
  CategoryTheory.CategoryStruct.comp s.π (hs.desc t) = t.π

def CategoryTheory.Limits.Fork.IsLimit.lift E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {s : CategoryTheory.Limits.Fork f g} →
          CategoryTheory.Limits.IsLimit s →
            {W : C} →
              (k : W ⟶ X) → CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g → (W ⟶ s.pt)

If s is a limit fork over f and g, then a morphism k : W ⟶ X satisfying k ≫ f = k ≫ g induces a morphism l : W ⟶ s.pt such that l ≫ fork.ι s = k.

def CategoryTheory.Limits.Cofork.IsColimit.desc E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} →
        {s : CategoryTheory.Limits.Cofork f g} →
          CategoryTheory.Limits.IsColimit s →
            {W : C} →
              (k : X ⟶ W) → CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k → (s.pt ⟶ W)

If s is a colimit cofork over f and g, then a morphism k : Y ⟶ W satisfying f ≫ k = g ≫ k induces a morphism l : s.pt ⟶ W such that cofork.π s ≫ l = k.

theorem CategoryTheory.Limits.Fork.IsLimit.lift_ι'_assoc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s : CategoryTheory.Limits.Fork f g}
  (hs : CategoryTheory.Limits.IsLimit s) {W : C} (k : W ⟶ X)
  (h : CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g) {Z : C} (h_1 : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.Fork.IsLimit.lift hs k h)
      (CategoryTheory.CategoryStruct.comp s.ι h_1) =
    CategoryTheory.CategoryStruct.comp k h_1

theorem CategoryTheory.Limits.Fork.IsLimit.lift_ι' E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s : CategoryTheory.Limits.Fork f g}
  (hs : CategoryTheory.Limits.IsLimit s) {W : C} (k : W ⟶ X)
  (h : CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.Fork.IsLimit.lift hs k h) s.ι = k

theorem CategoryTheory.Limits.Cofork.IsColimit.π_desc' E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {s : CategoryTheory.Limits.Cofork f g}
  (hs : CategoryTheory.Limits.IsColimit s) {W : C} (k : X ⟶ W)
  (h : CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k),
  CategoryTheory.CategoryStruct.comp s.π (CategoryTheory.Limits.Cofork.IsColimit.desc hs k h) = k

theorem CategoryTheory.Limits.Cofork.IsColimit.π_desc'_assoc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {s : CategoryTheory.Limits.Cofork f g}
  (hs : CategoryTheory.Limits.IsColimit s) {W : C} (k : X ⟶ W)
  (h : CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k) {Z : C} (h_1 : W ⟶ Z),
  CategoryTheory.CategoryStruct.comp s.π
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.Cofork.IsColimit.desc hs k h) h_1) =
    CategoryTheory.CategoryStruct.comp k h_1

def CategoryTheory.Limits.Fork.IsLimit.lift' E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {s : CategoryTheory.Limits.Fork f g} →
          CategoryTheory.Limits.IsLimit s →
            {W : C} →
              (k : W ⟶ X) →
                CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g →
                  { l // CategoryTheory.CategoryStruct.comp l s.ι = k }

If s is a limit fork over f and g, then a morphism k : W ⟶ X satisfying k ≫ f = k ≫ g induces a morphism l : W ⟶ s.pt such that l ≫ fork.ι s = k.

def CategoryTheory.Limits.Cofork.IsColimit.desc' E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} →
        {s : CategoryTheory.Limits.Cofork f g} →
          CategoryTheory.Limits.IsColimit s →
            {W : C} →
              (k : X ⟶ W) →
                CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k →
                  { l // CategoryTheory.CategoryStruct.comp s.π l = k }

If s is a colimit cofork over f and g, then a morphism k : Y ⟶ W satisfying f ≫ k = g ≫ k induces a morphism l : s.pt ⟶ W such that cofork.π s ≫ l = k.

theorem CategoryTheory.Limits.Fork.IsLimit.mono E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s : CategoryTheory.Limits.Fork f g}
  (hs : CategoryTheory.Limits.IsLimit s), CategoryTheory.Mono s.ι

theorem CategoryTheory.Limits.Cofork.IsColimit.epi E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {s : CategoryTheory.Limits.Cofork f g}
  (hs : CategoryTheory.Limits.IsColimit s), CategoryTheory.Epi s.π

theorem CategoryTheory.Limits.Fork.IsLimit.existsUnique E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s : CategoryTheory.Limits.Fork f g}
  (hs : CategoryTheory.Limits.IsLimit s) {W : C} (k : W ⟶ X),
  CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g →
    ∃! l, CategoryTheory.CategoryStruct.comp l s.ι = k

theorem CategoryTheory.Limits.Cofork.IsColimit.existsUnique E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {s : CategoryTheory.Limits.Cofork f g}
  (hs : CategoryTheory.Limits.IsColimit s) {W : C} (k : X ⟶ W),
  CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k →
    ∃! l, CategoryTheory.CategoryStruct.comp s.π l = k

def CategoryTheory.Limits.Fork.IsLimit.mk E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        (t : CategoryTheory.Limits.Fork f g) →
          (lift : (s : CategoryTheory.Limits.Fork f g) → s.pt ⟶ t.pt) →
            (∀ (s : CategoryTheory.Limits.Fork f g), CategoryTheory.CategoryStruct.comp (lift s) t.ι = s.ι) →
              (∀ (s : CategoryTheory.Limits.Fork f g) (m : s.pt ⟶ t.pt),
                  CategoryTheory.CategoryStruct.comp m t.ι = s.ι → m = lift s) →
                CategoryTheory.Limits.IsLimit t

This is a slightly more convenient method to verify that a fork is a limit cone. It only asks for a proof of facts that carry any mathematical content

def CategoryTheory.Limits.Cofork.IsColimit.mk E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} →
        (t : CategoryTheory.Limits.Cofork f g) →
          (lift : (s : CategoryTheory.Limits.Cofork f g) → t.pt ⟶ s.pt) →
            (∀ (s : CategoryTheory.Limits.Cofork f g), CategoryTheory.CategoryStruct.comp t.π (lift s) = s.π) →
              (∀ (s : CategoryTheory.Limits.Cofork f g) (m : t.pt ⟶ s.pt),
                  CategoryTheory.CategoryStruct.comp t.π m = s.π → m = lift s) →
                CategoryTheory.Limits.IsColimit t

This is a slightly more convenient method to verify that a cofork is a colimit cocone. It only asks for a proof of facts that carry any mathematical content

theorem CategoryTheory.Limits.Cofork.IsColimit.mk_desc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} (t : CategoryTheory.Limits.Cofork f g)
  (lift : (s : CategoryTheory.Limits.Cofork f g) → t.pt ⟶ s.pt)
  (fac : ∀ (s : CategoryTheory.Limits.Cofork f g), CategoryTheory.CategoryStruct.comp t.π (lift s) = s.π)
  (uniq :
    ∀ (s : CategoryTheory.Limits.Cofork f g) (m : t.pt ⟶ s.pt),
      CategoryTheory.CategoryStruct.comp t.π m = s.π → m = lift s)
  (s : CategoryTheory.Limits.Cofork f g), (CategoryTheory.Limits.Cofork.IsColimit.mk t lift fac uniq).desc s = lift s

theorem CategoryTheory.Limits.Fork.IsLimit.mk_lift E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} (t : CategoryTheory.Limits.Fork f g)
  (lift : (s : CategoryTheory.Limits.Fork f g) → s.pt ⟶ t.pt)
  (fac : ∀ (s : CategoryTheory.Limits.Fork f g), CategoryTheory.CategoryStruct.comp (lift s) t.ι = s.ι)
  (uniq :
    ∀ (s : CategoryTheory.Limits.Fork f g) (m : s.pt ⟶ t.pt),
      CategoryTheory.CategoryStruct.comp m t.ι = s.ι → m = lift s)
  (s : CategoryTheory.Limits.Fork f g), (CategoryTheory.Limits.Fork.IsLimit.mk t lift fac uniq).lift s = lift s

def CategoryTheory.Limits.Fork.IsLimit.mk' E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      {f g : X ⟶ Y} →
        (t : CategoryTheory.Limits.Fork f g) →
          ((s : CategoryTheory.Limits.Fork f g) →
              { l //
                CategoryTheory.CategoryStruct.comp l t.ι = s.ι ∧
                  ∀ {m : s.pt ⟶ t.pt}, CategoryTheory.CategoryStruct.comp m t.ι = s.ι → m = l }) →
            CategoryTheory.Limits.IsLimit t

This is another convenient method to verify that a fork is a limit cone. It only asks for a proof of facts that carry any mathematical content, and allows access to the same s for all parts.

def CategoryTheory.Limits.Cofork.IsColimit.mk' E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      {f g : Y ⟶ X} →
        (t : CategoryTheory.Limits.Cofork f g) →
          ((s : CategoryTheory.Limits.Cofork f g) →
              { l //
                CategoryTheory.CategoryStruct.comp t.π l = s.π ∧
                  ∀ {m : t.pt ⟶ s.pt}, CategoryTheory.CategoryStruct.comp t.π m = s.π → m = l }) →
            CategoryTheory.Limits.IsColimit t

This is another convenient method to verify that a cofork is a colimit cocone. It only asks for a proof of facts that carry any mathematical content, and allows access to the same s for all parts.

def CategoryTheory.Limits.Fork.IsLimit.ofExistsUnique E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {t : CategoryTheory.Limits.Fork f g} →
          (∀ (s : CategoryTheory.Limits.Fork f g), ∃! l, CategoryTheory.CategoryStruct.comp l t.ι = s.ι) →
            CategoryTheory.Limits.IsLimit t

Noncomputably make a limit cone from the existence of unique factorizations.

def CategoryTheory.Limits.Cofork.IsColimit.ofExistsUnique E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} →
        {t : CategoryTheory.Limits.Cofork f g} →
          (∀ (s : CategoryTheory.Limits.Cofork f g), ∃! l, CategoryTheory.CategoryStruct.comp t.π l = s.π) →
            CategoryTheory.Limits.IsColimit t

Noncomputably make a colimit cocone from the existence of unique factorizations.

def CategoryTheory.Limits.Fork.IsLimit.homIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      {f g : X ⟶ Y} →
        {t : CategoryTheory.Limits.Fork f g} →
          CategoryTheory.Limits.IsLimit t →
            (Z : C) →
              (Z ⟶ t.pt) ≃ { h // CategoryTheory.CategoryStruct.comp h f = CategoryTheory.CategoryStruct.comp h g }

Given a limit cone for the pair f g : X ⟶ Y, for any Z, morphisms from Z to its point are in bijection with morphisms h : Z ⟶ X such that h ≫ f = h ≫ g. Further, this bijection is natural in Z: see Fork.IsLimit.homIso_natural. This is a special case of IsLimit.homIso', often useful to construct adjunctions.

theorem CategoryTheory.Limits.Fork.IsLimit.homIso_symm_apply E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f g : X ⟶ Y} {t : CategoryTheory.Limits.Fork f g}
  (ht : CategoryTheory.Limits.IsLimit t) (Z : C)
  (h : { h // CategoryTheory.CategoryStruct.comp h f = CategoryTheory.CategoryStruct.comp h g }),
  (CategoryTheory.Limits.Fork.IsLimit.homIso ht Z).symm h = ↑(CategoryTheory.Limits.Fork.IsLimit.lift' ht ↑h ⋯)

theorem CategoryTheory.Limits.Cofork.IsColimit.homIso_apply_coe E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f g : Y ⟶ X} {t : CategoryTheory.Limits.Cofork f g}
  (ht : CategoryTheory.Limits.IsColimit t) (Z : C) (k : t.pt ⟶ Z),
  ↑((CategoryTheory.Limits.Cofork.IsColimit.homIso ht Z) k) = CategoryTheory.CategoryStruct.comp t.π k

theorem CategoryTheory.Limits.Fork.IsLimit.homIso_apply_coe E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f g : X ⟶ Y} {t : CategoryTheory.Limits.Fork f g}
  (ht : CategoryTheory.Limits.IsLimit t) (Z : C) (k : Z ⟶ t.pt),
  ↑((CategoryTheory.Limits.Fork.IsLimit.homIso ht Z) k) = CategoryTheory.CategoryStruct.comp k t.ι

theorem CategoryTheory.Limits.Cofork.IsColimit.homIso_symm_apply E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f g : Y ⟶ X} {t : CategoryTheory.Limits.Cofork f g}
  (ht : CategoryTheory.Limits.IsColimit t) (Z : C)
  (h : { h // CategoryTheory.CategoryStruct.comp f h = CategoryTheory.CategoryStruct.comp g h }),
  (CategoryTheory.Limits.Cofork.IsColimit.homIso ht Z).symm h = ↑(CategoryTheory.Limits.Cofork.IsColimit.desc' ht ↑h ⋯)

def CategoryTheory.Limits.Cofork.IsColimit.homIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      {f g : Y ⟶ X} →
        {t : CategoryTheory.Limits.Cofork f g} →
          CategoryTheory.Limits.IsColimit t →
            (Z : C) →
              (t.pt ⟶ Z) ≃ { h // CategoryTheory.CategoryStruct.comp f h = CategoryTheory.CategoryStruct.comp g h }

Given a colimit cocone for the pair f g : X ⟶ Y, for any Z, morphisms from the cocone point to Z are in bijection with morphisms h : Y ⟶ Z such that f ≫ h = g ≫ h. Further, this bijection is natural in Z: see Cofork.IsColimit.homIso_natural. This is a special case of IsColimit.homIso', often useful to construct adjunctions.

theorem CategoryTheory.Limits.Fork.IsLimit.homIso_natural E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f g : X ⟶ Y} {t : CategoryTheory.Limits.Fork f g}
  (ht : CategoryTheory.Limits.IsLimit t) {Z Z' : C} (q : Z' ⟶ Z) (k : Z ⟶ t.pt),
  ↑((CategoryTheory.Limits.Fork.IsLimit.homIso ht Z') (CategoryTheory.CategoryStruct.comp q k)) =
    CategoryTheory.CategoryStruct.comp q ↑((CategoryTheory.Limits.Fork.IsLimit.homIso ht Z) k)

The bijection of Fork.IsLimit.homIso is natural in Z.

theorem CategoryTheory.Limits.Cofork.IsColimit.homIso_natural E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f g : Y ⟶ X} {t : CategoryTheory.Limits.Cofork f g}
  (ht : CategoryTheory.Limits.IsColimit t) {Z Z' : C} (q : Z ⟶ Z') (k : t.pt ⟶ Z),
  ↑((CategoryTheory.Limits.Cofork.IsColimit.homIso ht Z') (CategoryTheory.CategoryStruct.comp k q)) =
    CategoryTheory.CategoryStruct.comp (↑((CategoryTheory.Limits.Cofork.IsColimit.homIso ht Z) k)) q

The bijection of Cofork.IsColimit.homIso is natural in Z.

def CategoryTheory.Limits.Cone.ofFork E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C} →
      CategoryTheory.Limits.Fork (F.map CategoryTheory.Limits.WalkingParallelPairHom.left)
          (F.map CategoryTheory.Limits.WalkingParallelPairHom.right) →
        CategoryTheory.Limits.Cone F

This is a helper construction that can be useful when verifying that a category has all equalizers. Given F : WalkingParallelPair ⥤ C, which is really the same as parallelPair (F.map left) (F.map right), and a fork on F.map left and F.map right, we get a cone on F.

If you're thinking about using this, have a look at hasEqualizers_of_hasLimit_parallelPair, which you may find to be an easier way of achieving your goal.

def CategoryTheory.Limits.Cocone.ofCofork E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C} →
      CategoryTheory.Limits.Cofork (F.map CategoryTheory.Limits.WalkingParallelPairHom.left)
          (F.map CategoryTheory.Limits.WalkingParallelPairHom.right) →
        CategoryTheory.Limits.Cocone F

This is a helper construction that can be useful when verifying that a category has all coequalizers. Given F : WalkingParallelPair ⥤ C, which is really the same as parallelPair (F.map left) (F.map right), and a cofork on F.map left and F.map right, we get a cocone on F.

If you're thinking about using this, have a look at hasCoequalizers_of_hasColimit_parallelPair, which you may find to be an easier way of achieving your goal.

theorem CategoryTheory.Limits.Cocone.ofCofork_ι E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  {F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C}
  (t :
    CategoryTheory.Limits.Cofork (F.map CategoryTheory.Limits.WalkingParallelPairHom.left)
      (F.map CategoryTheory.Limits.WalkingParallelPairHom.right))
  (j : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.Cocone.ofCofork t).ι.app j =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯) (t.ι.app j)

theorem CategoryTheory.Limits.Cone.ofFork_π E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  {F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C}
  (t :
    CategoryTheory.Limits.Fork (F.map CategoryTheory.Limits.WalkingParallelPairHom.left)
      (F.map CategoryTheory.Limits.WalkingParallelPairHom.right))
  (j : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.Cone.ofFork t).π.app j =
    CategoryTheory.CategoryStruct.comp (t.π.app j) (CategoryTheory.eqToHom ⋯)

def CategoryTheory.Limits.Fork.ofCone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C} →
      CategoryTheory.Limits.Cone F →
        CategoryTheory.Limits.Fork (F.map CategoryTheory.Limits.WalkingParallelPairHom.left)
          (F.map CategoryTheory.Limits.WalkingParallelPairHom.right)

Given F : WalkingParallelPair ⥤ C, which is really the same as parallelPair (F.map left) (F.map right) and a cone on F, we get a fork on F.map left and F.map right.

def CategoryTheory.Limits.Cofork.ofCocone E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C} →
      CategoryTheory.Limits.Cocone F →
        CategoryTheory.Limits.Cofork (F.map CategoryTheory.Limits.WalkingParallelPairHom.left)
          (F.map CategoryTheory.Limits.WalkingParallelPairHom.right)

Given F : WalkingParallelPair ⥤ C, which is really the same as parallelPair (F.map left) (F.map right) and a cocone on F, we get a cofork on F.map left and F.map right.

theorem CategoryTheory.Limits.Cofork.ofCocone_ι E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  {F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C} (t : CategoryTheory.Limits.Cocone F)
  (j : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.Cofork.ofCocone t).ι.app j =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯) (t.ι.app j)

theorem CategoryTheory.Limits.Fork.ofCone_π E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  {F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair C} (t : CategoryTheory.Limits.Cone F)
  (j : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.Fork.ofCone t).π.app j =
    CategoryTheory.CategoryStruct.comp (t.π.app j) (CategoryTheory.eqToHom ⋯)

theorem CategoryTheory.Limits.Fork.ι_postcompose E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g f' g' : X ⟶ Y}
  {α : CategoryTheory.Limits.parallelPair f g ⟶ CategoryTheory.Limits.parallelPair f' g'}
  {c : CategoryTheory.Limits.Fork f g},
  CategoryTheory.Limits.Fork.ι ((CategoryTheory.Limits.Cone.postcompose α).obj c) =
    CategoryTheory.CategoryStruct.comp c.ι (α.app CategoryTheory.Limits.WalkingParallelPair.zero)

theorem CategoryTheory.Limits.Cofork.π_precompose E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g f' g' : Y ⟶ X}
  {α : CategoryTheory.Limits.parallelPair f' g' ⟶ CategoryTheory.Limits.parallelPair f g}
  {c : CategoryTheory.Limits.Cofork f g},
  CategoryTheory.Limits.Cofork.π ((CategoryTheory.Limits.Cocone.precompose α).obj c) =
    CategoryTheory.CategoryStruct.comp (α.app CategoryTheory.Limits.WalkingParallelPair.one) c.π

def CategoryTheory.Limits.Fork.mkHom E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {s t : CategoryTheory.Limits.Fork f g} →
          (k : s.pt ⟶ t.pt) → CategoryTheory.CategoryStruct.comp k t.ι = s.ι → (s ⟶ t)

Helper function for constructing morphisms between equalizer forks.

def CategoryTheory.Limits.Cofork.mkHom E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} →
        {s t : CategoryTheory.Limits.Cofork f g} →
          (k : t.pt ⟶ s.pt) → CategoryTheory.CategoryStruct.comp t.π k = s.π → (t ⟶ s)

Helper function for constructing morphisms between coequalizer coforks.

theorem CategoryTheory.Limits.Cofork.mkHom_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  {s t : CategoryTheory.Limits.Cofork f g} (k : t.pt ⟶ s.pt) (w : CategoryTheory.CategoryStruct.comp t.π k = s.π),
  (CategoryTheory.Limits.Cofork.mkHom k w).hom = k

theorem CategoryTheory.Limits.Fork.mkHom_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s t : CategoryTheory.Limits.Fork f g}
  (k : s.pt ⟶ t.pt) (w : CategoryTheory.CategoryStruct.comp k t.ι = s.ι), (CategoryTheory.Limits.Fork.mkHom k w).hom = k

theorem CategoryTheory.Limits.Fork.hom_comp_ι E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s t : CategoryTheory.Limits.Fork f g}
  (f_1 : s ⟶ t), CategoryTheory.CategoryStruct.comp f_1.hom t.ι = s.ι

theorem CategoryTheory.Limits.Fork.hom_comp_ι_assoc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s t : CategoryTheory.Limits.Fork f g}
  (f_1 : s ⟶ t) {Z : C} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp f_1.hom (CategoryTheory.CategoryStruct.comp t.ι h) =
    CategoryTheory.CategoryStruct.comp s.ι h

def CategoryTheory.Limits.Fork.ext E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {s t : CategoryTheory.Limits.Fork f g} →
          (i : s.pt ≅ t.pt) →
            autoParam (CategoryTheory.CategoryStruct.comp i.hom t.ι = s.ι) CategoryTheory.Limits.Fork.ext._auto_1 →
              (s ≅ t)

To construct an isomorphism between forks, it suffices to give an isomorphism between the cone points and check that it commutes with the ι morphisms.

theorem CategoryTheory.Limits.Fork.ext_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s t : CategoryTheory.Limits.Fork f g}
  (i : s.pt ≅ t.pt)
  (w : autoParam (CategoryTheory.CategoryStruct.comp i.hom t.ι = s.ι) CategoryTheory.Limits.Fork.ext._auto_1),
  (CategoryTheory.Limits.Fork.ext i w).hom = CategoryTheory.Limits.Fork.mkHom i.hom w

theorem CategoryTheory.Limits.Fork.ext_inv E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {s t : CategoryTheory.Limits.Fork f g}
  (i : s.pt ≅ t.pt)
  (w : autoParam (CategoryTheory.CategoryStruct.comp i.hom t.ι = s.ι) CategoryTheory.Limits.Fork.ext._auto_1),
  (CategoryTheory.Limits.Fork.ext i w).inv = CategoryTheory.Limits.Fork.mkHom i.inv ⋯

def CategoryTheory.Limits.ForkOfι.ext E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {P : C} →
          {ι ι' : P ⟶ X} →
            (w : CategoryTheory.CategoryStruct.comp ι f = CategoryTheory.CategoryStruct.comp ι g) →
              (w' : CategoryTheory.CategoryStruct.comp ι' f = CategoryTheory.CategoryStruct.comp ι' g) →
                ι = ι' → (CategoryTheory.Limits.Fork.ofι ι w ≅ CategoryTheory.Limits.Fork.ofι ι' w')

Two forks of the form ofι are isomorphic whenever their ι's are equal.

def CategoryTheory.Limits.CoforkOfπ.ext E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} →
        {P : C} →
          {π π' : X ⟶ P} →
            (w : CategoryTheory.CategoryStruct.comp f π = CategoryTheory.CategoryStruct.comp g π) →
              (w' : CategoryTheory.CategoryStruct.comp f π' = CategoryTheory.CategoryStruct.comp g π') →
                π = π' → (CategoryTheory.Limits.Cofork.ofπ π w ≅ CategoryTheory.Limits.Cofork.ofπ π' w')

Two coforks of the form ofπ are isomorphic whenever their π's are equal.

def CategoryTheory.Limits.Fork.isoForkOfι E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} → (c : CategoryTheory.Limits.Fork f g) → c ≅ CategoryTheory.Limits.Fork.ofι c.ι ⋯

Every fork is isomorphic to one of the form Fork.of_ι _ _.

def CategoryTheory.Limits.Cofork.isoCoforkOfπ E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} → (c : CategoryTheory.Limits.Cofork f g) → c ≅ CategoryTheory.Limits.Cofork.ofπ c.π ⋯

Every cofork is isomorphic to one of the form Cofork.ofπ _ _.

theorem CategoryTheory.Limits.Fork.isoForkOfι_hom_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} (c : CategoryTheory.Limits.Fork f g),
  c.isoForkOfι.hom.hom = CategoryTheory.CategoryStruct.id c.pt

theorem CategoryTheory.Limits.Cofork.isoCoforkOfπ_inv_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} (c : CategoryTheory.Limits.Cofork f g),
  c.isoCoforkOfπ.inv.hom = CategoryTheory.CategoryStruct.id c.pt

theorem CategoryTheory.Limits.Cofork.isoCoforkOfπ_hom_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} (c : CategoryTheory.Limits.Cofork f g),
  c.isoCoforkOfπ.hom.hom = CategoryTheory.CategoryStruct.id c.pt

theorem CategoryTheory.Limits.Fork.isoForkOfι_inv_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} (c : CategoryTheory.Limits.Fork f g),
  c.isoForkOfι.inv.hom = CategoryTheory.CategoryStruct.id c.pt

def CategoryTheory.Limits.Fork.equivOfIsos E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      {f g : X ⟶ Y} →
        {X' Y' : C} →
          {f' g' : X' ⟶ Y'} →
            (e₀ : X ≅ X') →
              (e₁ : Y ≅ Y') →
                autoParam (CategoryTheory.CategoryStruct.comp e₀.hom f' = CategoryTheory.CategoryStruct.comp f e₁.hom)
                    CategoryTheory.Limits.Fork.equivOfIsos._auto_1 →
                  autoParam (CategoryTheory.CategoryStruct.comp e₀.hom g' = CategoryTheory.CategoryStruct.comp g e₁.hom)
                      CategoryTheory.Limits.Fork.equivOfIsos._auto_3 →
                    (CategoryTheory.Limits.Fork f g ≌ CategoryTheory.Limits.Fork f' g')

If f, g : X ⟶ Y and f', g : X' ⟶ Y' pairwise form a commutative square with isomorphisms X ≅ X' and Y ≅ Y', the categories of forks are equivalent.

theorem CategoryTheory.Limits.Fork.equivOfIsos_functor_obj_ι E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f g : X ⟶ Y} {X' Y' : C} {f' g' : X' ⟶ Y'}
  (e₀ : X ≅ X') (e₁ : Y ≅ Y')
  (comm₁ :
    autoParam (CategoryTheory.CategoryStruct.comp e₀.hom f' = CategoryTheory.CategoryStruct.comp f e₁.hom)
      CategoryTheory.Limits.Fork.equivOfIsos_functor_obj_ι._auto_1)
  (comm₂ :
    autoParam (CategoryTheory.CategoryStruct.comp e₀.hom g' = CategoryTheory.CategoryStruct.comp g e₁.hom)
      CategoryTheory.Limits.Fork.equivOfIsos_functor_obj_ι._auto_3)
  (c : CategoryTheory.Limits.Fork f g),
  ((CategoryTheory.Limits.Fork.equivOfIsos e₀ e₁ comm₁ comm₂).functor.obj c).ι =
    CategoryTheory.CategoryStruct.comp c.ι e₀.hom

theorem CategoryTheory.Limits.Fork.equivOfIsos_inverse_obj_ι E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f g : X ⟶ Y} {X' Y' : C} {f' g' : X' ⟶ Y'}
  (e₀ : X ≅ X') (e₁ : Y ≅ Y')
  (comm₁ :
    autoParam (CategoryTheory.CategoryStruct.comp e₀.hom f' = CategoryTheory.CategoryStruct.comp f e₁.hom)
      CategoryTheory.Limits.Fork.equivOfIsos_inverse_obj_ι._auto_1)
  (comm₂ :
    autoParam (CategoryTheory.CategoryStruct.comp e₀.hom g' = CategoryTheory.CategoryStruct.comp g e₁.hom)
      CategoryTheory.Limits.Fork.equivOfIsos_inverse_obj_ι._auto_3)
  (c : CategoryTheory.Limits.Fork f' g'),
  ((CategoryTheory.Limits.Fork.equivOfIsos e₀ e₁ comm₁ comm₂).inverse.obj c).ι =
    CategoryTheory.CategoryStruct.comp c.ι e₀.inv

def CategoryTheory.Limits.Fork.isLimitEquivOfIsos E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      {f g : X ⟶ Y} →
        {X' Y' : C} →
          (c : CategoryTheory.Limits.Fork f g) →
            {f' g' : X' ⟶ Y'} →
              (c' : CategoryTheory.Limits.Fork f' g') →
                (e₀ : X ≅ X') →
                  (e₁ : Y ≅ Y') →
                    (e : c.pt ≅ c'.pt) →
                      autoParam
                          (CategoryTheory.CategoryStruct.comp e₀.hom f' = CategoryTheory.CategoryStruct.comp f e₁.hom)
                          CategoryTheory.Limits.Fork.isLimitEquivOfIsos._auto_1 →
                        autoParam
                            (CategoryTheory.CategoryStruct.comp e₀.hom g' = CategoryTheory.CategoryStruct.comp g e₁.hom)
                            CategoryTheory.Limits.Fork.isLimitEquivOfIsos._auto_3 →
                          autoParam
                              (CategoryTheory.CategoryStruct.comp e.hom c'.ι =
                                CategoryTheory.CategoryStruct.comp c.ι e₀.hom)
                              CategoryTheory.Limits.Fork.isLimitEquivOfIsos._auto_5 →
                            CategoryTheory.Limits.IsLimit c ≃ CategoryTheory.Limits.IsLimit c'

Given two forks with isomorphic components in such a way that the natural diagrams commute, then one is a limit if and only if the other one is.

def CategoryTheory.Limits.Fork.isLimitOfIsos E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {X' Y' : C} →
          (c : CategoryTheory.Limits.Fork f g) →
            CategoryTheory.Limits.IsLimit c →
              {f' g' : X' ⟶ Y'} →
                (c' : CategoryTheory.Limits.Fork f' g') →
                  (e₀ : X ≅ X') →
                    (e₁ : Y ≅ Y') →
                      (e : c.pt ≅ c'.pt) →
                        autoParam
                            (CategoryTheory.CategoryStruct.comp e₀.hom f' = CategoryTheory.CategoryStruct.comp f e₁.hom)
                            CategoryTheory.Limits.Fork.isLimitOfIsos._auto_1 →
                          autoParam
                              (CategoryTheory.CategoryStruct.comp e₀.hom g' =
                                CategoryTheory.CategoryStruct.comp g e₁.hom)
                              CategoryTheory.Limits.Fork.isLimitOfIsos._auto_3 →
                            autoParam
                                (CategoryTheory.CategoryStruct.comp e.hom c'.ι =
                                  CategoryTheory.CategoryStruct.comp c.ι e₀.hom)
                                CategoryTheory.Limits.Fork.isLimitOfIsos._auto_5 →
                              CategoryTheory.Limits.IsLimit c'

Given two forks with isomorphic components in such a way that the natural diagrams commute, then if one is a limit, then the other one is as well.

theorem CategoryTheory.Limits.Cofork.π_comp_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  {s t : CategoryTheory.Limits.Cofork f g} (f_1 : s ⟶ t), CategoryTheory.CategoryStruct.comp s.π f_1.hom = t.π

theorem CategoryTheory.Limits.Cofork.π_comp_hom_assoc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  {s t : CategoryTheory.Limits.Cofork f g} (f_1 : s ⟶ t) {Z : C} (h : t.pt ⟶ Z),
  CategoryTheory.CategoryStruct.comp s.π (CategoryTheory.CategoryStruct.comp f_1.hom h) =
    CategoryTheory.CategoryStruct.comp t.π h

def CategoryTheory.Limits.Cofork.ext E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {s t : CategoryTheory.Limits.Cofork f g} →
          (i : s.pt ≅ t.pt) →
            autoParam (CategoryTheory.CategoryStruct.comp s.π i.hom = t.π) CategoryTheory.Limits.Cofork.ext._auto_1 →
              (s ≅ t)

To construct an isomorphism between coforks, it suffices to give an isomorphism between the cocone points and check that it commutes with the π morphisms.

theorem CategoryTheory.Limits.Cofork.ext_inv E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  {s t : CategoryTheory.Limits.Cofork f g} (i : s.pt ≅ t.pt)
  (w : autoParam (CategoryTheory.CategoryStruct.comp s.π i.hom = t.π) CategoryTheory.Limits.Cofork.ext._auto_1),
  (CategoryTheory.Limits.Cofork.ext i w).inv = CategoryTheory.Limits.Cofork.mkHom i.inv ⋯

theorem CategoryTheory.Limits.Cofork.ext_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  {s t : CategoryTheory.Limits.Cofork f g} (i : s.pt ≅ t.pt)
  (w : autoParam (CategoryTheory.CategoryStruct.comp s.π i.hom = t.π) CategoryTheory.Limits.Cofork.ext._auto_1),
  (CategoryTheory.Limits.Cofork.ext i w).hom = CategoryTheory.Limits.Cofork.mkHom i.hom w

def CategoryTheory.Limits.Cofork.isColimitEquivOfIsos E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      {f g : X ⟶ Y} →
        {X' Y' : C} →
          (c : CategoryTheory.Limits.Cofork f g) →
            {f' g' : X' ⟶ Y'} →
              (c' : CategoryTheory.Limits.Cofork f' g') →
                (e₀ : X ≅ X') →
                  (e₁ : Y ≅ Y') →
                    (e : c.pt ≅ c'.pt) →
                      autoParam
                          (CategoryTheory.CategoryStruct.comp e₀.hom f' = CategoryTheory.CategoryStruct.comp f e₁.hom)
                          CategoryTheory.Limits.Cofork.isColimitEquivOfIsos._auto_1 →
                        autoParam
                            (CategoryTheory.CategoryStruct.comp e₀.hom g' = CategoryTheory.CategoryStruct.comp g e₁.hom)
                            CategoryTheory.Limits.Cofork.isColimitEquivOfIsos._auto_3 →
                          autoParam
                              (CategoryTheory.CategoryStruct.comp e₁.inv
                                  (CategoryTheory.CategoryStruct.comp c.π e.hom) =
                                c'.π)
                              CategoryTheory.Limits.Cofork.isColimitEquivOfIsos._auto_5 →
                            CategoryTheory.Limits.IsColimit c ≃ CategoryTheory.Limits.IsColimit c'

Given two coforks with isomorphic components in such a way that the natural diagrams commute, then one is a colimit if and only if the other one is.

def CategoryTheory.Limits.Cofork.isColimitOfIsos E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {X' Y' : C} →
          (c : CategoryTheory.Limits.Cofork f g) →
            CategoryTheory.Limits.IsColimit c →
              {f' g' : X' ⟶ Y'} →
                (c' : CategoryTheory.Limits.Cofork f' g') →
                  (e₀ : X ≅ X') →
                    (e₁ : Y ≅ Y') →
                      (e : c.pt ≅ c'.pt) →
                        autoParam
                            (CategoryTheory.CategoryStruct.comp e₀.hom f' = CategoryTheory.CategoryStruct.comp f e₁.hom)
                            CategoryTheory.Limits.Cofork.isColimitOfIsos._auto_1 →
                          autoParam
                              (CategoryTheory.CategoryStruct.comp e₀.hom g' =
                                CategoryTheory.CategoryStruct.comp g e₁.hom)
                              CategoryTheory.Limits.Cofork.isColimitOfIsos._auto_3 →
                            autoParam
                                (CategoryTheory.CategoryStruct.comp e₁.inv
                                    (CategoryTheory.CategoryStruct.comp c.π e.hom) =
                                  c'.π)
                                CategoryTheory.Limits.Cofork.isColimitOfIsos._auto_5 →
                              CategoryTheory.Limits.IsColimit c'

Given two coforks with isomorphic components in such a way that the natural diagrams commute, then if one is a colimit, then the other one is as well.

abbrev CategoryTheory.Limits.HasEqualizer E1 #

{C : Type u} → {X Y : C} → [inst : CategoryTheory.Category.{v, u} C] → (X ⟶ Y) → (X ⟶ Y) → Prop

Two parallel morphisms f and g have an equalizer if the diagram parallelPair f g has a limit.

abbrev CategoryTheory.Limits.HasCoequalizer E1 #

{C : Type u} → {X Y : C} → [inst : CategoryTheory.Category.{v, u} C] → (Y ⟶ X) → (Y ⟶ X) → Prop

Two parallel morphisms f and g have a coequalizer if the diagram parallelPair f g has a colimit.

abbrev CategoryTheory.Limits.equalizer E3 #

{C : Type u} →
  {X Y : C} → [inst : CategoryTheory.Category.{v, u} C] → (f g : X ⟶ Y) → [CategoryTheory.Limits.HasEqualizer f g] → C

If an equalizer of f and g exists, we can access an arbitrary choice of such by saying equalizer f g.

abbrev CategoryTheory.Limits.coequalizer E1 #

{C : Type u} →
  {X Y : C} → [inst : CategoryTheory.Category.{v, u} C] → (f g : Y ⟶ X) → [CategoryTheory.Limits.HasCoequalizer f g] → C

If a coequalizer of f and g exists, we can access an arbitrary choice of such by saying coequalizer f g.

abbrev CategoryTheory.Limits.equalizer.ι E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (f g : X ⟶ Y) → [inst_1 : CategoryTheory.Limits.HasEqualizer f g] → CategoryTheory.Limits.equalizer f g ⟶ X

If an equalizer of f and g exists, we can access the inclusion equalizer f g ⟶ X by saying equalizer.ι f g.

abbrev CategoryTheory.Limits.coequalizer.π E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (f g : Y ⟶ X) → [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] → X ⟶ CategoryTheory.Limits.coequalizer f g

If a coequalizer of f and g exists, we can access the corresponding projection by saying coequalizer.π f g.

abbrev CategoryTheory.Limits.equalizer.fork E3 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (f g : X ⟶ Y) → [CategoryTheory.Limits.HasEqualizer f g] → CategoryTheory.Limits.Fork f g

An equalizer cone for a parallel pair f and g

abbrev CategoryTheory.Limits.coequalizer.cofork E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (f g : Y ⟶ X) → [CategoryTheory.Limits.HasCoequalizer f g] → CategoryTheory.Limits.Cofork f g

An arbitrary choice of coequalizer cocone for a parallel pair f and g.

theorem CategoryTheory.Limits.equalizer.fork_ι E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g],
  (CategoryTheory.Limits.equalizer.fork f g).ι = CategoryTheory.Limits.equalizer.ι f g

theorem CategoryTheory.Limits.coequalizer.cofork_π E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : Y ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g],
  (CategoryTheory.Limits.coequalizer.cofork f g).π = CategoryTheory.Limits.coequalizer.π f g

theorem CategoryTheory.Limits.equalizer.fork_π_app_zero E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g],
  (CategoryTheory.Limits.equalizer.fork f g).π.app CategoryTheory.Limits.WalkingParallelPair.zero =
    CategoryTheory.Limits.equalizer.ι f g

theorem CategoryTheory.Limits.coequalizer.cofork_ι_app_one E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : Y ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g],
  (CategoryTheory.Limits.coequalizer.cofork f g).ι.app CategoryTheory.Limits.WalkingParallelPair.one =
    CategoryTheory.Limits.coequalizer.π f g

theorem CategoryTheory.Limits.coequalizer.condition E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : Y ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g],
  CategoryTheory.CategoryStruct.comp f (CategoryTheory.Limits.coequalizer.π f g) =
    CategoryTheory.CategoryStruct.comp g (CategoryTheory.Limits.coequalizer.π f g)

theorem CategoryTheory.Limits.equalizer.condition E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizer.ι f g) f =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizer.ι f g) g

theorem CategoryTheory.Limits.equalizer.condition_assoc E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g] {Z : C} (h : Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizer.ι f g) (CategoryTheory.CategoryStruct.comp f h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizer.ι f g) (CategoryTheory.CategoryStruct.comp g h)

theorem CategoryTheory.Limits.coequalizer.condition_assoc E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : Y ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] {Z : C} (h : CategoryTheory.Limits.coequalizer f g ⟶ Z),
  CategoryTheory.CategoryStruct.comp f
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g) h) =
    CategoryTheory.CategoryStruct.comp g
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g) h)

def CategoryTheory.Limits.equalizerIsEqualizer E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (f g : X ⟶ Y) →
        [inst_1 : CategoryTheory.Limits.HasEqualizer f g] →
          CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.Fork.ofι (CategoryTheory.Limits.equalizer.ι f g) ⋯)

The equalizer built from equalizer.ι f g is limiting.

def CategoryTheory.Limits.coequalizerIsCoequalizer E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (f g : Y ⟶ X) →
        [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] →
          CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.Cofork.ofπ (CategoryTheory.Limits.coequalizer.π f g) ⋯)

The cofork built from coequalizer.π f g is colimiting.

abbrev CategoryTheory.Limits.equalizer.lift E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        [inst_1 : CategoryTheory.Limits.HasEqualizer f g] →
          {W : C} →
            (k : W ⟶ X) →
              CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g →
                (W ⟶ CategoryTheory.Limits.equalizer f g)

A morphism k : W ⟶ X satisfying k ≫ f = k ≫ g factors through the equalizer of f and g via equalizer.lift : W ⟶ equalizer f g.

abbrev CategoryTheory.Limits.coequalizer.desc E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} →
        [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] →
          {W : C} →
            (k : X ⟶ W) →
              CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k →
                (CategoryTheory.Limits.coequalizer f g ⟶ W)

Any morphism k : Y ⟶ W satisfying f ≫ k = g ≫ k factors through the coequalizer of f and g via coequalizer.desc : coequalizer f g ⟶ W.

theorem CategoryTheory.Limits.equalizer.lift_ι E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g] {W : C} (k : W ⟶ X)
  (h : CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizer.lift k h)
      (CategoryTheory.Limits.equalizer.ι f g) =
    k

theorem CategoryTheory.Limits.equalizer.lift_ι_assoc E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g] {W : C} (k : W ⟶ X)
  (h : CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g) {Z : C} (h_1 : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizer.lift k h)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizer.ι f g) h_1) =
    CategoryTheory.CategoryStruct.comp k h_1

theorem CategoryTheory.Limits.coequalizer.π_desc_assoc E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] {W : C} (k : X ⟶ W)
  (h : CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k) {Z : C} (h_1 : W ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.desc k h) h_1) =
    CategoryTheory.CategoryStruct.comp k h_1

theorem CategoryTheory.Limits.coequalizer.π_desc E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] {W : C} (k : X ⟶ W)
  (h : CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g)
      (CategoryTheory.Limits.coequalizer.desc k h) =
    k

def CategoryTheory.Limits.equalizer.lift' E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        [inst_1 : CategoryTheory.Limits.HasEqualizer f g] →
          {W : C} →
            (k : W ⟶ X) →
              CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g →
                { l // CategoryTheory.CategoryStruct.comp l (CategoryTheory.Limits.equalizer.ι f g) = k }

A morphism k : W ⟶ X satisfying k ≫ f = k ≫ g induces a morphism l : W ⟶ equalizer f g satisfying l ≫ equalizer.ι f g = k.

def CategoryTheory.Limits.coequalizer.desc' E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} →
        [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] →
          {W : C} →
            (k : X ⟶ W) →
              CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k →
                { l // CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g) l = k }

Any morphism k : Y ⟶ W satisfying f ≫ k = g ≫ k induces a morphism l : coequalizer f g ⟶ W satisfying coequalizer.π ≫ g = l.

theorem CategoryTheory.Limits.equalizer.hom_ext E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g] {W : C} {k l : W ⟶ CategoryTheory.Limits.equalizer f g},
  CategoryTheory.CategoryStruct.comp k (CategoryTheory.Limits.equalizer.ι f g) =
      CategoryTheory.CategoryStruct.comp l (CategoryTheory.Limits.equalizer.ι f g) →
    k = l

Two maps into an equalizer are equal if they are equal when composed with the equalizer map.

theorem CategoryTheory.Limits.coequalizer.hom_ext E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] {W : C} {k l : CategoryTheory.Limits.coequalizer f g ⟶ W},
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g) k =
      CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g) l →
    k = l

Two maps from a coequalizer are equal if they are equal when composed with the coequalizer map

theorem CategoryTheory.Limits.coequalizer.hom_ext_iff E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] {W : C} {k l : CategoryTheory.Limits.coequalizer f g ⟶ W},
  k = l ↔
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g) k =
      CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g) l

theorem CategoryTheory.Limits.equalizer.hom_ext_iff E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g] {W : C} {k l : W ⟶ CategoryTheory.Limits.equalizer f g},
  k = l ↔
    CategoryTheory.CategoryStruct.comp k (CategoryTheory.Limits.equalizer.ι f g) =
      CategoryTheory.CategoryStruct.comp l (CategoryTheory.Limits.equalizer.ι f g)

theorem CategoryTheory.Limits.equalizer.existsUnique E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g] {W : C} (k : W ⟶ X),
  CategoryTheory.CategoryStruct.comp k f = CategoryTheory.CategoryStruct.comp k g →
    ∃! l, CategoryTheory.CategoryStruct.comp l (CategoryTheory.Limits.equalizer.ι f g) = k

theorem CategoryTheory.Limits.coequalizer.existsUnique E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] {W : C} (k : X ⟶ W),
  CategoryTheory.CategoryStruct.comp f k = CategoryTheory.CategoryStruct.comp g k →
    ∃! l, CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g) l = k

instance CategoryTheory.Limits.equalizer.ι_mono E3 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g], CategoryTheory.Mono (CategoryTheory.Limits.equalizer.ι f g)

An equalizer morphism is a monomorphism

instance CategoryTheory.Limits.coequalizer.π_epi E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g], CategoryTheory.Epi (CategoryTheory.Limits.coequalizer.π f g)

A coequalizer morphism is an epimorphism

theorem CategoryTheory.Limits.mono_of_isLimit_fork E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {c : CategoryTheory.Limits.Fork f g}
  (i : CategoryTheory.Limits.IsLimit c), CategoryTheory.Mono c.ι

The equalizer morphism in any limit cone is a monomorphism.

theorem CategoryTheory.Limits.epi_of_isColimit_cofork E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {c : CategoryTheory.Limits.Cofork f g}
  (i : CategoryTheory.Limits.IsColimit c), CategoryTheory.Epi c.π

The coequalizer morphism in any colimit cocone is an epimorphism.

def CategoryTheory.Limits.idFork E1 #

{C : Type u} →
  {X Y : C} → [inst : CategoryTheory.Category.{v, u} C] → {f g : X ⟶ Y} → f = g → CategoryTheory.Limits.Fork f g

The identity determines a cone on the equalizer diagram of f and g if f = g.

def CategoryTheory.Limits.idCofork E1 #

{C : Type u} →
  {X Y : C} → [inst : CategoryTheory.Category.{v, u} C] → {f g : Y ⟶ X} → f = g → CategoryTheory.Limits.Cofork f g

The identity determines a cocone on the coequalizer diagram of f and g, if f = g.

def CategoryTheory.Limits.isLimitIdFork E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} → (h : f = g) → CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.idFork h)

The identity on X is an equalizer of (f, g), if f = g.

def CategoryTheory.Limits.isColimitIdCofork E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} → (h : f = g) → CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.idCofork h)

The identity on Y is a coequalizer of (f, g), where f = g.

theorem CategoryTheory.Limits.isIso_limit_cone_parallelPair_of_eq E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y},
  f = g → ∀ {c : CategoryTheory.Limits.Fork f g} (h : CategoryTheory.Limits.IsLimit c), CategoryTheory.IsIso c.ι

Every equalizer of (f, g), where f = g, is an isomorphism.

theorem CategoryTheory.Limits.isIso_colimit_cocone_parallelPair_of_eq E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X},
  f = g → ∀ {c : CategoryTheory.Limits.Cofork f g} (h : CategoryTheory.Limits.IsColimit c), CategoryTheory.IsIso c.π

Every coequalizer of (f, g), where f = g, is an isomorphism.

theorem CategoryTheory.Limits.equalizer.ι_of_eq E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g],
  f = g → CategoryTheory.IsIso (CategoryTheory.Limits.equalizer.ι f g)

The equalizer of (f, g), where f = g, is an isomorphism.

theorem CategoryTheory.Limits.coequalizer.π_of_eq E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X}
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g],
  f = g → CategoryTheory.IsIso (CategoryTheory.Limits.coequalizer.π f g)

The coequalizer of (f, g), where f = g, is an isomorphism.

theorem CategoryTheory.Limits.isIso_limit_cone_parallelPair_of_self E3 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f : X ⟶ Y} {c : CategoryTheory.Limits.Fork f f}
  (h : CategoryTheory.Limits.IsLimit c), CategoryTheory.IsIso c.ι

Every equalizer of (f, f) is an isomorphism.

theorem CategoryTheory.Limits.isIso_colimit_cocone_parallelPair_of_self E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f : Y ⟶ X} {c : CategoryTheory.Limits.Cofork f f}
  (h : CategoryTheory.Limits.IsColimit c), CategoryTheory.IsIso c.π

Every coequalizer of (f, f) is an isomorphism.

theorem CategoryTheory.Limits.isIso_limit_cone_parallelPair_of_epi E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {c : CategoryTheory.Limits.Fork f g}
  (h : CategoryTheory.Limits.IsLimit c) [CategoryTheory.Epi c.ι], CategoryTheory.IsIso c.ι

An equalizer that is an epimorphism is an isomorphism.

theorem CategoryTheory.Limits.isIso_colimit_cocone_parallelPair_of_mono E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : Y ⟶ X} {c : CategoryTheory.Limits.Cofork f g}
  (h : CategoryTheory.Limits.IsColimit c) [CategoryTheory.Mono c.π], CategoryTheory.IsIso c.π

A coequalizer that is a monomorphism is an isomorphism.

instance CategoryTheory.Limits.hasCoequalizer_of_self E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : Y ⟶ X), CategoryTheory.Limits.HasCoequalizer f f

instance CategoryTheory.Limits.hasEqualizer_of_self E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : X ⟶ Y), CategoryTheory.Limits.HasEqualizer f f

instance CategoryTheory.Limits.equalizer.ι_of_self E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : X ⟶ Y),
  CategoryTheory.IsIso (CategoryTheory.Limits.equalizer.ι f f)

The equalizer inclusion for (f, f) is an isomorphism.

instance CategoryTheory.Limits.coequalizer.π_of_self E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : Y ⟶ X),
  CategoryTheory.IsIso (CategoryTheory.Limits.coequalizer.π f f)

The coequalizer projection for (f, f) is an isomorphism.

def CategoryTheory.Limits.equalizer.isoSourceOfSelf E1 #

{C : Type u} →
  {X Y : C} → [inst : CategoryTheory.Category.{v, u} C] → (f : X ⟶ Y) → CategoryTheory.Limits.equalizer f f ≅ X

The equalizer of a morphism with itself is isomorphic to the source.

def CategoryTheory.Limits.coequalizer.isoTargetOfSelf E1 #

{C : Type u} →
  {X Y : C} → [inst : CategoryTheory.Category.{v, u} C] → (f : Y ⟶ X) → CategoryTheory.Limits.coequalizer f f ≅ X

The coequalizer of a morphism with itself is isomorphic to the target.

theorem CategoryTheory.Limits.coequalizer.isoTargetOfSelf_inv E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : Y ⟶ X),
  (CategoryTheory.Limits.coequalizer.isoTargetOfSelf f).inv = CategoryTheory.Limits.coequalizer.π f f

theorem CategoryTheory.Limits.equalizer.isoSourceOfSelf_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : X ⟶ Y),
  (CategoryTheory.Limits.equalizer.isoSourceOfSelf f).hom = CategoryTheory.Limits.equalizer.ι f f

theorem CategoryTheory.Limits.coequalizer.isoTargetOfSelf_hom E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : Y ⟶ X),
  (CategoryTheory.Limits.coequalizer.isoTargetOfSelf f).hom =
    CategoryTheory.Limits.coequalizer.desc (CategoryTheory.CategoryStruct.id X) ⋯

theorem CategoryTheory.Limits.equalizer.isoSourceOfSelf_inv E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : X ⟶ Y),
  (CategoryTheory.Limits.equalizer.isoSourceOfSelf f).inv =
    CategoryTheory.Limits.equalizer.lift (CategoryTheory.CategoryStruct.id X) ⋯

def CategoryTheory.Limits.precompFork E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {Z : C} →
          (h : Z ⟶ X) →
            (s : CategoryTheory.Limits.Fork f g) →
              CategoryTheory.Limits.PullbackCone s.ι h →
                CategoryTheory.Limits.Fork (CategoryTheory.CategoryStruct.comp h f)
                  (CategoryTheory.CategoryStruct.comp h g)

Given a fork s on morphisms f, g : X ⟶ Y and a pullback cone c on s.ι : s.pt ⟶ X and a morphism h : Z ⟶ X, the projection c.snd : c.pt ⟶ Z induces a fork on h ≫ f and h ≫ g.

c.pt → Z
|      |
v      v
s.pt → X ⇉ Y

def CategoryTheory.Limits.liftPrecomp E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {Z : C} →
          (h : Z ⟶ X) →
            {s : CategoryTheory.Limits.Fork f g} →
              CategoryTheory.Limits.IsLimit s →
                {c : CategoryTheory.Limits.PullbackCone s.ι h} →
                  CategoryTheory.Limits.IsLimit c →
                    (s' :
                        CategoryTheory.Limits.Fork (CategoryTheory.CategoryStruct.comp h f)
                          (CategoryTheory.CategoryStruct.comp h g)) →
                      s'.pt ⟶ (CategoryTheory.Limits.precompFork h s c).pt

Any fork on h ≫ f and h ≫ g lifts to a pullback along h of an equalizer of f and g.

def CategoryTheory.Limits.isLimitPrecompFork E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {Z : C} →
          (h : Z ⟶ X) →
            {s : CategoryTheory.Limits.Fork f g} →
              CategoryTheory.Limits.IsLimit s →
                {c : CategoryTheory.Limits.PullbackCone s.ι h} →
                  CategoryTheory.Limits.IsLimit c →
                    CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.precompFork h s c)

The pullback of an equalizer is an equalizer.

theorem CategoryTheory.Limits.hasEqualizer_precomp_of_equalizer E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {Z : C} (h : Z ⟶ X)
  {s : CategoryTheory.Limits.Fork f g} (hs : CategoryTheory.Limits.IsLimit s)
  {c : CategoryTheory.Limits.PullbackCone s.ι h} (hc : CategoryTheory.Limits.IsLimit c),
  CategoryTheory.Limits.HasEqualizer (CategoryTheory.CategoryStruct.comp h f) (CategoryTheory.CategoryStruct.comp h g)

instance CategoryTheory.Limits.hasEqualizer_precomp_of_hasEqualizer E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y} {Z : C} (h : Z ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasEqualizer f g]
  [CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.equalizer.ι f g) h],
  CategoryTheory.Limits.HasEqualizer (CategoryTheory.CategoryStruct.comp h f) (CategoryTheory.CategoryStruct.comp h g)

theorem CategoryTheory.Limits.coequalizer.π_colimMap_desc E1 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] {f g : X ⟶ Y}
  [inst_1 : CategoryTheory.Limits.HasCoequalizer f g] {X' Y' Z : C} (f' g' : X' ⟶ Y')
  [inst_2 : CategoryTheory.Limits.HasCoequalizer f' g'] (p : X ⟶ X') (q : Y ⟶ Y')
  (wf : CategoryTheory.CategoryStruct.comp f q = CategoryTheory.CategoryStruct.comp p f')
  (wg : CategoryTheory.CategoryStruct.comp g q = CategoryTheory.CategoryStruct.comp p g') (h : Y' ⟶ Z)
  (wh : CategoryTheory.CategoryStruct.comp f' h = CategoryTheory.CategoryStruct.comp g' h),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π f g)
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.colimMap (CategoryTheory.Limits.parallelPairHom f g f' g' p q wf wg))
        (CategoryTheory.Limits.coequalizer.desc h wh)) =
    CategoryTheory.CategoryStruct.comp q h

def CategoryTheory.Limits.equalizerComparison E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (f g : X ⟶ Y) →
        {D : Type u₂} →
          [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
            (G : CategoryTheory.Functor C D) →
              [inst_2 : CategoryTheory.Limits.HasEqualizer f g] →
                [inst_3 : CategoryTheory.Limits.HasEqualizer (G.map f) (G.map g)] →
                  G.obj (CategoryTheory.Limits.equalizer f g) ⟶ CategoryTheory.Limits.equalizer (G.map f) (G.map g)

The comparison morphism for the equalizer of (f, g). This is an isomorphism iff G preserves the equalizer of (f, g); see Mathlib/CategoryTheory/Limits/Preserves/Shapes/Equalizers.lean

def CategoryTheory.Limits.coequalizerComparison E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (f g : Y ⟶ X) →
        {D : Type u₂} →
          [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
            (G : CategoryTheory.Functor C D) →
              [inst_2 : CategoryTheory.Limits.HasCoequalizer f g] →
                [inst_3 : CategoryTheory.Limits.HasCoequalizer (G.map f) (G.map g)] →
                  CategoryTheory.Limits.coequalizer (G.map f) (G.map g) ⟶ G.obj (CategoryTheory.Limits.coequalizer f g)

The comparison morphism for the coequalizer of (f, g).

theorem CategoryTheory.Limits.equalizerComparison_comp_π E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y) {D : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} D] (G : CategoryTheory.Functor C D)
  [inst_2 : CategoryTheory.Limits.HasEqualizer f g] [inst_3 : CategoryTheory.Limits.HasEqualizer (G.map f) (G.map g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizerComparison f g G)
      (CategoryTheory.Limits.equalizer.ι (G.map f) (G.map g)) =
    G.map (CategoryTheory.Limits.equalizer.ι f g)

theorem CategoryTheory.Limits.ι_comp_coequalizerComparison_assoc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : Y ⟶ X) {D : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} D] (G : CategoryTheory.Functor C D)
  [inst_2 : CategoryTheory.Limits.HasCoequalizer f g]
  [inst_3 : CategoryTheory.Limits.HasCoequalizer (G.map f) (G.map g)] {Z : D}
  (h : G.obj (CategoryTheory.Limits.coequalizer f g) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π (G.map f) (G.map g))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizerComparison f g G) h) =
    CategoryTheory.CategoryStruct.comp (G.map (CategoryTheory.Limits.coequalizer.π f g)) h

theorem CategoryTheory.Limits.ι_comp_coequalizerComparison E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : Y ⟶ X) {D : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} D] (G : CategoryTheory.Functor C D)
  [inst_2 : CategoryTheory.Limits.HasCoequalizer f g]
  [inst_3 : CategoryTheory.Limits.HasCoequalizer (G.map f) (G.map g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.π (G.map f) (G.map g))
      (CategoryTheory.Limits.coequalizerComparison f g G) =
    G.map (CategoryTheory.Limits.coequalizer.π f g)

theorem CategoryTheory.Limits.equalizerComparison_comp_π_assoc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y) {D : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} D] (G : CategoryTheory.Functor C D)
  [inst_2 : CategoryTheory.Limits.HasEqualizer f g] [inst_3 : CategoryTheory.Limits.HasEqualizer (G.map f) (G.map g)]
  {Z : D} (h : G.obj X ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizerComparison f g G)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizer.ι (G.map f) (G.map g)) h) =
    CategoryTheory.CategoryStruct.comp (G.map (CategoryTheory.Limits.equalizer.ι f g)) h

theorem CategoryTheory.Limits.coequalizerComparison_map_desc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : Y ⟶ X) {D : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} D] (G : CategoryTheory.Functor C D)
  [inst_2 : CategoryTheory.Limits.HasCoequalizer f g]
  [inst_3 : CategoryTheory.Limits.HasCoequalizer (G.map f) (G.map g)] {Z : C} {h : X ⟶ Z}
  (w : CategoryTheory.CategoryStruct.comp f h = CategoryTheory.CategoryStruct.comp g h),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizerComparison f g G)
      (G.map (CategoryTheory.Limits.coequalizer.desc h w)) =
    CategoryTheory.Limits.coequalizer.desc (G.map h) ⋯

theorem CategoryTheory.Limits.coequalizerComparison_map_desc_assoc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : Y ⟶ X) {D : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} D] (G : CategoryTheory.Functor C D)
  [inst_2 : CategoryTheory.Limits.HasCoequalizer f g]
  [inst_3 : CategoryTheory.Limits.HasCoequalizer (G.map f) (G.map g)] {Z : C} {h : X ⟶ Z}
  (w : CategoryTheory.CategoryStruct.comp f h = CategoryTheory.CategoryStruct.comp g h) {Z_1 : D} (h_1 : G.obj Z ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizerComparison f g G)
      (CategoryTheory.CategoryStruct.comp (G.map (CategoryTheory.Limits.coequalizer.desc h w)) h_1) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.coequalizer.desc (G.map h) ⋯) h_1

theorem CategoryTheory.Limits.map_lift_equalizerComparison_assoc E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y) {D : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} D] (G : CategoryTheory.Functor C D)
  [inst_2 : CategoryTheory.Limits.HasEqualizer f g] [inst_3 : CategoryTheory.Limits.HasEqualizer (G.map f) (G.map g)]
  {Z : C} {h : Z ⟶ X} (w : CategoryTheory.CategoryStruct.comp h f = CategoryTheory.CategoryStruct.comp h g) {Z_1 : D}
  (h_1 : CategoryTheory.Limits.equalizer (G.map f) (G.map g) ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (G.map (CategoryTheory.Limits.equalizer.lift h w))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizerComparison f g G) h_1) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.equalizer.lift (G.map h) ⋯) h_1

theorem CategoryTheory.Limits.map_lift_equalizerComparison E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y) {D : Type u₂}
  [inst_1 : CategoryTheory.Category.{v₂, u₂} D] (G : CategoryTheory.Functor C D)
  [inst_2 : CategoryTheory.Limits.HasEqualizer f g] [inst_3 : CategoryTheory.Limits.HasEqualizer (G.map f) (G.map g)]
  {Z : C} {h : Z ⟶ X} (w : CategoryTheory.CategoryStruct.comp h f = CategoryTheory.CategoryStruct.comp h g),
  CategoryTheory.CategoryStruct.comp (G.map (CategoryTheory.Limits.equalizer.lift h w))
      (CategoryTheory.Limits.equalizerComparison f g G) =
    CategoryTheory.Limits.equalizer.lift (G.map h) ⋯

abbrev CategoryTheory.Limits.HasEqualizers E1 #

(C : Type u) → [CategoryTheory.Category.{v, u} C] → Prop

A category HasEqualizers if it has all limits of shape WalkingParallelPair, i.e. if it has an equalizer for every parallel pair of morphisms.

abbrev CategoryTheory.Limits.HasCoequalizers E1 #

(C : Type u) → [CategoryTheory.Category.{v, u} C] → Prop

A category HasCoequalizers if it has all colimits of shape WalkingParallelPair, i.e. if it has a coequalizer for every parallel pair of morphisms.

theorem CategoryTheory.Limits.hasEqualizers_of_hasLimit_parallelPair E1 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C]
  [∀ {X Y : C} {f g : X ⟶ Y}, CategoryTheory.Limits.HasLimit (CategoryTheory.Limits.parallelPair f g)],
  CategoryTheory.Limits.HasEqualizers C

If C has all limits of diagrams parallelPair f g, then it has all equalizers

theorem CategoryTheory.Limits.hasCoequalizers_of_hasColimit_parallelPair E1 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C]
  [∀ {X Y : C} {f g : Y ⟶ X}, CategoryTheory.Limits.HasColimit (CategoryTheory.Limits.parallelPair f g)],
  CategoryTheory.Limits.HasCoequalizers C

If C has all colimits of diagrams parallelPair f g, then it has all coequalizers

def CategoryTheory.Limits.coneOfIsSplitMono E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (f : X ⟶ Y) →
        [inst_1 : CategoryTheory.IsSplitMono f] →
          CategoryTheory.Limits.Fork (CategoryTheory.CategoryStruct.id Y)
            (CategoryTheory.CategoryStruct.comp (CategoryTheory.retraction f) f)

A split mono f equalizes (retraction f ≫ f) and (𝟙 Y). Here we build the cone, and show in isSplitMonoEqualizes that it is a limit cone.

theorem CategoryTheory.Limits.coneOfIsSplitMono_π_app E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : X ⟶ Y) [inst_1 : CategoryTheory.IsSplitMono f]
  (X_1 : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.coneOfIsSplitMono f).π.app X_1 =
    CategoryTheory.Limits.WalkingParallelPair.casesOn (motive := fun t ↦
      X_1 = t →
        (((CategoryTheory.Functor.const CategoryTheory.Limits.WalkingParallelPair).obj X).obj X_1 ⟶
          (CategoryTheory.Limits.parallelPair (CategoryTheory.CategoryStruct.id Y)
                (CategoryTheory.CategoryStruct.comp (CategoryTheory.retraction f) f)).obj
            X_1))
      X_1 (fun h ↦ ⋯ ▸ f) (fun h ↦ ⋯ ▸ CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.id Y)) ⋯

def CategoryTheory.Limits.coconeOfIsSplitEpi E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (f : Y ⟶ X) →
        [inst_1 : CategoryTheory.IsSplitEpi f] →
          CategoryTheory.Limits.Cofork (CategoryTheory.CategoryStruct.id Y)
            (CategoryTheory.CategoryStruct.comp f (CategoryTheory.section_ f))

A split epi f coequalizes (f ≫ section_ f) and (𝟙 X). Here we build the cocone, and show in isSplitEpiCoequalizes that it is a colimit cocone.

theorem CategoryTheory.Limits.coconeOfIsSplitEpi_pt E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : Y ⟶ X) [inst_1 : CategoryTheory.IsSplitEpi f],
  (CategoryTheory.Limits.coconeOfIsSplitEpi f).pt = X

theorem CategoryTheory.Limits.coconeOfIsSplitEpi_ι_app E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : Y ⟶ X) [inst_1 : CategoryTheory.IsSplitEpi f]
  (X_1 : CategoryTheory.Limits.WalkingParallelPair),
  (CategoryTheory.Limits.coconeOfIsSplitEpi f).ι.app X_1 =
    CategoryTheory.Limits.WalkingParallelPair.casesOn (motive := fun t ↦
      X_1 = t →
        ((CategoryTheory.Limits.parallelPair (CategoryTheory.CategoryStruct.id Y)
                (CategoryTheory.CategoryStruct.comp f (CategoryTheory.section_ f))).obj
            X_1 ⟶
          ((CategoryTheory.Functor.const CategoryTheory.Limits.WalkingParallelPair).obj X).obj X_1))
      X_1 (fun h ↦ ⋯ ▸ CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.id Y) f) (fun h ↦ ⋯ ▸ f) ⋯

theorem CategoryTheory.Limits.coneOfIsSplitMono_pt E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : X ⟶ Y) [inst_1 : CategoryTheory.IsSplitMono f],
  (CategoryTheory.Limits.coneOfIsSplitMono f).pt = X

theorem CategoryTheory.Limits.coneOfIsSplitMono_ι E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : X ⟶ Y) [inst_1 : CategoryTheory.IsSplitMono f],
  (CategoryTheory.Limits.coneOfIsSplitMono f).ι = f

theorem CategoryTheory.Limits.coconeOfIsSplitEpi_π E0 #

∀ {C : Type u} {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f : Y ⟶ X) [inst_1 : CategoryTheory.IsSplitEpi f],
  (CategoryTheory.Limits.coconeOfIsSplitEpi f).π = f

def CategoryTheory.Limits.isSplitMonoEqualizes E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      (f : X ⟶ Y) →
        [inst_1 : CategoryTheory.IsSplitMono f] →
          CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.coneOfIsSplitMono f)

A split mono f equalizes (retraction f ≫ f) and (𝟙 Y).

def CategoryTheory.Limits.isSplitEpiCoequalizes E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      (f : Y ⟶ X) →
        [inst_1 : CategoryTheory.IsSplitEpi f] →
          CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.coconeOfIsSplitEpi f)

A split epi f coequalizes (f ≫ section_ f) and (𝟙 X).

def CategoryTheory.Limits.splitMonoOfEqualizer E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      {f : X ⟶ Y} →
        {r : Y ⟶ X} →
          (hr : CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp r f) = f) →
            CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.Fork.ofι f ⋯) → CategoryTheory.SplitMono f

We show that the converse to isSplitMonoEqualizes is true: Whenever f equalizes (r ≫ f) and (𝟙 Y), then r is a retraction of f.

def CategoryTheory.Limits.splitEpiOfCoequalizer E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      {f : Y ⟶ X} →
        {r : X ⟶ Y} →
          (hr : CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp f r) f = f) →
            CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.Cofork.ofπ f ⋯) → CategoryTheory.SplitEpi f

We show that the converse to isSplitEpiEqualizes is true: Whenever f coequalizes (f ≫ s) and (𝟙 X), then s is a section of f.

def CategoryTheory.Limits.isEqualizerCompMono E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : X ⟶ Y} →
        {c : CategoryTheory.Limits.Fork f g} →
          CategoryTheory.Limits.IsLimit c →
            {Z : C} →
              (h : Y ⟶ Z) →
                [hm : CategoryTheory.Mono h] →
                  have this := ⋯;
                  CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.Fork.ofι c.ι ⋯)

The fork obtained by postcomposing an equalizer fork with a monomorphism is an equalizer.

def CategoryTheory.Limits.isCoequalizerEpiComp E1 #

{C : Type u} →
  {X Y : C} →
    [inst : CategoryTheory.Category.{v, u} C] →
      {f g : Y ⟶ X} →
        {c : CategoryTheory.Limits.Cofork f g} →
          CategoryTheory.Limits.IsColimit c →
            {Z : C} →
              (h : Z ⟶ Y) →
                [hm : CategoryTheory.Epi h] →
                  have this := ⋯;
                  CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.Cofork.ofπ c.π ⋯)

The cofork obtained by precomposing a coequalizer cofork with an epimorphism is a coequalizer.

instance CategoryTheory.Limits.hasCoequalizer_epi_comp E0 #

∀ (C : Type u) {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : Y ⟶ X)
  [CategoryTheory.Limits.HasCoequalizer f g] {Z : C} (h : Z ⟶ Y) [CategoryTheory.Epi h],
  CategoryTheory.Limits.HasCoequalizer (CategoryTheory.CategoryStruct.comp h f) (CategoryTheory.CategoryStruct.comp h g)

instance CategoryTheory.Limits.hasEqualizer_comp_mono E0 #

∀ (C : Type u) {X Y : C} [inst : CategoryTheory.Category.{v, u} C] (f g : X ⟶ Y)
  [CategoryTheory.Limits.HasEqualizer f g] {Z : C} (h : Y ⟶ Z) [CategoryTheory.Mono h],
  CategoryTheory.Limits.HasEqualizer (CategoryTheory.CategoryStruct.comp f h) (CategoryTheory.CategoryStruct.comp g h)

def CategoryTheory.Limits.splitMonoOfIdempotentOfIsLimitFork E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X : C} →
      {f : X ⟶ X} →
        CategoryTheory.CategoryStruct.comp f f = f →
          {c : CategoryTheory.Limits.Fork (CategoryTheory.CategoryStruct.id X) f} →
            CategoryTheory.Limits.IsLimit c → CategoryTheory.SplitMono c.ι

An equalizer of an idempotent morphism and the identity is split mono.

theorem CategoryTheory.Limits.splitEpiOfIdempotentOfIsColimitCofork_section_ E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] {X : C} {f : X ⟶ X}
  (hf : CategoryTheory.CategoryStruct.comp f f = f)
  {c : CategoryTheory.Limits.Cofork (CategoryTheory.CategoryStruct.id X) f} (i : CategoryTheory.Limits.IsColimit c),
  (CategoryTheory.Limits.splitEpiOfIdempotentOfIsColimitCofork C hf i).section_ =
    i.desc (CategoryTheory.Limits.Cofork.ofπ f ⋯)

theorem CategoryTheory.Limits.splitMonoOfIdempotentOfIsLimitFork_retraction E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] {X : C} {f : X ⟶ X}
  (hf : CategoryTheory.CategoryStruct.comp f f = f)
  {c : CategoryTheory.Limits.Fork (CategoryTheory.CategoryStruct.id X) f} (i : CategoryTheory.Limits.IsLimit c),
  (CategoryTheory.Limits.splitMonoOfIdempotentOfIsLimitFork C hf i).retraction =
    i.lift (CategoryTheory.Limits.Fork.ofι f ⋯)

def CategoryTheory.Limits.splitEpiOfIdempotentOfIsColimitCofork E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X : C} →
      {f : X ⟶ X} →
        CategoryTheory.CategoryStruct.comp f f = f →
          {c : CategoryTheory.Limits.Cofork (CategoryTheory.CategoryStruct.id X) f} →
            CategoryTheory.Limits.IsColimit c → CategoryTheory.SplitEpi c.π

A coequalizer of an idempotent morphism and the identity is split epi.

def CategoryTheory.Limits.splitMonoOfIdempotentEqualizer E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X : C} →
      {f : X ⟶ X} →
        CategoryTheory.CategoryStruct.comp f f = f →
          [inst_1 : CategoryTheory.Limits.HasEqualizer (CategoryTheory.CategoryStruct.id X) f] →
            CategoryTheory.SplitMono (CategoryTheory.Limits.equalizer.ι (CategoryTheory.CategoryStruct.id X) f)

The equalizer of an idempotent morphism and the identity is split mono.

def CategoryTheory.Limits.splitEpiOfIdempotentCoequalizer E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X : C} →
      {f : X ⟶ X} →
        CategoryTheory.CategoryStruct.comp f f = f →
          [inst_1 : CategoryTheory.Limits.HasCoequalizer (CategoryTheory.CategoryStruct.id X) f] →
            CategoryTheory.SplitEpi (CategoryTheory.Limits.coequalizer.π (CategoryTheory.CategoryStruct.id X) f)

The coequalizer of an idempotent morphism and the identity is split epi.

Deprecated aliases

NameNew nameSince
CategoryTheory.Limits.Fork.π_comp_homCategoryTheory.Limits.Cofork.π_comp_hom2026-09-25
CategoryTheory.Limits.Fork.π_comp_hom_assocCategoryTheory.Limits.Cofork.π_comp_hom_assoc2026-09-25
CategoryTheory.Limits.isIso_limit_cocone_parallelPair_of_epiCategoryTheory.Limits.isIso_colimit_cocone_parallelPair_of_mono2026-09-25