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

Theorem mapsnend 9102
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 7486 . 2 (𝜑 → (𝐴 ↑m {𝐵}) ∈ V)
2 mapsnend.a . 2 (𝜑 → 𝐴 ∈ 𝑉)
3 fvexd 6931 . . 3 (𝑧 ∈ (𝐴 ↑m {𝐵}) → (𝑧‘𝐵) ∈ V)
43a1i 11 . 2 (𝜑 → (𝑧 ∈ (𝐴 ↑m {𝐵}) → (𝑧‘𝐵) ∈ V))
5 snex 5404 . . 3 {⟨𝐵, 𝑤⟩} ∈ V
652a1i 12 . 2 (𝜑 → (𝑤 ∈ 𝐴 → {⟨𝐵, 𝑤⟩} ∈ V))
7 mapsnend.b . . . . . . 7 (𝜑 → 𝐵 ∈ 𝑊)
82, 7mapsnd 8952 . . . . . 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 6915 . . . . . . . . . 10 (𝑧 = {⟨𝐵, 𝑦⟩} → (𝑧‘𝐵) = ({⟨𝐵, 𝑦⟩}‘𝐵))
18 vex 3458 . . . . . . . . . . 11 𝑦 ∈ V
19 fvsng 7216 . . . . . . . . . . 11 ((𝐵 ∈ 𝑊 ∧ 𝑦 ∈ V) → ({⟨𝐵, 𝑦⟩}‘𝐵) = 𝑦)
207, 18, 19sylancl 598 . . . . . . . . . 10 (𝜑 → ({⟨𝐵, 𝑦⟩}‘𝐵) = 𝑦)
2117, 20sylan9eqr 2820 . . . . . . . . 9 ((𝜑 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑧‘𝐵) = 𝑦)
2221eqeq2d 2774 . . . . . . . 8 ((𝜑 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑤 = (𝑧‘𝐵) ↔ 𝑤 = 𝑦))
23 equcom 2053 . . . . . . . 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 1956 . . 3 (𝜑 → (∃𝑦(𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))) ↔ ∃𝑦(𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}))))
33 eleq1w 2847 . . . . . 6 (𝑦 = 𝑤 → (𝑦 ∈ 𝐴 ↔ 𝑤 ∈ 𝐴))
34 opeq2 4846 . . . . . . . 8 (𝑦 = 𝑤 → ⟨𝐵, 𝑦⟩ = ⟨𝐵, 𝑤⟩)
3534sneqd 4596 . . . . . . 7 (𝑦 = 𝑤 → {⟨𝐵, 𝑦⟩} = {⟨𝐵, 𝑤⟩})
3635eqeq2d 2774 . . . . . 6 (𝑦 = 𝑤 → (𝑧 = {⟨𝐵, 𝑦⟩} ↔ 𝑧 = {⟨𝐵, 𝑤⟩}))
3733, 36anbi12d 644 . . . . 5 (𝑦 = 𝑤 → ((𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩})))
3837equsexvw 2040 . . . 4 (∃𝑦(𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩})) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩}))
3938a1i 11 . . 3 (𝜑 → (∃𝑦(𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩})) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩})))
4016, 32, 393bitrd 308 . 2 (𝜑 → ((𝑧 ∈ (𝐴 ↑m {𝐵}) ∧ 𝑤 = (𝑧‘𝐵)) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩})))
411, 2, 4, 6, 40en2d 9053 1 (𝜑 → (𝐴 ↑m {𝐵}) ≈ 𝐴)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2147  ∃wrex 3090  Vcvv 3454  {csn 4588  ⟨cop 4840   class class class wbr 5108  ‘cfv 6566  (class class class)co 7451   ↑m cmap 8885   ≈ cen 9008
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  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 4841  df-uni 4873  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-ov 7454  df-oprab 7455  df-mpo 7456  df-map 8887  df-en 9012
This theorem is used by:  mapsnen  9103  map2xp  9204  mapdom3  9206  ackbij1lem5  10340  pwxpndom2  10789  hashmap  14621  mpct  46549
  Copyright terms: Public domain W3C validator