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

Theorem preq12b 4781
Description: Equality relationship for two unordered pairs. (Contributed by NM, 17-Oct-1996.)
Hypotheses
Ref Expression
preqr1.a 𝐴 ∈ V
preqr1.b 𝐵 ∈ V
preq12b.c 𝐶 ∈ V
preq12b.d 𝐷 ∈ V
Assertion
Ref Expression
preq12b ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))

Proof of Theorem preq12b
StepHypRef Expression
1 preqr1.a . . . . . 6 𝐴 ∈ V
21prid1 4698 . . . . 5 𝐴 ∈ {𝐴, 𝐵}
3 eleq2 2901 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 ∈ {𝐴, 𝐵} ↔ 𝐴 ∈ {𝐶, 𝐷}))
42, 3mpbii 235 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐴 ∈ {𝐶, 𝐷})
51elpr 4590 . . . 4 (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷))
64, 5sylib 220 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐴 = 𝐷))
7 preq1 4669 . . . . . . . 8 (𝐴 = 𝐶 → {𝐴, 𝐵} = {𝐶, 𝐵})
87eqeq1d 2823 . . . . . . 7 (𝐴 = 𝐶 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐶, 𝐵} = {𝐶, 𝐷}))
9 preqr1.b . . . . . . . 8 𝐵 ∈ V
10 preq12b.d . . . . . . . 8 𝐷 ∈ V
119, 10preqr2 4780 . . . . . . 7 ({𝐶, 𝐵} = {𝐶, 𝐷} → 𝐵 = 𝐷)
128, 11syl6bi 255 . . . . . 6 (𝐴 = 𝐶 → ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐵 = 𝐷))
1312com12 32 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷))
1413ancld 553 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶 → (𝐴 = 𝐶𝐵 = 𝐷)))
15 prcom 4668 . . . . . . 7 {𝐶, 𝐷} = {𝐷, 𝐶}
1615eqeq2i 2834 . . . . . 6 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐷, 𝐶})
17 preq1 4669 . . . . . . . . 9 (𝐴 = 𝐷 → {𝐴, 𝐵} = {𝐷, 𝐵})
1817eqeq1d 2823 . . . . . . . 8 (𝐴 = 𝐷 → ({𝐴, 𝐵} = {𝐷, 𝐶} ↔ {𝐷, 𝐵} = {𝐷, 𝐶}))
19 preq12b.c . . . . . . . . 9 𝐶 ∈ V
209, 19preqr2 4780 . . . . . . . 8 ({𝐷, 𝐵} = {𝐷, 𝐶} → 𝐵 = 𝐶)
2118, 20syl6bi 255 . . . . . . 7 (𝐴 = 𝐷 → ({𝐴, 𝐵} = {𝐷, 𝐶} → 𝐵 = 𝐶))
2221com12 32 . . . . . 6 ({𝐴, 𝐵} = {𝐷, 𝐶} → (𝐴 = 𝐷𝐵 = 𝐶))
2316, 22sylbi 219 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐷𝐵 = 𝐶))
2423ancld 553 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐷 → (𝐴 = 𝐷𝐵 = 𝐶)))
2514, 24orim12d 961 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐴 = 𝐷) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
266, 25mpd 15 . 2 ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
27 preq12 4671 . . 3 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
28 preq12 4671 . . . 4 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐷, 𝐶})
29 prcom 4668 . . . 4 {𝐷, 𝐶} = {𝐶, 𝐷}
3028, 29syl6eq 2872 . . 3 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶, 𝐷})
3127, 30jaoi 853 . 2 (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → {𝐴, 𝐵} = {𝐶, 𝐷})
3226, 31impbii 211 1 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wo 843   = wceq 1537  wcel 2114  Vcvv 3494  {cpr 4569
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 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-v 3496  df-un 3941  df-sn 4568  df-pr 4570
This theorem is referenced by:  opthpr  4782  preq12bg  4784  opeqpr  5395  opthhausdorff0  5408  axlowdimlem13  26740  upgrwlkdvdelem  27517  altopthsn  33422  sprsymrelfolem2  43675  prproropf1olem4  43688  reuopreuprim  43708  isomuspgrlem1  44012  rrx2xpref1o  44725
  Copyright terms: Public domain W3C validator