The areas / V26. Homological algebra
Mathlib.Algebra.Category.ModuleCat.Biproducts
23 declarations. Mathlib docs · Source
instance ModuleCat.instHasBinaryBiproducts E0 #
∀ {R : Type u} [inst : Ring R], CategoryTheory.Limits.HasBinaryBiproducts (ModuleCat R)
instance ModuleCat.instHasFiniteBiproducts E0 #
∀ {R : Type u} [inst : Ring R], CategoryTheory.Limits.HasFiniteBiproducts (ModuleCat R)
def ModuleCat.binaryProductLimitCone E1 #
{R : Type u} → [inst : Ring R] → (M N : ModuleCat R) → CategoryTheory.Limits.LimitCone (CategoryTheory.Limits.pair M N)
Construct limit data for a binary product in ModuleCat R, using ModuleCat.of R (M × N).
theorem ModuleCat.binaryProductLimitCone_isLimit_lift E0 #
∀ {R : Type u} [inst : Ring R] (M N : ModuleCat R) (s : CategoryTheory.Limits.Cone (CategoryTheory.Limits.pair M N)),
(M.binaryProductLimitCone N).isLimit.lift s =
ModuleCat.ofHom
((ModuleCat.Hom.hom (s.π.app { as := CategoryTheory.Limits.WalkingPair.left })).prod
(ModuleCat.Hom.hom (s.π.app { as := CategoryTheory.Limits.WalkingPair.right })))
theorem ModuleCat.binaryProductLimitCone_cone_pt E0 #
∀ {R : Type u} [inst : Ring R] (M N : ModuleCat R), (M.binaryProductLimitCone N).cone.pt = ↧(↑M × ↑N)
theorem ModuleCat.binaryProductLimitCone_cone_π_app_left E0 #
∀ {R : Type u} [inst : Ring R] (M N : ModuleCat R),
(M.binaryProductLimitCone N).cone.π.app { as := CategoryTheory.Limits.WalkingPair.left } =
ModuleCat.ofHom (LinearMap.fst R ↑M ↑N)
theorem ModuleCat.binaryProductLimitCone_cone_π_app_right E0 #
∀ {R : Type u} [inst : Ring R] (M N : ModuleCat R),
(M.binaryProductLimitCone N).cone.π.app { as := CategoryTheory.Limits.WalkingPair.right } =
ModuleCat.ofHom (LinearMap.snd R ↑M ↑N)
def ModuleCat.biprodIsoProd E1 #
{R : Type u} → [inst : Ring R] → (M N : ModuleCat R) → M ⊞ N ≅ ↧(↑M × ↑N)
We verify that the biproduct in ModuleCat R is isomorphic to
the Cartesian product of the underlying types:
theorem ModuleCat.biprodIsoProd_inv_comp_fst E0 #
∀ {R : Type u} [inst : Ring R] (M N : ModuleCat R),
CategoryTheory.CategoryStruct.comp (M.biprodIsoProd N).inv CategoryTheory.Limits.biprod.fst =
ModuleCat.ofHom (LinearMap.fst R ↑M ↑N)
theorem ModuleCat.biprodIsoProd_inv_comp_fst_apply E0 #
∀ {R : Type u} [inst : Ring R] (M N : ModuleCat R) (x : ↑M × ↑N),
(CategoryTheory.ConcreteCategory.hom CategoryTheory.Limits.biprod.fst)
((CategoryTheory.ConcreteCategory.hom (M.biprodIsoProd N).inv) x) =
x.1
theorem ModuleCat.biprodIsoProd_inv_comp_snd_apply E0 #
∀ {R : Type u} [inst : Ring R] (M N : ModuleCat R) (x : ↑M × ↑N),
(CategoryTheory.ConcreteCategory.hom CategoryTheory.Limits.biprod.snd)
((CategoryTheory.ConcreteCategory.hom (M.biprodIsoProd N).inv) x) =
x.2
theorem ModuleCat.biprodIsoProd_inv_comp_snd E0 #
∀ {R : Type u} [inst : Ring R] (M N : ModuleCat R),
CategoryTheory.CategoryStruct.comp (M.biprodIsoProd N).inv CategoryTheory.Limits.biprod.snd =
ModuleCat.ofHom (LinearMap.snd R ↑M ↑N)
def ModuleCat.HasLimit.lift E1 #
{R : Type u} →
[inst : Ring R] →
{J : Type w} → (f : J → ModuleCat R) → (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 ModuleCat.HasLimit.lift_hom_apply E0 #
∀ {R : Type u} [inst : Ring R] {J : Type w} (f : J → ModuleCat R) (s : CategoryTheory.Limits.Fan f) (x : ↑s.1) (j : J),
(ModuleCat.Hom.hom (ModuleCat.HasLimit.lift f s)) x j = (CategoryTheory.ConcreteCategory.hom (s.π.app { as := j })) x
def ModuleCat.HasLimit.productLimitCone E1 #
{R : Type u} →
[inst : Ring R] →
{J : Type w} → (f : J → ModuleCat R) → CategoryTheory.Limits.LimitCone (CategoryTheory.Discrete.functor f)
Construct limit data for a product in ModuleCat R, using ModuleCat.of R (∀ j, F.obj j).
theorem ModuleCat.HasLimit.productLimitCone_cone_π E0 #
∀ {R : Type u} [inst : Ring R] {J : Type w} (f : J → ModuleCat R),
(ModuleCat.HasLimit.productLimitCone f).cone.π =
CategoryTheory.Discrete.natTrans fun j ↦ ModuleCat.ofHom (LinearMap.proj j.as)
theorem ModuleCat.HasLimit.productLimitCone_cone_pt_carrier E0 #
∀ {R : Type u} [inst : Ring R] {J : Type w} (f : J → ModuleCat R),
↑(ModuleCat.HasLimit.productLimitCone f).cone.pt = ((j : J) → ↑(f j))
theorem ModuleCat.HasLimit.productLimitCone_isLimit_lift E0 #
∀ {R : Type u} [inst : Ring R] {J : Type w} (f : J → ModuleCat R) (s : CategoryTheory.Limits.Fan f),
(ModuleCat.HasLimit.productLimitCone f).isLimit.lift s = ModuleCat.HasLimit.lift f s
def ModuleCat.biproductIsoPi E1 #
{R : Type u} → [inst : Ring R] → {J : Type} → [inst_1 : Finite J] → (f : J → ModuleCat R) → ⨁ f ≅ ↧((j : J) → ↑(f j))
We verify that the biproduct we've just defined is isomorphic to the ModuleCat R structure
on the dependent function type.
theorem ModuleCat.biproductIsoPi_inv_comp_π E0 #
∀ {R : Type u} [inst : Ring R] {J : Type} [inst_1 : Finite J] (f : J → ModuleCat R) (j : J),
CategoryTheory.CategoryStruct.comp (ModuleCat.biproductIsoPi f).inv (CategoryTheory.Limits.biproduct.π f j) =
ModuleCat.ofHom (LinearMap.proj j)
theorem ModuleCat.biproductIsoPi_inv_comp_π_apply E0 #
∀ {R : Type u} [inst : Ring R] {J : Type} [inst_1 : Finite J] (f : J → ModuleCat R) (j : J) (x : (j : J) → ↑(f j)),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.biproduct.π f j))
((CategoryTheory.ConcreteCategory.hom (ModuleCat.biproductIsoPi f).inv) x) =
x j
def lequivProdOfRightSplitExact E1 #
{R : Type u} →
{A : Type uA} →
{M : Type uM} →
{B : Type uB} →
[inst : Ring R] →
[inst_1 : AddCommGroup A] →
[inst_2 : AddCommGroup B] →
[inst_3 : AddCommGroup M] →
[inst_4 : Module R A] →
[inst_5 : Module R B] →
[inst_6 : Module R M] →
{j : A →ₗ[R] M} →
{g : M →ₗ[R] B} →
{f : B →ₗ[R] M} →
Function.Injective ⇑j → j.range = g.ker → g ∘ₗ f = LinearMap.id → (A × B) ≃ₗ[R] M
The isomorphism A × B ≃ₗ[R] M coming from a right split exact sequence 0 ⟶ A ⟶ M ⟶ B ⟶ 0
of modules.
def lequivProdOfLeftSplitExact E1 #
{R : Type u} →
{A : Type uA} →
{M : Type uM} →
{B : Type uB} →
[inst : Ring R] →
[inst_1 : AddCommGroup A] →
[inst_2 : AddCommGroup B] →
[inst_3 : AddCommGroup M] →
[inst_4 : Module R A] →
[inst_5 : Module R B] →
[inst_6 : Module R M] →
{j : A →ₗ[R] M} →
{g : M →ₗ[R] B} →
{f : M →ₗ[R] A} →
Function.Surjective ⇑g → j.range = g.ker → f ∘ₗ j = LinearMap.id → (A × B) ≃ₗ[R] M
The isomorphism A × B ≃ₗ[R] M coming from a left split exact sequence 0 ⟶ A ⟶ M ⟶ B ⟶ 0
of modules.