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 34791
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 4803 . . . 4 (𝑥 𝐴 ↔ ∃𝑦(𝑥𝑦𝑦𝐴))
2 eluni 4803 . . . . 5 (𝑥 𝐵 ↔ ∃𝑦(𝑥𝑦𝑦𝐵))
32notbii 323 . . . 4 𝑥 𝐵 ↔ ¬ ∃𝑦(𝑥𝑦𝑦𝐵))
4 alinexa 1844 . . . . . 6 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) ↔ ¬ ∃𝑦(𝑥𝑦𝑦𝐵))
5 nfa1 2152 . . . . . . 7 𝑦𝑦(𝑥𝑦 → ¬ 𝑦𝐵)
6 sp 2180 . . . . . . . . . 10 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → (𝑥𝑦 → ¬ 𝑦𝐵))
76adantrd 495 . . . . . . . . 9 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → ¬ 𝑦𝐵))
87ancld 554 . . . . . . . 8 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → ((𝑥𝑦𝑦𝐴) ∧ ¬ 𝑦𝐵)))
9 anass 472 . . . . . . . 8 (((𝑥𝑦𝑦𝐴) ∧ ¬ 𝑦𝐵) ↔ (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
108, 9syl6ib 254 . . . . . . 7 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
115, 10eximd 2214 . . . . . 6 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → (∃𝑦(𝑥𝑦𝑦𝐴) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
124, 11sylbir 238 . . . . 5 (¬ ∃𝑦(𝑥𝑦𝑦𝐵) → (∃𝑦(𝑥𝑦𝑦𝐴) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
1312impcom 411 . . . 4 ((∃𝑦(𝑥𝑦𝑦𝐴) ∧ ¬ ∃𝑦(𝑥𝑦𝑦𝐵)) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
141, 3, 13syl2anb 600 . . 3 ((𝑥 𝐴 ∧ ¬ 𝑥 𝐵) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
15 eldif 3891 . . 3 (𝑥 ∈ ( 𝐴 𝐵) ↔ (𝑥 𝐴 ∧ ¬ 𝑥 𝐵))
16 eluni 4803 . . . 4 (𝑥 (𝐴𝐵) ↔ ∃𝑦(𝑥𝑦𝑦 ∈ (𝐴𝐵)))
17 eldif 3891 . . . . . 6 (𝑦 ∈ (𝐴𝐵) ↔ (𝑦𝐴 ∧ ¬ 𝑦𝐵))
1817anbi2i 625 . . . . 5 ((𝑥𝑦𝑦 ∈ (𝐴𝐵)) ↔ (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
1918exbii 1849 . . . 4 (∃𝑦(𝑥𝑦𝑦 ∈ (𝐴𝐵)) ↔ ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
2016, 19bitri 278 . . 3 (𝑥 (𝐴𝐵) ↔ ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
2114, 15, 203imtr4i 295 . 2 (𝑥 ∈ ( 𝐴 𝐵) → 𝑥 (𝐴𝐵))
2221ssriv 3919 1 ( 𝐴 𝐵) ⊆ (𝐴𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 399  wal 1536  wex 1781  wcel 2111  cdif 3878  wss 3881   cuni 4800
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-12 2175  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-ex 1782  df-nf 1786  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-v 3443  df-dif 3884  df-in 3888  df-ss 3898  df-uni 4801
This theorem is referenced by:  inunissunidif  34792
  Copyright terms: Public domain W3C validator