Coding theory / 03

Curves, divisors, and Riemann-Roch

The passage from polynomial codes to AG codes replaces the projective line by an arbitrary smooth projective curve.

Let \(X/\mathbb F_q\) be a smooth projective curve with function field \(\mathbb F_q(X)\). A divisor is a formal finite sum \(D=\sum_P n_P P\) over closed points. Its degree is \(\deg D=\sum_P n_P[\kappa(P):\mathbb F_q]\), where \(\kappa(P)\) is the residue field. Rational points have degree one. The divisor is effective, written \(D\ge0\), if all coefficients are nonnegative. A nonzero rational function \(f\) has divisor

\[(f)=\sum_P v_P(f)P,\]

recording zeros and poles. Two divisors are linearly equivalent when they differ by a principal divisor. The quotient of divisors by principal divisors is the Picard group.

For a divisor \(G\), the Riemann-Roch space is

\[L(G)=\{f\in\mathbb F_q(X)^*:(f)+G\ge0\}\cup\{0\}.\]

A positive coefficient of \(G\) permits a pole of that order, a negative coefficient requires a zero of the opposite order, and a zero coefficient requires regularity.

Example 1: the projective line

On \(\mathbb P^1\) with coordinate \(x\) and point \(P_\infty\), for \(m\ge0\) the space \(L(mP_\infty)\) is spanned by

\[1,x,x^2,\ldots,x^m.\]

Thus Reed-Solomon codes are AG codes on \(\mathbb P^1\): the pole bound is simply a polynomial degree bound.

Example 2: an elliptic curve has a pole-order gap

On an elliptic curve with point \(O\), \(L(O)\) contains only constants. One can choose functions \(x,y\) with their only poles at \(O\), of orders \(2\) and \(3\), respectively. Then \(L(2O)=\operatorname{span}\{1,x\}\) and \(L(3O)=\operatorname{span}\{1,x,y\}\). The missing pole order \(1\) is a gap in the sequence of possible locator orders used in decoding.

Riemann-Roch

Let \(K\) be a canonical divisor and \(g\) the genus. The Riemann-Roch theorem says

\[\ell(G)-\ell(K-G)=\deg G+1-g,\]

where \(\ell(G)=\dim_{\mathbb F_q}L(G)\). If \(\deg G>2g-2\), then \(\ell(K-G)=0\) and

\[\ell(G)=\deg G+1-g.\]

This formula is the source of the dimension estimates in Chapter 2.

Example 3: genus zero gives exact polynomial dimension

For \(X=\mathbb P^1\), \(g=0\) and \(K\sim -2P_\infty\). For \(G=mP_\infty\) with \(m\ge0\), Riemann-Roch gives \(\ell(G)=m+1\), matching the basis \(1,x,\ldots,x^m\).

Example 4: genus one changes the count by one

For an elliptic curve, \(g=1\) and a canonical divisor has degree \(0\). If \(G=mO\) with \(m>0\), then \(\ell(G)=m\). The loss of one dimension compared with \(\mathbb P^1\) is the genus correction.

Differentials and residues

A nonzero rational differential \(\omega\) has a divisor \((\omega)\) of zeros and poles. Its residue at a point \(P\) is denoted \(\operatorname{res}_P(\omega)\). At a closed point the residue lies in \(\kappa(P)\). The global residue theorem reads \(\sum_P\operatorname{Tr}_{\kappa(P)/\mathbb F_q}(\operatorname{res}_P\omega)=0\). When all poles are rational, this is the ordinary sum of residues. This theorem is what later makes residue codes dual to evaluation codes.

Example 5: residues on the line

On \(\mathbb P^1\), the differential \(dx/(x-a)\) has residue \(1\) at \(x=a\) and residue \(-1\) at infinity. This is the simplest instance of the global residue theorem.

Example 6: principal divisors have degree zero

For \(f=(x-a)/(x-b)\) on \(\mathbb P^1\), the divisor is \((a)-(b)\). It has degree zero. On any smooth projective curve, the zero and pole divisors of a nonconstant rational function have the same degree, namely the degree of its map to \(\mathbb P^1\). Hence every principal divisor has degree zero and linear equivalence preserves degree.