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 / V26. Homological algebra

Mathlib.Algebra.Category.Grp.Biproducts

23 declarations. Mathlib docs · Source

instance AddCommGrpCat.instHasBinaryBiproducts E0 #

CategoryTheory.Limits.HasBinaryBiproducts AddCommGrpCat

instance AddCommGrpCat.instHasFiniteBiproducts E0 #

CategoryTheory.Limits.HasFiniteBiproducts AddCommGrpCat

def AddCommGrpCat.binaryProductLimitCone E1 #

(G H : AddCommGrpCat) → CategoryTheory.Limits.LimitCone (CategoryTheory.Limits.pair G H)

Construct limit data for a binary product in AddCommGrpCat, using AddCommGrpCat.of (G × H).

theorem AddCommGrpCat.binaryProductLimitCone_cone_pt E0 #

∀ (G H : AddCommGrpCat), (G.binaryProductLimitCone H).cone.pt = ↧(↑G × ↑H)

theorem AddCommGrpCat.binaryProductLimitCone_isLimit_lift E0 #

∀ (G H : AddCommGrpCat) (t : CategoryTheory.Limits.Cone (CategoryTheory.Limits.pair G H)),
  (G.binaryProductLimitCone H).isLimit.lift t =
    AddCommGrpCat.ofHom
      ((AddCommGrpCat.Hom.hom (CategoryTheory.Limits.BinaryFan.fst t)).prod
        (AddCommGrpCat.Hom.hom (CategoryTheory.Limits.BinaryFan.snd t)))

theorem AddCommGrpCat.binaryProductLimitCone_cone_π_app_left E0 #

∀ (G H : AddCommGrpCat),
  (G.binaryProductLimitCone H).cone.π.app { as := CategoryTheory.Limits.WalkingPair.left } =
    AddCommGrpCat.ofHom (AddMonoidHom.fst ↑G ↑H)

theorem AddCommGrpCat.binaryProductLimitCone_cone_π_app_right E0 #

∀ (G H : AddCommGrpCat),
  (G.binaryProductLimitCone H).cone.π.app { as := CategoryTheory.Limits.WalkingPair.right } =
    AddCommGrpCat.ofHom (AddMonoidHom.snd ↑G ↑H)

def AddCommGrpCat.biprodIsoProd E1 #

(G H : AddCommGrpCat) → G ⊞ H ≅ ↧(↑G × ↑H)

We verify that the biproduct in AddCommGrpCat is isomorphic to the Cartesian product of the underlying types:

theorem AddCommGrpCat.biprodIsoProd_inv_comp_fst_apply E0 #

∀ (G H : AddCommGrpCat) (x : ↑G × ↑H),
  (CategoryTheory.ConcreteCategory.hom CategoryTheory.Limits.biprod.fst)
      ((CategoryTheory.ConcreteCategory.hom (G.biprodIsoProd H).inv) x) =
    x.1

theorem AddCommGrpCat.biprodIsoProd_inv_comp_fst E0 #

∀ (G H : AddCommGrpCat),
  CategoryTheory.CategoryStruct.comp (G.biprodIsoProd H).inv CategoryTheory.Limits.biprod.fst =
    AddCommGrpCat.ofHom (AddMonoidHom.fst ↑G ↑H)

theorem AddCommGrpCat.biprodIsoProd_inv_comp_snd_apply E0 #

∀ (G H : AddCommGrpCat) (x : ↑G × ↑H),
  (CategoryTheory.ConcreteCategory.hom CategoryTheory.Limits.biprod.snd)
      ((CategoryTheory.ConcreteCategory.hom (G.biprodIsoProd H).inv) x) =
    x.2

theorem AddCommGrpCat.biprodIsoProd_inv_comp_snd E0 #

∀ (G H : AddCommGrpCat),
  CategoryTheory.CategoryStruct.comp (G.biprodIsoProd H).inv CategoryTheory.Limits.biprod.snd =
    AddCommGrpCat.ofHom (AddMonoidHom.snd ↑G ↑H)

theorem AddCommGrpCat.biprodIsoProd_inv_comp_desc E1 #

