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

Theorem difdifdir 4457
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 4257 . . . . 5 ((𝐴 ∖ 𝐵) ∖ 𝐶) = ((𝐴 ∖ 𝐶) ∖ 𝐵)
2 invdif 4234 . . . . 5 ((𝐴 ∖ 𝐶) ∩ (V ∖ 𝐵)) = ((𝐴 ∖ 𝐶) ∖ 𝐵)
31, 2eqtr4i 2800 . . . 4 ((𝐴 ∖ 𝐵) ∖ 𝐶) = ((𝐴 ∖ 𝐶) ∩ (V ∖ 𝐵))
4 un0 4354 . . . 4 (((𝐴 ∖ 𝐶) ∩ (V ∖ 𝐵)) ∪ ∅) = ((𝐴 ∖ 𝐶) ∩ (V ∖ 𝐵))
53, 4eqtr4i 2800 . . 3 ((𝐴 ∖ 𝐵) ∖ 𝐶) = (((𝐴 ∖ 𝐶) ∩ (V ∖ 𝐵)) ∪ ∅)
6 indi 4239 . . . 4 ((𝐴 ∖ 𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = (((𝐴 ∖ 𝐶) ∩ (V ∖ 𝐵)) ∪ ((𝐴 ∖ 𝐶) ∩ 𝐶))
7 disjdif 4436 . . . . . 6 (𝐶 ∩ (𝐴 ∖ 𝐶)) = ∅
8 incom 4116 . . . . . 6 (𝐶 ∩ (𝐴 ∖ 𝐶)) = ((𝐴 ∖ 𝐶) ∩ 𝐶)
97, 8eqtr3i 2799 . . . . 5 ∅ = ((𝐴 ∖ 𝐶) ∩ 𝐶)
109uneq2i 4174 . . . 4 (((𝐴 ∖ 𝐶) ∩ (V ∖ 𝐵)) ∪ ∅) = (((𝐴 ∖ 𝐶) ∩ (V ∖ 𝐵)) ∪ ((𝐴 ∖ 𝐶) ∩ 𝐶))
116, 10eqtr4i 2800 . . 3 ((𝐴 ∖ 𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = (((𝐴 ∖ 𝐶) ∩ (V ∖ 𝐵)) ∪ ∅)
125, 11eqtr4i 2800 . 2 ((𝐴 ∖ 𝐵) ∖ 𝐶) = ((𝐴 ∖ 𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶))
13 ddif 4087 . . . . 5 (V ∖ (V ∖ 𝐶)) = 𝐶
1413uneq2i 4174 . . . 4 ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶))) = ((V ∖ 𝐵) ∪ 𝐶)
15 indm 4253 . . . . 5 (V ∖ (𝐵 ∩ (V ∖ 𝐶))) = ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶)))
16 invdif 4234 . . . . . 6 (𝐵 ∩ (V ∖ 𝐶)) = (𝐵 ∖ 𝐶)
1716difeq2i 4070 . . . . 5 (V ∖ (𝐵 ∩ (V ∖ 𝐶))) = (V ∖ (𝐵 ∖ 𝐶))
1815, 17eqtr3i 2799 . . . 4 ((V ∖ 𝐵) ∪ (V ∖ (V ∖ 𝐶))) = (V ∖ (𝐵 ∖ 𝐶))
1914, 18eqtr3i 2799 . . 3 ((V ∖ 𝐵) ∪ 𝐶) = (V ∖ (𝐵 ∖ 𝐶))
2019ineq2i 4124 . 2 ((𝐴 ∖ 𝐶) ∩ ((V ∖ 𝐵) ∪ 𝐶)) = ((𝐴 ∖ 𝐶) ∩ (V ∖ (𝐵 ∖ 𝐶)))
21 invdif 4234 . 2 ((𝐴 ∖ 𝐶) ∩ (V ∖ (𝐵 ∖ 𝐶))) = ((𝐴 ∖ 𝐶) ∖ (𝐵 ∖ 𝐶))
2212, 20, 213eqtri 2801 1 ((𝐴 ∖ 𝐵) ∖ 𝐶) = ((𝐴 ∖ 𝐶) ∖ (𝐵 ∖ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1572  Vcvv 3461   ∖ cdif 4055   ∩ cin 4099   ∪ cun 4159  ∅c0 4288
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-ext 2746
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1575  df-fal 1585  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-rab 3424  df-v 3463  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator