---title: Codes from points in projective space
date: 2024-03-04
---\newcommand{\F}{\mathbb{F}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\NN}{\mathbb{N}} \newcommand{\CC}{\mathbb{C}} \newcommand{\e}{\mathbf{e}} \newcommand{\h}{\mathbf{h}} \newcommand{\bb}{\mathbf{b}} \newcommand{\vv}{\mathbf{v}} \newcommand{\xx}{\mathbf{x}}
\newcommand{\uu}{\mathbf{u}} \newcommand{\ww}{\mathbf{w}}
\newcommand{\Null}{\operatorname{Null}} \newcommand{\Hom}{\operatorname{Hom}}
\newcommand{\weight}{\operatorname{weight}}
\newcommand{\PP}{\mathbb{P}}
\newcommand{\dist}{\operatorname{dist}} \newcommand{\floor}[1]{\lfloor #1 \rfloor}
\newcommand{\tr}{\operatorname{tr}}
Codes and vectors
From the usual perspective, an [n,k]q-code C is given as a subspace ParseError: KaTeX parse error: Undefined control sequence: \F at position 11: C \subset \̲F̲_q^n. Rather than give the embedding, we are going to explain how the "additional coordinates" can instead be understood using points in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^{k-1}.
So, let C be an [n,k]q-code and let the k×n matrix G be a generator matrix for C.
Let us view the columns of G as a multi-set S of vectors in ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^k.
Proposition : The following are equivalent for the natural number d:
a. $d$ is the minimal distance of $C$
b. each hyperplane of $\F_q^k$ contains at most $n-d$ vectors of
$S$, and some hyperplane of $\F_q^k$ contains exactly $n-d$
vectors of $S$.
Proof/sketch : Recall that the map v↦vG gives an isomorphism ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^k \to C.
Write $\langle \cdot, \cdot \rangle$ for the standard inner
product on $\F_q^k$. For a vector $\uu \in \F_q^k$, write
$\pi_\uu$ for the hyperplane defined by $$\pi_\uu = \{ \vv \in
\F_q^k \mid \langle \vv,\uu \rangle = 0\}.$$
Notice that $\pi_{\uu} = \pi_{\lambda \uu}$ for any $0 \ne \lambda
\in \F_q^k$. The $\pi_\uu$ for $\uu \ne 0$ are precisely the
hyperplanes of $\F_q^k$.
Now, label the coordinates of $vG$ by the points in $S$; for $s\in S$
the $s$-coordinate of $vG$ is thus $\langle v , s \rangle$.
Now the proposition follows from the observation that for $v \in
\F_q^k$, we have:
$$\langle v, s \rangle = 0 \iff s \in \pi_v.$$
Points in projective space
We can reformulate the above discussion using the projective space ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^{k-1} determined by ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^k.
Assume that the generator matrix has no 0-columns. Let S be the set of points ParseError: KaTeX parse error: Undefined control sequence: \PP at position 9: [x] \in \̲P̲P̲^{k-1} where x is a column of the matrix G.
Now observe that each hyperplane ParseError: KaTeX parse error: Undefined control sequence: \uu at position 5: \Pi_\̲u̲u̲ in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^{k-1} has the form ParseError: KaTeX parse error: Undefined control sequence: \uu at position 5: \Pi_\̲u̲u̲ ̲= \{ [v] \in \P…
Repeating the proof given above we obtain:
Proposition (Reformulation) : The following are equivalent for the natural number d:
a. $d$ is the minimal distance of $C$
b. each hyperplane of $\PP^{k-1}$ contains at most $n-d$ vectors of
$S$, and some hyperplane of $\PP^{k-1}$ contains exactly $n-d$
vectors of $S$.
Conversely, given a subset ParseError: KaTeX parse error: Undefined control sequence: \PP at position 11: S \subset \̲P̲P̲^{k-1}, we construct a code C(S) with generator matrix G, where the columns of G are vector representatives for the points in S.
Polynomials on ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^1
Let g(X,Y)∈k[X,Y]d be a homogeneous polynomial of degree d. Thus g(X,Y) is a k-linear combination of monomials of the form XiYd−i, say ParseError: KaTeX parse error: Undefined control sequence: \F at position 64: … \quad a_i \in \̲F̲_q.
Note that we can "evaluate" g(X,Y) at a point ParseError: KaTeX parse error: Undefined control sequence: \PP at position 13: P=(x:y) \in \̲P̲P̲^1; we write g(P)=g(x,y). Note that since g is homogeneous, for a non-zero ParseError: KaTeX parse error: Undefined control sequence: \F at position 13: \lambda \in \̲F̲_q we have g(λx,λy)=λdg(x,y). Thus, the value of g at P is not well-defined, but the condition g(P)=0 is independent of the choice of representative (x:y) for P.
If g(P)=0 for a point ParseError: KaTeX parse error: Undefined control sequence: \PP at position 7: P \in \̲P̲P̲^1 we say that P is a root of g(X,Y).
Proposition : If g(X,Y)=0 then are ≤d roots of g(X,Y) in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^1.
Proof : Recall that ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^1 = \{(0:1)\} ….
Let's proceed by induction on $d \ge 1$.
If $d = 1$, then $g(X,Y) = a X + b Y$, and there is exactly one
solution in $\PP^1$, namely the point $(-b:a)$.
Now suppose that $d \ge 2$ and that every polynomial of degree
$d-1$ is know to have no more than $d-1$ roots in $\PP^1$.
Let $g(X,Y)$ have degree $d$.
First suppose that $g(0,1) = 0$ -- i.e. that $(0:1)$ is a root of
$g(X,Y)$. Then $$g(0,1) = a_d = 0$$ so that $$g(X,Y) =
\sum_{i=0}^{d-1} a_i X^{d-i}Y^i = X\left(\sum_{i=0}^{d-1} a_i
X^{d-i-1}Y^i\right) = X \cdot h(X,Y)$$ where $$h(X,Y) =
\sum_{i=0}^{d-1} a_i X^{d-i-1}Y^i$$ is homogeneous of degree
$d-1$. Now, by induction $h(X,Y)$ has no more than $d-1$ roots in
$\PP^1$, and if $(1:t)$ is a root of $g(X,Y)$ then it is also a
root of $h(X,Y)$. This proves that $g(X,Y)$ has no more than
$(d-1) + 1 = d$ roots in $\PP^1$ in this case.
Finally, suppose that $g(0,1) \ne 0$. Thus $a_d \ne 0$. In this
case, for points of the form $P = (1:t)$ we see that $$g(1,t)=
\sum_{i=0}^d a_i t^i,$$ so $P$ is a root of $g(X,Y)$ just in case
$t$ is a root of the polynomial $\displaystyle \sum_{i=0}^d a_i
T^i \in \F_q[T]$. Since this polynomial has degree $d$, there are
no more than $d$ such roots $t \in \F_q$.
Construction : We give an example of a construction of a code by specifying points in projective space.
More precisely, let $$\phi = \phi(T_0,T_1,T_2) \in
\F_q[T_0,T_1,T_2]_m$$ be *irreducible* homogeneous of degree $m$
and let
$$S = \{ P \in \PP^2 \mid \phi(P) = 0\}.$$
Now, a line $L$ in $\PP^2$ is determined by a non-zero linear
function $\psi = a T_0 + b T_1 + c T_2$. Note that $L$ may be
identified with $\PP^1$. Since $\phi$ is irreducible, $\psi \not
\mid \phi$; thus $\phi$ defines by restriction a non-zero
homogeneous polynomial of degree $m$ on $L$ [^1]. According to the
previous Proposition, $\phi$ has no more than $m$ roots in $L$.
The code $C(S)$ determined by $S$ has parameters
$$[|S|, 3, d]_q$$ where
$d \ge |S| - \deg \phi$. Indeed, the preceding discussion shows
that $|S \cap L| \le \deg \phi$.
[^1]: To be more precise, one knows that ϕ doesn't vanish on the points of L in any extension field. Note that if m≥q+1, it is possible that ϕ(P)=0 for every point P in L, though there will be some field extension ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{q^r} and a point Q in "L over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{q^r}" with ϕ(Q)=0. But in any event, it is still true that ϕ can have no more than m roots in L.
Example : Let ϕ=T02−T1T2 so that ϕ has degree 2. Then ∣S∣=q+1. Indeed,
- $(1:y:z) \in S \iff yz = 1$ so there are $q-1$ solutions of this
form.
- $(0:1:z) \in S \iff z = 0$ so there is 1 solution of this form.
- $(0:0:1) \in S$ gives another solution.
In this case, note that that the line $Y=Z$ has two roots of
$\phi$, namely $(1:1:1)$ and $(1:-1:-1)$. Since each line has no
more than 2 roots of $\phi$, it follows that the code $C(S)$ has
minimal distance $d = q+1 - 2 = q-1$ so that
$C(S)$ has parameters
$$[q+1,3,q-2]_q.$$
An "elliptic quadric"
Let f be a irreducible homogeneous polynomial of degree 2 in two variables.
Example : If ParseError: KaTeX parse error: Undefined control sequence: \F at position 12: \alpha \in \̲F̲_q^\times is not a square, so that T2−α is irreducible, we could take f(T,S)=T2−αS2.
Now form F(T0,T1,T2,T3)=T0T1−f(T2,T3)∈k[T0,T1,T2,T3]2 and let ParseError: KaTeX parse error: Undefined control sequence: \PP at position 14: Q = \{ P \in \̲P̲P̲^3 \mid F(P) = …
Proposition : If L is a line in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^3, then Q contains no more than 2 points on L.
Proof : Let L be a line in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^3. Of course, L is determined by a 2 dimensional subspace W of ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^4. Thus there are ParseError: KaTeX parse error: Undefined control sequence: \F at position 16: \phi,\psi \in (\̲F̲_q^k)^* for which W=kerϕ∩kerψ; i.e. L={P∣ϕ(P)=ψ(P)=0}.
Let's write
\begin{align*}
\phi =& a X_0 + bX_1 + cX_2 + dX_3 \\
\psi =& a' X_0 + b'X_1 + c'X_2 + d'X_3 \\
\end{align*}
for scalars $a,b,c,a',b',c' \in \F_q$.
Of course, $\phi$ and $\psi$ are linearly independent.
Let us first consider the case where $\det \begin{bmatrix} a & b
\\ a' & b' \end{bmatrix} \ne 0$. Under this assumption, after replacing
$\phi$ and $\psi$ by suitable linear combinations $\alpha \phi + \beta \psi$, we may suppose that
\begin{align*}
\phi =& X_0 - \alpha X_2 - \beta X_3 \\
\psi =& X_1- \gamma X_2 - \delta X_3
\end{align*}
for scalars $\alpha,\beta,\gamma,\delta \in \F_q$.
Thus on $L$ we have $X_0 = \alpha X_2 + \beta X_3$ and $X_1 = \gamma X_2 + \delta X_3$.
For a point $P=(x_0:x_1:x_2:x_3) \in Q \cap L$ we have
$$Q(P) = (\alpha x_2 + \beta x_3)(\gamma x_2 + \delta x_3) - f(x_2,x_3).$$
i.e. $(x_2:x_3)$ is a root of the 2-variable homogeneous polynomial
$$h(X_2,X_3) = (\alpha X_2 + \beta X_3)(\gamma X_2 + \delta X_3) - f(X_2,X_3).$$
Since $f$ is *irreducible*, the polynomial $h$ is *non-zero*, and
$h$ thus has no more than 2 solutions in $\PP^1$ so that $\phi$
has no more than 2 roots in $L$.
Next we suppose that $\det \begin{bmatrix} a & b \\ a' & b'
\end{bmatrix} = 0.$ Since one row is a multiple of the other, we
may suppose - after replacing $\psi$ by $\phi - \lambda \psi$ for
suitable $\lambda \in \F_q$ - that we have
\begin{align*}
\phi =& a X_0 + bX_1 +& cX_2 + dX_3 \\
\psi =& & c'X_2 + d'X_3 \\
\end{align*}
If $a = b = 0$, then after replacing $\phi$ and $\psi$ by suitable
linear combinations of $\phi$ and $\psi$ we may suppose that $\phi
= X_2$ and $\psi = X_3$. Then any point $(x_0:x_1:x_2:x_3) \in Q
\cap L$ has $x_2 = x_3 = 0$. Now applying $\phi$
we find $$x_0 x_1 = f(x_2,x_3) = f(0,0) = 0$$ so that one of
$x_0,x_1$ must be zero. This leads to the two solutions $(1:0:0:0)$
and $(0:1:0:0)$.
If one of $a,b$ is non-zero, we may suppose WLOG that $a \ne 0$
and even that $a=1$. Now, at least one of $c',d'$ is non-zero and
WLOG we suppose that $c' \ne 0$ and even that $c' = 1$.
So we have
\begin{align*}
\phi =& X_0 + bX_1 +& cX_2 + dX_3 \\
\psi =& & X_2 + d'X_3 \\
\end{align*}
Replacing $\phi$ by a suitable $\phi + t \psi$ we can arrange
\begin{align*}
\phi =& X_0 + bX_1 +& + dX_3 \\
\psi =& & X_2 + d'X_3 \\
\end{align*}
For a point $$\xx=(x_0:x_1:x_2:x_3) \in Q \cap L$$ we have
\begin{align*}
x_2 &= -d' x_3 \\
x_0 &= -b x_1 - dx_3 \\
\end{align*}
Applying $\phi$ we find that
$$(-bx_1 + -dx_3) x_1 - f(-d' x_3,x_3) = 0.$$
Observe that the polyonomial $f(-d'X_3,X_3)$ is just a multiple of
$X_3^2$; say $f(-d'X_3,X_3) = \alpha X_3^2$. Now, $\xx$ is a root
of the degree 2 homogeneous polynomial $$H(X_1,X_3) = (-bX_1 -
dX_3) X_1 - f(-d' X_3,X_3) = - bX_1^2 + - dX_1X_3 - \alpha X_3^2\in
\F_q[X_1,X_3].$$
If either $b$ or $d$ is non-zero, then $H$ is non-zero. If $b = d
= 0$, the irreducibility of $f$ shows that $f(0,X_3)$ is a *non-zero*
multiple of $X_3$ -- i.e. $\alpha \ne 0$. So in all cases, $H \ne 0$.
Thus, $H$ has no more than 2 roots in
$\PP^1$. This shows that $\phi$ has no more than 2 roots in the
line $L$ determined by $\phi,\psi$.
This completes the proof.
The points in Q are easy to describe; they are as follows: ParseError: KaTeX parse error: Undefined control sequence: \F at position 36: …) \mid x,y \in \̲F̲_q\} \cup \{(0:… In particular, this shows that ∣Q∣=q2+1.
Now form the 4×(q2+1) matrix H whose columns are vector representatives for the points in Q.
The previous Proposition immediately implies:
Corollary : Any 3 columns of H are linearly independent.
Proof : Indeed, if P1,P2,P3∈Q are distinct points, the proposition shows that they are not co-linear. Hence if the vectors v1,v2,v3 are representatives of the Pi, the span ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q v_1 + \F_q v… must have dimension 3.
On the other hand, H has 4 linearly dependent columns, at least if q≥3. For this it is enough to see that there is a plane in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^3 containing 4 points of Q. In fact, any three points P1,P2,P3 in Q determine a unique plane H in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^3, and there are q+1 points of Q contained in H.
We write C⊥ of the code generated by the rows of H -- i.e. C⊥=C(Q). Thus C⊥ is a [q2+1,4]q-code.
Now, the code C dual to C⊥ has check matrix H. The corollary shows that the minimal distance d of C satisfies d=4 so that C is a [q2+1,q2−3,4]q-code.
In fact, one can describe the weight-enumerator polynomial of C⊥ geometrically, and then use the McWilliams identity to get the weight-enumerator polynomial for C; see [@ballCourseAlgebraicErrorCorrecting2020, sec. 4.6, page 62]
Bibliography
::: {.refs} :::