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

Theorem difdif 4081
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 4059 . . . . 5 (𝑥 ∈ (𝐵 ∖ 𝐴) ↔ (𝑥 ∈ 𝐵 ∧ ¬ 𝑥 ∈ 𝐴))
42, 3xchbinxr 338 . . . 4 ((𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐴) ↔ ¬ 𝑥 ∈ (𝐵 ∖ 𝐴))
54anbi2i 635 . . 3 ((𝑥 ∈ 𝐴 ∧ (𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐴)) ↔ (𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ (𝐵 ∖ 𝐴)))
61, 5bitr2i 279 . 2 ((𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ (𝐵 ∖ 𝐴)) ↔ 𝑥 ∈ 𝐴)
76difeqri 4075 1 (𝐴 ∖ (𝐵 ∖ 𝐴)) = 𝐴
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2156   ∖ cdif 4055
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-ext 2746
This proof depends on definitions:  df-bi 210  df-an 402  df-tru 1575  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-v 3463  df-dif 4057
This theorem is used by:  dif0  4337  undifabs  4444
  Copyright terms: Public domain W3C validator