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

Theorem diftpsn3 4715
Description: Removal of a singleton from an unordered triple. (Contributed by Alexander van der Vekens, 5-Oct-2017.) (Proof shortened by JJ, 23-Jul-2021.)
Assertion
Ref Expression
diftpsn3 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = {𝐴, 𝐵})

Proof of Theorem diftpsn3
StepHypRef Expression
1 disjprsn 4630 . . . . 5 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∩ {𝐶}) = ∅)
2 disj3 4368 . . . . 5 (({𝐴, 𝐵} ∩ {𝐶}) = ∅ ↔ {𝐴, 𝐵} = ({𝐴, 𝐵} ∖ {𝐶}))
31, 2sylib 221 . . . 4 ((𝐴𝐶𝐵𝐶) → {𝐴, 𝐵} = ({𝐴, 𝐵} ∖ {𝐶}))
43eqcomd 2743 . . 3 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∖ {𝐶}) = {𝐴, 𝐵})
5 difid 4285 . . . 4 ({𝐶} ∖ {𝐶}) = ∅
65a1i 11 . . 3 ((𝐴𝐶𝐵𝐶) → ({𝐶} ∖ {𝐶}) = ∅)
74, 6uneq12d 4078 . 2 ((𝐴𝐶𝐵𝐶) → (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) = ({𝐴, 𝐵} ∪ ∅))
8 df-tp 4546 . . . 4 {𝐴, 𝐵, 𝐶} = ({𝐴, 𝐵} ∪ {𝐶})
98difeq1i 4033 . . 3 ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶})
10 difundir 4195 . . 3 (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}) = (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶}))
119, 10eqtr2i 2766 . 2 (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) = ({𝐴, 𝐵, 𝐶} ∖ {𝐶})
12 un0 4305 . 2 ({𝐴, 𝐵} ∪ ∅) = {𝐴, 𝐵}
137, 11, 123eqtr3g 2801 1 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = {𝐴, 𝐵})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1543  wne 2940  cdif 3863  cun 3864  cin 3865  c0 4237  {csn 4541  {cpr 4543  {ctp 4545
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-ext 2708
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-tru 1546  df-fal 1556  df-ex 1788  df-sb 2071  df-clab 2715  df-cleq 2729  df-clel 2816  df-ne 2941  df-ral 3066  df-rab 3070  df-v 3410  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-nul 4238  df-sn 4542  df-pr 4544  df-tp 4546
This theorem is referenced by:  f13dfv  7085  nb3grprlem2  27469  cplgr3v  27523  frgr3v  28358  3vfriswmgr  28361  signswch  32252  signstfvcl  32264
  Copyright terms: Public domain W3C validator