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

Theorem difunieq 35545
Description: The difference of unions is a subset of the union of the difference. (Contributed by ML, 29-Mar-2021.)
Assertion
Ref Expression
difunieq ( 𝐴 𝐵) ⊆ (𝐴𝐵)

Proof of Theorem difunieq
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eluni 4842 . . . 4 (𝑥 𝐴 ↔ ∃𝑦(𝑥𝑦𝑦𝐴))
2 eluni 4842 . . . . 5 (𝑥 𝐵 ↔ ∃𝑦(𝑥𝑦𝑦𝐵))
32notbii 320 . . . 4 𝑥 𝐵 ↔ ¬ ∃𝑦(𝑥𝑦𝑦𝐵))
4 alinexa 1845 . . . . . 6 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) ↔ ¬ ∃𝑦(𝑥𝑦𝑦𝐵))
5 nfa1 2148 . . . . . . 7 𝑦𝑦(𝑥𝑦 → ¬ 𝑦𝐵)
6 sp 2176 . . . . . . . . . 10 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → (𝑥𝑦 → ¬ 𝑦𝐵))
76adantrd 492 . . . . . . . . 9 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → ¬ 𝑦𝐵))
87ancld 551 . . . . . . . 8 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → ((𝑥𝑦𝑦𝐴) ∧ ¬ 𝑦𝐵)))
9 anass 469 . . . . . . . 8 (((𝑥𝑦𝑦𝐴) ∧ ¬ 𝑦𝐵) ↔ (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
108, 9syl6ib 250 . . . . . . 7 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
115, 10eximd 2209 . . . . . 6 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → (∃𝑦(𝑥𝑦𝑦𝐴) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
124, 11sylbir 234 . . . . 5 (¬ ∃𝑦(𝑥𝑦𝑦𝐵) → (∃𝑦(𝑥𝑦𝑦𝐴) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
1312impcom 408 . . . 4 ((∃𝑦(𝑥𝑦𝑦𝐴) ∧ ¬ ∃𝑦(𝑥𝑦𝑦𝐵)) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
141, 3, 13syl2anb 598 . . 3 ((𝑥 𝐴 ∧ ¬ 𝑥 𝐵) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
15 eldif 3897 . . 3 (𝑥 ∈ ( 𝐴 𝐵) ↔ (𝑥 𝐴 ∧ ¬ 𝑥 𝐵))
16 eluni 4842 . . . 4 (𝑥 (𝐴𝐵) ↔ ∃𝑦(𝑥𝑦𝑦 ∈ (𝐴𝐵)))
17 eldif 3897 . . . . . 6 (𝑦 ∈ (𝐴𝐵) ↔ (𝑦𝐴 ∧ ¬ 𝑦𝐵))
1817anbi2i 623 . . . . 5 ((𝑥𝑦𝑦 ∈ (𝐴𝐵)) ↔ (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
1918exbii 1850 . . . 4 (∃𝑦(𝑥𝑦𝑦 ∈ (𝐴𝐵)) ↔ ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
2016, 19bitri 274 . . 3 (𝑥 (𝐴𝐵) ↔ ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
2114, 15, 203imtr4i 292 . 2 (𝑥 ∈ ( 𝐴 𝐵) → 𝑥 (𝐴𝐵))
2221ssriv 3925 1 ( 𝐴 𝐵) ⊆ (𝐴𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396  wal 1537  wex 1782  wcel 2106  cdif 3884  wss 3887   cuni 4839
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-12 2171  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1542  df-ex 1783  df-nf 1787  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-v 3434  df-dif 3890  df-in 3894  df-ss 3904  df-uni 4840
This theorem is referenced by:  inunissunidif  35546
  Copyright terms: Public domain W3C validator