arXiv:2610.34016cs.ITOct 2026

Manuscript Offprint

arXiv:2610.34016

MDS codes containing a fixed subcode over finite field extensions

Yangcheng Li, Pingzhi Yuan

Abstract

Let 2≤k≤n2 \leq k \leq n and let U≤FqnU \leq \mathbb{F}_q^n be a fixed (k−1)(k-1)-dimensional linear code. We study the [n,k][n, k] maximum distance separable (MDS) codes over finite extensions of Fq\mathbb{F}_q that contain the scalar extension of UU. Our approach constructs an auxiliary linear code from UU. Its full-weight words characterize the desired MDS completions. We prove that UU admits an [n,k][n, k] MDS completion over some finite extension of Fq\mathbb{F}_q if and only if d(U)≥n−k+1d(U) \geq n - k + 1. When this condition holds, the number of these MDS codes over Fqm\mathbb{F}_{q^m} is

#{W≤Fqmn:U⊗FqFqm⊆W,dim⁡FqmW=k,WisMDS}=χδGM(G)(qm)qm−1,\#\left\{W\leq\mathbb{F}_{q^{m}}^{n}:U\otimes_{\mathbb{F}_{q}}\mathbb{F}_{q^{m}}\subseteq W,\dim_{\mathbb{F}_{q^{m}}}W=k,W is MDS\right\}=\frac{\chi_{\delta_{G}M(G)}(q^{m})}{q^{m}-1},

where GG is a generator matrix of UU, δGM(G)\delta_G M(G) is its represented derived matroid, and χδGM(G)\chi_{\delta_G M(G)} is its characteristic polynomial. In particular, the formula determines existence over each extension field and the least extension degree for which such an MDS code exists. Examples show that these counts may distinguish different representations of the same column matroid, while monomially inequivalent codes may have identical counts over every finite extension.

Keywords: MDS codes; full-support words; Plücker coordinates; derived matroids; characteristic polynomials.

2020 Mathematics Subject Classification: Primary 94B05; Secondary 05B35, 94B27, 94B75.

1 Introduction

A linear [n,k]q[n, k]_q code is maximum distance separable (MDS) if it attains the Singleton bound, that is, if its minimum distance is n−k+1n - k + 1. Equivalently, every kk columns of a generator matrix are linearly independent. This criterion links MDS codes to arcs in finite projective spaces and underlies much of their theory of existence, construction, and classification; see [1, 2]. Those problems typically seek an entire MDS code. A different problem arises when part of the desired code has already been fixed: can one preserve that subcode while completing it to an MDS code?

Our motivation comes from a covering problem involving cyclic shifts of linear subspaces. Given a subspace V≤FqnV \leq \mathbb{F}_q^n, one may ask whether the union of its cyclic coordinate shifts is the whole space Fqn\mathbb{F}_q^n. The invariant hq(n)h_q(n) is the largest codimension of a subspace with this property. Li and Yuan proved in [5, Theorem 2.1] that

hq(n)=0⟺every nonzero cyclic code in Fqncontains a full−weight word.h_{q}(n)=0\quad\Longleftrightarrow\quad\mathrm{e v e r y~n o n z e r o~c y c l i c~c o d e~i n~}\mathbb{F}_{q}^{n}\mathrm{c o n t a i n s~a~f u l l-w e i g h t~w o r d}.

This characterization has a natural interpretation in terms of MDS codes. Indeed, let CC be a nonzero cyclic code and set U=C⊥U = C^\perp. Since the dual of a cyclic code is again cyclic, UU is also a cyclic code. Every nonzero a∈Ca \in C defines a hyperplane a⊥a^\perp containing UU, and this hyperplane is an MDS [n,n−1][n, n-1] code precisely when aa has no zero coordinates. Consequently, hq(n)=0h_q(n) = 0 is equivalent to the statement that every proper cyclic subspace of Fqn\mathbb{F}_q^n is contained in a hyperplane that is an MDS [n,n−1][n, n-1] code. This motivates the study of MDS codes containing a prescribed subcode. We focus on the one-step case: given an arbitrary linear code UU, when can it be extended to an MDS code of dimension dim⁡U+1\dim U + 1, and how many such completions exist over finite field extensions?

The existence of nested MDS codes over sufficiently large scalar extensions is connected with Pellikaan's construction of error-correcting pairs [10, Proposition 5.1]. In the parameter range considered below, applying this result to U⊥U^{\perp} and dualizing provides a finite-extension MDS completion whenever the necessary distance condition holds. Related existence results for MDS seeds follow from [9, Theorem 6.6]. These results concern whether a completion can be found; our aim is to count completions over each extension and determine the first extension degree exactly.

