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

Theorem opeqsng 5393
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 4801 . . 3 ((𝐴𝑉𝐵𝑊) → ⟨𝐴, 𝐵⟩ = {{𝐴}, {𝐴, 𝐵}})
21eqeq1d 2823 . 2 ((𝐴𝑉𝐵𝑊) → (⟨𝐴, 𝐵⟩ = {𝐶} ↔ {{𝐴}, {𝐴, 𝐵}} = {𝐶}))
3 snex 5332 . . . 4 {𝐴} ∈ V
4 prex 5333 . . . 4 {𝐴, 𝐵} ∈ V
53, 4preqsn 4792 . . 3 ({{𝐴}, {𝐴, 𝐵}} = {𝐶} ↔ ({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶))
65a1i 11 . 2 ((𝐴𝑉𝐵𝑊) → ({{𝐴}, {𝐴, 𝐵}} = {𝐶} ↔ ({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶)))
7 eqcom 2828 . . . . 5 ({𝐴} = {𝐴, 𝐵} ↔ {𝐴, 𝐵} = {𝐴})
8 elex 3512 . . . . . . . 8 (𝐴𝑉𝐴 ∈ V)
98adantr 483 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → 𝐴 ∈ V)
10 elex 3512 . . . . . . . 8 (𝐵𝑊𝐵 ∈ V)
1110adantl 484 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → 𝐵 ∈ V)
129, 11preqsnd 4789 . . . . . 6 ((𝐴𝑉𝐵𝑊) → ({𝐴, 𝐵} = {𝐴} ↔ (𝐴 = 𝐴𝐵 = 𝐴)))
13 simpr 487 . . . . . . . 8 ((𝐴 = 𝐴𝐵 = 𝐴) → 𝐵 = 𝐴)
14 eqid 2821 . . . . . . . . 9 𝐴 = 𝐴
1514jctl 526 . . . . . . . 8 (𝐵 = 𝐴 → (𝐴 = 𝐴𝐵 = 𝐴))
1613, 15impbii 211 . . . . . . 7 ((𝐴 = 𝐴𝐵 = 𝐴) ↔ 𝐵 = 𝐴)
17 eqcom 2828 . . . . . . 7 (𝐵 = 𝐴𝐴 = 𝐵)
1816, 17bitri 277 . . . . . 6 ((𝐴 = 𝐴𝐵 = 𝐴) ↔ 𝐴 = 𝐵)
1912, 18syl6bb 289 . . . . 5 ((𝐴𝑉𝐵𝑊) → ({𝐴, 𝐵} = {𝐴} ↔ 𝐴 = 𝐵))
207, 19syl5bb 285 . . . 4 ((𝐴𝑉𝐵𝑊) → ({𝐴} = {𝐴, 𝐵} ↔ 𝐴 = 𝐵))
2120anbi1d 631 . . 3 ((𝐴𝑉𝐵𝑊) → (({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶) ↔ (𝐴 = 𝐵 ∧ {𝐴, 𝐵} = 𝐶)))
22 dfsn2 4580 . . . . . . . 8 {𝐴} = {𝐴, 𝐴}
23 preq2 4670 . . . . . . . 8 (𝐴 = 𝐵 → {𝐴, 𝐴} = {𝐴, 𝐵})
2422, 23syl5req 2869 . . . . . . 7 (𝐴 = 𝐵 → {𝐴, 𝐵} = {𝐴})
2524eqeq1d 2823 . . . . . 6 (𝐴 = 𝐵 → ({𝐴, 𝐵} = 𝐶 ↔ {𝐴} = 𝐶))
26 eqcom 2828 . . . . . 6 ({𝐴} = 𝐶𝐶 = {𝐴})
2725, 26syl6bb 289 . . . . 5 (𝐴 = 𝐵 → ({𝐴, 𝐵} = 𝐶𝐶 = {𝐴}))
2827a1i 11 . . . 4 ((𝐴𝑉𝐵𝑊) → (𝐴 = 𝐵 → ({𝐴, 𝐵} = 𝐶𝐶 = {𝐴})))
2928pm5.32d 579 . . 3 ((𝐴𝑉𝐵𝑊) → ((𝐴 = 𝐵 ∧ {𝐴, 𝐵} = 𝐶) ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
3021, 29bitrd 281 . 2 ((𝐴𝑉𝐵𝑊) → (({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶) ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
312, 6, 303bitrd 307 1 ((𝐴𝑉𝐵𝑊) → (⟨𝐴, 𝐵⟩ = {𝐶} ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1537  wcel 2114  Vcvv 3494  {csn 4567  {cpr 4569  cop 4573
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pr 5330
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-v 3496  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-op 4574
This theorem is referenced by:  opeqsn  5394  snopeqop  5396
  Copyright terms: Public domain W3C validator