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

Theorem difdifdir 4008
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 3850 . . . . 5 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∖ 𝐵)
2 invdif 3827 . . . . 5 ((𝐴𝐶) ∩ (V ∖ 𝐵)) = ((𝐴𝐶) ∖ 𝐵)
31, 2eqtr4i 2635 . . . 4 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∩ (V ∖ 𝐵))
4 un0 3919 . . . 4 (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅) = ((𝐴𝐶) ∩ (V ∖ 𝐵))
53, 4eqtr4i 2635 . . 3 ((𝐴𝐵) ∖ 𝐶) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅)
6 indi 3832 . . . 4 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ((𝐴𝐶) ∩ 𝐶))
7 disjdif 3992 . . . . . 6 (𝐶 ∩ (𝐴𝐶)) = ∅
8 incom 3767 . . . . . 6 (𝐶 ∩ (𝐴𝐶)) = ((𝐴𝐶) ∩ 𝐶)
97, 8eqtr3i 2634 . . . . 5 ∅ = ((𝐴𝐶) ∩ 𝐶)
109uneq2i 3726 . . . 4 (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ((𝐴𝐶) ∩ 𝐶))
116, 10eqtr4i 2635 . . 3 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅)
125, 11eqtr4i 2635 . 2 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶))
13 ddif 3704 . . . . 5 (V ∖ (V ∖ 𝐶)) = 𝐶
1413uneq2i 3726 . . . 4 ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶))) = ((V ∖ 𝐵) ∪ 𝐶)
15 indm 3845 . . . . 5 (V ∖ (𝐵 ∩ (V ∖ 𝐶))) = ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶)))
16 invdif 3827 . . . . . 6 (𝐵 ∩ (V ∖ 𝐶)) = (𝐵𝐶)
1716difeq2i 3687 . . . . 5 (V ∖ (𝐵 ∩ (V ∖ 𝐶))) = (V ∖ (𝐵𝐶))
1815, 17eqtr3i 2634 . . . 4 ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶))) = (V ∖ (𝐵𝐶))
1914, 18eqtr3i 2634 . . 3 ((V ∖ 𝐵) ∪ 𝐶) = (V ∖ (𝐵𝐶))
2019ineq2i 3773 . 2 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = ((𝐴𝐶) ∩ (V ∖ (𝐵𝐶)))
21 invdif 3827 . 2 ((𝐴𝐶) ∩ (V ∖ (𝐵𝐶))) = ((𝐴𝐶) ∖ (𝐵𝐶))
2212, 20, 213eqtri 2636 1 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∖ (𝐵𝐶))
Colors of variables: wff setvar class
Syntax hints:   = wceq 1475  Vcvv 3173  cdif 3537  cun 3538  cin 3539  c0 3874
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rab 2905  df-v 3175  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator