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

Theorem opeliun2xp 5723
Description: Membership of an ordered pair in a union of Cartesian products over its second component, analogous to opeliunxp 5722. (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 4956 . . 3 ∪ 𝑦 ∈ 𝐵 (𝐴 × {𝑦}) = {𝑥 ∣ ∃𝑦 ∈ 𝐵 𝑥 ∈ (𝐴 × {𝑦})}
21eleq2i 2856 . 2 (⟨𝐶, 𝑦⟩ ∈ ∪ 𝑦 ∈ 𝐵 (𝐴 × {𝑦}) ↔ ⟨𝐶, 𝑦⟩ ∈ {𝑥 ∣ ∃𝑦 ∈ 𝐵 𝑥 ∈ (𝐴 × {𝑦})})
3 opex 5436 . . 3 ⟨𝐶, 𝑦⟩ ∈ V
4 df-rex 3091 . . . . 5 (∃𝑦 ∈ 𝐵 𝑥 ∈ (𝐴 × {𝑦}) ↔ ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑥 ∈ (𝐴 × {𝑦})))
5 nfv 1949 . . . . . 6 Ⅎ𝑧(𝑦 ∈ 𝐵 ∧ 𝑥 ∈ (𝐴 × {𝑦}))
6 nfs1v 2196 . . . . . . 7 Ⅎ𝑦[𝑧 / 𝑦]𝑦 ∈ 𝐵
7 nfcsb1v 3875 . . . . . . . . 9 Ⅎ𝑦⦋𝑧 / 𝑦⦌𝐴
8 nfcv 2926 . . . . . . . . 9 Ⅎ𝑦{𝑧}
97, 8nfxp 5688 . . . . . . . 8 Ⅎ𝑦(⦋𝑧 / 𝑦⦌𝐴 × {𝑧})
109nfcri 2918 . . . . . . 7 Ⅎ𝑦 𝑥 ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})
116, 10nfan 1934 . . . . . 6 Ⅎ𝑦([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝑥 ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧}))
12 sbequ12 2290 . . . . . . 7 (𝑦 = 𝑧 → (𝑦 ∈ 𝐵 ↔ [𝑧 / 𝑦]𝑦 ∈ 𝐵))
13 csbeq1a 3865 . . . . . . . . 9 (𝑦 = 𝑧 → 𝐴 = ⦋𝑧 / 𝑦⦌𝐴)
14 sneq 4594 . . . . . . . . 9 (𝑦 = 𝑧 → {𝑦} = {𝑧})
1513, 14xpeq12d 5686 . . . . . . . 8 (𝑦 = 𝑧 → (𝐴 × {𝑦}) = (⦋𝑧 / 𝑦⦌𝐴 × {𝑧}))
1615eleq2d 2850 . . . . . . 7 (𝑦 = 𝑧 → (𝑥 ∈ (𝐴 × {𝑦}) ↔ 𝑥 ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})))
1712, 16anbi12d 644 . . . . . 6 (𝑦 = 𝑧 → ((𝑦 ∈ 𝐵 ∧ 𝑥 ∈ (𝐴 × {𝑦})) ↔ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝑥 ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧}))))
185, 11, 17cbvexv1 2375 . . . . 5 (∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑥 ∈ (𝐴 × {𝑦})) ↔ ∃𝑧([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝑥 ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})))
194, 18bitri 278 . . . 4 (∃𝑦 ∈ 𝐵 𝑥 ∈ (𝐴 × {𝑦}) ↔ ∃𝑧([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝑥 ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})))
20 eleq1 2852 . . . . . 6 (𝑥 = ⟨𝐶, 𝑦⟩ → (𝑥 ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧}) ↔ ⟨𝐶, 𝑦⟩ ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})))
2120anbi2d 642 . . . . 5 (𝑥 = ⟨𝐶, 𝑦⟩ → (([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝑥 ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})) ↔ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧}))))
2221exbidv 1956 . . . 4 (𝑥 = ⟨𝐶, 𝑦⟩ → (∃𝑧([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝑥 ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})) ↔ ∃𝑧([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧}))))
2319, 22bitrid 286 . . 3 (𝑥 = ⟨𝐶, 𝑦⟩ → (∃𝑦 ∈ 𝐵 𝑥 ∈ (𝐴 × {𝑦}) ↔ ∃𝑧([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧}))))
243, 23elab 3636 . 2 (⟨𝐶, 𝑦⟩ ∈ {𝑥 ∣ ∃𝑦 ∈ 𝐵 𝑥 ∈ (𝐴 × {𝑦})} ↔ ∃𝑧([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})))
25 opelxp 5691 . . . . . 6 (⟨𝐶, 𝑦⟩ ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧}) ↔ (𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴 ∧ 𝑦 ∈ {𝑧}))
2625anbi2i 635 . . . . 5 (([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})) ↔ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ (𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴 ∧ 𝑦 ∈ {𝑧})))
27 an13 660 . . . . . 6 (([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ (𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴 ∧ 𝑦 ∈ {𝑧})) ↔ (𝑦 ∈ {𝑧} ∧ (𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴 ∧ [𝑧 / 𝑦]𝑦 ∈ 𝐵)))
28 ancom 466 . . . . . . 7 ((𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴 ∧ [𝑧 / 𝑦]𝑦 ∈ 𝐵) ↔ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴))
2928anbi2i 635 . . . . . 6 ((𝑦 ∈ {𝑧} ∧ (𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴 ∧ [𝑧 / 𝑦]𝑦 ∈ 𝐵)) ↔ (𝑦 ∈ {𝑧} ∧ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴)))
3027, 29bitri 278 . . . . 5 (([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ (𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴 ∧ 𝑦 ∈ {𝑧})) ↔ (𝑦 ∈ {𝑧} ∧ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴)))
31 velsn 4600 . . . . . . 7 (𝑦 ∈ {𝑧} ↔ 𝑦 = 𝑧)
32 equcom 2053 . . . . . . 7 (𝑦 = 𝑧 ↔ 𝑧 = 𝑦)
3331, 32bitri 278 . . . . . 6 (𝑦 ∈ {𝑧} ↔ 𝑧 = 𝑦)
3433anbi1i 636 . . . . 5 ((𝑦 ∈ {𝑧} ∧ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴)) ↔ (𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴)))
3526, 30, 343bitri 300 . . . 4 (([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})) ↔ (𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴)))
3635exbii 1881 . . 3 (∃𝑧([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})) ↔ ∃𝑧(𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴)))
37 sbequ12r 2291 . . . . 5 (𝑧 = 𝑦 → ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ↔ 𝑦 ∈ 𝐵))
3813equcoms 2055 . . . . . . 7 (𝑧 = 𝑦 → 𝐴 = ⦋𝑧 / 𝑦⦌𝐴)
3938eqcomd 2769 . . . . . 6 (𝑧 = 𝑦 → ⦋𝑧 / 𝑦⦌𝐴 = 𝐴)
4039eleq2d 2850 . . . . 5 (𝑧 = 𝑦 → (𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴 ↔ 𝐶 ∈ 𝐴))
4137, 40anbi12d 644 . . . 4 (𝑧 = 𝑦 → (([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴) ↔ (𝑦 ∈ 𝐵 ∧ 𝐶 ∈ 𝐴)))
4241equsexvw 2040 . . 3 (∃𝑧(𝑧 = 𝑦 ∧ ([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ 𝐶 ∈ ⦋𝑧 / 𝑦⦌𝐴)) ↔ (𝑦 ∈ 𝐵 ∧ 𝐶 ∈ 𝐴))
4336, 42bitri 278 . 2 (∃𝑧([𝑧 / 𝑦]𝑦 ∈ 𝐵 ∧ ⟨𝐶, 𝑦⟩ ∈ (⦋𝑧 / 𝑦⦌𝐴 × {𝑧})) ↔ (𝑦 ∈ 𝐵 ∧ 𝐶 ∈ 𝐴))
442, 24, 433bitri 300 1 (⟨𝐶, 𝑦⟩ ∈ ∪ 𝑦 ∈ 𝐵 (𝐴 × {𝑦}) ↔ (𝑦 ∈ 𝐵 ∧ 𝐶 ∈ 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812  [wsb 2101   ∈ wcel 2147  {cab 2741  ∃wrex 3090  ⦋csb 3851  {csn 4588  ⟨cop 4838  ∪ ciun 4954   × cxp 5653
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 5252  ax-pr 5395
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-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-iun 4956  df-opab 5171  df-xp 5661
This theorem is used by:  fldextrspunlsplem  34375  eliunxp2  49651
  Copyright terms: Public domain W3C validator