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

Theorem psdmullem 22580
Description: Lemma for psdmul 22581. Transitive law for union of class difference. (Contributed by SN, 5-May-2025.)
Hypotheses
Ref Expression
psdmullem.cb (𝜑 → 𝐶 ⊆ 𝐵)
psdmullem.ba (𝜑 → 𝐵 ⊆ 𝐴)
Assertion
Ref Expression
psdmullem (𝜑 → ((𝐴 ∖ 𝐵) ∪ (𝐵 ∖ 𝐶)) = (𝐴 ∖ 𝐶))

Proof of Theorem psdmullem
StepHypRef Expression
1 undif3 4250 . 2 ((𝐴 ∖ 𝐵) ∪ (𝐵 ∖ 𝐶)) = (((𝐴 ∖ 𝐵) ∪ 𝐵) ∖ (𝐶 ∖ (𝐴 ∖ 𝐵)))
2 psdmullem.ba . . . 4 (𝜑 → 𝐵 ⊆ 𝐴)
3 undifr 4444 . . . 4 (𝐵 ⊆ 𝐴 ↔ ((𝐴 ∖ 𝐵) ∪ 𝐵) = 𝐴)
42, 3sylib 221 . . 3 (𝜑 → ((𝐴 ∖ 𝐵) ∪ 𝐵) = 𝐴)
5 difdif2 4246 . . . 4 (𝐶 ∖ (𝐴 ∖ 𝐵)) = ((𝐶 ∖ 𝐴) ∪ (𝐶 ∩ 𝐵))
6 psdmullem.cb . . . . . . . 8 (𝜑 → 𝐶 ⊆ 𝐵)
76, 2sstrd 3925 . . . . . . 7 (𝜑 → 𝐶 ⊆ 𝐴)
8 ssdif0 4319 . . . . . . 7 (𝐶 ⊆ 𝐴 ↔ (𝐶 ∖ 𝐴) = ∅)
97, 8sylib 221 . . . . . 6 (𝜑 → (𝐶 ∖ 𝐴) = ∅)
10 dfss2 4099 . . . . . . 7 (𝐶 ⊆ 𝐵 ↔ (𝐶 ∩ 𝐵) = 𝐶)
116, 10sylib 221 . . . . . 6 (𝜑 → (𝐶 ∩ 𝐵) = 𝐶)
129, 11uneq12d 4173 . . . . 5 (𝜑 → ((𝐶 ∖ 𝐴) ∪ (𝐶 ∩ 𝐵)) = (∅ ∪ 𝐶))
13 0un 4351 . . . . 5 (∅ ∪ 𝐶) = 𝐶
1412, 13eqtrdi 2820 . . . 4 (𝜑 → ((𝐶 ∖ 𝐴) ∪ (𝐶 ∩ 𝐵)) = 𝐶)
155, 14eqtrid 2816 . . 3 (𝜑 → (𝐶 ∖ (𝐴 ∖ 𝐵)) = 𝐶)
164, 15difeq12d 4069 . 2 (𝜑 → (((𝐴 ∖ 𝐵) ∪ 𝐵) ∖ (𝐶 ∖ (𝐴 ∖ 𝐵))) = (𝐴 ∖ 𝐶))
171, 16eqtrid 2816 1 (𝜑 → ((𝐴 ∖ 𝐵) ∪ (𝐵 ∖ 𝐶)) = (𝐴 ∖ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1572   ⊆ wss 3902   ∖ cdif 4050   ∩ cin 4094   ∪ cun 4154  ∅c0 4283
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 2153  ax-9 2161  ax-ext 2741
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284
This theorem is used by:  psdmul  22581
  Copyright terms: Public domain W3C validator