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.Biproducts

253 declarations. Mathlib docs · Source

Biproducts and binary biproducts

We introduce the notion of (finite) biproducts. Binary biproducts are defined in CategoryTheory.Limits.Shapes.BinaryBiproducts.

These are slightly unusual relative to the other shapes in the library, as they are simultaneously limits and colimits. (Zero objects are similar; they are "biterminal".)

For results about biproducts in preadditive categories see CategoryTheory.Preadditive.Biproducts.

For biproducts indexed by a Fintype J, a bicone consists of a cone point X and morphisms π j : X ⟶ F j and ι j : F j ⟶ X for each j, such that ι j ≫ π j' is the identity when j = j' and zero otherwise.

Notation

As ⊕ is already taken for the sum of types, we introduce the notation X ⊞ Y for a binary biproduct. We introduce ⨁ f for the indexed biproduct.

Implementation notes

Prior to https://github.com/leanprover-community/mathlib3/pull/14046, HasFiniteBiproducts required a DecidableEq instance on the indexing type. As this had no pay-off (everything about limits is non-constructive in mathlib), and occasional cost (constructing decidability instances appropriate for constructions involving the indexing type), we made everything classical.

We do not want simps automatically generate the lemma for simplifying the Hom field of a category. So we need to write the ext lemma in terms of the categorical morphism, rather than the underlying structure.

theorem CategoryTheory.Limits.Bicone.mk.inj E1 #

