Codes and Projective Systems
Codes and Projective Systems
Abstract
In this talk we will shortly recall some basics of coding theory and, after
that, we will show some methods for build linear codes from geometrical
structures of projective spaces such as n-sets, arcs, caps, ovals, hyperovals
and then we will study parameters of that codes. Finally we will catch a
glimpse into a combinatorial generalization of finite projective planes, the
designs, again, introducing a method for build linear codes from it with
some properties of that codes
As a convention, GF (q) is the Galois field of order q, and, given a field K, the
elements of the vector space K n are column vectors, K m×n denotes the set of
matrices of m rows and n coloumns with entries in K; if we replace the field K
with any set A 6= ∅, Am×n again denotes the set of matrices with entries in A.
Definition 1 We call Hamming distance the function
h : GF (q)n × GF (q)n −→ N which assigns to every pair of vectors the number
of positions at which these two vectors are different. We also define a [n, k, d]q
linear code a vector subspace C ≤ GF (q)n of dimension k and minimum distance
d, where d = min{h(u, v)| ∀u, v ∈ C, u 6= v}
Observe that the hamming distance is a distance induced by the norm
w : GF (q)n → N which assigns to every vector the number of entries different
from 0; it’s easy to check that w is a norm and that the minimum distance of a
linear code d coincides with the minimum weight , i.e.
d = min{w(v)| ∀v ∈ C, v 6= 0}.
It’s easy to see that if A is a generator matrix of C then C = {A> x|x ∈ GF (q)k }
that is the set of all the linear combinations of the coloumns of A> , or the
(transposed) linear combinations of rows of A. Notice that in general A is not
unique, but we can classify all the possible generator matrices of a code C: given
G generator matrix of C ≤ GF (q)n G0 ∈ GF (q)k×n is another generator matrix
of C iff there exists an automorphism N ∈ GF (q)k×k nonsingular such that
G0 = N G because given a basis of a vector space every automorphism of the
1
space maps that basis to another basis of the same space, and for every two
basis of a vector space there exists an automorphism sending the vector of the
first in the vector of the second in the same order.
For parity check matrices we argue the same: first, the parity check matrix of a
code is not unique in general, and, again, we can classify all the possible parity
check matrices of a code, namely, given a parity check matrix H of C ≤ GF (q)n
H 0 ∈ GF (q)(n−k)×n , H 0 is a parity check matrix of C iff there exists
N ∈ GF (q)(n−k)×(n−k) such that H 0 = N H, second we have that
C = {x ∈ GF (q n )| Hx = 0} where H is a parity check matrix of C
Proof:
Let H = (H 1 . . . H n ), d0 be the least number of linearly dependent coloumns
of H and c ∈ C a word with minimum weight with nonzero entries ci1 , . . . , cid .
Hence 0 = Hc = ci1 H i1 + . . . + cid H id and so we have d ≥ d0 linearly dependent
coloumns, but if we had d0 < d we would have m < d linearly dependent
coloumns H j1 , . . . , H jm with kj1 H j1 + . . . + kjm H jm = 0 and so we would get
a word k ∈ C with entries kji at their places and the other entries 0, thus
w(c) = m < d which is not possible, and so d = d0 .
Proof:
Let H = (H 1 . . . H n ) the parity check matrix of C, with rank n − k and w.l.o.g,
H 1 , . . . , H n−k are the linearly indipendent coloumns which give the rank, so
H 1 , . . . , H n−k+1 are linearly dependent; hence for the prevoius proposition d ≤
n − k + 1.
2
get:
0
..
. lσ(j)j a1σ(j)
ALj = A ·
.. σ(j)j
lσ(j)j = = λσ(j)j A (1)
.
.
.. lσ(j)j a(r+1)σ(j)
0
Definition 8 Let P G(r, q) be the r−dimensional projective space over the field
(q). We define an n-set of P G(r, q) the map I : P G(r, q) → Z+ 0 such that
GF P
I(P ) = n
P ∈P G(r,q)
3
Definition 9 Given I = {P1 . . . , Pn } an n-set of P G(r, q) where for all i Pi =<
pi >, with pi column vector of the homogeneous coordinates, we define a matrix
of I, A = (p1 p2 . . . pn ) ∈ GF (q)(r+1)×n , I is proper if rank(A) = r + 1.
Clearly this is an equivalence relation; notice that I, J are equivalent iff there
exists M ∈ GF (q)n×n monomial, N ∈ GF (q)(r+1)×(r+1) nonsingular such that
B = (N A)M , where A and B are matrices of I and J respectively (the same
happens between linear codes), because we have a projectivity φ such that
φ(Pi ) = Qi for all i iff we have a matrix N ∈ GF (q)(r+1)×(r+1) such that,
given Pi =< pi >, N pi are homogeneous coordinates of the Qi ’s not in the
same order up to proportionality, this happens iff B 0 = (N p1 . . . N pn ) = N A,
but B, B 0 are matrices of the same n-set iff there exists a monomial matrix
M ∈ GF (q)n×n such that B 0 = BM .
Now we are interested in constructing linear codes from projective system: we
can reach this task in essentially two ways:
Notice that in general we cannot build an n-set from a generator (or parity
check) matrix of a linear code because even if the rank is maximum, we can have
a zero column vector; neverthless the parity check matrix of a code contains a
zero column iff it has one linearly dependent column and so iff it has minimum
distance 1, thus a code is generated from an n-set iff it’s parity check matrix
does not have zero column, iff it’s minimum distance it at least 2. As we see
from previous results on equivalence between codes and n-sets respectively, even
if we do not have a bijection between the two objects, from equivalent n-sets we
obtain equivalent codes because the equivalence condition between matrices of
4
n-sets and matrices of codes, respectively, is the same.
Now let’s study for both methods the parameters of our codes:
Let I = {P1 , . . . , Pn } be an n-set of P G(r, q), where Pi =< pi > and C the code
built from I, with G generator matrix: C has clearly lenght n, and dimension
k = rank(G) ≤ r + 1 which is the maximum number of linearly indipendent
distincts points of I, and the minimum distance in d = n − l, where l is the
maximum number of (not necessarily distinct) points of I don’t lying on the
same hyperplane each of them counted with the inclusion multiplicity of I:
Let c ∈ C be a nonzero word of C, so c> = a> G where a ∈ GF (q)(r+1) , i.e.
c> = (a> · p1 , . . . , a> · pn ), but, for every i, a> · pi = 0 iff Pi satisfies the equa-
tion a1 x1 + . . . + ar+1 xr+1 = 0 (where a> = (a1 , . . . , ar+1 )), the equation of an
hyperplane, and so the number of nonzero entries of c is the number of points
Pi don’t lying on the hyperplane with equation a1 x1 + . . . + ar+1 xr+1 = 0 again
counted with inclusion multiplicity of I, and so C is an [n, k, d]q linear code.
Now from I = {P1 , . . . , Pn }, n-set of P G(r, q), with Pi =< pi > we take C
the code built from I, with H matrix of I taken as parity check matrix: C has
again length n, but dimension n − k ≥ n − r − 1, where k = rank(H), and for
the proposition 3 d is the least number of linearly dependent coloumns of H
or equivalently the least number of linearly dependent points, not necessarily
distincts, of I.
Proof:
Let I = {P1 , . . . , Pn } be an n-set in P G(k − 1, q) with Pi =< pi > defining
the generator matrix of C G = (p1 . . . pn ) and for d = n − l, where the maxi-
mum l is realized by the hyperplane π0 (which is not unique); in π0 we have,
counted with inclusion multiplicity if I, the points Pi1 , . . . , Pil , so we pick a
point P ∈ π0 not in I. Let I 0 = I ∪ {P } which is an n + 1-set of P G(k − 1, q)
and let G0 = (p1 . . . pn p), obviously rank(G0 ) = rank(G) = k, and even if π0
could not be the unique hyperplane realizing the maximum, π0 cointains one
more point of I 0 and so and so the maximum number of points in I 0 lying on an
hyperplane is l + 1, so G0 is the generator matrix of a [n + 1, k, d0 ]q code with
minimum distance d0 = (n + 1) − (l + 1) = n − l = d.
Yet another example: let I = {P1 , . . . , Pn } be the n-set of all the points taken
r+1
one time of P G(r, q), where Pi =< pi > and n = q q−1−1 ; let H = (p1 | . . . |pn ) be
the matrix of I as the parity check matrix of the code C: this code has length
5
n and dimension n − r − 1 because in H occurs the coloumns
1 0
0 ..
e1 = . , . . . , e n = . (2)
.. 0
0 1
From now on we will consider classical sets of P G(r, q) instead of n-sets, paying
attention to the cases r = 2, 3; indeed, as we said before, we identify sets with
n-sets in which every point of the space is taken 1 time or is not taken at all
and so we can apply the former code-building methods.
Proof:
H ∈ GF (q)(r+1)×n has rank r + 1, and the minimum distance of C is d = r + 2
because r + 2 coloumns cannot be indipendent, but every r + 1 coloumns are
indipendent by definition of arc and so C is an [n, n − r − 1, r + 2]q code which
is mds.
6
Definition 17 Given O ⊆ P G(r, q) an oval (or an hyperoval) and a line l, l
is:
• a secant if exactly two points of O lie on l
• a tangent if exactly one point of O lies on l
• an external line if no points of O lie on l
Observe that through every point of an oval O passes exactly one tangent:
we already know that for every point of P G(2, q) passes exactly q + 1 lines, but
in the pencil of lines passing through a point P ∈ O, we have the set of lines
{P Q| ∀Q ∈ O \ {P }} which has q elements because every three points of O are
not collinear and so two different Q’s define two different lines, hence we have in
the pencil of lines through P one line left which is a tangent. As an immediate
consequence an oval O has exactly q tangent.
But if we pick any point P in an hyperovalO, as before, we have that the set
of q + 1 lines {P Q| ∀Q ∈ O \ {P }} describes the pencil of lines through P ,
which are all secants, so an hyperoval doesn’t have tangents. We give now some
fundamental theorems about ovals and hyperovals:
Theorem 18 (Qvist’s theorem 1)
Given O ⊆ P G(2, q) oval with q odd, every P ∈
/ O lies on 0 or 2 tangents of O
Proof:
Let P ∈/ O: if P doesn’t lie on any tangent of O we are done; otherwise, if there
exists τ = P R a tangent of O in R, then we have an extra tangent of O passing
through P : If it were not true, i.e. if P had a unique tangent passing through
him, then all the other lines passing through P different from τ would have been
secants or externals, but that’s not true because for the axioms of projective
plane two distinct secants passing through P identify two disjoint couples of
points in O \ {R}. And so all the secants passing through P partition O \ {R}
in couples and so |O \ {R}| = q is even, contrary to the hypothesis that q is
odd. Again, for the same reason every Q ∈ τ \ {R} has an extra tangent passing
through him, and so we have q tangents of O against q points in τ \ {R}: for
the pidgeonhole principle every point in τ \ {R} has only one extra tangent.
Theorem 19 (Qvist’s theorem 2)
Given O ⊆ P G(2, q) oval with q even, every P ∈ / O lies on 1 or q + 1 tangents
of O, and so all the tangents of O are concurrent in one point called the nucleus
of O
Proof:
Let P ∈/ O, we have two cases:
• If P doesn’t lie on any secant of O, then in the pencil of lines passing
through P we have the set of lines {P Q| ∀Q ∈ O} which are, for the
case hypothesis, all tangents of O and the P Q lines are q + 1 (so they
individuate all the lines through P and all the tangents of O) then we are
done.
7
• If P lies on the secant QR for Q, R ∈ O, then there must be a tangent of
O passing through P , if it were not so, the we would have any line passing
through P to be secant or external, hence all the secant throguh P would
have partititioned O in disjoint couples as we claimed in the proof of the
previous theorem, but we assumed |O| = q + 1 is odd, and so this is not
possible. For the same reason every point on the line QR there has a
tangent passing through him and so we get again q + 1 tangents of O
against q + 1 points of QR, and so for the pidgeonhole principle we must
have for every point of QR exactly one tangent passing through him.
Proof:
Let A ⊆ P G(2, q) be an (n, 3)-set, so for any point P ∈ A in every line passing
through P there is at most one more point of A, so counting the occurrence of
the points of A \ {P } in the pencil of lines through P we have n − 1 ≤ q + 1,
8
then n ≤ q + 1, and so maxs (r, q) ≤ q + 2. We have now to prove that if
maxs (r, q) = q + 2 then q is even:
If A0 ⊆ P G(2, q) is an (q + 2, 3)-set, then for a point P ∈
/ A0 , every line l passing
through P l passes exactly through two or zero points of A0 , remembering that
an hyperoval doesn’t have tangents, as we stated in the proofs of Qvist’s theo-
rems, the secants through P partition A0 in disjoint couples, and so |A0 | = q + 2
is even and so q is even.
These methods shown above are not the unique methods for generating codes
from geometries: we can generate a code directly from the inner structure of a
finite projective plane, jumping to a wider combinatorial object that generalizes
projective planes as incidence strctures to generate linear codes.
Proof:
Given a point x, let rx be the number of blocks incident with x, we define
I = {(y, B)| y ∈ X, y 6= x, B ∈ B, {x, y} ⊆ A}, so we count the elements of this
set in two different ways:
• every fixed block B contains k − 1 y’s, thus |I| = rx (k − 1)
• every fixed point y 6= x is contained is λ blocks, hence |I| = λ(v − 1)
9
λ(v−1)
Compairing these two results we get λ(v − 1) = rx (k − 1) and so rx = k−1 ,
λ(v−1)
but rx doesn not depend on x and so we get r = k−1
vr
Proposition 24 Let D = (X, B, I) be a (v, k, λ)-BIBD, so D has b = k =
2
λ(v −v)
k2 −k blocks
Proof:
Given b = |B|, we define I = {(x, B)| x ∈ X, B ∈ B, x ∈ B}; again we count the
elements of I in two ways:
• every (fixed) x is contained in r blocks B, so |I| = rv
• every (fixed) B contains k points x, hence |I| = bk
vr
again, compairing these two results, we get bk = |I| = rv, and so b = k .
Of course we can see the incidence matrix to have her entries in the field
we need to use, and a general design is uniquely determined by its incidence
matrix. Observe that for every (v, k, λ)-BIBD, named M its incidence matrix
we have that:
1. every column contains k ones
2. every rows contains r ones
3. two distinct rows have apiece λ ones in the same column
Theorem 26 (Ryser)
Given a design D = (X, B, I) with 2 ≤ k < v, and M ∈ GF (q)v×b its incidence
matrix, M M > = λJv + (r − λ)Iv iff D is a (v, k, λ)-BIBD and 1v > M = k1b > ,
where Jn is a square matrix of order n, and 1n is a vector of length n both having
all entries 1 ∈ GF (q)
Proof:
(⇒) If D is a (v, k, λ)-BIBD then, because of the observation made
( on the in-
b r if i = j
cidence matrix, L = M M > has ij-th entry bij =
P
mil mlj =
l=1 λ otherwise
because in the first case we count the elements incident with a block, in the
second the number blocks incident two distinct elements; thus we can write
10
L = λJv + (r − λ)Iv . The multiplication of 1v > by a column of M is equivalent
to counting the number of ones in that column, but every column of M has
exactly k ones, so 1v > M = k1b > .
(⇐) Clearly from the size of M we get |X| = v and |B| = b. As before, the
equality 1v > M = k1b > gives us the number of ones in every column of M , which
is the number of blocks incident with a point, equal to k for hypothesis; from
M M > = λJv + (r − λ)Iv we have that every entry outside the main diagonal is
λ, but again, this entry count the number of lined-up ones in two distinct rows,
that is, the number of blocks incident with a pair of distinct points. Hence D
is a (v, k, λ)-BIBD.
Proof:
r λ ... λ
λ r . . . λ
If M is the incidence matrix of D, then L = . .. so we make
.. ..
. .
λ ... λ r
two steps: first we subtract the first row from every other rows, Li 7→ Li − L1
for every i > 1 and we add the first column to every other column Lj 7→
j 1
L
+ L for every j > 2 and we obtain an upper diagonal matrix of the form
r + (v − 1)λ λ ... λ
0 (r − λ) . . . λ
.. .. ..
. ... . .
0 ... 0 (r − λ)
Hence to compute determinant we multiply all the entries on the diagonal of
the transformed matrix.
Now we are ready to construct codes from designs and study some of their
basic properties:
Definition 28 Given D = (X, B, I) a design with incidence matrix M we define
the linear code C = {M > x| x ∈ GF (q)v } ≤ GF (q)b
Observe that if D is symmetric and p - det(L), then of course rank(M ) = v, but
if p - v and p|det(L), so det(L) = 0 in GF (q), then rank(M ) = v −1: in this case
we can diagonalize L giving its v eigenvectors which form a basis of GF (q)v :
indeed L is diagonalizable if it is a linear combination of a diagonalizable matrix
and the identity matrix, so here we have to check that Jv is diagonalizable. Jv
has one eigenvector 1v with eigenvalue v and for the eigenvalue 0 we have the
11
eigenvectors:
1 1 1
−1 0 0
0 −1 0
; ... (3)
.. .. ..
. . .
0 0 −1
All this vectors (1v included) are linearly indipendent, because if we put them
together in a matrix and we get an upper triangular matrix summing to the first
column all the other columns we get the determinant (−1)v−1 v 6= 0 and so Jv
is diagonalizable, hence with linear algebra considerations we obtain that L is
diagonalizable with eigenvalues vλ + r − v together with the eigenvector 1v and
r−λ with multiplicity v−1 together with all the other eigenvectors shown above.
Furthermore, we can give a bound on the dimension of the code in some cases:
for example if p|r − λ then L is singular, and if p|r, then, for the proof of Ryser’s
theorem, and for the congruence r ≡ λ ≡ 0 mod p, two any rows are orthogonal,
so the columns of M > are in C ⊥ , and so their span which is C; for C ⊆ C ⊥ we
get dimC ≤ dimC ⊥ , then dimC ≤ v − dimC, so dimC ≤ v2 .
References:
• Albrecht Beutelspacher, Uta Rosenbaum: Projective Geometry: From
Foundations to Applications. Cambridge University Press, 1998
• Massimo Giulietti Appunti del Corso di Codici e Crittografia: Campi
finiti Codici lineari Codici algebrico-geometrici Crittografia su Curve El-
litticheA.A. 2013/2014
• Douglas R. Stinson Combinatorial designs : constructions and analysis,
Springer 2004
• Thomas Beth, Dieter Jungnickel, Hanfried Lenz Design theory Vol. 1
Second Edition, Cambridge University Press 1999
• Tom Edgar, Finite Projective Geometries and Linear Codes (In partial ful-
fillment of the requirements for the degree of Master Science Fort Collins,
Colorado Spring 2004)
• Matthew Brown (Hyper)ovals and ovoids in projective spaces (Socrates
Intensive Course Finite Geometry and its Applications Ghent, 3−14 April
2000)
• Simeon Ball, Zsuzsa Weiner An Introduction to Finite Geometry 5 Septem-
ber 2011
• William G. Bridges, Marshall Hall Jr. , John L. Hayden Codes and De-
signs, Journal of Combinatorial Theory, Series A 31, 155-174 (1981)
12
• Katarzyna Kiczka Codes and Projective Systems Combinatorial Geometry
AA 2011-2012
13