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

Theorem mapsnend 9078
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 7465 . 2 (𝜑 → (𝐴 ↑m {𝐵}) ∈ V)
2 mapsnend.a . 2 (𝜑 → 𝐴 ∈ 𝑉)
3 fvexd 6911 . . 3 (𝑧 ∈ (𝐴 ↑m {𝐵}) → (𝑧‘𝐵) ∈ V)
43a1i 11 . 2 (𝜑 → (𝑧 ∈ (𝐴 ↑m {𝐵}) → (𝑧‘𝐵) ∈ V))
5 snex 5401 . . 3 {⟨𝐵, 𝑤⟩} ∈ V
652a1i 12 . 2 (𝜑 → (𝑤 ∈ 𝐴 → {⟨𝐵, 𝑤⟩} ∈ V))
7 mapsnend.b . . . . . . 7 (𝜑 → 𝐵 ∈ 𝑊)
82, 7mapsnd 8928 . . . . . 6 (𝜑 → (𝐴 ↑m {𝐵}) = {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩}})
98eqabrd 2905 . . . . 5 (𝜑 → (𝑧 ∈ (𝐴 ↑m {𝐵}) ↔ ∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩}))
109anbi1d 643 . . . 4 (𝜑 → ((𝑧 ∈ (𝐴 ↑m {𝐵}) ∧ 𝑤 = (𝑧‘𝐵)) ↔ (∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))))
11 r19.41v 3196 . . . . . 6 (∃𝑦 ∈ 𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ (∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)))
1211bicomi 227 . . . . 5 ((∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ ∃𝑦 ∈ 𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)))
1312a1i 11 . . . 4 (𝜑 → ((∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ ∃𝑦 ∈ 𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))))
14 df-rex 3091 . . . . 5 (∃𝑦 ∈ 𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ ∃𝑦(𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))))
1514a1i 11 . . . 4 (𝜑 → (∃𝑦 ∈ 𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ ∃𝑦(𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)))))
1610, 13, 153bitrd 308 . . 3 (𝜑 → ((𝑧 ∈ (𝐴 ↑m {𝐵}) ∧ 𝑤 = (𝑧‘𝐵)) ↔ ∃𝑦(𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)))))
17 fveq1 6895 . . . . . . . . . 10 (𝑧 = {⟨𝐵, 𝑦⟩} → (𝑧‘𝐵) = ({⟨𝐵, 𝑦⟩}‘𝐵))
18 vex 3458 . . . . . . . . . . 11 𝑦 ∈ V
19 fvsng 7195 . . . . . . . . . . 11 ((𝐵 ∈ 𝑊 ∧ 𝑦 ∈ V) → ({⟨𝐵, 𝑦⟩}‘𝐵) = 𝑦)
207, 18, 19sylancl 598 . . . . . . . . . 10 (𝜑 → ({⟨𝐵, 𝑦⟩}‘𝐵) = 𝑦)
2117, 20sylan9eqr 2820 . . . . . . . . 9 ((𝜑 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑧‘𝐵) = 𝑦)
2221eqeq2d 2774 . . . . . . . 8 ((𝜑 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑤 = (𝑧‘𝐵) ↔ 𝑤 = 𝑦))
23 equcom 2052 . . . . . . . 8 (𝑤 = 𝑦 ↔ 𝑦 = 𝑤)
2422, 23bitrdi 290 . . . . . . 7 ((𝜑 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑤 = (𝑧‘𝐵) ↔ 𝑦 = 𝑤))
2524pm5.32da 590 . . . . . 6 (𝜑 → ((𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑦 = 𝑤)))
2625anbi2d 642 . . . . 5 (𝜑 → ((𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))) ↔ (𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑦 = 𝑤))))
27 anass 474 . . . . . 6 (((𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) ∧ 𝑦 = 𝑤) ↔ (𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑦 = 𝑤)))
2827a1i 11 . . . . 5 (𝜑 → (((𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) ∧ 𝑦 = 𝑤) ↔ (𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑦 = 𝑤))))
29 ancom 466 . . . . . 6 (((𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) ∧ 𝑦 = 𝑤) ↔ (𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩})))
3029a1i 11 . . . . 5 (𝜑 → (((𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) ∧ 𝑦 = 𝑤) ↔ (𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}))))
3126, 28, 303bitr2d 310 . . . 4 (𝜑 → ((𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))) ↔ (𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}))))
3231exbidv 1955 . . 3 (𝜑 → (∃𝑦(𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))) ↔ ∃𝑦(𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}))))
33 eleq1w 2847 . . . . . 6 (𝑦 = 𝑤 → (𝑦 ∈ 𝐴 ↔ 𝑤 ∈ 𝐴))
34 opeq2 4844 . . . . . . . 8 (𝑦 = 𝑤 → ⟨𝐵, 𝑦⟩ = ⟨𝐵, 𝑤⟩)
3534sneqd 4596 . . . . . . 7 (𝑦 = 𝑤 → {⟨𝐵, 𝑦⟩} = {⟨𝐵, 𝑤⟩})
3635eqeq2d 2774 . . . . . 6 (𝑦 = 𝑤 → (𝑧 = {⟨𝐵, 𝑦⟩} ↔ 𝑧 = {⟨𝐵, 𝑤⟩}))
3733, 36anbi12d 644 . . . . 5 (𝑦 = 𝑤 → ((𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩})))
3837equsexvw 2039 . . . 4 (∃𝑦(𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩})) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩}))
3938a1i 11 . . 3 (𝜑 → (∃𝑦(𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩})) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩})))
4016, 32, 393bitrd 308 . 2 (𝜑 → ((𝑧 ∈ (𝐴 ↑m {𝐵}) ∧ 𝑤 = (𝑧‘𝐵)) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩})))
411, 2, 4, 6, 40en2d 9029 1 (𝜑 → (𝐴 ↑m {𝐵}) ≈ 𝐴)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569  ∃wex 1811   ∈ wcel 2146  ∃wrex 3090  Vcvv 3454  {csn 4588  ⟨cop 4838   class class class wbr 5106  ‘cfv 6547  (class class class)co 7430   ↑m cmap 8861   ≈ cen 8984
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2196  ax-12 2215  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7761
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2101  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-iota 6501  df-fun 6549  df-fn 6550  df-f 6551  df-f1 6552  df-fo 6553  df-f1o 6554  df-fv 6555  df-ov 7433  df-oprab 7434  df-mpo 7435  df-map 8863  df-en 8988
This theorem is used by:  mapsnen  9079  map2xp  9180  mapdom3  9182  ackbij1lem5  10314  pwxpndom2  10763  hashmap  14593  mpct  46357
  Copyright terms: Public domain W3C validator