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 33197
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 sseqin2 4119 . . . . 5 (𝐴 ⊆ 𝐶 ↔ (𝐶 ∩ 𝐴) = 𝐴)
21biimpi 219 . . . 4 (𝐴 ⊆ 𝐶 → (𝐶 ∩ 𝐴) = 𝐴)
3 incom 4105 . . . 4 (𝐶 ∩ 𝐴) = (𝐴 ∩ 𝐶)
42, 3eqtr3di 2810 . . 3 (𝐴 ⊆ 𝐶 → 𝐴 = (𝐴 ∩ 𝐶))
54difeq1d 4061 . 2 (𝐴 ⊆ 𝐶 → (𝐴 ∖ 𝐵) = ((𝐴 ∩ 𝐶) ∖ 𝐵))
6 difundi 4234 . . . 4 (𝐶 ∖ ((𝐶 ∖ 𝐴) ∪ 𝐵)) = ((𝐶 ∖ (𝐶 ∖ 𝐴)) ∩ (𝐶 ∖ 𝐵))
7 dfss4 4213 . . . . . 6 (𝐴 ⊆ 𝐶 ↔ (𝐶 ∖ (𝐶 ∖ 𝐴)) = 𝐴)
87biimpi 219 . . . . 5 (𝐴 ⊆ 𝐶 → (𝐶 ∖ (𝐶 ∖ 𝐴)) = 𝐴)
98ineq1d 4115 . . . 4 (𝐴 ⊆ 𝐶 → ((𝐶 ∖ (𝐶 ∖ 𝐴)) ∩ (𝐶 ∖ 𝐵)) = (𝐴 ∩ (𝐶 ∖ 𝐵)))
106, 9eqtrid 2807 . . 3 (𝐴 ⊆ 𝐶 → (𝐶 ∖ ((𝐶 ∖ 𝐴) ∪ 𝐵)) = (𝐴 ∩ (𝐶 ∖ 𝐵)))
11 indif2 4225 . . 3 (𝐴 ∩ (𝐶 ∖ 𝐵)) = ((𝐴 ∩ 𝐶) ∖ 𝐵)
1210, 11eqtrdi 2811 . 2 (𝐴 ⊆ 𝐶 → (𝐶 ∖ ((𝐶 ∖ 𝐴) ∪ 𝐵)) = ((𝐴 ∩ 𝐶) ∖ 𝐵))
135, 12eqtr4d 2798 1 (𝐴 ⊆ 𝐶 → (𝐴 ∖ 𝐵) = (𝐶 ∖ ((𝐶 ∖ 𝐴) ∪ 𝐵)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1569   ⊆ wss 3896   ∖ cdif 4044   ∩ cin 4088   ∪ cun 4148
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-rab 3413  df-v 3452  df-ss 3897  df-dif 4046  df-in 4090  df-un 4150
This theorem is used by:  ldgenpisyslem1  34844
  Copyright terms: Public domain W3C validator