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

Theorem difprsn1 4744
Description: Removal of a singleton from an unordered pair. (Contributed by Thierry Arnoux, 4-Feb-2017.)
Assertion
Ref Expression
difprsn1 (𝐴𝐵 → ({𝐴, 𝐵} ∖ {𝐴}) = {𝐵})

Proof of Theorem difprsn1
StepHypRef Expression
1 necom 2986 . 2 (𝐵𝐴𝐴𝐵)
2 df-pr 4571 . . . . . 6 {𝐴, 𝐵} = ({𝐴} ∪ {𝐵})
32equncomi 4101 . . . . 5 {𝐴, 𝐵} = ({𝐵} ∪ {𝐴})
43difeq1i 4063 . . . 4 ({𝐴, 𝐵} ∖ {𝐴}) = (({𝐵} ∪ {𝐴}) ∖ {𝐴})
5 difun2 4422 . . . 4 (({𝐵} ∪ {𝐴}) ∖ {𝐴}) = ({𝐵} ∖ {𝐴})
64, 5eqtri 2760 . . 3 ({𝐴, 𝐵} ∖ {𝐴}) = ({𝐵} ∖ {𝐴})
7 disjsn2 4657 . . . 4 (𝐵𝐴 → ({𝐵} ∩ {𝐴}) = ∅)
8 disj3 4395 . . . 4 (({𝐵} ∩ {𝐴}) = ∅ ↔ {𝐵} = ({𝐵} ∖ {𝐴}))
97, 8sylib 218 . . 3 (𝐵𝐴 → {𝐵} = ({𝐵} ∖ {𝐴}))
106, 9eqtr4id 2791 . 2 (𝐵𝐴 → ({𝐴, 𝐵} ∖ {𝐴}) = {𝐵})
111, 10sylbir 235 1 (𝐴𝐵 → ({𝐴, 𝐵} ∖ {𝐴}) = {𝐵})
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1542  wne 2933  cdif 3887  cun 3888  cin 3889  c0 4274  {csn 4568  {cpr 4570
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 1912  ax-6 1969  ax-7 2010  ax-8 2116  ax-9 2124  ax-ext 2709
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 849  df-tru 1545  df-fal 1555  df-ex 1782  df-sb 2069  df-clab 2716  df-cleq 2729  df-clel 2812  df-ne 2934  df-ral 3053  df-rab 3391  df-v 3432  df-dif 3893  df-un 3895  df-in 3897  df-nul 4275  df-sn 4569  df-pr 4571
This theorem is referenced by:  difprsn2  4745  f12dfv  7221  pmtrprfval  19453  nbgr2vtx1edg  29433  nbuhgr2vtx1edgb  29435  nfrgr2v  30357  mptprop  32786  indfsid  32944  cycpm2tr  33195  eulerpartlemgf  34539  coinflippvt  34645  ldepsnlinc  48996
  Copyright terms: Public domain W3C validator