The areas / V24. Category theory
Mathlib.CategoryTheory.Limits.Constructions.BinaryProducts
30 declarations. Mathlib docs · Source
def isBinaryProductOfIsTerminalIsPullback E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
(F : CategoryTheory.Functor (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) C) →
(c : CategoryTheory.Limits.Cone F) →
{X : C} →
(hX : CategoryTheory.Limits.IsTerminal X) →
(f : F.obj { as := CategoryTheory.Limits.WalkingPair.left } ⟶ X) →
(g : F.obj { as := CategoryTheory.Limits.WalkingPair.right } ⟶ X) →
CategoryTheory.Limits.IsLimit
(CategoryTheory.Limits.PullbackCone.mk (c.π.app { as := CategoryTheory.Limits.WalkingPair.left })
(c.π.app { as := CategoryTheory.Limits.WalkingPair.right }) ⋯) →
CategoryTheory.Limits.IsLimit c
If a span is the pullback span over the terminal object, then it is a binary product.
def isProductOfIsTerminalIsPullback E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{W X Y Z : C} →
(f : X ⟶ Z) →
(g : Y ⟶ Z) →
(h : W ⟶ X) →
(k : W ⟶ Y) →
(H₁ : CategoryTheory.Limits.IsTerminal Z) →
CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.PullbackCone.mk h k ⋯) →
CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.BinaryFan.mk h k)
The pullback over the terminal object is the product
def isPullbackOfIsTerminalIsProduct E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{W X Y Z : C} →
(f : X ⟶ Z) →
(g : Y ⟶ Z) →
(h : W ⟶ X) →
(k : W ⟶ Y) →
(H₁ : CategoryTheory.Limits.IsTerminal Z) →
CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.BinaryFan.mk h k) →
CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.PullbackCone.mk h k ⋯)
The product is the pullback over the terminal object.
def limitConeOfTerminalAndPullbacks E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Limits.HasTerminal C] →
[CategoryTheory.Limits.HasPullbacks C] →
(F : CategoryTheory.Functor (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) C) →
CategoryTheory.Limits.LimitCone F
Any category with pullbacks and a terminal object has a limit cone for each walking pair.
theorem hasBinaryProducts_of_hasTerminal_and_pullbacks E1 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasTerminal C]
[CategoryTheory.Limits.HasPullbacks C], CategoryTheory.Limits.HasBinaryProducts C
Any category with pullbacks and terminal object has binary products.
theorem preservesBinaryProducts_of_preservesTerminal_and_pullbacks E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
(F : CategoryTheory.Functor C D) [CategoryTheory.Limits.HasTerminal C] [CategoryTheory.Limits.HasPullbacks C]
[CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete PEmpty.{1}) F]
[CategoryTheory.Limits.PreservesLimitsOfShape CategoryTheory.Limits.WalkingCospan F],
CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F
A functor that preserves terminal objects and pullbacks preserves binary products.
def prodIsoPullback E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Limits.HasTerminal C] →
[inst_2 : CategoryTheory.Limits.HasPullbacks C] →
(X Y : C) →
[inst_3 : CategoryTheory.Limits.HasBinaryProduct X Y] →
X ⨯ Y ≅
CategoryTheory.Limits.pullback (CategoryTheory.Limits.terminal.from X)
(CategoryTheory.Limits.terminal.from Y)
In a category with a terminal object and pullbacks,
a product of objects X and Y is isomorphic to a pullback.
theorem prodIsoPullback_hom_fst_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasTerminal C]
[inst_2 : CategoryTheory.Limits.HasPullbacks C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct X Y]
{Z : C} (h : X ⟶ Z),
CategoryTheory.CategoryStruct.comp (prodIsoPullback X Y).hom
(CategoryTheory.CategoryStruct.comp
(CategoryTheory.Limits.pullback.fst (CategoryTheory.Limits.terminal.from X)
(CategoryTheory.Limits.terminal.from Y))
h) =
CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.prod.fst h
theorem prodIsoPullback_hom_fst E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasTerminal C]
[inst_2 : CategoryTheory.Limits.HasPullbacks C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct X Y],
CategoryTheory.CategoryStruct.comp (prodIsoPullback X Y).hom
(CategoryTheory.Limits.pullback.fst (CategoryTheory.Limits.terminal.from X)
(CategoryTheory.Limits.terminal.from Y)) =
CategoryTheory.Limits.prod.fst
theorem prodIsoPullback_hom_snd E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasTerminal C]
[inst_2 : CategoryTheory.Limits.HasPullbacks C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct X Y],
CategoryTheory.CategoryStruct.comp (prodIsoPullback X Y).hom
(CategoryTheory.Limits.pullback.snd (CategoryTheory.Limits.terminal.from X)
(CategoryTheory.Limits.terminal.from Y)) =
CategoryTheory.Limits.prod.snd
theorem prodIsoPullback_hom_snd_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasTerminal C]
[inst_2 : CategoryTheory.Limits.HasPullbacks C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct X Y]
{Z : C} (h : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp (prodIsoPullback X Y).hom
(CategoryTheory.CategoryStruct.comp
(CategoryTheory.Limits.pullback.snd (CategoryTheory.Limits.terminal.from X)
(CategoryTheory.Limits.terminal.from Y))
h) =
CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.prod.snd h
theorem prodIsoPullback_inv_fst E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasTerminal C]
[inst_2 : CategoryTheory.Limits.HasPullbacks C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct X Y],
CategoryTheory.CategoryStruct.comp (prodIsoPullback X Y).inv CategoryTheory.Limits.prod.fst =
CategoryTheory.Limits.pullback.fst (CategoryTheory.Limits.terminal.from X) (CategoryTheory.Limits.terminal.from Y)
theorem prodIsoPullback_inv_fst_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasTerminal C]
[inst_2 : CategoryTheory.Limits.HasPullbacks C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct X Y]
{Z : C} (h : X ⟶ Z),
CategoryTheory.CategoryStruct.comp (prodIsoPullback X Y).inv
(CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.prod.fst h) =
CategoryTheory.CategoryStruct.comp
(CategoryTheory.Limits.pullback.fst (CategoryTheory.Limits.terminal.from X)
(CategoryTheory.Limits.terminal.from Y))
h
theorem prodIsoPullback_inv_snd E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasTerminal C]
[inst_2 : CategoryTheory.Limits.HasPullbacks C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct X Y],
CategoryTheory.CategoryStruct.comp (prodIsoPullback X Y).inv CategoryTheory.Limits.prod.snd =
CategoryTheory.Limits.pullback.snd (CategoryTheory.Limits.terminal.from X) (CategoryTheory.Limits.terminal.from Y)
theorem prodIsoPullback_inv_snd_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasTerminal C]
[inst_2 : CategoryTheory.Limits.HasPullbacks C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct X Y]
{Z : C} (h : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp (prodIsoPullback X Y).inv
(CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.prod.snd h) =
CategoryTheory.CategoryStruct.comp
(CategoryTheory.Limits.pullback.snd (CategoryTheory.Limits.terminal.from X)
(CategoryTheory.Limits.terminal.from Y))
h
def isBinaryCoproductOfIsInitialIsPushout E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
(F : CategoryTheory.Functor (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) C) →
(c : CategoryTheory.Limits.Cocone F) →
{X : C} →
(hX : CategoryTheory.Limits.IsInitial X) →
(f : X ⟶ F.obj { as := CategoryTheory.Limits.WalkingPair.left }) →
(g : X ⟶ F.obj { as := CategoryTheory.Limits.WalkingPair.right }) →
CategoryTheory.Limits.IsColimit
(CategoryTheory.Limits.PushoutCocone.mk (c.ι.app { as := CategoryTheory.Limits.WalkingPair.left })
(c.ι.app { as := CategoryTheory.Limits.WalkingPair.right }) ⋯) →
CategoryTheory.Limits.IsColimit c
If a cospan is the pushout cospan under the initial object, then it is a binary coproduct.
def isCoproductOfIsInitialIsPushout E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{W X Y Z : C} →
(f : X ⟶ Z) →
(g : Y ⟶ Z) →
(h : W ⟶ X) →
(k : W ⟶ Y) →
(H₁ : CategoryTheory.Limits.IsInitial W) →
CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.PushoutCocone.mk f g ⋯) →
CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.BinaryCofan.mk f g)
The pushout under the initial object is the coproduct
def isPushoutOfIsInitialIsCoproduct E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{W X Y Z : C} →
(f : X ⟶ Z) →
(g : Y ⟶ Z) →
(h : W ⟶ X) →
(k : W ⟶ Y) →
(H₁ : CategoryTheory.Limits.IsInitial W) →
CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.BinaryCofan.mk f g) →
CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.PushoutCocone.mk f g ⋯)
The coproduct is the pushout under the initial object.
def colimitCoconeOfInitialAndPushouts E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Limits.HasInitial C] →
[CategoryTheory.Limits.HasPushouts C] →
(F : CategoryTheory.Functor (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) C) →
CategoryTheory.Limits.ColimitCocone F
Any category with pushouts and an initial object has a colimit cocone for each walking pair.
theorem hasBinaryCoproducts_of_hasInitial_and_pushouts E1 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasInitial C]
[CategoryTheory.Limits.HasPushouts C], CategoryTheory.Limits.HasBinaryCoproducts C
Any category with pushouts and initial object has binary coproducts.
theorem preservesBinaryCoproducts_of_preservesInitial_and_pushouts E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
(F : CategoryTheory.Functor C D) [CategoryTheory.Limits.HasInitial C] [CategoryTheory.Limits.HasPushouts C]
[CategoryTheory.Limits.PreservesColimitsOfShape (CategoryTheory.Discrete PEmpty.{1}) F]
[CategoryTheory.Limits.PreservesColimitsOfShape CategoryTheory.Limits.WalkingSpan F],
CategoryTheory.Limits.PreservesColimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F
A functor that preserves initial objects and pushouts preserves binary coproducts.
def coprodIsoPushout E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Limits.HasInitial C] →
[inst_2 : CategoryTheory.Limits.HasPushouts C] →
(X Y : C) →
[inst_3 : CategoryTheory.Limits.HasBinaryCoproduct X Y] →
X ⨿ Y ≅
CategoryTheory.Limits.pushout (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y)
In a category with an initial object and pushouts,
a coproduct of objects X and Y is isomorphic to a pushout.
theorem inl_coprodIsoPushout_hom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
[inst_2 : CategoryTheory.Limits.HasPushouts C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct X Y],
CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inl (coprodIsoPushout X Y).hom =
CategoryTheory.Limits.pushout.inl (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y)
theorem inl_coprodIsoPushout_hom_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
[inst_2 : CategoryTheory.Limits.HasPushouts C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct X Y]
{Z : C}
(h : CategoryTheory.Limits.pushout (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y) ⟶ Z),
CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inl
(CategoryTheory.CategoryStruct.comp (coprodIsoPushout X Y).hom h) =
CategoryTheory.CategoryStruct.comp
(CategoryTheory.Limits.pushout.inl (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y)) h
theorem inr_coprodIsoPushout_hom_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
[inst_2 : CategoryTheory.Limits.HasPushouts C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct X Y]
{Z : C}
(h : CategoryTheory.Limits.pushout (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y) ⟶ Z),
CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inr
(CategoryTheory.CategoryStruct.comp (coprodIsoPushout X Y).hom h) =
CategoryTheory.CategoryStruct.comp
(CategoryTheory.Limits.pushout.inr (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y)) h
theorem inr_coprodIsoPushout_hom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
[inst_2 : CategoryTheory.Limits.HasPushouts C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct X Y],
CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inr (coprodIsoPushout X Y).hom =
CategoryTheory.Limits.pushout.inr (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y)
theorem inl_coprodIsoPushout_inv E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
[inst_2 : CategoryTheory.Limits.HasPushouts C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct X Y],
CategoryTheory.CategoryStruct.comp
(CategoryTheory.Limits.pushout.inl (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y))
(coprodIsoPushout X Y).inv =
CategoryTheory.Limits.coprod.inl
theorem inl_coprodIsoPushout_inv_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
[inst_2 : CategoryTheory.Limits.HasPushouts C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct X Y]
{Z : C} (h : X ⨿ Y ⟶ Z),
CategoryTheory.CategoryStruct.comp
(CategoryTheory.Limits.pushout.inl (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y))
(CategoryTheory.CategoryStruct.comp (coprodIsoPushout X Y).inv h) =
CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inl h
theorem inr_coprodIsoPushout_inv E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
[inst_2 : CategoryTheory.Limits.HasPushouts C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct X Y],
CategoryTheory.CategoryStruct.comp
(CategoryTheory.Limits.pushout.inr (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y))
(coprodIsoPushout X Y).inv =
CategoryTheory.Limits.coprod.inr
theorem inr_coprodIsoPushout_inv_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
[inst_2 : CategoryTheory.Limits.HasPushouts C] (X Y : C) [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct X Y]
{Z : C} (h : X ⨿ Y ⟶ Z),
CategoryTheory.CategoryStruct.comp
(CategoryTheory.Limits.pushout.inr (CategoryTheory.Limits.initial.to X) (CategoryTheory.Limits.initial.to Y))
(CategoryTheory.CategoryStruct.comp (coprodIsoPushout X Y).inv h) =
CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inr h