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 35533
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 4848 . . . 4 (𝑥 𝐴 ↔ ∃𝑦(𝑥𝑦𝑦𝐴))
2 eluni 4848 . . . . 5 (𝑥 𝐵 ↔ ∃𝑦(𝑥𝑦𝑦𝐵))
32notbii 320 . . . 4 𝑥 𝐵 ↔ ¬ ∃𝑦(𝑥𝑦𝑦𝐵))
4 alinexa 1849 . . . . . 6 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) ↔ ¬ ∃𝑦(𝑥𝑦𝑦𝐵))
5 nfa1 2152 . . . . . . 7 𝑦𝑦(𝑥𝑦 → ¬ 𝑦𝐵)
6 sp 2180 . . . . . . . . . 10 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → (𝑥𝑦 → ¬ 𝑦𝐵))
76adantrd 492 . . . . . . . . 9 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → ¬ 𝑦𝐵))
87ancld 551 . . . . . . . 8 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → ((𝑥𝑦𝑦𝐴) ∧ ¬ 𝑦𝐵)))
9 anass 469 . . . . . . . 8 (((𝑥𝑦𝑦𝐴) ∧ ¬ 𝑦𝐵) ↔ (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
108, 9syl6ib 250 . . . . . . 7 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → ((𝑥𝑦𝑦𝐴) → (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
115, 10eximd 2213 . . . . . 6 (∀𝑦(𝑥𝑦 → ¬ 𝑦𝐵) → (∃𝑦(𝑥𝑦𝑦𝐴) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
124, 11sylbir 234 . . . . 5 (¬ ∃𝑦(𝑥𝑦𝑦𝐵) → (∃𝑦(𝑥𝑦𝑦𝐴) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵))))
1312impcom 408 . . . 4 ((∃𝑦(𝑥𝑦𝑦𝐴) ∧ ¬ ∃𝑦(𝑥𝑦𝑦𝐵)) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
141, 3, 13syl2anb 598 . . 3 ((𝑥 𝐴 ∧ ¬ 𝑥 𝐵) → ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
15 eldif 3902 . . 3 (𝑥 ∈ ( 𝐴 𝐵) ↔ (𝑥 𝐴 ∧ ¬ 𝑥 𝐵))
16 eluni 4848 . . . 4 (𝑥 (𝐴𝐵) ↔ ∃𝑦(𝑥𝑦𝑦 ∈ (𝐴𝐵)))
17 eldif 3902 . . . . . 6 (𝑦 ∈ (𝐴𝐵) ↔ (𝑦𝐴 ∧ ¬ 𝑦𝐵))
1817anbi2i 623 . . . . 5 ((𝑥𝑦𝑦 ∈ (𝐴𝐵)) ↔ (𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
1918exbii 1854 . . . 4 (∃𝑦(𝑥𝑦𝑦 ∈ (𝐴𝐵)) ↔ ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
2016, 19bitri 274 . . 3 (𝑥 (𝐴𝐵) ↔ ∃𝑦(𝑥𝑦 ∧ (𝑦𝐴 ∧ ¬ 𝑦𝐵)))
2114, 15, 203imtr4i 292 . 2 (𝑥 ∈ ( 𝐴 𝐵) → 𝑥 (𝐴𝐵))
2221ssriv 3930 1 ( 𝐴 𝐵) ⊆ (𝐴𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396  wal 1540  wex 1786  wcel 2110  cdif 3889  wss 3892   cuni 4845
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2015  ax-8 2112  ax-9 2120  ax-10 2141  ax-12 2175  ax-ext 2711
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1545  df-ex 1787  df-nf 1791  df-sb 2072  df-clab 2718  df-cleq 2732  df-clel 2818  df-v 3433  df-dif 3895  df-in 3899  df-ss 3909  df-uni 4846
This theorem is referenced by:  inunissunidif  35534
  Copyright terms: Public domain W3C validator