I'm working with the Terence Tao's Analysis book. And I have a question in the part of set theory.
As power set axiom, Tao use the set of all function: "If X, and Y be sets. Then there exist a set which consist of all the functions from X to Y."
Using that axiom and the replacement axiom, I need to prove:
"Let X be a set. Then $$ \left \{ A : A \subseteq X \right \} \ $$ is a set"
I have worked in the next way, but I'm not satisfy with the result:
$$ Let\: \; P(X) : = \left \{ A : A\subseteq X \right \} $$ $$\ g: \left \{ 0,1 \right \}^{X}\rightarrow P(X)$$ $$ \forall f \left ( f \in \left \{ 0,1 \right \}^{X} \wedge g(f) := f^{-1} [\, \left \{ 1 \right \} \, ] \right ) $$
Then, using the axiom of replacement and the axiom of power set (as the book use it) I get the next:
$$ G: = \left \{ g(f) : f \in \left \{ 0,1 \right \}^{X} \right \} $$
And I supposed that I need: G = P(X)
Therefore $$ A \in G \leftrightarrow f[A] = \left \{ 1 \right \} $$
And to some B be in P(X), we have: $$ B\in P(X) \leftrightarrow B \subseteq X $$ and as the images conserves the inclusion $$ f [B] \subseteq f[X] $$
I thought that only I needed to show it $$ f [A] \subseteq f[X] $$ but I'm stack here, so my approach was the next:
$$\bigcup_{f\in \left \{ 0,1 \right \}^{X} } f [X] = \left \{ 0,1 \right \} $$
$$ f[A] \subseteq \bigcup_{f\in \left \{ 0,1 \right \}^{X} } f [X] $$
and in other exercise I proved that the image conserves the union, so "I can conclude something a little odd (haha)"
$$ A\subseteq \bigcup X = X $$
I really don't feel comfortable with the result and also I don't know how to show :
$$ P(X)\subseteq G $$
(sorry for my mistakes, the English is not my mother language).
My question is indeed how can I prove that?