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

Theorem indifdi 4243
Description: Distribute intersection over difference. (Contributed by BTernaryTau, 14-Aug-2024.)
Assertion
Ref Expression
indifdi (𝐴 ∩ (𝐵𝐶)) = ((𝐴𝐵) ∖ (𝐴𝐶))

Proof of Theorem indifdi
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 elin 3926 . . 3 (𝑥 ∈ (𝐴 ∩ (𝐵𝐶)) ↔ (𝑥𝐴𝑥 ∈ (𝐵𝐶)))
2 eldif 3920 . . . 4 (𝑥 ∈ (𝐵𝐶) ↔ (𝑥𝐵 ∧ ¬ 𝑥𝐶))
32anbi2i 623 . . 3 ((𝑥𝐴𝑥 ∈ (𝐵𝐶)) ↔ (𝑥𝐴 ∧ (𝑥𝐵 ∧ ¬ 𝑥𝐶)))
4 abai 825 . . . . 5 ((𝑥𝐴 ∧ ¬ 𝑥𝐶) ↔ (𝑥𝐴 ∧ (𝑥𝐴 → ¬ 𝑥𝐶)))
54anbi2i 623 . . . 4 ((𝑥𝐵 ∧ (𝑥𝐴 ∧ ¬ 𝑥𝐶)) ↔ (𝑥𝐵 ∧ (𝑥𝐴 ∧ (𝑥𝐴 → ¬ 𝑥𝐶))))
6 an12 643 . . . 4 ((𝑥𝐴 ∧ (𝑥𝐵 ∧ ¬ 𝑥𝐶)) ↔ (𝑥𝐵 ∧ (𝑥𝐴 ∧ ¬ 𝑥𝐶)))
7 eldif 3920 . . . . 5 (𝑥 ∈ ((𝐴𝐵) ∖ (𝐴𝐶)) ↔ (𝑥 ∈ (𝐴𝐵) ∧ ¬ 𝑥 ∈ (𝐴𝐶)))
8 elin 3926 . . . . . . 7 (𝑥 ∈ (𝐴𝐵) ↔ (𝑥𝐴𝑥𝐵))
98bicomi 223 . . . . . 6 ((𝑥𝐴𝑥𝐵) ↔ 𝑥 ∈ (𝐴𝐵))
10 imnan 400 . . . . . . 7 ((𝑥𝐴 → ¬ 𝑥𝐶) ↔ ¬ (𝑥𝐴𝑥𝐶))
11 elin 3926 . . . . . . 7 (𝑥 ∈ (𝐴𝐶) ↔ (𝑥𝐴𝑥𝐶))
1210, 11xchbinxr 334 . . . . . 6 ((𝑥𝐴 → ¬ 𝑥𝐶) ↔ ¬ 𝑥 ∈ (𝐴𝐶))
139, 12anbi12i 627 . . . . 5 (((𝑥𝐴𝑥𝐵) ∧ (𝑥𝐴 → ¬ 𝑥𝐶)) ↔ (𝑥 ∈ (𝐴𝐵) ∧ ¬ 𝑥 ∈ (𝐴𝐶)))
14 an21 642 . . . . 5 (((𝑥𝐴𝑥𝐵) ∧ (𝑥𝐴 → ¬ 𝑥𝐶)) ↔ (𝑥𝐵 ∧ (𝑥𝐴 ∧ (𝑥𝐴 → ¬ 𝑥𝐶))))
157, 13, 143bitr2i 298 . . . 4 (𝑥 ∈ ((𝐴𝐵) ∖ (𝐴𝐶)) ↔ (𝑥𝐵 ∧ (𝑥𝐴 ∧ (𝑥𝐴 → ¬ 𝑥𝐶))))
165, 6, 153bitr4i 302 . . 3 ((𝑥𝐴 ∧ (𝑥𝐵 ∧ ¬ 𝑥𝐶)) ↔ 𝑥 ∈ ((𝐴𝐵) ∖ (𝐴𝐶)))
171, 3, 163bitri 296 . 2 (𝑥 ∈ (𝐴 ∩ (𝐵𝐶)) ↔ 𝑥 ∈ ((𝐴𝐵) ∖ (𝐴𝐶)))
1817eqriv 2733 1 (𝐴 ∩ (𝐵𝐶)) = ((𝐴𝐵) ∖ (𝐴𝐶))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1541  wcel 2106  cdif 3907  cin 3909
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2707
This theorem depends on definitions:  df-bi 206  df-an 397  df-tru 1544  df-ex 1782  df-sb 2068  df-clab 2714  df-cleq 2728  df-clel 2814  df-v 3447  df-dif 3913  df-in 3917
This theorem is referenced by:  indifdir  4244  resdifdi  6188  iscnrm3rlem4  46947
  Copyright terms: Public domain W3C validator