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

Theorem difdif 4070
Description: Double class difference. Exercise 11 of [TakeutiZaring] p. 22. (Contributed by NM, 17-May-1998.)
Assertion
Ref Expression
difdif (𝐴 ∖ (𝐵 ∖ 𝐴)) = 𝐴

Proof of Theorem difdif
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 pm4.45im 841 . . 3 (𝑥 ∈ 𝐴 ↔ (𝑥 ∈ 𝐴 ∧ (𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐴)))
2 iman 407 . . . . 5 ((𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐴) ↔ ¬ (𝑥 ∈ 𝐵 ∧ ¬ 𝑥 ∈ 𝐴))
3 eldif 4048 . . . . 5 (𝑥 ∈ (𝐵 ∖ 𝐴) ↔ (𝑥 ∈ 𝐵 ∧ ¬ 𝑥 ∈ 𝐴))
42, 3xchbinxr 338 . . . 4 ((𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐴) ↔ ¬ 𝑥 ∈ (𝐵 ∖ 𝐴))
54anbi2i 635 . . 3 ((𝑥 ∈ 𝐴 ∧ (𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐴)) ↔ (𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ (𝐵 ∖ 𝐴)))
61, 5bitr2i 279 . 2 ((𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ (𝐵 ∖ 𝐴)) ↔ 𝑥 ∈ 𝐴)
76difeqri 4064 1 (𝐴 ∖ (𝐵 ∖ 𝐴)) = 𝐴
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2144   ∖ cdif 4044
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
This proof depends on definitions:  df-bi 210  df-an 402  df-tru 1572  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-v 3452  df-dif 4046
This theorem is used by:  dif0  4326  undifabs  4433
  Copyright terms: Public domain W3C validator