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

Theorem xpsnen 9118
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 5404 . . 3 {𝐵} ∈ V
31, 2xpex 7799 . 2 (𝐴 × {𝐵}) ∈ V
4 elxp 5681 . . 3 (𝑦 ∈ (𝐴 × {𝐵}) ↔ ∃𝑥∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})))
5 inteq 4915 . . . . . . . 8 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ 𝑦 = ∩ ⟨𝑥, 𝑧⟩)
65inteqd 4917 . . . . . . 7 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ ∩ 𝑦 = ∩ ∩ ⟨𝑥, 𝑧⟩)
7 vex 3458 . . . . . . . 8 𝑥 ∈ V
8 vex 3458 . . . . . . . 8 𝑧 ∈ V
97, 8op1stb 5447 . . . . . . 7 ∩ ∩ ⟨𝑥, 𝑧⟩ = 𝑥
106, 9eqtrdi 2814 . . . . . 6 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ ∩ 𝑦 = 𝑥)
1110, 7eqeltrdi 2872 . . . . 5 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ ∩ 𝑦 ∈ V)
1211adantr 486 . . . 4 ((𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) → ∩ ∩ 𝑦 ∈ V)
1312exlimivv 1967 . . 3 (∃𝑥∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) → ∩ ∩ 𝑦 ∈ V)
144, 13sylbi 220 . 2 (𝑦 ∈ (𝐴 × {𝐵}) → ∩ ∩ 𝑦 ∈ V)
15 opex 5439 . . 3 ⟨𝑥, 𝐵⟩ ∈ V
1615a1i 11 . 2 (𝑥 ∈ 𝐴 → ⟨𝑥, 𝐵⟩ ∈ V)
17 eqvisset 3474 . . . . 5 (𝑥 = ∩ ∩ 𝑦 → ∩ ∩ 𝑦 ∈ V)
18 ancom 466 . . . . . . . . . . 11 (((𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴) ∧ 𝑧 ∈ {𝐵}) ↔ (𝑧 ∈ {𝐵} ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)))
19 anass 474 . . . . . . . . . . 11 (((𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴) ∧ 𝑧 ∈ {𝐵}) ↔ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})))
20 velsn 4600 . . . . . . . . . . . 12 (𝑧 ∈ {𝐵} ↔ 𝑧 = 𝐵)
2120anbi1i 636 . . . . . . . . . . 11 ((𝑧 ∈ {𝐵} ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)) ↔ (𝑧 = 𝐵 ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)))
2218, 19, 213bitr3i 304 . . . . . . . . . 10 ((𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) ↔ (𝑧 = 𝐵 ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)))
2322exbii 1881 . . . . . . . . 9 (∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) ↔ ∃𝑧(𝑧 = 𝐵 ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)))
24 xpsnen.2 . . . . . . . . . 10 𝐵 ∈ V
25 opeq2 4846 . . . . . . . . . . . 12 (𝑧 = 𝐵 → ⟨𝑥, 𝑧⟩ = ⟨𝑥, 𝐵⟩)
2625eqeq2d 2774 . . . . . . . . . . 11 (𝑧 = 𝐵 → (𝑦 = ⟨𝑥, 𝑧⟩ ↔ 𝑦 = ⟨𝑥, 𝐵⟩))
2726anbi1d 643 . . . . . . . . . 10 (𝑧 = 𝐵 → ((𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴) ↔ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
2824, 27ceqsexv 3502 . . . . . . . . 9 (∃𝑧(𝑧 = 𝐵 ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)) ↔ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴))
29 inteq 4915 . . . . . . . . . . . . . 14 (𝑦 = ⟨𝑥, 𝐵⟩ → ∩ 𝑦 = ∩ ⟨𝑥, 𝐵⟩)
3029inteqd 4917 . . . . . . . . . . . . 13 (𝑦 = ⟨𝑥, 𝐵⟩ → ∩ ∩ 𝑦 = ∩ ∩ ⟨𝑥, 𝐵⟩)
317, 24op1stb 5447 . . . . . . . . . . . . 13 ∩ ∩ ⟨𝑥, 𝐵⟩ = 𝑥
3230, 31eqtr2di 2815 . . . . . . . . . . . 12 (𝑦 = ⟨𝑥, 𝐵⟩ → 𝑥 = ∩ ∩ 𝑦)
3332pm4.71ri 570 . . . . . . . . . . 11 (𝑦 = ⟨𝑥, 𝐵⟩ ↔ (𝑥 = ∩ ∩ 𝑦 ∧ 𝑦 = ⟨𝑥, 𝐵⟩))
3433anbi1i 636 . . . . . . . . . 10 ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ↔ ((𝑥 = ∩ ∩ 𝑦 ∧ 𝑦 = ⟨𝑥, 𝐵⟩) ∧ 𝑥 ∈ 𝐴))
35 anass 474 . . . . . . . . . 10 (((𝑥 = ∩ ∩ 𝑦 ∧ 𝑦 = ⟨𝑥, 𝐵⟩) ∧ 𝑥 ∈ 𝐴) ↔ (𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
3634, 35bitri 278 . . . . . . . . 9 ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ↔ (𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
3723, 28, 363bitri 300 . . . . . . . 8 (∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) ↔ (𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
3837exbii 1881 . . . . . . 7 (∃𝑥∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) ↔ ∃𝑥(𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
394, 38bitri 278 . . . . . 6 (𝑦 ∈ (𝐴 × {𝐵}) ↔ ∃𝑥(𝑥 = ∩ ∩ 𝑦 ∧ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
40 opeq1 4845 . . . . . . . . 9 (𝑥 = ∩ ∩ 𝑦 → ⟨𝑥, 𝐵⟩ = ⟨∩ ∩ 𝑦, 𝐵⟩)
4140eqeq2d 2774 . . . . . . . 8 (𝑥 = ∩ ∩ 𝑦 → (𝑦 = ⟨𝑥, 𝐵⟩ ↔ 𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩))
42 eleq1 2852 . . . . . . . 8 (𝑥 = ∩ ∩ 𝑦 → (𝑥 ∈ 𝐴 ↔ ∩ ∩ 𝑦 ∈ 𝐴))
4341, 42anbi12d 644 . . . . . . 7 (𝑥 = ∩ ∩ 𝑦 → ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ↔ (𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩ ∧ ∩ ∩ 𝑦 ∈ 𝐴)))
4443ceqsexgv 3611 . . . . . 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 9055 1 (𝐴 × {𝐵}) ≈ 𝐴
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2147  Vcvv 3454  {csn 4588  ⟨cop 4840  ∩ cint 4912   class class class wbr 5108   × cxp 5656   ≈ 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-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-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  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-int 4913  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-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-en 9012
This theorem is used by:  xpsneng  9119  endisj  9121  infxpenlem  10131  hashxplem  14619  rexpen  16440  heiborlem3  39013
  Copyright terms: Public domain W3C validator