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 44309
Description: Membership of an ordered pair in a union of Cartesian products over its second component, analogous to opeliunxp 5612. (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 4912 . . 3 𝑦𝐵 (𝐴 × {𝑦}) = {𝑥 ∣ ∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦})}
21eleq2i 2901 . 2 (⟨𝐶, 𝑦⟩ ∈ 𝑦𝐵 (𝐴 × {𝑦}) ↔ ⟨𝐶, 𝑦⟩ ∈ {𝑥 ∣ ∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦})})
3 opex 5347 . . 3 𝐶, 𝑦⟩ ∈ V
4 df-rex 3141 . . . . 5 (∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦}) ↔ ∃𝑦(𝑦𝐵𝑥 ∈ (𝐴 × {𝑦})))
5 nfv 1906 . . . . . 6 𝑧(𝑦𝐵𝑥 ∈ (𝐴 × {𝑦}))
6 nfs1v 2264 . . . . . . 7 𝑦[𝑧 / 𝑦]𝑦𝐵
7 nfcsb1v 3904 . . . . . . . . 9 𝑦𝑧 / 𝑦𝐴
8 nfcv 2974 . . . . . . . . 9 𝑦{𝑧}
97, 8nfxp 5581 . . . . . . . 8 𝑦(𝑧 / 𝑦𝐴 × {𝑧})
109nfcri 2968 . . . . . . 7 𝑦 𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})
116, 10nfan 1891 . . . . . 6 𝑦([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧}))
12 sbequ12 2243 . . . . . . 7 (𝑦 = 𝑧 → (𝑦𝐵 ↔ [𝑧 / 𝑦]𝑦𝐵))
13 csbeq1a 3894 . . . . . . . . 9 (𝑦 = 𝑧𝐴 = 𝑧 / 𝑦𝐴)
14 sneq 4567 . . . . . . . . 9 (𝑦 = 𝑧 → {𝑦} = {𝑧})
1513, 14xpeq12d 5579 . . . . . . . 8 (𝑦 = 𝑧 → (𝐴 × {𝑦}) = (𝑧 / 𝑦𝐴 × {𝑧}))
1615eleq2d 2895 . . . . . . 7 (𝑦 = 𝑧 → (𝑥 ∈ (𝐴 × {𝑦}) ↔ 𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})))
1712, 16anbi12d 630 . . . . . 6 (𝑦 = 𝑧 → ((𝑦𝐵𝑥 ∈ (𝐴 × {𝑦})) ↔ ([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧}))))
185, 11, 17cbvexv1 2353 . . . . 5 (∃𝑦(𝑦𝐵𝑥 ∈ (𝐴 × {𝑦})) ↔ ∃𝑧([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})))
194, 18bitri 276 . . . 4 (∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦}) ↔ ∃𝑧([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})))
20 eleq1 2897 . . . . . 6 (𝑥 = ⟨𝐶, 𝑦⟩ → (𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧}) ↔ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})))
2120anbi2d 628 . . . . 5 (𝑥 = ⟨𝐶, 𝑦⟩ → (([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ ([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧}))))
2221exbidv 1913 . . . 4 (𝑥 = ⟨𝐶, 𝑦⟩ → (∃𝑧([𝑧 / 𝑦]𝑦𝐵𝑥 ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ ∃𝑧([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧}))))
2319, 22syl5bb 284 . . 3 (𝑥 = ⟨𝐶, 𝑦⟩ → (∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦}) ↔ ∃𝑧([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧}))))
243, 23elab 3664 . 2 (⟨𝐶, 𝑦⟩ ∈ {𝑥 ∣ ∃𝑦𝐵 𝑥 ∈ (𝐴 × {𝑦})} ↔ ∃𝑧([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})))
25 opelxp 5584 . . . . . 6 (⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧}) ↔ (𝐶𝑧 / 𝑦𝐴𝑦 ∈ {𝑧}))
2625anbi2i 622 . . . . 5 (([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ ([𝑧 / 𝑦]𝑦𝐵 ∧ (𝐶𝑧 / 𝑦𝐴𝑦 ∈ {𝑧})))
27 an13 643 . . . . . 6 (([𝑧 / 𝑦]𝑦𝐵 ∧ (𝐶𝑧 / 𝑦𝐴𝑦 ∈ {𝑧})) ↔ (𝑦 ∈ {𝑧} ∧ (𝐶𝑧 / 𝑦𝐴 ∧ [𝑧 / 𝑦]𝑦𝐵)))
28 ancom 461 . . . . . . 7 ((𝐶𝑧 / 𝑦𝐴 ∧ [𝑧 / 𝑦]𝑦𝐵) ↔ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴))
2928anbi2i 622 . . . . . 6 ((𝑦 ∈ {𝑧} ∧ (𝐶𝑧 / 𝑦𝐴 ∧ [𝑧 / 𝑦]𝑦𝐵)) ↔ (𝑦 ∈ {𝑧} ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)))
3027, 29bitri 276 . . . . 5 (([𝑧 / 𝑦]𝑦𝐵 ∧ (𝐶𝑧 / 𝑦𝐴𝑦 ∈ {𝑧})) ↔ (𝑦 ∈ {𝑧} ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)))
31 velsn 4573 . . . . . . 7 (𝑦 ∈ {𝑧} ↔ 𝑦 = 𝑧)
32 equcom 2016 . . . . . . 7 (𝑦 = 𝑧𝑧 = 𝑦)
3331, 32bitri 276 . . . . . 6 (𝑦 ∈ {𝑧} ↔ 𝑧 = 𝑦)
3433anbi1i 623 . . . . 5 ((𝑦 ∈ {𝑧} ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)) ↔ (𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)))
3526, 30, 343bitri 298 . . . 4 (([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ (𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)))
3635exbii 1839 . . 3 (∃𝑧([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ ∃𝑧(𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)))
37 sbequ12r 2244 . . . . 5 (𝑧 = 𝑦 → ([𝑧 / 𝑦]𝑦𝐵𝑦𝐵))
3813equcoms 2018 . . . . . . 7 (𝑧 = 𝑦𝐴 = 𝑧 / 𝑦𝐴)
3938eqcomd 2824 . . . . . 6 (𝑧 = 𝑦𝑧 / 𝑦𝐴 = 𝐴)
4039eleq2d 2895 . . . . 5 (𝑧 = 𝑦 → (𝐶𝑧 / 𝑦𝐴𝐶𝐴))
4137, 40anbi12d 630 . . . 4 (𝑧 = 𝑦 → (([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴) ↔ (𝑦𝐵𝐶𝐴)))
4241equsexvw 2002 . . 3 (∃𝑧(𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦𝐵𝐶𝑧 / 𝑦𝐴)) ↔ (𝑦𝐵𝐶𝐴))
4336, 42bitri 276 . 2 (∃𝑧([𝑧 / 𝑦]𝑦𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (𝑧 / 𝑦𝐴 × {𝑧})) ↔ (𝑦𝐵𝐶𝐴))
442, 24, 433bitri 298 1 (⟨𝐶, 𝑦⟩ ∈ 𝑦𝐵 (𝐴 × {𝑦}) ↔ (𝑦𝐵𝐶𝐴))
Colors of variables: wff setvar class
Syntax hints:  wb 207  wa 396   = wceq 1528  wex 1771  [wsb 2060  wcel 2105  {cab 2796  wrex 3136  csb 3880  {csn 4557  cop 4563   ciun 4910   × cxp 5546
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790  ax-sep 5194  ax-nul 5201  ax-pr 5320
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-3an 1081  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-ral 3140  df-rex 3141  df-rab 3144  df-v 3494  df-sbc 3770  df-csb 3881  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-nul 4289  df-if 4464  df-sn 4558  df-pr 4560  df-op 4564  df-iun 4912  df-opab 5120  df-xp 5554
This theorem is referenced by:  eliunxp2  44310
  Copyright terms: Public domain W3C validator