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 28208
Description: Example for df-pw 4541. 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 4555 . 2 (𝐴 = {3, 5, 7} → 𝒫 𝐴 = 𝒫 {3, 5, 7})
2 qdass 4689 . . . 4 ({∅, {3}} ∪ {{5}, {3, 5}}) = ({∅, {3}, {5}} ∪ {{3, 5}})
3 qdassr 4690 . . . 4 ({{7}, {3, 7}} ∪ {{5, 7}, {3, 5, 7}}) = ({{7}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}})
42, 3uneq12i 4137 . . 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 4833 . . 3 𝒫 {3, 5, 7} = (({∅, {3}} ∪ {{5}, {3, 5}}) ∪ ({{7}, {3, 7}} ∪ {{5, 7}, {3, 5, 7}}))
6 df-tp 4572 . . . . . . . 8 {{3}, {5}, {7}} = ({{3}, {5}} ∪ {{7}})
76uneq2i 4136 . . . . . . 7 ({∅} ∪ {{3}, {5}, {7}}) = ({∅} ∪ ({{3}, {5}} ∪ {{7}}))
8 unass 4142 . . . . . . 7 (({∅} ∪ {{3}, {5}}) ∪ {{7}}) = ({∅} ∪ ({{3}, {5}} ∪ {{7}}))
97, 8eqtr4i 2847 . . . . . 6 ({∅} ∪ {{3}, {5}, {7}}) = (({∅} ∪ {{3}, {5}}) ∪ {{7}})
10 tpass 4688 . . . . . . 7 {∅, {3}, {5}} = ({∅} ∪ {{3}, {5}})
1110uneq1i 4135 . . . . . 6 ({∅, {3}, {5}} ∪ {{7}}) = (({∅} ∪ {{3}, {5}}) ∪ {{7}})
129, 11eqtr4i 2847 . . . . 5 ({∅} ∪ {{3}, {5}, {7}}) = ({∅, {3}, {5}} ∪ {{7}})
13 unass 4142 . . . . . 6 (({{3, 5}} ∪ {{3, 7}, {5, 7}}) ∪ {{3, 5, 7}}) = ({{3, 5}} ∪ ({{3, 7}, {5, 7}} ∪ {{3, 5, 7}}))
14 tpass 4688 . . . . . . 7 {{3, 5}, {3, 7}, {5, 7}} = ({{3, 5}} ∪ {{3, 7}, {5, 7}})
1514uneq1i 4135 . . . . . 6 ({{3, 5}, {3, 7}, {5, 7}} ∪ {{3, 5, 7}}) = (({{3, 5}} ∪ {{3, 7}, {5, 7}}) ∪ {{3, 5, 7}})
16 df-tp 4572 . . . . . . 7 {{3, 7}, {5, 7}, {3, 5, 7}} = ({{3, 7}, {5, 7}} ∪ {{3, 5, 7}})
1716uneq2i 4136 . . . . . 6 ({{3, 5}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}}) = ({{3, 5}} ∪ ({{3, 7}, {5, 7}} ∪ {{3, 5, 7}}))
1813, 15, 173eqtr4i 2854 . . . . 5 ({{3, 5}, {3, 7}, {5, 7}} ∪ {{3, 5, 7}}) = ({{3, 5}} ∪ {{3, 7}, {5, 7}, {3, 5, 7}})
1912, 18uneq12i 4137 . . . 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 4145 . . . 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 2847 . . 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 2854 . 2 𝒫 {3, 5, 7} = (({∅} ∪ {{3}, {5}, {7}}) ∪ ({{3, 5}, {3, 7}, {5, 7}} ∪ {{3, 5, 7}}))
231, 22syl6eq 2872 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 1537  cun 3934  c0 4291  𝒫 cpw 4539  {csn 4567  {cpr 4569  {ctp 4571  3c3 11694  5c5 11696  7c7 11698
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
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-v 3496  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-pw 4541  df-sn 4568  df-pr 4570  df-tp 4572
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator