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 35472
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 4839 . . . 4 (𝑥 𝐴 ↔ ∃𝑦(𝑥𝑦𝑦𝐴))
2 eluni 4839 . . . . 5 (𝑥 𝐵 ↔ ∃𝑦(𝑥𝑦𝑦𝐵))
32notbii 319 . . . 4 𝑥 𝐵 ↔ ¬ ∃𝑦(𝑥𝑦𝑦𝐵))
4 alinexa 1846 . . . . . 6 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) ↔ ¬ ∃𝑦(𝑥𝑦𝑦𝐵))
5 nfa1 2150 . . . . . . 7 𝑦𝑦(𝑥𝑦 → ¬ 𝑦𝐵)
6 sp 2178 . . . . . . . . . 10 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → (𝑥𝑦 → ¬ 𝑦𝐵))
76adantrd 491 . . . . . . . . 9 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → ¬ 𝑦𝐵))
87ancld 550 . . . . . . . 8 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → ((𝑥𝑦𝑦𝐴) ∧ ¬ 𝑦𝐵)))
9 anass 468 . . . . . . . 8 (((𝑥𝑦𝑦𝐴) ∧ ¬ 𝑦𝐵) ↔ (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
108, 9syl6ib 250 . . . . . . 7 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
115, 10eximd 2212 . . . . . 6 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → (∃𝑦(𝑥𝑦𝑦𝐴) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
124, 11sylbir 234 . . . . 5 (¬ ∃𝑦(𝑥𝑦𝑦𝐵) → (∃𝑦(𝑥𝑦𝑦𝐴) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
1312impcom 407 . . . 4 ((∃𝑦(𝑥𝑦𝑦𝐴) ∧ ¬ ∃𝑦(𝑥𝑦𝑦𝐵)) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
141, 3, 13syl2anb 597 . . 3 ((𝑥 𝐴 ∧ ¬ 𝑥 𝐵) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
15 eldif 3893 . . 3 (𝑥 ∈ ( 𝐴 𝐵) ↔ (𝑥 𝐴 ∧ ¬ 𝑥 𝐵))
16 eluni 4839 . . . 4 (𝑥 (𝐴𝐵) ↔ ∃𝑦(𝑥𝑦𝑦 ∈ (𝐴𝐵)))
17 eldif 3893 . . . . . 6 (𝑦 ∈ (𝐴𝐵) ↔ (𝑦𝐴 ∧ ¬ 𝑦𝐵))
1817anbi2i 622 . . . . 5 ((𝑥𝑦𝑦 ∈ (𝐴𝐵)) ↔ (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
1918exbii 1851 . . . 4 (∃𝑦(𝑥𝑦𝑦 ∈ (𝐴𝐵)) ↔ ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
2016, 19bitri 274 . . 3 (𝑥 (𝐴𝐵) ↔ ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
2114, 15, 203imtr4i 291 . 2 (𝑥 ∈ ( 𝐴 𝐵) → 𝑥 (𝐴𝐵))
2221ssriv 3921 1 ( 𝐴 𝐵) ⊆ (𝐴𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395  wal 1537  wex 1783  wcel 2108  cdif 3880  wss 3883   cuni 4836
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-12 2173  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-v 3424  df-dif 3886  df-in 3890  df-ss 3900  df-uni 4837
This theorem is referenced by:  inunissunidif  35473
  Copyright terms: Public domain W3C validator