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

Theorem xpsnen 9137
Description: A set is equinumerous to its Cartesian product with a singleton. Proposition 4.22(c) of [Mendelson] p. 254. (Contributed by NM, 4-Jan-2004.) (Revised by Mario Carneiro, 15-Nov-2014.)
Hypotheses
Ref Expression
xpsnen.1 𝐴 ∈ V
xpsnen.2 𝐵 ∈ V
Assertion
Ref Expression
xpsnen (𝐴 × {𝐵}) ≈ 𝐴

Proof of Theorem xpsnen
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 xpsnen.1 . . 3 𝐴 ∈ V
2 snex 5412 . . 3 {𝐵} ∈ V
31, 2xpex 7818 . 2 (𝐴 × {𝐵}) ∈ V
4 elxp 5689 . . 3 (𝑦 ∈ (𝐴 × {𝐵}) ↔ ∃𝑥∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})))
5 inteq 4923 . . . . . . . 8 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ 𝑦 = ∩ ⟨𝑥, 𝑧⟩)
65inteqd 4925 . . . . . . 7 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ ∩ 𝑦 = ∩ ∩ ⟨𝑥, 𝑧⟩)
7 vex 3465 . . . . . . . 8 𝑥 ∈ V
8 vex 3465 . . . . . . . 8 𝑧 ∈ V
97, 8op1stb 5455 . . . . . . 7 ∩ ∩ ⟨𝑥, 𝑧⟩ = 𝑥
106, 9eqtrdi 2825 . . . . . 6 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ ∩ 𝑦 = 𝑥)
1110, 7eqeltrdi 2883 . . . . 5 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ ∩ 𝑦 ∈ V)
1211adantr 486 . . . 4 ((𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) → ∩ ∩ 𝑦 ∈ V)
1312exlimivv 1974 . . 3 (∃𝑥∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) → ∩ ∩ 𝑦 ∈ V)
144, 13sylbi 220 . 2 (𝑦 ∈ (𝐴 × {𝐵}) → ∩ ∩ 𝑦 ∈ V)
15 opex 5447 . . 3 ⟨𝑥, 𝐵⟩ ∈ V
1615a1i 11 . 2 (𝑥 ∈ 𝐴 → ⟨𝑥, 𝐵⟩ ∈ V)
17 eqvisset 3481 . . . . 5 (𝑥 = ∩ ∩ 𝑦 → ∩ ∩ 𝑦 ∈ V)
18 ancom 466 . . . . . . . . . . 11 (((𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴) ∧ 𝑧 ∈ {𝐵}) ↔ (𝑧 ∈ {𝐵} ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)))
19 anass 474 . . . . . . . . . . 11 (((𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴) ∧ 𝑧 ∈ {𝐵}) ↔ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})))
20 velsn 4607 . . . . . . . . . . . 12 (𝑧 ∈ {𝐵} ↔ 𝑧 = 𝐵)
2120anbi1i 636 . . . . . . . . . . 11 ((𝑧 ∈ {𝐵} ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)) ↔ (𝑧 = 𝐵 ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)))
2218, 19, 213bitr3i 304 . . . . . . . . . 10 ((𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) ↔ (𝑧 = 𝐵 ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)))
2322exbii 1887 . . . . . . . . 9 (∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) ↔ ∃𝑧(𝑧 = 𝐵 ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)))
24 xpsnen.2 . . . . . . . . . 10 𝐵 ∈ V
25 opeq2 4854 . . . . . . . . . . . 12 (𝑧 = 𝐵 → ⟨𝑥, 𝑧⟩ = ⟨𝑥, 𝐵⟩)
2625eqeq2d 2785 . . . . . . . . . . 11 (𝑧 = 𝐵 → (𝑦 = ⟨𝑥, 𝑧⟩ ↔ 𝑦 = ⟨𝑥, 𝐵⟩))
2726anbi1d 643 . . . . . . . . . 10 (𝑧 = 𝐵 → ((𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴) ↔ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
2824, 27ceqsexv 3509 . . . . . . . . 9 (∃𝑧(𝑧 = 𝐵 ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)) ↔ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴))
29 inteq 4923 . . . . . . . . . . . . . 14 (𝑦 = ⟨𝑥, 𝐵⟩ → ∩ 𝑦 = ∩ ⟨𝑥, 𝐵⟩)
3029inteqd 4925 . . . . . . . . . . . . 13 (𝑦 = ⟨𝑥, 𝐵⟩ → ∩ ∩ 𝑦 = ∩ ∩ ⟨𝑥, 𝐵⟩)
317, 24op1stb 5455 . . . . . . . . . . . . 13 ∩ ∩ ⟨𝑥, 𝐵⟩ = 𝑥
3230, 31eqtr2di 2826 . . . . . . . . . . . 12 (𝑦 = ⟨𝑥, 𝐵⟩ → 𝑥 = ∩ ∩ 𝑦)
3332pm4.71ri 570 . . . . . . . . . . 11 (𝑦 = ⟨𝑥, 𝐵⟩ ↔ (𝑥 = ∩ ∩ 𝑦 ∧ 𝑦 = ⟨𝑥, 𝐵⟩))
3433anbi1i 636 . . . . . . . . . 10 ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ↔ ((𝑥 = ∩ ∩ 𝑦 ∧ 𝑦 = ⟨𝑥, 𝐵⟩) ∧ 𝑥 ∈ 𝐴))
35 anass 474 . . . . . . . . . 10 (((𝑥 = ∩ ∩ 𝑦 ∧ 𝑦 = ⟨𝑥, 𝐵⟩) ∧ 𝑥 ∈ 𝐴) ↔ (𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
3634, 35bitri 278 . . . . . . . . 9 ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ↔ (𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
3723, 28, 363bitri 300 . . . . . . . 8 (∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) ↔ (𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
3837exbii 1887 . . . . . . 7 (∃𝑥∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) ↔ ∃𝑥(𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
394, 38bitri 278 . . . . . 6 (𝑦 ∈ (𝐴 × {𝐵}) ↔ ∃𝑥(𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
40 opeq1 4853 . . . . . . . . 9 (𝑥 = ∩ ∩ 𝑦 → ⟨𝑥, 𝐵⟩ = ⟨∩ ∩ 𝑦, 𝐵⟩)
4140eqeq2d 2785 . . . . . . . 8 (𝑥 = ∩ ∩ 𝑦 → (𝑦 = ⟨𝑥, 𝐵⟩ ↔ 𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩))
42 eleq1 2863 . . . . . . . 8 (𝑥 = ∩ ∩ 𝑦 → (𝑥 ∈ 𝐴 ↔ ∩ ∩ 𝑦 ∈ 𝐴))
4341, 42anbi12d 644 . . . . . . 7 (𝑥 = ∩ ∩ 𝑦 → ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ↔ (𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩ ∧ ∩ ∩ 𝑦 ∈ 𝐴)))
4443ceqsexgv 3618 . . . . . 6 (∩ ∩ 𝑦 ∈ V → (∃𝑥(𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)) ↔ (𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩ ∧ ∩ ∩ 𝑦 ∈ 𝐴)))
4539, 44bitrid 286 . . . . 5 (∩ ∩ 𝑦 ∈ V → (𝑦 ∈ (𝐴 × {𝐵}) ↔ (𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩ ∧ ∩ ∩ 𝑦 ∈ 𝐴)))
4617, 45syl 18 . . . 4 (𝑥 = ∩ ∩ 𝑦 → (𝑦 ∈ (𝐴 × {𝐵}) ↔ (𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩ ∧ ∩ ∩ 𝑦 ∈ 𝐴)))
4746pm5.32ri 586 . . 3 ((𝑦 ∈ (𝐴 × {𝐵}) ∧ 𝑥 = ∩ ∩ 𝑦) ↔ ((𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩ ∧ ∩ ∩ 𝑦 ∈ 𝐴) ∧ 𝑥 = ∩ ∩ 𝑦))
4832adantr 486 . . . . 5 ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) → 𝑥 = ∩ ∩ 𝑦)
4948pm4.71i 569 . . . 4 ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ↔ ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ∧ 𝑥 = ∩ ∩ 𝑦))
5043pm5.32ri 586 . . . 4 (((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ∧ 𝑥 = ∩ ∩ 𝑦) ↔ ((𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩ ∧ ∩ ∩ 𝑦 ∈ 𝐴) ∧ 𝑥 = ∩ ∩ 𝑦))
5149, 50bitr2i 279 . . 3 (((𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩ ∧ ∩ ∩ 𝑦 ∈ 𝐴) ∧ 𝑥 = ∩ ∩ 𝑦) ↔ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴))
52 ancom 466 . . 3 ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ↔ (𝑥 ∈ 𝐴 ∧ 𝑦 = ⟨𝑥, 𝐵⟩))
5347, 51, 523bitri 300 . 2 ((𝑦 ∈ (𝐴 × {𝐵}) ∧ 𝑥 = ∩ ∩ 𝑦) ↔ (𝑥 ∈ 𝐴 ∧ 𝑦 = ⟨𝑥, 𝐵⟩))
543, 1, 14, 16, 53en2i 9074 1 (𝐴 × {𝐵}) ≈ 𝐴
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1572  ∃wex 1818   ∈ wcel 2156  Vcvv 3461  {csn 4595  ⟨cop 4848  ∩ cint 4920   class class class wbr 5116   × cxp 5664   ≈ cen 9027
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-pow 5342  ax-pr 5406  ax-un 7802
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ral 3092  df-rex 3102  df-rab 3424  df-v 3463  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-int 4921  df-br 5117  df-opab 5182  df-mpt 5201  df-id 5561  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-en 9031
This theorem is used by:  xpsneng  9138  endisj  9140  infxpenlem  10150  hashxplem  14640  rexpen  16460  heiborlem3  39115
  Copyright terms: Public domain W3C validator