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

Theorem ifpprsnss 4660
Description: An unordered pair is a singleton or a subset of itself. This theorem is helpful to convert theorems about walks in arbitrary graphs into theorems about walks in pseudographs. (Contributed by AV, 27-Feb-2021.)
Assertion
Ref Expression
ifpprsnss (𝑃 = {𝐴, 𝐵} → if-(𝐴 = 𝐵, 𝑃 = {𝐴}, {𝐴, 𝐵} ⊆ 𝑃))

Proof of Theorem ifpprsnss
StepHypRef Expression
1 preq2 4630 . . . . . 6 (𝐵 = 𝐴 → {𝐴, 𝐵} = {𝐴, 𝐴})
2 dfsn2 4538 . . . . . 6 {𝐴} = {𝐴, 𝐴}
31, 2eqtr4di 2851 . . . . 5 (𝐵 = 𝐴 → {𝐴, 𝐵} = {𝐴})
43eqcoms 2806 . . . 4 (𝐴 = 𝐵 → {𝐴, 𝐵} = {𝐴})
54eqeq2d 2809 . . 3 (𝐴 = 𝐵 → (𝑃 = {𝐴, 𝐵} ↔ 𝑃 = {𝐴}))
65biimpac 482 . 2 ((𝑃 = {𝐴, 𝐵} ∧ 𝐴 = 𝐵) → 𝑃 = {𝐴})
7 eqimss2 3972 . . 3 (𝑃 = {𝐴, 𝐵} → {𝐴, 𝐵} ⊆ 𝑃)
87adantr 484 . 2 ((𝑃 = {𝐴, 𝐵} ∧ ¬ 𝐴 = 𝐵) → {𝐴, 𝐵} ⊆ 𝑃)
96, 8ifpimpda 1078 1 (𝑃 = {𝐴, 𝐵} → if-(𝐴 = 𝐵, 𝑃 = {𝐴}, {𝐴, 𝐵} ⊆ 𝑃))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  if-wif 1058   = wceq 1538  wss 3881  {csn 4525  {cpr 4527
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-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-ifp 1059  df-ex 1782  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-v 3443  df-un 3886  df-in 3888  df-ss 3898  df-sn 4526  df-pr 4528
This theorem is referenced by:  upgriswlk  27430  eupth2lem3lem7  28019  upwlkwlk  44367
  Copyright terms: Public domain W3C validator