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

Theorem mapsnend 9064
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 7455 . 2 (𝜑 → (𝐴 ↑m {𝐵}) ∈ V)
2 mapsnend.a . 2 (𝜑 → 𝐴 ∈ 𝑉)
3 fvexd 6900 . . 3 (𝑧 ∈ (𝐴 ↑m {𝐵}) → (𝑧‘𝐵) ∈ V)
43a1i 11 . 2 (𝜑 → (𝑧 ∈ (𝐴 ↑m {𝐵}) → (𝑧‘𝐵) ∈ V))
5 snex 5397 . . 3 {⟨𝐵, 𝑤⟩} ∈ V
652a1i 12 . 2 (𝜑 → (𝑤 ∈ 𝐴 → {⟨𝐵, 𝑤⟩} ∈ V))
7 mapsnend.b . . . . . . 7 (𝜑 → 𝐵 ∈ 𝑊)
82, 7mapsnd 8914 . . . . . 6 (𝜑 → (𝐴 ↑m {𝐵}) = {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩}})
98eqabrd 2902 . . . . 5 (𝜑 → (𝑧 ∈ (𝐴 ↑m {𝐵}) ↔ ∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩}))
109anbi1d 643 . . . 4 (𝜑 → ((𝑧 ∈ (𝐴 ↑m {𝐵}) ∧ 𝑤 = (𝑧‘𝐵)) ↔ (∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))))
11 r19.41v 3193 . . . . . 6 (∃𝑦 ∈ 𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ (∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)))
1211bicomi 227 . . . . 5 ((∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ ∃𝑦 ∈ 𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)))
1312a1i 11 . . . 4 (𝜑 → ((∃𝑦 ∈ 𝐴 𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ ∃𝑦 ∈ 𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))))
14 df-rex 3088 . . . . 5 (∃𝑦 ∈ 𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ ∃𝑦(𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))))
1514a1i 11 . . . 4 (𝜑 → (∃𝑦 ∈ 𝐴 (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)) ↔ ∃𝑦(𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)))))
1610, 13, 153bitrd 308 . . 3 (𝜑 → ((𝑧 ∈ (𝐴 ↑m {𝐵}) ∧ 𝑤 = (𝑧‘𝐵)) ↔ ∃𝑦(𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵)))))
17 fveq1 6884 . . . . . . . . . 10 (𝑧 = {⟨𝐵, 𝑦⟩} → (𝑧‘𝐵) = ({⟨𝐵, 𝑦⟩}‘𝐵))
18 vex 3455 . . . . . . . . . . 11 𝑦 ∈ V
19 fvsng 7185 . . . . . . . . . . 11 ((𝐵 ∈ 𝑊 ∧ 𝑦 ∈ V) → ({⟨𝐵, 𝑦⟩}‘𝐵) = 𝑦)
207, 18, 19sylancl 598 . . . . . . . . . 10 (𝜑 → ({⟨𝐵, 𝑦⟩}‘𝐵) = 𝑦)
2117, 20sylan9eqr 2818 . . . . . . . . 9 ((𝜑 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑧‘𝐵) = 𝑦)
2221eqeq2d 2772 . . . . . . . 8 ((𝜑 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) → (𝑤 = (𝑧‘𝐵) ↔ 𝑤 = 𝑦))
23 equcom 2051 . . . . . . . 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 1954 . . 3 (𝜑 → (∃𝑦(𝑦 ∈ 𝐴 ∧ (𝑧 = {⟨𝐵, 𝑦⟩} ∧ 𝑤 = (𝑧‘𝐵))) ↔ ∃𝑦(𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}))))
33 eleq1w 2844 . . . . . 6 (𝑦 = 𝑤 → (𝑦 ∈ 𝐴 ↔ 𝑤 ∈ 𝐴))
34 opeq2 4834 . . . . . . . 8 (𝑦 = 𝑤 → ⟨𝐵, 𝑦⟩ = ⟨𝐵, 𝑤⟩)
3534sneqd 4596 . . . . . . 7 (𝑦 = 𝑤 → {⟨𝐵, 𝑦⟩} = {⟨𝐵, 𝑤⟩})
3635eqeq2d 2772 . . . . . 6 (𝑦 = 𝑤 → (𝑧 = {⟨𝐵, 𝑦⟩} ↔ 𝑧 = {⟨𝐵, 𝑤⟩}))
3733, 36anbi12d 644 . . . . 5 (𝑦 = 𝑤 → ((𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩}) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩})))
3837equsexvw 2038 . . . 4 (∃𝑦(𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩})) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩}))
3938a1i 11 . . 3 (𝜑 → (∃𝑦(𝑦 = 𝑤 ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑦⟩})) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩})))
4016, 32, 393bitrd 308 . 2 (𝜑 → ((𝑧 ∈ (𝐴 ↑m {𝐵}) ∧ 𝑤 = (𝑧‘𝐵)) ↔ (𝑤 ∈ 𝐴 ∧ 𝑧 = {⟨𝐵, 𝑤⟩})))
411, 2, 4, 6, 40en2d 9015 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 2145  ∃wrex 3087  Vcvv 3451  {csn 4584  ⟨cop 4590   class class class wbr 5103  ‘cfv 6538  (class class class)co 7420   ↑m cmap 8847   ≈ cen 8970
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7751
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-map 8849  df-en 8974
This theorem is used by:  mapsnen  9065  map2xp  9166  mapdom3  9168  ackbij1lem5  10301  pwxpndom2  10750  hashmap  14580  mpct  46214
  Copyright terms: Public domain W3C validator