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

Theorem mapsnend 8590
Description: Set exponentiation to a singleton exponent is equinumerous to its base. Exercise 4.43 of [Mendelson] p. 255. (Contributed by NM, 17-Dec-2003.) (Revised by Mario Carneiro, 15-Nov-2014.) (Revised by Glauco Siliprandi, 24-Dec-2020.)
Hypotheses
Ref Expression
mapsnend.a (𝜑𝐴𝑉)
mapsnend.b (𝜑𝐵𝑊)
Assertion
Ref Expression
mapsnend (𝜑 → (𝐴m {𝐵}) ≈ 𝐴)

Proof of Theorem mapsnend
Dummy variables 𝑤 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ovexd 7193 . 2 (𝜑 → (𝐴m {𝐵}) ∈ V)
2 mapsnend.a . . 3 (𝜑𝐴𝑉)
32elexd 3516 . 2 (𝜑𝐴 ∈ V)
4 fvexd 6687 . . 3 (𝑧 ∈ (𝐴m {𝐵}) → (𝑧𝐵) ∈ V)
54a1i 11 . 2 (𝜑 → (𝑧 ∈ (𝐴m {𝐵}) → (𝑧𝐵) ∈ V))
6 snex 5334 . . 3 {⟨𝐵, 𝑤⟩} ∈ V
762a1i 12 . 2 (𝜑 → (𝑤𝐴 → {⟨𝐵, 𝑤⟩} ∈ V))
8 mapsnend.b . . . . . . 7 (𝜑𝐵𝑊)
92, 8mapsnd 8452 . . . . . 6 (𝜑 → (𝐴m {𝐵}) = {𝑧 ∣ ∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩}})
109abeq2d 2949 . . . . 5 (𝜑 → (𝑧 ∈ (𝐴m {𝐵}) ↔ ∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩}))
1110anbi1d 631 . . . 4 (𝜑 → ((𝑧 ∈ (𝐴m {𝐵}) ∧ 𝑤 = (𝑧𝐵)) ↔ (∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵))))
12 r19.41v 3349 . . . . . 6 (∃𝑦𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ (∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)))
1312bicomi 226 . . . . 5 ((∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ ∃𝑦𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)))
1413a1i 11 . . . 4 (𝜑 → ((∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ ∃𝑦𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵))))
15 df-rex 3146 . . . . 5 (∃𝑦𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ ∃𝑦(𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵))))
1615a1i 11 . . . 4 (𝜑 → (∃𝑦𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ ∃𝑦(𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)))))
1711, 14, 163bitrd 307 . . 3 (𝜑 → ((𝑧 ∈ (𝐴m {𝐵}) ∧ 𝑤 = (𝑧𝐵)) ↔ ∃𝑦(𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)))))
18 fveq1 6671 . . . . . . . . . 10 (𝑧 = {⟨𝐵, 𝑦⟩} → (𝑧𝐵) = ({⟨𝐵, 𝑦⟩}‘𝐵))
19 vex 3499 . . . . . . . . . . 11 𝑦 ∈ V
20 fvsng 6944 . . . . . . . . . . 11 ((𝐵𝑊𝑦 ∈ V) → ({⟨𝐵, 𝑦⟩}‘𝐵) = 𝑦)
218, 19, 20sylancl 588 . . . . . . . . . 10 (𝜑 → ({⟨𝐵, 𝑦⟩}‘𝐵) = 𝑦)
2218, 21sylan9eqr 2880 . . . . . . . . 9 ((𝜑𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑧𝐵) = 𝑦)
2322eqeq2d 2834 . . . . . . . 8 ((𝜑𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑤 = (𝑧𝐵) ↔ 𝑤 = 𝑦))
24 equcom 2025 . . . . . . . 8 (𝑤 = 𝑦𝑦 = 𝑤)
2523, 24syl6bb 289 . . . . . . 7 ((𝜑𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑤 = (𝑧𝐵) ↔ 𝑦 = 𝑤))
2625pm5.32da 581 . . . . . 6 (𝜑 → ((𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑦 = 𝑤)))
2726anbi2d 630 . . . . 5 (𝜑 → ((𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵))) ↔ (𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑦 = 𝑤))))
28 anass 471 . . . . . 6 (((𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩}) ∧ 𝑦 = 𝑤) ↔ (𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑦 = 𝑤)))
2928a1i 11 . . . . 5 (𝜑 → (((𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩}) ∧ 𝑦 = 𝑤) ↔ (𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑦 = 𝑤))))
30 ancom 463 . . . . . 6 (((𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩}) ∧ 𝑦 = 𝑤) ↔ (𝑦 = 𝑤 ∧ (𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩})))
3130a1i 11 . . . . 5 (𝜑 → (((𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩}) ∧ 𝑦 = 𝑤) ↔ (𝑦 = 𝑤 ∧ (𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩}))))
3227, 29, 313bitr2d 309 . . . 4 (𝜑 → ((𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵))) ↔ (𝑦 = 𝑤 ∧ (𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩}))))
3332exbidv 1922 . . 3 (𝜑 → (∃𝑦(𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵))) ↔ ∃𝑦(𝑦 = 𝑤 ∧ (𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩}))))
34 eleq1w 2897 . . . . . 6 (𝑦 = 𝑤 → (𝑦𝐴𝑤𝐴))
35 opeq2 4806 . . . . . . . 8 (𝑦 = 𝑤 → ⟨𝐵, 𝑦⟩ = ⟨𝐵, 𝑤⟩)
3635sneqd 4581 . . . . . . 7 (𝑦 = 𝑤 → {⟨𝐵, 𝑦⟩} = {⟨𝐵, 𝑤⟩})
3736eqeq2d 2834 . . . . . 6 (𝑦 = 𝑤 → (𝑧 = {⟨𝐵, 𝑦⟩} ↔ 𝑧 = {⟨𝐵, 𝑤⟩}))
3834, 37anbi12d 632 . . . . 5 (𝑦 = 𝑤 → ((𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩}) ↔ (𝑤𝐴𝑧 = {⟨𝐵, 𝑤⟩})))
3938equsexvw 2011 . . . 4 (∃𝑦(𝑦 = 𝑤 ∧ (𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩})) ↔ (𝑤𝐴𝑧 = {⟨𝐵, 𝑤⟩}))
4039a1i 11 . . 3 (𝜑 → (∃𝑦(𝑦 = 𝑤 ∧ (𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩})) ↔ (𝑤𝐴𝑧 = {⟨𝐵, 𝑤⟩})))
4117, 33, 403bitrd 307 . 2 (𝜑 → ((𝑧 ∈ (𝐴m {𝐵}) ∧ 𝑤 = (𝑧𝐵)) ↔ (𝑤𝐴𝑧 = {⟨𝐵, 𝑤⟩})))
421, 3, 5, 7, 41en2d 8547 1 (𝜑 → (𝐴m {𝐵}) ≈ 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1537  wex 1780  wcel 2114  wrex 3141  Vcvv 3496  {csn 4569  cop 4575   class class class wbr 5068  cfv 6357  (class class class)co 7158  m cmap 8408  cen 8508
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 2795  ax-sep 5205  ax-nul 5212  ax-pow 5268  ax-pr 5332  ax-un 7463
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 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-ral 3145  df-rex 3146  df-reu 3147  df-rab 3149  df-v 3498  df-sbc 3775  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-nul 4294  df-if 4470  df-pw 4543  df-sn 4570  df-pr 4572  df-op 4576  df-uni 4841  df-br 5069  df-opab 5131  df-mpt 5149  df-id 5462  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-rn 5568  df-res 5569  df-ima 5570  df-iota 6316  df-fun 6359  df-fn 6360  df-f 6361  df-f1 6362  df-fo 6363  df-f1o 6364  df-fv 6365  df-ov 7161  df-oprab 7162  df-mpo 7163  df-map 8410  df-en 8512
This theorem is referenced by:  mapsnen  8591  map2xp  8689  mapdom3  8691  ackbij1lem5  9648  pwxpndom2  10089  hashmap  13799  mpct  41471
  Copyright terms: Public domain W3C validator