Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  indifundif Structured version   Visualization version   GIF version

Theorem indifundif 33221
Description: A remarkable equation with sets. (Contributed by Thierry Arnoux, 18-May-2020.)
Assertion
Ref Expression
indifundif (((𝐴 ∩ 𝐵) ∖ 𝐶) ∪ (𝐴 ∖ 𝐵)) = (𝐴 ∖ (𝐵 ∩ 𝐶))

Proof of Theorem indifundif
StepHypRef Expression
1 difindi 4239 . 2 (𝐴 ∖ (𝐵 ∩ 𝐶)) = ((𝐴 ∖ 𝐵) ∪ (𝐴 ∖ 𝐶))
2 difundir 4238 . . . . 5 (((𝐴 ∩ 𝐵) ∪ (𝐴 ∖ 𝐵)) ∖ 𝐶) = (((𝐴 ∩ 𝐵) ∖ 𝐶) ∪ ((𝐴 ∖ 𝐵) ∖ 𝐶))
3 inundif 4437 . . . . . 6 ((𝐴 ∩ 𝐵) ∪ (𝐴 ∖ 𝐵)) = 𝐴
43difeq1i 4061 . . . . 5 (((𝐴 ∩ 𝐵) ∪ (𝐴 ∖ 𝐵)) ∖ 𝐶) = (𝐴 ∖ 𝐶)
5 uncom 4159 . . . . 5 (((𝐴 ∩ 𝐵) ∖ 𝐶) ∪ ((𝐴 ∖ 𝐵) ∖ 𝐶)) = (((𝐴 ∖ 𝐵) ∖ 𝐶) ∪ ((𝐴 ∩ 𝐵) ∖ 𝐶))
62, 4, 53eqtr3i 2797 . . . 4 (𝐴 ∖ 𝐶) = (((𝐴 ∖ 𝐵) ∖ 𝐶) ∪ ((𝐴 ∩ 𝐵) ∖ 𝐶))
76uneq2i 4166 . . 3 ((𝐴 ∖ 𝐵) ∪ (𝐴 ∖ 𝐶)) = ((𝐴 ∖ 𝐵) ∪ (((𝐴 ∖ 𝐵) ∖ 𝐶) ∪ ((𝐴 ∩ 𝐵) ∖ 𝐶)))
8 unass 4172 . . 3 (((𝐴 ∖ 𝐵) ∪ ((𝐴 ∖ 𝐵) ∖ 𝐶)) ∪ ((𝐴 ∩ 𝐵) ∖ 𝐶)) = ((𝐴 ∖ 𝐵) ∪ (((𝐴 ∖ 𝐵) ∖ 𝐶) ∪ ((𝐴 ∩ 𝐵) ∖ 𝐶)))
9 undifabs 4436 . . . 4 ((𝐴 ∖ 𝐵) ∪ ((𝐴 ∖ 𝐵) ∖ 𝐶)) = (𝐴 ∖ 𝐵)
109uneq1i 4165 . . 3 (((𝐴 ∖ 𝐵) ∪ ((𝐴 ∖ 𝐵) ∖ 𝐶)) ∪ ((𝐴 ∩ 𝐵) ∖ 𝐶)) = ((𝐴 ∖ 𝐵) ∪ ((𝐴 ∩ 𝐵) ∖ 𝐶))
117, 8, 103eqtr2i 2795 . 2 ((𝐴 ∖ 𝐵) ∪ (𝐴 ∖ 𝐶)) = ((𝐴 ∖ 𝐵) ∪ ((𝐴 ∩ 𝐵) ∖ 𝐶))
12 uncom 4159 . 2 ((𝐴 ∖ 𝐵) ∪ ((𝐴 ∩ 𝐵) ∖ 𝐶)) = (((𝐴 ∩ 𝐵) ∖ 𝐶) ∪ (𝐴 ∖ 𝐵))
131, 11, 123eqtrri 2794 1 (((𝐴 ∩ 𝐵) ∖ 𝐶) ∪ (𝐴 ∖ 𝐵)) = (𝐴 ∖ (𝐵 ∩ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1572   ∖ cdif 4047   ∩ cin 4091   ∪ cun 4151
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-ext 2738
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1575  df-ex 1815  df-sb 2104  df-clab 2745  df-cleq 2758  df-clel 2842  df-rab 3416  df-v 3455  df-dif 4049  df-in 4093  df-un 4153
This theorem is used by:  inelcarsg  35055
  Copyright terms: Public domain W3C validator