I'm trying to prove that there exists an injective function $f: A \to B$ if and only if there exists a surjective function $g : B \to A$. I'm fine with the [⇐] direction (which requires the Axiom of Choice), but stuck with part of the [⇒] direction. The theorem is discussed here There exists an injection from $X$ to $Y$ if and only if there exists a surjection from $Y$ to $X$. but the answers there do not touch upon the issue I have. Here is the start of my proof:
[⇒]
Let $f: A \to B$ be an injection. We need to prove there exists a surjective function $g: B \to A$.
Cases:
- $A \neq \emptyset = B$.
- $A = \emptyset = B$.
- $A \neq \emptyset \neq B$.
- $A = \emptyset \neq B$.
- In case 1 the implication follows because the antecedent is false (there cannot be a function from a non-empty set into the empty set).
- In Case(2), $f^T$ is trivially a surjective function.
- For Case 3 we take some arbitrary but fixed element $z \in A$ and then set
$$g =_{df} f^T \cup (B \setminus \operatorname{range}(f) \times \{z\})$$
If $\operatorname{range}(f) = B$ then $g = f^T \cup (B \setminus \operatorname{range}(f) \times \{z\}) = f^T \cup (\emptyset \times \{z\}) = f^T$. And $g$ is a surjective function.
- But now consider Case 4. In this case $f : \emptyset \to B$ is clearly an injective function. But since there can be no function from a non-empty set into the empty set, there cannot be a function from $B$ to $A$, so there cannot be a surjective function.
So how can I find a surjective function in Case 4?