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

Theorem difdifdir 4056
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 3891 . . . . 5 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∖ 𝐵)
2 invdif 3868 . . . . 5 ((𝐴𝐶) ∩ (V ∖ 𝐵)) = ((𝐴𝐶) ∖ 𝐵)
31, 2eqtr4i 2647 . . . 4 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∩ (V ∖ 𝐵))
4 un0 3967 . . . 4 (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅) = ((𝐴𝐶) ∩ (V ∖ 𝐵))
53, 4eqtr4i 2647 . . 3 ((𝐴𝐵) ∖ 𝐶) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅)
6 indi 3873 . . . 4 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ((𝐴𝐶) ∩ 𝐶))
7 disjdif 4040 . . . . . 6 (𝐶 ∩ (𝐴𝐶)) = ∅
8 incom 3805 . . . . . 6 (𝐶 ∩ (𝐴𝐶)) = ((𝐴𝐶) ∩ 𝐶)
97, 8eqtr3i 2646 . . . . 5 ∅ = ((𝐴𝐶) ∩ 𝐶)
109uneq2i 3764 . . . 4 (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ((𝐴𝐶) ∩ 𝐶))
116, 10eqtr4i 2647 . . 3 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = (((𝐴𝐶) ∩ (V ∖ 𝐵)) ∪ ∅)
125, 11eqtr4i 2647 . 2 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶))
13 ddif 3742 . . . . 5 (V ∖ (V ∖ 𝐶)) = 𝐶
1413uneq2i 3764 . . . 4 ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶))) = ((V ∖ 𝐵) ∪ 𝐶)
15 indm 3886 . . . . 5 (V ∖ (𝐵 ∩ (V ∖ 𝐶))) = ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶)))
16 invdif 3868 . . . . . 6 (𝐵 ∩ (V ∖ 𝐶)) = (𝐵𝐶)
1716difeq2i 3725 . . . . 5 (V ∖ (𝐵 ∩ (V ∖ 𝐶))) = (V ∖ (𝐵𝐶))
1815, 17eqtr3i 2646 . . . 4 ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶))) = (V ∖ (𝐵𝐶))
1914, 18eqtr3i 2646 . . 3 ((V ∖ 𝐵) ∪ 𝐶) = (V ∖ (𝐵𝐶))
2019ineq2i 3811 . 2 ((𝐴𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = ((𝐴𝐶) ∩ (V ∖ (𝐵𝐶)))
21 invdif 3868 . 2 ((𝐴𝐶) ∩ (V ∖ (𝐵𝐶))) = ((𝐴𝐶) ∖ (𝐵𝐶))
2212, 20, 213eqtri 2648 1 ((𝐴𝐵) ∖ 𝐶) = ((𝐴𝐶) ∖ (𝐵𝐶))
Colors of variables: wff setvar class
Syntax hints:   = wceq 1483  Vcvv 3200  cdif 3571  cun 3572  cin 3573  c0 3915
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917  df-rab 2921  df-v 3202  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator