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

Theorem mnd4g 17307
Description: Commutative/associative law for commutative monoids, with an explicit commutativity hypothesis. (Contributed by Mario Carneiro, 21-Apr-2016.)
Hypotheses
Ref Expression
mndcl.b  |-  B  =  ( Base `  G
)
mndcl.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 mndcl.b . . . 4  |-  B  =  ( Base `  G
)
2 mndcl.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 17306 . . 3  |-  ( ph  ->  ( Y  .+  ( Z  .+  W ) )  =  ( Z  .+  ( Y  .+  W ) ) )
98oveq2d 6666 . 2  |-  ( ph  ->  ( X  .+  ( Y  .+  ( Z  .+  W ) ) )  =  ( X  .+  ( Z  .+  ( Y 
.+  W ) ) ) )
10 mnd4g.2 . . 3  |-  ( ph  ->  X  e.  B )
111, 2mndcl 17301 . . . 4  |-  ( ( G  e.  Mnd  /\  Z  e.  B  /\  W  e.  B )  ->  ( Z  .+  W
)  e.  B )
123, 5, 6, 11syl3anc 1326 . . 3  |-  ( ph  ->  ( Z  .+  W
)  e.  B )
131, 2mndass 17302 . . 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 1328 . 2  |-  ( ph  ->  ( ( X  .+  Y )  .+  ( Z  .+  W ) )  =  ( X  .+  ( Y  .+  ( Z 
.+  W ) ) ) )
151, 2mndcl 17301 . . . 4  |-  ( ( G  e.  Mnd  /\  Y  e.  B  /\  W  e.  B )  ->  ( Y  .+  W
)  e.  B )
163, 4, 6, 15syl3anc 1326 . . 3  |-  ( ph  ->  ( Y  .+  W
)  e.  B )
171, 2mndass 17302 . . 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 1328 . 2  |-  ( ph  ->  ( ( X  .+  Z )  .+  ( Y  .+  W ) )  =  ( X  .+  ( Z  .+  ( Y 
.+  W ) ) ) )
199, 14, 183eqtr4d 2666 1  |-  ( ph  ->  ( ( X  .+  Y )  .+  ( Z  .+  W ) )  =  ( ( X 
.+  Z )  .+  ( Y  .+  W ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    = wceq 1483    e. wcel 1990   ` cfv 5888  (class class class)co 6650   Basecbs 15857   +g cplusg 15941   Mndcmnd 17294
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-nul 4789
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917  df-rex 2918  df-rab 2921  df-v 3202  df-sbc 3436  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-sn 4178  df-pr 4180  df-op 4184  df-uni 4437  df-br 4654  df-iota 5851  df-fv 5896  df-ov 6653  df-mgm 17242  df-sgrp 17284  df-mnd 17295
This theorem is referenced by:  lsmsubm  18068  pj1ghm  18116  cmn4  18212  gsumzaddlem  18321
  Copyright terms: Public domain W3C validator