symmetric difference on a finite number of sets
Recall that the symmetric difference operation on sets is commutative and associative. Therefore, one can speak of the symmetric difference of a finite collection of sets. More precisely, let be sets, not necessarily pairwise distinct. The set
the symmetric difference of the sets , is well-defined.
Let be defined as above. There is a curious property on :
Proposition 1.
iff belongs to an odd number of the sets .
Before proving this fact, let us make some quick observations. If there are two sets , then (here we are assuming that and are subsets of some universe , so the the complement makes sense). So iff or iff or , which conforms with the statement of the proposition above. If , then has conjunctive normal form
(for a proof of this, see here (http://planetmath.org/ProofOfTheAssociativityOfTheSymmetricDifferenceOperator)). Then iff belongs any one of the four intersections in the CNF above. In each of the four cases, belongs to an odd number of sets. For example, if , then .
From the two examples above, it seems that the approach to proving the proposition is to express the symmetric difference in CNF, and this is indeed the case.
To facilitate with the proof, let us introduce some notations. Start with sets , which are assumed to be subsets of some set . Let and be the identity and complementation operations taking to and respectively. Let be the set . Let be the set of all functions from into . For every , we write for . Finally, we partition into two sets and , where () consists of all functions such that is even (odd), respectively.
The proposition can now be restated as a single equation:
Proof.
We prove this equation by induction on , for . The case when is already discussed above. Now,
where
By the induction hypothesis,
so that
where is given by if , and .
Now, for any , is either in an even number of ’s, or an odd number of ’s. This means that
and never both. This shows that can be partitioned into the two sets above. In other words,
As a result,
where is given by if , and .
Every function can be obtained from a function in so that for . If , then , and if , then . This means that can be partitioned into two sets and , where (or ) contains all functions whose restriction to are in (or ).
Therefore,
∎
Title | symmetric difference on a finite number of sets |
---|---|
Canonical name | SymmetricDifferenceOnAFiniteNumberOfSets |
Date of creation | 2013-03-22 18:02:24 |
Last modified on | 2013-03-22 18:02:24 |
Owner | CWoo (3771) |
Last modified by | CWoo (3771) |
Numerical id | 8 |
Author | CWoo (3771) |
Entry type | Derivation |
Classification | msc 03E20 |