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

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

Proof of Theorem opthprneg
StepHypRef Expression
1 preq12bg 4786 . . . . 5 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
21adantlr 713 . . . 4 ((((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
3 idd 24 . . . . . . . 8 (𝐴𝐷 → ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴 = 𝐶𝐵 = 𝐷)))
4 df-ne 3019 . . . . . . . . . 10 (𝐴𝐷 ↔ ¬ 𝐴 = 𝐷)
5 pm2.21 123 . . . . . . . . . 10 𝐴 = 𝐷 → (𝐴 = 𝐷 → (𝐵 = 𝐶 → (𝐴 = 𝐶𝐵 = 𝐷))))
64, 5sylbi 219 . . . . . . . . 9 (𝐴𝐷 → (𝐴 = 𝐷 → (𝐵 = 𝐶 → (𝐴 = 𝐶𝐵 = 𝐷))))
76impd 413 . . . . . . . 8 (𝐴𝐷 → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 = 𝐶𝐵 = 𝐷)))
83, 7jaod 855 . . . . . . 7 (𝐴𝐷 → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → (𝐴 = 𝐶𝐵 = 𝐷)))
9 orc 863 . . . . . . 7 ((𝐴 = 𝐶𝐵 = 𝐷) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
108, 9impbid1 227 . . . . . 6 (𝐴𝐷 → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
1110adantl 484 . . . . 5 ((𝐴𝐵𝐴𝐷) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
1211ad2antlr 725 . . . 4 ((((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
132, 12bitrd 281 . . 3 ((((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
1413expcom 416 . 2 ((𝐶 ∈ V ∧ 𝐷 ∈ V) → (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷))))
15 ianor 978 . . 3 (¬ (𝐶 ∈ V ∧ 𝐷 ∈ V) ↔ (¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V))
16 simpl 485 . . . . . . . . . . 11 ((𝐴𝐵𝐴𝐷) → 𝐴𝐵)
1716anim2i 618 . . . . . . . . . 10 (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ((𝐴𝑉𝐵𝑊) ∧ 𝐴𝐵))
18 df-3an 1085 . . . . . . . . . 10 ((𝐴𝑉𝐵𝑊𝐴𝐵) ↔ ((𝐴𝑉𝐵𝑊) ∧ 𝐴𝐵))
1917, 18sylibr 236 . . . . . . . . 9 (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → (𝐴𝑉𝐵𝑊𝐴𝐵))
20 prneprprc 4793 . . . . . . . . 9 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ ¬ 𝐶 ∈ V) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
2119, 20sylan 582 . . . . . . . 8 ((((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) ∧ ¬ 𝐶 ∈ V) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
2221ancoms 461 . . . . . . 7 ((¬ 𝐶 ∈ V ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
23 eqneqall 3029 . . . . . . 7 ({𝐴, 𝐵} = {𝐶, 𝐷} → ({𝐴, 𝐵} ≠ {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷)))
2422, 23syl5com 31 . . . . . 6 ((¬ 𝐶 ∈ V ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷)))
25 prneprprc 4793 . . . . . . . . 9 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ ¬ 𝐷 ∈ V) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
2619, 25sylan 582 . . . . . . . 8 ((((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) ∧ ¬ 𝐷 ∈ V) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
2726ancoms 461 . . . . . . 7 ((¬ 𝐷 ∈ V ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
28 prcom 4670 . . . . . . . . 9 {𝐶, 𝐷} = {𝐷, 𝐶}
2928eqeq2i 2836 . . . . . . . 8 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐷, 𝐶})
30 eqneqall 3029 . . . . . . . 8 ({𝐴, 𝐵} = {𝐷, 𝐶} → ({𝐴, 𝐵} ≠ {𝐷, 𝐶} → (𝐴 = 𝐶𝐵 = 𝐷)))
3129, 30sylbi 219 . . . . . . 7 ({𝐴, 𝐵} = {𝐶, 𝐷} → ({𝐴, 𝐵} ≠ {𝐷, 𝐶} → (𝐴 = 𝐶𝐵 = 𝐷)))
3227, 31syl5com 31 . . . . . 6 ((¬ 𝐷 ∈ V ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷)))
3324, 32jaoian 953 . . . . 5 (((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷)))
34 preq12 4673 . . . . 5 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
3533, 34impbid1 227 . . . 4 (((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) ∧ ((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷))) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
3635ex 415 . . 3 ((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) → (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷))))
3715, 36sylbi 219 . 2 (¬ (𝐶 ∈ V ∧ 𝐷 ∈ V) → (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷))))
3814, 37pm2.61i 184 1 (((𝐴𝑉𝐵𝑊) ∧ (𝐴𝐵𝐴𝐷)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843  w3a 1083   = wceq 1537  wcel 2114  wne 3018  Vcvv 3496  {cpr 4571
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-v 3498  df-dif 3941  df-un 3943  df-nul 4294  df-sn 4570  df-pr 4572
This theorem is referenced by:  linds2eq  30943
  Copyright terms: Public domain W3C validator