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.Preserves.Shapes.BinaryProducts

24 declarations. Mathlib docs · Source

theorem CategoryTheory.Limits.PreservesLimitPair.iso.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryProduct (G.obj X) (G.obj Y)]
  [inst_4 : CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G],
  CategoryTheory.Limits.PreservesLimitPair.iso G X Y = CategoryTheory.Limits.PreservesLimitPair.iso G X Y

def CategoryTheory.Limits.isLimitMapConeBinaryFanEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor C D) →
          {P X Y : C} →
            (f : P ⟶ X) →
              (g : P ⟶ Y) →
                CategoryTheory.Limits.IsLimit (G.mapCone (CategoryTheory.Limits.BinaryFan.mk f g)) ≃
                  CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.BinaryFan.mk (G.map f) (G.map g))

The map of a binary fan is a limit iff the fork consisting of the mapped morphisms is a limit. This essentially lets us commute BinaryFan.mk with Functor.mapCone.

def CategoryTheory.Limits.mapIsLimitOfPreservesOfIsLimit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor C D) →
          {P X Y : C} →
            (f : P ⟶ X) →
              (g : P ⟶ Y) →
                [CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G] →
                  CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.BinaryFan.mk f g) →
                    CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.BinaryFan.mk (G.map f) (G.map g))

The property of preserving products expressed in terms of binary fans.

def CategoryTheory.Limits.isLimitOfReflectsOfMapIsLimit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor C D) →
          {P X Y : C} →
            (f : P ⟶ X) →
              (g : P ⟶ Y) →
                [CategoryTheory.Limits.ReflectsLimit (CategoryTheory.Limits.pair X Y) G] →
                  CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.BinaryFan.mk (G.map f) (G.map g)) →
                    CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.BinaryFan.mk f g)

The property of reflecting products expressed in terms of binary fans.

def CategoryTheory.Limits.isLimitOfHasBinaryProductOfPreservesLimit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor C D) →
          (X Y : C) →
            [inst_2 : CategoryTheory.Limits.HasBinaryProduct X Y] →
              [CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G] →
                CategoryTheory.Limits.IsLimit
                  (CategoryTheory.Limits.BinaryFan.mk (G.map CategoryTheory.Limits.prod.fst)
                    (G.map CategoryTheory.Limits.prod.snd))

If G preserves binary products and C has them, then the binary fan constructed of the mapped morphisms of the binary product cone is a limit.

instance CategoryTheory.Limits.instHasBinaryProductObjOfPreservesLimitDiscreteWalkingPairPair E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [CategoryTheory.Limits.HasBinaryProduct X Y]
  [CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G],
  CategoryTheory.Limits.HasBinaryProduct (G.obj X) (G.obj Y)

theorem CategoryTheory.Limits.PreservesLimitPair.of_iso_prod_comparison E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryProduct (G.obj X) (G.obj Y)]
  [i : CategoryTheory.IsIso (CategoryTheory.Limits.prodComparison G X Y)],
  CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G

If the product comparison map for G at (X,Y) is an isomorphism, then G preserves the pair of (X,Y).

def CategoryTheory.Limits.PreservesLimitPair.iso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor C D) →
          (X Y : C) →
            [inst_2 : CategoryTheory.Limits.HasBinaryProduct X Y] →
              [inst_3 : CategoryTheory.Limits.HasBinaryProduct (G.obj X) (G.obj Y)] →
                [CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G] →
                  G.obj (X ⨯ Y) ≅ G.obj X ⨯ G.obj Y

If G preserves the product of (X,Y), then the product comparison map for G at (X,Y) is an isomorphism.

theorem CategoryTheory.Limits.PreservesLimitPair.iso_hom E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryProduct (G.obj X) (G.obj Y)]
  [inst_4 : CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G],
  (CategoryTheory.Limits.PreservesLimitPair.iso G X Y).hom = CategoryTheory.Limits.prodComparison G X Y

theorem CategoryTheory.Limits.PreservesLimitPair.iso_inv_fst_assoc E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryProduct (G.obj X) (G.obj Y)]
  [inst_4 : CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G] {Z : D} (h : G.obj X ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.PreservesLimitPair.iso G X Y).inv
      (CategoryTheory.CategoryStruct.comp (G.map CategoryTheory.Limits.prod.fst) h) =
    CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.prod.fst h

theorem CategoryTheory.Limits.PreservesLimitPair.iso_inv_fst E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryProduct (G.obj X) (G.obj Y)]
  [inst_4 : CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.PreservesLimitPair.iso G X Y).inv
      (G.map CategoryTheory.Limits.prod.fst) =
    CategoryTheory.Limits.prod.fst

theorem CategoryTheory.Limits.PreservesLimitPair.iso_inv_snd E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryProduct (G.obj X) (G.obj Y)]
  [inst_4 : CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.PreservesLimitPair.iso G X Y).inv
      (G.map CategoryTheory.Limits.prod.snd) =
    CategoryTheory.Limits.prod.snd

theorem CategoryTheory.Limits.PreservesLimitPair.iso_inv_snd_assoc E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryProduct (G.obj X) (G.obj Y)]
  [inst_4 : CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G] {Z : D} (h : G.obj Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.PreservesLimitPair.iso G X Y).inv
      (CategoryTheory.CategoryStruct.comp (G.map CategoryTheory.Limits.prod.snd) h) =
    CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.prod.snd h

