Duality of Injectivity/surjectivity of precomposition map
Few votes (4) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
If we fix a function on sets \(f : X \to Y\), and a set \(Z\) and consider the precomposition map
$$ f^* : \text{Hom}(Y, Z) \to \text{Hom}(X, Z), \quad \phi \mapsto \phi \circ f. $$
Then \(f^*\) injective \(\iff\) \(f\) surjective, and \(f^*\) surjective \(\iff\) \(f\) injective. This is a very well-known result, critical to many areas of algebra.
Every time I have seen this the proof is done in four parts. I.e., both directions of the two statements are all proven separately. Moreover, the proofs are usually done "point-wise", e.g., "Take some \(y \in Y\), then if \(f\) is surjective there is a preimage \(x\) such that \(f(x) = y\), ...". This feels unsatisfying, by try as I might I can't find a cleaner way. I have to admit that I don't really understand why we get this nice duality.
My question: Is there a conceptual proof of these statements that leverages some deeper duality, gives a single, unified, …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.