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

Theorem opeqsng 5358
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 4761 . . 3 ((𝐴𝑉𝐵𝑊) → ⟨𝐴, 𝐵⟩ = {{𝐴}, {𝐴, 𝐵}})
21eqeq1d 2800 . 2 ((𝐴𝑉𝐵𝑊) → (⟨𝐴, 𝐵⟩ = {𝐶} ↔ {{𝐴}, {𝐴, 𝐵}} = {𝐶}))
3 snex 5297 . . . 4 {𝐴} ∈ V
4 prex 5298 . . . 4 {𝐴, 𝐵} ∈ V
53, 4preqsn 4752 . . 3 ({{𝐴}, {𝐴, 𝐵}} = {𝐶} ↔ ({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶))
65a1i 11 . 2 ((𝐴𝑉𝐵𝑊) → ({{𝐴}, {𝐴, 𝐵}} = {𝐶} ↔ ({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶)))
7 eqcom 2805 . . . . 5 ({𝐴} = {𝐴, 𝐵} ↔ {𝐴, 𝐵} = {𝐴})
8 elex 3459 . . . . . . . 8 (𝐴𝑉𝐴 ∈ V)
98adantr 484 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → 𝐴 ∈ V)
10 elex 3459 . . . . . . . 8 (𝐵𝑊𝐵 ∈ V)
1110adantl 485 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → 𝐵 ∈ V)
129, 11preqsnd 4749 . . . . . 6 ((𝐴𝑉𝐵𝑊) → ({𝐴, 𝐵} = {𝐴} ↔ (𝐴 = 𝐴𝐵 = 𝐴)))
13 simpr 488 . . . . . . . 8 ((𝐴 = 𝐴𝐵 = 𝐴) → 𝐵 = 𝐴)
14 eqid 2798 . . . . . . . . 9 𝐴 = 𝐴
1514jctl 527 . . . . . . . 8 (𝐵 = 𝐴 → (𝐴 = 𝐴𝐵 = 𝐴))
1613, 15impbii 212 . . . . . . 7 ((𝐴 = 𝐴𝐵 = 𝐴) ↔ 𝐵 = 𝐴)
17 eqcom 2805 . . . . . . 7 (𝐵 = 𝐴𝐴 = 𝐵)
1816, 17bitri 278 . . . . . 6 ((𝐴 = 𝐴𝐵 = 𝐴) ↔ 𝐴 = 𝐵)
1912, 18syl6bb 290 . . . . 5 ((𝐴𝑉𝐵𝑊) → ({𝐴, 𝐵} = {𝐴} ↔ 𝐴 = 𝐵))
207, 19syl5bb 286 . . . 4 ((𝐴𝑉𝐵𝑊) → ({𝐴} = {𝐴, 𝐵} ↔ 𝐴 = 𝐵))
2120anbi1d 632 . . 3 ((𝐴𝑉𝐵𝑊) → (({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶) ↔ (𝐴 = 𝐵 ∧ {𝐴, 𝐵} = 𝐶)))
22 dfsn2 4538 . . . . . . . 8 {𝐴} = {𝐴, 𝐴}
23 preq2 4630 . . . . . . . 8 (𝐴 = 𝐵 → {𝐴, 𝐴} = {𝐴, 𝐵})
2422, 23syl5req 2846 . . . . . . 7 (𝐴 = 𝐵 → {𝐴, 𝐵} = {𝐴})
2524eqeq1d 2800 . . . . . 6 (𝐴 = 𝐵 → ({𝐴, 𝐵} = 𝐶 ↔ {𝐴} = 𝐶))
26 eqcom 2805 . . . . . 6 ({𝐴} = 𝐶𝐶 = {𝐴})
2725, 26syl6bb 290 . . . . 5 (𝐴 = 𝐵 → ({𝐴, 𝐵} = 𝐶𝐶 = {𝐴}))
2827a1i 11 . . . 4 ((𝐴𝑉𝐵𝑊) → (𝐴 = 𝐵 → ({𝐴, 𝐵} = 𝐶𝐶 = {𝐴})))
2928pm5.32d 580 . . 3 ((𝐴𝑉𝐵𝑊) → ((𝐴 = 𝐵 ∧ {𝐴, 𝐵} = 𝐶) ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
3021, 29bitrd 282 . 2 ((𝐴𝑉𝐵𝑊) → (({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶) ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
312, 6, 303bitrd 308 1 ((𝐴𝑉𝐵𝑊) → (⟨𝐴, 𝐵⟩ = {𝐶} ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1538  wcel 2111  Vcvv 3441  {csn 4525  {cpr 4527  cop 4531
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pr 5295
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-v 3443  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532
This theorem is referenced by:  opeqsn  5359  snopeqop  5361
  Copyright terms: Public domain W3C validator