∀ {G H K : AddCommGrpCat} (f : G ⟶ K) (g : H ⟶ K),
  CategoryTheory.CategoryStruct.comp (G.biprodIsoProd H).inv (CategoryTheory.Limits.biprod.desc f g) =
    CategoryTheory.CategoryStruct.comp (AddCommGrpCat.ofHom (AddMonoidHom.fst ↑G ↑H)) f +
      CategoryTheory.CategoryStruct.comp (AddCommGrpCat.ofHom (AddMonoidHom.snd ↑G ↑H)) g

theorem AddCommGrpCat.biprodIsoProd_inv_comp_desc_apply E0 #

∀ {G H K : AddCommGrpCat} (f : G ⟶ K) (g : H ⟶ K) (x : ↑G × ↑H),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.biprod.desc f g))
      ((CategoryTheory.ConcreteCategory.hom (G.biprodIsoProd H).inv) x) =
    (AddCommGrpCat.Hom.hom f) x.1 + (AddCommGrpCat.Hom.hom g) x.2

def AddCommGrpCat.HasLimit.lift E1 #

{J : Type w} → (f : J → AddCommGrpCat) → (s : CategoryTheory.Limits.Fan f) → s.pt ⟶ ↧((j : J) → ↑(f j))

The map from an arbitrary cone over an indexed family of abelian groups to the Cartesian product of those groups.

theorem AddCommGrpCat.HasLimit.lift_hom_apply E0 #

∀ {J : Type w} (f : J → AddCommGrpCat) (s : CategoryTheory.Limits.Fan f) (x : ↑s.1) (j : J),
  (AddCommGrpCat.Hom.hom (AddCommGrpCat.HasLimit.lift f s)) x j =
    (CategoryTheory.ConcreteCategory.hom (s.π.app { as := j })) x

def AddCommGrpCat.HasLimit.productLimitCone E1 #

{J : Type w} → (f : J → AddCommGrpCat) → CategoryTheory.Limits.LimitCone (CategoryTheory.Discrete.functor f)

Construct limit data for a product in AddCommGrpCat, using AddCommGrpCat.of (∀ j, F.obj j).

theorem AddCommGrpCat.HasLimit.productLimitCone_isLimit_lift E0 #

∀ {J : Type w} (f : J → AddCommGrpCat) (s : CategoryTheory.Limits.Fan f),
  (AddCommGrpCat.HasLimit.productLimitCone f).isLimit.lift s = AddCommGrpCat.HasLimit.lift f s

theorem AddCommGrpCat.HasLimit.productLimitCone_cone_pt_coe E0 #

∀ {J : Type w} (f : J → AddCommGrpCat), ↑(AddCommGrpCat.HasLimit.productLimitCone f).cone.pt = ((j : J) → ↑(f j))

theorem AddCommGrpCat.HasLimit.productLimitCone_cone_π E0 #

∀ {J : Type w} (f : J → AddCommGrpCat),
  (AddCommGrpCat.HasLimit.productLimitCone f).cone.π =
    CategoryTheory.Discrete.natTrans fun j ↦ AddCommGrpCat.ofHom (Pi.evalAddMonoidHom (fun j ↦ ↑(f j)) j.as)

def AddCommGrpCat.biproductIsoPi E1 #

{J : Type} → [inst : Finite J] → (f : J → AddCommGrpCat) → ⨁ f ≅ ↧((j : J) → ↑(f j))

We verify that the biproduct we've just defined is isomorphic to the AddCommGrpCat structure on the dependent function type.

theorem AddCommGrpCat.biproductIsoPi_inv_comp_π_apply E0 #

∀ {J : Type} [inst : Finite J] (f : J → AddCommGrpCat) (j : J) (x : (j : J) → ↑(f j)),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.biproduct.π f j))
      ((CategoryTheory.ConcreteCategory.hom (AddCommGrpCat.biproductIsoPi f).inv) x) =
    x j

theorem AddCommGrpCat.biproductIsoPi_inv_comp_π E0 #

∀ {J : Type} [inst : Finite J] (f : J → AddCommGrpCat) (j : J),
  CategoryTheory.CategoryStruct.comp (AddCommGrpCat.biproductIsoPi f).inv (CategoryTheory.Limits.biproduct.π f j) =
    AddCommGrpCat.ofHom (Pi.evalAddMonoidHom (fun j ↦ ↑(f j)) j)