Coding theory / 05

Dual AG codes and residues

For AG evaluation codes, the orthogonal code is the corresponding residue code built from rational differentials.

Let \(\Omega(X)\) be the space of rational differentials on a smooth projective curve \(X\). For a divisor \(E\), set

\[\Omega(E)=\{\eta\in\Omega(X):\eta\ne0,\;(\eta)-E\ge0\}\cup\{0\}.\]

With \(D=P_1+\cdots+P_n\) and \(G\) disjoint from \(D\), the differential AG code is

\[C_\Omega(D,G)=\{(\operatorname{res}_{P_1}\eta,\ldots,\operatorname{res}_{P_n}\eta):\eta\in\Omega(G-D)\}.\]

Choose a canonical divisor \(K=(\omega)\). Multiplication by \(\omega\) identifies \(L(K+D-G)\) with \(\Omega(G-D)\). Thus the same code can be expressed through functions:

\[f\mapsto (\operatorname{res}_{P_i}(f\omega))_{i=1}^n.\]

Parameters

At each \(P_i\), a differential in \(\Omega(G-D)\) has at most a simple pole. A zero residue removes that pole, so the kernel of the residue map is exactly \(\Omega(G)\). Multiplication by a fixed canonical differential then gives

\[k_\Omega=\ell(K+D-G)-\ell(K-G).\]

Under the standard degree hypotheses \(2g-2<\deg G<n\), this becomes

\[k_\Omega=n-(\deg G+1-g).\]

Every nonzero residue codeword has weight at least \(\deg G-(2g-2)\). Thus, when the code is nonzero, its minimum distance satisfies

\[d_\Omega\ge \deg G-(2g-2).\]

To prove this bound, let a nonzero residue word have support \(S\subseteq\{P_1,\ldots,P_n\}\) and weight \(w=\vert S\vert\). Its representing differential is regular at the other evaluation points, so \((\eta)\ge G-\sum_{P\in S}P\). Taking degrees gives \(2g-2\ge\deg G-w\), which is the claimed inequality.

Example 1: residues on \(\mathbb P^1\) recover parity checks

Let \(P_i\) be distinct finite points on \(\mathbb P^1\) and take \(G=0\). A differential in \(\Omega(-D)\) has at most simple poles at the \(P_i\) and is regular elsewhere, including infinity. Its residues therefore sum to zero. This recovers the parity-check code dual to the constant evaluation code.

Example 2: Goppa congruences as residue conditions

For distinct support points \(L_i\in\mathbb F_{q^m}\) and a Goppa polynomial \(g(x)\) with \(g(L_i)\ne0\), the expression

\[\sum_i {c_i\over x-L_i}\equiv0\pmod{g(x)}\]

means that \(h(x)=\sum_i c_i/(x-L_i)\) vanishes along the zero divisor \(E\) of \(g\), with the prescribed multiplicities. The differential \(h(x)\,dx\) has residue \(c_i\) at \(L_i\) and at most a simple pole at infinity, so it belongs to \(\Omega(E-\infty-D)\). Conversely, a differential in that space has such a partial-fraction expansion: regularity away from the support excludes other finite poles, and the bound at infinity excludes a polynomial part. Requiring \(c_i\in\mathbb F_q\) therefore gives exactly the classical Goppa code as a subfield subcode of this residue construction.

Duality

The crucial theorem is

\[C_\Omega(D,G)=C_L(D,G)^\perp.\]

The proof is a residue computation. For \(f\in L(G)\) and \(\eta\in\Omega(G-D)\), the differential \(f\eta\) has possible simple poles at the points \(P_i\) and no other residue contribution. The global residue theorem gives

\[\sum_i f(P_i)\operatorname{res}_{P_i}(\eta)=0.\]

Riemann-Roch applied to \(G\) and \(G-D\) gives

\[\begin{aligned} \dim C_L(D,G)+\dim C_\Omega(D,G) &=\ell(G)-\ell(G-D)+\ell(K-G+D)-\ell(K-G)\\ &=(\deg G+1-g)-(\deg G-n+1-g)=n. \end{aligned}\]

Together with orthogonality, this proves equality with the full dual code, including when evaluation has a nonzero kernel.

Example 3: dual Reed-Solomon through differentials

The dual of a Reed-Solomon code is again a generalized Reed-Solomon code. In the AG language, the duality is explained by the canonical divisor of \(\mathbb P^1\) and residues of rational differentials with simple poles at the evaluation points.

Example 4: elliptic residue codes

On an elliptic curve, \(\deg K=0\). If \(G=mO\), \(D\) contains \(n\) points away from \(O\), and \(0<m<n\), then the residue code has minimum distance at least \(m\) and dimension \(n-m\). The same genus correction that affected evaluation code dimension now appears in the dual direction.