Metamath Proof Explorer


Theorem mnd32g

Description: Commutative/associative law for monoids, with an explicit commutativity hypothesis. (Contributed by Mario Carneiro, 21-Apr-2016)

Ref Expression
Hypotheses mndcl.b B=BaseG
mndcl.p +˙=+G
mnd4g.1 φGMnd
mnd4g.2 φXB
mnd4g.3 φYB
mnd4g.4 φZB
mnd32g.5 φY+˙Z=Z+˙Y
Assertion mnd32g φX+˙Y+˙Z=X+˙Z+˙Y

Proof

Step Hyp Ref Expression
1 mndcl.b B=BaseG
2 mndcl.p +˙=+G
3 mnd4g.1 φGMnd
4 mnd4g.2 φXB
5 mnd4g.3 φYB
6 mnd4g.4 φZB
7 mnd32g.5 φY+˙Z=Z+˙Y
8 7 oveq2d φX+˙Y+˙Z=X+˙Z+˙Y
9 1 2 mndass GMndXBYBZBX+˙Y+˙Z=X+˙Y+˙Z
10 3 4 5 6 9 syl13anc φX+˙Y+˙Z=X+˙Y+˙Z
11 1 2 mndass GMndXBZBYBX+˙Z+˙Y=X+˙Z+˙Y
12 3 4 6 5 11 syl13anc φX+˙Z+˙Y=X+˙Z+˙Y
13 8 10 12 3eqtr4d φX+˙Y+˙Z=X+˙Z+˙Y