Riemann-Roch space (source code)

= Riemann-Roch space
{c}
{title2=$L(D)$}

For a <divisor on an algebraic curve> $D=\sum_Pn_PP$ on a <smooth projective curve> $C$, its Riemann-Roch space is
$$
L(D)=\{f\in k(C)^*:\operatorname{div}(f)+D\ge0\}\cup\{0\},
\qquad \ell(D)=\dim_kL(D).
$$
Equivalently, $\operatorname{ord}_P(f)\ge-n_P$ at every <point>. A positive coefficient $n_P$ permits a pole of order at most $n_P$; a negative coefficient forces a zero of order at least $-n_P$. Thus allowed poles are controlled by the positive, not the negative, coefficients of $D$.

This is the global section space $H^0(C,\mathcal O_C(D))$, so projectivity makes it finite-dimensional. On the <projective line>, with affine coordinate $t$ and $D=a\infty$ for $a\ge0$, its <basis> is $1,t,\ldots,t^a$. For $D=-\infty$ it is zero. Properness matters: on the <affine line>, the corresponding space $L(0)=k[t]$ is infinite-dimensional. The <Riemann-Roch theorem> computes $\ell(D)$ from degree, genus and the complementary canonical section space.