arXiv:2610.29744cs.ITOct 2026

Manuscript Offprint

arXiv:2610.29744

On Almost MDS codes holding (n−k−1)(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][n, k, n - k] whose minimum-weight codewords support an (n−k−1)−(n,n−k,λ)(n - k - 1) - (n, n - k, \lambda) design. We first determine the parameters of the dual code C⊥C^\perp. We also characterize the design and its complementary design supported by the minimum weight codewords of C⊥C^\perp. In particular, we present explicit formulas for the weight enumerators of all subset codes of C⊥C^\perp with length at least k+1k + 1. These formulas are completely determined by the cardinality of the subset, the dimension, together with the parameter λ\lambda, 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\mathbb{F}_q be the finite field of qq elements, where q=pmq = p^m with pp a prime and mm a positive integer. Let Fq∗:=Fq∖{0}\mathbb{F}_q^* := \mathbb{F}_q \setminus \{0\} be the multiplicative group. Let n≥1n \geq 1 be an integer and ⟨n⟩:={1,2,⋯ ,n}\langle n \rangle := \{1, 2, \cdots, n\}. For any finite set AA, let ∣A∣|A| denote the cardinality of AA. Let a=(a1,⋯ ,an)\mathbf{a} = (a_1, \cdots, a_n) and b=(b1,⋯ ,bn)\mathbf{b} = (b_1, \cdots, b_n) be two vectors over Fq\mathbb{F}_q. The Hamming distance between a\mathbf{a} and b\mathbf{b} is defined as d(a,b):=∣{i∈⟨n⟩∣ai≠bi}∣d(\mathbf{a}, \mathbf{b}) := |\{i \in \langle n \rangle \mid a_i \neq b_i\}|. The support set supp(a)\text{supp}(\mathbf{a}) of a∈Fqn\mathbf{a} \in \mathbb{F}_q^n is defined by supp(a):={i∈⟨n⟩∣ai≠0}\text{supp}(\mathbf{a}) := \{i \in \langle n \rangle \mid a_i \neq 0\}. The Hamming weight w(a)w(\mathbf{a}) of a\mathbf{a} is defined as w(a):=d(a,0)w(\mathbf{a}) := d(\mathbf{a}, \mathbf{0}). Then w(a)=∣supp(a)∣w(\mathbf{a}) = |\text{supp}(\mathbf{a})|. The minimum Hamming distance, denoted by d=d(C)d = d(\mathcal{C}), of a code C⊆Fqn\mathcal{C} \subseteq \mathbb{F}_q^n is defined to be the smallest Hamming distance between distinct codewords. An [n,k,d][n, k, d] linear code C\mathcal{C} over Fq\mathbb{F}_q is a kk-dimensional subspace of the nn-dimensional affine space Fqn\mathbb{F}_q^n with minimum Hamming distance dd. The dual code C⊥\mathcal{C}^\perp of the [n,k][n, k] linear code C\mathcal{C} over Fq\mathbb{F}_q is defined by C⊥:={c⊥∈Fqn∣⟨c,c⊥⟩=0,∀c∈C}\mathcal{C}^\perp := \{\mathbf{c}^\perp \in \mathbb{F}_q^n \mid \langle \mathbf{c}, \mathbf{c}^\perp \rangle = 0, \forall \mathbf{c} \in \mathcal{C}\}, where ⟨c,c⊥⟩\langle \mathbf{c}, \mathbf{c}^\perp \rangle denote the Euclidean inner product of c\mathbf{c} and c⊥\mathbf{c}^\perp over Fq\mathbb{F}_q. For a linear code C\mathcal{C}, associated with any given subset I⊆⟨n⟩I \subseteq \langle n \rangle, we define the subset code C(I)\mathcal{C}(I) of C\mathcal{C} by C(I):={c∈C∣supp(c)⊆I}\mathcal{C}(I) := \{\mathbf{c} \in \mathcal{C} \mid \text{supp}(\mathbf{c}) \subseteq I\} (see [8]). For any integer ii with 0≤i≤n0 \leq i \leq n, let AiA_i stand for the number of codewords in C\mathcal{C} with length nn and the Hamming weight ii. Then the weight enumerator of C\mathcal{C} is defined to be the polynomial 1+A1x+A2x2+⋯+Anxn1 + A_1 x + A_2 x^2 + \cdots + A_n x^n. The sequence (1,A1,A2,⋯ ,An)(1, A_1, A_2, \cdots, A_n) is called the weight distribution of C\mathcal{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)(n - k - 1)-designs, among which the binary Hamming code with parameters [7,4,3][7, 4, 3] is a classical example. In

