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

Theorem preq12b 4775
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 4692 . . . . 5 𝐴 ∈ {𝐴, 𝐵}
3 eleq2 2901 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 ∈ {𝐴, 𝐵} ↔ 𝐴 ∈ {𝐶, 𝐷}))
42, 3mpbii 234 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐴 ∈ {𝐶, 𝐷})
51elpr 4582 . . . 4 (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷))
64, 5sylib 219 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐴 = 𝐷))
7 preq1 4663 . . . . . . . 8 (𝐴 = 𝐶 → {𝐴, 𝐵} = {𝐶, 𝐵})
87eqeq1d 2823 . . . . . . 7 (𝐴 = 𝐶 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐶, 𝐵} = {𝐶, 𝐷}))
9 preqr1.b . . . . . . . 8 𝐵 ∈ V
10 preq12b.d . . . . . . . 8 𝐷 ∈ V
119, 10preqr2 4774 . . . . . . 7 ({𝐶, 𝐵} = {𝐶, 𝐷} → 𝐵 = 𝐷)
128, 11syl6bi 254 . . . . . 6 (𝐴 = 𝐶 → ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐵 = 𝐷))
1312com12 32 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷))
1413ancld 551 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶 → (𝐴 = 𝐶𝐵 = 𝐷)))
15 prcom 4662 . . . . . . 7 {𝐶, 𝐷} = {𝐷, 𝐶}
1615eqeq2i 2834 . . . . . 6 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐷, 𝐶})
17 preq1 4663 . . . . . . . . 9 (𝐴 = 𝐷 → {𝐴, 𝐵} = {𝐷, 𝐵})
1817eqeq1d 2823 . . . . . . . 8 (𝐴 = 𝐷 → ({𝐴, 𝐵} = {𝐷, 𝐶} ↔ {𝐷, 𝐵} = {𝐷, 𝐶}))
19 preq12b.c . . . . . . . . 9 𝐶 ∈ V
209, 19preqr2 4774 . . . . . . . 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 4665 . . 3 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
28 preq12 4665 . . . 4 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐷, 𝐶})
29 prcom 4662 . . . 4 {𝐷, 𝐶} = {𝐶, 𝐷}
3028, 29syl6eq 2872 . . 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 3495  {cpr 4561
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 2793
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 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-v 3497  df-un 3940  df-sn 4560  df-pr 4562
This theorem is referenced by:  opthpr  4776  preq12bg  4778  opeqpr  5387  opthhausdorff0  5400  axlowdimlem13  26668  upgrwlkdvdelem  27445  altopthsn  33320  sprsymrelfolem2  43502  prproropf1olem4  43515  reuopreuprim  43535  isomuspgrlem1  43839  rrx2xpref1o  44603
  Copyright terms: Public domain W3C validator