MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  mnd4g Unicode version

Theorem mnd4g 14628
Description: Commutative/associative law for commutative monoids, with an explicit commutativity hypothesis. (Contributed by Mario Carneiro, 21-Apr-2016.)
Hypotheses
Ref Expression
mndlem1.b  |-  B  =  ( Base `  G
)
mndlem1.p  |-  .+  =  ( +g  `  G )
mnd4g.1  |-  ( ph  ->  G  e.  Mnd )
mnd4g.2  |-  ( ph  ->  X  e.  B )
mnd4g.3  |-  ( ph  ->  Y  e.  B )
mnd4g.4  |-  ( ph  ->  Z  e.  B )
mnd4g.5  |-  ( ph  ->  W  e.  B )
mnd4g.6  |-  ( ph  ->  ( Y  .+  Z
)  =  ( Z 
.+  Y ) )
Assertion
Ref Expression
mnd4g  |-  ( ph  ->  ( ( X  .+  Y )  .+  ( Z  .+  W ) )  =  ( ( X 
.+  Z )  .+  ( Y  .+  W ) ) )

Proof of Theorem mnd4g
StepHypRef Expression
1 mndlem1.b . . . 4  |-  B  =  ( Base `  G
)
2 mndlem1.p . . . 4  |-  .+  =  ( +g  `  G )
3 mnd4g.1 . . . 4  |-  ( ph  ->  G  e.  Mnd )
4 mnd4g.3 . . . 4  |-  ( ph  ->  Y  e.  B )
5 mnd4g.4 . . . 4  |-  ( ph  ->  Z  e.  B )
6 mnd4g.5 . . . 4  |-  ( ph  ->  W  e.  B )
7 mnd4g.6 . . . 4  |-  ( ph  ->  ( Y  .+  Z
)  =  ( Z 
.+  Y ) )
81, 2, 3, 4, 5, 6, 7mnd12g 14627 . . 3  |-  ( ph  ->  ( Y  .+  ( Z  .+  W ) )  =  ( Z  .+  ( Y  .+  W ) ) )
98oveq2d 6036 . 2  |-  ( ph  ->  ( X  .+  ( Y  .+  ( Z  .+  W ) ) )  =  ( X  .+  ( Z  .+  ( Y 
.+  W ) ) ) )
10 mnd4g.2 . . 3  |-  ( ph  ->  X  e.  B )
111, 2mndcl 14622 . . . 4  |-  ( ( G  e.  Mnd  /\  Z  e.  B  /\  W  e.  B )  ->  ( Z  .+  W
)  e.  B )
123, 5, 6, 11syl3anc 1184 . . 3  |-  ( ph  ->  ( Z  .+  W
)  e.  B )
131, 2mndass 14623 . . 3  |-  ( ( G  e.  Mnd  /\  ( X  e.  B  /\  Y  e.  B  /\  ( Z  .+  W
)  e.  B ) )  ->  ( ( X  .+  Y )  .+  ( Z  .+  W ) )  =  ( X 
.+  ( Y  .+  ( Z  .+  W ) ) ) )
143, 10, 4, 12, 13syl13anc 1186 . 2  |-  ( ph  ->  ( ( X  .+  Y )  .+  ( Z  .+  W ) )  =  ( X  .+  ( Y  .+  ( Z 
.+  W ) ) ) )
151, 2mndcl 14622 . . . 4  |-  ( ( G  e.  Mnd  /\  Y  e.  B  /\  W  e.  B )  ->  ( Y  .+  W
)  e.  B )
163, 4, 6, 15syl3anc 1184 . . 3  |-  ( ph  ->  ( Y  .+  W
)  e.  B )
171, 2mndass 14623 . . 3  |-  ( ( G  e.  Mnd  /\  ( X  e.  B  /\  Z  e.  B  /\  ( Y  .+  W
)  e.  B ) )  ->  ( ( X  .+  Z )  .+  ( Y  .+  W ) )  =  ( X 
.+  ( Z  .+  ( Y  .+  W ) ) ) )
183, 10, 5, 16, 17syl13anc 1186 . 2  |-  ( ph  ->  ( ( X  .+  Z )  .+  ( Y  .+  W ) )  =  ( X  .+  ( Z  .+  ( Y 
.+  W ) ) ) )
199, 14, 183eqtr4d 2429 1  |-  ( ph  ->  ( ( X  .+  Y )  .+  ( Z  .+  W ) )  =  ( ( X 
.+  Z )  .+  ( Y  .+  W ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    = wceq 1649    e. wcel 1717   ` cfv 5394  (class class class)co 6020   Basecbs 13396   +g cplusg 13456   Mndcmnd 14611
This theorem is referenced by:  lsmsubm  15214  pj1ghm  15262  cmn4  15358  gsumzaddlem  15453
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2368  ax-nul 4279  ax-pow 4318
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2242  df-mo 2243  df-clab 2374  df-cleq 2380  df-clel 2383  df-nfc 2512  df-ne 2552  df-ral 2654  df-rex 2655  df-rab 2658  df-v 2901  df-sbc 3105  df-dif 3266  df-un 3268  df-in 3270  df-ss 3277  df-nul 3572  df-if 3683  df-sn 3763  df-pr 3764  df-op 3766  df-uni 3958  df-br 4154  df-iota 5358  df-fv 5402  df-ov 6023  df-mnd 14617
  Copyright terms: Public domain W3C validator