We study structural properties of polynomial ideal (PI) codes and additive Reed–Solomon (aRS) codes in the folded Hamming metric (equivalently, the Hamming metric over a larger alphabet). We first determine the maximum possible length of PI codes, prove that the dual of every PI code is a generalized PI code, and deduce that PI codes are dually QMDS together with an explicit formula for their weight distribution. We then show that PI codes defined by irreducible polynomials correspond to aRS codes with pairwise nonconjugate evaluation points. For these aRS codes, the previous results on PI codes apply (duality, QMDS property and weight distribution). We show that, asymptotically, aRS codes with nonconjugate evaluation points achieve the same length as PI codes. We also compute the permutation group of such aRS codes. We also extend the family of PI codes to consider arbitrary polynomial modules (not necessarily pairwise coprime), and study when these and general aRS codes satisfy the QMDS and dually QMDS properties.
Codes in the folded Hamming metric may be viewed equivalently as codes endowed with the ordinary Hamming metric over an extension alphabet, while retaining linearity only over a prescribed subfield. This point of view includes additive codes and provides a natural framework in which the dimension over the base field need not be a multiple of the alphabet extension degree. In [12] we developed the basic theory of such codes and introduced quasi-MDS (QMDS) codes, which lie in between MDS and almost MDS codes [7] (their dimensions are larger than those of almost MDS codes for a given minimum distance, see [12, Remark 10]). Since we showed in [12] that the dual of a QMDS code need not be QMDS, we also introduced the concept of dually QMDS codes (i.e., codes that themselves and their duals are both QMDS).
Independently, QMDS codes were introduced in [1] under the name fractional MDS codes, and in [18] under the name additive MDS codes.
Constructions of QMDS codes and dually QMDS codes can be found in [1, 2, 12, 14, 18]. Upper bounds on their lengths (relative to their base field sizes) have been given in [1, 13].
Polynomial ideal (PI) codes were introduced in [3] in connection with capacity-achieving list decoding. They generalize several well known families of codes such as classical Reed–Solomon codes [15], folded Reed–Solomon codes [8], multiplicity codes [17] and, as we will show here, additive Reed–Solomon codes [18].
Their definition is particularly well adapted to the folded Hamming metric: their codewords are formed by the residues of polynomials of restricted degree modulo several pairwise coprime polynomials of a common degree. In fact, they are always QMDS [12, Th. 2]. Despite this simple description, several of their structural properties remain unknown, including their largest possible length, computing their duals in general, proving whether they are always dually QMDS and computing their weight distribution. In this work, we fully describe all of these properties of PI codes. We also introduce the class of polynomial residue (PR) codes, which extend PI codes to arbitrary polynomial modules (not necessarily pairwise coprime) and study when they are QMDS and/or dually QMDS.
Additive Reed–Solomon (aRS) codes, introduced in [18], arise from evaluating polynomials over Fq at points of an extension field Fqr. They are therefore Fq-linear but need not be linear over their alphabet, Fqr. We will show that there is a large intersection between both families of codes: when the evaluation points belong to pairwise distinct Frobenius conjugacy classes of degree r, aRS codes are linearly isometric (i.e., equivalent) to PI codes with irreducible defining polynomials. In particular, all of the properties that we study for PI codes directly apply to this subfamily of aRS codes. Regarding aRS codes with pairwise nonconjugate evaluation points, we will also give an explicit formula for their duals, show that they asymptotically achieve the maximum possible length of PI codes and compute their permutation group. Finally, we study when general aRS codes are QMDS and dually QMDS in the cases when they are not equivalent to PI codes.
The organization of the manuscript is as follows. In Section 2, we provide some preliminaries on the folded Hamming metric and QMDS codes; in Section 3, we study PI codes (their maximum length in Subsection 3.1, their duals and weight distribution in 3.2, and when they are QMDS and/or dually QMDS when the polynomial modules are not necessarily coprime in Subsection 3.3); and in Section 4, we study aRS codes (the equivalence between the classical Hamming and folded Hamming metrics in Subsection 4.1, the intersection between PI and aRS codes in Subsection 4.2, their permutation group in Subsection 4.3 and aRS codes that are not PI codes in Subsection 4.4).
2 Preliminaries
Throughout the manuscript, for integers n≥1 and a≤b we write [a,b]={a,a+1,…,b} and [n]=[1,n]. We denote by Sn the symmetric group on [n]. We regard Fqnr as n blocks of length r over Fq. The folded Hamming metric is precisely the Hamming metric on these n blocks, so each block may be viewed either as a symbol of the alphabet Fqr or, after choosing an Fq-basis, as a symbol of Fqr (see also Subsection 4.1). We recall only the definitions needed below and refer to [12] for further background.
Definition 1. For c=(c1,…,cn)∈Fqnr, where ci∈Fqr for i∈[n], its folded Hamming weight is defined as wF(c)=∣{i∈[n]:ci=0}∣. We define the folded Hamming distance between c,d∈Fqnr as dF(c,d)=wF(c−d). In general, a code is a subset C⊆Fqnr. We define the minimum folded Hamming distance of C as d(C)=min{dF(c,d):c,d∈C,c=d}. For the zero code, we adopt the convention d({0})=n+1.
If C⊆Fqrn is a nonzero Fq-linear code, then
d(C)=min{wF(c):c∈C∖{0}}.
Definition 2. We say that C is a code of type [n,r,k,d] when C⊆Fqnr is Fq-linear, k=dimFq(C) and d=d(C).
Later, we will consider weight distributions.
Definition 3. The (folded) weight distribution of a linear code C⊆Fqnr is defined as the numbers Wj(C)=∣{c∈C:wF(c)=j}∣, for j∈[0,n].
We will also need the concept of isometry and equivalence.
Definition 4. Two Fq-linear codes C,D⊆Fqnr are equivalent if there exists an Fq-linear folded-Hamming isometry ϕ:Fqnr→Fqnr (i.e., wF(ϕ(c))=wF(c), for all c∈Fqnr) such that ϕ(C)=D.
The linear isometries of the folded Hamming metric are exactly the coordinate permutations followed by invertible Fq-linear transformations inside each block. The following result is a particular case of [11, Th. 2]. See also [12, Prop. 5].
Proposition 5 ([11]). Let ϕ:Fqnr⟶Fqnr be an Fq-linear vector space isomorphism. Then wF(ϕ(c))=wF(c) for all c∈Fqnr if and only if there exist invertible matrices A1,…,An∈GLr(Fq) and a permutation σ∈Sn such that
ϕ(c1,…,cn)=(cσ(1)A1,…,cσ(n)An),
for all c1,…,cn∈Fqr.
Although the folded Hamming metric may be viewed as the ordinary Hamming metric over the alphabet Fqr, throughout the paper duality is taken with respect to the Fq-vector-space structure of Fqnr, since the codes we study are only Fq-linear.
Definition 6. We define the inner product between c,d∈Fqnr as c⋅d=c1d1+⋯+crndrn, where c=(c1,…,crn) and d=(d1,…,drn). Given an Fq-linear code C⊆Fqnr, we define its dual as
C⊥={d∈Fqnr:c⋅d=0,forallc∈C}.
We will use the following three forms of the Singleton bound. The first is the usual Singleton inequality written over the block alphabet, whereas the other two are the corresponding integral relaxations adapted to an Fq-dimension k that need not be divisible by r.
Proposition 7 ([12]). Let C be a code of type [n,r,k,d] and let C⊥ be its dual, of type [n,r,rn−k,d⊥]. Then
k≤r(n−d+1),
d≤n−⌈rk⌉+1=n−⌊rk−1⌋, and
d⊥≤⌊rk⌋+1=⌈rk+1⌉.
As usual, the code is MDS if it attains the bound in Item 1. If r∣k (necessary for the code to be MDS), then Items 1 and 2 coincide. However, when r∤k, the second bound may be attained but the first one cannot. This motivates the following definition, which slightly extends the usual MDS terminology, since we measure dimension over the subfield Fq rather than over Fqr, which is the usual alphabet.
Definition 8 ([12]). We say that a code of type [n,r,k,d] is quasi-MDS or QMDS if d=n−⌈k/r⌉+1=n−⌊(k−1)/r⌋. A linear code is dually QMDS if both the code and its dual are QMDS. A QMDS code such that r∣k is an MDS code.
In [12, Ex. 12] it is shown that the dual of a QMDS code is not necessarily also QMDS, which motivates the dually QMDS definition. As shown in [12, Remark 10], QMDS codes lie in between MDS and almost MDS codes [7] in terms of their size (or dimension over Fq) relative to their minimum distance. It was also shown in [12, Th. 4] that the weight distribution of dually QMDS codes only depends on its parameters n,r,k,d, but this is not the case for other QMDS codes.
3 Polynomial ideal codes
Polynomial ideal (PI) codes, introduced in [3], are a general family of Fq-linear codes in Fqnr that recover as particular cases classical Reed–Solomon codes [15] and efficient list-decodable codes such as folded Reed–Solomon codes [8] and multiplicity codes [17]. In this section, we study their maximum possible length, explicitly compute their duals, prove that they are dually QMDS and give their weight distribution. Finally, we extend this code family by considering arbitrary P1,…,Pn and study when they are QMDS and/or dually QMDS.
From this section on, we indistinctively write polynomials either as P(X) or simply as P.
Definition 9. Let P1,…,Pn∈Fq[X] be polynomials of degree r. For each i∈[n], we identify the quotient Fq[X]/(Pi) with Fqr through the ordered basis (1,X,…,Xr−1) and define
φi:Fq[X]⟶Fq1×r
as the map that sends P(x) to its coordinate vector modulo Pi(X). In other words,
φi(P)=(φi,0(P),…,φi,r−1(P))∈Fqr,
where P≡φi,0(P)+⋯+φi,r−1(P)Xr−1modPi(X). Finally, define
φ:Fq[X]⟶Fqnr,whereφ(P)=(φ1(P),…,φn(P)),
for P∈Fq[X].
Definition 10 (Polynomial ideal codes [3]). Let P1,…,Pn∈Fq[X] be pairwise coprime polynomials of degree r. For k∈[0,nr], we define the polynomial ideal (PI) code
PIk(P1,…,Pn)={φ(P):P∈Fq[X],deg(P)<k}⊆Fqnr.
(By convention, P = 0 is the only polynomial of degree < 0.)
Their generalization was introduced in [16].
Definition 11 ([16]). Let P1,…,Pn∈Fq[X] be pairwise coprime polynomials of degree r. Given k∈[0,nr] and A1,…,An∈GLr(Fq), we define the generalized polynomial ideal (GPI) code
Thus, GPI codes are precisely those linear codes that are equivalent to PI codes. In [12, Th. 2], we showed that GPI codes are QMDS.
Proposition 12 ([12]). Let P1,…,Pn∈Fq[X] be pairwise coprime polynomials of degree r and let A1,…,An∈GLr(Fq). For k∈[0,nr], the code GPIk(P1,…,Pn;A1,…,An) from Definition 11 is QMDS of type [n,r,k,d].
To the best of our knowledge, it was not previously known whether PI codes are dually QMDS (except for particular cases such as multiplicity codes [12, Cor. 31]). In the following sections we will see this and other structural properties of PI codes.
3.1 Maximum length of PI codes
Since a PI code is specified by a set of pairwise coprime degree-r polynomials, its maximum length is the maximum cardinality of such a set. We first estimate the number of monic irreducible polynomials of each degree, which will be the basic input for the exact counting argument.
Definition 13. Let μ:N→Z be the Möbius function:
μ(d)=⎩⎨⎧1(−1)k0ifd=1,ifdis the product ofkdifferent primes,ifdis divisible by the square of a prime.
The following result is [10, Th. 3.25].
Theorem 1. The number of monic irreducible polynomials in Fq[X] of degree r is
Proof. Given r=p1e1⋯pnen, where p1<…<pn are primes and e1,…,en are positive integers, if n=1, then Nq(r)=r1(qr−qr/p1) and the desired lower bound follows immediately. Hence, assume that n≥2. We can rewrite the formula for Nq(r) as a sum of powers arranged in descending order:
where pi is the largest prime such that pi<p1p2. By definition of μ(d), each exponent appearing in the sum is associated with a squarefree divisor of r, and hence no exponent is repeated. Also qr>∑i=0r−1qj, thus the term with power p1p2r is greater than all the following terms of the sum combined. This yields:
Nq(r)≥r1(qr−qp1r−qp2r−⋯−qpir).
Now, if r is not divisible by 2, then 2<p1 and q2r>∑j=0⌊2r⌋−1qj, thus:
We note that the previous inequality also holds when pi=2. Analogously, when r is divisible by 2 and 3 but not divisible by 5 we can deduce that Nq(r)≥r1(qr−q2r−q3r−q5r). Now, when r is divisible by 2, 3 and 5 we see that p1p2=6 and pi=5 and we conclude similarly that Nq(r)≥r1(qr−q2r−q3r−q5r). For the upper bound we see that rNq(r)−qr is a negative number divisible by q, hence
Nq(r)≤rqr−q.
The preceding estimates immediately give the asymptotic behaviour of Nq(r).
Corollary 15. For fixed q and r, respectively,
r→∞limqr/rNq(r)=1andq→∞limqr/rNq(r)=1.
We next show the monotonicity of Nq(r) in r, which will be used to maximize the number of pairwise coprime degree-r polynomials.
Theorem 2. For all q≥2 we have that Nq(r−1)<Nq(r), except the cases N2(1)>N2(2) and N3(1)=N3(2).
Proof. We assume r≥4, since the other cases can be checked directly. By the bounds from Proposition 14, it is enough to prove that
(r−1)(qr−qr/2−qr/3−qr/5)−r(qr−1−q)>0.
Let us assume that q≥2 and r≥6. This implies that r−2>2r thus qr,qr−1,qr−2,qr/2,qr/3 and qr/5 are all different powers. Using that qr−1=(q−1)∑i=0r−1qi, if r−1>q we see that:
The first equality holds thanks to r−2>2r ensuring that the fractional powers do not annihilate qr−2. The second equality is obtained factoring qr−1. For the third inequality we use that r−2>2r once again. Finally, it is easy to check the case q=r−1 using a similar reasoning and we can simply compute the cases r=3,4 and 5.
We can now express the maximum length of PI codes in terms of the numbers Nq(r). Recall from Definition 10 that the maximum length n of the PI code PIk(P1,…,Pn) in Fqnr is n=Mq(r), the maximum possible size of a set {P1,P2,…,Pn} of pairwise coprime degree- r polynomials in Fq[X].
Theorem 3. For r>3, the maximum cardinality Mq(r) of a set of pairwise coprime polynomials of degree r in Fq[X] is
Mq(r)=Nq(1)+Nq(2)+⋯+Nq(⌊2r⌋)+Nq(r).
Proof. Let F be a family of pairwise coprime degree-r polynomials in Fq[X]. The irreducible members of F contribute at most Nq(r) elements. Every reducible polynomial of degree r has an irreducible factor of degree at most ⌊r/2⌋. Since the members of F are pairwise coprime, distinct reducible members must contain distinct such irreducible factors. Consequently,
∣F∣≤Nq(r)+i=1∑⌊r/2⌋Nq(i).
It remains to attain this bound. Include first all monic irreducible polynomials of degree r. For each 1≤i<r/2, pair every monic irreducible polynomial Q of degree i with a distinct monic irreducible polynomial RQ of degree r−i, and include the product QRQ. Such a choice is possible because Nq(r−i)≥Nq(i) for r>3, by Theorem 2. The sets of complementary factors RQ used for different i=deg(Q) have different degrees and are therefore disjoint. If r is even, for each irreducible Q of degree r/2 include Q2. The resulting degree- r polynomials are pairwise coprime and are also coprime to all irreducible polynomials of degree r. Hence the upper bound is attained.
As expected, Mq(r) (i.e., the maximum length of PI codes) is also strictly increasing in r.
Corollary 16. For all q≥2 and all r≥2 we have that Mq(r−1)<Mq(r).
Proof. First, we see that Mq(1)=Nq(1)<Mq(2)=Nq(1)+Nq(2)<Mq(3)=Nq(1)+Nq(3). Now, for r≥4, thanks to Theorem 3 and Theorem 2 we see that, if r is odd,
Mq(r)−Mq(r−1)=Nq(r)−Nq(r−1)>0,
whereas, if r is even,
Mq(r)−Mq(r−1)=Nq(2r)+Nq(r)−Nq(r−1)>0.
The previous results also give an asymptotic estimate for the maximum length of PI codes.
Corollary 17. For fixed q≥2 and r≥4, respectively,
r→∞limqr/rMq(r)=1andq→∞limqr/rMq(r)=1.
Proof. Defining t=⌊r/2⌋, since Nq(i)≤qi, we have that
Nq(r)≤Mq(r)=Nq(r)+i=1∑tNq(i)≤Nq(r)+tqt.
Dividing by qr/r, we obtain
qr/rNq(r)≤qr/rMq(r)≤qr/rNq(r)+rtqt−r,
and the result follows by the Sandwhich criterion and Corollary 15.
3.2 Duality and weight distribution of PI codes
We now compute the dual of a general polynomial ideal code with respect to the standard inner product of Fqnr. In [16], the dual is computed using matrices over the algebraic closure of Fq. Our result shows that all block matrices may be chosen over Fq itself. In other words, we compute the dual over Fq and not only over its algebraic closure. Throughout this subsection, unless stated otherwise, P1,…,Pn∈Fq[X] are pairwise coprime polynomials of degree r.
Definition 18. Given P=a0+⋯+arXr∈Fq[X] such that ar=0 we say that the following matrix M∈Fqr×r is the companion matrix of P:
Lemma 19. Let Mi∈Fqr×r be the companion matrix of Pi∈Fq[X] with deg(Pi)=r. Then, given F∈Fq[X] with deg(F)<r, we have that φi(XF(X))=φi(F(X))Mi. In other words, the coordinates of φi(F)Mi∈Fqr correspond to the coefficients of XF(X)modPi.
Proof. Let Pi=a0+⋯+arXr∈Fq[X] and F=f0+⋯+fr−1Xr−1∈Fq[X]. We see that each row j∈[r] of the companion matrix Mi is the vector whose coordinates are the coefficients of XXj−1=XjmodPi because arXr≡−a0−⋯−ar−1Xr−1modPi. We conclude by linearity of φi.
The following lemma is the blockwise analogue of Lagrange interpolation, with congruence classes modulo the Pi replacing evaluations at field elements.
Lemma 20. There exist unique polynomials Sij(X)∈Fq[X], for i∈[n] and j∈[0,r−1], with deg(Sij)<nr such that every H(X)∈Fq[X] with deg(H)<nr satisfies
If E(X)=∏i=1nPi(X), then we can choose Si(X)≡Ni(X)Ti(X)modE(X) with Si(X) such that deg(Si)<nr. Then we see that Si(X)≡1modPi(X) and Si(X)≡0modPℓ(X) for ℓ=i. For j∈[0,r−1] set Si,j(X)≡XjSi(X)modE(X) such that deg(Si,j)<nr. We see that, modulo Pi(X), the element Si,j(X) reduces to Xj, while Sℓ,j≡0modPi for ℓ=i. Thus the right-hand side of (1) is congruent to H(X) modulo every Pi(X) and hence modulo E(X) by the Chinese remainder theorem. Since both sides have degree <nr=deg(E), they are equal in Fq[X].
For uniqueness, the residue conditions
Sij≡Xj(modPi)andSij≡0(modPℓ),forℓ=i,
imply that Sij is unique modulo E by the Chinese remainder theorem. Finally, by the degree restriction deg(Sij)<nr, we have that Sij is unique in Fq[X].
We now need some technical lemmas.
Lemma 21. Given P,Q∈Fq[X] we have that
φi(PQ)=φi(P)(j=0∑r−1φij(Q)Mij),
where Mi is the companion matrix of Pi.
Proof. In the following equations, the first equality holds because φi only depends on the class modulo Pi of its input, the second equality holds because φi is linear and the last equality holds thanks to the main property of the companion matrix Mi, explained in Lemma 19:
For a polynomial F(X)=∑jfjXj∈Fq[X], we write coef(F,j)=fj∈Fq.
Lemma 22. Let A1,…,An∈Fqr×r be such that, for any given P,Q∈Fq[X] with deg(PQ)<nr we have that
coef(PQ,nr−1)=i=1∑nφi(P)Aiφi(Q)⊤.
Then each Ai is invertible.
Proof. If we suppose that for some i∈[n] we have that Ai is not invertible, then there exists some non zero ui∈Fqr such that uiAi=0. Let us consider u=(uj)j=1n∈Fqnr with uj=0∈Fqr for j=i. By the Chinese remainder theorem, the restriction of φ to the polynomials of degree <nr is an Fq-linear isomorphism onto Fqnr. Hence there exists a nonzero polynomial P∈Fq[X] with deg(P)<nr such that φ(P)=u. Thus by how have we constructed u, we see that φ(P)diag(A1,…,An)=0 which implies that coef(PQ,nr−1)=φ(P)diag(A1,…,An)φ(Q)⊤=0, for all Q∈Fq[X] such that deg(PQ)<nr. This is absurd because if we choose Q(X)=Xnr−1−deg(P) we see that deg(PQ)<nr but, however, coef(PQ,nr−1)=coef(P,deg(P))=0.
Finally, we show that the dual of a PI code is a GPI code over a finite field (and not only over its algebraic closure as in [16]).
Theorem 4. Given C=PIk(P1,…,Pn)⊆Fqnr, let Mi be the companion matrix of each Pi. Then there exist a1,…,an∈Fqr depending only on P1,…,Pn such that:
C⊥=GPInr−k(P1,…,Pn;A1,…,An),
where Ai=(Mij−1ai⊤)j=1r∈Fqr×r are invertible matrices.
Proof. Let P,Q∈Fq[X] satisfying that deg(PQ)<nr. If we use Lemma 20 in order to compute cnr−1=coef(PQ,nr−1) we see that
where ai=(coef(Sij,nr−1))j=0r−1∈Fqr. Now we will use Lemma 21 with the goal of splitting φi(PQ) into an expression depending on φi(P) and φi(Q).
where Ai=(Mij−1ai⊤)j=1r∈Fqr×r. Lemma 22 shows that each Ai∈Fqr×r is invertible. Now let Q∈Fq[X] satisfy deg(Q)<k and let P∈Fq[X] satisfy deg(P)<nr−k. Then deg(PQ)<nr−1. Hence 0=cnr−1=φ(P)diag(A1,…,An)φ(Q)⊤. In other words, every vector in PInr−k(P1,…,Pn)⋅diag(A1,…,An) is orthogonal to every codeword in C, so
GPInr−k(P1,…,Pn;A1,…,An)⊆C⊥.
Finally the inclusion is actually an equality because both spaces have Fq-dimension nr−k, as we wanted to prove.
Therefore, we deduce that PI codes (and therefore GPI codes) are dually QMDS.
Theorem 5. Every polynomial ideal code C=PIk(P1,…,Pn)⊆Fqnr is dually QMDS.
Proof. C is QMDS by Proposition 12. Now by Theorem 4 and Proposition 5, the dual C⊥ is equivalent to PInr−k(P1,…,Pn), which is again QMDS, and we are done.
We computed the folded weight distribution of a dually QMDS code in [12, Th. 4], which is determined by its parameters n, r, k, d. Combined with Theorem 5, we obtain the following.
Theorem 6. Let C=PIk(P1,…,Pn)⊆Fqnr, and let (Wj)j=0 be its folded weight distribution. Then W0=1, Wj=0 for all j∈[d−1], and if j∈[d,n], then
Remark 23. All the preceding properties are invariant under linear isometry. In particular, every GPI code is dually QMDS, has the same weight distribution as the corresponding PI code, and its dual is equivalent to a PI code of complementary dimension.
3.3 Polynomial residue codes: Extending PI codes
We now introduce a class of codes that generalize PI codes (Definition 10).
Definition 24 (Polynomial residue codes). Let P1,…,Pn∈Fq[X] be arbitrary nonzero polynomials of degree at most r. For k∈[0,nr], we define the polynomial residue (PR) code
PRk(P1,⋯,Pn)={φ(P):P∈Fq[X],deg(P)<k}⊆Fqnr.
Here, φ:Fq[X]⟶Fqrn is as in Definition 9, but adding r−di zeros at the end of φi(P)∈Fqr, for P∈Fq[X], if di=deg(Pi)<r, for i∈[n].
In other words, PI codes are PR codes with pairwise coprime polynomials P1,…,Pn, all of degree exactly r.
Throughout this subsection we fix arbitrary k∈[0,rn], monic nonzero P1,…,Pn of degree at most r, and the corresponding PR code C=PRk(P1,…,Pn). Notice that assuming that P1,…,Pn are monic does not change the code C. Throughout this subsection, we also define
di=deg(Pi)andLJ=lcm{Pj:j∈J},
for i∈[n] and J⊆[n], where we define L∅=1 and L=L[n]. We start by computing the dimensions of PR codes.
Proposition 25. We have that dim(C)=min{k,deg(L)}.
Proof. The kernel of the Fq-linear map φ:Fq[X]⟶Fqrn is given by the polynomials P∈Fq[X] divisible by L. If we restrict the domain to polynomials of degree less than k, such a kernel has dimension max{0,k−deg(L)}. Since C is the image of the subspace of polynomials of degree <k by φ, we deduce the formula for its dimension.
In particular, we may assume that k≤deg(L) for the rest of the subsection and assume, without loss of generality, that it is the dimension of C.
We will need punctured and shortened codes. The next lemma has the same proof as [9, Th. 1.5.7].
Lemma 26. For J⊆[n], define πJ:Fqrn⟶Fq∣J∣r by πJ(c1,…,cn)=(cj)j∈J, for c1,…,cn∈Fqr. For an Fq-linear code D⊆Fqrn, define the punctured and shortened codes of D at J, respectively, as
DJ=πJ(D)andDJ=πJ(D∩ker(π[n]∖J)).
Then we have that (DJ)⊥=(D⊥)J and (DJ)⊥=(D⊥)J.
Lemma 27. For J⊆[n], dim(CJ)=min{k,deg(LJ)} and dim((C⊥)J)=∣J∣r−min{k,deg(LJ)}.
Proof. Notice that CJ is the PR code with degree restriction k and polynomials Pj, for j∈J. Thus by Proposition 25, dim(CJ)=min{k,deg(LJ)}. Now, since (C⊥)J=(CJ)⊥ by Lemma 26, we deduce the formula for dim((C⊥)J).
We may now characterize when PR codes are QMDS. This characterization depends on the polynomials LJ instead of the parameters of the code, but it will be enough to show that QMDS PR codes cannot be “too long”.
Proposition 28. If k>0 and s=⌈k/r⌉, then C is QMDS if and only if deg(LJ)≥k, for all J⊆[n] such that ∣J∣=s.
Proof. There exists a nonzero codeword in C that vanishes in J if and only if dim(CJ)<k, which by Lemma 27 is equivalent to deg(LJ)<k. Hence by the Singleton bound (Proposition 7, Item 2), C is QMDS if and only if deg(LJ)≥k, for all J⊆[n] such that ∣J∣=s.
As a consequence, we show that QMDS PR codes cannot be longer than allowed by the MDS conjecture.
Corollary 29. If k>r and C is QMDS, then n≤qr.
Proof. We have s=⌈k/r⌉≥2 and n≥s. If there exist i,j∈[n] such that i=j and Pi divides Pj, then for any J⊆[n] with i,j∈J and ∣J∣=s, we have
deg(LJ)=deg(LJ\{i})≤(s−1)r<k.
Thus C would not be QMDS by Proposition 28. Since it is, we deduce that no two different polynomials in P1,…,Pn divide each other. If we set
Qi=Xr−diPi∈Fq[X],
for i∈[n], then deg(lcm{Qj:j∈J})≥deg(LJ), for all J⊆[n]. Thus PRk(Q1,…,Qn) has dimension k by Proposition 25, and is also QMDS by Proposition 28. Finally, Q1,…,Qn are distinct. If not, there would be i,j∈[n] such that i=j and Pj=Xdj−diPi, which contradicts that Pi and Pj do not divide each other. Hence Q1,…,Qn∈Fq[X] are distinct monic polynomials of degree r, and therefore n≤qr.
We conclude by showing that, for most parameters, PR codes are dually QMDS (in particular MDS if r divides k) if and only if they are PI codes.
Theorem 7. With the convention d({0})=n+1, we have
2r≤k≤nr and P1,…,Pn are pairwise coprime of degree r.
Proof. By Lemma 27, there exists a nonzero codeword in C⊥ that vanishes outside of a subset J⊆[n] if and only if min{k,deg(LJ)}<∣J∣r.
Assume first that k<r or that there exists i∈[n] such that di<r. Choosing J={i}, we deduce that there is a nonzero codeword in C⊥ that vanishes outside of J, thus d(C⊥)=1.
Assume now that k≥r and di=r, for all i∈[n]. We deduce similarly that d(C⊥)≥2. Now, if gcd(Pi,Pj)=1 for some i,j∈[n] with i=j, then
deg(L{i,j})=2r−deg(gcd(Pi,Pj))<2r,
and therefore d(C⊥)=2.
Finally, if P1,…,Pn are pairwise coprime, then deg(LJ)=∣J∣r for all J⊆[n]. Hence min{k,deg(LJ)}≥∣J∣r for all J⊆[n] with k≥∣J∣r. In particular, for k<rn, there exists no nonzero codeword in C⊥ that vanishes outside of J, for all J⊆[n] such that ∣J∣=∣k/r∣. Thus d(C⊥)=∣k/r∣+1 if k<rn. If k=rn, then C⊥={0} and d(C⊥)=n+1 by convention.
Thus we conclude with the characterization of dually QMDS PR codes.
Corollary 30. The PR code C is dually QMDS if and only if
0≤k≤r and di≥k for all i∈[n]; or
r<k<2r, di=r for all i∈[n], and for all i,j∈[n] with i=j,
deg(gcd(Pi,Pj))≤2r−k;or
2r≤k≤nr and P1,…,Pn are pairwise coprime of degree r (i.e., C is a PI code).
Notice that for k∈[0,r] (and thus for k∈[(n−1)r,nr] by taking duals) we may obtain dually QMDS codes of unrestricted length. This is similar to what happens for r=1 (i.e., the classical Hamming metric) and the repetition code and its dual.
4 Additive Reed–Solomon codes
Additive Reed–Solomon (aRS) codes were first introduced in [18, Sec. 4] and later studied in [4]. They are a natural extension of classical Reed–Solomon codes [15] to Fq-linear codes in Fqrn. In this section, we show that they are a particular case of PI codes in most of the cases when they are dually QMDS. In these cases, we give their duals, weight distributions and permutation group, and show that they asymptotically achieve the maximum length of PI codes. At the end of the section, we will study when arbitrary aRS codes are QMDS and/or dually QMDS.
Given α∈Fqr, we denote its minimal polynomial over Fq by min(α,Fq)∈Fq[X]. We refer to the conjugacy class of α as its orbit under the Frobenius map x↦xq in Fqr. In particular, two elements belong to the same conjugacy class if and only if they have the same minimal polynomial over Fq. See [10, Ch. 1].
Definition 31 ([18]). Let α=(α1,…,αn)∈Fqrn and let k∈[0,nr]. The additive Reed–Solomon (aRS) code with evaluation vector α and degree parameter k is
As pointed out in [4, 18], the parameter k does not necessarily coincide with the Fq-dimension of the code. We give a formula for the dimension below.
Proposition 32. Given α∈Fqrn, let L(X)=lcm{min(α1,Fq),…,min(αn,Fq)}. Then
dimFq(aRSq(α,k))=min{k,deg(L)}.
Proof. The code is generated over Fq by the evaluations of 1,X,…,Xk−1 at α1,…,αn. Hence these k generators are linearly dependent if and only if there exists a nonzero polynomial P∈Fq[X] with deg(P)<k such that P(αi)=0 for all i∈[n]. For each i, the condition P(αi)=0 is equivalent to min(αi,Fq)∣P. Therefore, P(αi)=0, for all i∈[n], if and only if L∣P.
If k≤deg(L), no nonzero polynomial of degree less than k can be divisible by L. Thus the k generators above are linearly independent and the code has dimension k.
If k>deg(L), evaluation at α depends only on the residue class of a polynomial modulo L. Moreover, every residue class modulo L has a unique representative of degree less than deg(L), and all such representatives already occur among the polynomials of degree less than k. Thus the code has dimension deg(L).
4.1 Linear Hamming and folded isometries
aRS codes are Fq-linear codes in Fqn. The folded Hamming metric in Fqnr and the classical Hamming metric in Fqn are equivalent, see [12, Sec. 2]. We revisit some of these results here, and we also characterize the linear isometries between both metrics.
The Hamming weight of c=(c1,…,cn)∈Fqn is defined as wH(c)=∣{i∈[n]:ci=0}∣. For c,d∈Fqn, the Hamming distance between them is defined as dH(c,d)=wH(c−d).
Definition 33. Let β=(β1,…,βr) be an ordered Fq-basis of Fqr. We define the expansion map
As remarked in [12], it is obvious that expansion maps εβ:(Fqrn,dH)⟶(Fqnr,dF) are Fq-linear isometries (we indicate the metric corresponding to each space). We now show they are in fact all the linear isometries, up to permutation, between such metrics.
Theorem 8. Given an Fq-linear isometry ψ:(Fqn,dH)⟶(Fqnr,dF), there exist a permutation σ∈Sn and ordered Fq-bases β1,…,βn of Fqr such that
ψ(c1,…,cn)=(εβ1(cσ(1)),…,εβn(cσ(n))),
for all (c1,…,cn)∈Fqn. Conversely, every map of this form is an Fq-linear isometry.
Proof. The converse is obvious. Let now ψ:(Fqn,dH)⟶(Fqnr,dF) be an Fq-linear isometry, and fix an ordered Fq-basis β of Fqr. Then ϕ=ψ∘εβ−1:Fqnr⟶Fqnr is an Fq-linear folded-Hamming isometry. By Proposition 5, there exist σ∈Sn and A1,…,An∈GLr(Fq) such that
ϕ(c1,…,cn)=(cσ(1)A1,…,cσ(n)An),
for c1,…,cn∈Fqr. For i∈[n], define the Fq-basis βi=β(Ai−1)⊺ of Fqr. Given a∈Fqr, then ai=εβi(a) is the unique vector in Fqr such that a=βiai⊺. If b=εβ(a), then
a=βb⊺=βiAi⊺b⊺.
Hence, since ai=εβi(a) and b=εβ(a), uniqueness of the coordinate vector implies that
εβi(a)=εβ(a)Ai,
for all a∈Fqr and all i∈[n]. Finally, given c1,…,cn∈Fqr, if we define ci=εβ−1(ci)∈Fqr, then
As a corollary of Proposition 5 and Theorem 8, we obtain the following.
Corollary 34. An Fq-linear map φ:Fqn⟶Fqn is an isometry for the Hamming metric if, and only if, there exist a permutation σ∈Sn and Fq-linear vector space automorphisms Ti:Fqr⟶Fqr, for i∈[n], such that
φ(c1,…,cn)=(T1(cσ(1)),…,Tn(cσ(n))),
for (c1,…,cn)∈Fqrn.
As remarked in [12], we may therefore identify the metric vector spaces (Fqrn,dH) and (Fqnr,dF), and all of the concepts and results valid for the second can be directly translated to the first one. In particular, the definitions of QMDS and dually QMDS codes can be directly translated to (Fqrn,dH).
We may also define additive generalized Reed–Solomon (aGRS) codes by considering all codes equivalent to aRS codes. This extends [18, Sec. 4].
Definition 35. Let α=(α1,…,αn)∈Fqrn and, for i∈[n], let Ti:Fqr⟶Fqr be Fq-linear vector space automorphisms. We define the additive generalized Reed–Solomon (aGRS) code
4.2 The intersection between the aRS and PI families
We now show that aRS codes with nonconjugate evaluation points are equivalent or isometric (see Theorem 8) to those PI codes defined by irreducible polynomials. Consequently, as pointed out at the end of Subsection 4.1, every property invariant under Fq-linear isometries is shared by both families of codes.
Theorem 9. Let P1,…,Pn∈Fq[X] be distinct monic irreducible polynomials of degree r. For each i∈[n], choose a root αi∈Fqr of Pi and let βi=(1,αi,…,αir−1) and β=(β1,…,βn). Then each βi is an ordered Fq-basis of Fqr and for α=(α1,…,αn), we have that
εβ(aRSq(α,k))=PIk(P1,…,Pn).
Conversely, if α1,…,αn∈Fqr belong to pairwise distinct conjugacy classes of size r, then the same holds with Pi=min(αi,Fq), βi=(1,αi,…,αir−1), for i∈[n], and β=(β1,…,βn).
Proof. Since Pi is irreducible in Fq[X] of degree r and αi is a root of Pi, we have Pi=min(αi,Fq). Hence βi=(1,αi,…,αir−1) is an ordered Fq-basis of Fq(αi)=Fqr, for i∈[n]. Moreover, since the polynomials Pi=min(αi,Fq) are distinct of degree r, the roots αi belong to pairwise distinct conjugacy classes of size r.
Now, given P∈Fq[X] with deg(P)<k, write φi(P)=(ci,0,…,ci,r−1)∈Fqr. By definition,
P(X)≡ci,0+ci,1X+⋯+ci,r−1Xr−1modPi(X).
Since Pi(αi)=0, evaluating at αi gives P(αi)=ci,0+ci,1αi+⋯+ci,r−1αir−1 and therefore εβi(P(αi))=φi(P) for all i∈[n]. Applying this blockwise yields
εβ(P(α1),…,P(αn))=(φ1(P),…,φn(P)).
Letting P range over all polynomials of degree less than k, we obtain
εβ(aRSq(α,k))=PIk(P1,…,Pn).
For the converse, if α1,…,αn belong to pairwise distinct conjugacy classes of size r, then Pi=min(αi,Fq) for i∈[n] are distinct irreducible polynomials of degree r. Hence the preceding argument applies with βi=(1,αi,…,αir−1), which proves the converse.
In particular, from the definitions and Proposition 5, Theorem 8 and Corollary 34, we obtain the same result regarding generalized codes.
Corollary 36. Every code GPIk(P1,…,Pn;A1,…,An)⊆Fqnr, where P1,…,Pn∈Fq[X] are monic irreducible polynomials of degree r, is equivalent to a code aGRSq(α,k;T1,…,Tn)⊆Fqn such that α1,…,αn∈Fqr belong to pairwise distinct conjugacy classes of size r and conversely, where Pi=min(αi,Fq) for all i∈[n].
Now from Theorems 4 and 9 and Corollary 36, we obtain that the dual of an aRS (and in general an aGRS) code is again an aGRS code, translating the inner product in Fqnr to Fqn. We will show that this translated product is the trace inner product (using the right bases). Denote by Trq the trace of Fqr over Fq.
Definition 37. Given an Fq-linear code C⊆Fqn, and denoting by ⋅ the standard inner product in Fqn, we define its dual with respect to the trace inner product
C⊥={d∈Fqrn:Trq(c⋅d)=0,forallc∈C}.
The proof of the following proposition is straightforward.
Proposition 38. Let (β1,…,βr),(γ1,…,γr)∈Fqrr be ordered basis that are dual of each other (i.e., Tr(βiγj)=δi,j), which always exist, see [10, p. 54]. Then for c,d∈Fqrn, we have
Trq(c⋅d)=εβ(c)⋅εγ(d).
In particular, for an Fq-linear code C⊆Fqrn, we have
εβ(C⊥)=εγ(C)⊥.
Thus we deduce from Theorems 4, 9 and 36 that the dual of an aRS code is an aGRS code, which was already obtained in [18, Th. 4.3]. However, we give a more explicit formula (by giving the multipliers) and a shorter proof. The explicit version will be useful when we compute the permutation group of aRS codes. We will need the following “subfield Lagrange interpolation” result.
Lemma 39. Let α1,…,αn∈Fqr belong to pairwise distinct conjugacy classes of size r, and let L=∏i=1nmin(αi,Fq)∈Fq[X]. For all P∈Fq[X] with deg(P)<nr,
P(X)=i=1∑nTrq(P(αi)(X−αi)L′(αi)L(X)),
where Trq(a0+⋯+akXk)=Trq(a0)+⋯+Trq(ak)Xk, for a0,…,ak∈Fqr.
Proof. Consider the classical Lagrange interpolation formula in Fqr[X], for the nr evaluation points αiqj, for j∈[0,r−1] (which give the full conjugacy class of αi), for i∈[n]. Since L(X)=∏i=1n∏j=0r−1(X−αiqj)∈Fq[X], the formula is
Proposition 40. Let C=aRSq(α,k)⊆Fqrn, where α1,…,αn∈Fqr belong to pairwise distinct conjugacy classes of size r. Let L=∏i=1nmin(αi,Fq)∈Fq[X] and λi=L′(αi)−1∈Fqr∗, for i∈[n]. Then
which is the code aGRS_q( α, nr - k; T1,…,Tn), where Ti:Fqr⟶Fqr is the Fq-linear automorphism given by Ti(c)=λic, for all c∈Fqr and all i∈[n].
Proof. Let P,Q∈Fq[X] with deg(P)<k and deg(Q)<nr−k. Then deg(PQ)<nr−1. By Lemma 39,
and since both have the same dimension, they must be equal.
We deduce that aRS codes (and thus aGRS codes) are dually QMDS, which was proven in [18, Th. 4.3].
Corollary 41 ([18]). If k∈[0,nr] and α1,…,αn∈Fqr belong to pairwise distinct conjugacy classes of size r, then aRSq(α,k)⊆Fqrn is dually QMDS.
As a consequence of Corollary 41 and [12, Th. 4], we obtain the weight distribution of aRS codes (and thus also aGRS codes). By the discussion in Subsection 4.1, we may consider the classical Hamming weight distribution.
Theorem 10. Let C=aRSq(α,k)⊆Fqrn with α1,…,αn∈Fqr in pairwise distinct conjugacy classes of size r, and let (Wj)j=0n be the Hamming weight distribution of C. Then W0=1, Wj=0 for j∈[d−1], and for j∈[d,n],
Finally, among aRS codes whose evaluation points lie in pairwise distinct conjugacy classes of size r, the largest possible length is exactly the number of such conjugacy classes.
Corollary 42. The maximum possible length of an aRS code aRS_q( α, k) ⊆Fqrn, where α1,…,αn∈Fqr belong to pairwise distinct conjugacy classes of size r, is Nq(r). It is obtained by choosing representatives αi of all of the conjugacy classes of size r.
Combining this with Corollaries 15 and 17, we obtain, for fixed q≥2 and r≥4, respectively,
r→∞limMq(r)Nq(r)=1andq→∞limMq(r)Nq(r)=1.
Thus, aRS codes whose evaluation points lie in pairwise distinct conjugacy classes of size r asymptotically attain the maximum possible length of PI codes.
4.3 The permutation group of aRS codes
We now study the coordinate permutations preserving an aRS code. By Corollary 34, they form a subgroup of Fq-linear isometries for the Hamming metric that leave the aRS code invariant.
Definition 43. Let C⊆Fqrn be a code. For all σ∈Sn, define Πσ:Fqrn⟶Fqrn by Πσ(c1,…,cn)=(cσ(1),…,cσ(n)), for (c1,…,cn)∈Fqrn. The permutation group of C is
PAut(C)={σ∈Sn:Πσ(C)=C}.
Setting r = 1, the result below recovers the corresponding characterization for classical Reed–Solomon codes over arbitrary evaluation points recently obtained in [5]. The permutation group of classical Reed–Solomon codes evaluated over the whole field or its multiplicative group was originally obtained in [6].
Theorem 11. Let C=aRSq(α,k)⊆Fqrn, with 2≤k≤nr−2, and assume that α1,…,αn∈Fqr belong to pairwise distinct conjugacy classes of size r. For a permutation σ∈Sn, we have that σ∈PAut(C) if and only if there exist a∈Fq∗ and b∈Fq such that ασ(i)=aαi+b, for all i∈[n].
Proof. First, suppose that there exist a∈Fq∗ and b∈Fq such that ασ(i)=aαi+b for all i∈[n]. For all P∈Fq[X] with deg(P)<k,
Πσ(P(α1),…,P(αn))=(P(aα1+b),…,P(aαn+b)).
Since P(aX+b)∈Fq[X] and deg(P(aX+b))<k, it follows that Πσ(C)⊆C. As Πσ is an isomorphism, we obtain Πσ(C)=C, and hence σ∈PAut(C).
We now prove the converse. For all i∈[n], let Pi(X)=min(αi,Fq) and set L(X)=∏i=1nPi(X). By assumption, the polynomials P1,…,Pn are distinct irreducible polynomials in Fq[X] of degree r, and hence deg(L)=nr.
Let σ∈PAut(C). Since k≥2, we have that (α1,…,αn)∈C and therefore there exists hσ∈Fq[X] with deg(hσ)<k such that hσ(αi)=ασ(i) for all i∈[n]. Since the αi are pairwise distinct and have degree r over Fq, it must be
deg(hσ)≥1.(2)
Moreover, for all j∈[k−1], we see that (hσj(α1),…,hσj(αn))=Πσ(α1j,…,αnj)∈C. Hence there exists fj∈Fq[X] with deg(fj)<k such that hσj(αi)=fj(αi) for all i∈[n]. Thus
hσj≡fjmodL.(3)
Assume first that 2k−2<nr. We prove inductively in j∈[k−1] that hσj=fj. For j=1, by definition we have that f1=hσ. If hσj−1=fj−1 for some j∈[2,k−1], then
Since also deg(fj)<k<nr, the congruence hσj≡fjmodL implies hσj=fj. In particular, (k−1)deg(hσ)=deg(hσk−1)<k, and therefore deg(hσ)≤1.
Suppose now that nr≤2k−2, and set k′=nr−k. By the assumption k≤nr−2, we have k′≥2. By Proposition 40,
C⊥={(λ1Q(α1),…,λnQ(αn)):Q∈Fq[X],deg(Q)<k′},
where λi=L′(αi)−1∈Fqr∗. It is straightforward to verify that σ∈PAut(C⊥).
Applying Πσ to the codewords of C⊥ corresponding to Q=1 and Q=X, we obtain g0,g1∈Fq[X] with deg(g0),deg(g1)<k′ such that λσ(i)=λig0(αi) and λσ(i)ασ(i)=λig1(αi) for all i∈[n]. Since ασ(i)=hσ(αi), we obtain g0(αi)hσ(αi)=g1(αi) for all i∈[n]. Therefore g0hσ≡g1modL. Now deg(g0hσ)≤(k′−1)+(k−1)=nr−2 and deg(g1)<k′<nr, so g0hσ=g1. Since g0=0, it follows that deg(hσ)<k′.
We now return to the congruences hσj≡fj(modL) from (3), for j∈[k−1]. Again, taking f1=hσ, if hσj−1=fj−1, then
deg(hσj)=deg(fj−1)+deg(hσ)<k+k′=nr.
Since deg(fj)<k<nr, we obtain hσj=fj. Hence (k−1)deg(hσ)<k, and again deg(hσ)≤1.
Thus, in both cases 2k−2<nr and nr≤2k−2, we have that deg(hσ)≤1. Since deg(hσ)≥1 by (2), we deduce that deg(hσ)=1. In other words, hσ(X)=aX+b for some a∈Fq∗ and b∈Fq, and ασ(i)=aαi+b for all i∈[n].
In particular, we obtain the following.
Corollary 44. Let A={α1,…,αn}⊆Fqr, where α1,…,αn belong to pairwise distinct conjugacy classes of size r. Define AGLq(A) as the group of maps f:A⟶A such that there exist a∈Fq∗ and b∈Fq satisfying f(α)=aα+b, for all α∈A. If 2≤k≤nr−2, there is a group isomorphism
PAut(aRSq(α,k))≅AGLq(A).
4.4 Additive Reed–Solomon codes with arbitrary evaluation points
In [18, Th. 4.1] the authors characterize when an aRS code with different evaluation points is QMDS. In this subsection, we characterize when aRS codes over arbitrary evaluation points α1,…,αn∈Fqr (different or not) are QMDS and/or dually QMDS. In particular, we will show that the dually QMDS aRS codes from Subsection 4.2 attain the maximum length among all QMDS aRS codes, except possibly by one unit. The ideas are similar to those in Subsection 3.3, but we write full proofs for convenience of the reader that is only interested in aRS codes.
Throughout this subsection, fix k∈[0,nr] and C=aRSq(α,k)⊆Fqrn, where α=(α1,…,αn)∈Fqrn is arbitrary, and define
for i∈[n] and J⊆[n], where we define L∅=1 and L=L[n]. By Proposition 32, replacing the degree parameter by min{k,deg(L)} leaves the code unchanged. Thus, throughout this subsection, we may and do assume k=dim(C)≤deg(L).
We start by looking at punctured and shortened codes. The next lemma has essentially the same proof as [9, Th. 1.5.7]. Recall that we are considering trace duals in Fqrn (Definition 37).
Lemma 45. For J⊆[n], an Fq-linear code D⊆Fqrn, and πJ:Fqrn⟶Fqr∣J∣ the projection onto the positions indexed by J, define the punctured and shortened codes of D at J, respectively, as
DJ=πJ(D)andDJ=πJ(D∩ker(π[n]∖J)).
Then we have that (DJ)⊥=(D⊥)J and (DJ)⊥=(D⊥)J.
Lemma 46. For J⊆[n], dim(CJ)=min{k,deg(LJ)} and dim((C⊥)J)=∣J∣r−min{k,deg(LJ)}.
Proof. The code CJ is the aRS code with degree restriction k and over the evaluation set αj, for j∈J. Thus one can show that dim(CJ)=min{k,deg(LJ)} exactly as in Proposition 32. Now, since (C⊥)J=(CJ)⊥ by Lemma 45, we deduce the formula for dim((C⊥)J).
The next result characterizes the QMDS property without requiring the evaluation points to be distinct or to have degree r over Fq. It extends [18, Th. 4.1] to arbitrary evaluation points (not necessarily distinct) and gives a characterization only in terms of the parameters of the code and the degrees d1,…,dn, and not of the subsets J⊆[n].
Theorem 12. Assume k>0, and set s=⌈k/r⌉. The following hold:
If k≤r, then C is QMDS if and only if di≥k for all i∈[n].
If k>r, then C is QMDS if and only if the Pi are pairwise distinct, all but at most one of the di equal r, and any exceptional degree satisfies
di≥k−(s−1)r.
Proof. A nonzero codeword in C vanishes on the coordinates in J if and only if dimFq(CJ)<k. Hence by the Singleton bound (Proposition 7, Item 2), C is QMDS if and only if dimFq(CJ)=k, for all J⊆[n] such that ∣J∣=s. By Lemma 46, this holds if and only if deg(LJ)≥k, for all J⊆[n] such that ∣J∣=s.
If s=1 (i.e., k≤r), such a condition is clearly equivalent to di≥k, for all i∈[n]. Assume now that s≥2 (i.e., k>r). Assume also that Pi=Pj for i,j∈[n] with i=j. Then for any J⊆[n] with i,j∈J and ∣J∣=s, we obtain
deg(LJ)≤(s−1)r<k,
which implies that C is not QMDS. Assume then that P1,…,Pn are distinct. If there exist i,j∈[n] with i=j and max{di,dj}<r, then it must be max{di,dj}≤r/2, since di and dj both divide the extension degree r. Thus if J⊆[n] is such that i,j∈J and ∣J∣=s, then
deg(LJ)≤(s−2)r+di+dj≤(s−1)r<k.
Therefore if C is QMDS, then there exists at most one index i∈[n] such that di<r. Now if we choose J⊆[n] with i∈J and ∣J∣=s, then the condition
k≤deg(LJ)≤(s−1)r+di
implies that di≥k−(s−1)r. Thus if C is QMDS (and k>r), the condition in Item 2 follows. Assume finally that this condition holds (and k>r). Then given J⊆[n] with ∣J∣=s, we clearly have that deg(LJ)=rs≥k if i∈/J, and
deg(LJ)=(s−1)r+di≥k
if i∈J, and therefore C is QMDS.
Among QMDS aRS codes (Theorem 12 above), those with pairwise nonconjugate evaluation points (i.e., those dually QMDS aRS codes from Subsection 4.2) attain the maximum possible length except possibly by one unit. This follows from Corollary 42 and the following result, which follows immediately from Theorem 12.
Corollary 47. The largest length of an Fq-linear QMDS aRS code in Fqrn of dimension k>r is Nq(r)+1, if k≤Nq(r)+1 and d≥k−(s−1)r for some proper divisor d of r, and is Nq(r) otherwise (again provided that k≤Nq(r)).
Next we look at the dual C⊥, also for arbitrary evaluation points.
Theorem 13. With the convention d({0})=n+1, we have
In particular, setting t=⌊k/r⌋, C⊥ is QMDS if and only if
t=0 (i.e., 0≤k<r); or
t=1 (i.e., r≤k<2r) and every di=r; or
t≥2 (i.e., 2r≤k) and the Pi are pairwise distinct of degree r.
Proof. By Lemma 46, there exists a nonzero codeword in C⊥ that vanishes outside of a subset J⊆[n] if and only if min{k,deg(LJ)}<∣J∣r.
Assume there exists an i∈[n] such that di<r. Choosing J={i}⊆[n], we deduce that there is a nonzero codeword in C⊥ that vanishes outside of J, thus d(C⊥)=1 in this case.
Assume now that di=r, for all i∈[n]. If k<r, then deg(LJ)=r for all J⊆[n] with ∣J∣=1, and therefore d(C⊥)=1. Assume for the rest of the proof that k≥r. Now we deduce similarly that d(C⊥)≥2.
If Pi=Pj for some i,j∈[n] such that i=j, then for J={i,j} we have that min{k,deg(LJ)}=r<2r, thus there exists a nonzero codeword in C⊥ that vanishes outside of J, giving d(C⊥)=2.
Finally, if P1,…,Pn are pairwise distinct, then deg(LJ)=r∣J∣ for all J⊆[n]. Therefore, there exists a nonzero codeword in C⊥ that vanishes outside of J if and only if r∣J∣>k, i.e., ∣J∣≥⌊k/r⌋+1. Thus d(C⊥)=⌊k/r⌋+1, including the case k=nr by the zero-code convention. The QMDS criterion follows from the dual Singleton bound (Proposition 7, Item 3).
We conclude with a characterization of when arbitrary aRS codes are dually QMDS. Notice that, for k>r, these are exactly the aRS codes from Subsection 4.2. The proof is straightforward using Theorems 12 and 13.
Corollary 48. The aRS code C is dually QMDS if and only if
0≤k≤r and di≥k for all i∈[n]; or
r<k≤nr and P1,…,Pn are pairwise distinct of degree r.
Acknowledgements
This work has been supported by MICIU/AEI/ 10.13039/501100011033 and ERDF/EU (Grant no. PID2022-138906NB-C21), and by the Department of Education of the Junta de Castilla y León and FEDER Funds (Reference: CLU-2025-1-02- IMUVA).
References
[1] S. Ball, M. Lavrauw, and T. Popatia. Griesmer type bounds for additive codes over finite fields, integral and fractional MDS codes. Des., Codes, Crypto., 93(1):175–196, 2025.
[2] D. Bartoli, A. Giannoni, G. Marino, and Y. Zhou. Long QMDS additive code. arXiv preprint arXiv:2509.03186, 2025.
[3] S. Bhandari, P. Harsha, M. Kumar, and M. Sudan. Ideal-theoretic explanation of capacity-achieving decoding. IEEE Trans. Info. Theory, 70(2):1107–1123, 2024.
[4] D. Bossaller, D. Herden, and I. Ruiz-Bolanos. Nonlinear Reed–Solomon codes and nonlinear skew quasi-cyclic codes. arXiv preprint arXiv:2502.07242, 2025.
[5] E. Camps-Moreno, J. B. Lau, H. H. López, and W. Santos. The permutation group of Reed-Solomon codes over arbitrary points. In 2025 IEEE International Symposium on Information Theory (ISIT), pages 1–6. IEEE, 2025.
[6] A. Dür. The automorphism groups of Reed–Solomon codes. J. Combinatorial Theory, S. A, 44(1):69–82, 1987.
[7] A. Faldum and W. Willems. Codes of small defect. Des., Codes, Crypto., 10:341–350, 1997.
[8] V. Guruswami and A. Rudra. Explicit codes achieving list decoding capacity: Error-correction with optimal redundancy. IEEE Trans. Info. Theory, 54(1):135–150, 2008.
[9] W. C. Huffman and V. Pless. Fundamentals of error-correcting codes. Cambridge University Press, Cambridge, 2003.
[10] R. Lidl and H. Niederreiter. Finite Fields, volume 20 of Encyclopedia of Mathematics and its Applications. Addison-Wesley, Amsterdam, 1983.
[11] U. Martínez-Peñas. Hamming and simplex codes for the sum-rank metric. Des., Codes, Crypto., 88:1521—1539, 2020.
[12] U. Martínez-Peñas and R. Rodríguez-Ballesteros. Linear codes in the folded hamming distance and the quasi MDS property. Des., Codes, Crypto., 93(12):5305–5326, 2025.
[13] U. Martínez-Peñas and R. Rodríguez-Ballesteros. Upper bounds on the length of quasi-MDS codes. arXiv preprint arXiv:2607.26684, 2026.
[14] F. Pavese and P. Santonastaso. On pseudo-arcs from normal rational curve and additive MDS codes. arXiv preprint arXiv:2602.23130, 2026.
[15] I. S. Reed and G. Solomon. Polynomial codes over certain finite fields. J. Soc. Ind. and Appl. Math., 8(2):300–304, 1960.
[16] N. Ron-Zewi, S. Venkitesh, and M. Wootters. Efficient list-decoding of polynomial ideal codes with optimal list size. arXiv preprint arXiv:2401.14517, 2024.
[17] M.Y. Rosenbloom and M.A. Tsfasman. Codes for the m-metric. Problemy Peredachi Informatsii, 33(1):55–63, 1997.
[18] M. Yadav and A. Sharma. Some new classes of additive MDS and almost MDS codes over finite fields. Finite Fields App., 95:102394, 2024.