∀ {J : Type w} {C : Type uC} {inst : CategoryTheory.Category.{uC', uC} C}
  {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} {F : J → C} {pt : C} {π : (j : J) → pt ⟶ F j}
  {ι : (j : J) → F j ⟶ pt}
  {ι_π :
    autoParam
      (∀ (j j' : J),
        CategoryTheory.CategoryStruct.comp (ι j) (π j') = if h : j = j' then CategoryTheory.eqToHom ⋯ else 0)
      CategoryTheory.Limits.Bicone.ι_π._autoParam}
  {pt_1 : C} {π_1 : (j : J) → pt_1 ⟶ F j} {ι_1 : (j : J) → F j ⟶ pt_1}
  {ι_π_1 :
    autoParam
      (∀ (j j' : J),
        CategoryTheory.CategoryStruct.comp (ι_1 j) (π_1 j') = if h : j = j' then CategoryTheory.eqToHom ⋯ else 0)
      CategoryTheory.Limits.Bicone.ι_π._autoParam},
  { pt := pt, π := π, ι := ι, ι_π := ι_π } = { pt := pt_1, π := π_1, ι := ι_1, ι_π := ι_π_1 } →
    pt = pt_1 ∧ π ≍ π_1 ∧ ι ≍ ι_1

def CategoryTheory.Limits.BiconeMorphism.ctorIdx E1 #

{J : Type w} →
  {C : Type uC} →
    {inst : CategoryTheory.Category.{uC', uC} C} →
      {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} →
        {F : J → C} → {A B : CategoryTheory.Limits.Bicone F} → CategoryTheory.Limits.BiconeMorphism A B → ℕ

theorem CategoryTheory.Limits.Bicone.IsBilimit.mk.injEq E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {B : CategoryTheory.Limits.Bicone F}
  (isLimit : CategoryTheory.Limits.IsLimit B.toCone) (isColimit : CategoryTheory.Limits.IsColimit B.toCocone)
  (isLimit_1 : CategoryTheory.Limits.IsLimit B.toCone) (isColimit_1 : CategoryTheory.Limits.IsColimit B.toCocone),
  ({ isLimit := isLimit, isColimit := isColimit } = { isLimit := isLimit_1, isColimit := isColimit_1 }) =
    (isLimit = isLimit_1 ∧ isColimit = isColimit_1)

theorem CategoryTheory.Limits.LimitBicone.mk.injEq E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (bicone : CategoryTheory.Limits.Bicone F)
  (isBilimit : bicone.IsBilimit) (bicone_1 : CategoryTheory.Limits.Bicone F) (isBilimit_1 : bicone_1.IsBilimit),
  ({ bicone := bicone, isBilimit := isBilimit } = { bicone := bicone_1, isBilimit := isBilimit_1 }) =
    (bicone = bicone_1 ∧ isBilimit ≍ isBilimit_1)

theorem CategoryTheory.Limits.Bicones.functoriality.congr_simp E1 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {D : Type uD} [inst_2 : CategoryTheory.Category.{uD', uD} D]
  [inst_3 : CategoryTheory.Limits.HasZeroMorphisms D] (F : J → C) (G : CategoryTheory.Functor C D)
  [inst_4 : G.PreservesZeroMorphisms],
  CategoryTheory.Limits.Bicones.functoriality F G = CategoryTheory.Limits.Bicones.functoriality F G

theorem CategoryTheory.Limits.KernelFork.IsLimit.ofι.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {X Y : C}
  {f : X ⟶ Y} {W : C} (g : W ⟶ X) (eq : CategoryTheory.CategoryStruct.comp g f = 0)
  (lift lift_1 : {W' : C} → (g' : W' ⟶ X) → CategoryTheory.CategoryStruct.comp g' f = 0 → (W' ⟶ W))
  (e_lift : lift = lift_1)
  (fac :
    ∀ {W' : C} (g' : W' ⟶ X) (eq' : CategoryTheory.CategoryStruct.comp g' f = 0),
      CategoryTheory.CategoryStruct.comp (lift g' eq') g = g')
  (uniq :
    ∀ {W' : C} (g' : W' ⟶ X) (eq' : CategoryTheory.CategoryStruct.comp g' f = 0) (m : W' ⟶ W),
      CategoryTheory.CategoryStruct.comp m g = g' → m = lift g' eq'),
  CategoryTheory.Limits.KernelFork.IsLimit.ofι g eq lift fac uniq =
    CategoryTheory.Limits.KernelFork.IsLimit.ofι g eq lift_1 ⋯ ⋯

def CategoryTheory.Limits.LimitBicone.ctorIdx E1 #

{J : Type w} →
  {C : Type uC} →
    {inst : CategoryTheory.Category.{uC', uC} C} →
      {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} → {F : J → C} → CategoryTheory.Limits.LimitBicone F → ℕ

def CategoryTheory.Limits.Bicone.ctorIdx E1 #

{J : Type w} →
  {C : Type uC} →
    {inst : CategoryTheory.Category.{uC', uC} C} →
      {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} → {F : J → C} → CategoryTheory.Limits.Bicone F → ℕ

theorem CategoryTheory.Limits.biproduct.congr_simp E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f f_1 : J → C) (e_f : f = f_1)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f], (⨁ f) = ⨁ f_1

theorem CategoryTheory.Limits.BiconeMorphism.mk.injEq E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {A B : CategoryTheory.Limits.Bicone F}
  (hom : A.pt ⟶ B.pt)
  (wπ :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp hom (B.π j) = A.π j)
      CategoryTheory.Limits.BiconeMorphism.wπ._autoParam)
  (wι :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp (A.ι j) hom = B.ι j)
      CategoryTheory.Limits.BiconeMorphism.wι._autoParam)
  (hom_1 : A.pt ⟶ B.pt)
  (wπ_1 :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp hom_1 (B.π j) = A.π j)
      CategoryTheory.Limits.BiconeMorphism.wπ._autoParam)
  (wι_1 :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp (A.ι j) hom_1 = B.ι j)
      CategoryTheory.Limits.BiconeMorphism.wι._autoParam),
  ({ hom := hom, wπ := wπ, wι := wι } = { hom := hom_1, wπ := wπ_1, wι := wι_1 }) = (hom = hom_1)

theorem CategoryTheory.Limits.Bicone.mk.injEq E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (pt : C) (π : (j : J) → pt ⟶ F j)
  (ι : (j : J) → F j ⟶ pt)
  (ι_π :
    autoParam
      (∀ (j j' : J),
        CategoryTheory.CategoryStruct.comp (ι j) (π j') = if h : j = j' then CategoryTheory.eqToHom ⋯ else 0)
      CategoryTheory.Limits.Bicone.ι_π._autoParam)
  (pt_1 : C) (π_1 : (j : J) → pt_1 ⟶ F j) (ι_1 : (j : J) → F j ⟶ pt_1)
  (ι_π_1 :
    autoParam
      (∀ (j j' : J),
        CategoryTheory.CategoryStruct.comp (ι_1 j) (π_1 j') = if h : j = j' then CategoryTheory.eqToHom ⋯ else 0)
      CategoryTheory.Limits.Bicone.ι_π._autoParam),
  ({ pt := pt, π := π, ι := ι, ι_π := ι_π } = { pt := pt_1, π := π_1, ι := ι_1, ι_π := ι_π_1 }) =
    (pt = pt_1 ∧ π ≍ π_1 ∧ ι ≍ ι_1)

theorem CategoryTheory.Limits.LimitBicone.mk.inj E1 #

∀ {J : Type w} {C : Type uC} {inst : CategoryTheory.Category.{uC', uC} C}
  {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} {F : J → C} {bicone : CategoryTheory.Limits.Bicone F}
  {isBilimit : bicone.IsBilimit} {bicone_1 : CategoryTheory.Limits.Bicone F} {isBilimit_1 : bicone_1.IsBilimit},
  { bicone := bicone, isBilimit := isBilimit } = { bicone := bicone_1, isBilimit := isBilimit_1 } →
    bicone = bicone_1 ∧ isBilimit ≍ isBilimit_1

theorem CategoryTheory.Limits.CokernelCofork.IsColimit.ofπ.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {X Y : C}
  {f : Y ⟶ X} {W : C} (g : X ⟶ W) (eq : CategoryTheory.CategoryStruct.comp f g = 0)
  (desc desc_1 : {W' : C} → (g' : X ⟶ W') → CategoryTheory.CategoryStruct.comp f g' = 0 → (W ⟶ W'))
  (e_desc : desc = desc_1)
  (fac :
    ∀ {W' : C} (g' : X ⟶ W') (eq' : CategoryTheory.CategoryStruct.comp f g' = 0),
      CategoryTheory.CategoryStruct.comp g (desc g' eq') = g')
  (uniq :
    ∀ {W' : C} (g' : X ⟶ W') (eq' : CategoryTheory.CategoryStruct.comp f g' = 0) (m : W ⟶ W'),
      CategoryTheory.CategoryStruct.comp g m = g' → m = desc g' eq'),
  CategoryTheory.Limits.CokernelCofork.IsColimit.ofπ g eq desc fac uniq =
    CategoryTheory.Limits.CokernelCofork.IsColimit.ofπ g eq desc_1 ⋯ ⋯

theorem CategoryTheory.Limits.BiconeMorphism.mk.inj E1 #

∀ {J : Type w} {C : Type uC} {inst : CategoryTheory.Category.{uC', uC} C}
  {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} {F : J → C} {A B : CategoryTheory.Limits.Bicone F}
  {hom : A.pt ⟶ B.pt}
  {wπ :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp hom (B.π j) = A.π j)
      CategoryTheory.Limits.BiconeMorphism.wπ._autoParam}
  {wι :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp (A.ι j) hom = B.ι j)
      CategoryTheory.Limits.BiconeMorphism.wι._autoParam}
  {hom_1 : A.pt ⟶ B.pt}
  {wπ_1 :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp hom_1 (B.π j) = A.π j)
      CategoryTheory.Limits.BiconeMorphism.wπ._autoParam}
  {wι_1 :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp (A.ι j) hom_1 = B.ι j)
      CategoryTheory.Limits.BiconeMorphism.wι._autoParam},
  { hom := hom, wπ := wπ, wι := wι } = { hom := hom_1, wπ := wπ_1, wι := wι_1 } → hom = hom_1

theorem CategoryTheory.Limits.Bicone.mk.congr_simp E1 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (pt : C) (π π_1 : (j : J) → pt ⟶ F j) (e_π : π = π_1)
  (ι ι_1 : (j : J) → F j ⟶ pt) (e_ι : ι = ι_1)
  (ι_π :
    ∀ (j j' : J), CategoryTheory.CategoryStruct.comp (ι j) (π j') = if h : j = j' then CategoryTheory.eqToHom ⋯ else 0),
  { pt := pt, π := π, ι := ι, ι_π := ι_π } = { pt := pt, π := π_1, ι := ι_1, ι_π := ⋯ }

theorem CategoryTheory.Limits.BiconeMorphism.mk.congr_simp E1 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {A B : CategoryTheory.Limits.Bicone F}
  (hom hom_1 : A.pt ⟶ B.pt) (e_hom : hom = hom_1)
  (wπ : ∀ (j : J), CategoryTheory.CategoryStruct.comp hom (B.π j) = A.π j)
  (wι : ∀ (j : J), CategoryTheory.CategoryStruct.comp (A.ι j) hom = B.ι j),
  { hom := hom, wπ := wπ, wι := wι } = { hom := hom_1, wπ := ⋯, wι := ⋯ }

def CategoryTheory.Limits.Bicone.IsBilimit.ctorIdx E1 #

{J : Type w} →
  {C : Type uC} →
    {inst : CategoryTheory.Category.{uC', uC} C} →
      {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} →
        {F : J → C} → {B : CategoryTheory.Limits.Bicone F} → B.IsBilimit → ℕ

theorem CategoryTheory.Limits.Bicone.IsBilimit.mk.inj E1 #

∀ {J : Type w} {C : Type uC} {inst : CategoryTheory.Category.{uC', uC} C}
  {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} {F : J → C} {B : CategoryTheory.Limits.Bicone F}
  {isLimit : CategoryTheory.Limits.IsLimit B.toCone} {isColimit : CategoryTheory.Limits.IsColimit B.toCocone}
  {isLimit_1 : CategoryTheory.Limits.IsLimit B.toCone} {isColimit_1 : CategoryTheory.Limits.IsColimit B.toCocone},
  { isLimit := isLimit, isColimit := isColimit } = { isLimit := isLimit_1, isColimit := isColimit_1 } →
    isLimit = isLimit_1 ∧ isColimit = isColimit_1

structure CategoryTheory.Limits.Bicone E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [CategoryTheory.Limits.HasZeroMorphisms C] → (J → C) → Type (max (max uC uC') w)

A c : Bicone F is:

  • an object c.pt and
  • morphisms π j : pt ⟶ F j and ι j : F j ⟶ pt for each j,
  • such that ι j ≫ π j' is the identity when j = j' and zero otherwise.

ctor CategoryTheory.Limits.Bicone.mk E0 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} →
          (pt : C) →
            (π : (j : J) → pt ⟶ F j) →
              (ι : (j : J) → F j ⟶ pt) →
                autoParam
                    (∀ (j j' : J),
                      CategoryTheory.CategoryStruct.comp (ι j) (π j') =
                        if h : j = j' then CategoryTheory.eqToHom ⋯ else 0)
                    CategoryTheory.Limits.Bicone.ι_π._autoParam →
                  CategoryTheory.Limits.Bicone F

abbrev CategoryTheory.Limits.Bicone.pt E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] → {F : J → C} → CategoryTheory.Limits.Bicone F → C

A c : Bicone F is:

  • an object c.pt and
  • morphisms π j : pt ⟶ F j and ι j : F j ⟶ pt for each j,
  • such that ι j ≫ π j' is the identity when j = j' and zero otherwise.

abbrev CategoryTheory.Limits.Bicone.π E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → (self : CategoryTheory.Limits.Bicone F) → (j : J) → self.pt ⟶ F j

A c : Bicone F is:

  • an object c.pt and
  • morphisms π j : pt ⟶ F j and ι j : F j ⟶ pt for each j,
  • such that ι j ≫ π j' is the identity when j = j' and zero otherwise.

abbrev CategoryTheory.Limits.Bicone.ι E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → (self : CategoryTheory.Limits.Bicone F) → (j : J) → F j ⟶ self.pt

A c : Bicone F is:

  • an object c.pt and
  • morphisms π j : pt ⟶ F j and ι j : F j ⟶ pt for each j,
  • such that ι j ≫ π j' is the identity when j = j' and zero otherwise.

theorem CategoryTheory.Limits.Bicone.ι_π E1 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (self : CategoryTheory.Limits.Bicone F) (j j' : J),
  CategoryTheory.CategoryStruct.comp (self.ι j) (self.π j') = if h : j = j' then CategoryTheory.eqToHom ⋯ else 0

A c : Bicone F is:

  • an object c.pt and
  • morphisms π j : pt ⟶ F j and ι j : F j ⟶ pt for each j,
  • such that ι j ≫ π j' is the identity when j = j' and zero otherwise.

theorem CategoryTheory.Limits.Bicone.ι_π_assoc E1 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (self : CategoryTheory.Limits.Bicone F) (j j' : J)
  {Z : C} (h : F j' ⟶ Z),
  CategoryTheory.CategoryStruct.comp (self.ι j) (CategoryTheory.CategoryStruct.comp (self.π j') h) =
    CategoryTheory.CategoryStruct.comp (if h : j = j' then CategoryTheory.eqToHom ⋯ else 0) h

theorem CategoryTheory.Limits.bicone_ι_π_self_assoc E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F) (j : J) {Z : C}
  (h : F j ⟶ Z), CategoryTheory.CategoryStruct.comp (B.ι j) (CategoryTheory.CategoryStruct.comp (B.π j) h) = h

theorem CategoryTheory.Limits.bicone_ι_π_self E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F) (j : J),
  CategoryTheory.CategoryStruct.comp (B.ι j) (B.π j) = CategoryTheory.CategoryStruct.id (F j)

theorem CategoryTheory.Limits.bicone_ι_π_ne_assoc E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F) {j j' : J},
  j ≠ j' →
    ∀ {Z : C} (h : F j' ⟶ Z),
      CategoryTheory.CategoryStruct.comp (B.ι j) (CategoryTheory.CategoryStruct.comp (B.π j') h) =
        CategoryTheory.CategoryStruct.comp 0 h

theorem CategoryTheory.Limits.bicone_ι_π_ne E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F) {j j' : J},
  j ≠ j' → CategoryTheory.CategoryStruct.comp (B.ι j) (B.π j') = 0

structure CategoryTheory.Limits.BiconeMorphism E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → CategoryTheory.Limits.Bicone F → CategoryTheory.Limits.Bicone F → Type uC'

A bicone morphism between two bicones for the same diagram is a morphism of the bicone points which commutes with the cone and cocone legs.

ctor CategoryTheory.Limits.BiconeMorphism.mk E0 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} →
          {A B : CategoryTheory.Limits.Bicone F} →
            (hom : A.pt ⟶ B.pt) →
              autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp hom (B.π j) = A.π j)
                  CategoryTheory.Limits.BiconeMorphism.wπ._autoParam →
                autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp (A.ι j) hom = B.ι j)
                    CategoryTheory.Limits.BiconeMorphism.wι._autoParam →
                  CategoryTheory.Limits.BiconeMorphism A B

abbrev CategoryTheory.Limits.BiconeMorphism.hom E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → {A B : CategoryTheory.Limits.Bicone F} → CategoryTheory.Limits.BiconeMorphism A B → (A.pt ⟶ B.pt)

A morphism between the two vertex objects of the bicones

theorem CategoryTheory.Limits.BiconeMorphism.wπ E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {A B : CategoryTheory.Limits.Bicone F}
  (self : CategoryTheory.Limits.BiconeMorphism A B) (j : J), CategoryTheory.CategoryStruct.comp self.hom (B.π j) = A.π j

The triangle consisting of the two natural transformations and hom commutes

theorem CategoryTheory.Limits.BiconeMorphism.wι E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {A B : CategoryTheory.Limits.Bicone F}
  (self : CategoryTheory.Limits.BiconeMorphism A B) (j : J), CategoryTheory.CategoryStruct.comp (A.ι j) self.hom = B.ι j

The triangle consisting of the two natural transformations and hom commutes

theorem CategoryTheory.Limits.BiconeMorphism.wι_assoc E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {A B : CategoryTheory.Limits.Bicone F}
  (self : CategoryTheory.Limits.BiconeMorphism A B) (j : J) {Z : C} (h : B.pt ⟶ Z),
  CategoryTheory.CategoryStruct.comp (A.ι j) (CategoryTheory.CategoryStruct.comp self.hom h) =
    CategoryTheory.CategoryStruct.comp (B.ι j) h

The triangle consisting of the two natural transformations and hom commutes

theorem CategoryTheory.Limits.BiconeMorphism.wπ_assoc E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {A B : CategoryTheory.Limits.Bicone F}
  (self : CategoryTheory.Limits.BiconeMorphism A B) (j : J) {Z : C} (h : F j ⟶ Z),
  CategoryTheory.CategoryStruct.comp self.hom (CategoryTheory.CategoryStruct.comp (B.π j) h) =
    CategoryTheory.CategoryStruct.comp (A.π j) h

The triangle consisting of the two natural transformations and hom commutes

instance CategoryTheory.Limits.Bicone.category E0 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → CategoryTheory.Category.{uC', max (max uC uC') w} (CategoryTheory.Limits.Bicone F)

The category of bicones on a given diagram.

theorem CategoryTheory.Limits.Bicone.category_id_hom E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F),
  (CategoryTheory.CategoryStruct.id B).hom = CategoryTheory.CategoryStruct.id B.pt

theorem CategoryTheory.Limits.Bicone.category_comp_hom E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {X Y Z : CategoryTheory.Limits.Bicone F}
  (f : CategoryTheory.Limits.BiconeMorphism X Y) (g : CategoryTheory.Limits.BiconeMorphism Y Z),
  (CategoryTheory.CategoryStruct.comp f g).hom = CategoryTheory.CategoryStruct.comp f.hom g.hom

theorem CategoryTheory.Limits.BiconeMorphism.ext_iff E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {c c' : CategoryTheory.Limits.Bicone F}
  {f g : c ⟶ c'}, f = g ↔ f.hom = g.hom

theorem CategoryTheory.Limits.BiconeMorphism.ext E1 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {c c' : CategoryTheory.Limits.Bicone F}
  (f g : c ⟶ c'), f.hom = g.hom → f = g

def CategoryTheory.Limits.Bicones.ext E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} →
          {c c' : CategoryTheory.Limits.Bicone F} →
            (φ : c.pt ≅ c'.pt) →
              autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp (c.ι j) φ.hom = c'.ι j)
                  CategoryTheory.Limits.Bicones.ext._auto_1 →
                autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp φ.hom (c'.π j) = c.π j)
                    CategoryTheory.Limits.Bicones.ext._auto_3 →
                  (c ≅ c')

To give an isomorphism between cocones, it suffices to give an isomorphism between their vertices which commutes with the cocone maps.

theorem CategoryTheory.Limits.Bicones.ext_inv_hom E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {c c' : CategoryTheory.Limits.Bicone F}
  (φ : c.pt ≅ c'.pt)
  (wι :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp (c.ι j) φ.hom = c'.ι j)
      CategoryTheory.Limits.Bicones.ext._auto_1)
  (wπ :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp φ.hom (c'.π j) = c.π j)
      CategoryTheory.Limits.Bicones.ext._auto_3),
  (CategoryTheory.Limits.Bicones.ext φ wι wπ).inv.hom = φ.inv

theorem CategoryTheory.Limits.Bicones.ext_hom_hom E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} {c c' : CategoryTheory.Limits.Bicone F}
  (φ : c.pt ≅ c'.pt)
  (wι :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp (c.ι j) φ.hom = c'.ι j)
      CategoryTheory.Limits.Bicones.ext._auto_1)
  (wπ :
    autoParam (∀ (j : J), CategoryTheory.CategoryStruct.comp φ.hom (c'.π j) = c.π j)
      CategoryTheory.Limits.Bicones.ext._auto_3),
  (CategoryTheory.Limits.Bicones.ext φ wι wπ).hom.hom = φ.hom

def CategoryTheory.Limits.Bicones.functoriality E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {D : Type uD} →
          [inst_2 : CategoryTheory.Category.{uD', uD} D] →
            [inst_3 : CategoryTheory.Limits.HasZeroMorphisms D] →
              (F : J → C) →
                (G : CategoryTheory.Functor C D) →
                  [G.PreservesZeroMorphisms] →
                    CategoryTheory.Functor (CategoryTheory.Limits.Bicone F) (CategoryTheory.Limits.Bicone (G.obj ∘ F))

A functor G : C ⥤ D sends bicones over F to bicones over G.obj ∘ F functorially.

theorem CategoryTheory.Limits.Bicones.functoriality_map_hom E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {D : Type uD} [inst_2 : CategoryTheory.Category.{uD', uD} D]
  [inst_3 : CategoryTheory.Limits.HasZeroMorphisms D] (F : J → C) (G : CategoryTheory.Functor C D)
  [inst_4 : G.PreservesZeroMorphisms] {X Y : CategoryTheory.Limits.Bicone F} (f : X ⟶ Y),
  ((CategoryTheory.Limits.Bicones.functoriality F G).map f).hom = G.map f.hom

theorem CategoryTheory.Limits.Bicones.functoriality_obj_pt E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {D : Type uD} [inst_2 : CategoryTheory.Category.{uD', uD} D]
  [inst_3 : CategoryTheory.Limits.HasZeroMorphisms D] (F : J → C) (G : CategoryTheory.Functor C D)
  [inst_4 : G.PreservesZeroMorphisms] (A : CategoryTheory.Limits.Bicone F),
  ((CategoryTheory.Limits.Bicones.functoriality F G).obj A).pt = G.obj A.pt

theorem CategoryTheory.Limits.Bicones.functoriality_obj_ι E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {D : Type uD} [inst_2 : CategoryTheory.Category.{uD', uD} D]
  [inst_3 : CategoryTheory.Limits.HasZeroMorphisms D] (F : J → C) (G : CategoryTheory.Functor C D)
  [inst_4 : G.PreservesZeroMorphisms] (A : CategoryTheory.Limits.Bicone F) (j : J),
  ((CategoryTheory.Limits.Bicones.functoriality F G).obj A).ι j = G.map (A.ι j)

theorem CategoryTheory.Limits.Bicones.functoriality_obj_π E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {D : Type uD} [inst_2 : CategoryTheory.Category.{uD', uD} D]
  [inst_3 : CategoryTheory.Limits.HasZeroMorphisms D] (F : J → C) (G : CategoryTheory.Functor C D)
  [inst_4 : G.PreservesZeroMorphisms] (A : CategoryTheory.Limits.Bicone F) (j : J),
  ((CategoryTheory.Limits.Bicones.functoriality F G).obj A).π j = G.map (A.π j)

instance CategoryTheory.Limits.Bicones.functoriality_full E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {D : Type uD} [inst_2 : CategoryTheory.Category.{uD', uD} D]
  [inst_3 : CategoryTheory.Limits.HasZeroMorphisms D] {F : J → C} (G : CategoryTheory.Functor C D)
  [inst_4 : G.PreservesZeroMorphisms] [G.Full] [G.Faithful], (CategoryTheory.Limits.Bicones.functoriality F G).Full

instance CategoryTheory.Limits.Bicones.functoriality_faithful E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {D : Type uD} [inst_2 : CategoryTheory.Category.{uD', uD} D]
  [inst_3 : CategoryTheory.Limits.HasZeroMorphisms D] {F : J → C} (G : CategoryTheory.Functor C D)
  [inst_4 : G.PreservesZeroMorphisms] [G.Faithful], (CategoryTheory.Limits.Bicones.functoriality F G).Faithful

def CategoryTheory.Limits.Bicone.toConeFunctor E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} →
          CategoryTheory.Functor (CategoryTheory.Limits.Bicone F)
            (CategoryTheory.Limits.Cone (CategoryTheory.Discrete.functor F))

Extract the cone from a bicone.

abbrev CategoryTheory.Limits.Bicone.toCone E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → CategoryTheory.Limits.Bicone F → CategoryTheory.Limits.Cone (CategoryTheory.Discrete.functor F)

A shorthand for toConeFunctor.obj

theorem CategoryTheory.Limits.Bicone.toCone_pt E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F),
  B.toCone.pt = B.pt

theorem CategoryTheory.Limits.Bicone.toCone_π_app E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F)
  (j : CategoryTheory.Discrete J), B.toCone.π.app j = B.π j.as

theorem CategoryTheory.Limits.Bicone.toCone_π_app_mk E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F) (j : J),
  B.toCone.π.app { as := j } = B.π j

theorem CategoryTheory.Limits.Bicone.toCone_proj E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F) (j : J),
  CategoryTheory.Limits.Fan.proj B.toCone j = B.π j

def CategoryTheory.Limits.Bicone.toCoconeFunctor E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} →
          CategoryTheory.Functor (CategoryTheory.Limits.Bicone F)
            (CategoryTheory.Limits.Cocone (CategoryTheory.Discrete.functor F))

Extract the cocone from a bicone.

abbrev CategoryTheory.Limits.Bicone.toCocone E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → CategoryTheory.Limits.Bicone F → CategoryTheory.Limits.Cocone (CategoryTheory.Discrete.functor F)

A shorthand for toCoconeFunctor.obj

theorem CategoryTheory.Limits.Bicone.toCocone_pt E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F),
  B.toCocone.pt = B.pt

theorem CategoryTheory.Limits.Bicone.toCocone_ι_app E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F)
  (j : CategoryTheory.Discrete J), B.toCocone.ι.app j = B.ι j.as

theorem CategoryTheory.Limits.Bicone.toCocone_inj E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F) (j : J),
  CategoryTheory.Limits.Cofan.inj B.toCocone j = B.ι j

theorem CategoryTheory.Limits.Bicone.toCocone_ι_app_mk E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F) (j : J),
  B.toCocone.ι.app { as := j } = B.ι j

def CategoryTheory.Limits.Bicone.retract E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → (B : CategoryTheory.Limits.Bicone F) → (j : J) → CategoryTheory.Retract (F j) B.pt

The retract of a bicone B given by B.ι j and B.π j.

instance CategoryTheory.Limits.Bicone.instIsSplitMonoι E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F) (j : J),
  CategoryTheory.IsSplitMono (B.ι j)

instance CategoryTheory.Limits.Bicone.instIsSplitEpiπ E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (B : CategoryTheory.Limits.Bicone F) (j : J),
  CategoryTheory.IsSplitEpi (B.π j)

def CategoryTheory.Limits.Bicone.ofLimitCone E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {f : J → C} →
          {t : CategoryTheory.Limits.Cone (CategoryTheory.Discrete.functor f)} →
            CategoryTheory.Limits.IsLimit t → CategoryTheory.Limits.Bicone f

We can turn any limit cone over a discrete collection of objects into a bicone.

theorem CategoryTheory.Limits.Bicone.ofLimitCone_ι E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C}
  {t : CategoryTheory.Limits.Cone (CategoryTheory.Discrete.functor f)} (ht : CategoryTheory.Limits.IsLimit t) (j : J),
  (CategoryTheory.Limits.Bicone.ofLimitCone ht).ι j =
    ht.lift (CategoryTheory.Limits.Fan.mk (f j) fun j' ↦ if h : j = j' then CategoryTheory.eqToHom ⋯ else 0)

theorem CategoryTheory.Limits.Bicone.ofLimitCone_π E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C}
  {t : CategoryTheory.Limits.Cone (CategoryTheory.Discrete.functor f)} (ht : CategoryTheory.Limits.IsLimit t) (j : J),
  (CategoryTheory.Limits.Bicone.ofLimitCone ht).π j = t.π.app { as := j }

theorem CategoryTheory.Limits.Bicone.ofLimitCone_pt E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C}
  {t : CategoryTheory.Limits.Cone (CategoryTheory.Discrete.functor f)} (ht : CategoryTheory.Limits.IsLimit t),
  (CategoryTheory.Limits.Bicone.ofLimitCone ht).pt = t.pt

theorem CategoryTheory.Limits.Bicone.ι_of_isLimit E1 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} {t : CategoryTheory.Limits.Bicone f}
  (ht : CategoryTheory.Limits.IsLimit t.toCone) (j : J),
  t.ι j = ht.lift (CategoryTheory.Limits.Fan.mk (f j) fun j' ↦ if h : j = j' then CategoryTheory.eqToHom ⋯ else 0)

def CategoryTheory.Limits.Bicone.ofColimitCocone E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {f : J → C} →
          {t : CategoryTheory.Limits.Cocone (CategoryTheory.Discrete.functor f)} →
            CategoryTheory.Limits.IsColimit t → CategoryTheory.Limits.Bicone f

We can turn any colimit cocone over a discrete collection of objects into a bicone.

theorem CategoryTheory.Limits.Bicone.ofColimitCocone_ι E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C}
  {t : CategoryTheory.Limits.Cocone (CategoryTheory.Discrete.functor f)} (ht : CategoryTheory.Limits.IsColimit t)
  (j : J), (CategoryTheory.Limits.Bicone.ofColimitCocone ht).ι j = t.ι.app { as := j }

theorem CategoryTheory.Limits.Bicone.ofColimitCocone_π E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C}
  {t : CategoryTheory.Limits.Cocone (CategoryTheory.Discrete.functor f)} (ht : CategoryTheory.Limits.IsColimit t)
  (j : J),
  (CategoryTheory.Limits.Bicone.ofColimitCocone ht).π j =
    ht.desc (CategoryTheory.Limits.Cofan.mk (f j) fun j' ↦ if h : j' = j then CategoryTheory.eqToHom ⋯ else 0)

theorem CategoryTheory.Limits.Bicone.ofColimitCocone_pt E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C}
  {t : CategoryTheory.Limits.Cocone (CategoryTheory.Discrete.functor f)} (ht : CategoryTheory.Limits.IsColimit t),
  (CategoryTheory.Limits.Bicone.ofColimitCocone ht).pt = t.pt

theorem CategoryTheory.Limits.Bicone.π_of_isColimit E1 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} {t : CategoryTheory.Limits.Bicone f}
  (ht : CategoryTheory.Limits.IsColimit t.toCocone) (j : J),
  t.π j = ht.desc (CategoryTheory.Limits.Cofan.mk (f j) fun j' ↦ if h : j' = j then CategoryTheory.eqToHom ⋯ else 0)

structure CategoryTheory.Limits.Bicone.IsBilimit E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → CategoryTheory.Limits.Bicone F → Type (max (max uC uC') w)

Structure witnessing that a bicone is both a limit cone and a colimit cocone.

ctor CategoryTheory.Limits.Bicone.IsBilimit.mk E0 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} →
          {B : CategoryTheory.Limits.Bicone F} →
            CategoryTheory.Limits.IsLimit B.toCone → CategoryTheory.Limits.IsColimit B.toCocone → B.IsBilimit

abbrev CategoryTheory.Limits.Bicone.IsBilimit.isLimit E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → {B : CategoryTheory.Limits.Bicone F} → B.IsBilimit → CategoryTheory.Limits.IsLimit B.toCone

Structure witnessing that a bicone is both a limit cone and a colimit cocone.

abbrev CategoryTheory.Limits.Bicone.IsBilimit.isColimit E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → {B : CategoryTheory.Limits.Bicone F} → B.IsBilimit → CategoryTheory.Limits.IsColimit B.toCocone

Structure witnessing that a bicone is both a limit cone and a colimit cocone.

theorem CategoryTheory.Limits.Bicone.IsBilimit.ext_iff E0 #

∀ {J : Type w} {C : Type uC} {inst : CategoryTheory.Category.{uC', uC} C}
  {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} {F : J → C} {B : CategoryTheory.Limits.Bicone F}
  {x y : B.IsBilimit}, x = y ↔ x.isLimit = y.isLimit ∧ x.isColimit = y.isColimit

theorem CategoryTheory.Limits.Bicone.IsBilimit.ext E1 #

∀ {J : Type w} {C : Type uC} {inst : CategoryTheory.Category.{uC', uC} C}
  {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} {F : J → C} {B : CategoryTheory.Limits.Bicone F}
  {x y : B.IsBilimit}, x.isLimit = y.isLimit → x.isColimit = y.isColimit → x = y

instance CategoryTheory.Limits.Bicone.subsingleton_isBilimit E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} {c : CategoryTheory.Limits.Bicone f},
  Subsingleton c.IsBilimit

def CategoryTheory.Limits.Bicone.whisker E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {K : Type w'} →
          {f : J → C} → CategoryTheory.Limits.Bicone f → (g : K ≃ J) → CategoryTheory.Limits.Bicone (f ∘ ⇑g)

Whisker a bicone with an equivalence between the indexing types.

theorem CategoryTheory.Limits.Bicone.whisker_pt E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type w'} {f : J → C} (c : CategoryTheory.Limits.Bicone f)
  (g : K ≃ J), (c.whisker g).pt = c.pt

theorem CategoryTheory.Limits.Bicone.whisker_π E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type w'} {f : J → C} (c : CategoryTheory.Limits.Bicone f)
  (g : K ≃ J) (k : K), (c.whisker g).π k = c.π (g k)

theorem CategoryTheory.Limits.Bicone.whisker_ι E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type w'} {f : J → C} (c : CategoryTheory.Limits.Bicone f)
  (g : K ≃ J) (k : K), (c.whisker g).ι k = c.ι (g k)

def CategoryTheory.Limits.Bicone.whiskerToCone E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {K : Type w'} →
          {f : J → C} →
            (c : CategoryTheory.Limits.Bicone f) →
              (g : K ≃ J) →
                (c.whisker g).toCone ≅
                  (CategoryTheory.Limits.Cone.postcompose (CategoryTheory.Discrete.functorComp f ⇑g).inv).obj
                    (CategoryTheory.Limits.Cone.whisker
                      (CategoryTheory.Discrete.functor (CategoryTheory.Discrete.mk ∘ ⇑g)) c.toCone)

Taking the cone of a whiskered bicone results in a cone isomorphic to one gained by whiskering the cone and postcomposing with a suitable isomorphism.

def CategoryTheory.Limits.Bicone.whiskerToCocone E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {K : Type w'} →
          {f : J → C} →
            (c : CategoryTheory.Limits.Bicone f) →
              (g : K ≃ J) →
                (c.whisker g).toCocone ≅
                  (CategoryTheory.Limits.Cocone.precompose (CategoryTheory.Discrete.functorComp f ⇑g).hom).obj
                    (CategoryTheory.Limits.Cocone.whisker
                      (CategoryTheory.Discrete.functor (CategoryTheory.Discrete.mk ∘ ⇑g)) c.toCocone)

Taking the cocone of a whiskered bicone results in a cone isomorphic to one gained by whiskering the cocone and precomposing with a suitable isomorphism.

def CategoryTheory.Limits.Bicone.whiskerIsBilimitIff E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {K : Type w'} →
          {f : J → C} → (c : CategoryTheory.Limits.Bicone f) → (g : K ≃ J) → (c.whisker g).IsBilimit ≃ c.IsBilimit

Whiskering a bicone with an equivalence between types preserves being a bilimit bicone.

structure CategoryTheory.Limits.LimitBicone E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [CategoryTheory.Limits.HasZeroMorphisms C] → (J → C) → Type (max (max uC uC') w)

A bicone over F : J → C, which is both a limit cone and a colimit cocone.

ctor CategoryTheory.Limits.LimitBicone.mk E0 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → (bicone : CategoryTheory.Limits.Bicone F) → bicone.IsBilimit → CategoryTheory.Limits.LimitBicone F

abbrev CategoryTheory.Limits.LimitBicone.bicone E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → CategoryTheory.Limits.LimitBicone F → CategoryTheory.Limits.Bicone F

A bicone over F : J → C, which is both a limit cone and a colimit cocone.

abbrev CategoryTheory.Limits.LimitBicone.isBilimit E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {F : J → C} → (self : CategoryTheory.Limits.LimitBicone F) → self.bicone.IsBilimit

A bicone over F : J → C, which is both a limit cone and a colimit cocone.

class CategoryTheory.Limits.HasBiproduct E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] → [CategoryTheory.Limits.HasZeroMorphisms C] → (J → C) → Prop

HasBiproduct F expresses the mere existence of a bicone which is simultaneously a limit and a colimit of the diagram F.

ctor CategoryTheory.Limits.HasBiproduct.mk' E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C},
  Nonempty (CategoryTheory.Limits.LimitBicone F) → CategoryTheory.Limits.HasBiproduct F

theorem CategoryTheory.Limits.HasBiproduct.exists_biproduct E1 #

∀ {J : Type w} {C : Type uC} {inst : CategoryTheory.Category.{uC', uC} C}
  {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} {F : J → C} [self : CategoryTheory.Limits.HasBiproduct F],
  Nonempty (CategoryTheory.Limits.LimitBicone F)

HasBiproduct F expresses the mere existence of a bicone which is simultaneously a limit and a colimit of the diagram F.

theorem CategoryTheory.Limits.HasBiproduct.mk E1 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} (d : CategoryTheory.Limits.LimitBicone F),
  CategoryTheory.Limits.HasBiproduct F

def CategoryTheory.Limits.getBiproductData E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (F : J → C) → [CategoryTheory.Limits.HasBiproduct F] → CategoryTheory.Limits.LimitBicone F

Use the axiom of choice to extract explicit BiproductData F from HasBiproduct F.

def CategoryTheory.Limits.biproduct.bicone E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (F : J → C) → [CategoryTheory.Limits.HasBiproduct F] → CategoryTheory.Limits.Bicone F

A bicone for F which is both a limit cone and a colimit cocone.

def CategoryTheory.Limits.biproduct.isBilimit E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (F : J → C) →
          [inst_2 : CategoryTheory.Limits.HasBiproduct F] → (CategoryTheory.Limits.biproduct.bicone F).IsBilimit

biproduct.bicone F is a bilimit bicone.

def CategoryTheory.Limits.biproduct.isLimit E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (F : J → C) →
          [inst_2 : CategoryTheory.Limits.HasBiproduct F] →
            CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.biproduct.bicone F).toCone

biproduct.bicone F is a limit cone.

def CategoryTheory.Limits.biproduct.isColimit E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (F : J → C) →
          [inst_2 : CategoryTheory.Limits.HasBiproduct F] →
            CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.biproduct.bicone F).toCocone

biproduct.bicone F is a colimit cocone.

instance CategoryTheory.Limits.hasProduct_of_hasBiproduct E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} [CategoryTheory.Limits.HasBiproduct F],
  CategoryTheory.Limits.HasProduct F

instance CategoryTheory.Limits.hasCoproduct_of_hasBiproduct E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {F : J → C} [CategoryTheory.Limits.HasBiproduct F],
  CategoryTheory.Limits.HasCoproduct F

class CategoryTheory.Limits.HasBiproductsOfShape E1 #

Type w →
  (C : Type uC) → [inst : CategoryTheory.Category.{uC', uC} C] → [CategoryTheory.Limits.HasZeroMorphisms C] → Prop

C has biproducts of shape J if we have a limit and a colimit, with the same cone points, of every function F : J → C.

ctor CategoryTheory.Limits.HasBiproductsOfShape.mk E0 #

∀ {J : Type w} {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C],
  (∀ (F : J → C), CategoryTheory.Limits.HasBiproduct F) → CategoryTheory.Limits.HasBiproductsOfShape J C

instance CategoryTheory.Limits.HasBiproductsOfShape.has_biproduct E0 #

∀ {J : Type w} {C : Type uC} {inst : CategoryTheory.Category.{uC', uC} C}
  {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C} [self : CategoryTheory.Limits.HasBiproductsOfShape J C]
  (F : J → C), CategoryTheory.Limits.HasBiproduct F

class CategoryTheory.Limits.HasFiniteBiproducts E1 #

(C : Type uC) → [inst : CategoryTheory.Category.{uC', uC} C] → [CategoryTheory.Limits.HasZeroMorphisms C] → Prop

A category HasFiniteBiproducts if it has a biproduct for every finite family of objects in C indexed by a finite type.

ctor CategoryTheory.Limits.HasFiniteBiproducts.mk E0 #

∀ {C : Type uC} [inst : CategoryTheory.Category.{uC', uC} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C],
  (∀ (n : ℕ), CategoryTheory.Limits.HasBiproductsOfShape (Fin n) C) → CategoryTheory.Limits.HasFiniteBiproducts C

theorem CategoryTheory.Limits.HasFiniteBiproducts.out E1 #

∀ {C : Type uC} {inst : CategoryTheory.Category.{uC', uC} C} {inst_1 : CategoryTheory.Limits.HasZeroMorphisms C}
  [self : CategoryTheory.Limits.HasFiniteBiproducts C] (n : ℕ), CategoryTheory.Limits.HasBiproductsOfShape (Fin n) C

A category HasFiniteBiproducts if it has a biproduct for every finite family of objects in C indexed by a finite type.

theorem CategoryTheory.Limits.hasBiproductsOfShape_of_equiv E1 #

∀ {J : Type w} (C : Type uC) [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type w'} [CategoryTheory.Limits.HasBiproductsOfShape K C]
  (e : J ≃ K), CategoryTheory.Limits.HasBiproductsOfShape J C

instance CategoryTheory.Limits.hasBiproductsOfShape_finite E0 #

∀ {J : Type w} (C : Type uC) [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [CategoryTheory.Limits.HasFiniteBiproducts C] [Finite J],
  CategoryTheory.Limits.HasBiproductsOfShape J C

instance CategoryTheory.Limits.hasFiniteProducts_of_hasFiniteBiproducts E0 #

∀ (C : Type uC) [inst : CategoryTheory.Category.{uC', uC} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C]
  [CategoryTheory.Limits.HasFiniteBiproducts C], CategoryTheory.Limits.HasFiniteProducts C

instance CategoryTheory.Limits.hasFiniteCoproducts_of_hasFiniteBiproducts E0 #

∀ (C : Type uC) [inst : CategoryTheory.Category.{uC', uC} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C]
  [CategoryTheory.Limits.HasFiniteBiproducts C], CategoryTheory.Limits.HasFiniteCoproducts C

instance CategoryTheory.Limits.hasProductsOfShape_of_hasBiproductsOfShape E0 #

∀ {J : Type w} (C : Type uC) [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [CategoryTheory.Limits.HasBiproductsOfShape J C],
  CategoryTheory.Limits.HasProductsOfShape J C

instance CategoryTheory.Limits.hasCoproductsOfShape_of_hasBiproductsOfShape E0 #

∀ {J : Type w} (C : Type uC) [inst : CategoryTheory.Category.{uC', uC} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [CategoryTheory.Limits.HasBiproductsOfShape J C],
  CategoryTheory.Limits.HasCoproductsOfShape J C

def CategoryTheory.Limits.biproductIso E1 #

{J : Type w} →
  {C : Type uC} →
    [inst : CategoryTheory.Category.{uC', uC} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (F : J → C) → [inst_2 : CategoryTheory.Limits.HasBiproduct F] → ∏ᶜ F ≅ ∐ F

The isomorphism between the specified limit and the specified colimit for a functor with a bilimit.

abbrev CategoryTheory.Limits.biproduct E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] → (f : J → C) → [CategoryTheory.Limits.HasBiproduct f] → C

biproduct f computes the biproduct of a family of elements f. (It is defined as an abbreviation for limit (Discrete.functor f), so for most facts about biproduct f, you will just use general facts about limits and colimits.)

def CategoryTheory.Limits.«term⨁_» E1 #

Lean.ParserDescr

biproduct f computes the biproduct of a family of elements f. (It is defined as an abbreviation for limit (Discrete.functor f), so for most facts about biproduct f, you will just use general facts about limits and colimits.)

abbrev CategoryTheory.Limits.biproduct.π E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) → [inst_2 : CategoryTheory.Limits.HasBiproduct f] → (b : J) → ⨁ f ⟶ f b

The projection onto a summand of a biproduct.

theorem CategoryTheory.Limits.biproduct.bicone_π E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (b : J), (CategoryTheory.Limits.biproduct.bicone f).π b = CategoryTheory.Limits.biproduct.π f b

abbrev CategoryTheory.Limits.biproduct.ι E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) → [inst_2 : CategoryTheory.Limits.HasBiproduct f] → (b : J) → f b ⟶ ⨁ f

The inclusion into a summand of a biproduct.

theorem CategoryTheory.Limits.biproduct.bicone_ι E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (b : J), (CategoryTheory.Limits.biproduct.bicone f).ι b = CategoryTheory.Limits.biproduct.ι f b

theorem CategoryTheory.Limits.biproduct.ι_π E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : DecidableEq J] (f : J → C)
  [inst_3 : CategoryTheory.Limits.HasBiproduct f] (j j' : J),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j) (CategoryTheory.Limits.biproduct.π f j') =
    if h : j = j' then CategoryTheory.eqToHom ⋯ else 0

Note that as this lemma has an if in the statement, we include a DecidableEq argument. This means you may not be able to simp using this lemma unless you open scoped Classical.

theorem CategoryTheory.Limits.biproduct.ι_π_assoc E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : DecidableEq J] (f : J → C)
  [inst_3 : CategoryTheory.Limits.HasBiproduct f] (j j' : J) {Z : C} (h : f j' ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f j') h) =
    CategoryTheory.CategoryStruct.comp (if h : j = j' then CategoryTheory.eqToHom ⋯ else 0) h

Note that as this lemma has an if in the statement, we include a DecidableEq argument. This means you may not be able to simp using this lemma unless you open scoped Classical.

theorem CategoryTheory.Limits.biproduct.ι_π_self_assoc E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (j : J) {Z : C} (h : f j ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f j) h) =
    h

theorem CategoryTheory.Limits.biproduct.ι_π_self E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (j : J),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j) (CategoryTheory.Limits.biproduct.π f j) =
    CategoryTheory.CategoryStruct.id (f j)

theorem CategoryTheory.Limits.biproduct.ι_π_ne E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {j j' : J},
  j ≠ j' →
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j)
        (CategoryTheory.Limits.biproduct.π f j') =
      0

theorem CategoryTheory.Limits.biproduct.ι_π_ne_assoc E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {j j' : J},
  j ≠ j' →
    ∀ {Z : C} (h : f j' ⟶ Z),
      CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j)
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f j') h) =
        CategoryTheory.CategoryStruct.comp 0 h

theorem CategoryTheory.Limits.biproduct.eqToHom_comp_ι_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {j j' : J} (w : j = j') {Z : C} (h : ⨁ f ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j') h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j) h

theorem CategoryTheory.Limits.biproduct.eqToHom_comp_ι E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {j j' : J} (w : j = j'),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯) (CategoryTheory.Limits.biproduct.ι f j') =
    CategoryTheory.Limits.biproduct.ι f j

theorem CategoryTheory.Limits.biproduct.π_comp_eqToHom_assoc E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {j j' : J} (w : j = j') {Z : C} (h : f j' ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f j)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f j') h

theorem CategoryTheory.Limits.biproduct.π_comp_eqToHom E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {j j' : J} (w : j = j'),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f j) (CategoryTheory.eqToHom ⋯) =
    CategoryTheory.Limits.biproduct.π f j'

abbrev CategoryTheory.Limits.biproduct.lift E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {f : J → C} → [inst_2 : CategoryTheory.Limits.HasBiproduct f] → {P : C} → ((b : J) → P ⟶ f b) → (P ⟶ ⨁ f)

Given a collection of maps into the summands, we obtain a map into the biproduct.

abbrev CategoryTheory.Limits.biproduct.desc E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {f : J → C} → [inst_2 : CategoryTheory.Limits.HasBiproduct f] → {P : C} → ((b : J) → f b ⟶ P) → (⨁ f ⟶ P)

Given a collection of maps out of the summands, we obtain a map out of the biproduct.

theorem CategoryTheory.Limits.biproduct.lift_π_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {P : C} (p : (b : J) → P ⟶ f b) (j : J) {Z : C} (h : f j ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.lift p)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f j) h) =
    CategoryTheory.CategoryStruct.comp (p j) h

theorem CategoryTheory.Limits.biproduct.lift_π E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {P : C} (p : (b : J) → P ⟶ f b) (j : J),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.lift p) (CategoryTheory.Limits.biproduct.π f j) =
    p j

theorem CategoryTheory.Limits.biproduct.ι_desc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {P : C} (p : (b : J) → f b ⟶ P) (j : J),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j) (CategoryTheory.Limits.biproduct.desc p) =
    p j

theorem CategoryTheory.Limits.biproduct.ι_desc_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {P : C} (p : (b : J) → f b ⟶ P) (j : J) {Z : C} (h : P ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.desc p) h) =
    CategoryTheory.CategoryStruct.comp (p j) h

abbrev CategoryTheory.Limits.biproduct.map E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {f g : J → C} →
          [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
            [inst_3 : CategoryTheory.Limits.HasBiproduct g] → ((b : J) → f b ⟶ g b) → (⨁ f ⟶ ⨁ g)

Given a collection of maps between corresponding summands of a pair of biproducts indexed by the same type, we obtain a map between the biproducts.

abbrev CategoryTheory.Limits.biproduct.map' E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {f g : J → C} →
          [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
            [inst_3 : CategoryTheory.Limits.HasBiproduct g] → ((b : J) → f b ⟶ g b) → (⨁ f ⟶ ⨁ g)

An alternative to biproduct.map constructed via colimits. This construction only exists in order to show it is equal to biproduct.map.

theorem CategoryTheory.Limits.biproduct.hom_ext E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {Z : C} (g h : Z ⟶ ⨁ f),
  (∀ (j : J),
      CategoryTheory.CategoryStruct.comp g (CategoryTheory.Limits.biproduct.π f j) =
        CategoryTheory.CategoryStruct.comp h (CategoryTheory.Limits.biproduct.π f j)) →
    g = h

theorem CategoryTheory.Limits.biproduct.hom_ext_iff E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {Z : C} {g h : Z ⟶ ⨁ f},
  g = h ↔
    ∀ (j : J),
      CategoryTheory.CategoryStruct.comp g (CategoryTheory.Limits.biproduct.π f j) =
        CategoryTheory.CategoryStruct.comp h (CategoryTheory.Limits.biproduct.π f j)

theorem CategoryTheory.Limits.biproduct.hom_ext'_iff E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {Z : C} {g h : ⨁ f ⟶ Z},
  g = h ↔
    ∀ (j : J),
      CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j) g =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j) h

theorem CategoryTheory.Limits.biproduct.hom_ext' E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {Z : C} (g h : ⨁ f ⟶ Z),
  (∀ (j : J),
      CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j) g =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j) h) →
    g = h

def CategoryTheory.Limits.biproduct.isoProduct E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) → [inst_2 : CategoryTheory.Limits.HasBiproduct f] → ⨁ f ≅ ∏ᶜ f

The canonical isomorphism between the chosen biproduct and the chosen product.

theorem CategoryTheory.Limits.biproduct.isoProduct_hom E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f],
  (CategoryTheory.Limits.biproduct.isoProduct f).hom =
    CategoryTheory.Limits.Pi.lift (CategoryTheory.Limits.biproduct.π f)

theorem CategoryTheory.Limits.biproduct.isoProduct_inv E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f],
  (CategoryTheory.Limits.biproduct.isoProduct f).inv =
    CategoryTheory.Limits.biproduct.lift (CategoryTheory.Limits.Pi.π f)

def CategoryTheory.Limits.biproduct.isoCoproduct E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) → [inst_2 : CategoryTheory.Limits.HasBiproduct f] → ⨁ f ≅ ∐ f

The canonical isomorphism between the chosen biproduct and the chosen coproduct.

theorem CategoryTheory.Limits.biproduct.isoCoproduct_inv E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f],
  (CategoryTheory.Limits.biproduct.isoCoproduct f).inv =
    CategoryTheory.Limits.Sigma.desc (CategoryTheory.Limits.biproduct.ι f)

theorem CategoryTheory.Limits.biproduct.isoCoproduct_hom E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f],
  (CategoryTheory.Limits.biproduct.isoCoproduct f).hom =
    CategoryTheory.Limits.biproduct.desc (CategoryTheory.Limits.Sigma.ι f)

def CategoryTheory.Limits.HasBiproductsOfShape.colimIsoLim E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        [inst_2 : CategoryTheory.Limits.HasBiproductsOfShape J C] →
          CategoryTheory.Limits.colim ≅ CategoryTheory.Limits.lim

If a category has biproducts of a shape J, its colim and lim functor on diagrams over J are isomorphic.

theorem CategoryTheory.Limits.HasBiproductsOfShape.colimIsoLim_hom_app E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : CategoryTheory.Limits.HasBiproductsOfShape J C]
  (X : CategoryTheory.Functor (CategoryTheory.Discrete J) C),
  CategoryTheory.Limits.HasBiproductsOfShape.colimIsoLim.hom.app X =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.Sigma.isoColimit X).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.Sigma.desc (CategoryTheory.Limits.biproduct.ι fun j ↦ X.obj { as := j }))
        (CategoryTheory.CategoryStruct.comp
          (CategoryTheory.Limits.Pi.lift (CategoryTheory.Limits.biproduct.π fun j ↦ X.obj { as := j }))
          (CategoryTheory.Limits.Pi.isoLimit X).hom))

theorem CategoryTheory.Limits.HasBiproductsOfShape.colimIsoLim_inv_app E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : CategoryTheory.Limits.HasBiproductsOfShape J C]
  (X : CategoryTheory.Functor (CategoryTheory.Discrete J) C),
  CategoryTheory.Limits.HasBiproductsOfShape.colimIsoLim.inv.app X =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.Pi.isoLimit X).inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.biproduct.lift (CategoryTheory.Limits.Pi.π fun j ↦ X.obj { as := j }))
        (CategoryTheory.CategoryStruct.comp
          (CategoryTheory.Limits.biproduct.desc (CategoryTheory.Limits.Sigma.ι fun j ↦ X.obj { as := j }))
          (CategoryTheory.Limits.Sigma.isoColimit X).hom))

theorem CategoryTheory.Limits.biproduct.map_eq_map' E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (b : J) → f b ⟶ g b),
  CategoryTheory.Limits.biproduct.map p = CategoryTheory.Limits.biproduct.map' p

theorem CategoryTheory.Limits.biproduct.map_π_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (j : J) → f j ⟶ g j) (j : J) {Z : C} (h : g j ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.map p)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π g j) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f j)
      (CategoryTheory.CategoryStruct.comp (p j) h)

theorem CategoryTheory.Limits.biproduct.map_π E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (j : J) → f j ⟶ g j) (j : J),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.map p) (CategoryTheory.Limits.biproduct.π g j) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f j) (p j)

theorem CategoryTheory.Limits.biproduct.ι_map_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (j : J) → f j ⟶ g j) (j : J) {Z : C} (h : ⨁ g ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.map p) h) =
    CategoryTheory.CategoryStruct.comp (p j)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι g j) h)

theorem CategoryTheory.Limits.biproduct.ι_map E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (j : J) → f j ⟶ g j) (j : J),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j) (CategoryTheory.Limits.biproduct.map p) =
    CategoryTheory.CategoryStruct.comp (p j) (CategoryTheory.Limits.biproduct.ι g j)

theorem CategoryTheory.Limits.biproduct.map_desc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (j : J) → f j ⟶ g j) {P : C} (k : (j : J) → g j ⟶ P),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.map p) (CategoryTheory.Limits.biproduct.desc k) =
    CategoryTheory.Limits.biproduct.desc fun j ↦ CategoryTheory.CategoryStruct.comp (p j) (k j)

theorem CategoryTheory.Limits.biproduct.map_desc_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (j : J) → f j ⟶ g j) {P : C} (k : (j : J) → g j ⟶ P) {Z : C}
  (h : P ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.map p)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.desc k) h) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.biproduct.desc fun j ↦ CategoryTheory.CategoryStruct.comp (p j) (k j)) h

theorem CategoryTheory.Limits.biproduct.lift_map E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] {P : C} (k : (j : J) → P ⟶ f j) (p : (j : J) → f j ⟶ g j),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.lift k) (CategoryTheory.Limits.biproduct.map p) =
    CategoryTheory.Limits.biproduct.lift fun j ↦ CategoryTheory.CategoryStruct.comp (k j) (p j)

theorem CategoryTheory.Limits.biproduct.lift_map_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] {P : C} (k : (j : J) → P ⟶ f j) (p : (j : J) → f j ⟶ g j) {Z : C}
  (h : ⨁ g ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.lift k)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.map p) h) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.biproduct.lift fun j ↦ CategoryTheory.CategoryStruct.comp (k j) (p j)) h

def CategoryTheory.Limits.biproduct.mapIso E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {f g : J → C} →
          [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
            [inst_3 : CategoryTheory.Limits.HasBiproduct g] → ((b : J) → f b ≅ g b) → (⨁ f ≅ ⨁ g)

Given a collection of isomorphisms between corresponding summands of a pair of biproducts indexed by the same type, we obtain an isomorphism between the biproducts.

theorem CategoryTheory.Limits.biproduct.mapIso_inv E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (b : J) → f b ≅ g b),
  (CategoryTheory.Limits.biproduct.mapIso p).inv = CategoryTheory.Limits.biproduct.map fun b ↦ (p b).inv

theorem CategoryTheory.Limits.biproduct.mapIso_hom E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (b : J) → f b ≅ g b),
  (CategoryTheory.Limits.biproduct.mapIso p).hom = CategoryTheory.Limits.biproduct.map fun b ↦ (p b).hom

instance CategoryTheory.Limits.biproduct.map_epi E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (j : J) → f j ⟶ g j) [∀ (j : J), CategoryTheory.Epi (p j)],
  CategoryTheory.Epi (CategoryTheory.Limits.biproduct.map p)

instance CategoryTheory.Limits.Pi.map_epi E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (j : J) → f j ⟶ g j) [∀ (j : J), CategoryTheory.Epi (p j)],
  CategoryTheory.Epi (CategoryTheory.Limits.Pi.map p)

instance CategoryTheory.Limits.biproduct.map_mono E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (j : J) → f j ⟶ g j) [∀ (j : J), CategoryTheory.Mono (p j)],
  CategoryTheory.Mono (CategoryTheory.Limits.biproduct.map p)

instance CategoryTheory.Limits.Sigma.map_mono E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f g : J → C} [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct g] (p : (j : J) → f j ⟶ g j) [∀ (j : J), CategoryTheory.Mono (p j)],
  CategoryTheory.Mono (CategoryTheory.Limits.Sigma.map p)

def CategoryTheory.Limits.biproduct.whiskerEquiv E1 #

{J : Type w} →
  {K : Type u_1} →
    {C : Type u} →
      [inst : CategoryTheory.Category.{v, u} C] →
        [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
          {f : J → C} →
            {g : K → C} →
              (e : J ≃ K) →
                ((j : J) → g (e j) ≅ f j) →
                  [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
                    [inst_3 : CategoryTheory.Limits.HasBiproduct g] → ⨁ f ≅ ⨁ g

Two biproducts which differ by an equivalence in the indexing type, and up to isomorphism in the factors, are isomorphic.

Unfortunately there are two natural ways to define each direction of this isomorphism (because it is true for both products and coproducts separately). We give the alternative definitions as lemmas below.

theorem CategoryTheory.Limits.biproduct.whiskerEquiv_inv E0 #

∀ {J : Type w} {K : Type u_1} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} {g : K → C} (e : J ≃ K) (w : (j : J) → g (e j) ≅ f j)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f] [inst_3 : CategoryTheory.Limits.HasBiproduct g],
  (CategoryTheory.Limits.biproduct.whiskerEquiv e w).inv =
    CategoryTheory.Limits.biproduct.desc fun k ↦
      CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
        (CategoryTheory.CategoryStruct.comp (w (e.symm k)).hom (CategoryTheory.Limits.biproduct.ι f (e.symm k)))

theorem CategoryTheory.Limits.biproduct.whiskerEquiv_hom E0 #

∀ {J : Type w} {K : Type u_1} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} {g : K → C} (e : J ≃ K) (w : (j : J) → g (e j) ≅ f j)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f] [inst_3 : CategoryTheory.Limits.HasBiproduct g],
  (CategoryTheory.Limits.biproduct.whiskerEquiv e w).hom =
    CategoryTheory.Limits.biproduct.desc fun j ↦
      CategoryTheory.CategoryStruct.comp (w j).inv (CategoryTheory.Limits.biproduct.ι g (e j))

theorem CategoryTheory.Limits.biproduct.whiskerEquiv_hom_eq_lift E1 #

∀ {J : Type w} {K : Type u_1} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} {g : K → C} (e : J ≃ K) (w : (j : J) → g (e j) ≅ f j)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f] [inst_3 : CategoryTheory.Limits.HasBiproduct g],
  (CategoryTheory.Limits.biproduct.whiskerEquiv e w).hom =
    CategoryTheory.Limits.biproduct.lift fun k ↦
      CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f (e.symm k))
        (CategoryTheory.CategoryStruct.comp (w (e.symm k)).inv (CategoryTheory.eqToHom ⋯))

theorem CategoryTheory.Limits.biproduct.whiskerEquiv_inv_eq_lift E1 #

∀ {J : Type w} {K : Type u_1} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {f : J → C} {g : K → C} (e : J ≃ K) (w : (j : J) → g (e j) ≅ f j)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f] [inst_3 : CategoryTheory.Limits.HasBiproduct g],
  (CategoryTheory.Limits.biproduct.whiskerEquiv e w).inv =
    CategoryTheory.Limits.biproduct.lift fun j ↦
      CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π g (e j)) (w j).hom

instance CategoryTheory.Limits.instHasBiproductSigmaFstSndOfBiproduct E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C]
  {ι : Type u_3} (f : ι → Type u_2) (g : (i : ι) → f i → C)
  [inst_2 : ∀ (i : ι), CategoryTheory.Limits.HasBiproduct (g i)] [CategoryTheory.Limits.HasBiproduct fun i ↦ ⨁ g i],
  CategoryTheory.Limits.HasBiproduct fun p ↦ g p.fst p.snd

def CategoryTheory.Limits.biproductBiproductIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {ι : Type u_3} →
        (f : ι → Type u_2) →
          (g : (i : ι) → f i → C) →
            [inst_2 : ∀ (i : ι), CategoryTheory.Limits.HasBiproduct (g i)] →
              [inst_3 : CategoryTheory.Limits.HasBiproduct fun i ↦ ⨁ g i] → (⨁ fun i ↦ ⨁ g i) ≅ ⨁ fun p ↦ g p.fst p.snd

An iterated biproduct is a biproduct over a sigma type.

theorem CategoryTheory.Limits.biproductBiproductIso_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C]
  {ι : Type u_3} (f : ι → Type u_2) (g : (i : ι) → f i → C)
  [inst_2 : ∀ (i : ι), CategoryTheory.Limits.HasBiproduct (g i)]
  [inst_3 : CategoryTheory.Limits.HasBiproduct fun i ↦ ⨁ g i],
  (CategoryTheory.Limits.biproductBiproductIso f g).inv =
    CategoryTheory.Limits.biproduct.lift fun i ↦
      CategoryTheory.Limits.biproduct.lift fun x ↦ CategoryTheory.Limits.biproduct.π (fun p ↦ g p.fst p.snd) ⟨i, x⟩

theorem CategoryTheory.Limits.biproductBiproductIso_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C]
  {ι : Type u_3} (f : ι → Type u_2) (g : (i : ι) → f i → C)
  [inst_2 : ∀ (i : ι), CategoryTheory.Limits.HasBiproduct (g i)]
  [inst_3 : CategoryTheory.Limits.HasBiproduct fun i ↦ ⨁ g i],
  (CategoryTheory.Limits.biproductBiproductIso f g).hom =
    CategoryTheory.Limits.biproduct.lift fun x ↦
      match x with
      | ⟨i, x⟩ =>
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π (fun i ↦ ⨁ g i) i)
          (CategoryTheory.Limits.biproduct.π (g i) x)

def CategoryTheory.Limits.biproduct.fromSubtype E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) →
          [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
            (p : J → Prop) →
              [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] → ⨁ Subtype.restrict p f ⟶ ⨁ f

The canonical morphism from the biproduct over a restricted index type to the biproduct of the full index type.

def CategoryTheory.Limits.biproduct.toSubtype E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) →
          [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
            (p : J → Prop) →
              [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] → ⨁ f ⟶ ⨁ Subtype.restrict p f

The canonical morphism from a biproduct to the biproduct over a restriction of its index type.

theorem CategoryTheory.Limits.biproduct.fromSubtype_π E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] [inst_4 : DecidablePred p]
  (j : J),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.fromSubtype f p)
      (CategoryTheory.Limits.biproduct.π f j) =
    if h : p j then CategoryTheory.Limits.biproduct.π (Subtype.restrict p f) ⟨j, h⟩ else 0

theorem CategoryTheory.Limits.biproduct.fromSubtype_π_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] [inst_4 : DecidablePred p] (j : J)
  {Z : C} (h : f j ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.fromSubtype f p)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f j) h) =
    CategoryTheory.CategoryStruct.comp
      (if h : p j then CategoryTheory.Limits.biproduct.π (Subtype.restrict p f) ⟨j, h⟩ else 0) h

theorem CategoryTheory.Limits.biproduct.fromSubtype_eq_lift E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] [inst_4 : DecidablePred p],
  CategoryTheory.Limits.biproduct.fromSubtype f p =
    CategoryTheory.Limits.biproduct.lift fun j ↦
      if h : p j then CategoryTheory.Limits.biproduct.π (Subtype.restrict p f) ⟨j, h⟩ else 0

