I am trying to prove the following theorems:
Let A, B, and C be nonempty sets and let $f : A \rightarrow B$ and $g : B \rightarrow C$.
- If $g \circ f : A \rightarrow C$ is an injection, then $f : A \rightarrow B$ is an injection.
- If $g \circ f : A \rightarrow C$ is a surjection, then $g : B \rightarrow C$ is an surjection.
Any suggestions? Thanks!