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

Theorem difdifdir 4422
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 4226 . . . . 5 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∖ 𝐵)
2 invdif 4202 . . . . 5 ((𝐴𝐶) ∩ (V ∖ 𝐵)) = ((𝐴𝐶) ∖ 𝐵)
31, 2eqtr4i 2769 . . . 4 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∩ (V ∖ 𝐵))
4 un0 4324 . . . 4 (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅) = ((𝐴𝐶) ∩ (V ∖ 𝐵))
53, 4eqtr4i 2769 . . 3 ((𝐴𝐵) ∖ 𝐶) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅)
6 indi 4207 . . . 4 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ((𝐴𝐶) ∩ 𝐶))
7 disjdif 4405 . . . . . 6 (𝐶 ∩ (𝐴𝐶)) = ∅
8 incom 4135 . . . . . 6 (𝐶 ∩ (𝐴𝐶)) = ((𝐴𝐶) ∩ 𝐶)
97, 8eqtr3i 2768 . . . . 5 ∅ = ((𝐴𝐶) ∩ 𝐶)
109uneq2i 4094 . . . 4 (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ((𝐴𝐶) ∩ 𝐶))
116, 10eqtr4i 2769 . . 3 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅)
125, 11eqtr4i 2769 . 2 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶))
13 ddif 4071 . . . . 5 (V ∖ (V ∖ 𝐶)) = 𝐶
1413uneq2i 4094 . . . 4 ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶))) = ((V ∖ 𝐵) ∪ 𝐶)
15 indm 4222 . . . . 5 (V ∖ (𝐵 ∩ (V ∖ 𝐶))) = ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶)))
16 invdif 4202 . . . . . 6 (𝐵 ∩ (V ∖ 𝐶)) = (𝐵𝐶)
1716difeq2i 4054 . . . . 5 (V ∖ (𝐵 ∩ (V ∖ 𝐶))) = (V ∖ (𝐵𝐶))
1815, 17eqtr3i 2768 . . . 4 ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶))) = (V ∖ (𝐵𝐶))
1914, 18eqtr3i 2768 . . 3 ((V ∖ 𝐵) ∪ 𝐶) = (V ∖ (𝐵𝐶))
2019ineq2i 4143 . 2 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = ((𝐴𝐶) ∩ (V ∖ (𝐵𝐶)))
21 invdif 4202 . 2 ((𝐴𝐶) ∩ (V ∖ (𝐵𝐶))) = ((𝐴𝐶) ∖ (𝐵𝐶))
2212, 20, 213eqtri 2770 1 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∖ (𝐵𝐶))
Colors of variables: wff setvar class
Syntax hints:   = wceq 1539  Vcvv 3432  cdif 3884  cun 3885  cin 3886  c0 4256
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1542  df-fal 1552  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator