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

Theorem elsymdif 4206
Description: Membership in a symmetric difference. (Contributed by Scott Fenton, 31-Mar-2012.)
Assertion
Ref Expression
elsymdif (𝐴 ∈ (𝐵 △ 𝐶) ↔ ¬ (𝐴 ∈ 𝐵 ↔ 𝐴 ∈ 𝐶))

Proof of Theorem elsymdif
StepHypRef Expression
1 elun 4155 . . 3 (𝐴 ∈ ((𝐵 ∖ 𝐶) ∪ (𝐶 ∖ 𝐵)) ↔ (𝐴 ∈ (𝐵 ∖ 𝐶) ∨ 𝐴 ∈ (𝐶 ∖ 𝐵)))
2 eldif 4052 . . . 4 (𝐴 ∈ (𝐵 ∖ 𝐶) ↔ (𝐴 ∈ 𝐵 ∧ ¬ 𝐴 ∈ 𝐶))
3 eldif 4052 . . . 4 (𝐴 ∈ (𝐶 ∖ 𝐵) ↔ (𝐴 ∈ 𝐶 ∧ ¬ 𝐴 ∈ 𝐵))
42, 3orbi12i 928 . . 3 ((𝐴 ∈ (𝐵 ∖ 𝐶) ∨ 𝐴 ∈ (𝐶 ∖ 𝐵)) ↔ ((𝐴 ∈ 𝐵 ∧ ¬ 𝐴 ∈ 𝐶) ∨ (𝐴 ∈ 𝐶 ∧ ¬ 𝐴 ∈ 𝐵)))
51, 4bitri 278 . 2 (𝐴 ∈ ((𝐵 ∖ 𝐶) ∪ (𝐶 ∖ 𝐵)) ↔ ((𝐴 ∈ 𝐵 ∧ ¬ 𝐴 ∈ 𝐶) ∨ (𝐴 ∈ 𝐶 ∧ ¬ 𝐴 ∈ 𝐵)))
6 df-symdif 4201 . . 3 (𝐵 △ 𝐶) = ((𝐵 ∖ 𝐶) ∪ (𝐶 ∖ 𝐵))
76eleq2i 2856 . 2 (𝐴 ∈ (𝐵 △ 𝐶) ↔ 𝐴 ∈ ((𝐵 ∖ 𝐶) ∪ (𝐶 ∖ 𝐵)))
8 xor 1032 . 2 (¬ (𝐴 ∈ 𝐵 ↔ 𝐴 ∈ 𝐶) ↔ ((𝐴 ∈ 𝐵 ∧ ¬ 𝐴 ∈ 𝐶) ∨ (𝐴 ∈ 𝐶 ∧ ¬ 𝐴 ∈ 𝐵)))
95, 7, 83bitr4i 306 1 (𝐴 ∈ (𝐵 △ 𝐶) ↔ ¬ (𝐴 ∈ 𝐵 ↔ 𝐴 ∈ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ↔ wb 209   ∧ wa 401   ∨ wo 861   ∈ wcel 2147   ∖ cdif 4048   ∪ cun 4152   △ csymdif 4200
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-or 862  df-tru 1573  df-ex 1813  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-v 3456  df-dif 4050  df-un 4154  df-symdif 4201
This theorem is used by:  dfsymdif4  4207  elsymdifxor  4208  brsymdif  5165
  Copyright terms: Public domain W3C validator