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

Theorem opthprneg 4800
Description: An unordered pair has the ordered pair property (compare opth 5393) under certain conditions. Variant of opthpr 4787 in closed form. (Contributed by AV, 13-Jun-2022.)
Assertion
Ref Expression
opthprneg (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷)))

Proof of Theorem opthprneg
StepHypRef Expression
1 preq12bg 4789 . . . . 5 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
21adantlr 711 . . . 4 ((((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
3 idd 24 . . . . . . . 8 (𝐴𝐷 → ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴 = 𝐶𝐵 = 𝐷)))
4 df-ne 2945 . . . . . . . . . 10 (𝐴𝐷 ↔ ¬ 𝐴 = 𝐷)
5 pm2.21 123 . . . . . . . . . 10 𝐴 = 𝐷 → (𝐴 = 𝐷 → (𝐵 = 𝐶 → (𝐴 = 𝐶𝐵 = 𝐷))))
64, 5sylbi 216 . . . . . . . . 9 (𝐴𝐷 → (𝐴 = 𝐷 → (𝐵 = 𝐶 → (𝐴 = 𝐶𝐵 = 𝐷))))
76impd 410 . . . . . . . 8 (𝐴𝐷 → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 = 𝐶𝐵 = 𝐷)))
83, 7jaod 855 . . . . . . 7 (𝐴𝐷 → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → (𝐴 = 𝐶𝐵 = 𝐷)))
9 orc 863 . . . . . . 7 ((𝐴 = 𝐶𝐵 = 𝐷) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
108, 9impbid1 224 . . . . . 6 (𝐴𝐷 → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
1110adantl 481 . . . . 5 ((𝐴𝐵𝐴𝐷) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
1211ad2antlr 723 . . . 4 ((((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
132, 12bitrd 278 . . 3 ((((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
1413expcom 413 . 2 ((𝐶 ∈ V ∧ 𝐷 ∈ V) → (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷))))
15 ianor 978 . . 3 (¬ (𝐶 ∈ V ∧ 𝐷 ∈ V) ↔ (¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V))
16 simpl 482 . . . . . . . . . . 11 ((𝐴𝐵𝐴𝐷) → 𝐴𝐵)
1716anim2i 616 . . . . . . . . . 10 (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ((𝐴𝑉𝐵𝑊) ∧ 𝐴𝐵))
18 df-3an 1087 . . . . . . . . . 10 ((𝐴𝑉𝐵𝑊𝐴𝐵) ↔ ((𝐴𝑉𝐵𝑊) ∧ 𝐴𝐵))
1917, 18sylibr 233 . . . . . . . . 9 (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → (𝐴𝑉𝐵𝑊𝐴𝐵))
20 prneprprc 4796 . . . . . . . . 9 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ ¬ 𝐶 ∈ V) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
2119, 20sylan 579 . . . . . . . 8 ((((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) ∧ ¬ 𝐶 ∈ V) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
2221ancoms 458 . . . . . . 7 ((¬ 𝐶 ∈ V ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
23 eqneqall 2955 . . . . . . 7 ({𝐴, 𝐵} = {𝐶, 𝐷} → ({𝐴, 𝐵} ≠ {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷)))
2422, 23syl5com 31 . . . . . 6 ((¬ 𝐶 ∈ V ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷)))
25 prneprprc 4796 . . . . . . . . 9 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ ¬ 𝐷 ∈ V) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
2619, 25sylan 579 . . . . . . . 8 ((((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) ∧ ¬ 𝐷 ∈ V) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
2726ancoms 458 . . . . . . 7 ((¬ 𝐷 ∈ V ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
28 prcom 4673 . . . . . . . . 9 {𝐶, 𝐷} = {𝐷, 𝐶}
2928eqeq2i 2752 . . . . . . . 8 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐷, 𝐶})
30 eqneqall 2955 . . . . . . . 8 ({𝐴, 𝐵} = {𝐷, 𝐶} → ({𝐴, 𝐵} ≠ {𝐷, 𝐶} → (𝐴 = 𝐶𝐵 = 𝐷)))
3129, 30sylbi 216 . . . . . . 7 ({𝐴, 𝐵} = {𝐶, 𝐷} → ({𝐴, 𝐵} ≠ {𝐷, 𝐶} → (𝐴 = 𝐶𝐵 = 𝐷)))
3227, 31syl5com 31 . . . . . 6 ((¬ 𝐷 ∈ V ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷)))
3324, 32jaoian 953 . . . . 5 (((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷)))
34 preq12 4676 . . . . 5 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
3533, 34impbid1 224 . . . 4 (((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
3635ex 412 . . 3 ((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) → (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷))))
3715, 36sylbi 216 . 2 (¬ (𝐶 ∈ V ∧ 𝐷 ∈ V) → (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷))))
3814, 37pm2.61i 182 1 (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1541  wcel 2109  wne 2944  Vcvv 3430  {cpr 4568
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-ext 2710
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-sb 2071  df-clab 2717  df-cleq 2731  df-clel 2817  df-ne 2945  df-v 3432  df-dif 3894  df-un 3896  df-nul 4262  df-sn 4567  df-pr 4569
This theorem is referenced by:  linds2eq  31554
  Copyright terms: Public domain W3C validator