The areas / V26. Homological algebra
Mathlib.Algebra.Category.Ring.Constructions
46 declarations. Mathlib docs · Source
Constructions of (co)limits in CommRingCat
In this file we provide the explicit (co)cones for various (co)limits in CommRingCat, including
- tensor product is the pushout
- tensor product over
ℤis the binary coproduct ℤis the initial object0is the strict terminal object- Cartesian product is the product
- arbitrary direct product of a family of rings is the product object (Pi object)
RingHom.eqLocusis the equalizer
theorem Algebra.TensorProduct.liftEquiv.congr_simp E1 #
∀ {R : Type uR} {S : Type uS} {A : Type uA} {B : Type uB} {C : Type uC} [inst : CommSemiring R]
[inst_1 : CommSemiring S] [inst_2 : Algebra R S] [inst_3 : Semiring A] [inst_4 : Algebra R A] [inst_5 : Algebra S A]
[inst_6 : IsScalarTower R S A] [inst_7 : Semiring B] [inst_8 : Algebra R B] [inst_9 : Semiring C]
[inst_10 : Algebra S C] [inst_11 : Algebra R C] [inst_12 : IsScalarTower R S C],
Algebra.TensorProduct.liftEquiv = Algebra.TensorProduct.liftEquiv
def CommRingCat.pushoutCocone E1 #
(R A B : Type u) →
[inst : CommRing R] →
[inst_1 : CommRing A] →
[inst_2 : CommRing B] →
[inst_3 : Algebra R A] →
[inst_4 : Algebra R B] →
CategoryTheory.Limits.PushoutCocone (CommRingCat.ofHom (algebraMap R A))
(CommRingCat.ofHom (algebraMap R B))
The explicit cocone with tensor products as the fibered product in CommRingCat.
theorem CommRingCat.pushoutCocone_inl E0 #
∀ (R A B : Type u) [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : CommRing B] [inst_3 : Algebra R A]
[inst_4 : Algebra R B],
(CommRingCat.pushoutCocone R A B).inl = CommRingCat.ofHom Algebra.TensorProduct.includeLeftRingHom
theorem CommRingCat.pushoutCocone_inr E0 #
∀ (R A B : Type u) [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : CommRing B] [inst_3 : Algebra R A]
[inst_4 : Algebra R B],
(CommRingCat.pushoutCocone R A B).inr = CommRingCat.ofHom Algebra.TensorProduct.includeRight.toRingHom
theorem CommRingCat.pushoutCocone_pt E0 #
∀ (R A B : Type u) [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : CommRing B] [inst_3 : Algebra R A]
[inst_4 : Algebra R B], (CommRingCat.pushoutCocone R A B).pt = ↧(TensorProduct R A B)
def CommRingCat.pushoutCoconeIsColimit E1 #
(R A B : Type u) →
[inst : CommRing R] →
[inst_1 : CommRing A] →
[inst_2 : CommRing B] →
[inst_3 : Algebra R A] →
[inst_4 : Algebra R B] → CategoryTheory.Limits.IsColimit (CommRingCat.pushoutCocone R A B)
Verify that the pushout_cocone is indeed the colimit.
theorem CommRingCat.isPushout_tensorProduct E1 #
∀ (R A B : Type u) [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : CommRing B] [inst_3 : Algebra R A]
[inst_4 : Algebra R B],
CategoryTheory.IsPushout (CommRingCat.ofHom (algebraMap R A)) (CommRingCat.ofHom (algebraMap R B))
(CommRingCat.ofHom Algebra.TensorProduct.includeLeftRingHom)
(CommRingCat.ofHom Algebra.TensorProduct.includeRight.toRingHom)
theorem CommRingCat.isPushout_of_isPushout E1 #
∀ (R S A B : Type u) [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A] [inst_3 : CommRing B]
[inst_4 : Algebra R S] [inst_5 : Algebra S B] [inst_6 : Algebra R A] [inst_7 : Algebra A B] [inst_8 : Algebra R B]
[inst_9 : IsScalarTower R A B] [inst_10 : IsScalarTower R S B] [Algebra.IsPushout R S A B],
CategoryTheory.IsPushout (CommRingCat.ofHom (algebraMap R S)) (CommRingCat.ofHom (algebraMap R A))
(CommRingCat.ofHom (algebraMap S B)) (CommRingCat.ofHom (algebraMap A B))
theorem CommRingCat.isPushout_iff_isPushout E1 #
∀ {R S : Type u} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {R' S' : Type u}
[inst_3 : CommRing R'] [inst_4 : CommRing S'] [inst_5 : Algebra R R'] [inst_6 : Algebra S S'] [inst_7 : Algebra R' S']
[inst_8 : Algebra R S'] [inst_9 : IsScalarTower R R' S'] [inst_10 : IsScalarTower R S S'],
CategoryTheory.IsPushout (CommRingCat.ofHom (algebraMap R R')) (CommRingCat.ofHom (algebraMap R S))
(CommRingCat.ofHom (algebraMap R' S')) (CommRingCat.ofHom (algebraMap S S')) ↔
Algebra.IsPushout R R' S S'
theorem CommRingCat.isPushout_of_isLocalization E1 #
∀ {R S Rₘ Sₘ : Type u} [inst : CommRing R] [inst_1 : CommRing Rₘ] [inst_2 : Algebra R Rₘ] [inst_3 : CommRing S]
[inst_4 : CommRing Sₘ] [inst_5 : Algebra S Sₘ] (f : R →+* S) (fₘ : Rₘ →+* Sₘ),
fₘ.comp (algebraMap R Rₘ) = (algebraMap S Sₘ).comp f →
∀ (M : Submonoid R) [IsLocalization M Rₘ] [IsLocalization (Submonoid.map f M) Sₘ],
CategoryTheory.IsPushout (CommRingCat.ofHom f) (CommRingCat.ofHom (algebraMap R Rₘ))
(CommRingCat.ofHom (algebraMap S Sₘ)) (CommRingCat.ofHom fₘ)
theorem CommRingCat.closure_range_union_range_eq_top_of_isPushout E1 #
∀ {R A B X : CommRingCat} {f : R ⟶ A} {g : R ⟶ B} {a : A ⟶ X} {b : B ⟶ X},
CategoryTheory.IsPushout f g a b →
Subring.closure
(Set.range ⇑(CategoryTheory.ConcreteCategory.hom a) ∪ Set.range ⇑(CategoryTheory.ConcreteCategory.hom b)) =
⊤
def CommRingCat.coproductCocone E1 #
(A B : CommRingCat) → CategoryTheory.Limits.BinaryCofan A B
The tensor product A ⊗[ℤ] B forms a cocone for A and B.
theorem CommRingCat.coproductCocone_pt E0 #
∀ (A B : CommRingCat), (A.coproductCocone B).pt = ↧(TensorProduct ℤ ↑A ↑B)
theorem CommRingCat.coproductCocone_ι E0 #
∀ (A B : CommRingCat),
(A.coproductCocone B).ι =
{
app := fun x ↦
match x.as with
| CategoryTheory.Limits.WalkingPair.left => CommRingCat.ofHom ↑Algebra.TensorProduct.includeLeft
| CategoryTheory.Limits.WalkingPair.right => CommRingCat.ofHom ↑Algebra.TensorProduct.includeRight,
naturality := ⋯ }
theorem CommRingCat.coproductCocone_inl E0 #
∀ (A B : CommRingCat), (A.coproductCocone B).inl = CommRingCat.ofHom Algebra.TensorProduct.includeLeft.toRingHom
theorem CommRingCat.coproductCocone_inr E0 #
∀ (A B : CommRingCat), (A.coproductCocone B).inr = CommRingCat.ofHom Algebra.TensorProduct.includeRight.toRingHom
def CommRingCat.coproductCoconeIsColimit E1 #
(A B : CommRingCat) → CategoryTheory.Limits.IsColimit (A.coproductCocone B)
The tensor product A ⊗[ℤ] B is a coproduct for A and B.
theorem CommRingCat.coproductCoconeIsColimit_desc E0 #
∀ (A B : CommRingCat) (s : CategoryTheory.Limits.BinaryCofan A B),
(A.coproductCoconeIsColimit B).desc s =
CommRingCat.ofHom
(Algebra.TensorProduct.lift (CommRingCat.Hom.hom s.inl).toIntAlgHom (CommRingCat.Hom.hom s.inr).toIntAlgHom
⋯).toRingHom
def CommRingCat.coproductColimitCocone E1 #
(A B : CommRingCat) → CategoryTheory.Limits.ColimitCocone (CategoryTheory.Limits.pair A B)
The limit cone of the tensor product A ⊗[ℤ] B in CommRingCat.
instance CommRingCat.instUniqueHomOfPUnit E0 #
(X : CommRingCat) → Unique (X ⟶ ↧PUnit.{u + 1})
def CommRingCat.punitIsTerminal E1 #
CategoryTheory.Limits.IsTerminal ↧PUnit.{u + 1}
The trivial ring is the (strict) terminal object of CommRingCat.
instance CommRingCat.commRingCat_hasStrictTerminalObjects E0 #
CategoryTheory.Limits.HasStrictTerminalObjects CommRingCat
theorem CommRingCat.subsingleton_of_isTerminal E1 #
∀ {X : CommRingCat} (hX : CategoryTheory.Limits.IsTerminal X), Subsingleton ↑X
def CommRingCat.zIsInitial E1 #
CategoryTheory.Limits.IsInitial ↧ℤ
ℤ is the initial object of CommRingCat.
def CommRingCat.isInitial E1 #
CategoryTheory.Limits.IsInitial ↧(ULift.{u, 0} ℤ)
ULift.{u} ℤ is initial in CommRingCat.
def CommRingCat.prodFan E1 #
(A B : CommRingCat) → CategoryTheory.Limits.BinaryFan A B
The product in CommRingCat is the Cartesian product. This is the binary fan.
theorem CommRingCat.prodFan_pt E0 #
∀ (A B : CommRingCat), (A.prodFan B).pt = ↧(↑A × ↑B)
def CommRingCat.prodFanIsLimit E1 #
(A B : CommRingCat) → CategoryTheory.Limits.IsLimit (A.prodFan B)
The product in CommRingCat is the Cartesian product.
def CommRingCat.piFan E1 #
{ι : Type u} → (R : ι → CommRingCat) → CategoryTheory.Limits.Fan R
The categorical product of rings is the Cartesian product of rings. This is its Fan.
theorem CommRingCat.piFan_pt E0 #
∀ {ι : Type u} (R : ι → CommRingCat), (CommRingCat.piFan R).pt = ↧((i : ι) → ↑(R i))
def CommRingCat.piFanIsLimit E1 #
{ι : Type u} → (R : ι → CommRingCat) → CategoryTheory.Limits.IsLimit (CommRingCat.piFan R)
The categorical product of rings is the Cartesian product of rings.
def CommRingCat.piIsoPi E1 #
{ι : Type u} → (R : ι → CommRingCat) → ∏ᶜ R ≅ ↧((i : ι) → ↑(R i))
The categorical product and the usual product agree
def RingEquiv.piEquivPi E1 #
{ι : Type u} → (R : ι → Type u) → [inst : (i : ι) → CommRing (R i)] → ↑(∏ᶜ fun i ↦ ↧(R i)) ≃+* ((i : ι) → R i)
The categorical product and the usual product agree
theorem CommRingCat.Limits.isUnit_iff_forall_isUnit E1 #
∀ {J : Type u'} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J CommRingCat)
{c : CategoryTheory.Limits.Cone F} (hc : CategoryTheory.Limits.IsLimit c) (r : ↑c.pt),
IsUnit r ↔ ∀ (j : J), IsUnit ((CategoryTheory.ConcreteCategory.hom (c.π.app j)) r)
theorem CommRingCat.Limits.π_isLocalHom E1 #
∀ {J : Type u'} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J CommRingCat)
{c : CategoryTheory.Limits.Cone F} (hc : CategoryTheory.Limits.IsLimit c) (j : J),
(∀ (x : ↑c.pt),
IsUnit ((CategoryTheory.ConcreteCategory.hom (c.π.app j)) x) →
∀ (i : J),
∃ k f g,
IsLocalHom (CommRingCat.Hom.hom (F.map f)) ∧
(CategoryTheory.ConcreteCategory.hom (F.map f)) ((CategoryTheory.ConcreteCategory.hom (c.π.app i)) x) =
(CategoryTheory.ConcreteCategory.hom (F.map g)) ((CategoryTheory.ConcreteCategory.hom (c.π.app j)) x)) →
IsLocalHom (CommRingCat.Hom.hom (c.π.app j))
theorem CommRingCat.Limits.isLocalRing E1 #
∀ {J : Type u'} [inst : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J CommRingCat)
{c : CategoryTheory.Limits.Cone F} (hc : CategoryTheory.Limits.IsLimit c) (j : J) [IsLocalRing ↑(F.obj j)],
(∀ (x : ↑c.pt),
IsUnit ((CategoryTheory.ConcreteCategory.hom (c.π.app j)) x) →
∀ (i : J),
∃ k f g,
IsLocalHom (CommRingCat.Hom.hom (F.map f)) ∧
(CategoryTheory.ConcreteCategory.hom (F.map f)) ((CategoryTheory.ConcreteCategory.hom (c.π.app i)) x) =
(CategoryTheory.ConcreteCategory.hom (F.map g)) ((CategoryTheory.ConcreteCategory.hom (c.π.app j)) x)) →
IsLocalRing ↑c.pt
def CommRingCat.equalizerFork E1 #
{A B : CommRingCat} → (f g : A ⟶ B) → CategoryTheory.Limits.Fork f g
The equalizer in CommRingCat is the equalizer as sets. This is the equalizer fork.
def CommRingCat.equalizerForkIsLimit E1 #
{A B : CommRingCat} → (f g : A ⟶ B) → CategoryTheory.Limits.IsLimit (CommRingCat.equalizerFork f g)
The equalizer in CommRingCat is the equalizer as sets.
instance CommRingCat.instIsLocalHomCarrierPtWalkingParallelPairEqualizerForkRingHomHomι E0 #
∀ {A B : CommRingCat} (f g : A ⟶ B), IsLocalHom (CommRingCat.Hom.hom (CommRingCat.equalizerFork f g).ι)
instance CommRingCat.equalizer_ι_isLocalHom E0 #
∀ (F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair CommRingCat),
IsLocalHom (CommRingCat.Hom.hom (CategoryTheory.Limits.limit.π F CategoryTheory.Limits.WalkingParallelPair.zero))
theorem CommRingCat.equalizer_limit_isLocalRing E1 #
∀ (F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPair CommRingCat)
[IsLocalRing ↑(F.obj CategoryTheory.Limits.WalkingParallelPair.zero)], IsLocalRing ↑(CategoryTheory.Limits.limit F)
instance CommRingCat.equalizer_ι_isLocalHom' E0 #
∀ (F : CategoryTheory.Functor CategoryTheory.Limits.WalkingParallelPairᵒᵖ CommRingCat),
IsLocalHom
(CommRingCat.Hom.hom (CategoryTheory.Limits.limit.π F (Opposite.op CategoryTheory.Limits.WalkingParallelPair.one)))
def CommRingCat.pullbackCone E1 #
{A B C : CommRingCat} → (f : A ⟶ C) → (g : B ⟶ C) → CategoryTheory.Limits.PullbackCone f g
In the category of CommRingCat, the pullback of f : A ⟶ C and g : B ⟶ C is the eqLocus
of the two maps A × B ⟶ C. This is the constructed pullback cone.
def CommRingCat.pullbackConeIsLimit E1 #
{A B C : CommRingCat} → (f : A ⟶ C) → (g : B ⟶ C) → CategoryTheory.Limits.IsLimit (CommRingCat.pullbackCone f g)
The constructed pullback cone is indeed the limit.
instance CommRingCat.pullbackFst_isLocalHom E0 #
∀ {A B C : CommRingCat} (f : A ⟶ C) (g : B ⟶ C) [IsLocalHom (CommRingCat.Hom.hom g)],
IsLocalHom (CommRingCat.Hom.hom (CategoryTheory.Limits.pullback.fst f g))
theorem CommRingCat.pullback_isLocalRing E1 #
∀ {A B C : CommRingCat} (f : A ⟶ C) (g : B ⟶ C) [IsLocalHom (CommRingCat.Hom.hom g)] [IsLocalRing ↑A],
IsLocalRing ↑(CategoryTheory.Limits.pullback f g)