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

Theorem opeqsng 5411
Description: Equivalence for an ordered pair equal to a singleton. (Contributed by NM, 3-Jun-2008.) (Revised by AV, 15-Jul-2022.) (Avoid depending on this detail.)
Assertion
Ref Expression
opeqsng ((𝐴𝑉𝐵𝑊) → (⟨𝐴, 𝐵⟩ = {𝐶} ↔ (𝐴 = 𝐵𝐶 = {𝐴})))

Proof of Theorem opeqsng
StepHypRef Expression
1 dfopg 4799 . . 3 ((𝐴𝑉𝐵𝑊) → ⟨𝐴, 𝐵⟩ = {{𝐴}, {𝐴, 𝐵}})
21eqeq1d 2740 . 2 ((𝐴𝑉𝐵𝑊) → (⟨𝐴, 𝐵⟩ = {𝐶} ↔ {{𝐴}, {𝐴, 𝐵}} = {𝐶}))
3 snex 5349 . . . 4 {𝐴} ∈ V
4 prex 5350 . . . 4 {𝐴, 𝐵} ∈ V
53, 4preqsn 4789 . . 3 ({{𝐴}, {𝐴, 𝐵}} = {𝐶} ↔ ({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶))
65a1i 11 . 2 ((𝐴𝑉𝐵𝑊) → ({{𝐴}, {𝐴, 𝐵}} = {𝐶} ↔ ({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶)))
7 eqcom 2745 . . . . 5 ({𝐴} = {𝐴, 𝐵} ↔ {𝐴, 𝐵} = {𝐴})
8 simpl 482 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → 𝐴𝑉)
9 simpr 484 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → 𝐵𝑊)
108, 9preqsnd 4786 . . . . . 6 ((𝐴𝑉𝐵𝑊) → ({𝐴, 𝐵} = {𝐴} ↔ (𝐴 = 𝐴𝐵 = 𝐴)))
11 simpr 484 . . . . . . . 8 ((𝐴 = 𝐴𝐵 = 𝐴) → 𝐵 = 𝐴)
12 eqid 2738 . . . . . . . . 9 𝐴 = 𝐴
1312jctl 523 . . . . . . . 8 (𝐵 = 𝐴 → (𝐴 = 𝐴𝐵 = 𝐴))
1411, 13impbii 208 . . . . . . 7 ((𝐴 = 𝐴𝐵 = 𝐴) ↔ 𝐵 = 𝐴)
15 eqcom 2745 . . . . . . 7 (𝐵 = 𝐴𝐴 = 𝐵)
1614, 15bitri 274 . . . . . 6 ((𝐴 = 𝐴𝐵 = 𝐴) ↔ 𝐴 = 𝐵)
1710, 16bitrdi 286 . . . . 5 ((𝐴𝑉𝐵𝑊) → ({𝐴, 𝐵} = {𝐴} ↔ 𝐴 = 𝐵))
187, 17syl5bb 282 . . . 4 ((𝐴𝑉𝐵𝑊) → ({𝐴} = {𝐴, 𝐵} ↔ 𝐴 = 𝐵))
1918anbi1d 629 . . 3 ((𝐴𝑉𝐵𝑊) → (({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶) ↔ (𝐴 = 𝐵 ∧ {𝐴, 𝐵} = 𝐶)))
20 dfsn2 4571 . . . . . . . 8 {𝐴} = {𝐴, 𝐴}
21 preq2 4667 . . . . . . . 8 (𝐴 = 𝐵 → {𝐴, 𝐴} = {𝐴, 𝐵})
2220, 21eqtr2id 2792 . . . . . . 7 (𝐴 = 𝐵 → {𝐴, 𝐵} = {𝐴})
2322eqeq1d 2740 . . . . . 6 (𝐴 = 𝐵 → ({𝐴, 𝐵} = 𝐶 ↔ {𝐴} = 𝐶))
24 eqcom 2745 . . . . . 6 ({𝐴} = 𝐶𝐶 = {𝐴})
2523, 24bitrdi 286 . . . . 5 (𝐴 = 𝐵 → ({𝐴, 𝐵} = 𝐶𝐶 = {𝐴}))
2625a1i 11 . . . 4 ((𝐴𝑉𝐵𝑊) → (𝐴 = 𝐵 → ({𝐴, 𝐵} = 𝐶𝐶 = {𝐴})))
2726pm5.32d 576 . . 3 ((𝐴𝑉𝐵𝑊) → ((𝐴 = 𝐵 ∧ {𝐴, 𝐵} = 𝐶) ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
2819, 27bitrd 278 . 2 ((𝐴𝑉𝐵𝑊) → (({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶) ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
292, 6, 283bitrd 304 1 ((𝐴𝑉𝐵𝑊) → (⟨𝐴, 𝐵⟩ = {𝐶} ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  {csn 4558  {cpr 4560  cop 4564
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ne 2943  df-v 3424  df-dif 3886  df-un 3888  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565
This theorem is referenced by:  opeqsn  5412  snopeqop  5414
  Copyright terms: Public domain W3C validator