Corollary (valuation of rational function)
Let $C$ be a (possibly singular) curve and $P$ be a smooth point of $C$.
There is a surjective group homomorphism $$ \begin{align*} ν_P: k(C)^\times \to \Z \end{align*} $$ called the valuation or order of vanishing at $P$ (with the convention $ν_P(0) = \infty$), satisfying the following:
-
for any $f\in k(C)^\times$ and any local parameter $π_P$, $$ \begin{align*} f = u \cdot π_P^{ν_P(f)} \end{align*} $$ where $u$ is a unit in the local ring $O_{C,P}$.
-
$$ \begin{align*} O_{C,P} ={}& \sb{f\in k(C)^\times}{ν_P(f) \geq 0} \cup \set{0}, \\ \mathfrak{m}_P ={}& \sb{f\in k(C)^\times}{ν_P(f) \geq 1} \cup \set{0}. \end{align*} $$
-
The ultrametric or non-archimedean triangle inequality holds: $$ \begin{align*} ν_P(f+g) \geq \min\set{ν_P(f), ν_P(g)}, \end{align*} $$ and if $ν_P(f) \neq ν_P(g)$, equality holds.
Therefore if $f\in k(C)$, then $f$ or $1/f$ is regular at $P$, because $ν_P(1/f) = -ν_P(f)$.