Ramification divisor (source code)

= Ramification divisor
{title2=$R_f$}

For a finite separable morphism $f:X\to Y$ of <smooth projective curves> over an <algebraically closed field>, the ramification divisor is the zero divisor of the nonzero differential map $f^*\Omega_Y^1\to\Omega_X^1$. Write
$$
R_f=\sum_{P\in X}d_PP,
\qquad
 d_P=\operatorname{length}_{\mathcal O_{X,P}}
 \operatorname{coker}(df)_P.
$$
These coefficients are the local <different exponents>. The canonical relation and degree formula are
$$
K_X\sim f^*K_Y+R_f,
\qquad
2g_X-2=(\deg f)(2g_Y-2)+\deg R_f.
$$
Under <tame ramification>, $d_P=e_P-1$. In wild ramification it can be larger, so using $\sum(e_P-1)P$ without the tame hypothesis loses part of the divisor.<The Stacks project>[Section 53.12, tag 0C1B, differential divisor and tame qualification]{ref}

For example, in characteristic $p$, the map $\mathbb P^1_t\to\mathbb P^1_x$ with $x=t^p-t$ is separable of degree $p$ and is unramified at finite <points>. Infinity has index $p$. Since $dx=-dt$, the differential canonical relation gives
$$
-2\infty=f^*(-2\infty)+R_f=-2p\infty+R_f,
$$
so $R_f=(2p-2)\infty$, exceeding $(p-1)\infty$. This verifies the genus-zero Riemann-Hurwitz identity and exhibits the wild correction explicitly. A purely inseparable map has identically zero differential, so this construction requires separability.