theorem CategoryTheory.Limits.biproduct.fromSubtype_π_subtype E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] (j : Subtype p),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.fromSubtype f p)
      (CategoryTheory.Limits.biproduct.π f ↑j) =
    CategoryTheory.Limits.biproduct.π (Subtype.restrict p f) j

theorem CategoryTheory.Limits.biproduct.fromSubtype_π_subtype_assoc E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] (j : Subtype p) {Z : C}
  (h : f ↑j ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.fromSubtype f p)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f ↑j) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π (Subtype.restrict p f) j) h

theorem CategoryTheory.Limits.biproduct.toSubtype_π_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] (j : Subtype p) {Z : C}
  (h : Subtype.restrict p f j ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.toSubtype f p)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π (Subtype.restrict p f) j) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π f ↑j) h

theorem CategoryTheory.Limits.biproduct.toSubtype_π E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] (j : Subtype p),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.toSubtype f p)
      (CategoryTheory.Limits.biproduct.π (Subtype.restrict p f) j) =
    CategoryTheory.Limits.biproduct.π f ↑j

theorem CategoryTheory.Limits.biproduct.ι_toSubtype E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] [inst_4 : DecidablePred p]
  (j : J),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j)
      (CategoryTheory.Limits.biproduct.toSubtype f p) =
    if h : p j then CategoryTheory.Limits.biproduct.ι (Subtype.restrict p f) ⟨j, h⟩ else 0

