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

Theorem difprsn1 4773
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 3014 . 2 (𝐵𝐴𝐴𝐵)
2 df-pr 4597 . . . . . 6 {𝐴, 𝐵} = ({𝐴} ∪ {𝐵})
32equncomi 4117 . . . . 5 {𝐴, 𝐵} = ({𝐵} ∪ {𝐴})
43difeq1i 4080 . . . 4 ({𝐴, 𝐵} ∖ {𝐴}) = (({𝐵} ∪ {𝐴}) ∖ {𝐴})
5 difun2 4447 . . . 4 (({𝐵} ∪ {𝐴}) ∖ {𝐴}) = ({𝐵} ∖ {𝐴})
64, 5eqtri 2789 . . 3 ({𝐴, 𝐵} ∖ {𝐴}) = ({𝐵} ∖ {𝐴})
7 disjsn2 4683 . . . 4 (𝐵𝐴 → ({𝐵} ∩ {𝐴}) = ∅)
8 disj3 4417 . . . 4 (({𝐵} ∩ {𝐴}) = ∅ ↔ {𝐵} = ({𝐵} ∖ {𝐴}))
97, 8sylib 221 . . 3 (𝐵𝐴 → {𝐵} = ({𝐵} ∖ {𝐴}))
106, 9eqtr4id 2820 . 2 (𝐵𝐴 → ({𝐴, 𝐵} ∖ {𝐴}) = {𝐵})
111, 10sylbir 238 1 (𝐴𝐵 → ({𝐴, 𝐵} ∖ {𝐴}) = {𝐵})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wi 4   = wceq 1570  wne 2961  cdif 3905  cun 3906  cin 3907  c0 4289  {csn 4594  {cpr 4596
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2148  ax-9 2156  ax-ext 2738
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-fal 1583  df-ex 1813  df-sb 2100  df-clab 2745  df-cleq 2758  df-clel 2841  df-ne 2962  df-ral 3083  df-rab 3420  df-v 3460  df-dif 3911  df-un 3913  df-in 3915  df-nul 4290  df-sn 4595  df-pr 4597
This theorem is used by:  difprsn2  4774  f12dfv  7282  pmtrprfval  19588  nbgr2vtx1edg  29737  nbuhgr2vtx1edgb  29739  nfrgr2v  30660  mptprop  33080  indfsid  33226  cycpm2tr  33470  eulerpartlemgf  34801  coinflippvt  34907  ldepsnlinc  49329
  Copyright terms: Public domain W3C validator