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

Theorem elinxp 5884
Description: Membership in an intersection with a Cartesian product. (Contributed by Peter Mazsa, 9-Sep-2022.)
Assertion
Ref Expression
elinxp (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) ↔ ∃𝑥𝐴𝑦𝐵 (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅))
Distinct variable groups:   𝑥,𝑦,𝐴   𝑥,𝐵,𝑦   𝑥,𝐶,𝑦   𝑥,𝑅,𝑦

Proof of Theorem elinxp
StepHypRef Expression
1 relinxp 5681 . . . . 5 Rel (𝑅 ∩ (𝐴 × 𝐵))
2 elrel 5665 . . . . 5 ((Rel (𝑅 ∩ (𝐴 × 𝐵)) ∧ 𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵))) → ∃𝑥𝑦 𝐶 = ⟨𝑥, 𝑦⟩)
31, 2mpan 688 . . . 4 (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) → ∃𝑥𝑦 𝐶 = ⟨𝑥, 𝑦⟩)
4 eleq1 2900 . . . . . . . . 9 (𝐶 = ⟨𝑥, 𝑦⟩ → (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) ↔ ⟨𝑥, 𝑦⟩ ∈ (𝑅 ∩ (𝐴 × 𝐵))))
54biimpd 231 . . . . . . . 8 (𝐶 = ⟨𝑥, 𝑦⟩ → (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) → ⟨𝑥, 𝑦⟩ ∈ (𝑅 ∩ (𝐴 × 𝐵))))
6 opelinxp 5625 . . . . . . . . 9 (⟨𝑥, 𝑦⟩ ∈ (𝑅 ∩ (𝐴 × 𝐵)) ↔ ((𝑥𝐴𝑦𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅))
76biimpi 218 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ (𝑅 ∩ (𝐴 × 𝐵)) → ((𝑥𝐴𝑦𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅))
85, 7syl6com 37 . . . . . . 7 (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) → (𝐶 = ⟨𝑥, 𝑦⟩ → ((𝑥𝐴𝑦𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅)))
98ancld 553 . . . . . 6 (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) → (𝐶 = ⟨𝑥, 𝑦⟩ → (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐴𝑦𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅))))
10 an12 643 . . . . . 6 ((𝐶 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐴𝑦𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅)) ↔ ((𝑥𝐴𝑦𝐵) ∧ (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅)))
119, 10syl6ib 253 . . . . 5 (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) → (𝐶 = ⟨𝑥, 𝑦⟩ → ((𝑥𝐴𝑦𝐵) ∧ (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅))))
12112eximdv 1916 . . . 4 (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) → (∃𝑥𝑦 𝐶 = ⟨𝑥, 𝑦⟩ → ∃𝑥𝑦((𝑥𝐴𝑦𝐵) ∧ (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅))))
133, 12mpd 15 . . 3 (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) → ∃𝑥𝑦((𝑥𝐴𝑦𝐵) ∧ (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅)))
14 r2ex 3303 . . 3 (∃𝑥𝐴𝑦𝐵 (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅) ↔ ∃𝑥𝑦((𝑥𝐴𝑦𝐵) ∧ (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅)))
1513, 14sylibr 236 . 2 (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) → ∃𝑥𝐴𝑦𝐵 (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅))
166simplbi2 503 . . . . 5 ((𝑥𝐴𝑦𝐵) → (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ (𝑅 ∩ (𝐴 × 𝐵))))
174biimprd 250 . . . . 5 (𝐶 = ⟨𝑥, 𝑦⟩ → (⟨𝑥, 𝑦⟩ ∈ (𝑅 ∩ (𝐴 × 𝐵)) → 𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵))))
1816, 17syl9 77 . . . 4 ((𝑥𝐴𝑦𝐵) → (𝐶 = ⟨𝑥, 𝑦⟩ → (⟨𝑥, 𝑦⟩ ∈ 𝑅𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)))))
1918impd 413 . . 3 ((𝑥𝐴𝑦𝐵) → ((𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅) → 𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵))))
2019rexlimivv 3292 . 2 (∃𝑥𝐴𝑦𝐵 (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅) → 𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)))
2115, 20impbii 211 1 (𝐶 ∈ (𝑅 ∩ (𝐴 × 𝐵)) ↔ ∃𝑥𝐴𝑦𝐵 (𝐶 = ⟨𝑥, 𝑦⟩ ∧ ⟨𝑥, 𝑦⟩ ∈ 𝑅))
Colors of variables: wff setvar class
Syntax hints:  wb 208  wa 398   = wceq 1533  wex 1776  wcel 2110  wrex 3139  cin 3934  cop 4566   × cxp 5547  Rel wrel 5554
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pr 5321
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-sn 4561  df-pr 4563  df-op 4567  df-br 5059  df-opab 5121  df-xp 5555  df-rel 5556
This theorem is referenced by:  elres  5885  elidinxp  5905
  Copyright terms: Public domain W3C validator