theorem CategoryTheory.Limits.biproduct.ι_toSubtype_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] [inst_4 : DecidablePred p] (j : J)
  {Z : C} (h : ⨁ Subtype.restrict p f ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.toSubtype f p) h) =
    CategoryTheory.CategoryStruct.comp
      (if h : p j then CategoryTheory.Limits.biproduct.ι (Subtype.restrict p f) ⟨j, h⟩ else 0) h

theorem CategoryTheory.Limits.biproduct.toSubtype_eq_desc E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] [inst_4 : DecidablePred p],
  CategoryTheory.Limits.biproduct.toSubtype f p =
    CategoryTheory.Limits.biproduct.desc fun j ↦
      if h : p j then CategoryTheory.Limits.biproduct.ι (Subtype.restrict p f) ⟨j, h⟩ else 0

theorem CategoryTheory.Limits.biproduct.ι_toSubtype_subtype_assoc E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] (j : Subtype p) {Z : C}
  (h : ⨁ Subtype.restrict p f ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f ↑j)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.toSubtype f p) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι (Subtype.restrict p f) j) h

theorem CategoryTheory.Limits.biproduct.ι_toSubtype_subtype E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] (j : Subtype p),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f ↑j)
      (CategoryTheory.Limits.biproduct.toSubtype f p) =
    CategoryTheory.Limits.biproduct.ι (Subtype.restrict p f) j

