Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  poprelb Structured version   Visualization version   GIF version

Theorem poprelb 44864
Description: Equality for unordered pairs with partially ordered elements. (Contributed by AV, 9-Jul-2023.)
Assertion
Ref Expression
poprelb (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷)))

Proof of Theorem poprelb
StepHypRef Expression
1 simp2 1135 . . 3 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → (𝐴𝑋𝐵𝑋))
2 an3 655 . . . . 5 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → (Rel 𝑅𝐶𝑅𝐷))
323adant2 1129 . . . 4 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → (Rel 𝑅𝐶𝑅𝐷))
4 brrelex12 5630 . . . 4 ((Rel 𝑅𝐶𝑅𝐷) → (𝐶 ∈ V ∧ 𝐷 ∈ V))
53, 4syl 17 . . 3 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → (𝐶 ∈ V ∧ 𝐷 ∈ V))
6 preq12bg 4781 . . 3 (((𝐴𝑋𝐵𝑋) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
71, 5, 6syl2anc 583 . 2 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
8 idd 24 . . . 4 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴 = 𝐶𝐵 = 𝐷)))
9 breq12 5075 . . . . . . . . . . 11 ((𝐵 = 𝐶𝐴 = 𝐷) → (𝐵𝑅𝐴𝐶𝑅𝐷))
109ancoms 458 . . . . . . . . . 10 ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐵𝑅𝐴𝐶𝑅𝐷))
1110bicomd 222 . . . . . . . . 9 ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐶𝑅𝐷𝐵𝑅𝐴))
1211anbi2d 628 . . . . . . . 8 ((𝐴 = 𝐷𝐵 = 𝐶) → ((𝐴𝑅𝐵𝐶𝑅𝐷) ↔ (𝐴𝑅𝐵𝐵𝑅𝐴)))
13 po2nr 5508 . . . . . . . . . . . 12 ((𝑅 Po 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → ¬ (𝐴𝑅𝐵𝐵𝑅𝐴))
1413adantll 710 . . . . . . . . . . 11 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋)) → ¬ (𝐴𝑅𝐵𝐵𝑅𝐴))
1514pm2.21d 121 . . . . . . . . . 10 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋)) → ((𝐴𝑅𝐵𝐵𝑅𝐴) → (𝐴 = 𝐶𝐵 = 𝐷)))
1615ex 412 . . . . . . . . 9 ((Rel 𝑅𝑅 Po 𝑋) → ((𝐴𝑋𝐵𝑋) → ((𝐴𝑅𝐵𝐵𝑅𝐴) → (𝐴 = 𝐶𝐵 = 𝐷))))
1716com13 88 . . . . . . . 8 ((𝐴𝑅𝐵𝐵𝑅𝐴) → ((𝐴𝑋𝐵𝑋) → ((Rel 𝑅𝑅 Po 𝑋) → (𝐴 = 𝐶𝐵 = 𝐷))))
1812, 17syl6bi 252 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐶) → ((𝐴𝑅𝐵𝐶𝑅𝐷) → ((𝐴𝑋𝐵𝑋) → ((Rel 𝑅𝑅 Po 𝑋) → (𝐴 = 𝐶𝐵 = 𝐷)))))
1918com23 86 . . . . . 6 ((𝐴 = 𝐷𝐵 = 𝐶) → ((𝐴𝑋𝐵𝑋) → ((𝐴𝑅𝐵𝐶𝑅𝐷) → ((Rel 𝑅𝑅 Po 𝑋) → (𝐴 = 𝐶𝐵 = 𝐷)))))
2019com14 96 . . . . 5 ((Rel 𝑅𝑅 Po 𝑋) → ((𝐴𝑋𝐵𝑋) → ((𝐴𝑅𝐵𝐶𝑅𝐷) → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 = 𝐶𝐵 = 𝐷)))))
21203imp 1109 . . . 4 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 = 𝐶𝐵 = 𝐷)))
228, 21jaod 855 . . 3 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → (𝐴 = 𝐶𝐵 = 𝐷)))
23 orc 863 . . 3 ((𝐴 = 𝐶𝐵 = 𝐷) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
2422, 23impbid1 224 . 2 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
257, 24bitrd 278 1 (((Rel 𝑅𝑅 Po 𝑋) ∧ (𝐴𝑋𝐵𝑋) ∧ (𝐴𝑅𝐵𝐶𝑅𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108  Vcvv 3422  {cpr 4560   class class class wbr 5070   Po wpo 5492  Rel wrel 5585
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-br 5071  df-opab 5133  df-po 5494  df-xp 5586  df-rel 5587
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator