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

Theorem opeliunxp 5718
Description: Membership in a union of Cartesian products. (Contributed by Mario Carneiro, 29-Dec-2014.) (Revised by Mario Carneiro, 1-Jan-2017.)
Assertion
Ref Expression
opeliunxp (⟨𝑥, 𝐶⟩ ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵) ↔ (𝑥 ∈ 𝐴 ∧ 𝐶 ∈ 𝐵))

Proof of Theorem opeliunxp
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-iun 4953 . . 3 ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵) = {𝑦 ∣ ∃𝑥 ∈ 𝐴 𝑦 ∈ ({𝑥} × 𝐵)}
21eleq2i 2853 . 2 (⟨𝑥, 𝐶⟩ ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵) ↔ ⟨𝑥, 𝐶⟩ ∈ {𝑦 ∣ ∃𝑥 ∈ 𝐴 𝑦 ∈ ({𝑥} × 𝐵)})
3 opex 5432 . . 3 ⟨𝑥, 𝐶⟩ ∈ V
4 df-rex 3088 . . . . 5 (∃𝑥 ∈ 𝐴 𝑦 ∈ ({𝑥} × 𝐵) ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝑦 ∈ ({𝑥} × 𝐵)))
5 nfv 1947 . . . . . 6 Ⅎ𝑧(𝑥 ∈ 𝐴 ∧ 𝑦 ∈ ({𝑥} × 𝐵))
6 nfs1v 2193 . . . . . . 7 Ⅎ𝑥[𝑧 / 𝑥]𝑥 ∈ 𝐴
7 nfcv 2923 . . . . . . . . 9 Ⅎ𝑥{𝑧}
8 nfcsb1v 3871 . . . . . . . . 9 Ⅎ𝑥⦋𝑧 / 𝑥⦌𝐵
97, 8nfxp 5684 . . . . . . . 8 Ⅎ𝑥({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)
109nfcri 2915 . . . . . . 7 Ⅎ𝑥 𝑦 ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)
116, 10nfan 1932 . . . . . 6 Ⅎ𝑥([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝑦 ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵))
12 sbequ12 2287 . . . . . . 7 (𝑥 = 𝑧 → (𝑥 ∈ 𝐴 ↔ [𝑧 / 𝑥]𝑥 ∈ 𝐴))
13 sneq 4594 . . . . . . . . 9 (𝑥 = 𝑧 → {𝑥} = {𝑧})
14 csbeq1a 3861 . . . . . . . . 9 (𝑥 = 𝑧 → 𝐵 = ⦋𝑧 / 𝑥⦌𝐵)
1513, 14xpeq12d 5682 . . . . . . . 8 (𝑥 = 𝑧 → ({𝑥} × 𝐵) = ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵))
1615eleq2d 2847 . . . . . . 7 (𝑥 = 𝑧 → (𝑦 ∈ ({𝑥} × 𝐵) ↔ 𝑦 ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)))
1712, 16anbi12d 644 . . . . . 6 (𝑥 = 𝑧 → ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ ({𝑥} × 𝐵)) ↔ ([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝑦 ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵))))
185, 11, 17cbvexv1 2372 . . . . 5 (∃𝑥(𝑥 ∈ 𝐴 ∧ 𝑦 ∈ ({𝑥} × 𝐵)) ↔ ∃𝑧([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝑦 ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)))
194, 18bitri 278 . . . 4 (∃𝑥 ∈ 𝐴 𝑦 ∈ ({𝑥} × 𝐵) ↔ ∃𝑧([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝑦 ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)))
20 eleq1 2849 . . . . . 6 (𝑦 = ⟨𝑥, 𝐶⟩ → (𝑦 ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵) ↔ ⟨𝑥, 𝐶⟩ ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)))
2120anbi2d 642 . . . . 5 (𝑦 = ⟨𝑥, 𝐶⟩ → (([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝑦 ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)) ↔ ([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ ⟨𝑥, 𝐶⟩ ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵))))
2221exbidv 1954 . . . 4 (𝑦 = ⟨𝑥, 𝐶⟩ → (∃𝑧([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝑦 ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)) ↔ ∃𝑧([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ ⟨𝑥, 𝐶⟩ ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵))))
2319, 22bitrid 286 . . 3 (𝑦 = ⟨𝑥, 𝐶⟩ → (∃𝑥 ∈ 𝐴 𝑦 ∈ ({𝑥} × 𝐵) ↔ ∃𝑧([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ ⟨𝑥, 𝐶⟩ ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵))))
243, 23elab 3633 . 2 (⟨𝑥, 𝐶⟩ ∈ {𝑦 ∣ ∃𝑥 ∈ 𝐴 𝑦 ∈ ({𝑥} × 𝐵)} ↔ ∃𝑧([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ ⟨𝑥, 𝐶⟩ ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)))
25 opelxp 5687 . . . . . 6 (⟨𝑥, 𝐶⟩ ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵) ↔ (𝑥 ∈ {𝑧} ∧ 𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵))
2625anbi2i 635 . . . . 5 (([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ ⟨𝑥, 𝐶⟩ ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)) ↔ ([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ (𝑥 ∈ {𝑧} ∧ 𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵)))
27 an12 658 . . . . 5 (([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ (𝑥 ∈ {𝑧} ∧ 𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵)) ↔ (𝑥 ∈ {𝑧} ∧ ([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵)))
28 velsn 4600 . . . . . . 7 (𝑥 ∈ {𝑧} ↔ 𝑥 = 𝑧)
29 equcom 2051 . . . . . . 7 (𝑥 = 𝑧 ↔ 𝑧 = 𝑥)
3028, 29bitri 278 . . . . . 6 (𝑥 ∈ {𝑧} ↔ 𝑧 = 𝑥)
3130anbi1i 636 . . . . 5 ((𝑥 ∈ {𝑧} ∧ ([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵)) ↔ (𝑧 = 𝑥 ∧ ([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵)))
3226, 27, 313bitri 300 . . . 4 (([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ ⟨𝑥, 𝐶⟩ ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)) ↔ (𝑧 = 𝑥 ∧ ([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵)))
3332exbii 1881 . . 3 (∃𝑧([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ ⟨𝑥, 𝐶⟩ ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)) ↔ ∃𝑧(𝑧 = 𝑥 ∧ ([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵)))
34 sbequ12r 2288 . . . . 5 (𝑧 = 𝑥 → ([𝑧 / 𝑥]𝑥 ∈ 𝐴 ↔ 𝑥 ∈ 𝐴))
3514equcoms 2053 . . . . . . 7 (𝑧 = 𝑥 → 𝐵 = ⦋𝑧 / 𝑥⦌𝐵)
3635eqcomd 2767 . . . . . 6 (𝑧 = 𝑥 → ⦋𝑧 / 𝑥⦌𝐵 = 𝐵)
3736eleq2d 2847 . . . . 5 (𝑧 = 𝑥 → (𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵 ↔ 𝐶 ∈ 𝐵))
3834, 37anbi12d 644 . . . 4 (𝑧 = 𝑥 → (([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵) ↔ (𝑥 ∈ 𝐴 ∧ 𝐶 ∈ 𝐵)))
3938equsexvw 2038 . . 3 (∃𝑧(𝑧 = 𝑥 ∧ ([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ 𝐶 ∈ ⦋𝑧 / 𝑥⦌𝐵)) ↔ (𝑥 ∈ 𝐴 ∧ 𝐶 ∈ 𝐵))
4033, 39bitri 278 . 2 (∃𝑧([𝑧 / 𝑥]𝑥 ∈ 𝐴 ∧ ⟨𝑥, 𝐶⟩ ∈ ({𝑧} × ⦋𝑧 / 𝑥⦌𝐵)) ↔ (𝑥 ∈ 𝐴 ∧ 𝐶 ∈ 𝐵))
412, 24, 403bitri 300 1 (⟨𝑥, 𝐶⟩ ∈ ∪ 𝑥 ∈ 𝐴 ({𝑥} × 𝐵) ↔ (𝑥 ∈ 𝐴 ∧ 𝐶 ∈ 𝐵))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812  [wsb 2099   ∈ wcel 2145  {cab 2739  ∃wrex 3087  ⦋csb 3847  {csn 4584  ⟨cop 4590  ∪ ciun 4951   × cxp 5649
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-pr 5391
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-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-iun 4953  df-opab 5168  df-xp 5657
This theorem is used by:  eliunxp  5814  opeliunxp2  5815  opeliunxp2f  8211  gsum2d2lem  20167  gsum2d2  20168  gsumcom2  20169  dprdval  20199  ptbasfi  23880  cnextfun  24363  cnextfvval  24364  cnextf  24365  dvbsss  26202  iunsnima  33194
  Copyright terms: Public domain W3C validator