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

Theorem mapsnend 8582
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 7185 . 2 (𝜑 → (𝐴m {𝐵}) ∈ V)
2 mapsnend.a . . 3 (𝜑𝐴𝑉)
32elexd 3515 . 2 (𝜑𝐴 ∈ V)
4 fvexd 6680 . . 3 (𝑧 ∈ (𝐴m {𝐵}) → (𝑧𝐵) ∈ V)
54a1i 11 . 2 (𝜑 → (𝑧 ∈ (𝐴m {𝐵}) → (𝑧𝐵) ∈ V))
6 snex 5324 . . 3 {⟨𝐵, 𝑤⟩} ∈ V
762a1i 12 . 2 (𝜑 → (𝑤𝐴 → {⟨𝐵, 𝑤⟩} ∈ V))
8 mapsnend.b . . . . . . 7 (𝜑𝐵𝑊)
92, 8mapsnd 8444 . . . . . 6 (𝜑 → (𝐴m {𝐵}) = {𝑧 ∣ ∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩}})
109abeq2d 2947 . . . . 5 (𝜑 → (𝑧 ∈ (𝐴m {𝐵}) ↔ ∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩}))
1110anbi1d 631 . . . 4 (𝜑 → ((𝑧 ∈ (𝐴m {𝐵}) ∧ 𝑤 = (𝑧𝐵)) ↔ (∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵))))
12 r19.41v 3347 . . . . . 6 (∃𝑦𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ (∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)))
1312bicomi 226 . . . . 5 ((∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ ∃𝑦𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)))
1413a1i 11 . . . 4 (𝜑 → ((∃𝑦𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ ∃𝑦𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵))))
15 df-rex 3144 . . . . 5 (∃𝑦𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ ∃𝑦(𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵))))
1615a1i 11 . . . 4 (𝜑 → (∃𝑦𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)) ↔ ∃𝑦(𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)))))
1711, 14, 163bitrd 307 . . 3 (𝜑 → ((𝑧 ∈ (𝐴m {𝐵}) ∧ 𝑤 = (𝑧𝐵)) ↔ ∃𝑦(𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵)))))
18 fveq1 6664 . . . . . . . . . 10 (𝑧 = {⟨𝐵, 𝑦⟩} → (𝑧𝐵) = ({⟨𝐵, 𝑦⟩}‘𝐵))
19 vex 3498 . . . . . . . . . . 11 𝑦 ∈ V
20 fvsng 6937 . . . . . . . . . . 11 ((𝐵𝑊𝑦 ∈ V) → ({⟨𝐵, 𝑦⟩}‘𝐵) = 𝑦)
218, 19, 20sylancl 588 . . . . . . . . . 10 (𝜑 → ({⟨𝐵, 𝑦⟩}‘𝐵) = 𝑦)
2218, 21sylan9eqr 2878 . . . . . . . . 9 ((𝜑𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑧𝐵) = 𝑦)
2322eqeq2d 2832 . . . . . . . 8 ((𝜑𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑤 = (𝑧𝐵) ↔ 𝑤 = 𝑦))
24 equcom 2021 . . . . . . . 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 1918 . . 3 (𝜑 → (∃𝑦(𝑦𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧𝐵))) ↔ ∃𝑦(𝑦 = 𝑤 ∧ (𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩}))))
34 eleq1w 2895 . . . . . 6 (𝑦 = 𝑤 → (𝑦𝐴𝑤𝐴))
35 opeq2 4798 . . . . . . . 8 (𝑦 = 𝑤 → ⟨𝐵, 𝑦⟩ = ⟨𝐵, 𝑤⟩)
3635sneqd 4573 . . . . . . 7 (𝑦 = 𝑤 → {⟨𝐵, 𝑦⟩} = {⟨𝐵, 𝑤⟩})
3736eqeq2d 2832 . . . . . 6 (𝑦 = 𝑤 → (𝑧 = {⟨𝐵, 𝑦⟩} ↔ 𝑧 = {⟨𝐵, 𝑤⟩}))
3834, 37anbi12d 632 . . . . 5 (𝑦 = 𝑤 → ((𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩}) ↔ (𝑤𝐴𝑧 = {⟨𝐵, 𝑤⟩})))
3938equsexvw 2007 . . . 4 (∃𝑦(𝑦 = 𝑤 ∧ (𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩})) ↔ (𝑤𝐴𝑧 = {⟨𝐵, 𝑤⟩}))
4039a1i 11 . . 3 (𝜑 → (∃𝑦(𝑦 = 𝑤 ∧ (𝑦𝐴𝑧 = {⟨𝐵, 𝑦⟩})) ↔ (𝑤𝐴𝑧 = {⟨𝐵, 𝑤⟩})))
4117, 33, 403bitrd 307 . 2 (𝜑 → ((𝑧 ∈ (𝐴m {𝐵}) ∧ 𝑤 = (𝑧𝐵)) ↔ (𝑤𝐴𝑧 = {⟨𝐵, 𝑤⟩})))
421, 3, 5, 7, 41en2d 8539 1 (𝜑 → (𝐴m {𝐵}) ≈ 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1533  wex 1776  wcel 2110  wrex 3139  Vcvv 3495  {csn 4561  cop 4567   class class class wbr 5059  cfv 6350  (class class class)co 7150  m cmap 8400  cen 8500
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2156  ax-12 2172  ax-ext 2793  ax-sep 5196  ax-nul 5203  ax-pow 5259  ax-pr 5322  ax-un 7455
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3497  df-sbc 3773  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4833  df-br 5060  df-opab 5122  df-mpt 5140  df-id 5455  df-xp 5556  df-rel 5557  df-cnv 5558  df-co 5559  df-dm 5560  df-rn 5561  df-res 5562  df-ima 5563  df-iota 6309  df-fun 6352  df-fn 6353  df-f 6354  df-f1 6355  df-fo 6356  df-f1o 6357  df-fv 6358  df-ov 7153  df-oprab 7154  df-mpo 7155  df-map 8402  df-en 8504
This theorem is referenced by:  mapsnen  8583  map2xp  8681  mapdom3  8683  ackbij1lem5  9640  pwxpndom2  10081  hashmap  13790  mpct  41456
  Copyright terms: Public domain W3C validator