$ \mathbb{P}^{1}\left(\mathbb{C}\right) :=\mathbb{C}\cup{\infty} $
(There are some different definitions, the one that I know is the stereographic projection and defining the image of the north pole under the projection as $\infty $ in $ \mathbb{C} $.
Define also $ \text{ord}_{z=a}\left(f\right) $ as the following:
if $ f $ has a zero of multiplicity $m\geq1 $ at $ a $, then $ \text{ord}_{z=a}\left(f\right)= m $.
if $ a $ is a pole of multiplicity $m\geq 1 $ for $ f $, then $ \text{ord}_{z=a}\left(f\right) = -m $
if $ f $ defined well\has a removable singularity at $ a $ and $f(a) \neq 0 $ then $ \text{ord}_{z=a}\left(f\right) =0 $.
Prove that the following sum has finitely many nonzero terms and that $ \sum_{z\in\mathbb{P}^{1}\left(\mathbb{C}\right)}\text{ord}_{z}\left(f\right)=0 $
Where we define $ \text{ord}_{z=\infty}\left(f\right)=\text{ord}_{\omega=0}\left(g\right) $
Where $ g $ is the nonzero meromorphic function defined by $ g\left(\omega\right):=f\left(\frac{1}{\omega}\right) $.
Im have absolutely no intuition for the proof, I cant even understand why it is correct. For example what about the function $ \frac{1}{z}+\frac{1}{z-1} $ ?
It has a pole of order $ 1 $ in $0 $ and in $ 1 $ so that together it summed to $-2 $, and the order at $\infty $ is the order of $ z+\frac{z}{1-z} $ at $0 $, which is $1$. So it seems like the sum is not $0 $.
Any help would be appreciated.