theorem CategoryTheory.Limits.biproduct.ι_fromSubtype_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] (j : Subtype p) {Z : C}
  (h : ⨁ f ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι (Subtype.restrict p f) j)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.fromSubtype f p) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f ↑j) h

theorem CategoryTheory.Limits.biproduct.ι_fromSubtype E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] (j : Subtype p),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι (Subtype.restrict p f) j)
      (CategoryTheory.Limits.biproduct.fromSubtype f p) =
    CategoryTheory.Limits.biproduct.ι f ↑j

theorem CategoryTheory.Limits.biproduct.fromSubtype_toSubtype_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] {Z : C}
  (h : ⨁ Subtype.restrict p f ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.fromSubtype f p)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.toSubtype f p) h) =
    h

theorem CategoryTheory.Limits.biproduct.fromSubtype_toSubtype E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.fromSubtype f p)
      (CategoryTheory.Limits.biproduct.toSubtype f p) =
    CategoryTheory.CategoryStruct.id (⨁ Subtype.restrict p f)

theorem CategoryTheory.Limits.biproduct.toSubtype_fromSubtype E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] [inst_4 : DecidablePred p],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.toSubtype f p)
      (CategoryTheory.Limits.biproduct.fromSubtype f p) =
    CategoryTheory.Limits.biproduct.map fun j ↦ if p j then CategoryTheory.CategoryStruct.id (f j) else 0

