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

Theorem diftpsn3 3733
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 3600 . . . 4 {𝐴, 𝐵, 𝐶} = ({𝐴, 𝐵} ∪ {𝐶})
21a1i 9 . . 3 ((𝐴𝐶𝐵𝐶) → {𝐴, 𝐵, 𝐶} = ({𝐴, 𝐵} ∪ {𝐶}))
32difeq1d 3252 . 2 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}))
4 difundir 3388 . . 3 (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}) = (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶}))
54a1i 9 . 2 ((𝐴𝐶𝐵𝐶) → (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}) = (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})))
6 df-pr 3599 . . . . . . . . 9 {𝐴, 𝐵} = ({𝐴} ∪ {𝐵})
76a1i 9 . . . . . . . 8 ((𝐴𝐶𝐵𝐶) → {𝐴, 𝐵} = ({𝐴} ∪ {𝐵}))
87ineq1d 3335 . . . . . . 7 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∩ {𝐶}) = (({𝐴} ∪ {𝐵}) ∩ {𝐶}))
9 incom 3327 . . . . . . . . 9 (({𝐴} ∪ {𝐵}) ∩ {𝐶}) = ({𝐶} ∩ ({𝐴} ∪ {𝐵}))
10 indi 3382 . . . . . . . . 9 ({𝐶} ∩ ({𝐴} ∪ {𝐵})) = (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵}))
119, 10eqtri 2198 . . . . . . . 8 (({𝐴} ∪ {𝐵}) ∩ {𝐶}) = (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵}))
1211a1i 9 . . . . . . 7 ((𝐴𝐶𝐵𝐶) → (({𝐴} ∪ {𝐵}) ∩ {𝐶}) = (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵})))
13 necom 2431 . . . . . . . . . . 11 (𝐴𝐶𝐶𝐴)
14 disjsn2 3655 . . . . . . . . . . 11 (𝐶𝐴 → ({𝐶} ∩ {𝐴}) = ∅)
1513, 14sylbi 121 . . . . . . . . . 10 (𝐴𝐶 → ({𝐶} ∩ {𝐴}) = ∅)
1615adantr 276 . . . . . . . . 9 ((𝐴𝐶𝐵𝐶) → ({𝐶} ∩ {𝐴}) = ∅)
17 necom 2431 . . . . . . . . . . 11 (𝐵𝐶𝐶𝐵)
18 disjsn2 3655 . . . . . . . . . . 11 (𝐶𝐵 → ({𝐶} ∩ {𝐵}) = ∅)
1917, 18sylbi 121 . . . . . . . . . 10 (𝐵𝐶 → ({𝐶} ∩ {𝐵}) = ∅)
2019adantl 277 . . . . . . . . 9 ((𝐴𝐶𝐵𝐶) → ({𝐶} ∩ {𝐵}) = ∅)
2116, 20uneq12d 3290 . . . . . . . 8 ((𝐴𝐶𝐵𝐶) → (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵})) = (∅ ∪ ∅))
22 unidm 3278 . . . . . . . 8 (∅ ∪ ∅) = ∅
2321, 22eqtrdi 2226 . . . . . . 7 ((𝐴𝐶𝐵𝐶) → (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵})) = ∅)
248, 12, 233eqtrd 2214 . . . . . 6 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∩ {𝐶}) = ∅)
25 disj3 3475 . . . . . 6 (({𝐴, 𝐵} ∩ {𝐶}) = ∅ ↔ {𝐴, 𝐵} = ({𝐴, 𝐵} ∖ {𝐶}))
2624, 25sylib 122 . . . . 5 ((𝐴𝐶𝐵𝐶) → {𝐴, 𝐵} = ({𝐴, 𝐵} ∖ {𝐶}))
2726eqcomd 2183 . . . 4 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∖ {𝐶}) = {𝐴, 𝐵})
28 difid 3491 . . . . 5 ({𝐶} ∖ {𝐶}) = ∅
2928a1i 9 . . . 4 ((𝐴𝐶𝐵𝐶) → ({𝐶} ∖ {𝐶}) = ∅)
3027, 29uneq12d 3290 . . 3 ((𝐴𝐶𝐵𝐶) → (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) = ({𝐴, 𝐵} ∪ ∅))
31 un0 3456 . . 3 ({𝐴, 𝐵} ∪ ∅) = {𝐴, 𝐵}
3230, 31eqtrdi 2226 . 2 ((𝐴𝐶𝐵𝐶) → (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) = {𝐴, 𝐵})
333, 5, 323eqtrd 2214 1 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = {𝐴, 𝐵})
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104   = wceq 1353  wne 2347  cdif 3126  cun 3127  cin 3128  c0 3422  {csn 3592  {cpr 3593  {ctp 3594
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 614  ax-in2 615  ax-io 709  ax-5 1447  ax-7 1448  ax-gen 1449  ax-ie1 1493  ax-ie2 1494  ax-8 1504  ax-10 1505  ax-11 1506  ax-i12 1507  ax-bndl 1509  ax-4 1510  ax-17 1526  ax-i9 1530  ax-ial 1534  ax-i5r 1535  ax-ext 2159
This theorem depends on definitions:  df-bi 117  df-tru 1356  df-fal 1359  df-nf 1461  df-sb 1763  df-clab 2164  df-cleq 2170  df-clel 2173  df-nfc 2308  df-ne 2348  df-ral 2460  df-rab 2464  df-v 2739  df-dif 3131  df-un 3133  df-in 3135  df-ss 3142  df-nul 3423  df-sn 3598  df-pr 3599  df-tp 3600
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator