Solution (source code)

= Solution

A <bijection> is a <function> that is both <injective> and <surjective>. Each element of the <codomain> then has exactly one <preimage>:
$$
\boxed{\forall b\in B\ \exists!a\in A:\ f(a)=b.}
$$
This unique-preimage property allows the <inverse function> $f^{-1}:B\to A$ to be defined on all of $B$.