Let $P(A)$ denote the power set of a set $A$
For a map $f : X \mapsto Y$ of sets, I can define a map $P( f ): P(Y) → P(X)$ s.t that I obtain a functor $P : \text{Set}^\text{op} \to \text{Set}$ in the following way:
$F(f)=f^{-1}:P(Y)\rightarrow P(X)$ for $f: X \rightarrow Y$ a set-theoretic map, where $f^{-1}$ is the preimage mapping.
$F(X)=P(X) , \forall X \in \text{Obj(Set)}$
How can I prove that P is representable and find the representing object?
So by definition of representability, I want to find and set $R$,
s.t. $h_R=\text{Hom}_\text{Set}(-,R)\cong P$
i.e. s.t. $h_R(X)=\text{Hom}_\text{Set}(X,R)\cong P(X)$, for all $X \in \text{Set}$
On the other hand Yoneda lemma tells me that:
$\text{Hom}_\text{Set^}(h_X,P)\cong P(X)$, for all $X \in \text{Set}$
But I don't know how this helps. Any help is appreciated
Let $2=\{0,1\}$, the two-element set. The claim is that $P$ is represented by $2$. We need to prove that there is a natural isomorphism $P \Rightarrow \mathsf{Hom}_{\mathsf{Set}}(-,2) $. This isomorphism is defined by the correspondence that maps a subset $Y$ of $X$ to its characteristic function $\chi_Y: X \to 2$. (Try to find its inverse). Naturality means that for any function $f: X \to A$, if $\chi_B$ is the characteristic function of $B \subseteq A$, then $\chi_B \circ f$ is the characteristic function of $f^{-1}(B) \subseteq X$, that is that the following commutes:
$$ \require{AMScd} \begin{CD} P(A) @>{}>> \mathsf{Hom}_{\mathsf{Set}}(A,2) \\ @V {f^{-1}} VV @VV{- \circ f }V \\ P(X) @>>{}> \mathsf{Hom}_{\mathsf{Set}}(X,2) \end{CD} $$
Hope it helps.