I have a homework question that plays off my las question about the characteristic function $\chi_A(x)$. It is:
Prove that there is a function $f$ that gives a one-to-one correspondence between $\mathcal{P}(X)$ and $2^X$.
Here the power set $\mathcal{P}(X)=\{A|A\subseteq{X}\}$ and $2^X$ is the set of all functions that map elements into the set $\{0,1\}$ Now i know that $|\mathcal{P}(X)|=2^{|X|}$, but the hint in the example mentions this:
"Now let us define a function $f$ on $\mathcal{P}(X)$ into $2^X$ by taking as the image a subset $A$ of $X$ the characteristic function of $A$," so then this mapping looks like this
$$f:\mathcal{P}(X)\rightarrow{2^X}$$ $$f(A)=\chi_A{x}$$
From here I must show injectivity and surjectivity. So $$f(A)=f(B)\Rightarrow{A=B}$$
So by the definition of the characteristic function we can show that injectivity holds since if $$x\in{A}, \chi_A(x)=1=\chi_B(x) \text{ if } x\in{B}$$ and $$x\in{X-A}, \chi_A(x)=0=\chi_B(x) \text{ if } x\in{X-B}$$ But how do we create a surjectivity argument?