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

Theorem preq12nebg 4790
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 1146 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴𝑉𝐵𝑊))
21anim1i 614 . . . . 5 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)))
32ancoms 458 . . . 4 (((𝐶 ∈ V ∧ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)))
4 preq12bg 4781 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
53, 4syl 17 . . 3 (((𝐶 ∈ V ∧ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
65ex 412 . 2 ((𝐶 ∈ V ∧ 𝐷 ∈ V) → ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
7 ianor 978 . . 3 (¬ (𝐶 ∈ V ∧ 𝐷 ∈ V) ↔ (¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V))
8 prneprprc 4788 . . . . . . . 8 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ ¬ 𝐶 ∈ V) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
98ancoms 458 . . . . . . 7 ((¬ 𝐶 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
10 eqneqall 2953 . . . . . . 7 ({𝐴, 𝐵} = {𝐶, 𝐷} → ({𝐴, 𝐵} ≠ {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
119, 10syl5com 31 . . . . . 6 ((¬ 𝐶 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
12 prneprprc 4788 . . . . . . . 8 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ ¬ 𝐷 ∈ V) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
1312ancoms 458 . . . . . . 7 ((¬ 𝐷 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
14 prcom 4665 . . . . . . . . 9 {𝐶, 𝐷} = {𝐷, 𝐶}
1514eqeq2i 2751 . . . . . . . 8 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐷, 𝐶})
16 eqneqall 2953 . . . . . . . 8 ({𝐴, 𝐵} = {𝐷, 𝐶} → ({𝐴, 𝐵} ≠ {𝐷, 𝐶} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
1715, 16sylbi 216 . . . . . . 7 ({𝐴, 𝐵} = {𝐶, 𝐷} → ({𝐴, 𝐵} ≠ {𝐷, 𝐶} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
1813, 17syl5com 31 . . . . . 6 ((¬ 𝐷 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
1911, 18jaoian 953 . . . . 5 (((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
20 preq12 4668 . . . . . 6 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
21 preq12 4668 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐷, 𝐶})
22 prcom 4665 . . . . . . 7 {𝐷, 𝐶} = {𝐶, 𝐷}
2321, 22eqtrdi 2795 . . . . . 6 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶, 𝐷})
2420, 23jaoi 853 . . . . 5 (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → {𝐴, 𝐵} = {𝐶, 𝐷})
2519, 24impbid1 224 . . . 4 (((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
2625ex 412 . . 3 ((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) → ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
277, 26sylbi 216 . 2 (¬ (𝐶 ∈ V ∧ 𝐷 ∈ V) → ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
286, 27pm2.61i 182 1 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108  wne 2942  Vcvv 3422  {cpr 4560
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
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-ne 2943  df-v 3424  df-dif 3886  df-un 3888  df-nul 4254  df-sn 4559  df-pr 4561
This theorem is referenced by:  prel12g  4791  opthhausdorff  5425  preleqg  9303  pr2cv  41044
  Copyright terms: Public domain W3C validator