Weight distribution of cyclic codes defined by
quadratic forms and related curves
Ricardo A. PodestΓ‘, Denis E. Videla
[email protected]
[email protected]
Ricardo A. PodestΓ‘ β CIEM, Universidad Nacional de CΓ³rdoba, CONICET, FAMAF. Av. Medina Allende 2144, Ciudad Universitaria, (X5000HUA) CΓ³rdoba, RepΓΊblica Argentina.
Denis E. Videla β CIEM, Universidad Nacional de CΓ³rdoba, CONICET, FAMAF. Av. Medina Allende 2144, Ciudad Universitaria, (X5000HUA) CΓ³rdoba, RepΓΊblica Argentina.
Abstract.
We consider cyclic codes CLβ associated to quadratic trace forms in m variables QRβ(x)=Trqm/qβ(xR(x)) determined by a family L of q-linearized polynomials R over Fqmβ, and three related codes CL,0β, CL,1β and CL,2β.
We describe the spectra for all these codes when L is an even rank family,
in terms of the distribution of ranks of the forms QRβ in the family L,
and we also compute the complete weight enumerator for CLβ.
In particular, considering the family L=β¨xqββ©, with β fixed in N, we give the weight distribution of four parametrized families of cyclic codes Cββ, Cβ,0β, Cβ,1β and Cβ,2β over
Fqβ with zeros {Ξ±β(qβ+1)}, {1,Ξ±β(qβ+1)}, {Ξ±β1,Ξ±β(qβ+1)} and {1,Ξ±β1,Ξ±β(qβ+1)} respectively, where q=ps with p prime, Ξ± is a generator of
Fqmββ and m/(m,β) is even.
Finally, we give simple necessary and sufficient conditions for Artin-Schreier curves ypβy=xR(x)+Ξ²x, p prime, associated to polynomials RβL to be optimal.
We then obtain several maximal and minimal such curves in the case L=β¨xpββ© and
L=β¨xpβ,xp3ββ©.
Key words and phrases:
Cyclic codes, quadratic forms, character sums, weight distribution, optimal curves.
2010 Mathematics Subject Classification. Primary 94B15; Secondary 11T24, 11E04, 11G20.
Partially supported by CONICET, FONCYT and SECyT-UNC
1. Introduction
Let q=ps, with p prime. A linear code C of length n over Fqβ is a subspace of Fqnβ of
dimension k. If C has minimal distance d=min{d(c,cβ²):c,cβ²βC,cξ =cβ²}, where d(β
,β
) is the Hamming distance in Fqnβ, then C is called an [n,k,d]-code. One of the most important families of codes are the cyclic ones. A code is cyclic if given a codeword c=(c1β,β¦,cnβ)βC the cyclic shift s(c)=(cnβ,c1β,β¦,cnβ1β) is also in C.
The weight of cβC is w(c)=#{0β€iβ€n:ciβξ =0}; that is, the number of non-zero coordinates of c.
For 0β€iβ€n the numbers Aiβ=#{cβC:w(c)=i} are called the frequencies and the sequence
Spec(C)=(A0β,A1β,β¦,Anβ) is called the weight distribution or the spectrum of C.
A good reference for general coding theory is the book [7].
Fix Ξ± a generator of Fqmββ. Consider h(x)=h1β(x)β―htβ(x)βFqβ[x] where hjβ(x) are different irreducible polynomials over Fqβ. For each j=1,β¦,t, let gjβ=Ξ±βsjβ be a root of hjβ(x),
njβ be the order of gjβ and mjβ be the minimum positive integer such that qmjββ‘1(modnjβ).
Then, deg(hjβ(x))=mjβ for all j.
Put n=Ξ΄qmβ1β where Ξ΄=gcd(qmβ1,s1β,β¦,stβ).
Then, by Delsarteβs Theorem of trace and duals ([2]), the q-ary code
C={c(a1β,β¦,atβ):ajββFqmjββ}
with
[TABLE]
where Trqmjβ/qβ is the trace function from Fqmjββ to Fqβ,
is an [n,k]-cyclic code with check polynomial h(x) and dimension k=m1β+β―+mtβ.
The computation of the spectra of cyclic codes is in general a difficult task.
The recent survey [3] of Dinh, Li and Yue shows the progress made on this problem in the last 20 years using different techniques: exponential sums, special nonlinear functions over finite fields, quadratic forms, Hermitian forms graphs, Cayley graphs, Gauss and Kloosterman sums.
In [5], Feng and Luo computed the weight distribution of the cyclic code of length n=pmβ1 with zeros {Ξ±β1,Ξ±β(pβ+1)}, where Ξ± is a generator of Fpmββ, ββ₯0 and m/(m,β) odd, by using a perfect nonlinear function. In another work ([4]), they used quadratic forms to calculate the weight distribution of the cyclic codes with zeros {Ξ±β2,Ξ±β(pβ+1)} and {Ξ±β1,Ξ±β2,Ξ±β(pβ+1)}, respectively, when p is an odd prime and (m,β)=1. These methods were used by other authors to calculate the spectra of other cyclic codes over
Fpβ when p is an odd prime. All these results are summarized in TheoremΒ 2.4 in [3].
In this paper, we will explicitly compute the weight distributions of some general families of cyclic codes over Fqβ. In particular, we will compute the spectra of cyclic codes with zeros
{Ξ±β(qβ+1)}, {1,Ξ±β(qβ+1)}, {Ξ±β1,Ξ±β(qβ+1)} and
{1,Ξ±β1,Ξ±β(qβ+1)} in all characteristics, where Ξ± is a generator of Fqmββ and
m/(m,β) is even (i.e. new cases not covered in [5] and more general ones), by using quadratic forms and related exponential sums.
We now give a brief summary of the results in the paper.
In Section 2 we recall quadratic forms Q in m variables over finite fields and their absolute invariants: the rank and the type.
We define certain exponential sums SQ,bβ(Ξ²) and compute their values and distributions (LemmaΒ 2.2).
We then consider the particular quadratic form QΞ³,ββ(x)=Trqm/qβ(Ξ³xqβ+1), with Ξ³βFqβ, ββN. We recall the distribution of rank and types given by Klapper in [8] and [9].
These facts will be later used (Sections 3β5) to compute the spectra of some families of cyclic codes.
In the next section, we consider cyclic codes defined by general quadratics forms determined by q-linearized polynomials and compute their spectra in some cases. More precisely, we consider L=β¨xqβ1β,xqβ2β,β¦,xqβsββ©βFqmβ[x], the associated code
[TABLE]
and three related codes CL,0β, CL,1β and CL,2β (see (3.2)).
If L is an even rank family (see DefinitionΒ 3.1) we give the weight distributions of
CLβ, CL,0β, CL,1β and CL,2β (see TheoremsΒ 3.3 and 3.4 and TablesΒ 1 to 4).
In PropositionΒ 3.7, we also give the complete weight enumerator of CLβ.
In the next sections we consider two particular even rank families: L=β¨xqββ© and
L=β¨xqβ,xq3ββ©, with ββN.
In Section 4, we compute the spectrum of the code Cββ defined by the family of quadratic forms
QΞ³,ββ=Trqm/qβ(Ξ³xqβ+1), Ξ³βFqmβ,
and the spectra of the related codes Cβ,0β, Cβ,1β and Cβ,2β (see Theorems 4.1 and 4.4 and Tables 5β8). As a consequence, Cββ turns out to be a 2-weight code. The complete weight enumerator of Cββ is given in Corollary 4.2. In Section 5 we obtain similar results for the codes Cβ,3ββ, Cβ,3β,0β,
Cβ,3β,1β and Cβ,3β,2β (see Theorem 5.2 and Tables 9 and 10).
In the last section, we consider Artin-Schreier curves of the form
[TABLE]
where p is prime, Ξ²βFpmβ and R is a p-linearized polynomial over Fpmβ. In Proposition 6.1 we give simple necessary and sufficient conditions for these curves to be optimal, that is curves attaining the equality in the Hasse-Weil bound, in terms of the degree of R and the rank r of the associated quadratic form QRβ(x)=Trpm/pβ(xR(x)).
We then show in Theorem 6.3 that there are several maximal and minimal curves in the family
[TABLE]
In the binary case p=2, Van der Geer and Van der Vlugt have found the same curves for β=1 and Ξ²=0 (see [12]).
Thus, we extend their result for any p, β and Ξ².
We also show the existence of optimal curves of the form
[TABLE]
with Ξ³1β,Ξ³3ββFpmββ, Ξ²βFpmβ.
2. Quadratic forms over finite fields and exponential sums
A quadratic form in Fqmβ is an homogeneous polynomial q(x) in Fqmβ[x] of degree 2.
We want to consider more general functions.
Any function
[TABLE]
can be identified with a polynomial of m variables over Fqβ via an isomorphism FqmββFqmβ of Fqβ-vector spaces.
Such Q is said to be a quadratic form if the corresponding polynomial is homogeneous of degree 2.
The rank of Q, is the minimum number r of variables needed to represent Q as a polynomial in several variables.
Alternatively, the rank of Q can be computed as the codimension of the Fqβ-vector space
V={yβFqmβ:Q(y)=0,Q(x+y)=Q(x),βxβFqmβ}.
That is β£Vβ£=qmβr.
Two quadratic forms Q1β,Q2β are equivalent if there is an invertible Fqβ-linear function S:FqmββFqmβ such that Q1β(x)=Q2β(S(x)).
Fix Q a quadratic form from Fqmβ to Fqβ. It will be convenient to consider, for each
Ξ²βFqmβ and ΞΎβFqβ, the number
[TABLE]
We will abbreviate
NQβ(ΞΎ)=NQ,0β(ΞΎ), NQ,Ξ²β=NQ,Ξ²β(0) and
NQβ=NQβ(0)=#kerQ.
It is a classic result that quadratic forms over finite fields are classified in three different equivalent classes. This classification depends on the parity of the characteristic (see for instance [10]).
But in both characteristics (even or odd), there are 2 classes with even rank (usually called type 1 and 3) and one of odd rank.
For even rank, we will use the notation
[TABLE]
and call this sign the type of Q.
The number NQβ(ΞΎ) does not depend on the characteristic and it is given by
[TABLE]
where Ξ½(0)=qβ1 and Ξ½(z)=1 if zβFqββ (see [10]). From the works [8], [9] of Klapper we also know the distribution of these numbers NQ,Ξ²β(ΞΎ), which are given as follows.
Lemma 2.1**.**
Let Q be a quadratic form of m variables over Fqβ of even rank r. Then, for all ΞΎβFqβ, there are qmβqr elements Ξ²βFqmβ such that NQ,Ξ²β(ΞΎ)=qmβ1 and qrβ1+Ξ΅QβΞ½(c)q2rββ1 elements Ξ²βFqmβ such that NQ,Ξ²β(ΞΎ)=qmβ1+Ξ΅QβΞ½(ΞΎ+c)qmβ2rββ1, where c runs on Fqβ.
Given a quadratic form Q, we can define the exponential sums
[TABLE]
where ΞΆpβ=ep2Οiβ and put SQβ(Ξ²)=SQ,0β(Ξ²).
We now give the values of SQ,bβ(Ξ²) and their distributions.
Lemma 2.2**.**
Let Q(x) be a quadratic form over Fqβ of even rank r. Then,
[TABLE]
Proof.
Notice that
[TABLE]
Hence, SQβ(Ξ²)=qNQ,Ξ²β(0)βqm.
Similarly, we get SQ,bβ(Ξ²)=qNQ,Ξ²β(βb)βqm. The result now follows from Lemma 2.1.
β
The quadratic form Trqm/qβ(Ξ³xqβ+1)
A whole family of quadratic forms over Fqβ in m variables are given by
[TABLE]
where R(x) is a q-linearized polynomial over Fqβ.
We are interested in the simplest case, when R(x) is the monomial RΞ³,ββ(x)=Ξ³xqβ with
ββN, Ξ³βFqmββ, i.e.
[TABLE]
The next theorems, due to Klapper, give the distribution of ranks and types of the family of quadratics forms
{QΞ³,ββ(x)=Trqm/qβ(Ξ³xqβ+1):Ξ³βFqmβ,ββN}.
For integers m,β we will use the following notations
[TABLE]
and denote the set of (qβ+1)-th powers in Fqmβ by
[TABLE]
Theorem 2.3** (even characteristic ([8])).**
Let q be a power of 2 and m,ββN such that mββ is even. Then QΞ³,ββ is of even rank and we have:
- (a)
If Ξ΅ββ=Β±1 and Ξ³βSq,mβ(β) then QΞ³,ββ is of type β1 and has rank
mβ2(m,β).
2. (b)
If Ξ΅ββ=Β±1 and Ξ³β/Sq,mβ(β) then QΞ³,ββ is of type Β±1 and has rank m.
For q odd, consider the following sets of integers
[TABLE]
where N=qmβ1 and L=q(m,β)+1.
Theorem 2.4** (odd characteristic ([9])).**
Let q be a power of an odd prime p and let m,β be non negative integers. Put Ξ³=Ξ±t with Ξ± a primitive element in Fqmβ. Then, we have:
- (a)
If Ξ΅ββ=1 and tβXq,mβ(β) then QΞ³,ββ is of type β1 and has rank mβ2(m,β).
2. (b)
If Ξ΅ββ=1 and tβ/Xq,mβ(β) then QΞ³,ββ is of type 1 and has rank m.
3. (c)
If mββ is even, Ξ΅ββ=β1 and tβYq,mβ(β)
then QΞ³,ββ is of type 1 and has rank mβ2(m,β).
4. (d)
If mββ is even, Ξ΅ββ=β1 and tβ/Yq,mβ(β)
then QΞ³,ββ is of type β1 and has rank m.
We will need the following result whose proof is elementary.
Lemma 2.5**.**
Let q be a prime power and m,β integers. If mββ is even then (qmβ1,qβ+1)=q(m,β)+1.
Lemma 2.6**.**
Let M=#Sq,mβ(β), M1β=#Xq,mβ(β) and M2β=#Yq,mβ(β) and put
Mβ²=qmβ1βM, M1β²β=qmβ1βM1β and M2β²β=qmβ1βM2β.
If mββ is even then
[TABLE]
Proof.
Let Ξ± be a primitive element of Fqmβ, then Sq,mβ(β)=β¨Ξ±qβ+1β©, this implies that
M=(qmβ1,qβ+1)qmβ1β=q(m,β)+1qmβ1β, by Lemma 2.5.
On the other hand, if k, N, s1β, s2β are non-negative integers with kβ£N and
0β€s1β,s2ββ€kβ1, then
[TABLE]
Therefore, if q(m,β)+1β£qmβ1, we have that
M1β=M2β=q(m,β)+1qmβ1β.
Clearly, we obtain that Mβ²=M1β²β=M2β²β=q(m,β)M as we wanted.
β
3. Weight distribution of cyclic codes defined by trace forms
Let LβFqmβ[x] be a finite dimensional Fqmβ-subspace containing
q-linearized polynomials only, i.e.
[TABLE]
for some non-negative integers β1β,β¦,βsβ with βiβξ =βjβ for iξ =j.
Define the q-ary code
[TABLE]
with length n=qmβ1 and the related codes
[TABLE]
Notice that cR,bβ=cRβ+b and cR,bβ(Ξ²)=cRβ(Ξ²)+b; moreover, we have that cR,0β=cRβ(0)=cRβ, cR,bβ(0)=cR,bβ and
cR,0β(Ξ²)=cRβ(Ξ²). Then, we have
[TABLE]
All of these codes are cyclic since one can check that their words have the form (1.1). In our case, this can be seen directly.
If Ξ± is a primitive element of Fqmβ then
[TABLE]
The cyclic shift s(cRβ)=(Trqm/qβ(Ξ±iR(Ξ±i)))i=0qmβ2β=cSβ with S(x)=Ξ±β1R(Ξ±β1x)βL, hence s(cRβ) is in CLβ and the code is cyclic. Similarly for the other codes.
Definition 3.1**.**
A family LβFqmβ[x] of q-linearized polynomials
has the even rank property or is an even rank family if
the quadratic form QRβ(x)=Trqm/qβ(xR(x)) has even rank for any RβL.
Let L be an even rank family of q-linearized polynomials. Then,
QRβ(x)=Trq/pβ(xR(x)) has constant type in the family; that is QRβ(x) is of type 1 or of type β1 for every
RβL.
Therefore, given r a non-negative integer, we can define
[TABLE]
We have K0β={0} and Krβ=Kr,1ββKr,2β for r>0, and we denote their cardinalities by
[TABLE]
Note that M0β=1 and Mrβ=Mr,1β+Mr,2β for r>0.
Finally, we denote the set of ranks in L by
[TABLE]
For any positive integer r, we define the set
[TABLE]
We now restate Lemma 2.1 in [14] in more generality and give a proof for completness. We will need it to calculate the dimensions of the four families of codes considered in this section.
Lemma 3.2**.**
Let m be a positive even integer and let M={1}βͺ[2mβ]qβ. If Ξ± is a primitive element of Fqmβ then we have:
- (a)
Ξ±βu* and Ξ±βv are not conjugated for all distinct elements u,vβM.*
2. (b)
The minimum muββ{1,β¦,m} such that qmuβuβ‘u(modqmβ1) is m for all uβM.
Proof.
For (a) it is enough to show that qs(qβ1β+1)ξ β‘qβ2β+1(modqmβ1) and qsξ β‘qβ+1(modqmβ1) for 1β€sβ€mβ1 and β,β1β,β2β<2mβ with β1βξ =β2β. We will show the first statement. Suppose that there is some sβ{1,β¦,m} such that
qs(qβ1β+1)β‘qβ2β+1(modqmβ1). Then,
[TABLE]
If s+β1β<m then qs+β1β+qs=qβ2β+1 as integers.
The uniqueness of the q-ary expansion of integers implies that s+β1β=β2β and s=0, which cannot happen.
Now, if s+β1β>m then s>2mβ since by hypothesis β1β<2mβ,
and hence there exists a positive integer t<2mβ such that s=mβt. Notice that β1β>t and 0<β1ββt<2mβ, thus
qs+β1β+qsβ‘qβ1ββt+qs(modqmβ1)
and hence
[TABLE]
Since all the powers are less than m, we obtain qβ1ββt+qs=qβ2β+1 as integers,
by unicity of q-ary expansion we obtain that s=β2β and β1ββt=0 which cannot occur.
Therefore, Ξ±βu and Ξ±βv are not conjugated for all uξ =v in [2mβ]qβ.
In a similar way, it can be shown that Ξ±β1 and Ξ±βu are not conjugated for all uβ[2mβ]qβ.
The item (b) can be proved by a similar argument as in (a).
β
We are now in a position to give the weight distribution of the four codes considered. We give the spectra in two theorems.
Theorem 3.3**.**
Let q be a prime power, m a non-negative integer and L=β¨xqβ1β,xqβ2β,β¦,xqβsββ© an ideal in Fqmβ[x] such that 1β€β1β<β2β<β―<βsβ<2mβ. If L is an even rank family then the dimensions of the cyclic codes CLβ and CL,0β are ms and ms+1 respectively and their spectra are given by Tables 1 and 2 below.
Proof.
By definition w(cRβ)=#{xβFqmββ:QRβ(x)ξ =0}, then
[TABLE]
Analogously, w(cR,bβ)=qmβ1β#{xβFqmββ:QRβ(x)=βb}.
Then we have that
[TABLE]
If QRβ has rank r and type Ξ΅Rβ then
[TABLE]
From these facts, using the numbers Mrβ,Mriββ and the set RLβ, we obtain the weights and frequencies given in
Tables 1 and 2, and the result thus follows.
Let us consider the polynomials h(x)=βj=1sβhβjββ(x),where hβjββ(x) are the minimal polynomials of Ξ±β(qβjβ+1) over Fqβ with Ξ± a primitive element of Fqmβ and j=1,β¦,s. By Delsarteβs Theorem, if n=Ξ΄qmβ1β with Ξ΄=gcd(qmβ1,qβ1β+1,β¦,qβsβ+1) then h(x) is the check polynomial of the cyclic code
[TABLE]
where gjβ=Ξ±qβjβ+1 for j=1,β¦,s.
Since the dimension of a cyclic code is given by the degree of its check polynomial, we have
[TABLE]
It is known, by general theory of finite fields, that the degree of the minimal polynomial over Fqβ of an element uβFqβ
is given by the size of its cyclotomic coset, and this size coincides with the minimum 1β€muββ€m such that qmuβuβ‘u(modqmβ1).
By Lemma 3.2, all of the elements in L are not conjugated to each other and deghβjββ(x)=m for j=1,β¦,s. Hence degh(x)=sm and thus dimCLββ=sm.
On the other hand, if R(x)=βj=1sβajβxqβjββL, by linearity of the trace function we have that
[TABLE]
Notice that if n=Ξ΄qmβ1β as before, by modularity we get
[TABLE]
for every 1β€tβ€Ξ΄.
Thus, denoting c=c(a1β,β¦,asβ)βCLβ, by (3.8) we have that
c_{R}=\big{(}\mathbf{c}\,|\cdots|\,\mathbf{c}\big{)} Ξ΄-times.
Hence all the words in CLβ are obtained by Ξ΄-concatenation of the words of the cyclic code CLββ, this implies that the dimension of these codes are the same. Therefore dimCLβ=dimCLββ=sm. The same argument shows that dimCL,0β=sm+1.
β
Theorem 3.4**.**
Let q be a prime power, m a non-negative integer and L=β¨xqβ1β,xqβ2β,β¦,xqβsββ© an ideal in Fqmβ[x] such that 1β€β1β<β2β<β―<βsβ<2mβ.
If L is an even rank family, then
the dimensions of the cyclic codes CL,1β and CL,2β are m(s+1) and m(s+1)+1 respectively and their spectra are given by Tables 3 and 4 below.
Proof.
The dimensions of CL,1β and CL,2β can be obtained in the same way as in Theorem 3.3 using Lemma 3.2.
Now, let RβL and suppose the quadratic form QRβ has rank r and type Ξ΅Rβ.
Letβs see the weights of the words of CL,1β. By the orthogonality property of the characters of Fqβ, we have that
[TABLE]
Therefore
[TABLE]
where SQRββ is the exponential sum (2.4), with b=0.
In the same way, when bξ =0, we get
[TABLE]
Notice that if R=0, then QRβ=0 and, for all Ξ²ξ =0, we have
w(c0β(Ξ²))=qmβqmβ1.
If R and Ξ² are zeros, then
w(c0,bβ(0))=qmβ1 if bξ =0. When b=0 we will denote cRβ(Ξ²)=cR,0β(Ξ²).
Now, let Kr,1β and Kr,2β be as in (3.3). Then, Ξ΅Rβ=(β1)i+1 if RβKr,iβ, i=1,2.
By LemmaΒ 2.2, we have that
[TABLE]
with i=1,2. From this, the result readily follows.
β
Remark 3.5**.**
(i) A code is t-divisible if the weight of every codeword is divisible by t.
Note that from Tables 1β4, the code CLβ is qmβ2rββ1(qβ1)-divisible, the code CL,0β es (qβ1)-divisible if and only if Mr,2β=0 and that CL,1β is qmβ2rββ1-divisible.
(ii) If one perform the sum of the frequencies in each of the Tables 1β4 one checks that the dimensions of the codes are the ones given in Theorems 3.3 and 3.4.
Complete weight enumerator
Suppose that the elements of Fqβ are ordered by Ο0β,Ο1β,β¦,Οqβ1β, where Ο0β=0. The composition of the vector v=(v0β,v1β,β¦,vnβ1β)βFqnβ is defined by
[TABLE]
where each tiβ=tiβ(v)=#{0β€jβ€nβ1:vjβ=Οiβ}.
Clearly, we have that
βi=0qβ1βtiβ=n.
Let C be a linear code of length n over Fqβ and let
[TABLE]
The complete weight enumerator of C is the polynomial
[TABLE]
where Bnβ={(t0β,β¦,tqβ1β):tiββ₯0,t0β+β―+tqβ1β=n}.
Lemma 3.6**.**
Let C be a linear code of length n over Fqβ such that tiβ(c)=tjβ(c) for all i,j>0 and cβC.
Then, if Aββ=#{cβC:w(c)=β}, we have that
[TABLE]
Proof.
Let c=(c0β,β¦,cnβ1β)βC. Since tiβ(c)=tjβ(c) for i,j>0 and βi=0qβ1βtiβ=n, we have that
tiβ=qβ1nβt0ββ. On the other hand, since
w(c)=nβ#{0β€jβ€nβ1:cjβ=0}=nβt0β,
we have that t0β=nβw(c), and thus t1β=qβ1w(c)β
(note that C has to be necessarily (qβ1)-divisible).
Therefore, we have that A(t0β,β¦,tqβ1β)=Aw(c)β if t0β=nβw(c) for some cβC and tiβ=tjβ for all i,j>0,
and A(t0β,β¦,tqβ1β)=0 otherwise.
β
As a direct consequence of the lemma, we obtain the complete weight enumerator of CLβ.
Proposition 3.7**.**
Let q be a prime power, m a non-negative integer and L=β¨xqβ1β,xqβ2β,β¦,xqβsββ© an ideal in Fqmβ[x] such that 1β€β1β<β2β<β―<βsβ<2mβ. If L is an even rank family then the complete weight enumerator of CLβ is given by
[TABLE]
where Mr,iβ and RLβ are as in (3.4) and (3.5) and
[TABLE]
4. The codes associated to xqβ+1
Here, we consider the codes CLβ, CL,0β, CL,1β and CL,2β from the previous section but in the particular case of L=β¨xqββ©, that we denote by Cββ, Cβ,0β,
Cβ,1β and Cβ,2β.
We will compute the spectra of these codes using Theorems 3.3 and 3.4 and Tables 1β4, but we explicitly compute the rank distribution in L and their associated numbers Mr,iβ.
The codes Cββ and Cβ,0β
Consider the irreducible cyclic code Cββ and the code Cβ,0β over Fqβ,
with check polynomial hββ(x) and hββ(x)(xβ1), respectively, where hββ is the minimal polynomial of
Ξ±β(qβ+1), with Ξ± a primitive element.
By Delsarteβs Theorem these codes can be described by
[TABLE]
Note that c0β(Ξ³)=c(Ξ³) and that CβββCβ,0β.
Now we give the parameters and the spectra of these codes.
Theorem 4.1**.**
Let q be a prime power and m,β positive integers such that β<2mβ and mββ=(m,β)mβ is even.
Then, Cββ is a [n,m,d]qβ-code with n=Dqmβ1β and d=D1βq2mββ1(qβ1)dβ² where D=q(m,β)+1 and
[TABLE]
On the other hand, Cβ,0β is a [n,m+1,d^]qβ-code with
d^=D1β(qmβ1(qβ1)βdΛ) and
[TABLE]
The weight distributions of Cββ and Cβ,0β are given by Tables 5 and 6 below.
Proof.
Let us begin by computing the length n of these codes.
Since mββ is even, by LemmaΒ 2.5 we have that n=q(m,β)+1qmβ1β. Thus q(m,β)+1β£qmβ1 and by
LemmaΒ 2.6 we have n=M or n=M1β=M2β in even or odd characteristic respectively,
where M, M1β and M2β are the cardinalities of the sets Sq,mβ(β), Xq,mβ(β) and Yq,mβ(β) defined in
(2.7) and (2.8).
Notice that in this case qmβ1βM=nq(m,β) in even characteristic and qmβ1βM1β=qmβ1βM2β=nq(m,β) in odd characteristic.
Let Lββ=β¨xqββ©, then
[TABLE]
Thus QRβ(x)=Trqm/qβ(Ξ³xqβ+1)=QΞ³,ββ(x).
Notice that the codes CLβββ and CLββ,0β as in (3.1), are obtained
from (qmβ1,qβ+1)-copies of the codes Cββ and Cβ,0β in (4.1), respectively.
In terms of weights, this mean that
[TABLE]
By Theorems 2.3 and 2.4, Lββ is an even rank family.
Furthermore, RLβββ={0,m,mβ2(m,β)}. If q is even, by Theorem 2.3 we have that
[TABLE]
Similarly, if q is odd, Theorem 2.4 implies that
[TABLE]
Now, by Theorem 3.3, we obtain the weights and frequencies given in Tables 5 and 6.
Finally, by studying the values in the tables, we get the minimal distances for both codes.
β
Corollary 4.2**.**
Under the same hypothesis as before, the complete weight enumerator of Cββ is
[TABLE]
where
[TABLE]
Example 4.3**.**
Let q=2, m=8 and β=1. By Theorems 3.3 and 3.4 the codes Cββ and Cβ,0β have paremeters [85,8,40] and [85,9,37] respectively, with weight enumerators given by
[TABLE]
The codes Cβ,1β and Cβ,2β
Consider the codes Cβ,1β and Cβ,2β over Fqβ,
with check polynomials hββ(x)h1β(x) and hββ(x)h1β(x)(xβ1), respectively. Here, hββ and h1β(x) are the minimal polynomials of Ξ±β(qβ+1) and Ξ±β1 respectively, where Ξ± is a primitive element of Fqmβ.
By Delsarteβs Theorem, these codes are given by
[TABLE]
As before, for m,β positive integers such that m/(m,β) even we denote
n=q(m,β)+1qmβ1β.
We now give the parameters and the spectra of these codes.
Theorem 4.4**.**
Let q be a prime power and m,β positive integers such that mββ is even.
Then, Cβ,1β is a [N,2m,d]qβ-code with N=qmβ1 and d=qmβ1(qβ1)βdβ² with
[TABLE]
and Cβ,2β is a [N,2m+1,dβ1]qβ-code. The weight distributions of the codes
Cβ,1β and Cβ,2β are given by Tables 7 and 8 below.
Proof.
Note that Cβ,1β=CLββ,1β and Cβ,2β=CLββ,2β with
Lββ=β¨xqββ© where CLββ,1β,CLββ,2β are the codes defined in (3.2). Then, by Theorem 3.4, it is enough to compute the numbers Mr,1β, Mr,2β and the set
RLβββ. They have been calculated in the proof of the Theorem 4.1. Therefore, the Tables 7 and 8 give us the spectra of the codes Cβ,1β and Cβ,2β as we wanted.
β
Example 4.5**.**
Let q=2, m=8 and β=1 as in Example 4.3. By Theorem 4.4, the codes Cβ,1β and Cβ,2β have paremeters [255,16,112] and [255,17,111], respectively. Also, we have
[TABLE]
Remark 4.6**.**
(i) From Tables 5β8 we see that Cββ is a 2-weight code, Cβ,0β and Cβ,1β are
5-weight codes and Cβ,2β is an 11-weight code.
Also, one checks that Cββ is q2mββ1(qβ1)-divisible and Cβ,1β is q2mββ1-divisible.
These facts are in accordance with Klapperβs Theorems 2.3 and 2.4 and RemarkΒ 3.5.
(ii) In the binary case (i.e. q=2), the codes CL,0β and CL,2β have symmetric spectrum, that is Aiβ=Anβiβ for every i, since the word 11β―11 is in these codes (there is a weight w=n).
Remark 4.7**.**
It can be shown, via Pless power moments, that if q=2 and (m,β)=1 the dual code of Cβ,1β is optimal in the sense that its minimal distance is maximum in the class of cyclic codes with generator polynomial mΞ±β(x)mΞ±tβ(x) over
F2β. This condition of optimality is equivalent to the function f(x)=xt defined over F2mβ
being an APN function (see [1]). In our case, fββ(x)=x2β+1 with (m,β)=1, is a well-known APN function, namely the KasamiβGold function.
5. Codes associated to Lβ,3ββ
In this section we consider the codes CLβ, CL,0β, CL,1β and CL,2β associated to the family of
p-linearized polynomials
[TABLE]
where p is an odd prime and mββ=m/(m,β) even. The next theorem summarizes, in our notation, the results proved in
[13].
Theorem 5.1** ([13]).**
Let p be an odd prime and let m,β be non-negative integers such that mββ=m/(m,β) is even with m>6β and
denote Ξ΄=(m,β).
Then, Lβ,3ββ is an even rank family with
RLβ,3βββ={m,mβ2Ξ΄,mβ4Ξ΄,mβ6Ξ΄} (see (3.5)).
Moreover, the numbers Mr,iβ, as defined in (3.4),
have the following expressions:
- (a)
If 21βmββ is odd, then Mm,1β=Mmβ2Ξ΄,2β=Mmβ4Ξ΄,1β=Mmβ6Ξ΄,2β=0 and
[TABLE]
2. (b)
If 21βmββ is even, then Mm,2β=Mmβ2Ξ΄,1β=Mmβ4Ξ΄,2β=Mmβ6Ξ΄,1β=0 and
[TABLE]
In [13], the distribution of ranks and types given in the previous theorem was used to calculate the spectra of the codes
CLβ and CL,1β with L=Lβ,3ββ.
Fortunately, this information is enough to calculate the spectra of CL,0β and CL,2β also,
which follows directly from Theorems 3.3, 3.4 and 5.1.
Theorem 5.2**.**
Let p be an odd prime and let m,β be positive integers such that mββ=m/(m,β) is even with m>6β.
Then, CLβ,3ββ,0β is a [n,2m+1,d]pβ-code with n=pmβ1 and d=pmβ1(pβ1)βdβ² where
[TABLE]
*and CLβ,3ββ,2β is a [n,3m+1,d^]pβ-code with d^=d if 21βmββ is even and
d^=dβ1 if 21βmββ is odd.
The weight distributions of the codes CLβ,3ββ,0β and CLβ,3ββ,2β
are given by Tables 9 and 10 below.
*
We set these notations for the next two tables:
[TABLE]
Remark 5.3**.**
The weight distributions of CLβ,3βββ and CLβ,3ββ,1β
are determined by those of CLβ,3ββ,0β and CLβ,3ββ,2β, respectively.
More precisely, the weight distribution of CLβ,3βββ is given by the first 5 rows of Table 9, and the spectrum of CLβ,3ββ,1β is given by the first 10 rows of Table 10. Therefore, CLβ,3βββ is a
4-weight code, CLβ,3ββ,0β and CLβ,3ββ,1β are 9-weight codes and
CLβ,3ββ,2β is a 19-weight code.
As a direct consequence of Proposition 3.7 we obtain the following.
Corollary 5.4**.**
Under the hypothesis of Theorem 5.2, the complete weight enumerator of CLβ,3βββ is given by
[TABLE]
where, for each i=0,β¦,3, the numbers Fiβ are given in (5.1) and
[TABLE]
Proof.
By the previous remark, the weight enumerator of C is
WCβ(x)=1+βi=03βRiβxciβ where
[TABLE]
Thus, by Proposition 3.7, we have
WCβ(z0β,z1β,β¦,zpβ1β)=z0pmβ1β+βi=03βFiβz0aiββz1biβββ―zpβ1biββ,
where aiβ=pmβ1βciβ and
biβ=pβ1ciββ.
From these identities and (5.2) we get the desired expressions for aiβ and biβ, and thus the result follows.
β
6. Optimal curves
Fix q=pm with p prime. In this section we will consider Artin-Schreier curves of the form
[TABLE]
where R(x) is any p-linearized polynomial over Fqβ and Ξ²βFqβ.
A good treatment of Artin-Schreier curves can be found in Chapter 3 by GΓΌneri-Γzbudak in [6].
They are associated to the codes CL,ββ studied in Sections 3β5 which are defined by quadratic forms
QRβ(x)=Trpm/pβ(xR(x)), or similar ones, of Section 2.
Given a family L of p-linearized polynomials, we define the family
[TABLE]
of curves CR,Ξ²β as in (6.1).
We begin by showing necessary and sufficient conditions for the family L
to contain optimal curves (maximal or minimal); that is, curves attaining equality in the Hasse-Weil bound (see Theorem 5.2.3 in [11])
[TABLE]
Proposition 6.1**.**
Assume L is an even rank family of p-linearized polynomials over Fpmβ.
Let RβL and let r be the rank of the quadratic form QRβ(x)=Trpm/pβ(xR(x)) and v=vpβ(degR) be the p-adic value of degR.
Then, the family ΞLβ in (6.2) contains optimal curves, both maximal and minimal, if and only if there is some
RβL with
[TABLE]
In this case we have:
- (i)
If p is odd, the curve CR,Ξ²ββΞLβ is maximal (resp. minimal) if and only if
the codeword cRβ(Ξ²)=(Trpm/pβ(xR(x)+Ξ²x))xβFpmβββ in CL,1β
has weight w(cRβ(Ξ²))=w2,1β (resp. w2,2β) as in Table 3.
2. (ii)
If p=2, the curve CR,Ξ²ββΞLβ is maximal (resp. minimal) if and only if either
w(cRβ(Ξ²))=w2,1β (resp. w2,2β) or else w(cRβ(Ξ²))=w3,2β (resp. w3,1β) as in Table 3.
Proof.
Consider the cyclic code
CL,1β={cRβ(Ξ²)=(Trpm/pβ(xR(x)+Ξ²x))xβFpmβββ:RβL,Ξ²βFpmβ}
as in (3.2).
The weight of the codeword cRβ(Ξ²) is related to the number of Fpmβ-rational points of the
curve CR,Ξ²β given in (6.1).
In fact, by Hilbertβs Theorem 90 we have
[TABLE]
Since CR,Ξ²β is a p-covering of P1, considering the point at infinity, we get
[TABLE]
where the values of w(cRβ(Ξ²)) are given in Table 3 with q=p.
On the other hand, as an application of the Riemann-Hurwitz formula, the curve ypβy=f(x) with f(x)βFqβ[x], has genus
g=21β(pβ1)(degf) since the degree of f is coprime with p (see Example 2.4 in [6]). Hence,
CR,Ξ²β has genus
[TABLE]
since (degxR(x)+Ξ²x,p)=(pv+1,p)=1, for Rξ =0. By the Hasse-Weil bound for curves we have that
[TABLE]
To find maximal or minimal curves we need to ensure equality in the
above inequalities; that is, by (6.3) and (6.4) we want that
[TABLE]
where the sign + (resp. β) corresponds to a maximal (resp. minimal) curve.
Looking at Table 3 with q=p, we check that this could only happen if and only if
v=2mβrβ and the weight w(cRβ(Ξ²)) is w2,1β (resp. w2,2β) for a maximal (resp. minimal) curve.
Because of the presence of the factors pβ1 in the weights, additional curves appear in the case p=2.
They correspond to w(cRβ(Ξ²))=w3,2β (resp. w3,1β) for a maximal (resp. minimal) curve.
Since the type of the quadratic form is fixed, only one of the two kind of maximal (or minimal) curves can appear if p=2.
β
Next, as an application of the spectra of cyclic codes, for a fixed number β we consider the Artin-Schreier curves
[TABLE]
related to the codes Cβ,1β and C{β,3β},1β of Section 4 and 5, respectively; and we will show
that the families {CΞ³,Ξ²β}
and {CΞ³1β,Ξ³2β,Ξ²β}
contain several maximal and minimal curves.
We begin by computing the Fpmβ-rational points of the curves in the first family {CΞ³,Ξ²β}.
Proposition 6.2**.**
Let m and β be positive integers such that mββ is even and let p a prime number. Consider the curve
CΞ³,Ξ²β as in (6.5)
with Ξ³βFpmββ and Ξ²βFpmβ.
Fix Ξ³=Ξ±t and put Ξ΅ββ=(β1)21βmββ. Then, we have:
- (a)
If p>2, with 21βmββ even and tβ‘0(modp(m,β)+1), then
[TABLE]
2. (b)
If p>2, with 21βmββ even and tξ β‘0(modp(m,β)+1), then
[TABLE]
3. (c)
If p>2, with 21βmββ odd and tβ‘2p(m,β)+1β(modp(m,β)+1), then
[TABLE]
4. (d)
If p>2, with 21βmββ odd and tξ β‘2p(m,β)+1β(modp(m,β)+1), then
[TABLE]
5. (e)
If p=2 and Ξ³βS2,mβ(β)={x2β+1:xβF2mββ} then
[TABLE]
6. (f)
If p=2 and Ξ³ξ βS2,mβ(β) then
[TABLE]
Proof.
Consider the cyclic code
Cβ,1β={cΞ³,Ξ²β=(Trpm/pβ(Ξ³xpβ+1+Ξ²x))xβFpmβββ:Ξ³,Ξ²βFpmβ}.
By the same argument as in the previous proof, we have that
[TABLE]
Thus, the number of rational points of CΞ³,Ξ²β are obtained from TablesΒ 5β8, by using Theorems 2.3 and
2.4, by straightforward calculations.
β
We now show the existence of optimal curves in the family {CΞ³,Ξ²β}. We will use Proposition 6.1 to prove the existence of optimal curves and Proposition 6.2 to count the number of them.
Theorem 6.3**.**
Let p be a prime number. Let m and β non-negative integers with ββ£m such that mββ=βmβ is even and
Ξ³=Ξ±tβFpmβ. Then, we have the following:
- (a)
Let p be odd. Then, the curve CΞ³,Ξ²β as in (6.5) is
(i) minimal if 21βmββ is even and tβ‘0(modpβ+1),
for pmβ2ββ1β(pβ1)p2mββββ1 elements Ξ²,
(ii) maximal if 21βmββ is odd and tβ‘2pβ+1β(modpβ+1),
for pmβ2ββ1+(pβ1)p2mββββ1 elements Ξ².
2. (b)
Let p=2 and Ξ³βS2,mβ(β)={x2β+1:xβF2mββ}. Then,
(i) there are 2mβ2ββ1β22mββββ1 elements Ξ² such that CΞ³,Ξ²β is minimal and
(ii) there are 2mβ2ββ1+22mββββ1 elements Ξ² such that CΞ³,Ξ²β is maximal.
Proof.
Consider the family L=β¨xpββ© of p-linearized polynomials over Fpmβ, with p prime.
By Klapperβs Theorems 2.3 and 2.4, L is an even rank family. Thus, the family of curves ΞLβ in
(6.1) is in fact the family {CΞ³,Ξ²β} in (6.5).
Now, applying Proposition 6.1, by using Tables 3 and 7 and Theorems
2.3 and 2.4, we get the existence part of the statement.
Finally, invoking PropositionΒ 6.2 we get the number of such optimal curves.
β
Example 6.4**.**
Suppose that p=2, m=4 and β=1. Consider the curve
[TABLE]
which is in particular an elliptic curve. Suppose that Ξ³βS2,4β(1). Then, by Theorem 6.3,
CΞ³,Ξ²β is minimal for only one element Ξ² and it is maximal for 3 elements Ξ².
If Ξ³=z3 for some zβF16ββ then, by the affine change of variable u=zx,
the curve CΞ³,Ξ²β turns out to be isomorphic to the curve
C1,Ξ»β:y2+y=u3+Ξ»u, where Ξ»=Ξ²zβ1.
This curve is minimal (9 rational points) only for Ξ»=0 and it is
maximal (25 rational points) for Ξ»=1,Ξ±5 and Ξ±10. That is,
[TABLE]
is a minimal elliptic curve and
[TABLE]
are maximal elliptic curves over F16β.
We now show that the family {CΞ³1β,Ξ³2β,Ξ²β} contains optimal curves.
Proposition 6.5**.**
Let p be an odd prime and let m, β be non-negative integers such that ββ£m, mββ=βmβ is even
and m>6β.
If 21βmββ is odd (resp. even), the Artin-Schreier curve CΞ³1β,Ξ³2β,Ξ²β as in (6.5) is
maximal (resp. minimal) for
some Ξ³1β,Ξ³2ββFpmββ and Ξ²βFpmβ.
Proof.
The family L=β¨xpβ,x3ββ© of p-linearized polynomials over Fpmβ has the even rank property, by Theorem 5.1.
By Table 10 and Theorem 5.2, we have that if 21βmββ is odd (resp. even) then there exists
RβL with degR=p3β and QRβ of rank r=mβ6β and type 1 (resp. 3).
Thus, we have that v=2mβrβ=3β, where v=vpβ(degR), and the result follows directly from Proposition 6.1.
β
Example 6.6**.**
Take p an odd prime, β=1 and m>6 even.
Then, the Artin-Schreier curve
ypβy=Ξ³1βxp3+1+Ξ³2βxp+1+Ξ²x is maximal in Fp4kβ and minimal in Fp4k+2β for any
kβ₯2, for at least one Ξ³1β,Ξ³2ββFpmββ and Ξ²βFpmβ,
where Fpmβ stands for Fp4kβ or Fp4k+2β depending on the case. For instance,
[TABLE]
is maximal in F38β=F6561β and minimal in F310β=F59049β for at least one Ξ³1β,Ξ³2β,Ξ² in the corresponding field. Similarly,
[TABLE]
is maximal in F58β=F390625β and minimal in F510β=F9765625β
for some elements Ξ³1β,Ξ³2β,Ξ² in the ground field.