Users' Mathboxes Mathbox for Zhi Wang < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  brab2dd Structured version   Visualization version   GIF version

Theorem brab2dd 49319
Description: Expressing that two sets are related by a binary relation which is expressed as a class abstraction of ordered pairs. (Contributed by Zhi Wang, 24-Sep-2025.)
Hypotheses
Ref Expression
brab2dd.1 (𝜑𝑅 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐶𝑦𝐷) ∧ 𝜓)})
brab2dd.2 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → (𝜓𝜒))
brab2dd.3 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → ((𝑥𝐶𝑦𝐷) ↔ (𝐴𝑈𝐵𝑉)))
Assertion
Ref Expression
brab2dd (𝜑 → (𝐴𝑅𝐵 ↔ ((𝐴𝑈𝐵𝑉) ∧ 𝜒)))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝑈,𝑦   𝑥,𝑉,𝑦   𝜒,𝑥,𝑦   𝜑,𝑥,𝑦
Allowed substitution hints:   𝜓(𝑥,𝑦)   𝐶(𝑥,𝑦)   𝐷(𝑥,𝑦)   𝑅(𝑥,𝑦)

Proof of Theorem brab2dd
StepHypRef Expression
1 df-br 5080 . . . 4 (𝐴𝑅𝐵 ↔ ⟨𝐴, 𝐵⟩ ∈ 𝑅)
2 brab2dd.1 . . . . 5 (𝜑𝑅 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐶𝑦𝐷) ∧ 𝜓)})
32eleq2d 2826 . . . 4 (𝜑 → (⟨𝐴, 𝐵⟩ ∈ 𝑅 ↔ ⟨𝐴, 𝐵⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐶𝑦𝐷) ∧ 𝜓)}))
41, 3bitrid 284 . . 3 (𝜑 → (𝐴𝑅𝐵 ↔ ⟨𝐴, 𝐵⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐶𝑦𝐷) ∧ 𝜓)}))
5 elopab 5476 . . 3 (⟨𝐴, 𝐵⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐶𝑦𝐷) ∧ 𝜓)} ↔ ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓)))
64, 5bitrdi 288 . 2 (𝜑 → (𝐴𝑅𝐵 ↔ ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓))))
7 simpl 483 . . . . . . 7 ((𝜑 ∧ (⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓))) → 𝜑)
8 eqcom 2747 . . . . . . . . 9 (⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩ ↔ ⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩)
9 vex 3436 . . . . . . . . . 10 𝑥 ∈ V
10 vex 3436 . . . . . . . . . 10 𝑦 ∈ V
119, 10opth 5423 . . . . . . . . 9 (⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩ ↔ (𝑥 = 𝐴𝑦 = 𝐵))
128, 11sylbb1 238 . . . . . . . 8 (⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ → (𝑥 = 𝐴𝑦 = 𝐵))
1312ad2antrl 734 . . . . . . 7 ((𝜑 ∧ (⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓))) → (𝑥 = 𝐴𝑦 = 𝐵))
14 simprrl 786 . . . . . . 7 ((𝜑 ∧ (⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓))) → (𝑥𝐶𝑦𝐷))
15 brab2dd.3 . . . . . . . 8 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → ((𝑥𝐶𝑦𝐷) ↔ (𝐴𝑈𝐵𝑉)))
1615biimpa 477 . . . . . . 7 (((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) ∧ (𝑥𝐶𝑦𝐷)) → (𝐴𝑈𝐵𝑉))
177, 13, 14, 16syl21anc 843 . . . . . 6 ((𝜑 ∧ (⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓))) → (𝐴𝑈𝐵𝑉))
1817ex 413 . . . . 5 (𝜑 → ((⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓)) → (𝐴𝑈𝐵𝑉)))
1918exlimdvv 1941 . . . 4 (𝜑 → (∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓)) → (𝐴𝑈𝐵𝑉)))
2019imp 407 . . 3 ((𝜑 ∧ ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓))) → (𝐴𝑈𝐵𝑉))
21 simprl 776 . . 3 ((𝜑 ∧ ((𝐴𝑈𝐵𝑉) ∧ 𝜒)) → (𝐴𝑈𝐵𝑉))
22 simprl 776 . . . 4 ((𝜑 ∧ (𝐴𝑈𝐵𝑉)) → 𝐴𝑈)
23 simprr 778 . . . 4 ((𝜑 ∧ (𝐴𝑈𝐵𝑉)) → 𝐵𝑉)
24 brab2dd.2 . . . . . 6 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → (𝜓𝜒))
2515, 24anbi12d 638 . . . . 5 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → (((𝑥𝐶𝑦𝐷) ∧ 𝜓) ↔ ((𝐴𝑈𝐵𝑉) ∧ 𝜒)))
2625adantlr 721 . . . 4 (((𝜑 ∧ (𝐴𝑈𝐵𝑉)) ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → (((𝑥𝐶𝑦𝐷) ∧ 𝜓) ↔ ((𝐴𝑈𝐵𝑉) ∧ 𝜒)))
2722, 23, 26copsex2dv 5442 . . 3 ((𝜑 ∧ (𝐴𝑈𝐵𝑉)) → (∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓)) ↔ ((𝐴𝑈𝐵𝑉) ∧ 𝜒)))
2820, 21, 27bibiad 845 . 2 (𝜑 → (∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ ((𝑥𝐶𝑦𝐷) ∧ 𝜓)) ↔ ((𝐴𝑈𝐵𝑉) ∧ 𝜒)))
296, 28bitrd 280 1 (𝜑 → (𝐴𝑅𝐵 ↔ ((𝐴𝑈𝐵𝑉) ∧ 𝜒)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 207  wa 396   = wceq 1547  wex 1786  wcel 2119  cop 4568   class class class wbr 5079  {copab 5141
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1974  ax-7 2015  ax-8 2121  ax-9 2129  ax-10 2152  ax-11 2168  ax-12 2189  ax-ext 2712  ax-sep 5225  ax-pr 5369
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 854  df-3an 1094  df-tru 1550  df-fal 1560  df-ex 1787  df-nf 1791  df-sb 2074  df-mo 2543  df-eu 2573  df-clab 2719  df-cleq 2732  df-clel 2815  df-rab 3393  df-v 3434  df-dif 3893  df-un 3895  df-in 3897  df-ss 3907  df-nul 4269  df-if 4462  df-sn 4563  df-pr 4565  df-op 4569  df-br 5080  df-opab 5142
This theorem is referenced by:  brab2ddw  49320  brab2ddw2  49321
  Copyright terms: Public domain W3C validator