Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  opeliun2xp Structured version   Visualization version   GIF version

Theorem opeliun2xp 44734
Description: Membership of an ordered pair in a union of Cartesian products over its second component, analogous to opeliunxp 5583. (Contributed by AV, 30-Mar-2019.)
Assertion
Ref Expression
opeliun2xp (⟨𝐶, 𝑦⟩ ∈ 𝑦𝐵 (𝐴 × {𝑦}) ↔ (𝑦𝐵𝐶𝐴))

Proof of Theorem opeliun2xp
Dummy variables 𝑥 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-iun 4883 . . 3 𝑦𝐵 (𝐴 × {𝑦}) = {𝑥 ∣ ∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦})}
21eleq2i 2881 . 2 (⟨𝐶, 𝑦⟩ ∈ 𝑦𝐵 (𝐴 × {𝑦}) ↔ ⟨𝐶, 𝑦⟩ ∈ {𝑥 ∣ ∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦})})
3 opex 5321 . . 3 𝐶, 𝑦⟩ ∈ V
4 df-rex 3112 . . . . 5 (∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦}) ↔ ∃𝑦(𝑦𝐵𝑥 ∈ (𝐴 × {𝑦})))
5 nfv 1915 . . . . . 6 𝑧(𝑦𝐵𝑥 ∈ (𝐴 × {𝑦}))
6 nfs1v 2157 . . . . . . 7 𝑦[𝑧 / 𝑦]𝑦𝐵
7 nfcsb1v 3852 . . . . . . . . 9 𝑦𝑧 / 𝑦𝐴
8 nfcv 2955 . . . . . . . . 9 𝑦{𝑧}
97, 8nfxp 5552 . . . . . . . 8 𝑦(𝑧 / 𝑦𝐴 × {𝑧})
109nfcri 2943 . . . . . . 7 𝑦 𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})
116, 10nfan 1900 . . . . . 6 𝑦([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧}))
12 sbequ12 2250 . . . . . . 7 (𝑦 = 𝑧 → (𝑦𝐵 ↔ [𝑧 / 𝑦]𝑦𝐵))
13 csbeq1a 3842 . . . . . . . . 9 (𝑦 = 𝑧𝐴 = 𝑧 / 𝑦𝐴)
14 sneq 4535 . . . . . . . . 9 (𝑦 = 𝑧 → {𝑦} = {𝑧})
1513, 14xpeq12d 5550 . . . . . . . 8 (𝑦 = 𝑧 → (𝐴 × {𝑦}) = (𝑧 / 𝑦𝐴 × {𝑧}))
1615eleq2d 2875 . . . . . . 7 (𝑦 = 𝑧 → (𝑥 ∈ (𝐴 × {𝑦}) ↔ 𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})))
1712, 16anbi12d 633 . . . . . 6 (𝑦 = 𝑧 → ((𝑦𝐵𝑥 ∈ (𝐴 × {𝑦})) ↔ ([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧}))))
185, 11, 17cbvexv1 2351 . . . . 5 (∃𝑦(𝑦𝐵𝑥 ∈ (𝐴 × {𝑦})) ↔ ∃𝑧([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})))
194, 18bitri 278 . . . 4 (∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦}) ↔ ∃𝑧([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})))
20 eleq1 2877 . . . . . 6 (𝑥 = ⟨𝐶, 𝑦⟩ → (𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧}) ↔ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})))
2120anbi2d 631 . . . . 5 (𝑥 = ⟨𝐶, 𝑦⟩ → (([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ ([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧}))))
2221exbidv 1922 . . . 4 (𝑥 = ⟨𝐶, 𝑦⟩ → (∃𝑧([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ ∃𝑧([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧}))))
2319, 22syl5bb 286 . . 3 (𝑥 = ⟨𝐶, 𝑦⟩ → (∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦}) ↔ ∃𝑧([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧}))))
243, 23elab 3615 . 2 (⟨𝐶, 𝑦⟩ ∈ {𝑥 ∣ ∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦})} ↔ ∃𝑧([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})))
25 opelxp 5555 . . . . . 6 (⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧}) ↔ (𝐶𝑧 / 𝑦𝐴𝑦 ∈ {𝑧}))
2625anbi2i 625 . . . . 5 (([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ ([𝑧 / 𝑦]𝑦𝐵 ∧ (𝐶𝑧 / 𝑦𝐴𝑦 ∈ {𝑧})))
27 an13 646 . . . . . 6 (([𝑧 / 𝑦]𝑦𝐵 ∧ (𝐶𝑧 / 𝑦𝐴𝑦 ∈ {𝑧})) ↔ (𝑦 ∈ {𝑧} ∧ (𝐶𝑧 / 𝑦𝐴 ∧ [𝑧 / 𝑦]𝑦𝐵)))
28 ancom 464 . . . . . . 7 ((𝐶𝑧 / 𝑦𝐴 ∧ [𝑧 / 𝑦]𝑦𝐵) ↔ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴))
2928anbi2i 625 . . . . . 6 ((𝑦 ∈ {𝑧} ∧ (𝐶𝑧 / 𝑦𝐴 ∧ [𝑧 / 𝑦]𝑦𝐵)) ↔ (𝑦 ∈ {𝑧} ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)))
3027, 29bitri 278 . . . . 5 (([𝑧 / 𝑦]𝑦𝐵 ∧ (𝐶𝑧 / 𝑦𝐴𝑦 ∈ {𝑧})) ↔ (𝑦 ∈ {𝑧} ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)))
31 velsn 4541 . . . . . . 7 (𝑦 ∈ {𝑧} ↔ 𝑦 = 𝑧)
32 equcom 2025 . . . . . . 7 (𝑦 = 𝑧𝑧 = 𝑦)
3331, 32bitri 278 . . . . . 6 (𝑦 ∈ {𝑧} ↔ 𝑧 = 𝑦)
3433anbi1i 626 . . . . 5 ((𝑦 ∈ {𝑧} ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)) ↔ (𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)))
3526, 30, 343bitri 300 . . . 4 (([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ (𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)))
3635exbii 1849 . . 3 (∃𝑧([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ ∃𝑧(𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)))
37 sbequ12r 2251 . . . . 5 (𝑧 = 𝑦 → ([𝑧 / 𝑦]𝑦𝐵𝑦𝐵))
3813equcoms 2027 . . . . . . 7 (𝑧 = 𝑦𝐴 = 𝑧 / 𝑦𝐴)
3938eqcomd 2804 . . . . . 6 (𝑧 = 𝑦𝑧 / 𝑦𝐴 = 𝐴)
4039eleq2d 2875 . . . . 5 (𝑧 = 𝑦 → (𝐶𝑧 / 𝑦𝐴𝐶𝐴))
4137, 40anbi12d 633 . . . 4 (𝑧 = 𝑦 → (([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴) ↔ (𝑦𝐵𝐶𝐴)))
4241equsexvw 2011 . . 3 (∃𝑧(𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)) ↔ (𝑦𝐵𝐶𝐴))
4336, 42bitri 278 . 2 (∃𝑧([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ (𝑦𝐵𝐶𝐴))
442, 24, 433bitri 300 1 (⟨𝐶, 𝑦⟩ ∈ 𝑦𝐵 (𝐴 × {𝑦}) ↔ (𝑦𝐵𝐶𝐴))
Colors of variables: wff setvar class
Syntax hints:  wb 209  wa 399   = wceq 1538  wex 1781  [wsb 2069  wcel 2111  {cab 2776  wrex 3107  csb 3828  {csn 4525  cop 4531   ciun 4881   × cxp 5517
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pr 5295
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ral 3111  df-rex 3112  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-iun 4883  df-opab 5093  df-xp 5525
This theorem is referenced by:  eliunxp2  44735
  Copyright terms: Public domain W3C validator