instance CategoryTheory.Limits.instIsIsoProdComparison E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryProduct (G.obj X) (G.obj Y)]
  [CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair X Y) G],
  CategoryTheory.IsIso (CategoryTheory.Limits.prodComparison G X Y)

theorem CategoryTheory.Limits.preservesBinaryProducts_of_isIso_prodComparison E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) [inst_2 : CategoryTheory.Limits.HasBinaryProducts C]
  [inst_3 : CategoryTheory.Limits.HasBinaryProducts D]
  [i : ∀ {X Y : C}, CategoryTheory.IsIso (CategoryTheory.Limits.prodComparison G X Y)],
  CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) G

If the product comparison maps of G at every pair (X,Y) is an isomorphism, then G preserves binary products.

def CategoryTheory.Limits.isColimitMapCoconeBinaryCofanEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor C D) →
          {P X Y : C} →
            (f : X ⟶ P) →
              (g : Y ⟶ P) →
                CategoryTheory.Limits.IsColimit (G.mapCocone (CategoryTheory.Limits.BinaryCofan.mk f g)) ≃
                  CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.BinaryCofan.mk (G.map f) (G.map g))

The map of a binary cofan is a colimit iff the cofork consisting of the mapped morphisms is a colimit. This essentially lets us commute BinaryCofan.mk with Functor.mapCocone.

def CategoryTheory.Limits.mapIsColimitOfPreservesOfIsColimit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor C D) →
          {P X Y : C} →
            (f : X ⟶ P) →
              (g : Y ⟶ P) →
                [CategoryTheory.Limits.PreservesColimit (CategoryTheory.Limits.pair X Y) G] →
                  CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.BinaryCofan.mk f g) →
                    CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.BinaryCofan.mk (G.map f) (G.map g))

The property of preserving coproducts expressed in terms of binary cofans.

def CategoryTheory.Limits.isColimitOfReflectsOfMapIsColimit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor C D) →
          {P X Y : C} →
            (f : X ⟶ P) →
              (g : Y ⟶ P) →
                [CategoryTheory.Limits.ReflectsColimit (CategoryTheory.Limits.pair X Y) G] →
                  CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.BinaryCofan.mk (G.map f) (G.map g)) →
                    CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.BinaryCofan.mk f g)

The property of reflecting coproducts expressed in terms of binary cofans.

def CategoryTheory.Limits.isColimitOfHasBinaryCoproductOfPreservesColimit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor C D) →
          (X Y : C) →
            [inst_2 : CategoryTheory.Limits.HasBinaryCoproduct X Y] →
              [CategoryTheory.Limits.PreservesColimit (CategoryTheory.Limits.pair X Y) G] →
                CategoryTheory.Limits.IsColimit
                  (CategoryTheory.Limits.BinaryCofan.mk (G.map CategoryTheory.Limits.coprod.inl)
                    (G.map CategoryTheory.Limits.coprod.inr))

If G preserves binary coproducts and C has them, then the binary cofan constructed of the mapped morphisms of the binary product cocone is a colimit.

theorem CategoryTheory.Limits.PreservesColimitPair.of_iso_coprod_comparison E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryCoproduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct (G.obj X) (G.obj Y)]
  [i : CategoryTheory.IsIso (CategoryTheory.Limits.coprodComparison G X Y)],
  CategoryTheory.Limits.PreservesColimit (CategoryTheory.Limits.pair X Y) G

If the coproduct comparison map for G at (X,Y) is an isomorphism, then G preserves the pair of (X,Y).

def CategoryTheory.Limits.PreservesColimitPair.iso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor C D) →
          (X Y : C) →
            [inst_2 : CategoryTheory.Limits.HasBinaryCoproduct X Y] →
              [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct (G.obj X) (G.obj Y)] →
                [CategoryTheory.Limits.PreservesColimit (CategoryTheory.Limits.pair X Y) G] →
                  G.obj X ⨿ G.obj Y ≅ G.obj (X ⨿ Y)

If G preserves the coproduct of (X,Y), then the coproduct comparison map for G at (X,Y) is an isomorphism.

theorem CategoryTheory.Limits.PreservesColimitPair.iso_hom E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryCoproduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct (G.obj X) (G.obj Y)]
  [inst_4 : CategoryTheory.Limits.PreservesColimit (CategoryTheory.Limits.pair X Y) G],
  (CategoryTheory.Limits.PreservesColimitPair.iso G X Y).hom = CategoryTheory.Limits.coprodComparison G X Y

instance CategoryTheory.Limits.instIsIsoCoprodComparison E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) (X Y : C) [inst_2 : CategoryTheory.Limits.HasBinaryCoproduct X Y]
  [inst_3 : CategoryTheory.Limits.HasBinaryCoproduct (G.obj X) (G.obj Y)]
  [CategoryTheory.Limits.PreservesColimit (CategoryTheory.Limits.pair X Y) G],
  CategoryTheory.IsIso (CategoryTheory.Limits.coprodComparison G X Y)

theorem CategoryTheory.Limits.preservesBinaryCoproducts_of_isIso_coprodComparison E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C]
  [inst_3 : CategoryTheory.Limits.HasBinaryCoproducts D]
  [i : ∀ {X Y : C}, CategoryTheory.IsIso (CategoryTheory.Limits.coprodComparison G X Y)],
  CategoryTheory.Limits.PreservesColimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) G

If the coproduct comparison maps of G at every pair (X,Y) is an isomorphism, then G preserves binary coproducts.