On Almost MDS codes holding (n−k−1)-designs and an open problem on Witt design
Huakai Wei, Shiyuan Qiang, Shaofang Hong
HUAKAI WEI, SHIYUAN QIANG, AND SHAOFANG HONG ∗
ABSTRACT. Let C be an almost maximum distance separable (AMDS) code over the finite fields with parameters [n,k,n−k] whose minimum-weight codewords support an (n−k−1)−(n,n−k,λ) design. We first determine the parameters of the dual code C⊥. We also characterize the design and its complementary design supported by the minimum weight codewords of C⊥. In particular, we present explicit formulas for the weight enumerators of all subset codes of C⊥ with length at least k+1. These formulas are completely determined by the cardinality of the subset, the dimension, together with the parameter λ, and are independent of the specific choice of subsets. As an application, we answer an open problem posed by Wang, Tang and Ding in 2023 by proving that the 3-design supported by the minimum-weight codewords in their proposed cyclic dual code is isomorphic to the complementary design of the Witt spherical geometry design.
1. INTRODUCTION
Let Fq be the finite field of q elements, where q=pm with p a prime and m a positive integer. Let Fq∗:=Fq∖{0} be the multiplicative group. Let n≥1 be an integer and ⟨n⟩:={1,2,⋯,n}. For any finite set A, let ∣A∣ denote the cardinality of A. Let a=(a1,⋯,an) and b=(b1,⋯,bn) be two vectors over Fq. The Hamming distance between a and b is defined as d(a,b):=∣{i∈⟨n⟩∣ai=bi}∣. The support set supp(a) of a∈Fqn is defined by supp(a):={i∈⟨n⟩∣ai=0}. The Hamming weight w(a) of a is defined as w(a):=d(a,0). Then w(a)=∣supp(a)∣. The minimum Hamming distance, denoted by d=d(C), of a code C⊆Fqn is defined to be the smallest Hamming distance between distinct codewords. An [n,k,d] linear code C over Fq is a k-dimensional subspace of the n-dimensional affine space Fqn with minimum Hamming distance d. The dual code C⊥ of the [n,k] linear code C over Fq is defined by C⊥:={c⊥∈Fqn∣⟨c,c⊥⟩=0,∀c∈C}, where ⟨c,c⊥⟩ denote the Euclidean inner product of c and c⊥ over Fq. For a linear code C, associated with any given subset I⊆⟨n⟩, we define the subset code C(I) of C by C(I):={c∈C∣supp(c)⊆I} (see [8]). For any integer i with 0≤i≤n, let Ai stand for the number of codewords in C with length n and the Hamming weight i. Then the weight enumerator of C is defined to be the polynomial 1+A1x+A2x2+⋯+Anxn. The sequence (1,A1,A2,⋯,An) is called the weight distribution of C. For the sake of simplicity, we assume throughout this paper that all linear codes are non-degenerate.
Several well-known AMDS codes are known to support (n−k−1)-designs, among which the binary Hamming code with parameters [7,4,3] is a classical example. In
Key words and phrases. Linear code; Singleton bound; BCH code; AMDS code; NMDS code; t-design; Steiner system.
*S.F. Hong is the corresponding author and was supported partially by National Science Foundation of China #12571007.
recent years, such codes have attracted considerable attention. In 2021, Ding, Tang and Tonchev [3] presented an infinite family of AMDS codes with parameters [q+1,q−3,4] over F2m that support a 3−(q+1,4,2) design. They also determined the parameters of the dual codes, namely [q+1,4,q−4], but did not derive the general weight enumerators of these codes. In 2022, Xu, Cao and Qu [16] presented three infinite families of AMDS codes with parameters [q+1,q−3,4], [q,q−3,3] and [q,q−4,4], supporting 3−(q+1,4,pl−2), 2−(q,3,pl−2) and 3−(q,4,1) designs, respectively. They further determined the corresponding weight enumerators. Subsequently, Xiang, Tang and Liu [15] constructed another infinite family of AMDS codes with parameters [q+1,q−3,4] over F7m that support a 3−(q+1,4,5) design, and established the weight enumerators of their dual codes. In 2023, Wang, Tang and Ding [13] provided an infinite family of AMDS codes with parameters [q+1,q−3,4] supporting a 3−(q+1,4,pl−2) design. They completely determined the weight enumerators of both the codes and their duals. In 2026, Xu, Wu, Lu and Cao [18] further generalized these results.
In this paper, we study the almost maximum distance separable (AMDS) code C over the finite field Fq with parameters [n,k,n−k] whose minimum-weight codewords support an (n−k−1)−(n,n−k,λ) design. Particularly, we subsume the above-mentioned case-by-case computations of the weight enumerators of the dual code C⊥ into a single unified framework. We will show that if an AMDS code with parameters [n,k,n−k] has its minimum weight codewords supporting an (n−k−1)−(n,n−k,λ) design, then both the parameters and the supported design of its dual code can be completely determined. Furthermore, we derive explicit formulas for the weight enumerators of all subset codes of the dual code with lengths at least k+1. These weight enumerators depend only on the subset length, the dimension together with the parameter λ, and are independent of the specific choice of subsets. That is, we have the first main result of this paper as follows.
Theorem 1.1. Let C be an AMDS code over Fq with parameters [n,k,n−k]. If the minimum weight codewords in C support an (n−k−1)−(n,n−k,λ) design D=(P,B), then the dual code C⊥ has parameters [n,n−k,k+1−λ], and the minimum weight codewords of C⊥ support an (n−k−1)−(n,k+1−λ,(k+1)(n−k−1+λ)) design D⊥=(P,B⊥). The complementary design of D⊥, denoted by \mathbb{D}^\perp' = (\mathbb{P}, \mathbb{B}^\perp'), is an (n−k−1)−(n,n−k−1+λ,1) design, where \mathbb{B}^\perp' = \{\cup_{I \subseteq B} B \mid I \subseteq \mathbb{P}, |I| = n - k - 1\}.
Moreover, for any subset S⊆⟨n⟩ with ∣S∣=k+r, r∈⟨n−k⟩, the weight enumerator AC⊥(S)(z) of C⊥(S) is given by
Witt spherical geometry design is a special class of Steiner systems S(3,q+1,ql+1) admitting the projective linear group PGL(2,q) as an automorphism group [14]. Owing to their rich algebraic and combinatorial properties, they have attracted considerable attention in coding theory. In particular, Ding and Tang [3], [1], [12] constructed several infinite families of linear codes related to the Witt spherical geometry design in 2020 and 2021. Building upon these developments, Liu, Ding, Mesnager, Tang and Tonchev [7] established an infinite family of BCH codes over finite fields whose minimum weight codewords support the Witt spherical geometry design. In 2023, Wang, Tang, and Ding [13] investigated an infinite family of cyclic codes C(q,q+1,3,2ps−1) whose minimum weight codewords support 3-designs, together with their dual codes, where q=pm with p a prime, m≥2 an integer, and s an integer satisfying 1≤s≤m−1. Particularly, they determined the parameters of these codes and established their weight enumerators. Moreover, they proposed the following open problem.
Problem 1.1. (Open problem 18 in [13]) Is the 3-design supported by the minimum weight codewords of the dual code C(q,q+1,3,2ps−1)⊥ isomorphic to the complementary design of the Witt spherical geometry design with parameters 3−(q+1,pgcd(m,s)+1,1)?
The second goal of this paper is to investigate the parameters and the structures supported by their minimum weight codewords of both linear code C(q,q+1,3,2ps−1) and its dual code C(q,q+1,3,2ps−1)⊥. As an application of Theorem 1.1, we will use it to study Problem 1.1. The second and third main results of this paper can be stated as follows.
Theorem 1.2. Let q=pm with p being a prime number and m≥2 being a positive integer, and let C(q,q+1,3,h) denote the BCH code over Fq. Suppose that 2h+1≡pm′(modq+1), where m′ is a nonnegative integer. Let t=gcd(m,m′). Then each of the following is true:
(i). If m′≡0(modm), then C(q,q+1,3,h) is an MDS code with parameters [q+1,q−2,4].
(ii). If m′≡0(modm) and pt=2, then C(q,q+1,3,h) is an MDS code with parameters [q+1,q−3,5].
(iii). If m′≡0(modm) and pt>2, then C(q,q+1,3,h) is an AMDS code with parameters [q+1,q−3,4], and the minimum weight codewords in C(q,q+1,3,h) support a 3−(q+1,4,pt−2) design, denoted by D=(P,B) with P=Uq+1 and
where a=y(x−z), b=x−z, c=x(z−y), d=z−y, πa,b,c,d(ξ)=bξ+daξ+c is a projective bijection between Fq∪{∞} and Uq+1.
Theorem 1.3. Let q=pm with p being a prime number and m≥2 being a positive integer. Let C(q,q+1,3,h)⊥ be the dual code of the BCH code C(q,q+1,3,h). Suppose that 2h+1≡pm′(modq+1), where m′ is a nonnegative integer, and let t=gcd(m,m′). Then each of the following is true:
(i). If m′≡0(modm), then C(q,q+1,3,h)⊥ is an MDS code with parameters [q+1,3,q−1].
(ii). If m′≡0(modm) and pt=2, then C(q,q+1,3,h)⊥ is an MDS code with parameters [q+1,4,q−2],
(iii). If m′≡0(modm) and pt>2, then C(q,q+1,3,h)⊥ is a linear code with parameters [q+1,4,q−pt], and the minimum weight codewords in C(q,q+1,3,h)⊥ support a 3−(q+1,q−pt,λ⊥) design, which is isomorphic to the complementary design of the Witt spherical geometry design with parameters 3−(q+1,pt+1,1), where λ⊥=(pt−2q−2)(pt+1q−2). Moreover, the weight enumerator of C(q,q+1,3,h)⊥(S) for any subset S with ∣S∣=(q−3)+r≥q−2 is
In particular, the weight enumerator of C(q,q+1,3,h)⊥ is obtained by taking S=⟨n⟩.
Evidently, Theorem 1.3 gives an affirmative answer to Problem 1.1. Furthermore, Theorems 1.2 and 1.3 extend and refine the results given by Wang, Tang and Ding [13] as well as those gotten by Xu, Wu, Lu and Cao [18].
This paper is organized as follows. In Section 2, we recall and show some preliminary lemmas which are needed in the proof of Theorem 1.1, 1.2 and 1.3. In Section 3, we give the proof of Theorem 1.1. Then in Section 3, we present the details of the proofs of Theorems 1.2 and 1.3. The final section is devoted to some interesting remarks.
2. PRELIMINARY LEMMAS
In this section, we first supply some preliminary lemmas which are needed in the proof of Theorem 1.1. We begin with the following remarkable result.
Lemma 2.1. [6] Given a t−(v,k,λ) design D=(P,B), let Bc be the set of the complements of the blocks in B. Then the complementary design of D is a t−(v,v−k,λ(0,t)) design, where λ(0,t):=λ(k−tv−t)(kv−t).
Lemma 2.2. (Möbius inversion formula) [11] Let Bn be the Boolean algebra of rank n. For any T⊆S, the Möbius function is given by
μ(T,S)=(−1)∣S−T∣.
The Möbius inversion formula for Bn becomes the following statement: Let f,g:Bn→K. Then it holds that
g(S)=T⊆S∑f(T)
if and only if it holds that
f(S)=T⊆S∑(−1)∣S−T∣g(T).
The following lemma is equivalent to Theorem 1.4.13 in [6]. For ease of reference, we restate it here.
Lemma 2.3. [6] Let C be a linear code over Fq with parity-check matrix H. For any subset I⊆⟨n⟩ and for any index j∈⟨n⟩∖I, there exists a codeword c∈C such that supp(c)⊆I∪{j} and cj=0 if and only if Hj∈span(Hi,i∈I), where Hi denotes the i-th column of H.
Lemma 2.4. Let C be an [n,k,d] linear code over Fq and let C⊥ be its dual code. Let H be a parity-check matrix of C, and denote its column vectors by H1,⋯,Hn∈Fqn−k. For any subset I⊆⟨n⟩, define the subspace V0:=span({Hi∣i∈I}), and let r:=n−k−dimV0 with 0≤r≤n−k. Then the following statements hold:
(i). There exist r linearly independent column vectors Hi1,⋯,Hir (1≤i1<⋯<ir≤n) such that Hij∈/span({V0,Hi1,⋯,Hij−1}) for all j∈⟨r⟩.
(ii). For each nonnegative integer j≤r, let Vj:=span({V0,Hi1,⋯,Hij}) and Ij:={l∈⟨n⟩∣Hl∈Vj∖Vj−1}, where V−1:=∅ and I0:={l∈⟨n⟩∣Hl∈V0}. Then we have the disjoint union: ⋃i=0rIi=⟨n⟩.
(iii). We have C⊥(⟨n⟩∖I)=span({c1⊥,⋯,cr⊥}) with c1⊥,⋯,cr⊥∈C⊥, and for each j∈⟨r⟩, Ij⊆supp(cj⊥)⊆⋃i=jrIi.
Proof. (i). It follows directly from the basis extension theorem in linear algebra.
(ii). It follows directly from the construction of Vj and Ij.
(iii). Since H is a parity-check matrix of the linear code C, we find that dim(C⊥(⟨n⟩∖I))=dim(V0⊥)=r.
Claim I: For any codeword c⊥∈C⊥(⟨n⟩∖I) and index i∈I0, ci⊥=0.
Since ci⊥=0 for any index i∈I, we only need to treat the indexes in I0∖I. For any index i∈I0∖I, we can deduce that Hj,j∈I and Hi are linearly dependent. Hence, there exists a codeword c∈C with ci=0 such that supp(c)⊆I∪{i}. By the definition of the dual code, we obtain that
0=⟨c,c⊥⟩=j∈⟨n⟩∑cjcj⊥=cici⊥.
Consequently, ci⊥=0 as ci=0. Therefore, by the arbitrariness, we have ci⊥=0 for any index i∈I0∖I. So Claim I is proved.
Claim II: For any codeword
c⊥∈C⊥(i=j⋃rIi)=C⊥(⟨n⟩∖i=0⋃j−1Ii),j∈⟨r⟩,
the components {ci⊥∣i∈Ij} are either all zero or all nonzero.
If ∣Ij∣=1, Claim II is trivial. So we consider when ∣Ij∣>1. Suppose there exists an index j1∈Ij such that cj1⊥=0. Now for any index j2∈Ij∖{j1}, applying Lemma 2.3 to Hj2∈span({Hj1}∪{Hi,i∈⋃i=0j−1Ii}) and Hj1∈/span({Hi,i∈⋃i=0j−1Ii}) gives us that there is a nonzero codeword c∈C(⋃i=0j−1Ii∪{j1,j2}) such that cj1=0 and cj2=0. It follows that
0=⟨c,c⊥⟩=j∈⟨n⟩∑cjcj⊥=cj1cj1⊥+cj2cj2⊥,
which yields that
cj2⊥=−cj2cj1cj1⊥=0
as cj1,cj2 and cj1⊥ are all nonzero. Therefore, by the arbitrariness, we have ci⊥=0 for any index i∈Ij. Thus Claim II is proved.
Finally, we complete the proof of Lemma 2.4. For any index j∈⟨r⟩, consider the map
ϕ:C⊥(i=j⋃rIi)→Fq∣Ij∣,c⊥↦c⊥∣Ij,
where c⊥∣Ij denotes the restriction of the dual codeword c⊥ to the coordinate set Ij. By Claim II, Im(ϕ) must be a one-dimensional linear space over Fq. This means that
From the linear independence of cj⊥,j∈⟨r⟩, one can deduce that
C⊥(⟨n⟩∖I)=span({c1⊥,⋯,cr⊥}).
So part (iii) is proved.
This completes the proof of Lemma 2.4.
In the rest of this section, we present several lemmas that are needed in the proofs of Theorems 1.2 and 1.3.
Lemma 2.5. [10] (Singleton bound) For a linear [n,k,d] code C over Fq, we have d≤n−k+1.
Lemma 2.6. [9] Let C be a linear code over Fq. Then C is an MDS code if and only if the dual code C⊥ of C is an MDS code.
The following Steiner systems were constructed by Witt [14], and are called Witt spherical geometry designs. But for ease of reference, we adopt the version stated in [7] here.
Lemma 2.7. [7] [14] Let PGL(2,q) be the projective linear group of degree two. Put B:=PG(1,q) and OrbB:={gB∣g∈PGL(2,qm)}. Let D:=(B,OrbB). Then D is a Steiner system S(3,q+1,qm+1).
Lemma 2.8. [7] The map μ:Fq∪{∞}→Uq+1,μ(x)=x+u0u0x+1 is a bijection, where u0∈Uq+1∖{±1}.
Lemma 2.9. [2] The projective general linear group PGL(2,q) consists of all the following permutations of the set {∞}∪Fq:
π(a,b,c,d)(x)=bx+dax+c
with ad−bc=0, and the conventions above about ∞. The corresponding group action is triply transitive.
Lemma 2.10. [17] The minimum distance d of the BCH code C(q,q+1,3,h) is equal to 3 if and only if gcd(2h+1,q+1)>1. Equivalently, d≥4 if and only if gcd(2h+1,q+1)=1.
Lemma 2.11. Let q be a positive power of a prime p. Let xi∈Uq+1⊆Fq2, i∈⟨t⟩, be arbitrary t pairwise distinct elements and r,s∈Z+. Then the dimension of the solution space of the system of homogeneous linear equations
(x1rx1sx2rx2s⋯⋯xtrxts)X=0(2.1)
over Fq is equal to the dimension of the solution space of the system of homogeneous linear equations
where V1:=span(xl1,xl2,⋯,xlt)⊆Fq[x]. Under this map, S1 corresponds to the set of polynomials f(x)∈V1 such that f(βr)=f(βs)=0. Let g1(x) and g2(x) be the minimal polynomials of βr and βs over Fq, respectively. Then lcm(g1(x),g2(x))∣f(x). Hence,
where V2:=span(xl1,xl2,⋯,xlt)⊆Fq2[x]. Under this map, S2 corresponds to the set of polynomials f(x)∈V2 such that
f(βr)=f(β−r)=f(βs)=f(β−s)=0.
Since β−r=βrq and β−s=βsq are also roots of g1(x) and g2(x), respectively, one has
S2≅{f(x)∈V2∣lcm(g1(x),g2(x))∣f(x)}.
Therefore, we conclude that d1=d2.
This finishes the proof of Lemma 2.11.
Lemma 2.12. Let q be a positive power of a prime p and let x,y,z,w∈Uq+1⊆Fq2 be four pairwise distinct elements. Then for all integer h, it holds in Fq2 that
Let X1=X=wx, X2=Y=wy, Y1=ZX=zx and Y2=ZY=zy. Since X,Y,Z∈Uq+1∖{1:=1Fq2}⊆Fq2 are three pairwise distinct elements, one knows that
−(XY)−(h+1)Zh−1(X−1)(Y−1)(X−Z)(Y−Z)=0.
It then follows immediately that (2.3) holds in Fq2 if and only if (2.4) holds in Fq2 as expected.
The proof of Lemma 2.12 is complete.
Lemma 2.13. Let q=pm with p a prime and m a positive integer. Suppose 2h+1≡pm′(modq+1), where m′ is a positive integer. Let x,y,z,w∈Uq+1 be four pairwise distinct elements. Then the following are equivalent:
(1). The quadruple (x,y,z,w) satisfies the determinant condition (2.3).
(2). We have
w∈{πa,b,c,d(ξ)∣ξ∈Fpt∗∖{1}},
where t=gcd(m,m′), πa,b,c,d:Fq∪{∞}→Uq+1,πa,b,c,d(ξ)=bξ+daξ+c, a=y(x−z), b=x−z, c=x(z−y) and d=z−y.
(3). The quadruple (x,y,z,w) is the image under the projective linear transformation πa,b,c,d of (0,∞,1,ξ) for some ξ∈Fpt∗∖{1}.
Proof. Let x,y,z,w be four distinct elements in Uq+1. By Lemma 2.12, the determinant condition det(H(x,y,z,w))=0 is equivalent to
So ξ∈Fq. Let t=gcd(m,m′). Since ξpm′−1=1 and ξq−1=1, we derive that
ξgcd(q−1,pm′−1)=ξpt−1=1,
which implies that ξ∈Fqt∗.
For fixed distinct elements x,y,z∈Uq+1, we determine all w∈Fq2 satisfying the determinant condition (2.3). We claim that z−y+ξ(x−z)=0 for any element ξ∈Fqt∗. Suppose that there is an element ξ such that z−y+ξ(x−z)=0. Then
0=(z−y+ξ(x−z))q=z−1−y−1+x−1−z−1=x−1−y−1,
which contradicts with the hypothesis x=y. So the claim is proved. It then follows from the claim and
Via the bijection in Lemma 2.8, we can identify Uq+1 with the projective line PG(1,q). Under this identification, the action of PGL(2,q) on Uq+1 is naturally identified with its action on PG(1,q). To express this in terms of a projective linear transformation, we define the map
πa,b,c,d:Fq∪{∞}→Fq2,ξ↦bξ+daξ+c,
where a=y(x−z), b=x−z, c=x(z−y) and d=z−y. By Lemma 2.9, we know that πa,b,c,d is a projective permutation on Uq+1, which yields that πa,b,c,d(ξ)∈Uq+1 for any ξ∈Fq∪{∞}. A direct computation shows that
Thus πa,b,c,d(ξ)∈Uq+1∖{x,y,z} if and only if ξ∈Fq∗∖{1}.
Therefore, if (1) holds, then there exists an element ξ∈Fq∗∖{1} such that w=πa,b,c,d(ξ), that is w∈{πa,b,c,d(ξ)}∣ξ∈Fpt∗∖{1}}. Hence (2) follows.
Now, we show that (2) ⇒ (3). It follows directly from πa,b,c,d(0)=x, πa,b,c,d(∞)=y, πa,b,c,d(1)=z and w∈{πa,b,c,d(ξ)}∣ξ∈Fpt∗∖{1}}.
Finally, we prove that (3) ⇒ (1). If (x,y,z,w)=πa,b,c,d(0,∞,1,ξ) for some ξ∈Fpt∗∖{1}, then
((y−w)(x−z)(x−w)(y−z))pm′−1=ξpm′−1=1.
Namely, det(H(x,y,z,w))=0 as desired.
This completes the proof of Lemma 2.13.
3. PROOF OF THEOREM 1.1
In this section, we give the proof of Theorem 1.1.
Proof of Theorem 1.1. First, since C is an AMDS code with parameters [n,k,n−k], it follows that for any subset I⊆⟨n⟩ with ∣I∣=n−k−1, we have dim(span({Hi,i∈I}))=n−k−1, where Hi denotes the i-th column of the parity-check matrix H of C.
On the other hand, since the minimum weight codewords of C support an (n−k−1)−(n,n−k,λ) design, denoted by D=(P,B), where P=⟨n⟩ and
B={I∪{j}∣I⊆⟨n⟩,∣I∣=n−k−1,j∈span({Hi,i∈I})∖I},
we conclude that
∣{j∈⟨n⟩∣Hj∈span({Hi,i∈I})}∣=n−k−1+λ.
Applying Lemma 2.4 yields that C⊥(⟨n⟩∖I)=span({c⊥}), where
supp(c⊥)=⟨n⟩∖{j∈⟨n⟩∣Hj∈span({Hi,i∈I})}.
Therefore,
supp(c⊥)=n−(n−k−1+λ)=k+1−λ,
which implies that the minimum distance d⊥ of C⊥ is k+1−λ. By the arbitrariness of the subset I, there does not exist a codeword c⊥∈C⊥ such that k+1−λ<w(c⊥)≤k+1. Moreover, the support sets of all the minimum weight codewords in C⊥ are
Consequently, D⊥′ is an (n−k−1)−(n,n−k−1+λ,1) design uniquely determined by D. Thus, by Lemma 2.1, we conclude that the minimum weight codewords in C⊥ support an (n−k−1)−(n,k+1−λ,λ⊥) design D⊥, where λ⊥=(λk+1)(k+1n−k−1+λ).
Furthermore, for any subset I⊆⟨n⟩ with ∣I∣=n−k−1, we know that C⊥(⟨n⟩∖I)=span({c⊥}) for some nonzero codeword c⊥∈C⊥ satisfying ∣supp(c⊥)∣=k+1−λ. For any subset S⊆⟨n⟩, we define
The values of g(S) can be determined by considering the two cases ∣S∣≤k and ∣S∣≥k+1.
Case 1. ∣S∣≥k+1. We have g(S)=q∣S∣−k, which follows from the fact that any n−∣S∣ columns of the parity-check matrix H are linearly independent.
Case 2. ∣S∣≤k. Pick a subset I⊆⟨n⟩ such that S⊆I and ∣I∣=k+1. By Lemma 2.4, C⊥(I)=C⊥(⟨n⟩∖(⟨n⟩∖I))=span({c⊥}), where c⊥ is a nonzero codeword in C⊥ satisfying that ∣supp(c⊥)∣=k+1−λ. We denote Ic⊥:=supp(c⊥). Since C⊥(S)⊆C⊥(I)=span({c⊥}), we have g(S)=q if and only if Ic⊥⊆S, g(S)=1 if and only if Ic⊥⊆S. This implies that there are no codewords in C⊥ whose weights in ⟨k+1⟩∖{k+1−λ}.
For any subset S⊆⟨n⟩ with ∣S∣=k+r and r∈⟨n−k⟩, by Lemma 2.2, we have
Now we calculate the number of codewords in C⊥(S) of Hamming weight k+1−λ. Define
BS:={S∖supp(c⊥)∣c⊥∈C⊥(S),w(c⊥)=k+1−λ}.
Since D⊥′ is an (n−k−1)−(n,n−k−1+λ,1) design, it follows that DS=(S,BS) is an (∣S∣−k−1)−(∣S∣,∣S∣−k−1+λ,1) design obtained by deleting the points outside S. Lemma 2.1 gives us that the number of codewords in C⊥(S) of Hamming weight k+1−λ is exactly
(q−1)(λk+1)(∣S∣−k−1+λk+1).
Therefore, the weight enumerator of C⊥(S) with ∣S∣=k+r and r∈⟨n−k⟩ is given by
In this section, we show Theorems 1.2 and 1.3. Firstly, we give the proof of Theorem 1.2.
Proof of Theorem 1.2. Applying Lemma 2.10 to the case 2h+1≡pm′(modq+1), one derives that the minimum distance d of the BCH code C(q,q+1,3,h) satisfies d≥4. Let C denote the BCH code C(q,q+1,3,h) and pick an element β∈Uq+1 being a generator. Let g1(x) and g2(x) be the minimal polynomials of the elements βh and βh+1, respectively. Through the finite field conjugate analysis, we observe that g1(x) completely splits into factors containing the roots β±h and g2(x) similarly factors with roots β±(h+1). Noting that pm≡−1(modq+1) and p2m≡1(modq+1), we derive that the order of p modulo q+1 is 2m. Therefore, pm′≡1(modq+1) if and only if m′≡0(mod2m), pm′≡−1(modq+1) if and only if m′≡m(mod2m).
(i). If m′≡0(modm), then exactly one of 2h or 2(h+1) is congruent to 0 modulo q+1. Thus deg(g1(x)g2(x))=deg(g1(x))+deg(g2(x))=3. This implies that the dimension of C is q+1−3=q−2. Consequently, C is an MDS code with parameters [q+1,q−2,4]. So (i) is proved.
(ii). If m′≡0(modm), then both of 2h and 2(h+1) are not congruent to 0 modulo q+1. Hence deg(g1(x)g2(x))=deg(g1(x))+deg(g2(x))=4. This implies that the dimension of C is q+1−4=q−3. Since C is actually the solution space of
(βhβh+1(β2)h(β2)h+1⋯⋯(βq+1)h(βq+1)h+1)X=0
over Fq, by Lemma 2.11, 2.12 and the theory of linear algebra over finite fields, every codeword with Hamming weight 4 in C, up to multiple, must correspond to a pairwise distinct quadruple (x,y,z,w) with x,y,z,w∈Uq+1 satisfies the determinant condition (2.3). Since pt=2, we have Fqt∗∖{1}=∅. Then by Lemma 2.13, one can deduce that there is no quadruple (x,y,z,w) satisfying (2.3), which yields that d>4. Meanwhile, Lemma 2.5 tells us that d≤5. Consequently, d=5 and C is an MDS code with parameters [q+1,q−3,5]. Thus (ii) is proved.
(iii). Similar to the proof of (ii), one obtains the dimension of C is q−3. Since pt>2, one has Fqt∗∖{1}=∅. It then follows from Lemma 2.11, 2.12 and 2.13 that C is an AMDS code with parameters [q+1,q−3,4] and the minimum weight codeword in C support a 3−(q+1,4,pt−2) design D=(P,B), where P=Uq+1 and
a=y(x−z),b=x−z,c=x(z−y),d=z−y,πa,b,c,d(ξ)=bξ+daξ+c is a projective bijection between Fq∪{∞} and Uq+1. Hence (iii) is proved.
This completes the proof of Theorem 1.2.
Finally, we give the proof of Theorem 1.3.
Proof of Theorem 1.3. First of all, parts (i) and (ii) follow immediately from parts (i) and (ii) of Theorem 1.2 and Lemma 2.6.
In the following let us show part (iii). Let C⊥ denote the dual code of BCH code C(q,q+1,3,h) and let β be a generator of Uq+1. By Theorem 1.2, C is an AMDS code with parameters [q+1,q−3,4] and the minimum weight codeword in C support a 3−(q+1,4,pt−2) design. Applying Theorem 1.1, we can conclude that C⊥ is a linear code with parameter [q+1,4,q−pt] and the minimum weight codeword in C⊥ support a 3−(q+1,q−pt,λ⊥) design D⊥=(P,B⊥), where λ⊥=(pt−2q−2)(pt+1q−2) and B⊥={⟨n⟩∖∪I⊆BB∣I=P,∣I∣=3}. Thus the block set \mathbb{B}^\perp' of its complementary design \mathbb{D}^\perp' = (\mathbb{P}, \mathbb{B}^\perp') is equal to the set
where a=y(x−z), b=x−z, c=x(z−y), d=z−y, πa,b,c,d(ξ)=bξ+daξ+c is a projective bijection between Fq∪{∞} and Uq+1. Hence, the design D′ is actually a Witt spherical geometry design with parameters 3−(q+1,pgcd(m,i)+1,1). Moreover, by Theorem 1.1 and 1.2, the weight enumerator of C(q,q+1,3,h)⊥ is given by
In this section, we give several applications of Lemma 2.4 and Theorem 1.1.
(1). It is worth noting that Lemma 2.4 is a generalization of Proposition 14 in [4].
Let C is an NMDS code over Fq with parameters [n,k,n−k]. For any minimum weight codeword c∈C and subset I⊆supp(c) with size n−k−1, we apply Lemma 2.4 with r=1. Then we know that ∣I0∣=∣supp(c)∣=n−k and ∣I1∣=k, which follows that there exists, up to a multiple, a unique minimum weight codeword c⊥∈C⊥ such that supp(c)∩supp(c⊥)=∅. This shows Lemma 2.4 is a generalization of Proposition 14 in [4].
(2). One notes that Theorem 1.1 (ii) in [8] was used to confirm a conjecture raised by Geng, Yang, Zhang and Zhou in [5]. Now we use Lemma 2.4 to give an alternative proof of Theorem 1.1 (ii) in [8]. The proof is given as follows.
At first, let C be an NMDS code with parameters [n,k,n−k]. Then its dual code C⊥ is an NMDS code with parameters [n,k⊥=n−k,k]. For any subset I⊆⟨n⟩ with size n−k⊥−1=k−1, by applying Lemma 2.4 with r=1, we get that dim(C(⟨n⟩∖I))=1. Hence, by the arbitrariness of subset I, we have dim(C(S))=1 for any subset S⊆⟨n⟩ with ∣S∣=n−k+1.
Conversely, suppose that C is an AMDS code with parameters [n,k,n−k] and dim(C(S))=1 holds for any subset S⊆⟨n⟩ with ∣S∣=n−k+1. We claim that for any subset I⊆⟨n⟩ with ∣I∣=n−k−1, ∣I0∣≤n−k (I0 follows the notation in Lemma 2.4). In fact, if we assume that there is a subset I⊆⟨n⟩ such that ∣I0∣≥n−k+1, then we can pick a subset S⊆I0 such that ∣S∣=n−k+1. It follows that
dim(C(S))=∣S∣−rankH(S)=n−k+1−(n−k−1)=2,
contradicting with the hypothesis dim(C(S))=1. Thus the claim is proved. Then by Lemma 2.4, ∣I1∣=n−∣I0∣≥k, so does d(C⊥) by the arbitrariness of subset I. Since C⊥ is not an MDS code, it follows that d(C⊥)<k+1. Consequently, d(C⊥)=k, which yields that C is an NMDS code as desired.
(3). In 2021, Ding, Tang and Tonchev [3] used the general projective linear group PGL(2,2m) to study a class of AMDS codes CF2m with parameters [2m+1,2m−3,4]. They proved that the supports of the codewords of Hamming weight 4 in C form a 3−(2m+1,4,2) design. However, they did not give the weight enumerators of C and its dual code C⊥. By Theorem 1.1, the weight enumerator AC⊥(z) of the dual code C⊥ can be obtained immediately as:
which coincides with Example 28 in [3], thereby confirming our result.
(4). In [15], Xiang, Tang and Liu derived the weight enumerator via complex calculations. However, Theorem 1.1 yields that the weight enumerator AC⊥(z) of the dual code can be obtained directly without resorting to such calculations:
C.S. Ding and C.M. Tang, Infinite families of near MDS codes holding t-designs, IEEE Trans. Inform. Theory 66 (2020), 5419-5428.
C.S. Ding and C.M. Tang, Designs from linear codes, Second edition, World Sci. Publ., Hackensack, NJ, 2022.
C.S. Ding, C.M. Tang and V.D. Tonchev, The projective general linear group PGL(2, 2m) and linear codes of length 2m+1, Des. Codes Cryptogr. 89 (2021), 1713-1734.
A. Faldum and W. Willems, Codes of small defect, Des. Codes Cryptogr. 10 (1997), 341-350.
X.J. Geng, M. Yang, J. Zhang and Z.C. Zhou, A class of almost MDS codes, Finite Fields Appl. 79 (2022), #101996.
W.C. Huffman and V. Pless, Fundamentals of error-correcting codes, Cambridge University Press, Cambridge, 2003.
Q. Liu, C.S. Ding, S. Mesnager, C.M. Tang and V.D. Tonchev, On infinite families of narrow-sense antiprimitive BCH codes admitting 3-transitive automorphism groups and their consequences, IEEE Trans. Inform. Theory 68 (2022), 3096–3107.
S.Y. Qiang, H.K. Wei and S.F. Hong, Characterizations of NMDS codes and a proof of the Geng-Yang-Zhang-Zhou conjecture, Finite Fields Appl. 105 (2025), #102616.
R.M. Roth, Introduction to coding theory, Cambridge University Press, Cambridge, 2006.
R. Singleton, Maximum distance q-ary codes, IEEE Trans. Inform. Theory 10 (1964), 116-118.
C.M. Tang and C.S. Ding, An infinite family of linear codes supporting 4-designs, IEEE Trans. Inform. Theory 67 (2021), 244-254.
X.Q. Wang, C.M. Tang and C.S. Ding, Infinite families of cyclic and negacyclic codes supporting 3-designs, IEEE Trans. Inform. Theory 69 (2023), 2341-2354.
E. Witt, über Steinersche Systeme, Abh. Math. Sem. Univ. Hamburg 12 (1937), 265–275.
C. Xiang, C.M. Tang and Q. Liu, An infinite family of antiprimitive cyclic codes supporting Steiner systems S(3,8,7m+1), Des. Codes Cryptogr. 90 (2022), 1319-1333.
G.K. Xu, X.W. Cao and L.J. Qu, Infinite families of 3-designs and 2-designs from almost MDS codes, IEEE Trans. Inform. Theory 68 (2022), 4344-4353.
H.J. Xu, X. Wu, W. Lu and X.W. Cao, The sufficient and necessary conditions for the minimum distance of the BCH code C(q,q+1,3,h) to be 3 and 4, IEEE Trans. Inform. Theory 71 (2025), 4206-4213.
H.J. Xu, X. Wu, W. Lu and X.W. Cao, The dual codes of two families of BCH codes, Finite Fields Appl. 110 (2026), #102721.
MATHEMATICAL COLLEGE, SICHUAN UNIVERSITY, CHENGDU 610064, P.R. CHINA