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

Theorem indifdi 4217
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 3903 . . 3 (𝑥 ∈ (𝐴 ∩ (𝐵𝐶)) ↔ (𝑥𝐴𝑥 ∈ (𝐵𝐶)))
2 eldif 3897 . . . 4 (𝑥 ∈ (𝐵𝐶) ↔ (𝑥𝐵 ∧ ¬ 𝑥𝐶))
32anbi2i 623 . . 3 ((𝑥𝐴𝑥 ∈ (𝐵𝐶)) ↔ (𝑥𝐴 ∧ (𝑥𝐵 ∧ ¬ 𝑥𝐶)))
4 abai 824 . . . . 5 ((𝑥𝐴 ∧ ¬ 𝑥𝐶) ↔ (𝑥𝐴 ∧ (𝑥𝐴 → ¬ 𝑥𝐶)))
54anbi2i 623 . . . 4 ((𝑥𝐵 ∧ (𝑥𝐴 ∧ ¬ 𝑥𝐶)) ↔ (𝑥𝐵 ∧ (𝑥𝐴 ∧ (𝑥𝐴 → ¬ 𝑥𝐶))))
6 an12 642 . . . 4 ((𝑥𝐴 ∧ (𝑥𝐵 ∧ ¬ 𝑥𝐶)) ↔ (𝑥𝐵 ∧ (𝑥𝐴 ∧ ¬ 𝑥𝐶)))
7 eldif 3897 . . . . 5 (𝑥 ∈ ((𝐴𝐵) ∖ (𝐴𝐶)) ↔ (𝑥 ∈ (𝐴𝐵) ∧ ¬ 𝑥 ∈ (𝐴𝐶)))
8 elin 3903 . . . . . . 7 (𝑥 ∈ (𝐴𝐵) ↔ (𝑥𝐴𝑥𝐵))
98bicomi 223 . . . . . 6 ((𝑥𝐴𝑥𝐵) ↔ 𝑥 ∈ (𝐴𝐵))
10 imnan 400 . . . . . . 7 ((𝑥𝐴 → ¬ 𝑥𝐶) ↔ ¬ (𝑥𝐴𝑥𝐶))
11 elin 3903 . . . . . . 7 (𝑥 ∈ (𝐴𝐶) ↔ (𝑥𝐴𝑥𝐶))
1210, 11xchbinxr 335 . . . . . 6 ((𝑥𝐴 → ¬ 𝑥𝐶) ↔ ¬ 𝑥 ∈ (𝐴𝐶))
139, 12anbi12i 627 . . . . 5 (((𝑥𝐴𝑥𝐵) ∧ (𝑥𝐴 → ¬ 𝑥𝐶)) ↔ (𝑥 ∈ (𝐴𝐵) ∧ ¬ 𝑥 ∈ (𝐴𝐶)))
14 an21 641 . . . . 5 (((𝑥𝐴𝑥𝐵) ∧ (𝑥𝐴 → ¬ 𝑥𝐶)) ↔ (𝑥𝐵 ∧ (𝑥𝐴 ∧ (𝑥𝐴 → ¬ 𝑥𝐶))))
157, 13, 143bitr2i 299 . . . 4 (𝑥 ∈ ((𝐴𝐵) ∖ (𝐴𝐶)) ↔ (𝑥𝐵 ∧ (𝑥𝐴 ∧ (𝑥𝐴 → ¬ 𝑥𝐶))))
165, 6, 153bitr4i 303 . . 3 ((𝑥𝐴 ∧ (𝑥𝐵 ∧ ¬ 𝑥𝐶)) ↔ 𝑥 ∈ ((𝐴𝐵) ∖ (𝐴𝐶)))
171, 3, 163bitri 297 . 2 (𝑥 ∈ (𝐴 ∩ (𝐵𝐶)) ↔ 𝑥 ∈ ((𝐴𝐵) ∖ (𝐴𝐶)))
1817eqriv 2735 1 (𝐴 ∩ (𝐵𝐶)) = ((𝐴𝐵) ∖ (𝐴𝐶))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1539  wcel 2106  cdif 3884  cin 3886
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-tru 1542  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-v 3434  df-dif 3890  df-in 3894
This theorem is referenced by:  indifdir  4218  resdifdi  6139  iscnrm3rlem4  46237
  Copyright terms: Public domain W3C validator