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

Theorem diftpsn3 3669
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 3540 . . . 4 {𝐴, 𝐵, 𝐶} = ({𝐴, 𝐵} ∪ {𝐶})
21a1i 9 . . 3 ((𝐴𝐶𝐵𝐶) → {𝐴, 𝐵, 𝐶} = ({𝐴, 𝐵} ∪ {𝐶}))
32difeq1d 3198 . 2 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}))
4 difundir 3334 . . 3 (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}) = (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶}))
54a1i 9 . 2 ((𝐴𝐶𝐵𝐶) → (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}) = (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})))
6 df-pr 3539 . . . . . . . . 9 {𝐴, 𝐵} = ({𝐴} ∪ {𝐵})
76a1i 9 . . . . . . . 8 ((𝐴𝐶𝐵𝐶) → {𝐴, 𝐵} = ({𝐴} ∪ {𝐵}))
87ineq1d 3281 . . . . . . 7 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∩ {𝐶}) = (({𝐴} ∪ {𝐵}) ∩ {𝐶}))
9 incom 3273 . . . . . . . . 9 (({𝐴} ∪ {𝐵}) ∩ {𝐶}) = ({𝐶} ∩ ({𝐴} ∪ {𝐵}))
10 indi 3328 . . . . . . . . 9 ({𝐶} ∩ ({𝐴} ∪ {𝐵})) = (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵}))
119, 10eqtri 2161 . . . . . . . 8 (({𝐴} ∪ {𝐵}) ∩ {𝐶}) = (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵}))
1211a1i 9 . . . . . . 7 ((𝐴𝐶𝐵𝐶) → (({𝐴} ∪ {𝐵}) ∩ {𝐶}) = (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵})))
13 necom 2393 . . . . . . . . . . 11 (𝐴𝐶𝐶𝐴)
14 disjsn2 3594 . . . . . . . . . . 11 (𝐶𝐴 → ({𝐶} ∩ {𝐴}) = ∅)
1513, 14sylbi 120 . . . . . . . . . 10 (𝐴𝐶 → ({𝐶} ∩ {𝐴}) = ∅)
1615adantr 274 . . . . . . . . 9 ((𝐴𝐶𝐵𝐶) → ({𝐶} ∩ {𝐴}) = ∅)
17 necom 2393 . . . . . . . . . . 11 (𝐵𝐶𝐶𝐵)
18 disjsn2 3594 . . . . . . . . . . 11 (𝐶𝐵 → ({𝐶} ∩ {𝐵}) = ∅)
1917, 18sylbi 120 . . . . . . . . . 10 (𝐵𝐶 → ({𝐶} ∩ {𝐵}) = ∅)
2019adantl 275 . . . . . . . . 9 ((𝐴𝐶𝐵𝐶) → ({𝐶} ∩ {𝐵}) = ∅)
2116, 20uneq12d 3236 . . . . . . . 8 ((𝐴𝐶𝐵𝐶) → (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵})) = (∅ ∪ ∅))
22 unidm 3224 . . . . . . . 8 (∅ ∪ ∅) = ∅
2321, 22eqtrdi 2189 . . . . . . 7 ((𝐴𝐶𝐵𝐶) → (({𝐶} ∩ {𝐴}) ∪ ({𝐶} ∩ {𝐵})) = ∅)
248, 12, 233eqtrd 2177 . . . . . 6 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∩ {𝐶}) = ∅)
25 disj3 3420 . . . . . 6 (({𝐴, 𝐵} ∩ {𝐶}) = ∅ ↔ {𝐴, 𝐵} = ({𝐴, 𝐵} ∖ {𝐶}))
2624, 25sylib 121 . . . . 5 ((𝐴𝐶𝐵𝐶) → {𝐴, 𝐵} = ({𝐴, 𝐵} ∖ {𝐶}))
2726eqcomd 2146 . . . 4 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵} ∖ {𝐶}) = {𝐴, 𝐵})
28 difid 3436 . . . . 5 ({𝐶} ∖ {𝐶}) = ∅
2928a1i 9 . . . 4 ((𝐴𝐶𝐵𝐶) → ({𝐶} ∖ {𝐶}) = ∅)
3027, 29uneq12d 3236 . . 3 ((𝐴𝐶𝐵𝐶) → (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) = ({𝐴, 𝐵} ∪ ∅))
31 un0 3401 . . 3 ({𝐴, 𝐵} ∪ ∅) = {𝐴, 𝐵}
3230, 31eqtrdi 2189 . 2 ((𝐴𝐶𝐵𝐶) → (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) = {𝐴, 𝐵})
333, 5, 323eqtrd 2177 1 ((𝐴𝐶𝐵𝐶) → ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = {𝐴, 𝐵})
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103   = wceq 1332  wne 2309  cdif 3073  cun 3074  cin 3075  c0 3368  {csn 3532  {cpr 3533  {ctp 3534
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 604  ax-in2 605  ax-io 699  ax-5 1424  ax-7 1425  ax-gen 1426  ax-ie1 1470  ax-ie2 1471  ax-8 1483  ax-10 1484  ax-11 1485  ax-i12 1486  ax-bndl 1487  ax-4 1488  ax-17 1507  ax-i9 1511  ax-ial 1515  ax-i5r 1516  ax-ext 2122
This theorem depends on definitions:  df-bi 116  df-tru 1335  df-fal 1338  df-nf 1438  df-sb 1737  df-clab 2127  df-cleq 2133  df-clel 2136  df-nfc 2271  df-ne 2310  df-ral 2422  df-rab 2426  df-v 2691  df-dif 3078  df-un 3080  df-in 3082  df-ss 3089  df-nul 3369  df-sn 3538  df-pr 3539  df-tp 3540
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator