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

Theorem preq12b 4322
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 4241 . . . . 5 𝐴 ∈ {𝐴, 𝐵}
3 eleq2 2677 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 ∈ {𝐴, 𝐵} ↔ 𝐴 ∈ {𝐶, 𝐷}))
42, 3mpbii 222 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐴 ∈ {𝐶, 𝐷})
51elpr 4146 . . . 4 (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷))
64, 5sylib 207 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐴 = 𝐷))
7 preq1 4212 . . . . . . . 8 (𝐴 = 𝐶 → {𝐴, 𝐵} = {𝐶, 𝐵})
87eqeq1d 2612 . . . . . . 7 (𝐴 = 𝐶 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐶, 𝐵} = {𝐶, 𝐷}))
9 preqr1.b . . . . . . . 8 𝐵 ∈ V
10 preq12b.d . . . . . . . 8 𝐷 ∈ V
119, 10preqr2 4321 . . . . . . 7 ({𝐶, 𝐵} = {𝐶, 𝐷} → 𝐵 = 𝐷)
128, 11syl6bi 242 . . . . . 6 (𝐴 = 𝐶 → ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐵 = 𝐷))
1312com12 32 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶𝐵 = 𝐷))
1413ancld 574 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶 → (𝐴 = 𝐶𝐵 = 𝐷)))
15 prcom 4211 . . . . . . 7 {𝐶, 𝐷} = {𝐷, 𝐶}
1615eqeq2i 2622 . . . . . 6 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐷, 𝐶})
17 preq1 4212 . . . . . . . . 9 (𝐴 = 𝐷 → {𝐴, 𝐵} = {𝐷, 𝐵})
1817eqeq1d 2612 . . . . . . . 8 (𝐴 = 𝐷 → ({𝐴, 𝐵} = {𝐷, 𝐶} ↔ {𝐷, 𝐵} = {𝐷, 𝐶}))
19 preq12b.c . . . . . . . . 9 𝐶 ∈ V
209, 19preqr2 4321 . . . . . . . 8 ({𝐷, 𝐵} = {𝐷, 𝐶} → 𝐵 = 𝐶)
2118, 20syl6bi 242 . . . . . . 7 (𝐴 = 𝐷 → ({𝐴, 𝐵} = {𝐷, 𝐶} → 𝐵 = 𝐶))
2221com12 32 . . . . . 6 ({𝐴, 𝐵} = {𝐷, 𝐶} → (𝐴 = 𝐷𝐵 = 𝐶))
2316, 22sylbi 206 . . . . 5 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐷𝐵 = 𝐶))
2423ancld 574 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐷 → (𝐴 = 𝐷𝐵 = 𝐶)))
2514, 24orim12d 879 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐴 = 𝐷) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
266, 25mpd 15 . 2 ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
27 preq12 4214 . . 3 ((𝐴 = 𝐶𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
28 preq12 4214 . . . 4 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐷, 𝐶})
29 prcom 4211 . . . 4 {𝐷, 𝐶} = {𝐶, 𝐷}
3028, 29syl6eq 2660 . . 3 ((𝐴 = 𝐷𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶, 𝐷})
3127, 30jaoi 393 . 2 (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → {𝐴, 𝐵} = {𝐶, 𝐷})
3226, 31impbii 198 1 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195  wo 382  wa 383   = wceq 1475  wcel 1977  Vcvv 3173  {cpr 4127
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-v 3175  df-un 3545  df-sn 4126  df-pr 4128
This theorem is referenced by:  prel12  4323  opthpr  4324  preq12bg  4326  preqsn  4331  preqsnOLD  4332  opeqpr  4893  preleq  8397  axlowdimlem13  25634  wlkdvspthlem  26137  altopthsn  31238  upgrwlkdvdelem  40942
  Copyright terms: Public domain W3C validator