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 33367
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 4130 . . . . 5 (𝐴 ⊆ 𝐶 ↔ (𝐶 ∩ 𝐴) = 𝐴)
21biimpi 219 . . . 4 (𝐴 ⊆ 𝐶 → (𝐶 ∩ 𝐴) = 𝐴)
3 incom 4116 . . . 4 (𝐶 ∩ 𝐴) = (𝐴 ∩ 𝐶)
42, 3eqtr3di 2824 . . 3 (𝐴 ⊆ 𝐶 → 𝐴 = (𝐴 ∩ 𝐶))
54difeq1d 4072 . 2 (𝐴 ⊆ 𝐶 → (𝐴 ∖ 𝐵) = ((𝐴 ∩ 𝐶) ∖ 𝐵))
6 difundi 4245 . . . 4 (𝐶 ∖ ((𝐶 ∖ 𝐴) ∪ 𝐵)) = ((𝐶 ∖ (𝐶 ∖ 𝐴)) ∩ (𝐶 ∖ 𝐵))
7 dfss4 4224 . . . . . 6 (𝐴 ⊆ 𝐶 ↔ (𝐶 ∖ (𝐶 ∖ 𝐴)) = 𝐴)
87biimpi 219 . . . . 5 (𝐴 ⊆ 𝐶 → (𝐶 ∖ (𝐶 ∖ 𝐴)) = 𝐴)
98ineq1d 4126 . . . 4 (𝐴 ⊆ 𝐶 → ((𝐶 ∖ (𝐶 ∖ 𝐴)) ∩ (𝐶 ∖ 𝐵)) = (𝐴 ∩ (𝐶 ∖ 𝐵)))
106, 9eqtrid 2821 . . 3 (𝐴 ⊆ 𝐶 → (𝐶 ∖ ((𝐶 ∖ 𝐴) ∪ 𝐵)) = (𝐴 ∩ (𝐶 ∖ 𝐵)))
11 indif2 4236 . . 3 (𝐴 ∩ (𝐶 ∖ 𝐵)) = ((𝐴 ∩ 𝐶) ∖ 𝐵)
1210, 11eqtrdi 2825 . 2 (𝐴 ⊆ 𝐶 → (𝐶 ∖ ((𝐶 ∖ 𝐴) ∪ 𝐵)) = ((𝐴 ∩ 𝐶) ∖ 𝐵))
135, 12eqtr4d 2812 1 (𝐴 ⊆ 𝐶 → (𝐴 ∖ 𝐵) = (𝐶 ∖ ((𝐶 ∖ 𝐴) ∪ 𝐵)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1572   ⊆ wss 3907   ∖ cdif 4055   ∩ cin 4099   ∪ cun 4159
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-ext 2746
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-rab 3424  df-v 3463  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161
This theorem is used by:  ldgenpisyslem1  34979
  Copyright terms: Public domain W3C validator