English
If a functor creates equalizers and the appropriate products, it creates limits.
Русский
Если функтор создает равноселители и подходящие произведения, он создает пределы.
LaTeX
$$CreatesLimitsOfShape J G$$
Lean4
/-- (Implementation) Given the appropriate coproduct and coequalizer cocones,
build the cocone for `F` which is colimiting if the given cocones are also.
-/
@[simps]
def buildColimit (hs : ∀ f : Σ p : J × J, p.1 ⟶ p.2, c₁.ι.app ⟨f⟩ ≫ s = F.map f.2 ≫ c₂.ι.app ⟨f.1.2⟩)
(ht : ∀ f : Σ p : J × J, p.1 ⟶ p.2, c₁.ι.app ⟨f⟩ ≫ t = c₂.ι.app ⟨f.1.1⟩) (i : Cofork s t) : Cocone F
where
pt := i.pt
ι :=
{ app := fun _ => c₂.ι.app ⟨_⟩ ≫ i.π
naturality := fun j₁ j₂ f => by
dsimp
have reassoced (f : (p : J × J) × (p.fst ⟶ p.snd)) {W : C} {h : _ ⟶ W} :
c₁.ι.app ⟨f⟩ ≫ s ≫ h = F.map f.snd ≫ c₂.ι.app ⟨f.fst.snd⟩ ≫ h := by
simp only [← Category.assoc, eq_whisker (hs f)]
rw [Category.comp_id, ← reassoced ⟨⟨_, _⟩, f⟩, i.condition, ← Category.assoc, ht] }