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

Theorem difsnid 4781
Description: If we remove a single element from a class then put it back in, we end up with the original class. (Contributed by NM, 2-Oct-2006.)
Assertion
Ref Expression
difsnid (𝐵 ∈ 𝐴 → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴)

Proof of Theorem difsnid
StepHypRef Expression
1 snssi 4756 . 2 (𝐵 ∈ 𝐴 → {𝐵} ⊆ 𝐴)
2 undifr 4449 . 2 ({𝐵} ⊆ 𝐴 ↔ ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴)
31, 2sylib 221 1 (𝐵 ∈ 𝐴 → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1572   ∈ wcel 2156   ⊆ wss 3907   ∖ cdif 4055   ∪ cun 4159  {csn 4595
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-ext 2746
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1575  df-fal 1585  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-rab 3424  df-v 3463  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-sn 4596
This theorem is used by:  fnsnsplit  7235  fsnunf2  7237  difsnexi  7823  difsnen  9132  enfixsn  9159  pssnn  9238  dif1ennnALT  9322  frfi  9330  dif1card  10144  hashgt23el  14628  hashfun  14641  fprodfvdvdsd  16565  prmdvdsprmo  17285  mreexexlem4d  17896  symgextf1  19713  symgextfo  19714  symgfixf1  19729  gsumdifsnd  20254  gsummgp0  20626  islindf4  22241  lindsenlbs  22254  scmatf1  22951  gsummatr01  23079  tdeglem4  26479  finsumvtxdg2sstep  30275  dfconngr1  30934  fmptunsnop  33510  satfv1lem  36415  bj-raldifsn  38374  lindsadd  38887  poimirlem25  38914  poimirlem27  38916  hdmap14lem4a  43277  hdmap14lem13  43286  supxrmnf2  46856  infxrpnf2  46886  fsumnncl  46997  hoidmv1lelem2  48015  gsumdifsndf  49689  mgpsumunsn  49941
  Copyright terms: Public domain W3C validator