theorem CategoryTheory.Limits.biproduct.toSubtype_fromSubtype_assoc E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (p : J → Prop) [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict p f)] [inst_4 : DecidablePred p] {Z : C}
  (h : ⨁ f ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.toSubtype f p)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.fromSubtype f p) h) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.biproduct.map fun j ↦ if p j then CategoryTheory.CategoryStruct.id (f j) else 0) h

def CategoryTheory.Limits.biproduct.isLimitFromSubtype E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) →
          (i : J) →
            [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
              [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict (fun j ↦ j ≠ i) f)] →
                CategoryTheory.Limits.IsLimit
                  (CategoryTheory.Limits.KernelFork.ofι (CategoryTheory.Limits.biproduct.fromSubtype f fun j ↦ j ≠ i) ⋯)

The kernel of biproduct.π f i is the inclusion from the biproduct which omits i from the index set J into the biproduct over J.

instance CategoryTheory.Limits.instHasKernelπ E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) (i : J)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [CategoryTheory.Limits.HasBiproduct (Subtype.restrict (fun j ↦ j ≠ i) f)],
  CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.biproduct.π f i)

def CategoryTheory.Limits.kernelBiproductπIso E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) →
          (i : J) →
            [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
              [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict (fun j ↦ j ≠ i) f)] →
                CategoryTheory.Limits.kernel (CategoryTheory.Limits.biproduct.π f i) ≅
                  ⨁ Subtype.restrict (fun j ↦ j ≠ i) f

