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

Theorem difuncomp 30317
Description: Express a class difference using unions and class complements. (Contributed by Thierry Arnoux, 21-Jun-2020.)
Assertion
Ref Expression
difuncomp (𝐴𝐶 → (𝐴𝐵) = (𝐶 ∖ ((𝐶𝐴) ∪ 𝐵)))

Proof of Theorem difuncomp
StepHypRef Expression
1 incom 4128 . . . 4 (𝐶𝐴) = (𝐴𝐶)
2 sseqin2 4142 . . . . 5 (𝐴𝐶 ↔ (𝐶𝐴) = 𝐴)
32biimpi 219 . . . 4 (𝐴𝐶 → (𝐶𝐴) = 𝐴)
41, 3syl5reqr 2848 . . 3 (𝐴𝐶𝐴 = (𝐴𝐶))
54difeq1d 4049 . 2 (𝐴𝐶 → (𝐴𝐵) = ((𝐴𝐶) ∖ 𝐵))
6 difundi 4206 . . . 4 (𝐶 ∖ ((𝐶𝐴) ∪ 𝐵)) = ((𝐶 ∖ (𝐶𝐴)) ∩ (𝐶𝐵))
7 dfss4 4185 . . . . . 6 (𝐴𝐶 ↔ (𝐶 ∖ (𝐶𝐴)) = 𝐴)
87biimpi 219 . . . . 5 (𝐴𝐶 → (𝐶 ∖ (𝐶𝐴)) = 𝐴)
98ineq1d 4138 . . . 4 (𝐴𝐶 → ((𝐶 ∖ (𝐶𝐴)) ∩ (𝐶𝐵)) = (𝐴 ∩ (𝐶𝐵)))
106, 9syl5eq 2845 . . 3 (𝐴𝐶 → (𝐶 ∖ ((𝐶𝐴) ∪ 𝐵)) = (𝐴 ∩ (𝐶𝐵)))
11 indif2 4197 . . 3 (𝐴 ∩ (𝐶𝐵)) = ((𝐴𝐶) ∖ 𝐵)
1210, 11eqtrdi 2849 . 2 (𝐴𝐶 → (𝐶 ∖ ((𝐶𝐴) ∪ 𝐵)) = ((𝐴𝐶) ∖ 𝐵))
135, 12eqtr4d 2836 1 (𝐴𝐶 → (𝐴𝐵) = (𝐶 ∖ ((𝐶𝐴) ∪ 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1538  cdif 3878  cun 3879  cin 3880  wss 3881
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 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-tru 1541  df-ex 1782  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-rab 3115  df-v 3443  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898
This theorem is referenced by:  ldgenpisyslem1  31532
  Copyright terms: Public domain W3C validator