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

Theorem difdif 4074
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 4052 . . . . 5 (𝑥 ∈ (𝐵 ∖ 𝐴) ↔ (𝑥 ∈ 𝐵 ∧ ¬ 𝑥 ∈ 𝐴))
42, 3xchbinxr 338 . . . 4 ((𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐴) ↔ ¬ 𝑥 ∈ (𝐵 ∖ 𝐴))
54anbi2i 635 . . 3 ((𝑥 ∈ 𝐴 ∧ (𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐴)) ↔ (𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ (𝐵 ∖ 𝐴)))
61, 5bitr2i 279 . 2 ((𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ (𝐵 ∖ 𝐴)) ↔ 𝑥 ∈ 𝐴)
76difeqri 4068 1 (𝐴 ∖ (𝐵 ∖ 𝐴)) = 𝐴
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2147   ∖ cdif 4048
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-tru 1573  df-ex 1813  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-v 3456  df-dif 4050
This theorem is used by:  dif0  4330  undifabs  4437
  Copyright terms: Public domain W3C validator