mathlib documentation

algebra.ring.prod

Semiring, ring etc structures on R × S #

In this file we define two-binop (semiring, ring etc) structures on R × S. We also prove trivial simp lemmas, and define the following operations on ring_homs:

@[instance]
def prod.distrib {R : Type u_1} {S : Type u_3} [distrib R] [distrib S] :
distrib (R × S)

Product of two distributive types is distributive.

Equations
@[instance]
def prod.comm_semiring {R : Type u_1} {S : Type u_3} [comm_semiring R] [comm_semiring S] :

Product of two commutative semirings is a commutative semiring.

Equations
@[instance]
def prod.comm_ring {R : Type u_1} {S : Type u_3} [comm_ring R] [comm_ring S] :

Product of two commutative rings is a commutative ring.

Equations
def ring_hom.fst (R : Type u_1) (S : Type u_3) [non_assoc_semiring R] [non_assoc_semiring S] :
R × S →+* R

Given semirings R, S, the natural projection homomorphism from R × S to R.

Equations
def ring_hom.snd (R : Type u_1) (S : Type u_3) [non_assoc_semiring R] [non_assoc_semiring S] :
R × S →+* S

Given semirings R, S, the natural projection homomorphism from R × S to S.

Equations
@[simp]
theorem ring_hom.coe_fst {R : Type u_1} {S : Type u_3} [non_assoc_semiring R] [non_assoc_semiring S] :
@[simp]
theorem ring_hom.coe_snd {R : Type u_1} {S : Type u_3} [non_assoc_semiring R] [non_assoc_semiring S] :
def ring_hom.prod {R : Type u_1} {S : Type u_3} {T : Type u_5} [non_assoc_semiring R] [non_assoc_semiring S] [non_assoc_semiring T] (f : R →+* S) (g : 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)

Equations
@[simp]
theorem ring_hom.prod_apply {R : Type u_1} {S : Type u_3} {T : Type u_5} [non_assoc_semiring R] [non_assoc_semiring S] [non_assoc_semiring T] (f : R →+* S) (g : R →+* T) (x : R) :
(f.prod g) x = (f x, g x)
@[simp]
theorem ring_hom.fst_comp_prod {R : Type u_1} {S : Type u_3} {T : Type u_5} [non_assoc_semiring R] [non_assoc_semiring S] [non_assoc_semiring T] (f : R →+* S) (g : R →+* T) :
(ring_hom.fst S T).comp (f.prod g) = f
@[simp]
theorem ring_hom.snd_comp_prod {R : Type u_1} {S : Type u_3} {T : Type u_5} [non_assoc_semiring R] [non_assoc_semiring S] [non_assoc_semiring T] (f : R →+* S) (g : R →+* T) :
(ring_hom.snd S T).comp (f.prod g) = g
theorem ring_hom.prod_unique {R : Type u_1} {S : Type u_3} {T : Type u_5} [non_assoc_semiring R] [non_assoc_semiring S] [non_assoc_semiring T] (f : R →+* S × T) :
((ring_hom.fst S T).comp f).prod ((ring_hom.snd S T).comp f) = f
def ring_hom.prod_map {R : Type u_1} {R' : Type u_2} {S : Type u_3} {S' : Type u_4} [non_assoc_semiring R] [non_assoc_semiring S] [non_assoc_semiring R'] [non_assoc_semiring S'] (f : R →+* R') (g : S →+* S') :
R × S →* R' × S'

prod.map as a ring_hom.

Equations
theorem ring_hom.prod_map_def {R : Type u_1} {R' : Type u_2} {S : Type u_3} {S' : Type u_4} [non_assoc_semiring R] [non_assoc_semiring S] [non_assoc_semiring R'] [non_assoc_semiring S'] (f : R →+* R') (g : S →+* S') :
f.prod_map g = ((f.comp (ring_hom.fst R S)).prod (g.comp (ring_hom.snd R S)))
@[simp]
theorem ring_hom.coe_prod_map {R : Type u_1} {R' : Type u_2} {S : Type u_3} {S' : Type u_4} [non_assoc_semiring R] [non_assoc_semiring S] [non_assoc_semiring R'] [non_assoc_semiring S'] (f : R →+* R') (g : S →+* S') :
theorem ring_hom.prod_comp_prod_map {R : Type u_1} {R' : Type u_2} {S : Type u_3} {S' : Type u_4} {T : Type u_5} [non_assoc_semiring R] [non_assoc_semiring S] [non_assoc_semiring R'] [non_assoc_semiring S'] [non_assoc_semiring T] (f : T →* R) (g : T →* S) (f' : R →* R') (g' : S →* S') :
(f'.prod_map g').comp (f.prod g) = (f'.comp f).prod (g'.comp g)
def ring_equiv.prod_comm {R : Type u_1} {S : Type u_3} [non_assoc_semiring R] [non_assoc_semiring S] :
R × S ≃+* S × R

Swapping components as an equivalence of (semi)rings.

Equations
def ring_equiv.prod_zero_ring (R : Type u_1) (S : Type u_3) [non_assoc_semiring R] [non_assoc_semiring S] [subsingleton S] :
R ≃+* R × S

A ring R is isomorphic to R × S when S is the zero ring

Equations
@[simp]
theorem ring_equiv.prod_zero_ring_symm_apply (R : Type u_1) (S : Type u_3) [non_assoc_semiring R] [non_assoc_semiring S] [subsingleton S] (c : R × S) :
@[simp]
theorem ring_equiv.prod_zero_ring_apply (R : Type u_1) (S : Type u_3) [non_assoc_semiring R] [non_assoc_semiring S] [subsingleton S] (x : R) :
def ring_equiv.zero_ring_prod (R : Type u_1) (S : Type u_3) [non_assoc_semiring R] [non_assoc_semiring S] [subsingleton S] :
R ≃+* S × R

A ring R is isomorphic to S × R when S is the zero ring

Equations
@[simp]
theorem ring_equiv.zero_ring_prod_apply (R : Type u_1) (S : Type u_3) [non_assoc_semiring R] [non_assoc_semiring S] [subsingleton S] (x : R) :
@[simp]
theorem ring_equiv.zero_ring_prod_symm_apply (R : Type u_1) (S : Type u_3) [non_assoc_semiring R] [non_assoc_semiring S] [subsingleton S] (c : S × R) :