P3091
Bijectivity is clear from the definition. Further, we have
\begin{equation}
f A
= f \{ 0 \}
= \{ a \}
\subseteq \{ a, b \}
= B
\end{equation}
and
\begin{equation}
f^{-1} B
= f^{-1} \{ a, b \}
= \{ 0, 1 \}
\supset \{ 0 \}
= A
\end{equation}
$\square$