Metamath Proof Explorer


Definition df-srg

Description: Define class of all semirings. A semiring is a set equipped with two everywhere-defined internal operations, whose first one is an additive commutative monoid structure and the second one is a multiplicative monoid structure, and where multiplication is (left- and right-) distributive over addition. Compared to the definition of a ring, this definition also adds that the additive identity is an absorbing element of the multiplicative law, as this cannot be deduced from distributivity alone. Definition of Golan p. 1. Note that our semirings are unital. Such semirings are sometimes called "rigs", being "rings without negatives". (Contributed by Thierry Arnoux, 21-Mar-2018)

Ref Expression
Assertion df-srg
|- SRing = { f e. CMnd | ( ( mulGrp ` f ) e. Mnd /\ [. ( Base ` f ) / r ]. [. ( +g ` f ) / p ]. [. ( .r ` f ) / t ]. [. ( 0g ` f ) / n ]. A. x e. r ( A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) ) /\ ( ( n t x ) = n /\ ( x t n ) = n ) ) ) }

Detailed syntax breakdown

Step Hyp Ref Expression
0 csrg
 |-  SRing
1 vf
 |-  f
2 ccmn
 |-  CMnd
3 cmgp
 |-  mulGrp
4 1 cv
 |-  f
5 4 3 cfv
 |-  ( mulGrp ` f )
6 cmnd
 |-  Mnd
7 5 6 wcel
 |-  ( mulGrp ` f ) e. Mnd
8 cbs
 |-  Base
9 4 8 cfv
 |-  ( Base ` f )
10 vr
 |-  r
11 cplusg
 |-  +g
12 4 11 cfv
 |-  ( +g ` f )
13 vp
 |-  p
14 cmulr
 |-  .r
15 4 14 cfv
 |-  ( .r ` f )
16 vt
 |-  t
17 c0g
 |-  0g
18 4 17 cfv
 |-  ( 0g ` f )
19 vn
 |-  n
20 vx
 |-  x
21 10 cv
 |-  r
22 vy
 |-  y
23 vz
 |-  z
24 20 cv
 |-  x
25 16 cv
 |-  t
26 22 cv
 |-  y
27 13 cv
 |-  p
28 23 cv
 |-  z
29 26 28 27 co
 |-  ( y p z )
30 24 29 25 co
 |-  ( x t ( y p z ) )
31 24 26 25 co
 |-  ( x t y )
32 24 28 25 co
 |-  ( x t z )
33 31 32 27 co
 |-  ( ( x t y ) p ( x t z ) )
34 30 33 wceq
 |-  ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) )
35 24 26 27 co
 |-  ( x p y )
36 35 28 25 co
 |-  ( ( x p y ) t z )
37 26 28 25 co
 |-  ( y t z )
38 32 37 27 co
 |-  ( ( x t z ) p ( y t z ) )
39 36 38 wceq
 |-  ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) )
40 34 39 wa
 |-  ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) )
41 40 23 21 wral
 |-  A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) )
42 41 22 21 wral
 |-  A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) )
43 19 cv
 |-  n
44 43 24 25 co
 |-  ( n t x )
45 44 43 wceq
 |-  ( n t x ) = n
46 24 43 25 co
 |-  ( x t n )
47 46 43 wceq
 |-  ( x t n ) = n
48 45 47 wa
 |-  ( ( n t x ) = n /\ ( x t n ) = n )
49 42 48 wa
 |-  ( A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) ) /\ ( ( n t x ) = n /\ ( x t n ) = n ) )
50 49 20 21 wral
 |-  A. x e. r ( A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) ) /\ ( ( n t x ) = n /\ ( x t n ) = n ) )
51 50 19 18 wsbc
 |-  [. ( 0g ` f ) / n ]. A. x e. r ( A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) ) /\ ( ( n t x ) = n /\ ( x t n ) = n ) )
52 51 16 15 wsbc
 |-  [. ( .r ` f ) / t ]. [. ( 0g ` f ) / n ]. A. x e. r ( A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) ) /\ ( ( n t x ) = n /\ ( x t n ) = n ) )
53 52 13 12 wsbc
 |-  [. ( +g ` f ) / p ]. [. ( .r ` f ) / t ]. [. ( 0g ` f ) / n ]. A. x e. r ( A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) ) /\ ( ( n t x ) = n /\ ( x t n ) = n ) )
54 53 10 9 wsbc
 |-  [. ( Base ` f ) / r ]. [. ( +g ` f ) / p ]. [. ( .r ` f ) / t ]. [. ( 0g ` f ) / n ]. A. x e. r ( A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) ) /\ ( ( n t x ) = n /\ ( x t n ) = n ) )
55 7 54 wa
 |-  ( ( mulGrp ` f ) e. Mnd /\ [. ( Base ` f ) / r ]. [. ( +g ` f ) / p ]. [. ( .r ` f ) / t ]. [. ( 0g ` f ) / n ]. A. x e. r ( A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) ) /\ ( ( n t x ) = n /\ ( x t n ) = n ) ) )
56 55 1 2 crab
 |-  { f e. CMnd | ( ( mulGrp ` f ) e. Mnd /\ [. ( Base ` f ) / r ]. [. ( +g ` f ) / p ]. [. ( .r ` f ) / t ]. [. ( 0g ` f ) / n ]. A. x e. r ( A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) ) /\ ( ( n t x ) = n /\ ( x t n ) = n ) ) ) }
57 0 56 wceq
 |-  SRing = { f e. CMnd | ( ( mulGrp ` f ) e. Mnd /\ [. ( Base ` f ) / r ]. [. ( +g ` f ) / p ]. [. ( .r ` f ) / t ]. [. ( 0g ` f ) / n ]. A. x e. r ( A. y e. r A. z e. r ( ( x t ( y p z ) ) = ( ( x t y ) p ( x t z ) ) /\ ( ( x p y ) t z ) = ( ( x t z ) p ( y t z ) ) ) /\ ( ( n t x ) = n /\ ( x t n ) = n ) ) ) }