The kernel of biproduct.π f i is ⨁ Subtype.restrict {i}ᶜ f.

theorem CategoryTheory.Limits.kernelBiproductπIso_hom E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) (i : J)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict (fun j ↦ j ≠ i) f)],
  (CategoryTheory.Limits.kernelBiproductπIso f i).hom =
    (CategoryTheory.Limits.biproduct.isLimitFromSubtype f i).lift
      (CategoryTheory.Limits.limit.cone (CategoryTheory.Limits.parallelPair (CategoryTheory.Limits.biproduct.π f i) 0))

theorem CategoryTheory.Limits.kernelBiproductπIso_inv E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) (i : J)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict (fun j ↦ j ≠ i) f)],
  (CategoryTheory.Limits.kernelBiproductπIso f i).inv =
    CategoryTheory.Limits.limit.lift (CategoryTheory.Limits.parallelPair (CategoryTheory.Limits.biproduct.π f i) 0)
      (CategoryTheory.Limits.KernelFork.ofι (CategoryTheory.Limits.biproduct.fromSubtype f fun j ↦ ¬j = i) ⋯)

def CategoryTheory.Limits.biproduct.isColimitToSubtype E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) →
          (i : J) →
            [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
              [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict (fun j ↦ j ≠ i) f)] →
                CategoryTheory.Limits.IsColimit
                  (CategoryTheory.Limits.CokernelCofork.ofπ (CategoryTheory.Limits.biproduct.toSubtype f fun j ↦ j ≠ i)
                    ⋯)

The cokernel of biproduct.ι f i is the projection from the biproduct over the index set J onto the biproduct omitting i.

instance CategoryTheory.Limits.instHasCokernelι E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) (i : J)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [CategoryTheory.Limits.HasBiproduct (Subtype.restrict (fun j ↦ j ≠ i) f)],
  CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.biproduct.ι f i)

def CategoryTheory.Limits.cokernelBiproductιIso E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) →
          (i : J) →
            [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
              [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict (fun j ↦ j ≠ i) f)] →
                CategoryTheory.Limits.cokernel (CategoryTheory.Limits.biproduct.ι f i) ≅
                  ⨁ Subtype.restrict (fun j ↦ j ≠ i) f

The cokernel of biproduct.ι f i is ⨁ Subtype.restrict {i}ᶜ f.

theorem CategoryTheory.Limits.cokernelBiproductιIso_hom E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) (i : J)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict (fun j ↦ j ≠ i) f)],
  (CategoryTheory.Limits.cokernelBiproductιIso f i).hom =
    CategoryTheory.Limits.colimit.desc (CategoryTheory.Limits.parallelPair (CategoryTheory.Limits.biproduct.ι f i) 0)
      (CategoryTheory.Limits.CokernelCofork.ofπ (CategoryTheory.Limits.biproduct.toSubtype f fun j ↦ ¬j = i) ⋯)

theorem CategoryTheory.Limits.cokernelBiproductιIso_inv E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) (i : J)
  [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  [inst_3 : CategoryTheory.Limits.HasBiproduct (Subtype.restrict (fun j ↦ j ≠ i) f)],
  (CategoryTheory.Limits.cokernelBiproductιIso f i).inv =
    (CategoryTheory.Limits.biproduct.isColimitToSubtype f i).desc
      (CategoryTheory.Limits.colimit.cocone
        (CategoryTheory.Limits.parallelPair (CategoryTheory.Limits.biproduct.ι f i) 0))

def CategoryTheory.Limits.kernelForkBiproductToSubtype E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {K : Type} →
        [inst_2 : Finite K] →
          [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] →
            (f : K → C) →
              (p : K → Prop) →
                CategoryTheory.Limits.LimitCone
                  (CategoryTheory.Limits.parallelPair (CategoryTheory.Limits.biproduct.toSubtype f p) 0)

The limit cone exhibiting ⨁ Subtype.restrict pᶜ f as the kernel of biproduct.toSubtype f p

theorem CategoryTheory.Limits.kernelForkBiproductToSubtype_cone E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type}
  [inst_2 : Finite K] [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] (f : K → C) (p : K → Prop),
  (CategoryTheory.Limits.kernelForkBiproductToSubtype f p).cone =
    CategoryTheory.Limits.KernelFork.ofι (CategoryTheory.Limits.biproduct.fromSubtype f pᶜ) ⋯

theorem CategoryTheory.Limits.kernelForkBiproductToSubtype_isLimit E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type}
  [inst_2 : Finite K] [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] (f : K → C) (p : K → Prop),
  (CategoryTheory.Limits.kernelForkBiproductToSubtype f p).isLimit =
    CategoryTheory.Limits.KernelFork.IsLimit.ofι (CategoryTheory.Limits.biproduct.fromSubtype f pᶜ) ⋯
      (fun {x} g x_1 ↦ CategoryTheory.CategoryStruct.comp g (CategoryTheory.Limits.biproduct.toSubtype f pᶜ)) ⋯ ⋯

instance CategoryTheory.Limits.instHasKernelToSubtype E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type}
  [inst_2 : Finite K] [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] (f : K → C) (p : K → Prop),
  CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.biproduct.toSubtype f p)

def CategoryTheory.Limits.kernelBiproductToSubtypeIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {K : Type} →
        [inst_2 : Finite K] →
          [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] →
            (f : K → C) →
              (p : K → Prop) →
                CategoryTheory.Limits.kernel (CategoryTheory.Limits.biproduct.toSubtype f p) ≅ ⨁ Subtype.restrict pᶜ f

The kernel of biproduct.toSubtype f p is ⨁ Subtype.restrict pᶜ f.

theorem CategoryTheory.Limits.kernelBiproductToSubtypeIso_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type}
  [inst_2 : Finite K] [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] (f : K → C) (p : K → Prop),
  (CategoryTheory.Limits.kernelBiproductToSubtypeIso f p).hom =
    (CategoryTheory.Limits.KernelFork.IsLimit.ofι (CategoryTheory.Limits.biproduct.fromSubtype f pᶜ) ⋯
          (fun {x} g x_1 ↦ CategoryTheory.CategoryStruct.comp g (CategoryTheory.Limits.biproduct.toSubtype f pᶜ)) ⋯
          ⋯).lift
      (CategoryTheory.Limits.limit.cone
        (CategoryTheory.Limits.parallelPair (CategoryTheory.Limits.biproduct.toSubtype f p) 0))

theorem CategoryTheory.Limits.kernelBiproductToSubtypeIso_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type}
  [inst_2 : Finite K] [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] (f : K → C) (p : K → Prop),
  (CategoryTheory.Limits.kernelBiproductToSubtypeIso f p).inv =
    CategoryTheory.Limits.limit.lift
      (CategoryTheory.Limits.parallelPair (CategoryTheory.Limits.biproduct.toSubtype f p) 0)
      (CategoryTheory.Limits.KernelFork.ofι (CategoryTheory.Limits.biproduct.fromSubtype f pᶜ) ⋯)

def CategoryTheory.Limits.cokernelCoforkBiproductFromSubtype E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {K : Type} →
        [inst_2 : Finite K] →
          [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] →
            (f : K → C) →
              (p : K → Prop) →
                CategoryTheory.Limits.ColimitCocone
                  (CategoryTheory.Limits.parallelPair (CategoryTheory.Limits.biproduct.fromSubtype f p) 0)

The colimit cocone exhibiting ⨁ Subtype.restrict pᶜ f as the cokernel of biproduct.fromSubtype f p

theorem CategoryTheory.Limits.cokernelCoforkBiproductFromSubtype_isColimit E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type}
  [inst_2 : Finite K] [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] (f : K → C) (p : K → Prop),
  (CategoryTheory.Limits.cokernelCoforkBiproductFromSubtype f p).isColimit =
    CategoryTheory.Limits.CokernelCofork.IsColimit.ofπ (CategoryTheory.Limits.biproduct.toSubtype f pᶜ) ⋯
      (fun {x} g x_1 ↦ CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.fromSubtype f pᶜ) g) ⋯ ⋯

theorem CategoryTheory.Limits.cokernelCoforkBiproductFromSubtype_cocone E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type}
  [inst_2 : Finite K] [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] (f : K → C) (p : K → Prop),
  (CategoryTheory.Limits.cokernelCoforkBiproductFromSubtype f p).cocone =
    CategoryTheory.Limits.CokernelCofork.ofπ (CategoryTheory.Limits.biproduct.toSubtype f pᶜ) ⋯

instance CategoryTheory.Limits.instHasCokernelFromSubtype E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type}
  [inst_2 : Finite K] [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] (f : K → C) (p : K → Prop),
  CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.biproduct.fromSubtype f p)

def CategoryTheory.Limits.cokernelBiproductFromSubtypeIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {K : Type} →
        [inst_2 : Finite K] →
          [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] →
            (f : K → C) →
              (p : K → Prop) →
                CategoryTheory.Limits.cokernel (CategoryTheory.Limits.biproduct.fromSubtype f p) ≅
                  ⨁ Subtype.restrict pᶜ f

