MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  undif4 Structured version   Visualization version   GIF version

Theorem undif4 4418
Description: Distribute union over difference. (Contributed by NM, 17-May-1998.) (Proof shortened by Andrew Salmon, 26-Jun-2011.)
Assertion
Ref Expression
undif4 ((𝐴𝐶) = ∅ → (𝐴 ∪ (𝐵𝐶)) = ((𝐴𝐵) ∖ 𝐶))

Proof of Theorem undif4
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 pm2.621 895 . . . . . . 7 ((𝑥𝐴 → ¬ 𝑥𝐶) → ((𝑥𝐴 ∨ ¬ 𝑥𝐶) → ¬ 𝑥𝐶))
2 olc 864 . . . . . . 7 𝑥𝐶 → (𝑥𝐴 ∨ ¬ 𝑥𝐶))
31, 2impbid1 227 . . . . . 6 ((𝑥𝐴 → ¬ 𝑥𝐶) → ((𝑥𝐴 ∨ ¬ 𝑥𝐶) ↔ ¬ 𝑥𝐶))
43anbi2d 630 . . . . 5 ((𝑥𝐴 → ¬ 𝑥𝐶) → (((𝑥𝐴𝑥𝐵) ∧ (𝑥𝐴 ∨ ¬ 𝑥𝐶)) ↔ ((𝑥𝐴𝑥𝐵) ∧ ¬ 𝑥𝐶)))
5 eldif 3948 . . . . . . 7 (𝑥 ∈ (𝐵𝐶) ↔ (𝑥𝐵 ∧ ¬ 𝑥𝐶))
65orbi2i 909 . . . . . 6 ((𝑥𝐴𝑥 ∈ (𝐵𝐶)) ↔ (𝑥𝐴 ∨ (𝑥𝐵 ∧ ¬ 𝑥𝐶)))
7 ordi 1002 . . . . . 6 ((𝑥𝐴 ∨ (𝑥𝐵 ∧ ¬ 𝑥𝐶)) ↔ ((𝑥𝐴𝑥𝐵) ∧ (𝑥𝐴 ∨ ¬ 𝑥𝐶)))
86, 7bitri 277 . . . . 5 ((𝑥𝐴𝑥 ∈ (𝐵𝐶)) ↔ ((𝑥𝐴𝑥𝐵) ∧ (𝑥𝐴 ∨ ¬ 𝑥𝐶)))
9 elun 4127 . . . . . 6 (𝑥 ∈ (𝐴𝐵) ↔ (𝑥𝐴𝑥𝐵))
109anbi1i 625 . . . . 5 ((𝑥 ∈ (𝐴𝐵) ∧ ¬ 𝑥𝐶) ↔ ((𝑥𝐴𝑥𝐵) ∧ ¬ 𝑥𝐶))
114, 8, 103bitr4g 316 . . . 4 ((𝑥𝐴 → ¬ 𝑥𝐶) → ((𝑥𝐴𝑥 ∈ (𝐵𝐶)) ↔ (𝑥 ∈ (𝐴𝐵) ∧ ¬ 𝑥𝐶)))
12 elun 4127 . . . 4 (𝑥 ∈ (𝐴 ∪ (𝐵𝐶)) ↔ (𝑥𝐴𝑥 ∈ (𝐵𝐶)))
13 eldif 3948 . . . 4 (𝑥 ∈ ((𝐴𝐵) ∖ 𝐶) ↔ (𝑥 ∈ (𝐴𝐵) ∧ ¬ 𝑥𝐶))
1411, 12, 133bitr4g 316 . . 3 ((𝑥𝐴 → ¬ 𝑥𝐶) → (𝑥 ∈ (𝐴 ∪ (𝐵𝐶)) ↔ 𝑥 ∈ ((𝐴𝐵) ∖ 𝐶)))
1514alimi 1812 . 2 (∀𝑥(𝑥𝐴 → ¬ 𝑥𝐶) → ∀𝑥(𝑥 ∈ (𝐴 ∪ (𝐵𝐶)) ↔ 𝑥 ∈ ((𝐴𝐵) ∖ 𝐶)))
16 disj1 4403 . 2 ((𝐴𝐶) = ∅ ↔ ∀𝑥(𝑥𝐴 → ¬ 𝑥𝐶))
17 dfcleq 2817 . 2 ((𝐴 ∪ (𝐵𝐶)) = ((𝐴𝐵) ∖ 𝐶) ↔ ∀𝑥(𝑥 ∈ (𝐴 ∪ (𝐵𝐶)) ↔ 𝑥 ∈ ((𝐴𝐵) ∖ 𝐶)))
1815, 16, 173imtr4i 294 1 ((𝐴𝐶) = ∅ → (𝐴 ∪ (𝐵𝐶)) = ((𝐴𝐵) ∖ 𝐶))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843  wal 1535   = wceq 1537  wcel 2114  cdif 3935  cun 3936  cin 3937  c0 4293
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 2795
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 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ral 3145  df-v 3498  df-dif 3941  df-un 3943  df-in 3945  df-nul 4294
This theorem is referenced by:  phplem1  8698  infdifsn  9122  difico  30508  lindsunlem  31022  caratheodorylem1  42815
  Copyright terms: Public domain W3C validator