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

Theorem ifpprsnss 4702
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 4672 . . . . . 6 (𝐵 = 𝐴 → {𝐴, 𝐵} = {𝐴, 𝐴})
2 dfsn2 4582 . . . . . 6 {𝐴} = {𝐴, 𝐴}
31, 2syl6eqr 2876 . . . . 5 (𝐵 = 𝐴 → {𝐴, 𝐵} = {𝐴})
43eqcoms 2831 . . . 4 (𝐴 = 𝐵 → {𝐴, 𝐵} = {𝐴})
54eqeq2d 2834 . . 3 (𝐴 = 𝐵 → (𝑃 = {𝐴, 𝐵} ↔ 𝑃 = {𝐴}))
65biimpac 481 . 2 ((𝑃 = {𝐴, 𝐵} ∧ 𝐴 = 𝐵) → 𝑃 = {𝐴})
7 eqimss2 4026 . . 3 (𝑃 = {𝐴, 𝐵} → {𝐴, 𝐵} ⊆ 𝑃)
87adantr 483 . 2 ((𝑃 = {𝐴, 𝐵} ∧ ¬ 𝐴 = 𝐵) → {𝐴, 𝐵} ⊆ 𝑃)
96, 8ifpimpda 1074 1 (𝑃 = {𝐴, 𝐵} → if-(𝐴 = 𝐵, 𝑃 = {𝐴}, {𝐴, 𝐵} ⊆ 𝑃))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  if-wif 1057   = wceq 1537  wss 3938  {csn 4569  {cpr 4571
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
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-ifp 1058  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-v 3498  df-un 3943  df-in 3945  df-ss 3954  df-sn 4570  df-pr 4572
This theorem is referenced by:  upgriswlk  27424  eupth2lem3lem7  28015  upwlkwlk  44021
  Copyright terms: Public domain W3C validator