Consider that for a meromorphic function $f$ on a Riemann surface, we have an associated holomorphic map $F: X \to \mathbb{C} \cup \{ \infty \}$ to the Riemann sphere defined by $$F(z) = \begin{cases} f(z), & z \ \text{not a pole of $f$} \\ \infty, & \text{otherwise}. \end{cases}$$ I want to show that the map $\phi : X \to \mathbb{C}\text{P}^1$ defined by $z \longmapsto [1 : f(z)]$ can be realised as the above map $F$.
It is clear that $\phi(z) = [1:f(z)]$ is defined for $z$ not a pole of $f$. But I don't see how $[1 : f(z)] \sim f(z)$ and how we have a notion of $\infty$ in projective space.