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

Theorem difprsn1 4740
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 2988 . 2 (𝐵𝐴𝐴𝐵)
2 df-pr 4565 . . . . . 6 {𝐴, 𝐵} = ({𝐴} ∪ {𝐵})
32equncomi 4097 . . . . 5 {𝐴, 𝐵} = ({𝐵} ∪ {𝐴})
43difeq1i 4060 . . . 4 ({𝐴, 𝐵} ∖ {𝐴}) = (({𝐵} ∪ {𝐴}) ∖ {𝐴})
5 difun2 4416 . . . 4 (({𝐵} ∪ {𝐴}) ∖ {𝐴}) = ({𝐵} ∖ {𝐴})
64, 5eqtri 2763 . . 3 ({𝐴, 𝐵} ∖ {𝐴}) = ({𝐵} ∖ {𝐴})
7 disjsn2 4651 . . . 4 (𝐵𝐴 → ({𝐵} ∩ {𝐴}) = ∅)
8 disj3 4389 . . . 4 (({𝐵} ∩ {𝐴}) = ∅ ↔ {𝐵} = ({𝐵} ∖ {𝐴}))
97, 8sylib 219 . . 3 (𝐵𝐴 → {𝐵} = ({𝐵} ∖ {𝐴}))
106, 9eqtr4id 2794 . 2 (𝐵𝐴 → ({𝐴, 𝐵} ∖ {𝐴}) = {𝐵})
111, 10sylbir 236 1 (𝐴𝐵 → ({𝐴, 𝐵} ∖ {𝐴}) = {𝐵})
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1547  wne 2935  cdif 3887  cun 3888  cin 3889  c0 4268  {csn 4562  {cpr 4564
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1974  ax-7 2015  ax-8 2121  ax-9 2129  ax-ext 2712
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 854  df-tru 1550  df-fal 1560  df-ex 1787  df-sb 2074  df-clab 2719  df-cleq 2732  df-clel 2815  df-ne 2936  df-ral 3055  df-rab 3393  df-v 3434  df-dif 3893  df-un 3895  df-in 3897  df-nul 4269  df-sn 4563  df-pr 4565
This theorem is referenced by:  difprsn2  4741  f12dfv  7224  pmtrprfval  19460  nbgr2vtx1edg  29444  nbuhgr2vtx1edgb  29446  nfrgr2v  30367  mptprop  32797  indfsid  32955  cycpm2tr  33207  eulerpartlemgf  34570  coinflippvt  34676  ldepsnlinc  49006
  Copyright terms: Public domain W3C validator