The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.Ring.Prod
61 declarations. Mathlib docs · Source
instance Prod.instDistrib E0 #
{R : Type u_1} → {S : Type u_3} → [Distrib R] → [Distrib S] → Distrib (R × S)
Product of two distributive types is distributive.
instance Prod.instNonUnitalNonAssocSemiring E0 #
{R : Type u_1} →
{S : Type u_3} → [NonUnitalNonAssocSemiring R] → [NonUnitalNonAssocSemiring S] → NonUnitalNonAssocSemiring (R × S)
Product of two NonUnitalNonAssocSemirings is a NonUnitalNonAssocSemiring.
instance Prod.instNonUnitalSemiring E0 #
{R : Type u_1} → {S : Type u_3} → [NonUnitalSemiring R] → [NonUnitalSemiring S] → NonUnitalSemiring (R × S)
Product of two NonUnitalSemirings is a NonUnitalSemiring.
instance Prod.instNonAssocSemiring E0 #
{R : Type u_1} → {S : Type u_3} → [NonAssocSemiring R] → [NonAssocSemiring S] → NonAssocSemiring (R × S)
Product of two NonAssocSemirings is a NonAssocSemiring.
instance Prod.instSemiring E0 #
{R : Type u_1} → {S : Type u_3} → [Semiring R] → [Semiring S] → Semiring (R × S)
Product of two semirings is a semiring.
instance Prod.instNonUnitalCommSemiring E0 #
{R : Type u_1} → {S : Type u_3} → [NonUnitalCommSemiring R] → [NonUnitalCommSemiring S] → NonUnitalCommSemiring (R × S)
Product of two NonUnitalCommSemirings is a NonUnitalCommSemiring.
instance Prod.instCommSemiring E0 #
{R : Type u_1} → {S : Type u_3} → [CommSemiring R] → [CommSemiring S] → CommSemiring (R × S)
Product of two commutative semirings is a commutative semiring.
instance Prod.instAddCommGroupWithOne E0 #
{R : Type u_1} → {S : Type u_3} → [AddCommGroupWithOne R] → [AddCommGroupWithOne S] → AddCommGroupWithOne (R × S)
Product of two AddCommGroupWithOnes is an AddCommGroupWithOne.
instance Prod.instNonUnitalNonAssocRing E0 #
{R : Type u_1} → {S : Type u_3} → [NonUnitalNonAssocRing R] → [NonUnitalNonAssocRing S] → NonUnitalNonAssocRing (R × S)
instance Prod.instNonUnitalRing E0 #
{R : Type u_1} → {S : Type u_3} → [NonUnitalRing R] → [NonUnitalRing S] → NonUnitalRing (R × S)
instance Prod.instNonAssocRing E0 #
{R : Type u_1} → {S : Type u_3} → [NonAssocRing R] → [NonAssocRing S] → NonAssocRing (R × S)
instance Prod.instRing E0 #
{R : Type u_1} → {S : Type u_3} → [Ring R] → [Ring S] → Ring (R × S)
Product of two rings is a ring.
instance Prod.instNonUnitalCommRing E0 #
{R : Type u_1} → {S : Type u_3} → [NonUnitalCommRing R] → [NonUnitalCommRing S] → NonUnitalCommRing (R × S)
Product of two NonUnitalCommRings is a NonUnitalCommRing.
instance Prod.instCommRing E0 #
{R : Type u_1} → {S : Type u_3} → [CommRing R] → [CommRing S] → CommRing (R × S)
Product of two commutative rings is a commutative ring.
def NonUnitalRingHom.fst E1 #
(R : Type u_1) →
(S : Type u_3) → [inst : NonUnitalNonAssocSemiring R] → [inst_1 : NonUnitalNonAssocSemiring S] → R × S →ₙ+* R
Given non-unital semirings R, S, the natural projection homomorphism from R × S to R.
def NonUnitalRingHom.snd E1 #
(R : Type u_1) →
(S : Type u_3) → [inst : NonUnitalNonAssocSemiring R] → [inst_1 : NonUnitalNonAssocSemiring S] → R × S →ₙ+* S
Given non-unital semirings R, S, the natural projection homomorphism from R × S to S.
theorem NonUnitalRingHom.coe_fst E0 #
∀ {R : Type u_1} {S : Type u_3} [inst : NonUnitalNonAssocSemiring R] [inst_1 : NonUnitalNonAssocSemiring S],
⇑(NonUnitalRingHom.fst R S) = Prod.fst
theorem NonUnitalRingHom.coe_snd E0 #
∀ {R : Type u_1} {S : Type u_3} [inst : NonUnitalNonAssocSemiring R] [inst_1 : NonUnitalNonAssocSemiring S],
⇑(NonUnitalRingHom.snd R S) = Prod.snd
def NonUnitalRingHom.prod E1 #
{R : Type u_1} →
{S : Type u_3} →
{T : Type u_5} →
[inst : NonUnitalNonAssocSemiring R] →
[inst_1 : NonUnitalNonAssocSemiring S] →
[inst_2 : NonUnitalNonAssocSemiring T] → (R →ₙ+* S) → (R →ₙ+* T) → R →ₙ+* S × T
Combine two non-unital ring homomorphisms f : R →ₙ+* S, g : R →ₙ+* T into
f.prod g : R →ₙ+* S × T given by (f.prod g) x = (f x, g x)
theorem NonUnitalRingHom.prod_apply E0 #
∀ {R : Type u_1} {S : Type u_3} {T : Type u_5} [inst : NonUnitalNonAssocSemiring R]
[inst_1 : NonUnitalNonAssocSemiring S] [inst_2 : NonUnitalNonAssocSemiring T] (f : R →ₙ+* S) (g : R →ₙ+* T) (x : R),
(f.prod g) x = (f x, g x)
theorem NonUnitalRingHom.fst_comp_prod E0 #
∀ {R : Type u_1} {S : Type u_3} {T : Type u_5} [inst : NonUnitalNonAssocSemiring R]
[inst_1 : NonUnitalNonAssocSemiring S] [inst_2 : NonUnitalNonAssocSemiring T] (f : R →ₙ+* S) (g : R →ₙ+* T),
(NonUnitalRingHom.fst S T).comp (f.prod g) = f
theorem NonUnitalRingHom.snd_comp_prod E0 #
∀ {R : Type u_1} {S : Type u_3} {T : Type u_5} [inst : NonUnitalNonAssocSemiring R]
[inst_1 : NonUnitalNonAssocSemiring S] [inst_2 : NonUnitalNonAssocSemiring T] (f : R →ₙ+* S) (g : R →ₙ+* T),
(NonUnitalRingHom.snd S T).comp (f.prod g) = g
theorem NonUnitalRingHom.prod_unique E1 #
∀ {R : Type u_1} {S : Type u_3} {T : Type u_5} [inst : NonUnitalNonAssocSemiring R]
[inst_1 : NonUnitalNonAssocSemiring S] [inst_2 : NonUnitalNonAssocSemiring T] (f : R →ₙ+* S × T),
((NonUnitalRingHom.fst S T).comp f).prod ((NonUnitalRingHom.snd S T).comp f) = f
def NonUnitalRingHom.prodMap E1 #
{R : Type u_1} →
{R' : Type u_2} →
{S : Type u_3} →
{S' : Type u_4} →
[inst : NonUnitalNonAssocSemiring R] →
[inst_1 : NonUnitalNonAssocSemiring S] →
[inst_2 : NonUnitalNonAssocSemiring R'] →
[inst_3 : NonUnitalNonAssocSemiring S'] → (R →ₙ+* R') → (S →ₙ+* S') → R × S →ₙ+* R' × S'
Prod.map as a NonUnitalRingHom.
theorem NonUnitalRingHom.prodMap_def E0 #
∀ {R : Type u_1} {R' : Type u_2} {S : Type u_3} {S' : Type u_4} [inst : NonUnitalNonAssocSemiring R]
[inst_1 : NonUnitalNonAssocSemiring S] [inst_2 : NonUnitalNonAssocSemiring R'] [inst_3 : NonUnitalNonAssocSemiring S']
(f : R →ₙ+* R') (g : S →ₙ+* S'),
f.prodMap g = (f.comp (NonUnitalRingHom.fst R S)).prod (g.comp (NonUnitalRingHom.snd R S))
theorem NonUnitalRingHom.coe_prodMap E0 #
∀ {R : Type u_1} {R' : Type u_2} {S : Type u_3} {S' : Type u_4} [inst : NonUnitalNonAssocSemiring R]
[inst_1 : NonUnitalNonAssocSemiring S] [inst_2 : NonUnitalNonAssocSemiring R'] [inst_3 : NonUnitalNonAssocSemiring S']
(f : R →ₙ+* R') (g : S →ₙ+* S'), ⇑(f.prodMap g) = Prod.map ⇑f ⇑g
theorem NonUnitalRingHom.prod_comp_prodMap E1 #
∀ {R : Type u_1} {R' : Type u_2} {S : Type u_3} {S' : Type u_4} {T : Type u_5} [inst : NonUnitalNonAssocSemiring R]
[inst_1 : NonUnitalNonAssocSemiring S] [inst_2 : NonUnitalNonAssocSemiring R'] [inst_3 : NonUnitalNonAssocSemiring S']
[inst_4 : NonUnitalNonAssocSemiring T] (f : T →ₙ+* R) (g : T →ₙ+* S) (f' : R →ₙ+* R') (g' : S →ₙ+* S'),
(f'.prodMap g').comp (f.prod g) = (f'.comp f).prod (g'.comp g)
def RingHom.fst E1 #
(R : Type u_1) → (S : Type u_3) → [inst : NonAssocSemiring R] → [inst_1 : NonAssocSemiring S] → R × S →+* R
Given semirings R, S, the natural projection homomorphism from R × S to R.
def RingHom.snd E1 #
(R : Type u_1) → (S : Type u_3) → [inst : NonAssocSemiring R] → [inst_1 : NonAssocSemiring S] → R × S →+* S
Given semirings R, S, the natural projection homomorphism from R × S to S.
instance RingHom.instRingHomSurjectiveProdFst E0 #
∀ (R : Type u_6) (S : Type u_7) [inst : Semiring R] [inst_1 : Semiring S], RingHomSurjective (RingHom.fst R S)
instance RingHom.instRingHomSurjectiveProdSnd E0 #
∀ (R : Type u_6) (S : Type u_7) [inst : Semiring R] [inst_1 : Semiring S], RingHomSurjective (RingHom.snd R S)
theorem RingHom.coe_fst E0 #
∀ {R : Type u_1} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S], ⇑(RingHom.fst R S) = Prod.fst
theorem RingHom.coe_snd E0 #
∀ {R : Type u_1} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S], ⇑(RingHom.snd R S) = Prod.snd
def RingHom.prod E1 #
{R : Type u_1} →
{S : Type u_3} →
{T : Type u_5} →
[inst : NonAssocSemiring R] →
[inst_1 : NonAssocSemiring S] → [inst_2 : NonAssocSemiring T] → (R →+* S) → (R →+* T) → R →+* S × T
Combine two ring homomorphisms f : R →+* S, g : R →+* T into f.prod g : R →+* S × T
given by (f.prod g) x = (f x, g x)
theorem RingHom.prod_apply E0 #
∀ {R : Type u_1} {S : Type u_3} {T : Type u_5} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S]
[inst_2 : NonAssocSemiring T] (f : R →+* S) (g : R →+* T) (x : R), (f.prod g) x = (f x, g x)
theorem RingHom.fst_comp_prod E0 #
∀ {R : Type u_1} {S : Type u_3} {T : Type u_5} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S]
[inst_2 : NonAssocSemiring T] (f : R →+* S) (g : R →+* T), (RingHom.fst S T).comp (f.prod g) = f
theorem RingHom.snd_comp_prod E0 #
∀ {R : Type u_1} {S : Type u_3} {T : Type u_5} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S]
[inst_2 : NonAssocSemiring T] (f : R →+* S) (g : R →+* T), (RingHom.snd S T).comp (f.prod g) = g
theorem RingHom.prod_unique E1 #
∀ {R : Type u_1} {S : Type u_3} {T : Type u_5} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S]
[inst_2 : NonAssocSemiring T] (f : R →+* S × T), ((RingHom.fst S T).comp f).prod ((RingHom.snd S T).comp f) = f
def RingHom.prodMap E1 #
{R : Type u_1} →
{R' : Type u_2} →
{S : Type u_3} →
{S' : Type u_4} →
[inst : NonAssocSemiring R] →
[inst_1 : NonAssocSemiring S] →
[inst_2 : NonAssocSemiring R'] →
[inst_3 : NonAssocSemiring S'] → (R →+* R') → (S →+* S') → R × S →+* R' × S'
Prod.map as a RingHom.
theorem RingHom.prodMap_def E0 #
∀ {R : Type u_1} {R' : Type u_2} {S : Type u_3} {S' : Type u_4} [inst : NonAssocSemiring R]
[inst_1 : NonAssocSemiring S] [inst_2 : NonAssocSemiring R'] [inst_3 : NonAssocSemiring S'] (f : R →+* R')
(g : S →+* S'), f.prodMap g = (f.comp (RingHom.fst R S)).prod (g.comp (RingHom.snd R S))
theorem RingHom.coe_prodMap E0 #
∀ {R : Type u_1} {R' : Type u_2} {S : Type u_3} {S' : Type u_4} [inst : NonAssocSemiring R]
[inst_1 : NonAssocSemiring S] [inst_2 : NonAssocSemiring R'] [inst_3 : NonAssocSemiring S'] (f : R →+* R')
(g : S →+* S'), ⇑(f.prodMap g) = Prod.map ⇑f ⇑g
theorem RingHom.prod_comp_prodMap E1 #
∀ {R : Type u_1} {R' : Type u_2} {S : Type u_3} {S' : Type u_4} {T : Type u_5} [inst : NonAssocSemiring R]
[inst_1 : NonAssocSemiring S] [inst_2 : NonAssocSemiring R'] [inst_3 : NonAssocSemiring S']
[inst_4 : NonAssocSemiring T] (f : T →+* R) (g : T →+* S) (f' : R →+* R') (g' : S →+* S'),
(f'.prodMap g').comp (f.prod g) = (f'.comp f).prod (g'.comp g)
def RingEquiv.prodComm E1 #
{R : Type u_1} → {S : Type u_3} → [inst : NonAssocSemiring R] → [inst_1 : NonAssocSemiring S] → R × S ≃+* S × R
Swapping components as an equivalence of (semi)rings.
theorem RingEquiv.coe_prodComm E0 #
∀ {R : Type u_1} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S],
⇑RingEquiv.prodComm = Prod.swap
theorem RingEquiv.coe_prodComm_symm E0 #
∀ {R : Type u_1} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S],
⇑RingEquiv.prodComm.symm = Prod.swap
theorem RingEquiv.prodComm_trans_prodComm E0 #
∀ {R : Type u_1} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S],
RingEquiv.prodComm.trans RingEquiv.prodComm = RingEquiv.refl (R × S)
theorem RingEquiv.fst_comp_coe_prodComm E0 #
∀ {R : Type u_1} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S],
(RingHom.fst S R).comp ↑RingEquiv.prodComm = RingHom.snd R S
theorem RingEquiv.snd_comp_coe_prodComm E0 #
∀ {R : Type u_1} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S],
(RingHom.snd S R).comp ↑RingEquiv.prodComm = RingHom.fst R S
def RingEquiv.prodProdProdComm E1 #
(R : Type u_1) →
(R' : Type u_2) →
(S : Type u_3) →
(S' : Type u_4) →
[inst : NonAssocSemiring R] →
[inst_1 : NonAssocSemiring S] →
[inst_2 : NonAssocSemiring R'] → [inst_3 : NonAssocSemiring S'] → (R × R') × S × S' ≃+* (R × S) × R' × S'
Four-way commutativity of Prod. The name matches mul_mul_mul_comm.
theorem RingEquiv.prodProdProdComm_apply E0 #
∀ (R : Type u_1) (R' : Type u_2) (S : Type u_3) (S' : Type u_4) [inst : NonAssocSemiring R]
[inst_1 : NonAssocSemiring S] [inst_2 : NonAssocSemiring R'] [inst_3 : NonAssocSemiring S']
(rrss : (R × R') × S × S'), (RingEquiv.prodProdProdComm R R' S S') rrss = ((rrss.1.1, rrss.2.1), rrss.1.2, rrss.2.2)
theorem RingEquiv.prodProdProdComm_symm E0 #
∀ (R : Type u_1) (R' : Type u_2) (S : Type u_3) (S' : Type u_4) [inst : NonAssocSemiring R]
[inst_1 : NonAssocSemiring S] [inst_2 : NonAssocSemiring R'] [inst_3 : NonAssocSemiring S'],
(RingEquiv.prodProdProdComm R R' S S').symm = RingEquiv.prodProdProdComm R S R' S'
theorem RingEquiv.prodProdProdComm_toAddEquiv E0 #
∀ (R : Type u_1) (R' : Type u_2) (S : Type u_3) (S' : Type u_4) [inst : NonAssocSemiring R]
[inst_1 : NonAssocSemiring S] [inst_2 : NonAssocSemiring R'] [inst_3 : NonAssocSemiring S'],
↑(RingEquiv.prodProdProdComm R R' S S') = AddEquiv.prodProdProdComm R R' S S'
theorem RingEquiv.prodProdProdComm_toMulEquiv E0 #
∀ (R : Type u_1) (R' : Type u_2) (S : Type u_3) (S' : Type u_4) [inst : NonAssocSemiring R]
[inst_1 : NonAssocSemiring S] [inst_2 : NonAssocSemiring R'] [inst_3 : NonAssocSemiring S'],
↑(RingEquiv.prodProdProdComm R R' S S') = MulEquiv.prodProdProdComm R R' S S'
theorem RingEquiv.prodProdProdComm_toEquiv E0 #
∀ (R : Type u_1) (R' : Type u_2) (S : Type u_3) (S' : Type u_4) [inst : NonAssocSemiring R]
[inst_1 : NonAssocSemiring S] [inst_2 : NonAssocSemiring R'] [inst_3 : NonAssocSemiring S'],
↑(RingEquiv.prodProdProdComm R R' S S') = Equiv.prodProdProdComm R R' S S'
def RingEquiv.prodZeroRing E1 #
(R : Type u_1) →
(S : Type u_3) → [inst : NonAssocSemiring R] → [inst_1 : NonAssocSemiring S] → [Subsingleton S] → R ≃+* R × S
A ring R is isomorphic to R × S when S is the zero ring
theorem RingEquiv.prodZeroRing_symm_apply E0 #
∀ (R : Type u_1) (S : Type u_3) [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S] [inst_2 : Subsingleton S]
(self : R × S), (RingEquiv.prodZeroRing R S).symm self = self.1
theorem RingEquiv.prodZeroRing_apply E0 #
∀ (R : Type u_1) (S : Type u_3) [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S] [inst_2 : Subsingleton S]
(x : R), (RingEquiv.prodZeroRing R S) x = (x, 0)
def RingEquiv.zeroRingProd E1 #
(R : Type u_1) →
(S : Type u_3) → [inst : NonAssocSemiring R] → [inst_1 : NonAssocSemiring S] → [Subsingleton S] → R ≃+* S × R
A ring R is isomorphic to S × R when S is the zero ring
theorem RingEquiv.zeroRingProd_symm_apply E0 #
∀ (R : Type u_1) (S : Type u_3) [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S] [inst_2 : Subsingleton S]
(self : S × R), (RingEquiv.zeroRingProd R S).symm self = self.2
theorem RingEquiv.zeroRingProd_apply E0 #
∀ (R : Type u_1) (S : Type u_3) [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S] [inst_2 : Subsingleton S]
(x : R), (RingEquiv.zeroRingProd R S) x = (0, x)
theorem false_of_nontrivial_of_product_domain E1 #
∀ (R : Type u_6) (S : Type u_7) [inst : Semiring R] [inst_1 : Semiring S] [IsDomain (R × S)] [Nontrivial R]
[Nontrivial S], False
The product of two nontrivial rings is not a domain