Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gmcninch-tufts
GitHub Repository: gmcninch-tufts/2024-Sp-Math190
Path: blob/main/course-contents/2024-03-04--projective.md
909 views
---
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[n,k]_q-code CC 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 CC be an [n,k]q[n,k]_q-code and let the k×nk \times n matrix GG be a generator matrix for CC.

Let us view the columns of GG as a multi-set SS 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 dd:

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 vvGv \mapsto 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 00-columns. Let SS be the set of points ParseError: KaTeX parse error: Undefined control sequence: \PP at position 9: [x] \in \̲P̲P̲^{k-1} where xx is a column of the matrix GG.

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 dd:

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)C(S) with generator matrix GG, where the columns of GG are vector representatives for the points in SS.

Polynomials on ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^1

Let g(X,Y)k[X,Y]dg(X,Y) \in k[X,Y]_d be a homogeneous polynomial of degree dd. Thus g(X,Y)g(X,Y) is a kk-linear combination of monomials of the form XiYdiX^i Y^{d-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)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).g(P) = g(x,y). Note that since gg 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)g(\lambda x, \lambda y) = \lambda^d g(x,y). Thus, the value of gg at PP is not well-defined, but the condition g(P)=0g(P) = 0 is independent of the choice of representative (x:y)(x:y) for PP.

If g(P)=0g(P) = 0 for a point ParseError: KaTeX parse error: Undefined control sequence: \PP at position 7: P \in \̲P̲P̲^1 we say that PP is a root of g(X,Y)g(X,Y).

Proposition : If g(X,Y)0g(X,Y) \ne 0 then are d\le d roots of g(X,Y)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 ϕ\phi doesn't vanish on the points of LL in any extension field. Note that if mq+1m \ge q+1, it is possible that ϕ(P)=0\phi(P) = 0 for every point PP in LL, though there will be some field extension ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{q^r} and a point QQ in "LL over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{q^r}" with ϕ(Q)0\phi(Q) \ne 0. But in any event, it is still true that ϕ\phi can have no more than mm roots in LL.

Example : Let ϕ=T02T1T2\phi = T_0^2 - T_1 T_2 so that ϕ\phi has degree 2. Then S=q+1|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 ff 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αT^2 - \alpha is irreducible, we could take f(T,S)=T2αS2f(T,S) = T^2 - \alpha S^2.

Now form F(T0,T1,T2,T3)=T0T1f(T2,T3)k[T0,T1,T2,T3]2F(T_0,T_1,T_2,T_3) = T_0 T_1 - f(T_2,T_3) \in k[T_0,T_1,T_2,T_3]_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 LL is a line in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^3, then QQ contains no more than 2 points on LL.

Proof : Let LL be a line in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^3. Of course, LL is determined by a 2 dimensional subspace WW 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ψW = \ker \phi \cap \ker \psi; i.e. L={Pϕ(P)=ψ(P)=0}.L = \{ P \mid \phi(P) = \psi(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 QQ 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|Q| = q^2 + 1.

Now form the 4×(q2+1)4 \times (q^2 + 1) matrix HH whose columns are vector representatives for the points in QQ.

The previous Proposition immediately implies:

Corollary : Any 3 columns of HH are linearly independent.

Proof : Indeed, if P1,P2,P3QP_1,P_2,P_3 \in Q are distinct points, the proposition shows that they are not co-linear. Hence if the vectors v1,v2,v3v_1,v_2,v_3 are representatives of the PiP_i, 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, HH has 4 linearly dependent columns, at least if q3q \ge 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 44 points of QQ. In fact, any three points P1,P2,P3P_1,P_2,P_3 in QQ determine a unique plane HH in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^3, and there are q+1q+1 points of QQ contained in HH.

We write CC^\perp of the code generated by the rows of HH -- i.e. C=C(Q)C^\perp = C(Q). Thus CC^\perp is a [q2+1,4]q[q^2 + 1,4]_q-code.

Now, the code CC dual to CC^\perp has check matrix HH. The corollary shows that the minimal distance dd of CC satisfies d=4d = 4 so that CC is a [q2+1,q23,4]q[q^2+1,q^2-3,4]_q-code.

In fact, one can describe the weight-enumerator polynomial of CC^\perp geometrically, and then use the McWilliams identity to get the weight-enumerator polynomial for CC; see [@ballCourseAlgebraicErrorCorrecting2020, sec. 4.6, page 62]

Bibliography

::: {.refs} :::