Coding Theory 09: Cubic and Klein Decoding Examples
Coding theory / 09
Cubic and Klein decoding examples
The examples in Chapter 3 show how abstract divisor spaces become concrete finite-field matrices.
Chapter 3 works out two decoding examples: a smooth plane cubic and the Klein quartic. The calculations follow the chain
\[\text{curve}\to \text{rational points}\to L(aP_0)\to \text{syndrome table}\to \text{locator}\to e.\]The cubic curve
Consider the plane cubic
\[X:x^3+y^3+z^3=0.\]In characteristic different from \(3\) it is smooth, hence has genus \(1\). Over \(\mathbb F_4\) it has nine rational points: each nonzero element has cube one, so exactly two of the three projective coordinates must be nonzero, giving three points for each choice of the zero coordinate. With a chosen point \(P_0\) and divisor \(G=aP_0\), the dual code \(C_\Omega(D,G)\) has length equal to the number of selected rational points away from \(P_0\).
Example 1: basis from pole orders
In characteristic two, take \(P_0=(0:1:1)\). On the chart \(y=1\), put \(s=x/y\) and \(t=(y+z)/y\). The curve equation becomes \(s^3+t+t^2+t^3=0\), so \(s\) is a local parameter and \(t\) has order three. Hence the functions
\[1,\quad {x\over y+z},\quad {y\over y+z},\quad {x^2\over (y+z)^2},\quad {xy\over (y+z)^2},\quad {x^3\over (y+z)^3}\]have pole orders \(0,2,3,4,5,6\) at \(P_0\) and no poles elsewhere. They are independent, and \(\ell(6P_0)=6\) proves that they form a basis. Evaluating them at the other eight rational points gives the parity-check rows for \(C_\Omega(D,6P_0)\).
Example 2: why SV needs a larger divisor
For \(G=5P_0\), the designed distance is five, permitting unique correction of two errors. The SV conditions require \(\ell(A)\ge3\), hence \(\deg A\ge3\) on this elliptic curve, and \(\deg Y\ge3\). Their sum cannot be bounded by a degree-five divisor. For \(G=6P_0\), take \(A=Y=3P_0\) and \(Z=6P_0\); all the SV conditions hold. This is the genus-loss phenomenon made concrete.
Duursma on the cubic
Work over \(\mathbb F_4=\mathbb F_2[\alpha]/(\alpha^2+\alpha+1)\) and put \(u=x/(y+z)\) and \(v=y/(y+z)\). Order the eight evaluation points by their function values:
| \(P_1\) | \(P_2\) | \(P_3\) | \(P_4\) | \(P_5\) | \(P_6\) | \(P_7\) | \(P_8\) | |
|---|---|---|---|---|---|---|---|---|
| \(u\) | \(1\) | \(1\) | \(\alpha\) | \(\alpha+1\) | \(\alpha\) | \(\alpha+1\) | \(0\) | \(0\) |
| \(v\) | \(1\) | \(0\) | \(1\) | \(1\) | \(0\) | \(0\) | \(\alpha+1\) | \(\alpha\) |
Take \(G=5P_0\), target weight \(t=2\), and received vector
\[f=(\alpha,1,\alpha,0,\alpha+1,0,1,0).\]The known syndromes against the basis \(1,u,v,u^2,uv\) of \(L(5P_0)\) are \((\alpha+1,1,\alpha+1,0,1)\). With \(A=A_0=2P_0\), both table bases are \(1,u,v\), of orders \(0,2,3\). Thus
\[S= \begin{pmatrix} \alpha+1&1&\alpha+1\\ 1&0&1\\ \alpha+1&1&? \end{pmatrix}.\]The missing entry is \(v^2\circ e\), of order six. The curve equation gives \(u^3=v^2+v+1\), so either \(u^3\) or \(v^2\) can represent this new order modulo lower-order functions.
The known rows of orders zero and two are independent. The candidate \(\Theta=1+v\) vanishes against columns of orders zero and two, and symmetry supplies the matching column candidate. Its vote is \(S_{33}=S_{03}=\alpha+1\). It is the only order-six test entry, and the majority margin is \(6-2g-2t+1=1\), so this vote is correct. The completed first and third rows coincide, making \(1+v\) a locator.
The locator vanishes at \(P_1,P_3,P_4\). The known syndromes for \(1,u,u^2\) give
\[\begin{pmatrix} 1&1&1\\ 1&\alpha&\alpha+1\\ 1&\alpha+1&\alpha \end{pmatrix} \begin{pmatrix}e_1\\e_3\\e_4\end{pmatrix} = \begin{pmatrix}\alpha+1\\1\\0\end{pmatrix}.\]This Vandermonde matrix is invertible, and its solution is \(e_1=\alpha,\ e_3=0,\ e_4=1\). Subtracting the resulting error vector gives \(c=(0,1,\alpha,1,\alpha+1,0,1,0)\), whose five parity checks vanish. Directly using the received vector at the missing order would have given \(v^2\circ f=\alpha\); voting recovers the correct error syndrome \(v^2\circ e=\alpha+1\).
The Klein quartic
The Klein quartic is
\[X:x^3y+y^3z+xz^3=0.\]It is a smooth plane quartic in characteristic not \(7\), hence has genus \(3\). The computation works over \(\mathbb F_{16}\), lists points, and uses the example to show a nontrivial majority vote.
Example 3: genus three creates a larger table
For the divisors used in this genus-three example, the decoding table has more missing entries than in the cubic example. Several candidate rows and columns appear before a true locator is visible. Majority voting recovers the additional syndromes needed for the locator test.
Example 4: reconstructing finite-field labels
The source labels elements of \(\mathbb F_{16}\) by integers through a polynomial basis. This makes point lists and matrices compact. To reconstruct the computations, one must translate each label back into an element of \(\mathbb F_2[x]/(x^4+x^3+1)\) before doing arithmetic.
For example, write \(\beta\) for the class of \(x\), so \(\beta^4=\beta^3+1\). The integer label \(n=(a_3a_2a_1a_0)_2\) denotes \(a_3\beta^3+a_2\beta^2+a_1\beta+a_0\). Addition is bitwise XOR; multiplication is polynomial multiplication followed by reduction modulo \(x^4+x^3+1\).
In the source’s degree-eleven example, \(t=3\) and the table bases have orders \(0,3,5,6,7,8\). At the first missing order, \(s=12\), the three test entries give the following votes for the same basis syndrome:
| Test entry | Proposed syndrome of order \(12\) |
|---|---|
| \((6,6)\) | \(11\cdot11+12\cdot5=4\) |
| \((5,7)\) | \(11\cdot2+7=8\) |
| \((7,5)\) | \(8\), by symmetry |
All arithmetic in this table is in the labeled field, not in the integers. The basis functions are \(\psi_5=\phi_5=yz/x^2\), \(\psi_6=z^2/x^2\), \(\psi_7=y^2z/x^3\), and \(\phi_{12}=z^4/x^4\). The curve equation gives \(\psi_6^2=\phi_{12}\) and \(\psi_5\psi_7=\phi_{12}+\phi_5\). Since the known syndrome \(\phi_5\circ e\) is zero, these entry votes are already expressed in the same basis syndrome. The majority selects \(8\) despite the incorrect vote \(4\). The margin \(12-2g-2t+1=1\) guarantees this outcome. This is the nontrivial voting step of the source, Section 3.5.
What the examples teach
The worked examples should be read as templates. First compute rational points. Second build bases of Riemann-Roch spaces. Third evaluate basis functions to get syndrome matrices. Fourth use locators and voting. Fifth solve for error values. The surface constructions in the source thesis provide parameter bounds without a corresponding general decoding algorithm. That difference motivates its concluding questions about decoding.
