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

Theorem pwmnd 18491
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 2830 . . . . 5 (𝑎 ∈ (Base‘𝑀) ↔ 𝑎 ∈ 𝒫 𝐴)
31eleq2i 2830 . . . . 5 (𝑏 ∈ (Base‘𝑀) ↔ 𝑏 ∈ 𝒫 𝐴)
4 pwuncl 7598 . . . . . . 7 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (𝑎𝑏) ∈ 𝒫 𝐴)
5 pwmnd.p . . . . . . . 8 (+g𝑀) = (𝑥 ∈ 𝒫 𝐴, 𝑦 ∈ 𝒫 𝐴 ↦ (𝑥𝑦))
61, 5pwmndgplus 18489 . . . . . . 7 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)𝑏) = (𝑎𝑏))
71a1i 11 . . . . . . 7 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (Base‘𝑀) = 𝒫 𝐴)
84, 6, 73eltr4d 2854 . . . . . 6 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀))
91eleq2i 2830 . . . . . . . 8 (𝑐 ∈ (Base‘𝑀) ↔ 𝑐 ∈ 𝒫 𝐴)
10 unass 4096 . . . . . . . . . 10 ((𝑎𝑏) ∪ 𝑐) = (𝑎 ∪ (𝑏𝑐))
116adantr 480 . . . . . . . . . . . 12 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)𝑏) = (𝑎𝑏))
1211oveq1d 7270 . . . . . . . . . . 11 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → ((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = ((𝑎𝑏)(+g𝑀)𝑐))
131, 5pwmndgplus 18489 . . . . . . . . . . . 12 (((𝑎𝑏) ∈ 𝒫 𝐴𝑐 ∈ 𝒫 𝐴) → ((𝑎𝑏)(+g𝑀)𝑐) = ((𝑎𝑏) ∪ 𝑐))
144, 13sylan 579 . . . . . . . . . . 11 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → ((𝑎𝑏)(+g𝑀)𝑐) = ((𝑎𝑏) ∪ 𝑐))
1512, 14eqtrd 2778 . . . . . . . . . 10 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → ((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = ((𝑎𝑏) ∪ 𝑐))
161, 5pwmndgplus 18489 . . . . . . . . . . . . 13 ((𝑏 ∈ 𝒫 𝐴𝑐 ∈ 𝒫 𝐴) → (𝑏(+g𝑀)𝑐) = (𝑏𝑐))
1716adantll 710 . . . . . . . . . . . 12 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑏(+g𝑀)𝑐) = (𝑏𝑐))
1817oveq2d 7271 . . . . . . . . . . 11 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐)) = (𝑎(+g𝑀)(𝑏𝑐)))
19 simpll 763 . . . . . . . . . . . . 13 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → 𝑎 ∈ 𝒫 𝐴)
20 pwuncl 7598 . . . . . . . . . . . . . 14 ((𝑏 ∈ 𝒫 𝐴𝑐 ∈ 𝒫 𝐴) → (𝑏𝑐) ∈ 𝒫 𝐴)
2120adantll 710 . . . . . . . . . . . . 13 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑏𝑐) ∈ 𝒫 𝐴)
2219, 21jca 511 . . . . . . . . . . . 12 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑎 ∈ 𝒫 𝐴 ∧ (𝑏𝑐) ∈ 𝒫 𝐴))
231, 5pwmndgplus 18489 . . . . . . . . . . . 12 ((𝑎 ∈ 𝒫 𝐴 ∧ (𝑏𝑐) ∈ 𝒫 𝐴) → (𝑎(+g𝑀)(𝑏𝑐)) = (𝑎 ∪ (𝑏𝑐)))
2422, 23syl 17 . . . . . . . . . . 11 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)(𝑏𝑐)) = (𝑎 ∪ (𝑏𝑐)))
2518, 24eqtrd 2778 . . . . . . . . . 10 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐)) = (𝑎 ∪ (𝑏𝑐)))
2610, 15, 253eqtr4a 2805 . . . . . . . . 9 (((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) ∧ 𝑐 ∈ 𝒫 𝐴) → ((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐)))
2726ex 412 . . . . . . . 8 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (𝑐 ∈ 𝒫 𝐴 → ((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))))
289, 27syl5bi 241 . . . . . . 7 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → (𝑐 ∈ (Base‘𝑀) → ((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))))
2928ralrimiv 3106 . . . . . 6 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐)))
308, 29jca 511 . . . . 5 ((𝑎 ∈ 𝒫 𝐴𝑏 ∈ 𝒫 𝐴) → ((𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀) ∧ ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))))
312, 3, 30syl2anb 597 . . . 4 ((𝑎 ∈ (Base‘𝑀) ∧ 𝑏 ∈ (Base‘𝑀)) → ((𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀) ∧ ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))))
3231rgen2 3126 . . 3 𝑎 ∈ (Base‘𝑀)∀𝑏 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀) ∧ ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐)))
33 0ex 5226 . . . . 5 ∅ ∈ V
34 eleq1 2826 . . . . . 6 (𝑒 = ∅ → (𝑒 ∈ (Base‘𝑀) ↔ ∅ ∈ (Base‘𝑀)))
35 oveq1 7262 . . . . . . . . 9 (𝑒 = ∅ → (𝑒(+g𝑀)𝑎) = (∅(+g𝑀)𝑎))
3635eqeq1d 2740 . . . . . . . 8 (𝑒 = ∅ → ((𝑒(+g𝑀)𝑎) = 𝑎 ↔ (∅(+g𝑀)𝑎) = 𝑎))
37 oveq2 7263 . . . . . . . . 9 (𝑒 = ∅ → (𝑎(+g𝑀)𝑒) = (𝑎(+g𝑀)∅))
3837eqeq1d 2740 . . . . . . . 8 (𝑒 = ∅ → ((𝑎(+g𝑀)𝑒) = 𝑎 ↔ (𝑎(+g𝑀)∅) = 𝑎))
3936, 38anbi12d 630 . . . . . . 7 (𝑒 = ∅ → (((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎) ↔ ((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎)))
4039ralbidv 3120 . . . . . 6 (𝑒 = ∅ → (∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎) ↔ ∀𝑎 ∈ (Base‘𝑀)((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎)))
4134, 40anbi12d 630 . . . . 5 (𝑒 = ∅ → ((𝑒 ∈ (Base‘𝑀) ∧ ∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎)) ↔ (∅ ∈ (Base‘𝑀) ∧ ∀𝑎 ∈ (Base‘𝑀)((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎))))
42 0elpw 5273 . . . . . . 7 ∅ ∈ 𝒫 𝐴
4342, 1eleqtrri 2838 . . . . . 6 ∅ ∈ (Base‘𝑀)
441, 5pwmndgplus 18489 . . . . . . . . . . 11 ((∅ ∈ 𝒫 𝐴𝑎 ∈ 𝒫 𝐴) → (∅(+g𝑀)𝑎) = (∅ ∪ 𝑎))
45 0un 4323 . . . . . . . . . . 11 (∅ ∪ 𝑎) = 𝑎
4644, 45eqtrdi 2795 . . . . . . . . . 10 ((∅ ∈ 𝒫 𝐴𝑎 ∈ 𝒫 𝐴) → (∅(+g𝑀)𝑎) = 𝑎)
471, 5pwmndgplus 18489 . . . . . . . . . . . 12 ((𝑎 ∈ 𝒫 𝐴 ∧ ∅ ∈ 𝒫 𝐴) → (𝑎(+g𝑀)∅) = (𝑎 ∪ ∅))
4847ancoms 458 . . . . . . . . . . 11 ((∅ ∈ 𝒫 𝐴𝑎 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)∅) = (𝑎 ∪ ∅))
49 un0 4321 . . . . . . . . . . 11 (𝑎 ∪ ∅) = 𝑎
5048, 49eqtrdi 2795 . . . . . . . . . 10 ((∅ ∈ 𝒫 𝐴𝑎 ∈ 𝒫 𝐴) → (𝑎(+g𝑀)∅) = 𝑎)
5146, 50jca 511 . . . . . . . . 9 ((∅ ∈ 𝒫 𝐴𝑎 ∈ 𝒫 𝐴) → ((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎))
5242, 51mpan 686 . . . . . . . 8 (𝑎 ∈ 𝒫 𝐴 → ((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎))
532, 52sylbi 216 . . . . . . 7 (𝑎 ∈ (Base‘𝑀) → ((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎))
5453rgen 3073 . . . . . 6 𝑎 ∈ (Base‘𝑀)((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎)
5543, 54pm3.2i 470 . . . . 5 (∅ ∈ (Base‘𝑀) ∧ ∀𝑎 ∈ (Base‘𝑀)((∅(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)∅) = 𝑎))
5633, 41, 55ceqsexv2d 3471 . . . 4 𝑒(𝑒 ∈ (Base‘𝑀) ∧ ∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎))
57 df-rex 3069 . . . 4 (∃𝑒 ∈ (Base‘𝑀)∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎) ↔ ∃𝑒(𝑒 ∈ (Base‘𝑀) ∧ ∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎)))
5856, 57mpbir 230 . . 3 𝑒 ∈ (Base‘𝑀)∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎)
5932, 58pm3.2i 470 . 2 (∀𝑎 ∈ (Base‘𝑀)∀𝑏 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀) ∧ ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))) ∧ ∃𝑒 ∈ (Base‘𝑀)∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎))
60 eqid 2738 . . 3 (Base‘𝑀) = (Base‘𝑀)
61 eqid 2738 . . 3 (+g𝑀) = (+g𝑀)
6260, 61ismnd 18303 . 2 (𝑀 ∈ Mnd ↔ (∀𝑎 ∈ (Base‘𝑀)∀𝑏 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏) ∈ (Base‘𝑀) ∧ ∀𝑐 ∈ (Base‘𝑀)((𝑎(+g𝑀)𝑏)(+g𝑀)𝑐) = (𝑎(+g𝑀)(𝑏(+g𝑀)𝑐))) ∧ ∃𝑒 ∈ (Base‘𝑀)∀𝑎 ∈ (Base‘𝑀)((𝑒(+g𝑀)𝑎) = 𝑎 ∧ (𝑎(+g𝑀)𝑒) = 𝑎)))
6359, 62mpbir 230 1 𝑀 ∈ Mnd
Colors of variables: wff setvar class
Syntax hints:  wa 395   = wceq 1539  wex 1783  wcel 2108  wral 3063  wrex 3064  cun 3881  c0 4253  𝒫 cpw 4530  cfv 6418  (class class class)co 7255  cmpo 7257  Basecbs 16840  +gcplusg 16888  Mndcmnd 18300
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-iota 6376  df-fun 6420  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-mgm 18241  df-sgrp 18290  df-mnd 18301
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator