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

Theorem difprsn1 4768
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 3018 . 2 (𝐵 ≠ 𝐴 ↔ 𝐴 ≠ 𝐵)
2 df-pr 4593 . . . . . 6 {𝐴, 𝐵} = ({𝐴} ∪ {𝐵})
32equncomi 4164 . . . . 5 {𝐴, 𝐵} = ({𝐵} ∪ {𝐴})
43difeq1i 4064 . . . 4 ({𝐴, 𝐵} ∖ {𝐴}) = (({𝐵} ∪ {𝐴}) ∖ {𝐴})
5 difun2 4442 . . . 4 (({𝐵} ∪ {𝐴}) ∖ {𝐴}) = ({𝐵} ∖ {𝐴})
64, 5eqtri 2792 . . 3 ({𝐴, 𝐵} ∖ {𝐴}) = ({𝐵} ∖ {𝐴})
7 disjsn2 4676 . . . 4 (𝐵 ≠ 𝐴 → ({𝐵} ∩ {𝐴}) = ∅)
8 disj3 4412 . . . 4 (({𝐵} ∩ {𝐴}) = ∅ ↔ {𝐵} = ({𝐵} ∖ {𝐴}))
97, 8sylib 221 . . 3 (𝐵 ≠ 𝐴 → {𝐵} = ({𝐵} ∖ {𝐴}))
106, 9eqtr4id 2823 . 2 (𝐵 ≠ 𝐴 → ({𝐴, 𝐵} ∖ {𝐴}) = {𝐵})
111, 10sylbir 238 1 (𝐴 ≠ 𝐵 → ({𝐴, 𝐵} ∖ {𝐴}) = {𝐵})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1572   ≠ wne 2965   ∖ cdif 4050   ∩ cin 4094   ∪ cun 4154  ∅c0 4283  {csn 4590  {cpr 4592
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-ext 2741
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1575  df-fal 1585  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-ne 2966  df-ral 3087  df-rab 3419  df-v 3458  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-sn 4591  df-pr 4593
This theorem is used by:  difprsn2  4769  f12dfv  7322  pmtrprfval  19769  nbgr2vtx1edg  30007  nbuhgr2vtx1edgb  30009  nfrgr2v  30949  mptprop  33406  indfsid  33549  cycpm2tr  33796  eulerpartlemgf  35139  coinflippvt  35245  ldepsnlinc  50064
  Copyright terms: Public domain W3C validator