The cokernel of biproduct.fromSubtype f p is ⨁ Subtype.restrict pᶜ f.

theorem CategoryTheory.Limits.cokernelBiproductFromSubtypeIso_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type}
  [inst_2 : Finite K] [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] (f : K → C) (p : K → Prop),
  (CategoryTheory.Limits.cokernelBiproductFromSubtypeIso f p).hom =
    CategoryTheory.Limits.colimit.desc
      (CategoryTheory.Limits.parallelPair (CategoryTheory.Limits.biproduct.fromSubtype f p) 0)
      (CategoryTheory.Limits.CokernelCofork.ofπ (CategoryTheory.Limits.biproduct.toSubtype f pᶜ) ⋯)

theorem CategoryTheory.Limits.cokernelBiproductFromSubtypeIso_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {K : Type}
  [inst_2 : Finite K] [inst_3 : CategoryTheory.Limits.HasFiniteBiproducts C] (f : K → C) (p : K → Prop),
  (CategoryTheory.Limits.cokernelBiproductFromSubtypeIso f p).inv =
    (CategoryTheory.Limits.CokernelCofork.IsColimit.ofπ (CategoryTheory.Limits.biproduct.toSubtype f pᶜ) ⋯
          (fun {x} g x_1 ↦ CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.fromSubtype f pᶜ) g) ⋯
          ⋯).desc
      (CategoryTheory.Limits.colimit.cocone
        (CategoryTheory.Limits.parallelPair (CategoryTheory.Limits.biproduct.fromSubtype f p) 0))

def CategoryTheory.Limits.biproduct.matrix E1 #

{J : Type u_2} →
  [inst : Finite J] →
    {K : Type} →
      [inst_1 : Finite K] →
        {C : Type u} →
          [inst_2 : CategoryTheory.Category.{v, u} C] →
            [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C] →
              [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] →
                {f : J → C} → {g : K → C} → ((j : J) → (k : K) → f j ⟶ g k) → (⨁ f ⟶ ⨁ g)

Convert a (dependently typed) matrix to a morphism of biproducts.

theorem CategoryTheory.Limits.biproduct.matrix_π E0 #

∀ {J : Type u_2} [inst : Finite J] {K : Type} [inst_1 : Finite K] {C : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} C] [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] {f : J → C} {g : K → C} (m : (j : J) → (k : K) → f j ⟶ g k)
  (k : K),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.matrix m)
      (CategoryTheory.Limits.biproduct.π g k) =
    CategoryTheory.Limits.biproduct.desc fun j ↦ m j k

theorem CategoryTheory.Limits.biproduct.matrix_π_assoc E0 #

∀ {J : Type u_2} [inst : Finite J] {K : Type} [inst_1 : Finite K] {C : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} C] [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] {f : J → C} {g : K → C} (m : (j : J) → (k : K) → f j ⟶ g k)
  (k : K) {Z : C} (h : g k ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.matrix m)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.π g k) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.desc fun j ↦ m j k) h

theorem CategoryTheory.Limits.biproduct.ι_matrix E0 #

∀ {J : Type u_2} [inst : Finite J] {K : Type} [inst_1 : Finite K] {C : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} C] [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] {f : J → C} {g : K → C} (m : (j : J) → (k : K) → f j ⟶ g k)
  (j : J),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j)
      (CategoryTheory.Limits.biproduct.matrix m) =
    CategoryTheory.Limits.biproduct.lift fun k ↦ m j k

theorem CategoryTheory.Limits.biproduct.ι_matrix_assoc E0 #

∀ {J : Type u_2} [inst : Finite J] {K : Type} [inst_1 : Finite K] {C : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} C] [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] {f : J → C} {g : K → C} (m : (j : J) → (k : K) → f j ⟶ g k)
  (j : J) {Z : C} (h : ⨁ g ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.ι f j)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.matrix m) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.lift fun k ↦ m j k) h

def CategoryTheory.Limits.biproduct.components E1 #

{J : Type u_2} →
  [inst : Finite J] →
    {K : Type} →
      [inst_1 : Finite K] →
        {C : Type u} →
          [inst_2 : CategoryTheory.Category.{v, u} C] →
            [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C] →
              [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] →
                {f : J → C} → {g : K → C} → (⨁ f ⟶ ⨁ g) → (j : J) → (k : K) → f j ⟶ g k

Extract the matrix components from a morphism of biproducts.

theorem CategoryTheory.Limits.biproduct.matrix_components E0 #

∀ {J : Type u_2} [inst : Finite J] {K : Type} [inst_1 : Finite K] {C : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} C] [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] {f : J → C} {g : K → C} (m : (j : J) → (k : K) → f j ⟶ g k)
  (j : J) (k : K), CategoryTheory.Limits.biproduct.components (CategoryTheory.Limits.biproduct.matrix m) j k = m j k

theorem CategoryTheory.Limits.biproduct.components_matrix E0 #

∀ {J : Type u_2} [inst : Finite J] {K : Type} [inst_1 : Finite K] {C : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} C] [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] {f : J → C} {g : K → C} (m : ⨁ f ⟶ ⨁ g),
  (CategoryTheory.Limits.biproduct.matrix fun j k ↦ CategoryTheory.Limits.biproduct.components m j k) = m

def CategoryTheory.Limits.biproduct.matrixEquiv E1 #

{J : Type u_2} →
  [inst : Finite J] →
    {K : Type} →
      [inst_1 : Finite K] →
        {C : Type u} →
          [inst_2 : CategoryTheory.Category.{v, u} C] →
            [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C] →
              [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] →
                {f : J → C} → {g : K → C} → (⨁ f ⟶ ⨁ g) ≃ ((j : J) → (k : K) → f j ⟶ g k)

Morphisms between direct sums are matrices.

theorem CategoryTheory.Limits.biproduct.matrixEquiv_symm_apply E0 #

∀ {J : Type u_2} [inst : Finite J] {K : Type} [inst_1 : Finite K] {C : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} C] [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] {f : J → C} {g : K → C} (m : (j : J) → (k : K) → f j ⟶ g k),
  CategoryTheory.Limits.biproduct.matrixEquiv.symm m = CategoryTheory.Limits.biproduct.matrix m

theorem CategoryTheory.Limits.biproduct.matrixEquiv_apply E0 #

∀ {J : Type u_2} [inst : Finite J] {K : Type} [inst_1 : Finite K] {C : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} C] [inst_3 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_4 : CategoryTheory.Limits.HasFiniteBiproducts C] {f : J → C} {g : K → C} (m : ⨁ f ⟶ ⨁ g) (j : J) (k : K),
  CategoryTheory.Limits.biproduct.matrixEquiv m j k = CategoryTheory.Limits.biproduct.components m j k

instance CategoryTheory.Limits.biproduct.ι_mono E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (b : J), CategoryTheory.IsSplitMono (CategoryTheory.Limits.biproduct.ι f b)

instance CategoryTheory.Limits.biproduct.π_epi E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  (b : J), CategoryTheory.IsSplitEpi (CategoryTheory.Limits.biproduct.π f b)

theorem CategoryTheory.Limits.biproduct.conePointUniqueUpToIso_hom E2 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {b : CategoryTheory.Limits.Bicone f} (hb : b.IsBilimit),
  (hb.isLimit.conePointUniqueUpToIso (CategoryTheory.Limits.biproduct.isLimit f)).hom =
    CategoryTheory.Limits.biproduct.lift b.π

Auxiliary lemma for biproduct.uniqueUpToIso.

theorem CategoryTheory.Limits.biproduct.conePointUniqueUpToIso_inv E2 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {b : CategoryTheory.Limits.Bicone f} (hb : b.IsBilimit),
  (hb.isLimit.conePointUniqueUpToIso (CategoryTheory.Limits.biproduct.isLimit f)).inv =
    CategoryTheory.Limits.biproduct.desc b.ι

Auxiliary lemma for biproduct.uniqueUpToIso.

def CategoryTheory.Limits.biproduct.uniqueUpToIso E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        (f : J → C) →
          [inst_2 : CategoryTheory.Limits.HasBiproduct f] →
            {b : CategoryTheory.Limits.Bicone f} → b.IsBilimit → (b.pt ≅ ⨁ f)

Biproducts are unique up to isomorphism. This already follows because bilimits are limits, but in the case of biproducts we can give an isomorphism with particularly nice definitional properties, namely that biproduct.lift b.π and biproduct.desc b.ι are inverses of each other.

theorem CategoryTheory.Limits.biproduct.uniqueUpToIso_hom E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {b : CategoryTheory.Limits.Bicone f} (hb : b.IsBilimit),
  (CategoryTheory.Limits.biproduct.uniqueUpToIso f hb).hom = CategoryTheory.Limits.biproduct.lift b.π

theorem CategoryTheory.Limits.biproduct.uniqueUpToIso_inv E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] (f : J → C) [inst_2 : CategoryTheory.Limits.HasBiproduct f]
  {b : CategoryTheory.Limits.Bicone f} (hb : b.IsBilimit),
  (CategoryTheory.Limits.biproduct.uniqueUpToIso f hb).inv = CategoryTheory.Limits.biproduct.desc b.ι

instance CategoryTheory.Limits.hasZeroObject_of_hasFiniteBiproducts E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C]
  [CategoryTheory.Limits.HasFiniteBiproducts C], CategoryTheory.Limits.HasZeroObject C

A category with finite biproducts has a zero object.

def CategoryTheory.Limits.limitBiconeOfUnique E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
        [Unique J] → (f : J → C) → CategoryTheory.Limits.LimitBicone f

The limit bicone for the biproduct over an index type with exactly one term.

theorem CategoryTheory.Limits.limitBiconeOfUnique_bicone_π E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : Unique J] (f : J → C) (j : J),
  (CategoryTheory.Limits.limitBiconeOfUnique f).bicone.π j = CategoryTheory.eqToHom ⋯

theorem CategoryTheory.Limits.limitBiconeOfUnique_isBilimit_isColimit E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : Unique J] (f : J → C),
  (CategoryTheory.Limits.limitBiconeOfUnique f).isBilimit.isColimit =
    (CategoryTheory.Limits.colimitCoconeOfUnique f).isColimit

theorem CategoryTheory.Limits.limitBiconeOfUnique_isBilimit_isLimit E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : Unique J] (f : J → C),
  (CategoryTheory.Limits.limitBiconeOfUnique f).isBilimit.isLimit = (CategoryTheory.Limits.limitConeOfUnique f).isLimit

theorem CategoryTheory.Limits.limitBiconeOfUnique_bicone_pt E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : Unique J] (f : J → C),
  (CategoryTheory.Limits.limitBiconeOfUnique f).bicone.pt = f default

theorem CategoryTheory.Limits.limitBiconeOfUnique_bicone_ι E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : Unique J] (f : J → C) (j : J),
  (CategoryTheory.Limits.limitBiconeOfUnique f).bicone.ι j = CategoryTheory.eqToHom ⋯

instance CategoryTheory.Limits.hasBiproduct_unique E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [Subsingleton J] [Nonempty J] (f : J → C),
  CategoryTheory.Limits.HasBiproduct f

def CategoryTheory.Limits.biproductUniqueIso E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] → [inst_2 : Unique J] → (f : J → C) → ⨁ f ≅ f default

A biproduct over an index type with exactly one term is just the object over that term.

theorem CategoryTheory.Limits.biproductUniqueIso_inv E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : Unique J] (f : J → C),
  (CategoryTheory.Limits.biproductUniqueIso f).inv =
    CategoryTheory.Limits.biproduct.lift (CategoryTheory.Limits.limitBiconeOfUnique f).bicone.π

theorem CategoryTheory.Limits.biproductUniqueIso_hom E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : Unique J] (f : J → C),
  (CategoryTheory.Limits.biproductUniqueIso f).hom =
    CategoryTheory.Limits.biproduct.desc (CategoryTheory.Limits.limitBiconeOfUnique f).bicone.ι