4.5.5 The Yoneda Lemma for Sets
Let $X$ be a set and let $U\subset X$ be a subset of $X$.
We have
\[ \chi _{\mathcal{P}(X)}(\chi _{x},\chi _{U})=\chi _{U}(x) \]
for each $x\in X$, giving an equality of functions
\[ \chi _{\mathcal{P}(X)}(\chi _{(-)},\chi _{U})=\chi _{U}, \]
where
\[ \chi _{\mathcal{P}(X)}(U,V)\mathrel {\smash {\overset {\mathclap {\scriptscriptstyle \text{def}}}=}}\begin{cases} \mathsf{true}& \text{if $U\subset V$,}\\ \mathsf{false}& \text{otherwise.} \end{cases} \]
We have
\begin{align*} \chi _{\mathcal{P}(X)}(\chi _{x},\chi _{U}) & \mathrel {\smash {\overset {\mathclap {\scriptscriptstyle \text{def}}}=}}\begin{cases} \mathsf{true}& \text{if $\left\{ x\right\} \subset U$,}\\ \mathsf{false}& \text{otherwise} \end{cases}\\ & = \begin{cases} \mathsf{true}& \text{if $x\in U$}\\ \mathsf{false}& \text{otherwise} \end{cases}\\ & \mathrel {\smash {\overset {\mathclap {\scriptscriptstyle \text{def}}}=}}\chi _{U}(x). \end{align*}
This finishes the proof.
The characteristic embedding is fully faithful, i.e., we have
\[ \chi _{\mathcal{P}(X)}(\chi _{x},\chi _{y})\cong \chi _{X}(x,y) \]
for each $x,y\in X$.
We have
\begin{align*} \chi _{\mathcal{P}(X)}(\chi _{x},\chi _{y}) & = \chi _{y}(x)\\ & \mathrel {\smash {\overset {\mathclap {\scriptscriptstyle \text{def}}}=}}\begin{cases} \mathsf{true}& \text{if $x\in \left\{ y\right\} $}\\ \mathsf{false}& \text{otherwise} \end{cases}\\ & = \begin{cases} \mathsf{true}& \text{if $x=y$}\\ \mathsf{false}& \text{otherwise} \end{cases}\\ & \mathrel {\smash {\overset {\mathclap {\scriptscriptstyle \text{def}}}=}}\chi _{X}(x,y). \end{align*}
where we have used Proposition 4.5.5.1.1 for the first equality.