Let $X$ be an arbitrary set. Denote $P(X)$ the set of all subsets of $X$. Represent $P(X)$ as an abelian group with symmetric difference as addition. a) Prove that P(X) has the structure of a vector space over $\mathbb{Z}_2$
b) In the case when $X$ is finite, find a basis for the vector space.
I think I got most of part a. To show that its a vector space I need to show that $(P(X), +)$ is an abelian group, which is given and that $\forall x,y \in \mathbb{Z}_2 = {0,1}$ and $A,B \in P(X)$:
- $x(A+B) = xA + xB$
- $(x+y)A = xA + yA$
- $(xy)A = x(yA)$
- $1_{\mathbb{Z}_2}A = A$
I did the second and third one with simple tables that involve all cases for $x$ and $y$ since there were only four. I'm a little confused on the first one though I might have gotten it: If $A = \phi$ its super easy. If $A,B \neq \phi$, then $x (A+B) = x(A \Delta B) = x((A \cup B)$ \ $( A \cap B)) = (x(A \cup B))$ \ $(x(A \cap B)) = (xA \cup xB)$ \ $(xA \cap xB) = xA \Delta xB = xA + xB$ Is that right?
I'm not quite sure how to check $1_{\mathbb{Z}_2}A = A$ or how to find the basis for the vector space.
EDIT: Now that I've added a bounty I'm looking for a full answer, especially for part b. Thank you
The field $\mathbb{Z}_2$ has two elements, 0 and 1, and its addition operator behaves like "exclusive or" so that 1+1=0 and 1+0 = 1 and so on. Conceptually, this is a perfect fit for symmetric difference in which $A\triangle A = \varnothing$, $A\triangle \varnothing = A$ and so on.
To push this intuition further: if we list the elements of $X$ in some order: $x_1, \ldots x_n$, we can imagine every subset $A\subseteq X$ as a list of bits—position $i$ contains a 1 if $x_i$ is in the set, and 0 if $x_i$ is absent from the set. Performing the symmetric difference operator $\triangle$ on two sets $A$ and $B$ is the same as computing the exclusive-or of the two corresponding lists of bits. That's the intuition behind why $\langle P(X), \triangle\rangle$ has the structure of a vector space over $\mathbb{Z}_2$. It has one dimension for every element, and the value in that dimension can either be $1_{\mathbb{Z}_2}$ ("present") or $0_{\mathbb{Z}_2}$ ("absent"), which lets you describe all the possible subsets of $X$.
It's straightforward to prove that $P(X)$ is an additive abelian group over $\triangle$ because symmetric difference commutes, associates, and has a zero element $(\varnothing)$. Each set is its own additive inverse because $A\triangle A = \varnothing$.
To prove that $\langle P(X), \triangle\rangle$ is a vector space, we first need to define scalar multiplication. Fortunately, there's only one choice: $1_{\mathbb{Z}_2}$ must be the multiplicative unit, so $1_{\mathbb{Z}_2}\cdot A \equiv A$ by definition. And $0_{\mathbb{Z}_2}\cdot A$ must yield the zero vector, the zero element $\varnothing$.
Once we've defined scalar multiplication, it's pretty easy to prove properties:
Based on the intuition above, we can think of elements of $P(X)$ as lists of bits $[x_1, \ldots, x_n]$. Correspondingly, you can use the singleton sets as a basis. (If the set $X$ is finite, there will be finitely many basis elements. Represented as a list of bits, each basis element has a 1 in some position and zeroes in every other position—exactly like the standard basis in $\mathbb{R}^n$.)
To see this, note that you can make any set by adding up $(\triangle)$ its elements: $$A = \sum_{a\in A} \{a\}$$
And this basis of singleton sets is minimal— if you leave out any singleton, you won't be able to build certain sets.
To formally prove that $\mathcal{B} = \{\{x\} \,:\, x\in X\}$ is a basis, we must show that it spans the space and that it's linearly independent. It spans the space because you can form any element as a linear combination of singletons: $A = \sum_{a\in A} \{a\}$. It's linearly independent because if $c_1\{x_1\} + \ldots + c_n \{x_n\} = \varnothing$ is empty, we know that all the coefficients must be zero. (Note that $\sum_i c_i \{a_i\} = \{ a_i : c_i = 1\}$, so if the sum is empty, then all of the coefficients are zero.)