Let $f: X \to Y$ be a morphism of varieties, with $X$ projective. Suppose I tell you that for any two points $p_1 \neq p_2 $ in $X$, $f(p_1) \neq f(p_2)$ in $Y$. Does it necessarily follow that $f$ is a homeomorphism onto its image?
I can see that this is true in the analytic category: a continuous map from a compact space to a Hausdorff space is a homeomorphism onto its image. Perhaps there is an analogue of this statement in the algebraic category with "compact" $\mapsto $ "proper" and "Hausdorff" $\mapsto $ "separated"? Or am I just missing something really obvious?
[I ask this question because I'm trying to understand Hartshorne's proof that a linear system separating points and tangent vectors defines a projective embedding, II 7.3. Here, the "homeomorphism onto the image" property is needed but Hartshorne appears only to prove "injectivity on points".]