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 34658
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 4841 . . . 4 (𝑥 𝐴 ↔ ∃𝑦(𝑥𝑦𝑦𝐴))
2 eluni 4841 . . . . 5 (𝑥 𝐵 ↔ ∃𝑦(𝑥𝑦𝑦𝐵))
32notbii 322 . . . 4 𝑥 𝐵 ↔ ¬ ∃𝑦(𝑥𝑦𝑦𝐵))
4 alinexa 1843 . . . . . 6 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) ↔ ¬ ∃𝑦(𝑥𝑦𝑦𝐵))
5 nfa1 2155 . . . . . . 7 𝑦𝑦(𝑥𝑦 → ¬ 𝑦𝐵)
6 sp 2182 . . . . . . . . . 10 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → (𝑥𝑦 → ¬ 𝑦𝐵))
76adantrd 494 . . . . . . . . 9 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → ¬ 𝑦𝐵))
87ancld 553 . . . . . . . 8 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → ((𝑥𝑦𝑦𝐴) ∧ ¬ 𝑦𝐵)))
9 anass 471 . . . . . . . 8 (((𝑥𝑦𝑦𝐴) ∧ ¬ 𝑦𝐵) ↔ (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
108, 9syl6ib 253 . . . . . . 7 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
115, 10eximd 2216 . . . . . 6 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → (∃𝑦(𝑥𝑦𝑦𝐴) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
124, 11sylbir 237 . . . . 5 (¬ ∃𝑦(𝑥𝑦𝑦𝐵) → (∃𝑦(𝑥𝑦𝑦𝐴) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
1312impcom 410 . . . 4 ((∃𝑦(𝑥𝑦𝑦𝐴) ∧ ¬ ∃𝑦(𝑥𝑦𝑦𝐵)) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
141, 3, 13syl2anb 599 . . 3 ((𝑥 𝐴 ∧ ¬ 𝑥 𝐵) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
15 eldif 3946 . . 3 (𝑥 ∈ ( 𝐴 𝐵) ↔ (𝑥 𝐴 ∧ ¬ 𝑥 𝐵))
16 eluni 4841 . . . 4 (𝑥 (𝐴𝐵) ↔ ∃𝑦(𝑥𝑦𝑦 ∈ (𝐴𝐵)))
17 eldif 3946 . . . . . 6 (𝑦 ∈ (𝐴𝐵) ↔ (𝑦𝐴 ∧ ¬ 𝑦𝐵))
1817anbi2i 624 . . . . 5 ((𝑥𝑦𝑦 ∈ (𝐴𝐵)) ↔ (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
1918exbii 1848 . . . 4 (∃𝑦(𝑥𝑦𝑦 ∈ (𝐴𝐵)) ↔ ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
2016, 19bitri 277 . . 3 (𝑥 (𝐴𝐵) ↔ ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
2114, 15, 203imtr4i 294 . 2 (𝑥 ∈ ( 𝐴 𝐵) → 𝑥 (𝐴𝐵))
2221ssriv 3971 1 ( 𝐴 𝐵) ⊆ (𝐴𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 398  wal 1535  wex 1780  wcel 2114  cdif 3933  wss 3936   cuni 4838
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-v 3496  df-dif 3939  df-in 3943  df-ss 3952  df-uni 4839
This theorem is referenced by:  inunissunidif  34659
  Copyright terms: Public domain W3C validator