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

Theorem pwmnd 18102
Description: The power set of a class 𝐴 is a monoid under union. (Contributed by AV, 27-Feb-2024.)
Hypotheses
Ref Expression
pwmnd.b (Base‘𝑀) = 𝒫 𝐴
pwmnd.p (+g𝑀) = (𝑥 ∈ 𝒫 𝐴, 𝑦 ∈ 𝒫 𝐴 ↦ (𝑥𝑦))
Assertion
Ref Expression
pwmnd 𝑀 ∈ Mnd
Distinct variable group:   𝑥,𝐴,𝑦
Allowed substitution hints:   𝑀(𝑥,𝑦)

Proof of Theorem pwmnd
Dummy variables 𝑎 𝑏 𝑐 𝑒 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 pwmnd.b . . . . . 6 (Base‘𝑀) = 𝒫 𝐴
21eleq2i 2904 . . . . 5 (𝑎 ∈ (Base‘𝑀) ↔ 𝑎 ∈ 𝒫 𝐴)
31eleq2i 2904 . . . . 5 (𝑏 ∈ (Base‘𝑀) ↔ 𝑏 ∈ 𝒫 𝐴)
4 pwuncl 7492 . . . . . . 7 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (𝑎𝑏) ∈ 𝒫 𝐴)
5 pwmnd.p . . . . . . . 8 (+g𝑀) = (𝑥 ∈ 𝒫 𝐴, 𝑦 ∈ 𝒫 𝐴 ↦ (𝑥𝑦))
61, 5pwmndgplus 18100 . . . . . . 7 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)𝑏) = (𝑎𝑏))
71a1i 11 . . . . . . 7 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (Base‘𝑀) = 𝒫 𝐴)
84, 6, 73eltr4d 2928 . . . . . 6 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀))
91eleq2i 2904 . . . . . . . 8 (𝑐 ∈ (Base‘𝑀) ↔ 𝑐 ∈ 𝒫 𝐴)
10 unass 4142 . . . . . . . . . 10 ((𝑎𝑏) ∪ 𝑐) = (𝑎 ∪ (𝑏𝑐))
116adantr 483 . . . . . . . . . . . 12 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)𝑏) = (𝑎𝑏))
1211oveq1d 7171 . . . . . . . . . . 11 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → ((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = ((𝑎𝑏)(+g𝑀)𝑐))
131, 5pwmndgplus 18100 . . . . . . . . . . . 12 (((𝑎𝑏) ∈ 𝒫 𝐴𝑐 ∈ 𝒫 𝐴) → ((𝑎𝑏)(+g𝑀)𝑐) = ((𝑎𝑏) ∪ 𝑐))
144, 13sylan 582 . . . . . . . . . . 11 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → ((𝑎𝑏)(+g𝑀)𝑐) = ((𝑎𝑏) ∪ 𝑐))
1512, 14eqtrd 2856 . . . . . . . . . 10 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → ((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = ((𝑎𝑏) ∪ 𝑐))
161, 5pwmndgplus 18100 . . . . . . . . . . . . 13 ((𝑏 ∈ 𝒫 𝐴𝑐 ∈ 𝒫 𝐴) → (𝑏(+g𝑀)𝑐) = (𝑏𝑐))
1716adantll 712 . . . . . . . . . . . 12 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑏(+g𝑀)𝑐) = (𝑏𝑐))
1817oveq2d 7172 . . . . . . . . . . 11 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐)) = (𝑎(+g𝑀)(𝑏𝑐)))
19 simpll 765 . . . . . . . . . . . . 13 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → 𝑎 ∈ 𝒫 𝐴)
20 pwuncl 7492 . . . . . . . . . . . . . 14 ((𝑏 ∈ 𝒫 𝐴𝑐 ∈ 𝒫 𝐴) → (𝑏𝑐) ∈ 𝒫 𝐴)
2120adantll 712 . . . . . . . . . . . . 13 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑏𝑐) ∈ 𝒫 𝐴)
2219, 21jca 514 . . . . . . . . . . . 12 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑎 ∈ 𝒫 𝐴 ∧ (𝑏𝑐) ∈ 𝒫 𝐴))
231, 5pwmndgplus 18100 . . . . . . . . . . . 12 ((𝑎 ∈ 𝒫 𝐴 ∧ (𝑏𝑐) ∈ 𝒫 𝐴) → (𝑎(+g𝑀)(𝑏𝑐)) = (𝑎 ∪ (𝑏𝑐)))
2422, 23syl 17 . . . . . . . . . . 11 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)(𝑏𝑐)) = (𝑎 ∪ (𝑏𝑐)))
2518, 24eqtrd 2856 . . . . . . . . . 10 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐)) = (𝑎 ∪ (𝑏𝑐)))
2610, 15, 253eqtr4a 2882 . . . . . . . . 9 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → ((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐)))
2726ex 415 . . . . . . . 8 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (𝑐 ∈ 𝒫 𝐴 → ((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))))
289, 27syl5bi 244 . . . . . . 7 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (𝑐 ∈ (Base‘𝑀) → ((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))))
2928ralrimiv 3181 . . . . . 6 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐)))
308, 29jca 514 . . . . 5 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → ((𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀) ∧ ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))))
312, 3, 30syl2anb 599 . . . 4 ((𝑎 ∈ (Base‘𝑀) ∧ 𝑏 ∈ (Base‘𝑀)) → ((𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀) ∧ ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))))
3231rgen2 3203 . . 3 𝑎 ∈ (Base‘𝑀)∀𝑏 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀) ∧ ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐)))
33 0ex 5211 . . . . 5 ∅ ∈ V
34 eleq1 2900 . . . . . 6 (𝑒 = ∅ → (𝑒 ∈ (Base‘𝑀) ↔ ∅ ∈ (Base‘𝑀)))
35 oveq1 7163 . . . . . . . . 9 (𝑒 = ∅ → (𝑒(+g𝑀)𝑎) = (∅(+g𝑀)𝑎))
3635eqeq1d 2823 . . . . . . . 8 (𝑒 = ∅ → ((𝑒(+g𝑀)𝑎) = 𝑎 ↔ (∅(+g𝑀)𝑎) = 𝑎))
37 oveq2 7164 . . . . . . . . 9 (𝑒 = ∅ → (𝑎(+g𝑀)𝑒) = (𝑎(+g𝑀)∅))
3837eqeq1d 2823 . . . . . . . 8 (𝑒 = ∅ → ((𝑎(+g𝑀)𝑒) = 𝑎 ↔ (𝑎(+g𝑀)∅) = 𝑎))
3936, 38anbi12d 632 . . . . . . 7 (𝑒 = ∅ → (((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎) ↔ ((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎)))
4039ralbidv 3197 . . . . . 6 (𝑒 = ∅ → (∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎) ↔ ∀𝑎 ∈ (Base‘𝑀)((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎)))
4134, 40anbi12d 632 . . . . 5 (𝑒 = ∅ → ((𝑒 ∈ (Base‘𝑀) ∧ ∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎)) ↔ (∅ ∈ (Base‘𝑀) ∧ ∀𝑎 ∈ (Base‘𝑀)((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎))))
42 0elpw 5256 . . . . . . 7 ∅ ∈ 𝒫 𝐴
4342, 1eleqtrri 2912 . . . . . 6 ∅ ∈ (Base‘𝑀)
441, 5pwmndgplus 18100 . . . . . . . . . . 11 ((∅ ∈ 𝒫 𝐴𝑎 ∈ 𝒫 𝐴) → (∅(+g𝑀)𝑎) = (∅ ∪ 𝑎))
45 0un 4346 . . . . . . . . . . 11 (∅ ∪ 𝑎) = 𝑎
4644, 45syl6eq 2872 . . . . . . . . . 10 ((∅ ∈ 𝒫 𝐴𝑎 ∈ 𝒫 𝐴) → (∅(+g𝑀)𝑎) = 𝑎)
471, 5pwmndgplus 18100 . . . . . . . . . . . 12 ((𝑎 ∈ 𝒫 𝐴 ∧ ∅ ∈ 𝒫 𝐴) → (𝑎(+g𝑀)∅) = (𝑎 ∪ ∅))
4847ancoms 461 . . . . . . . . . . 11 ((∅ ∈ 𝒫 𝐴𝑎 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)∅) = (𝑎 ∪ ∅))
49 un0 4344 . . . . . . . . . . 11 (𝑎 ∪ ∅) = 𝑎
5048, 49syl6eq 2872 . . . . . . . . . 10 ((∅ ∈ 𝒫 𝐴𝑎 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)∅) = 𝑎)
5146, 50jca 514 . . . . . . . . 9 ((∅ ∈ 𝒫 𝐴𝑎 ∈ 𝒫 𝐴) → ((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎))
5242, 51mpan 688 . . . . . . . 8 (𝑎 ∈ 𝒫 𝐴 → ((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎))
532, 52sylbi 219 . . . . . . 7 (𝑎 ∈ (Base‘𝑀) → ((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎))
5453rgen 3148 . . . . . 6 𝑎 ∈ (Base‘𝑀)((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎)
5543, 54pm3.2i 473 . . . . 5 (∅ ∈ (Base‘𝑀) ∧ ∀𝑎 ∈ (Base‘𝑀)((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎))
5633, 41, 55ceqsexv2d 3542 . . . 4 𝑒(𝑒 ∈ (Base‘𝑀) ∧ ∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎))
57 df-rex 3144 . . . 4 (∃𝑒 ∈ (Base‘𝑀)∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎) ↔ ∃𝑒(𝑒 ∈ (Base‘𝑀) ∧ ∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎)))
5856, 57mpbir 233 . . 3 𝑒 ∈ (Base‘𝑀)∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎)
5932, 58pm3.2i 473 . 2 (∀𝑎 ∈ (Base‘𝑀)∀𝑏 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀) ∧ ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))) ∧ ∃𝑒 ∈ (Base‘𝑀)∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎))
60 eqid 2821 . . 3 (Base‘𝑀) = (Base‘𝑀)
61 eqid 2821 . . 3 (+g𝑀) = (+g𝑀)
6260, 61ismnd 17914 . 2 (𝑀 ∈ Mnd ↔ (∀𝑎 ∈ (Base‘𝑀)∀𝑏 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀) ∧ ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))) ∧ ∃𝑒 ∈ (Base‘𝑀)∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎)))
6359, 62mpbir 233 1 𝑀 ∈ Mnd
Colors of variables: wff setvar class
Syntax hints:  wa 398   = wceq 1537  wex 1780  wcel 2114  wral 3138  wrex 3139  cun 3934  c0 4291  𝒫 cpw 4539  cfv 6355  (class class class)co 7156  cmpo 7158  Basecbs 16483  +gcplusg 16565  Mndcmnd 17911
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3773  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4839  df-br 5067  df-opab 5129  df-id 5460  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-iota 6314  df-fun 6357  df-fv 6363  df-ov 7159  df-oprab 7160  df-mpo 7161  df-mgm 17852  df-sgrp 17901  df-mnd 17912
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator