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

Theorem elsymdif 4213
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 4162 . . 3 (𝐴 ∈ ((𝐵 ∖ 𝐶) ∪ (𝐶 ∖ 𝐵)) ↔ (𝐴 ∈ (𝐵 ∖ 𝐶) ∨ 𝐴 ∈ (𝐶 ∖ 𝐵)))
2 eldif 4059 . . . 4 (𝐴 ∈ (𝐵 ∖ 𝐶) ↔ (𝐴 ∈ 𝐵 ∧ ¬ 𝐴 ∈ 𝐶))
3 eldif 4059 . . . 4 (𝐴 ∈ (𝐶 ∖ 𝐵) ↔ (𝐴 ∈ 𝐶 ∧ ¬ 𝐴 ∈ 𝐵))
42, 3orbi12i 928 . . 3 ((𝐴 ∈ (𝐵 ∖ 𝐶) ∨ 𝐴 ∈ (𝐶 ∖ 𝐵)) ↔ ((𝐴 ∈ 𝐵 ∧ ¬ 𝐴 ∈ 𝐶) ∨ (𝐴 ∈ 𝐶 ∧ ¬ 𝐴 ∈ 𝐵)))
51, 4bitri 278 . 2 (𝐴 ∈ ((𝐵 ∖ 𝐶) ∪ (𝐶 ∖ 𝐵)) ↔ ((𝐴 ∈ 𝐵 ∧ ¬ 𝐴 ∈ 𝐶) ∨ (𝐴 ∈ 𝐶 ∧ ¬ 𝐴 ∈ 𝐵)))
6 df-symdif 4208 . . 3 (𝐵 △ 𝐶) = ((𝐵 ∖ 𝐶) ∪ (𝐶 ∖ 𝐵))
76eleq2i 2867 . 2 (𝐴 ∈ (𝐵 △ 𝐶) ↔ 𝐴 ∈ ((𝐵 ∖ 𝐶) ∪ (𝐶 ∖ 𝐵)))
8 xor 1033 . 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 2156   ∖ cdif 4055   ∪ cun 4159   △ csymdif 4207
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-or 862  df-tru 1575  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-v 3463  df-dif 4057  df-un 4161  df-symdif 4208
This theorem is used by:  dfsymdif4  4214  elsymdifxor  4215  brsymdif  5173
  Copyright terms: Public domain W3C validator