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

Theorem difdifdir 4419
Description: Distributive law for class difference. Exercise 4.8 of [Stoll] p. 16. (Contributed by NM, 18-Aug-2004.)
Assertion
Ref Expression
difdifdir ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∖ (𝐵𝐶))

Proof of Theorem difdifdir
StepHypRef Expression
1 dif32 4223 . . . . 5 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∖ 𝐵)
2 invdif 4199 . . . . 5 ((𝐴𝐶) ∩ (V ∖ 𝐵)) = ((𝐴𝐶) ∖ 𝐵)
31, 2eqtr4i 2769 . . . 4 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∩ (V ∖ 𝐵))
4 un0 4321 . . . 4 (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅) = ((𝐴𝐶) ∩ (V ∖ 𝐵))
53, 4eqtr4i 2769 . . 3 ((𝐴𝐵) ∖ 𝐶) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅)
6 indi 4204 . . . 4 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ((𝐴𝐶) ∩ 𝐶))
7 disjdif 4402 . . . . . 6 (𝐶 ∩ (𝐴𝐶)) = ∅
8 incom 4131 . . . . . 6 (𝐶 ∩ (𝐴𝐶)) = ((𝐴𝐶) ∩ 𝐶)
97, 8eqtr3i 2768 . . . . 5 ∅ = ((𝐴𝐶) ∩ 𝐶)
109uneq2i 4090 . . . 4 (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ((𝐴𝐶) ∩ 𝐶))
116, 10eqtr4i 2769 . . 3 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅)
125, 11eqtr4i 2769 . 2 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶))
13 ddif 4067 . . . . 5 (V ∖ (V ∖ 𝐶)) = 𝐶
1413uneq2i 4090 . . . 4 ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶))) = ((V ∖ 𝐵) ∪ 𝐶)
15 indm 4219 . . . . 5 (V ∖ (𝐵 ∩ (V ∖ 𝐶))) = ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶)))
16 invdif 4199 . . . . . 6 (𝐵 ∩ (V ∖ 𝐶)) = (𝐵𝐶)
1716difeq2i 4050 . . . . 5 (V ∖ (𝐵 ∩ (V ∖ 𝐶))) = (V ∖ (𝐵𝐶))
1815, 17eqtr3i 2768 . . . 4 ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶))) = (V ∖ (𝐵𝐶))
1914, 18eqtr3i 2768 . . 3 ((V ∖ 𝐵) ∪ 𝐶) = (V ∖ (𝐵𝐶))
2019ineq2i 4140 . 2 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = ((𝐴𝐶) ∩ (V ∖ (𝐵𝐶)))
21 invdif 4199 . 2 ((𝐴𝐶) ∩ (V ∖ (𝐵𝐶))) = ((𝐴𝐶) ∖ (𝐵𝐶))
2212, 20, 213eqtri 2770 1 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∖ (𝐵𝐶))
Colors of variables: wff setvar class
Syntax hints:   = wceq 1539  Vcvv 3422  cdif 3880  cun 3881  cin 3882  c0 4253
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator