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

Theorem pw2f1o 8065
Description: The power set of a set is equinumerous to set exponentiation with an unordered pair base of ordinal 2. Generalized from Proposition 10.44 of [TakeutiZaring] p. 96. (Contributed by Mario Carneiro, 6-Oct-2014.)
Hypotheses
Ref Expression
pw2f1o.1 (𝜑𝐴𝑉)
pw2f1o.2 (𝜑𝐵𝑊)
pw2f1o.3 (𝜑𝐶𝑊)
pw2f1o.4 (𝜑𝐵𝐶)
pw2f1o.5 𝐹 = (𝑥 ∈ 𝒫 𝐴 ↦ (𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)))
Assertion
Ref Expression
pw2f1o (𝜑𝐹:𝒫 𝐴1-1-onto→({𝐵, 𝐶} ↑𝑚 𝐴))
Distinct variable groups:   𝑥,𝑧,𝐴   𝑥,𝐵,𝑧   𝑥,𝐶,𝑧   𝜑,𝑥
Allowed substitution hints:   𝜑(𝑧)   𝐹(𝑥,𝑧)   𝑉(𝑥,𝑧)   𝑊(𝑥,𝑧)

Proof of Theorem pw2f1o
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 pw2f1o.5 . 2 𝐹 = (𝑥 ∈ 𝒫 𝐴 ↦ (𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)))
2 eqid 2622 . . . 4 (𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)) = (𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵))
3 pw2f1o.1 . . . . . 6 (𝜑𝐴𝑉)
4 pw2f1o.2 . . . . . 6 (𝜑𝐵𝑊)
5 pw2f1o.3 . . . . . 6 (𝜑𝐶𝑊)
6 pw2f1o.4 . . . . . 6 (𝜑𝐵𝐶)
73, 4, 5, 6pw2f1olem 8064 . . . . 5 (𝜑 → ((𝑥 ∈ 𝒫 𝐴 ∧ (𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)) = (𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵))) ↔ ((𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)) ∈ ({𝐵, 𝐶} ↑𝑚 𝐴) ∧ 𝑥 = ((𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)) “ {𝐶}))))
87biimpa 501 . . . 4 ((𝜑 ∧ (𝑥 ∈ 𝒫 𝐴 ∧ (𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)) = (𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)))) → ((𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)) ∈ ({𝐵, 𝐶} ↑𝑚 𝐴) ∧ 𝑥 = ((𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)) “ {𝐶})))
92, 8mpanr2 720 . . 3 ((𝜑𝑥 ∈ 𝒫 𝐴) → ((𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)) ∈ ({𝐵, 𝐶} ↑𝑚 𝐴) ∧ 𝑥 = ((𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)) “ {𝐶})))
109simpld 475 . 2 ((𝜑𝑥 ∈ 𝒫 𝐴) → (𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵)) ∈ ({𝐵, 𝐶} ↑𝑚 𝐴))
11 vex 3203 . . . . 5 𝑦 ∈ V
1211cnvex 7113 . . . 4 𝑦 ∈ V
1312imaex 7104 . . 3 (𝑦 “ {𝐶}) ∈ V
1413a1i 11 . 2 ((𝜑𝑦 ∈ ({𝐵, 𝐶} ↑𝑚 𝐴)) → (𝑦 “ {𝐶}) ∈ V)
153, 4, 5, 6pw2f1olem 8064 . 2 (𝜑 → ((𝑥 ∈ 𝒫 𝐴𝑦 = (𝑧𝐴 ↦ if(𝑧𝑥, 𝐶, 𝐵))) ↔ (𝑦 ∈ ({𝐵, 𝐶} ↑𝑚 𝐴) ∧ 𝑥 = (𝑦 “ {𝐶}))))
161, 10, 14, 15f1od 6885 1 (𝜑𝐹:𝒫 𝐴1-1-onto→({𝐵, 𝐶} ↑𝑚 𝐴))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384   = wceq 1483  wcel 1990  wne 2794  Vcvv 3200  ifcif 4086  𝒫 cpw 4158  {csn 4177  {cpr 4179  cmpt 4729  ccnv 5113  cima 5117  1-1-ontowf1o 5887  (class class class)co 6650  𝑚 cmap 7857
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-ral 2917  df-rex 2918  df-rab 2921  df-v 3202  df-sbc 3436  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-pw 4160  df-sn 4178  df-pr 4180  df-op 4184  df-uni 4437  df-br 4654  df-opab 4713  df-mpt 4730  df-id 5024  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-f1 5893  df-fo 5894  df-f1o 5895  df-fv 5896  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-map 7859
This theorem is referenced by:  pw2eng  8066  indf1o  30086
  Copyright terms: Public domain W3C validator