2020 Mathematics Subject Classification. 11T71, 94B15, 94B05, 94A60.

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][q+1, q-3, 4] over F2m\mathbb{F}_{2^m} that support a 3−(q+1,4,2)3-(q+1, 4, 2) design. They also determined the parameters of the dual codes, namely [q+1,4,q−4][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+1, q-3, 4], [q,q−3,3][q, q-3, 3] and [q,q−4,4][q, q-4, 4], supporting 3−(q+1,4,pl−2)3-(q+1, 4, p^l-2), 2−(q,3,pl−2)2-(q, 3, p^l-2) and 3−(q,4,1)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][q+1, q-3, 4] over F7m\mathbb{F}_{7^m} that support a 3−(q+1,4,5)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][q+1, q-3, 4] supporting a 3−(q+1,4,pl−2)3-(q+1, 4, p^l-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\mathbb{F}_q with parameters [n,k,n−k][n, k, n-k] whose minimum-weight codewords support an (n−k−1)−(n,n−k,λ)(n-k-1)-(n, n-k, \lambda) design. Particularly, we subsume the above-mentioned case-by-case computations of the weight enumerators of the dual code C⊥\mathcal{C}^\perp into a single unified framework. We will show that if an AMDS code with parameters [n,k,n−k][n, k, n-k] has its minimum weight codewords supporting an (n−k−1)−(n,n−k,λ)(n-k-1)-(n, n-k, \lambda) 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+1k+1. These weight enumerators depend only on the subset length, the dimension together with the parameter λ\lambda, 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\mathcal{C} be an AMDS code over Fq\mathbb{F}_q with parameters [n,k,n−k][n, k, n - k]. If the minimum weight codewords in C\mathcal{C} support an (n−k−1)−(n,n−k,λ)(n - k - 1) - (n, n - k, \lambda) design D=(P,B)\mathbb{D} = (\mathbb{P}, \mathbb{B}), then the dual code C⊥\mathcal{C}^\perp has parameters [n,n−k,k+1−λ][n, n - k, k + 1 - \lambda], and the minimum weight codewords of C⊥\mathcal{C}^\perp support an (n−k−1)−(n,k+1−λ,(n−k−1+λ)(k+1))(n - k - 1) - (n, k + 1 - \lambda, \frac{(n - k - 1 + \lambda)}{(k + 1)}) design D⊥=(P,B⊥)\mathbb{D}^\perp = (\mathbb{P}, \mathbb{B}^\perp). The complementary design of D⊥\mathbb{D}^\perp, denoted by \mathbb{D}^\perp' = (\mathbb{P}, \mathbb{B}^\perp'), is an (n−k−1)−(n,n−k−1+λ,1)(n - k - 1) - (n, n - k - 1 + \lambda, 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⟩S \subseteq \langle n \rangle with ∣S∣=k+r|S| = k + r, r∈⟨n−k⟩r \in \langle n - k \rangle, the weight enumerator AC⊥(S)(z)A_{C^\perp(S)}(z) of C⊥(S)C^\perp(S) is given by

AC⊥(S)(z)=1+(q−1)∏j=1r−1k+1+jλ+jzk+1−λ+∑i=k+2k+rzi(k+ri)A_{C^{\perp}(S)}(z)=1+(q-1)\prod_{j=1}^{r-1}\frac{k+1+j}{\lambda+j}z^{k+1-\lambda}+\sum_{i=k+2}^{k+r}z^{i}\binom{k+r}{i} ((−1)i−k(i−1k)+∑j=0i−k−1(ij)(−1)jqi−k−j+(q−1)(ik+1)∑j=k+1−λk(−1)i−j(λk+1−j)(i−jk+1−j)).\left((-1)^{i-k}\binom{i-1}{k}+\sum_{j=0}^{i-k-1}\binom{i}{j}(-1)^{j}q^{i-k-j}+(q-1)\binom{i}{k+1}\sum_{j=k+1-\lambda}^{k}\frac{(-1)^{i-j}\binom{\lambda}{k+1-j}}{\binom{i-j}{k+1-j}}\right).

Witt spherical geometry design is a special class of Steiner systems S(3,q+1,ql+1)\mathrm{S}(3,q+1,q^{l}+1) admitting the projective linear group PGL(2,q)\mathrm{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,ps−12)C_{(q,q+1,3,\frac{p^s-1}{2})} whose minimum weight codewords support 3-designs, together with their dual codes, where q=pmq = p^m with pp a prime, m≥2m \geq 2 an integer, and ss an integer satisfying 1≤s≤m−11 \leq s \leq 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,ps−12)⊥C_{(q,q+1,3,\frac{p^s-1}{2})}^{\perp} isomorphic to the complementary design of the Witt spherical geometry design with parameters 3−(q+1,pgcd⁡(m,s)+1,1)3-(q+1,p^{\gcd(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,ps−12)C_{(q,q+1,3,\frac{p^s-1}{2})} and its dual code C(q,q+1,3,ps−12)⊥C_{(q,q+1,3,\frac{p^s-1}{2})}^{\perp}. 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=pmq = p^m with pp being a prime number and m≥2m \geq 2 being a positive integer, and let C(q,q+1,3,h)C_{(q,q+1,3,h)} denote the BCH code over Fq\mathbb{F}_q. Suppose that 2h+1≡pm′(modq+1)2h + 1 \equiv p^{m'} \pmod{q + 1}, where m′m' is a nonnegative integer. Let t=gcd⁡(m,m′)t = \gcd(m, m'). Then each of the following is true:

(i). If m′≡0(modm)m' \equiv 0 \pmod{m}, then C(q,q+1,3,h)C_{(q,q+1,3,h)} is an MDS code with parameters [q+1,q−2,4][q+1, q-2, 4].

(ii). If m′≢0(modm)m' \not\equiv 0 \pmod{m} and pt=2p^t = 2, then C(q,q+1,3,h)C_{(q,q+1,3,h)} is an MDS code with parameters [q+1,q−3,5][q+1, q-3, 5].

(iii). If m′≢0(modm)m' \not\equiv 0 \pmod{m} and pt>2p^t > 2, then C(q,q+1,3,h)C_{(q,q+1,3,h)} is an AMDS code with parameters [q+1,q−3,4][q+1, q-3, 4], and the minimum weight codewords in C(q,q+1,3,h)C_{(q,q+1,3,h)} support a 3−(q+1,4,pt−2)3-(q+1, 4, p^t - 2) design, denoted by D=(P,B)\mathbb{D} = (\mathbb{P}, \mathbb{B}) with P=Uq+1\mathbb{P} = U_{q+1} and

B={{πa,b,c,d(0,∞,1,ξ)∣ξ∈Fpt∗∖{1},{x,y,z}⊆Uq+1,x≠y≠z≠x},\mathbb{B}=\{\{\pi_{a,b,c,d}(0,\infty,1,\xi)\mid\xi\in\mathbb{F}_{p^{t}}^{*}\setminus\{1\},\{x,y,z\}\subseteq U_{q+1},x\neq y\neq z\neq x\},

where a=y(x−z)a = y(x - z), b=x−zb = x - z, c=x(z−y)c = x(z - y), d=z−yd = z - y, πa,b,c,d(ξ)=aξ+cbξ+d\pi_{a,b,c,d}(\xi) = \frac{a\xi + c}{b\xi + d} is a projective bijection between Fq∪{∞}\mathbb{F}_q \cup \{\infty\} and Uq+1U_{q+1}.

Theorem 1.3. Let q=pmq = p^m with pp being a prime number and m≥2m \geq 2 being a positive integer. Let C(q,q+1,3,h)⊥C_{(q,q+1,3,h)}^{\perp} be the dual code of the BCH code C(q,q+1,3,h)C_{(q,q+1,3,h)}. Suppose that 2h+1≡pm′(modq+1)2h + 1 \equiv p^{m'} \pmod{q + 1}, where m′m' is a nonnegative integer, and let t=gcd⁡(m,m′)t = \gcd(m, m'). Then each of the following is true:

(i). If m′≡0(modm)m' \equiv 0 \pmod{m}, then C(q,q+1,3,h)⊥C_{(q,q+1,3,h)}^{\perp} is an MDS code with parameters [q+1,3,q−1][q+1, 3, q-1].

(ii). If m′≢0(modm)m' \not\equiv 0 \pmod{m} and pt=2p^t = 2, then C(q,q+1,3,h)⊥C_{(q,q+1,3,h)}^{\perp} is an MDS code with parameters [q+1,4,q−2][q+1, 4, q-2],

(iii). If m′≢0(modm)m' \not\equiv 0 \pmod{m} and pt>2p^t > 2, then C(q,q+1,3,h)⊥C_{(q,q+1,3,h)}^{\perp} is a linear code with parameters [q+1,4,q−pt][q+1, 4, q-p^t], and the minimum weight codewords in C(q,q+1,3,h)⊥C_{(q,q+1,3,h)}^{\perp} support a 3−(q+1,q−pt,λ⊥)3-(q+1, q-p^t, \lambda^\perp) design, which is isomorphic to the complementary design of the Witt spherical geometry design with parameters 3−(q+1,pt+1,1)3-(q+1, p^t+1, 1), where λ⊥=(q−2pt+1)(q−2pt−2)\lambda^\perp = \frac{\binom{q-2}{p^t+1}}{\binom{q-2}{p^t-2}}. Moreover, the weight enumerator of C(q,q+1,3,h)⊥(S)\mathcal{C}_{(q,q+1,3,h)}^{\perp}(S) for any subset SS with ∣S∣=(q−3)+r≥q−2|S| = (q-3) + r \geq q-2 is

AC(q,q+1,3,h)⊥(S)(z)=1+(q−1)∏j=1r−1q−2+jλ+jzq−2−λ+∑i=q−1q−3+rzi(q−3+ri)A_{C_{(q,q+1,3,h)}^{\perp}(S)}(z)=1+(q-1)\prod_{j=1}^{r-1}\frac{q-2+j}{\lambda+j}z^{q-2-\lambda}+\sum_{i=q-1}^{q-3+r}z^{i}\binom{q-3+r}{i} ((−1)i−q+3(i−1q−3)+∑j=0i−q+2(ij)(−1)jqi−q+3−j+(q−1)(iq−2)∑j=q−ptq−3(−1)i−j(pt−2q−2−j)(i−jq−2−j)).\left((-1)^{i-q+3}\binom{i-1}{q-3}+\sum_{j=0}^{i-q+2}\binom{i}{j}(-1)^{j}q^{i-q+3-j}+(q-1)\binom{i}{q-2}\sum_{j=q-p^{t}}^{q-3}\frac{(-1)^{i-j}\binom{p^{t}-2}{q-2-j}}{\binom{i-j}{q-2-j}}\right).

In particular, the weight enumerator of C(q,q+1,3,h)⊥\mathcal{C}_{(q,q+1,3,h)}^{\perp} is obtained by taking S=⟨n⟩S = \langle n \rangle.

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.