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

Theorem opeqsng 5395
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 4803 . . 3 ((𝐴𝑉𝐵𝑊) → ⟨𝐴, 𝐵⟩ = {{𝐴}, {𝐴, 𝐵}})
21eqeq1d 2825 . 2 ((𝐴𝑉𝐵𝑊) → (⟨𝐴, 𝐵⟩ = {𝐶} ↔ {{𝐴}, {𝐴, 𝐵}} = {𝐶}))
3 snex 5334 . . . 4 {𝐴} ∈ V
4 prex 5335 . . . 4 {𝐴, 𝐵} ∈ V
53, 4preqsn 4794 . . 3 ({{𝐴}, {𝐴, 𝐵}} = {𝐶} ↔ ({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶))
65a1i 11 . 2 ((𝐴𝑉𝐵𝑊) → ({{𝐴}, {𝐴, 𝐵}} = {𝐶} ↔ ({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶)))
7 eqcom 2830 . . . . 5 ({𝐴} = {𝐴, 𝐵} ↔ {𝐴, 𝐵} = {𝐴})
8 elex 3514 . . . . . . . 8 (𝐴𝑉𝐴 ∈ V)
98adantr 483 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → 𝐴 ∈ V)
10 elex 3514 . . . . . . . 8 (𝐵𝑊𝐵 ∈ V)
1110adantl 484 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → 𝐵 ∈ V)
129, 11preqsnd 4791 . . . . . 6 ((𝐴𝑉𝐵𝑊) → ({𝐴, 𝐵} = {𝐴} ↔ (𝐴 = 𝐴𝐵 = 𝐴)))
13 simpr 487 . . . . . . . 8 ((𝐴 = 𝐴𝐵 = 𝐴) → 𝐵 = 𝐴)
14 eqid 2823 . . . . . . . . 9 𝐴 = 𝐴
1514jctl 526 . . . . . . . 8 (𝐵 = 𝐴 → (𝐴 = 𝐴𝐵 = 𝐴))
1613, 15impbii 211 . . . . . . 7 ((𝐴 = 𝐴𝐵 = 𝐴) ↔ 𝐵 = 𝐴)
17 eqcom 2830 . . . . . . 7 (𝐵 = 𝐴𝐴 = 𝐵)
1816, 17bitri 277 . . . . . 6 ((𝐴 = 𝐴𝐵 = 𝐴) ↔ 𝐴 = 𝐵)
1912, 18syl6bb 289 . . . . 5 ((𝐴𝑉𝐵𝑊) → ({𝐴, 𝐵} = {𝐴} ↔ 𝐴 = 𝐵))
207, 19syl5bb 285 . . . 4 ((𝐴𝑉𝐵𝑊) → ({𝐴} = {𝐴, 𝐵} ↔ 𝐴 = 𝐵))
2120anbi1d 631 . . 3 ((𝐴𝑉𝐵𝑊) → (({𝐴} = {𝐴, 𝐵} ∧ {𝐴, 𝐵} = 𝐶) ↔ (𝐴 = 𝐵 ∧ {𝐴, 𝐵} = 𝐶)))
22 dfsn2 4582 . . . . . . . 8 {𝐴} = {𝐴, 𝐴}
23 preq2 4672 . . . . . . . 8 (𝐴 = 𝐵 → {𝐴, 𝐴} = {𝐴, 𝐵})
2422, 23syl5req 2871 . . . . . . 7 (𝐴 = 𝐵 → {𝐴, 𝐵} = {𝐴})
2524eqeq1d 2825 . . . . . 6 (𝐴 = 𝐵 → ({𝐴, 𝐵} = 𝐶 ↔ {𝐴} = 𝐶))
26 eqcom 2830 . . . . . 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 3496  {csn 4569  {cpr 4571  cop 4575
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 2795  ax-sep 5205  ax-nul 5212  ax-pr 5332
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 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-v 3498  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-nul 4294  df-if 4470  df-sn 4570  df-pr 4572  df-op 4576
This theorem is referenced by:  opeqsn  5396  snopeqop  5398
  Copyright terms: Public domain W3C validator