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

Theorem preq12nebg 4753
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 1145 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴𝑉𝐵𝑊))
21anim1i 617 . . . . 5 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)))
32ancoms 462 . . . 4 (((𝐶 ∈ V ∧ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)))
4 preq12bg 4744 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
53, 4syl 17 . . 3 (((𝐶 ∈ V ∧ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
65ex 416 . 2 ((𝐶 ∈ V ∧ 𝐷 ∈ V) → ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
7 ianor 979 . . 3 (¬ (𝐶 ∈ V ∧ 𝐷 ∈ V) ↔ (¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V))
8 prneprprc 4751 . . . . . . . 8 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ ¬ 𝐶 ∈ V) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
98ancoms 462 . . . . . . 7 ((¬ 𝐶 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → {𝐴, 𝐵} ≠ {𝐶, 𝐷})
10 eqneqall 2998 . . . . . . 7 ({𝐴, 𝐵} = {𝐶, 𝐷} → ({𝐴, 𝐵} ≠ {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
119, 10syl5com 31 . . . . . 6 ((¬ 𝐶 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
12 prneprprc 4751 . . . . . . . 8 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ ¬ 𝐷 ∈ V) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
1312ancoms 462 . . . . . . 7 ((¬ 𝐷 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → {𝐴, 𝐵} ≠ {𝐷, 𝐶})
14 prcom 4628 . . . . . . . . 9 {𝐶, 𝐷} = {𝐷, 𝐶}
1514eqeq2i 2811 . . . . . . . 8 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐷, 𝐶})
16 eqneqall 2998 . . . . . . . 8 ({𝐴, 𝐵} = {𝐷, 𝐶} → ({𝐴, 𝐵} ≠ {𝐷, 𝐶} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
1715, 16sylbi 220 . . . . . . 7 ({𝐴, 𝐵} = {𝐶, 𝐷} → ({𝐴, 𝐵} ≠ {𝐷, 𝐶} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
1813, 17syl5com 31 . . . . . 6 ((¬ 𝐷 ∈ V ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
1911, 18jaoian 954 . . . . 5 (((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
20 preq12 4631 . . . . . 6 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
21 preq12 4631 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐷, 𝐶})
22 prcom 4628 . . . . . . 7 {𝐷, 𝐶} = {𝐶, 𝐷}
2321, 22eqtrdi 2849 . . . . . 6 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶, 𝐷})
2420, 23jaoi 854 . . . . 5 (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → {𝐴, 𝐵} = {𝐶, 𝐷})
2519, 24impbid1 228 . . . 4 (((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) ∧ (𝐴𝑉𝐵𝑊𝐴𝐵)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
2625ex 416 . . 3 ((¬ 𝐶 ∈ V ∨ ¬ 𝐷 ∈ V) → ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
277, 26sylbi 220 . 2 (¬ (𝐶 ∈ V ∧ 𝐷 ∈ V) → ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
286, 27pm2.61i 185 1 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 844  w3a 1084   = wceq 1538  wcel 2111  wne 2987  Vcvv 3441  {cpr 4527
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-v 3443  df-dif 3884  df-un 3886  df-nul 4244  df-sn 4526  df-pr 4528
This theorem is referenced by:  prel12g  4754  opthhausdorff  5372  preleqg  9062  pr2cv  40247
  Copyright terms: Public domain W3C validator