Wu, Ding, and Chen [6] characterized when a one-coordinate extension of an MDS code remains MDS in terms of the covering radius and deep holes of its dual. Wang and Luo [11] recently developed an iterative algorithm for

∗^{*}Corresponding author. Email: liyc@m.scnu.edu.cn.

†^{\dagger}Email: yuanpz@scnu.edu.cn.

extending non-Reed–Solomon MDS codes by adding a coordinate. Our work studies dimension-increasing MDS completions at fixed length and determines their exact numbers over finite field extensions.

Fix integers 2≤k≤n2 \leq k \leq n and a prescribed (k−1)(k-1)-dimensional subcode U≤FqnU \leq \mathbb{F}_q^n. Throughout this paper, we refer to this fixed subcode UU as the seed, since it serves as the starting point from which the larger MDS code is constructed. For Q=qmQ = q^m, let

UQ=U⊗FqFQ≅span⁡FQ(U)⊆FQnU_{Q}=U\otimes_{\mathbb{F}_{q}}\mathbb{F}_{Q}\cong\operatorname{s p a n}_{\mathbb{F}_{Q}}(U)\subseteq\mathbb{F}_{Q}^{n}

be the scalar extension of UU to FQ\mathbb{F}_Q. Here the natural identification is given by u⊗a↦auu \otimes a \mapsto au. Thus tensoring with FQ\mathbb{F}_Q amounts to allowing coefficients from FQ\mathbb{F}_Q in linear combinations of vectors of UU. In particular, dim⁡FQUQ=dim⁡FqU=k−1\dim_{\mathbb{F}_Q} U_Q = \dim_{\mathbb{F}_q} U = k - 1. We count

NU(Q)=#{W≤FQn:UQ⊆W,dim⁡FQW=k,WisMDS}.(1.1)N_{U}(Q)=\#\{W\leq\mathbb{F}_{Q}^{n}:U_{Q}\subseteq W,\operatorname{d i m}_{\mathbb{F}_{Q}}W=k,W is MDS\}. \tag{1.1}

A code W in this set is a one-step MDS completion of UQU_Q: “one-step” means that the dimension is increased by one while the length is unchanged. We work in fixed coordinate positions: (1.1) counts actual subspaces, not monomial-equivalence classes.

The problem naturally leads to three questions:

(i) Does there exist a finite extension Fqm\mathbb{F}_{q^m} such that NU(qm)>0N_U(q^m) > 0?

(ii) Can we determine NU(qm)N_U(q^m) explicitly for every m≥1m \geq 1?

(iii) If such an extension exists, what is the smallest m≥1m \geq 1 for which NU(qm)>0N_U(q^m) > 0?

Our approach is inspired by the full-weight perspective arising from the cyclic covering problem. With a generator matrix of the seed fixed, the maximal minors of an appended generator matrix depend linearly on the appended row. Their values form the Plücker extension code P(U)\mathcal{P}(U) of Definition 3.2. Over each scalar extension, its full-weight words, modulo nonzero scalars, correspond exactly to the desired MDS completions, as established in Theorem 3.4.

This correspondence leads to the following results. First, a finite-extension MDS completion exists if and only if d(U)≥r=n−k+1d(U) \geq r = n - k + 1; equivalently, the seed U is MDS or almost MDS. Second, when this condition holds, for every Q=qmQ = q^m,

NU(Q)=#{c∈P(U)Q:wt(c)=(nk)}Q−1=χδGM(G)(Q)Q−1,N_{U}(Q)=\frac{\#\{c\in\mathcal{P}(U)_{Q}:\mathrm{wt}(c)=\binom{n}{k}\}}{Q-1}=\frac{\chi_{\delta_{G}M(G)}(Q)}{Q-1},

where δGM(G)\delta_G M(G) is the represented derived matroid of a generator matrix GG of UU. Consequently, existence over Fqm\mathbb{F}_{q^m} is equivalent to χδGM(G)(qm)>0\chi_{\delta_G M(G)}(q^m) > 0. Third, the admissible extension degrees form a threshold interval m≥m0(U)m \geq m_0(U), and m0(U)m_0(U) has a support-cover interpretation and the bound m0(U)≤min⁡{r,max⁡{1,⌈log⁡q(nk)⌉}}m_0(U) \leq \min\{r, \max\{1, \lceil \log_q \binom{n}{k} \rceil\}\}.

The paper is organized as follows. Section 2 collects the coding-theoretic, matroidal, arrangement-theoretic, and metric background used later. Section 3 develops the full-weight correspondence, identifies the derived matroid, and derives the counting and extension-degree results together with their covering-radius interpretation. Section 4 presents two explicit examples illustrating the information captured by the counts and their limitations. Section 5 summarizes the main results.