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

Theorem preleqg 9062
Description: Equality of two unordered pairs when one member of each pair contains the other member. Closed form of preleq 9063. (Contributed by AV, 15-Jun-2022.)
Assertion
Ref Expression
preleqg (((𝐴𝐵𝐵𝑉𝐶𝐷) ∧ {𝐴, 𝐵} = {𝐶, 𝐷}) → (𝐴 = 𝐶𝐵 = 𝐷))

Proof of Theorem preleqg
StepHypRef Expression
1 elneq 9046 . . . . 5 (𝐴𝐵𝐴𝐵)
213ad2ant1 1130 . . . 4 ((𝐴𝐵𝐵𝑉𝐶𝐷) → 𝐴𝐵)
3 preq12nebg 4753 . . . 4 ((𝐴𝐵𝐵𝑉𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
42, 3syld3an3 1406 . . 3 ((𝐴𝐵𝐵𝑉𝐶𝐷) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
5 eleq12 2879 . . . . . . . . . 10 ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴𝐵𝐷𝐶))
6 elnotel 9057 . . . . . . . . . . 11 (𝐷𝐶 → ¬ 𝐶𝐷)
76pm2.21d 121 . . . . . . . . . 10 (𝐷𝐶 → (𝐶𝐷 → (𝐴 = 𝐶𝐵 = 𝐷)))
85, 7syl6bi 256 . . . . . . . . 9 ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴𝐵 → (𝐶𝐷 → (𝐴 = 𝐶𝐵 = 𝐷))))
98com3l 89 . . . . . . . 8 (𝐴𝐵 → (𝐶𝐷 → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 = 𝐶𝐵 = 𝐷))))
109a1d 25 . . . . . . 7 (𝐴𝐵 → (𝐵𝑉 → (𝐶𝐷 → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 = 𝐶𝐵 = 𝐷)))))
11103imp 1108 . . . . . 6 ((𝐴𝐵𝐵𝑉𝐶𝐷) → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 = 𝐶𝐵 = 𝐷)))
1211com12 32 . . . . 5 ((𝐴 = 𝐷𝐵 = 𝐶) → ((𝐴𝐵𝐵𝑉𝐶𝐷) → (𝐴 = 𝐶𝐵 = 𝐷)))
1312jao1i 855 . . . 4 (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → ((𝐴𝐵𝐵𝑉𝐶𝐷) → (𝐴 = 𝐶𝐵 = 𝐷)))
1413com12 32 . . 3 ((𝐴𝐵𝐵𝑉𝐶𝐷) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → (𝐴 = 𝐶𝐵 = 𝐷)))
154, 14sylbid 243 . 2 ((𝐴𝐵𝐵𝑉𝐶𝐷) → ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷)))
1615imp 410 1 (((𝐴𝐵𝐵𝑉𝐶𝐷) ∧ {𝐴, 𝐵} = {𝐶, 𝐷}) → (𝐴 = 𝐶𝐵 = 𝐷))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wo 844  w3a 1084   = wceq 1538  wcel 2111  wne 2987  {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  ax-sep 5167  ax-nul 5174  ax-pr 5295  ax-reg 9040
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-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-br 5031  df-opab 5093  df-eprel 5430  df-fr 5478
This theorem is referenced by:  preleq  9063
  Copyright terms: Public domain W3C validator