Theorem (valency theorem)

Let $f: X\to Y$ be a non-constant analytic map between Riemann surfaces $X,Y$ which are compact.

There exists an integer $n\geq 1$ such that for all $y\in Y$, $$ \begin{align*} n = \sum_{x\in f\inv(y)} d_x \end{align*} $$ where $d_x$ is the ramification degree of $f$ at $x$.

$n$ is called the degree or valency of $f$, and we say $X$ is a branched cover of $Y$.

Proof

For meromorphic $f: X\to C_\infty$, considering preimages of $0$ and $\infty$ gives $$ \begin{align*} \#\text{zeros of $f$} = \#\text{poles of $f$} \end{align*} $$ counted with multiplicity.

This gives another proof of the fundamental theorem of algebra.