Let $f:A\to B$ be bijective. Show that $g:P(A)\to P(B)$, defined as $$g(X)=\{f(x)|x\in X\},X\subseteq A$$ is also bijective.
Let's first try to show that $g$ is injective. So we need to show that if $g(X_1)=g(X_2)$, then $X_1=X_2$. $$g\left(X_1\right)=g\left(X_2\right)\land X_1\subseteq A\land X_2\subseteq A\\X_1,X_2\subseteq A\land \{f(x)|x\in X_1\}=\{f(x)|x\in X_2\}\\X_1,X_2\subseteq A\land\forall x\left(x\in\{f(x)|x\in X_1\}\iff x\in\{f(x)|x\in X_2\}\right)$$ I have basically used the fact that $A=B\iff \forall x(x\in A \iff x\in B)$, as we have $g(X_1)=g(X_2)$ and using the definition of $g$ gives what I wrote. I don't know how to show from here that $X_1=X_2$ which is enough to say that $g$ is injective. Where am I supposed to use that $f$ is bijective?
Any help would be appreciated.