Solution (source code)

= Solution

The <function composition> $g\circ f:A\to C$ is defined by $(g\circ f)(a)=g(f(a))$. Suppose $f(a)=f(a')$. Applying $g$ gives $(g\circ f)(a)=(g\circ f)(a')$. Since the composite is an <injective function>, $a=a'$. Thus \b[$f$ is an <injective function>].