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

Theorem xpsnen 9080
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 5397 . . 3 {𝐵} ∈ V
31, 2xpex 7767 . 2 (𝐴 × {𝐵}) ∈ V
4 elxp 5674 . . 3 (𝑦 ∈ (𝐴 × {𝐵}) ↔ ∃𝑥∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})))
5 inteq 4910 . . . . . . . 8 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ 𝑦 = ∩ ⟨𝑥, 𝑧⟩)
65inteqd 4912 . . . . . . 7 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ ∩ 𝑦 = ∩ ∩ ⟨𝑥, 𝑧⟩)
7 vex 3455 . . . . . . . 8 𝑥 ∈ V
8 vex 3455 . . . . . . . 8 𝑧 ∈ V
97, 8op1stb 5440 . . . . . . 7 ∩ ∩ ⟨𝑥, 𝑧⟩ = 𝑥
106, 9eqtrdi 2812 . . . . . 6 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ ∩ 𝑦 = 𝑥)
1110, 7eqeltrdi 2869 . . . . 5 (𝑦 = ⟨𝑥, 𝑧⟩ → ∩ ∩ 𝑦 ∈ V)
1211adantr 486 . . . 4 ((𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) → ∩ ∩ 𝑦 ∈ V)
1312exlimivv 1965 . . 3 (∃𝑥∃𝑧(𝑦 = ⟨𝑥, 𝑧⟩ ∧ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ {𝐵})) → ∩ ∩ 𝑦 ∈ V)
144, 13sylbi 220 . 2 (𝑦 ∈ (𝐴 × {𝐵}) → ∩ ∩ 𝑦 ∈ V)
15 opex 5432 . . 3 ⟨𝑥, 𝐵⟩ ∈ V
1615a1i 11 . 2 (𝑥 ∈ 𝐴 → ⟨𝑥, 𝐵⟩ ∈ V)
17 eqvisset 3471 . . . . 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 4834 . . . . . . . . . . . 12 (𝑧 = 𝐵 → ⟨𝑥, 𝑧⟩ = ⟨𝑥, 𝐵⟩)
2625eqeq2d 2772 . . . . . . . . . . 11 (𝑧 = 𝐵 → (𝑦 = ⟨𝑥, 𝑧⟩ ↔ 𝑦 = ⟨𝑥, 𝐵⟩))
2726anbi1d 643 . . . . . . . . . 10 (𝑧 = 𝐵 → ((𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴) ↔ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴)))
2824, 27ceqsexv 3499 . . . . . . . . 9 (∃𝑧(𝑧 = 𝐵 ∧ (𝑦 = ⟨𝑥, 𝑧⟩ ∧ 𝑥 ∈ 𝐴)) ↔ (𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴))
29 inteq 4910 . . . . . . . . . . . . . 14 (𝑦 = ⟨𝑥, 𝐵⟩ → ∩ 𝑦 = ∩ ⟨𝑥, 𝐵⟩)
3029inteqd 4912 . . . . . . . . . . . . 13 (𝑦 = ⟨𝑥, 𝐵⟩ → ∩ ∩ 𝑦 = ∩ ∩ ⟨𝑥, 𝐵⟩)
317, 24op1stb 5440 . . . . . . . . . . . . 13 ∩ ∩ ⟨𝑥, 𝐵⟩ = 𝑥
3230, 31eqtr2di 2813 . . . . . . . . . . . 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 4833 . . . . . . . . 9 (𝑥 = ∩ ∩ 𝑦 → ⟨𝑥, 𝐵⟩ = ⟨∩ ∩ 𝑦, 𝐵⟩)
4140eqeq2d 2772 . . . . . . . 8 (𝑥 = ∩ ∩ 𝑦 → (𝑦 = ⟨𝑥, 𝐵⟩ ↔ 𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩))
42 eleq1 2849 . . . . . . . 8 (𝑥 = ∩ ∩ 𝑦 → (𝑥 ∈ 𝐴 ↔ ∩ ∩ 𝑦 ∈ 𝐴))
4341, 42anbi12d 644 . . . . . . 7 (𝑥 = ∩ ∩ 𝑦 → ((𝑦 = ⟨𝑥, 𝐵⟩ ∧ 𝑥 ∈ 𝐴) ↔ (𝑦 = ⟨∩ ∩ 𝑦, 𝐵⟩ ∧ ∩ ∩ 𝑦 ∈ 𝐴)))
4443ceqsexgv 3608 . . . . . 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 9017 1 (𝐴 × {𝐵}) ≈ 𝐴
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2145  Vcvv 3451  {csn 4584  ⟨cop 4590  ∩ cint 4907   class class class wbr 5103   × cxp 5649   ≈ 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-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-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  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-int 4908  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-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-en 8974
This theorem is used by:  xpsneng  9081  endisj  9083  infxpenlem  10092  hashxplem  14578  rexpen  16396  heiborlem3  38747
  Copyright terms: Public domain W3C validator