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

Theorem indifdir 4030
Description: Distribute intersection over difference. (Contributed by Scott Fenton, 14-Apr-2011.)
Assertion
Ref Expression
indifdir ((𝐴𝐵) ∩ 𝐶) = ((𝐴𝐶) ∖ (𝐵𝐶))

Proof of Theorem indifdir
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 pm3.24 389 . . . . . . . 8 ¬ (𝑥𝐶 ∧ ¬ 𝑥𝐶)
21intnan 996 . . . . . . 7 ¬ (𝑥𝐴 ∧ (𝑥𝐶 ∧ ¬ 𝑥𝐶))
3 anass 459 . . . . . . 7 (((𝑥𝐴𝑥𝐶) ∧ ¬ 𝑥𝐶) ↔ (𝑥𝐴 ∧ (𝑥𝐶 ∧ ¬ 𝑥𝐶)))
42, 3mtbir 312 . . . . . 6 ¬ ((𝑥𝐴𝑥𝐶) ∧ ¬ 𝑥𝐶)
54biorfi 898 . . . . 5 (((𝑥𝐴𝑥𝐶) ∧ ¬ 𝑥𝐵) ↔ (((𝑥𝐴𝑥𝐶) ∧ ¬ 𝑥𝐵) ∨ ((𝑥𝐴𝑥𝐶) ∧ ¬ 𝑥𝐶)))
6 an32 617 . . . . 5 (((𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ 𝑥𝐶) ↔ ((𝑥𝐴𝑥𝐶) ∧ ¬ 𝑥𝐵))
7 andi 967 . . . . 5 (((𝑥𝐴𝑥𝐶) ∧ (¬ 𝑥𝐵 ∨ ¬ 𝑥𝐶)) ↔ (((𝑥𝐴𝑥𝐶) ∧ ¬ 𝑥𝐵) ∨ ((𝑥𝐴𝑥𝐶) ∧ ¬ 𝑥𝐶)))
85, 6, 73bitr4i 292 . . . 4 (((𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ 𝑥𝐶) ↔ ((𝑥𝐴𝑥𝐶) ∧ (¬ 𝑥𝐵 ∨ ¬ 𝑥𝐶)))
9 ianor 910 . . . . 5 (¬ (𝑥𝐵𝑥𝐶) ↔ (¬ 𝑥𝐵 ∨ ¬ 𝑥𝐶))
109anbi2i 601 . . . 4 (((𝑥𝐴𝑥𝐶) ∧ ¬ (𝑥𝐵𝑥𝐶)) ↔ ((𝑥𝐴𝑥𝐶) ∧ (¬ 𝑥𝐵 ∨ ¬ 𝑥𝐶)))
118, 10bitr4i 267 . . 3 (((𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ 𝑥𝐶) ↔ ((𝑥𝐴𝑥𝐶) ∧ ¬ (𝑥𝐵𝑥𝐶)))
12 elin 3945 . . . 4 (𝑥 ∈ ((𝐴𝐵) ∩ 𝐶) ↔ (𝑥 ∈ (𝐴𝐵) ∧ 𝑥𝐶))
13 eldif 3731 . . . . 5 (𝑥 ∈ (𝐴𝐵) ↔ (𝑥𝐴 ∧ ¬ 𝑥𝐵))
1413anbi1i 602 . . . 4 ((𝑥 ∈ (𝐴𝐵) ∧ 𝑥𝐶) ↔ ((𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ 𝑥𝐶))
1512, 14bitri 264 . . 3 (𝑥 ∈ ((𝐴𝐵) ∩ 𝐶) ↔ ((𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ 𝑥𝐶))
16 eldif 3731 . . . 4 (𝑥 ∈ ((𝐴𝐶) ∖ (𝐵𝐶)) ↔ (𝑥 ∈ (𝐴𝐶) ∧ ¬ 𝑥 ∈ (𝐵𝐶)))
17 elin 3945 . . . . 5 (𝑥 ∈ (𝐴𝐶) ↔ (𝑥𝐴𝑥𝐶))
18 elin 3945 . . . . . 6 (𝑥 ∈ (𝐵𝐶) ↔ (𝑥𝐵𝑥𝐶))
1918notbii 309 . . . . 5 𝑥 ∈ (𝐵𝐶) ↔ ¬ (𝑥𝐵𝑥𝐶))
2017, 19anbi12i 604 . . . 4 ((𝑥 ∈ (𝐴𝐶) ∧ ¬ 𝑥 ∈ (𝐵𝐶)) ↔ ((𝑥𝐴𝑥𝐶) ∧ ¬ (𝑥𝐵𝑥𝐶)))
2116, 20bitri 264 . . 3 (𝑥 ∈ ((𝐴𝐶) ∖ (𝐵𝐶)) ↔ ((𝑥𝐴𝑥𝐶) ∧ ¬ (𝑥𝐵𝑥𝐶)))
2211, 15, 213bitr4i 292 . 2 (𝑥 ∈ ((𝐴𝐵) ∩ 𝐶) ↔ 𝑥 ∈ ((𝐴𝐶) ∖ (𝐵𝐶)))
2322eqriv 2767 1 ((𝐴𝐵) ∩ 𝐶) = ((𝐴𝐶) ∖ (𝐵𝐶))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 382  wo 826   = wceq 1630  wcel 2144  cdif 3718  cin 3720
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1869  ax-4 1884  ax-5 1990  ax-6 2056  ax-7 2092  ax-9 2153  ax-10 2173  ax-11 2189  ax-12 2202  ax-13 2407  ax-ext 2750
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 827  df-tru 1633  df-ex 1852  df-nf 1857  df-sb 2049  df-clab 2757  df-cleq 2763  df-clel 2766  df-nfc 2901  df-v 3351  df-dif 3724  df-in 3728
This theorem is referenced by:  preddif  5848  fresaun  6215  uniioombllem4  23573  subsalsal  41088
  Copyright terms: Public domain W3C validator