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

Theorem eliunxp 5181
Description: Membership in a union of Cartesian products. Analogue of elxp 5055 for nonconstant 𝐵(𝑥). (Contributed by Mario Carneiro, 29-Dec-2014.)
Assertion
Ref Expression
eliunxp (𝐶 𝑥𝐴 ({𝑥} × 𝐵) ↔ ∃𝑥𝑦(𝐶 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝑦𝐵)))
Distinct variable groups:   𝑦,𝐴   𝑦,𝐵   𝑥,𝑦,𝐶
Allowed substitution hints:   𝐴(𝑥)   𝐵(𝑥)

Proof of Theorem eliunxp
StepHypRef Expression
1 relxp 5150 . . . . . 6 Rel ({𝑥} × 𝐵)
21rgenw 2908 . . . . 5 𝑥𝐴 Rel ({𝑥} × 𝐵)
3 reliun 5162 . . . . 5 (Rel 𝑥𝐴 ({𝑥} × 𝐵) ↔ ∀𝑥𝐴 Rel ({𝑥} × 𝐵))
42, 3mpbir 220 . . . 4 Rel 𝑥𝐴 ({𝑥} × 𝐵)
5 elrel 5145 . . . 4 ((Rel 𝑥𝐴 ({𝑥} × 𝐵) ∧ 𝐶 𝑥𝐴 ({𝑥} × 𝐵)) → ∃𝑥𝑦 𝐶 = ⟨𝑥, 𝑦⟩)
64, 5mpan 702 . . 3 (𝐶 𝑥𝐴 ({𝑥} × 𝐵) → ∃𝑥𝑦 𝐶 = ⟨𝑥, 𝑦⟩)
76pm4.71ri 663 . 2 (𝐶 𝑥𝐴 ({𝑥} × 𝐵) ↔ (∃𝑥𝑦 𝐶 = ⟨𝑥, 𝑦⟩ ∧ 𝐶 𝑥𝐴 ({𝑥} × 𝐵)))
8 nfiu1 4486 . . . 4 𝑥 𝑥𝐴 ({𝑥} × 𝐵)
98nfel2 2767 . . 3 𝑥 𝐶 𝑥𝐴 ({𝑥} × 𝐵)
10919.41 2090 . 2 (∃𝑥(∃𝑦 𝐶 = ⟨𝑥, 𝑦⟩ ∧ 𝐶 𝑥𝐴 ({𝑥} × 𝐵)) ↔ (∃𝑥𝑦 𝐶 = ⟨𝑥, 𝑦⟩ ∧ 𝐶 𝑥𝐴 ({𝑥} × 𝐵)))
11 19.41v 1901 . . . 4 (∃𝑦(𝐶 = ⟨𝑥, 𝑦⟩ ∧ 𝐶 𝑥𝐴 ({𝑥} × 𝐵)) ↔ (∃𝑦 𝐶 = ⟨𝑥, 𝑦⟩ ∧ 𝐶 𝑥𝐴 ({𝑥} × 𝐵)))
12 eleq1 2676 . . . . . . 7 (𝐶 = ⟨𝑥, 𝑦⟩ → (𝐶 𝑥𝐴 ({𝑥} × 𝐵) ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑥𝐴 ({𝑥} × 𝐵)))
13 opeliunxp 5093 . . . . . . 7 (⟨𝑥, 𝑦⟩ ∈ 𝑥𝐴 ({𝑥} × 𝐵) ↔ (𝑥𝐴𝑦𝐵))
1412, 13syl6bb 275 . . . . . 6 (𝐶 = ⟨𝑥, 𝑦⟩ → (𝐶 𝑥𝐴 ({𝑥} × 𝐵) ↔ (𝑥𝐴𝑦𝐵)))
1514pm5.32i 667 . . . . 5 ((𝐶 = ⟨𝑥, 𝑦⟩ ∧ 𝐶 𝑥𝐴 ({𝑥} × 𝐵)) ↔ (𝐶 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝑦𝐵)))
1615exbii 1764 . . . 4 (∃𝑦(𝐶 = ⟨𝑥, 𝑦⟩ ∧ 𝐶 𝑥𝐴 ({𝑥} × 𝐵)) ↔ ∃𝑦(𝐶 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝑦𝐵)))
1711, 16bitr3i 265 . . 3 ((∃𝑦 𝐶 = ⟨𝑥, 𝑦⟩ ∧ 𝐶 𝑥𝐴 ({𝑥} × 𝐵)) ↔ ∃𝑦(𝐶 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝑦𝐵)))
1817exbii 1764 . 2 (∃𝑥(∃𝑦 𝐶 = ⟨𝑥, 𝑦⟩ ∧ 𝐶 𝑥𝐴 ({𝑥} × 𝐵)) ↔ ∃𝑥𝑦(𝐶 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝑦𝐵)))
197, 10, 183bitr2i 287 1 (𝐶 𝑥𝐴 ({𝑥} × 𝐵) ↔ ∃𝑥𝑦(𝐶 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝑦𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wb 195  wa 383   = wceq 1475  wex 1695  wcel 1977  wral 2896  {csn 4125  cop 4131   ciun 4455   × cxp 5036  Rel wrel 5043
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pr 4833
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-iun 4457  df-opab 4644  df-xp 5044  df-rel 5045
This theorem is referenced by:  raliunxp  5183  dfmpt3  5927  mpt2mptx  6649  fsumcom2  14347  fsumcom2OLD  14348  fprodcom2  14553  fprodcom2OLD  14554  isfunc  16347  gsum2d2  18196  dprd2d2  18266  fsumvma  24738  mpt2mptxf  28860  poimirlem26  32605  dvnprodlem1  38836
  Copyright terms: Public domain W3C validator