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

Theorem preq12b 4773
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 4690 . . . . 5 𝐴 ∈ {𝐴, 𝐵}
3 eleq2 2898 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 ∈ {𝐴, 𝐵} ↔ 𝐴 ∈ {𝐶, 𝐷}))
42, 3mpbii 234 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐴 ∈ {𝐶, 𝐷})
51elpr 4580 . . . 4 (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷))
64, 5sylib 219 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐴 = 𝐷))
7 preq1 4661 . . . . . . . 8 (𝐴 = 𝐶 → {𝐴, 𝐵} = {𝐶, 𝐵})
87eqeq1d 2820 . . . . . . 7 (𝐴 = 𝐶 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐶, 𝐵} = {𝐶, 𝐷}))
9 preqr1.b . . . . . . . 8 𝐵 ∈ V
10 preq12b.d . . . . . . . 8 𝐷 ∈ V
119, 10preqr2 4772 . . . . . . 7 ({𝐶, 𝐵} = {𝐶, 𝐷} → 𝐵 = 𝐷)
128, 11syl6bi 254 . . . . . 6 (𝐴 = 𝐶 → ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐵 = 𝐷))
1312com12 32 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷))
1413ancld 551 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶 → (𝐴 = 𝐶𝐵 = 𝐷)))
15 prcom 4660 . . . . . . 7 {𝐶, 𝐷} = {𝐷, 𝐶}
1615eqeq2i 2831 . . . . . 6 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐷, 𝐶})
17 preq1 4661 . . . . . . . . 9 (𝐴 = 𝐷 → {𝐴, 𝐵} = {𝐷, 𝐵})
1817eqeq1d 2820 . . . . . . . 8 (𝐴 = 𝐷 → ({𝐴, 𝐵} = {𝐷, 𝐶} ↔ {𝐷, 𝐵} = {𝐷, 𝐶}))
19 preq12b.c . . . . . . . . 9 𝐶 ∈ V
209, 19preqr2 4772 . . . . . . . 8 ({𝐷, 𝐵} = {𝐷, 𝐶} → 𝐵 = 𝐶)
2118, 20syl6bi 254 . . . . . . 7 (𝐴 = 𝐷 → ({𝐴, 𝐵} = {𝐷, 𝐶} → 𝐵 = 𝐶))
2221com12 32 . . . . . 6 ({𝐴, 𝐵} = {𝐷, 𝐶} → (𝐴 = 𝐷𝐵 = 𝐶))
2316, 22sylbi 218 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐷𝐵 = 𝐶))
2423ancld 551 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐷 → (𝐴 = 𝐷𝐵 = 𝐶)))
2514, 24orim12d 958 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐴 = 𝐷) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
266, 25mpd 15 . 2 ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
27 preq12 4663 . . 3 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
28 preq12 4663 . . . 4 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐷, 𝐶})
29 prcom 4660 . . . 4 {𝐷, 𝐶} = {𝐶, 𝐷}
3028, 29syl6eq 2869 . . 3 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶, 𝐷})
3127, 30jaoi 851 . 2 (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → {𝐴, 𝐵} = {𝐶, 𝐷})
3226, 31impbii 210 1 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 207  wa 396  wo 841   = wceq 1528  wcel 2105  Vcvv 3492  {cpr 4559
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-v 3494  df-un 3938  df-sn 4558  df-pr 4560
This theorem is referenced by:  opthpr  4774  preq12bg  4776  opeqpr  5386  opthhausdorff0  5399  axlowdimlem13  26667  upgrwlkdvdelem  27444  altopthsn  33319  sprsymrelfolem2  43532  prproropf1olem4  43545  reuopreuprim  43565  isomuspgrlem1  43869  rrx2xpref1o  44633
  Copyright terms: Public domain W3C validator