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

Theorem dfsymdif3 4252
Description: Alternate definition of the symmetric difference, given in Example 4.1 of [Stoll] p. 262 (the original definition corresponds to [Stoll] p. 13). (Contributed by NM, 17-Aug-2004.) (Revised by BJ, 30-Apr-2020.)
Assertion
Ref Expression
dfsymdif3 (𝐴 △ 𝐵) = ((𝐴 ∪ 𝐵) ∖ (𝐴 ∩ 𝐵))

Proof of Theorem dfsymdif3
StepHypRef Expression
1 difin 4218 . . 3 (𝐴 ∖ (𝐴 ∩ 𝐵)) = (𝐴 ∖ 𝐵)
2 incom 4155 . . . . 5 (𝐴 ∩ 𝐵) = (𝐵 ∩ 𝐴)
32difeq2i 4071 . . . 4 (𝐵 ∖ (𝐴 ∩ 𝐵)) = (𝐵 ∖ (𝐵 ∩ 𝐴))
4 difin 4218 . . . 4 (𝐵 ∖ (𝐵 ∩ 𝐴)) = (𝐵 ∖ 𝐴)
53, 4eqtri 2784 . . 3 (𝐵 ∖ (𝐴 ∩ 𝐵)) = (𝐵 ∖ 𝐴)
61, 5uneq12i 4113 . 2 ((𝐴 ∖ (𝐴 ∩ 𝐵)) ∪ (𝐵 ∖ (𝐴 ∩ 𝐵))) = ((𝐴 ∖ 𝐵) ∪ (𝐵 ∖ 𝐴))
7 difundir 4237 . 2 ((𝐴 ∪ 𝐵) ∖ (𝐴 ∩ 𝐵)) = ((𝐴 ∖ (𝐴 ∩ 𝐵)) ∪ (𝐵 ∖ (𝐴 ∩ 𝐵)))
8 df-symdif 4199 . 2 (𝐴 △ 𝐵) = ((𝐴 ∖ 𝐵) ∪ (𝐵 ∖ 𝐴))
96, 7, 83eqtr4ri 2795 1 (𝐴 △ 𝐵) = ((𝐴 ∪ 𝐵) ∖ (𝐴 ∩ 𝐵))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1570   ∖ cdif 3896   ∪ cun 3897   ∩ cin 3898   △ csymdif 4198
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-symdif 4199
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator