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

Theorem difex2 7775
Description: If the subtrahend of a class difference exists, then the minuend exists iff the difference exists. (Contributed by NM, 12-Nov-2003.) (Proof shortened by Andrew Salmon, 12-Aug-2011.)
Assertion
Ref Expression
difex2 (𝐵 ∈ 𝐶 → (𝐴 ∈ V ↔ (𝐴 ∖ 𝐵) ∈ V))

Proof of Theorem difex2
StepHypRef Expression
1 difexg 5290 . 2 (𝐴 ∈ V → (𝐴 ∖ 𝐵) ∈ V)
2 ssun2 4177 . . . . 5 𝐴 ⊆ (𝐵 ∪ 𝐴)
3 uncom 4157 . . . . . 6 ((𝐴 ∖ 𝐵) ∪ 𝐵) = (𝐵 ∪ (𝐴 ∖ 𝐵))
4 undif2 4430 . . . . . 6 (𝐵 ∪ (𝐴 ∖ 𝐵)) = (𝐵 ∪ 𝐴)
53, 4eqtr2i 2784 . . . . 5 (𝐵 ∪ 𝐴) = ((𝐴 ∖ 𝐵) ∪ 𝐵)
62, 5sseqtri 3956 . . . 4 𝐴 ⊆ ((𝐴 ∖ 𝐵) ∪ 𝐵)
7 unexg 7761 . . . 4 (((𝐴 ∖ 𝐵) ∈ V ∧ 𝐵 ∈ 𝐶) → ((𝐴 ∖ 𝐵) ∪ 𝐵) ∈ V)
8 ssexg 5280 . . . 4 ((𝐴 ⊆ ((𝐴 ∖ 𝐵) ∪ 𝐵) ∧ ((𝐴 ∖ 𝐵) ∪ 𝐵) ∈ V) → 𝐴 ∈ V)
96, 7, 8sylancr 599 . . 3 (((𝐴 ∖ 𝐵) ∈ V ∧ 𝐵 ∈ 𝐶) → 𝐴 ∈ V)
109expcom 419 . 2 (𝐵 ∈ 𝐶 → ((𝐴 ∖ 𝐵) ∈ V → 𝐴 ∈ V))
111, 10impbid2 229 1 (𝐵 ∈ 𝐶 → (𝐴 ∈ V ↔ (𝐴 ∖ 𝐵) ∈ V))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∈ wcel 2144  Vcvv 3450   ⊆ wss 3895   ∖ cdif 4045   ∪ cun 4149
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732  ax-sep 5248  ax-pr 5390  ax-un 7752
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-sn 4585  df-pr 4587  df-uni 4867
This theorem is used by:  elpwun  7784  acwer1prc  35817
  Copyright terms: Public domain W3C validator