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

Theorem symdifass 4185
Description: Symmetric difference is associative. (Contributed by Scott Fenton, 24-Apr-2012.) (Proof shortened by BJ, 7-Sep-2022.)
Assertion
Ref Expression
symdifass ((𝐴𝐵) △ 𝐶) = (𝐴 △ (𝐵𝐶))

Proof of Theorem symdifass
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 elsymdifxor 4183 . . 3 (𝑥 ∈ ((𝐴𝐵) △ 𝐶) ↔ (𝑥 ∈ (𝐴𝐵) ⊻ 𝑥𝐶))
2 elsymdifxor 4183 . . . . 5 (𝑥 ∈ (𝐴𝐵) ↔ (𝑥𝐴𝑥𝐵))
3 biid 260 . . . . 5 (𝑥𝐶𝑥𝐶)
42, 3xorbi12i 1520 . . . 4 ((𝑥 ∈ (𝐴𝐵) ⊻ 𝑥𝐶) ↔ ((𝑥𝐴𝑥𝐵) ⊻ 𝑥𝐶))
5 xorass 1511 . . . 4 (((𝑥𝐴𝑥𝐵) ⊻ 𝑥𝐶) ↔ (𝑥𝐴 ⊻ (𝑥𝐵𝑥𝐶)))
6 biid 260 . . . . 5 (𝑥𝐴𝑥𝐴)
7 elsymdifxor 4183 . . . . . 6 (𝑥 ∈ (𝐵𝐶) ↔ (𝑥𝐵𝑥𝐶))
87bicomi 223 . . . . 5 ((𝑥𝐵𝑥𝐶) ↔ 𝑥 ∈ (𝐵𝐶))
96, 8xorbi12i 1520 . . . 4 ((𝑥𝐴 ⊻ (𝑥𝐵𝑥𝐶)) ↔ (𝑥𝐴𝑥 ∈ (𝐵𝐶)))
104, 5, 93bitri 297 . . 3 ((𝑥 ∈ (𝐴𝐵) ⊻ 𝑥𝐶) ↔ (𝑥𝐴𝑥 ∈ (𝐵𝐶)))
11 elsymdifxor 4183 . . . 4 (𝑥 ∈ (𝐴 △ (𝐵𝐶)) ↔ (𝑥𝐴𝑥 ∈ (𝐵𝐶)))
1211bicomi 223 . . 3 ((𝑥𝐴𝑥 ∈ (𝐵𝐶)) ↔ 𝑥 ∈ (𝐴 △ (𝐵𝐶)))
131, 10, 123bitri 297 . 2 (𝑥 ∈ ((𝐴𝐵) △ 𝐶) ↔ 𝑥 ∈ (𝐴 △ (𝐵𝐶)))
1413eqriv 2735 1 ((𝐴𝐵) △ 𝐶) = (𝐴 △ (𝐵𝐶))
Colors of variables: wff setvar class
Syntax hints:  wxo 1506   = wceq 1539  wcel 2106  csymdif 4175
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-xor 1507  df-tru 1542  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-v 3434  df-dif 3890  df-un 3892  df-symdif 4176
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator