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

Theorem preq12nebg 4792
Description: Equality relationship for two proper unordered pairs. (Contributed by AV, 12-Jun-2022.)
Assertion
Ref Expression
preq12nebg ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))

Proof of Theorem preq12nebg
StepHypRef Expression
1 3simpa 1144 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴𝑉𝐵𝑊))
21anim1i 616 . . . . 5 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)))
32ancoms 461 . . . 4 (((𝐶 ∈ V ∧ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)))
4 preq12bg 4783 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
53, 4syl 17 . . 3 (((𝐶 ∈ V ∧ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
65ex 415 . 2 ((𝐶 ∈ V ∧ 𝐷 ∈ V) → ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
7 ianor 978 . . 3 (¬ (𝐶 ∈ V ∧ 𝐷 ∈ V) ↔ (¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V))
8 prneprprc 4790 . . . . . . . 8 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ ¬ 𝐶 ∈ V) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
98ancoms 461 . . . . . . 7 ((¬ 𝐶 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
10 eqneqall 3027 . . . . . . 7 ({𝐴, 𝐵} = {𝐶, 𝐷} → ({𝐴, 𝐵} ≠ {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
119, 10syl5com 31 . . . . . 6 ((¬ 𝐶 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
12 prneprprc 4790 . . . . . . . 8 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ ¬ 𝐷 ∈ V) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
1312ancoms 461 . . . . . . 7 ((¬ 𝐷 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
14 prcom 4667 . . . . . . . . 9 {𝐶, 𝐷} = {𝐷, 𝐶}
1514eqeq2i 2834 . . . . . . . 8 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐷, 𝐶})
16 eqneqall 3027 . . . . . . . 8 ({𝐴, 𝐵} = {𝐷, 𝐶} → ({𝐴, 𝐵} ≠ {𝐷, 𝐶} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
1715, 16sylbi 219 . . . . . . 7 ({𝐴, 𝐵} = {𝐶, 𝐷} → ({𝐴, 𝐵} ≠ {𝐷, 𝐶} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
1813, 17syl5com 31 . . . . . 6 ((¬ 𝐷 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
1911, 18jaoian 953 . . . . 5 (((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
20 preq12 4670 . . . . . 6 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
21 preq12 4670 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐷, 𝐶})
22 prcom 4667 . . . . . . 7 {𝐷, 𝐶} = {𝐶, 𝐷}
2321, 22syl6eq 2872 . . . . . 6 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶, 𝐷})
2420, 23jaoi 853 . . . . 5 (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → {𝐴, 𝐵} = {𝐶, 𝐷})
2519, 24impbid1 227 . . . 4 (((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
2625ex 415 . . 3 ((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) → ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
277, 26sylbi 219 . 2 (¬ (𝐶 ∈ V ∧ 𝐷 ∈ V) → ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
286, 27pm2.61i 184 1 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843  w3a 1083   = wceq 1533  wcel 2110  wne 3016  Vcvv 3494  {cpr 4568
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
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-ne 3017  df-v 3496  df-dif 3938  df-un 3940  df-nul 4291  df-sn 4567  df-pr 4569
This theorem is referenced by:  prel12g  4793  opthhausdorff  5406  preleqg  9077  pr2cv  39905
  Copyright terms: Public domain W3C validator