ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  diftpsn3 GIF version

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

Proof of Theorem diftpsn3
StepHypRef Expression
1 df-tp 3535 . . . 4 {𝐴, 𝐵, 𝐶} = ({𝐴, 𝐵} ∪ {𝐶})
21a1i 9 . . 3 ((𝐴𝐶𝐵𝐶) → {𝐴, 𝐵, 𝐶} = ({𝐴, 𝐵} ∪ {𝐶}))
32difeq1d 3193 . 2 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}))
4 difundir 3329 . . 3 (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}) = (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶}))
54a1i 9 . 2 ((𝐴𝐶𝐵𝐶) → (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}) = (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})))
6 df-pr 3534 . . . . . . . . 9 {𝐴, 𝐵} = ({𝐴} ∪ {𝐵})
76a1i 9 . . . . . . . 8 ((𝐴𝐶𝐵𝐶) → {𝐴, 𝐵} = ({𝐴} ∪ {𝐵}))
87ineq1d 3276 . . . . . . 7 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∩ {𝐶}) = (({𝐴} ∪ {𝐵}) ∩ {𝐶}))
9 incom 3268 . . . . . . . . 9 (({𝐴} ∪ {𝐵}) ∩ {𝐶}) = ({𝐶} ∩ ({𝐴} ∪ {𝐵}))
10 indi 3323 . . . . . . . . 9 ({𝐶} ∩ ({𝐴} ∪ {𝐵})) = (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵}))
119, 10eqtri 2160 . . . . . . . 8 (({𝐴} ∪ {𝐵}) ∩ {𝐶}) = (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵}))
1211a1i 9 . . . . . . 7 ((𝐴𝐶𝐵𝐶) → (({𝐴} ∪ {𝐵}) ∩ {𝐶}) = (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵})))
13 necom 2392 . . . . . . . . . . 11 (𝐴𝐶𝐶𝐴)
14 disjsn2 3586 . . . . . . . . . . 11 (𝐶𝐴 → ({𝐶} ∩ {𝐴}) = ∅)
1513, 14sylbi 120 . . . . . . . . . 10 (𝐴𝐶 → ({𝐶} ∩ {𝐴}) = ∅)
1615adantr 274 . . . . . . . . 9 ((𝐴𝐶𝐵𝐶) → ({𝐶} ∩ {𝐴}) = ∅)
17 necom 2392 . . . . . . . . . . 11 (𝐵𝐶𝐶𝐵)
18 disjsn2 3586 . . . . . . . . . . 11 (𝐶𝐵 → ({𝐶} ∩ {𝐵}) = ∅)
1917, 18sylbi 120 . . . . . . . . . 10 (𝐵𝐶 → ({𝐶} ∩ {𝐵}) = ∅)
2019adantl 275 . . . . . . . . 9 ((𝐴𝐶𝐵𝐶) → ({𝐶} ∩ {𝐵}) = ∅)
2116, 20uneq12d 3231 . . . . . . . 8 ((𝐴𝐶𝐵𝐶) → (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵})) = (∅ ∪ ∅))
22 unidm 3219 . . . . . . . 8 (∅ ∪ ∅) = ∅
2321, 22syl6eq 2188 . . . . . . 7 ((𝐴𝐶𝐵𝐶) → (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵})) = ∅)
248, 12, 233eqtrd 2176 . . . . . 6 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∩ {𝐶}) = ∅)
25 disj3 3415 . . . . . 6 (({𝐴, 𝐵} ∩ {𝐶}) = ∅ ↔ {𝐴, 𝐵} = ({𝐴, 𝐵} ∖ {𝐶}))
2624, 25sylib 121 . . . . 5 ((𝐴𝐶𝐵𝐶) → {𝐴, 𝐵} = ({𝐴, 𝐵} ∖ {𝐶}))
2726eqcomd 2145 . . . 4 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∖ {𝐶}) = {𝐴, 𝐵})
28 difid 3431 . . . . 5 ({𝐶} ∖ {𝐶}) = ∅
2928a1i 9 . . . 4 ((𝐴𝐶𝐵𝐶) → ({𝐶} ∖ {𝐶}) = ∅)
3027, 29uneq12d 3231 . . 3 ((𝐴𝐶𝐵𝐶) → (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) = ({𝐴, 𝐵} ∪ ∅))
31 un0 3396 . . 3 ({𝐴, 𝐵} ∪ ∅) = {𝐴, 𝐵}
3230, 31syl6eq 2188 . 2 ((𝐴𝐶𝐵𝐶) → (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) = {𝐴, 𝐵})
333, 5, 323eqtrd 2176 1 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = {𝐴, 𝐵})
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103   = wceq 1331  wne 2308  cdif 3068  cun 3069  cin 3070  c0 3363  {csn 3527  {cpr 3528  {ctp 3529
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2121
This theorem depends on definitions:  df-bi 116  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ne 2309  df-ral 2421  df-rab 2425  df-v 2688  df-dif 3073  df-un 3075  df-in 3077  df-ss 3084  df-nul 3364  df-sn 3533  df-pr 3534  df-tp 3535
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator