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

Theorem ex-pw 26678
Description: Example for df-pw 4110. Example by David A. Wheeler. (Contributed by Mario Carneiro, 2-Jul-2016.)
Assertion
Ref Expression
ex-pw (𝐴 = {3, 5, 7} → 𝒫 𝐴 = (({∅} ∪ {{3}, {5}, {7}}) ∪ ({{3, 5}, {3, 7}, {5, 7}} ∪ {{3, 5, 7}})))

Proof of Theorem ex-pw
StepHypRef Expression
1 pweq 4111 . 2 (𝐴 = {3, 5, 7} → 𝒫 𝐴 = 𝒫 {3, 5, 7})
2 qdass 4232 . . . 4 ({∅, {3}} ∪ {{5}, {3, 5}}) = ({∅, {3}, {5}} ∪ {{3, 5}})
3 qdassr 4233 . . . 4 ({{7}, {3, 7}} ∪ {{5, 7}, {3, 5, 7}}) = ({{7}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}})
42, 3uneq12i 3727 . . 3 (({∅, {3}} ∪ {{5}, {3, 5}}) ∪ ({{7}, {3, 7}} ∪ {{5, 7}, {3, 5, 7}})) = (({∅, {3}, {5}} ∪ {{3, 5}}) ∪ ({{7}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}}))
5 pwtp 4369 . . 3 𝒫 {3, 5, 7} = (({∅, {3}} ∪ {{5}, {3, 5}}) ∪ ({{7}, {3, 7}} ∪ {{5, 7}, {3, 5, 7}}))
6 df-tp 4130 . . . . . . . 8 {{3}, {5}, {7}} = ({{3}, {5}} ∪ {{7}})
76uneq2i 3726 . . . . . . 7 ({∅} ∪ {{3}, {5}, {7}}) = ({∅} ∪ ({{3}, {5}} ∪ {{7}}))
8 unass 3732 . . . . . . 7 (({∅} ∪ {{3}, {5}}) ∪ {{7}}) = ({∅} ∪ ({{3}, {5}} ∪ {{7}}))
97, 8eqtr4i 2635 . . . . . 6 ({∅} ∪ {{3}, {5}, {7}}) = (({∅} ∪ {{3}, {5}}) ∪ {{7}})
10 tpass 4231 . . . . . . 7 {∅, {3}, {5}} = ({∅} ∪ {{3}, {5}})
1110uneq1i 3725 . . . . . 6 ({∅, {3}, {5}} ∪ {{7}}) = (({∅} ∪ {{3}, {5}}) ∪ {{7}})
129, 11eqtr4i 2635 . . . . 5 ({∅} ∪ {{3}, {5}, {7}}) = ({∅, {3}, {5}} ∪ {{7}})
13 unass 3732 . . . . . 6 (({{3, 5}} ∪ {{3, 7}, {5, 7}}) ∪ {{3, 5, 7}}) = ({{3, 5}} ∪ ({{3, 7}, {5, 7}} ∪ {{3, 5, 7}}))
14 tpass 4231 . . . . . . 7 {{3, 5}, {3, 7}, {5, 7}} = ({{3, 5}} ∪ {{3, 7}, {5, 7}})
1514uneq1i 3725 . . . . . 6 ({{3, 5}, {3, 7}, {5, 7}} ∪ {{3, 5, 7}}) = (({{3, 5}} ∪ {{3, 7}, {5, 7}}) ∪ {{3, 5, 7}})
16 df-tp 4130 . . . . . . 7 {{3, 7}, {5, 7}, {3, 5, 7}} = ({{3, 7}, {5, 7}} ∪ {{3, 5, 7}})
1716uneq2i 3726 . . . . . 6 ({{3, 5}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}}) = ({{3, 5}} ∪ ({{3, 7}, {5, 7}} ∪ {{3, 5, 7}}))
1813, 15, 173eqtr4i 2642 . . . . 5 ({{3, 5}, {3, 7}, {5, 7}} ∪ {{3, 5, 7}}) = ({{3, 5}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}})
1912, 18uneq12i 3727 . . . 4 (({∅} ∪ {{3}, {5}, {7}}) ∪ ({{3, 5}, {3, 7}, {5, 7}} ∪ {{3, 5, 7}})) = (({∅, {3}, {5}} ∪ {{7}}) ∪ ({{3, 5}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}}))
20 un4 3735 . . . 4 (({∅, {3}, {5}} ∪ {{3, 5}}) ∪ ({{7}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}})) = (({∅, {3}, {5}} ∪ {{7}}) ∪ ({{3, 5}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}}))
2119, 20eqtr4i 2635 . . 3 (({∅} ∪ {{3}, {5}, {7}}) ∪ ({{3, 5}, {3, 7}, {5, 7}} ∪ {{3, 5, 7}})) = (({∅, {3}, {5}} ∪ {{3, 5}}) ∪ ({{7}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}}))
224, 5, 213eqtr4i 2642 . 2 𝒫 {3, 5, 7} = (({∅} ∪ {{3}, {5}, {7}}) ∪ ({{3, 5}, {3, 7}, {5, 7}} ∪ {{3, 5, 7}}))
231, 22syl6eq 2660 1 (𝐴 = {3, 5, 7} → 𝒫 𝐴 = (({∅} ∪ {{3}, {5}, {7}}) ∪ ({{3, 5}, {3, 7}, {5, 7}} ∪ {{3, 5, 7}})))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1475  cun 3538  c0 3874  𝒫 cpw 4108  {csn 4125  {cpr 4127  {ctp 4129  3c3 10948  5c5 10950  7c7 10952
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3or 1032  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-v 3175  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-pw 4110  df-sn 4126  df-pr 4128  df-tp 4130
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator