Manuscript Offprint
arXiv:2610.34016MDS codes containing a fixed subcode over finite field extensions
Abstract
Let and let be a fixed -dimensional linear code. We study the maximum distance separable (MDS) codes over finite extensions of that contain the scalar extension of . Our approach constructs an auxiliary linear code from . Its full-weight words characterize the desired MDS completions. We prove that admits an MDS completion over some finite extension of if and only if . When this condition holds, the number of these MDS codes over is
where is a generator matrix of , is its represented derived matroid, and 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 code is maximum distance separable (MDS) if it attains the Singleton bound, that is, if its minimum distance is . Equivalently, every 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 , one may ask whether the union of its cyclic coordinate shifts is the whole space . The invariant is the largest codimension of a subspace with this property. Li and Yuan proved in [5, Theorem 2.1] that
This characterization has a natural interpretation in terms of MDS codes. Indeed, let be a nonzero cyclic code and set . Since the dual of a cyclic code is again cyclic, is also a cyclic code. Every nonzero defines a hyperplane containing , and this hyperplane is an MDS code precisely when has no zero coordinates. Consequently, is equivalent to the statement that every proper cyclic subspace of is contained in a hyperplane that is an MDS code. This motivates the study of MDS codes containing a prescribed subcode. We focus on the one-step case: given an arbitrary linear code , when can it be extended to an MDS code of dimension , 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 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.
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 and a prescribed -dimensional subcode . Throughout this paper, we refer to this fixed subcode as the seed, since it serves as the starting point from which the larger MDS code is constructed. For , let
be the scalar extension of to . Here the natural identification is given by . Thus tensoring with amounts to allowing coefficients from in linear combinations of vectors of . In particular, . We count
A code W in this set is a one-step MDS completion of : “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 such that ?
(ii) Can we determine explicitly for every ?
(iii) If such an extension exists, what is the smallest for which ?
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 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 ; equivalently, the seed U is MDS or almost MDS. Second, when this condition holds, for every ,
where is the represented derived matroid of a generator matrix of . Consequently, existence over is equivalent to . Third, the admissible extension degrees form a threshold interval , and has a support-cover interpretation and the bound .
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.
2.1 Linear codes, MDS codes, and scalar extensions
Throughout, and . We use row vectors for codewords and circuit vectors. For a matrix , we use the row-vector convention , identifying the usual column kernel with its transpose. Matrix columns and syndrome vectors are viewed as column vectors. For a vector , its Hamming weight is the number of its nonzero coordinates and its support is denoted by . A word has full weight, if all its coordinates are nonzero, that is, if its weight equals its length. The minimum distance of a nonzero linear code is . An code satisfies the Singleton bound . Its Singleton defect is
A code is MDS if this defect is zero and almost MDS (AMDS) if the defect is one. A generator matrix generates an MDS code if and only if each choice of k columns is linearly independent [1].
Two linear codes of the same length over the same field are monomially equivalent if one is obtained from the other by permuting coordinates and multiplying each coordinate by a nonzero field element.
For an extension field , write . For a finite extension of order , we abbreviate to ; in particular, . Submatrices of a matrix over have the same ranks after scalar extension, a fact that immediately controls the minimum distance.
Lemma 2.1. If has dimension and generator matrix , then
Here, for any subset , denotes the submatrix of A consisting of the columns indexed by . In particular, Hamming minimum distance is unchanged by scalar extension.
Proof. A word (with ) vanishes on a coordinate set exactly when . Such a nonzero coefficient vector exists exactly when the rows of are linearly dependent, i.e., rank .
The Hamming weight of xA is precisely , where S is its zero set. Thus minimizing the weight over all nonzero xA is equivalent to maximizing the size of a set S such that . This proves (2.1).
Finally, since extending the field does not change the rank of any submatrix, the minimum distance remains unchanged under scalar extension.
2.2 One-step directions and Plücker coordinates
Fix a -dimensional code , where , and put
Let be a finite extension and set . A -dimensional code containing is necessarily of the form for some . Two such vectors produce the same code if and only if their nonzero classes in differ by a scalar in . Thus, one-step directions are the points of , a projective space of dimension . In other words, a one-step direction is an equivalence class of candidate vectors , where we identify vectors that yield the same code.
On the other hand, the completed code itself, , is a k-dimensional subspace of . Recall that the Grassmannian parametrizes the k-dimensional subspaces of a fixed n-dimensional vector space. A full-rank matrix specifies a point of by its row space.
More explicitly, there are exactly maximal minors (each corresponding to a choice of columns). Ordered lexicographically, these minors form a vector in . If and are two full-rank matrices with the same row space, then for some . For every -subset ,
Thus all maximal minors are multiplied by the same nonzero scalar, so they determine a well-defined point in . These projective coordinates are the Plücker coordinates of the subspace [3].
In this geometric language, Proposition 2.2 states that a subspace corresponds to an MDS code if and only if all of its Plücker coordinates are nonzero.
Proposition 2.2. A full-rank matrix generates an MDS code if and only if each of its minors is nonzero. Equivalently, every Plücker coordinate of its row space in is nonzero.
Proof. A code is MDS if and only if every k columns of a generator matrix are linearly independent. Indeed, a dependence among some k columns is equivalent to the existence of a nonzero codeword vanishing on those k coordinates. The final statement follows because the maximal minors are precisely the Plücker coordinates [1, 3].
For the particular row-extension problem, only the elementary minor criterion above is necessary.
Example 2.3. Let , and extend scalars to of order . Appending gives
Its three maximal minors are , , and . Thus the resulting code is MDS precisely when the three entries of are pairwise distinct. There are such vectors. Since has size , adding any element of to yields distinct vectors in the same coset. Additionally, scaling this nonzero coset by any element in gives distinct cosets that define the same completion. Hence
In particular, there is no completion over , but there are two over .
2.3 Matroids, circuits, and represented derived matroids
Let be a matrix over . Its column matroid has ground set : a subset is independent exactly when the columns indexed by are linearly independent. The rank function is , and the rank of the matroid itself is . A circuit is a minimal dependent set. In particular, a zero column gives a loop (a one-element circuit), and two nonzero proportional columns form a two-element circuit. The uniform matroid is the rank-s matroid in which every subset of size at most is independent. A flat is a subset such that if an element has its column in the span of the columns indexed by , then (equivalently, is closed under the matroid closure). We use these notions in their usual representable-matroid sense [4].
For a matrix and a circuit of , minimal dependence gives a vector , unique up to a nonzero scalar, with . Such a vector is called a circuit vector. If has circuits, the represented derived matroid is the column matroid of the matrix whose columns are the transposes of chosen circuit vectors, one for each circuit [13]. Its ground set is therefore the set of circuits of , not the original set of coordinate positions. Different non-equivalent representations of an abstract matroid can yield different represented derived matroids; for this reason we retain the subscript .
For the row code U of G, note the canonical identification
where a vector acts on by the dot product . This elementary duality allows linear functionals on the quotient space to be evaluated via dot products in the original space. It is precisely the link between circuit vectors and the normals to the obstruction hyperplanes constructed later.
Example 2.4. Consider a matrix over :
Let be the ground set. Since has full row rank, its column matroid has rank 2.
• Circuits and flat: The columns 1 and 4 are identical, so is a two-element circuit. Similarly, and are three-element circuits. The set is a flat, as it contains all columns in its span. (If we remove column 4, the remaining matroid becomes the uniform matroid ).
• Derived matroid: The corresponding circuit vectors (in ) are , , and . The represented derived matroid is the column matroid of the matrix . Since , the set forms a circuit in the derived matroid itself.
• Duality: Take and . For any representative of the coset (e.g., ), the dot product remains 0. This illustrates the well-defined action of .
2.4 Hyperplane arrangements and characteristic polynomials
A central hyperplane arrangement in a vector space V is a finite family of hyperplanes (i.e., kernels of nonzero linear forms ). Proportional forms define the same hyperplane; an arrangement will be understood as a collection of distinct hyperplanes. Its normal matroid is represented by choosing one nonzero normal vector for each hyperplane. The arrangement has full rank if these normals span the dual space .
For a rank-s matroid M on a finite ground set E, its characteristic polynomial is defined by
If has a loop, this polynomial is identically zero. If is loopless and represented by a full-row-rank matrix over with rows, then counts the vectors in that avoid the associated hyperplanes, as proved in Proposition 3.10.
Example 2.5. Let M be the uniform matroid . Here the ground set is and the rank is s = 2. By definition, every subset of size at most 2 is independent, while the only dependent set is the full set E itself.
To compute the characteristic polynomial using (2.2), we group the subsets by their sizes:
• : , . The term is .
• : There are 3 such subsets, and all have rank 1. The terms are .
• : There are 3 such subsets, and all have rank 2. The terms are .
• : There is 1 such subset (the whole set), which is dependent, so its rank is 2. The term is .
Summing these terms gives the characteristic polynomial:
2.5 Coset distances, covering radii, and syndromes
Let be an extension field. For a coset in , define its coset distance and the covering radius by
A coset at distance is called a deep-hole coset; its elements are called deep holes.
An information set of is a subset of size for which the coordinate projection is an isomorphism; equivalently, the columns indexed by form a nonsingular square submatrix of a generator matrix of .
To bound this distance, recall that has dimension , so an information set of has size . For any candidate vector , we can subtract a suitable word of to make it zero on such an information set. After this matching, only the remaining coordinates can possibly be nonzero. Consequently, every coset has a representative of weight at most , yielding the redundancy bound:
To explicitly represent these cosets, let be an parity-check matrix of , with full row rank, so that . The syndrome of is defined as . Since the kernel of this map is precisely , the first isomorphism theorem provides a canonical identification between the abstract quotient space and the concrete vector space :
This identification represents quotient vectors in as syndrome vectors in ; the corresponding one-step directions are points of . In this syndrome space, the obstruction hyperplanes can be described geometrically using the columns of (as detailed in Section 3.7).
3 Main results
3.1 Statement of the main theorem
We first state the main theorem. Its proof will be completed in Section 3.5.
Theorem 3.1. Let have dimension , , and let be a generator matrix of . Put .
If , then no finite scalar extension of has an one-step MDS completion.
Assume . Then for every , with ,
Equivalently, admits such a completion if and only if .
3.2 The Plücker extension code and the full-support criterion
We first work over the base field. Choose a full-rank generator matrix of . Appending a row gives
For , the row space of is a candidate completion. For a -subset , let be the submatrix with column set , and define
To understand this form, expanding the determinant along the last row shows that is a linear functional in . Furthermore, it is well-defined on the quotient space : replacing by (for some ) amounts to adding a row from to the last row, which leaves the determinant unchanged. If is replaced by another generator matrix of the same , every is multiplied by the same nonzero scalar (the determinant of the change-of-basis matrix). Thus the kernels of these forms are intrinsic to the code . A nonzero form defines a proper hyperplane, whereas a zero form has kernel equal to all of .
By Proposition 2.2, an appended generator matrix gives an MDS code exactly when all its maximal minors are nonzero. Collecting these minors as coordinates of an auxiliary linear code turns the completion problem into a full-weight problem. The code has length , with one coordinate for each maximal minor.
Definition 3.2. Define
and let
We call the Plücker extension code of U.
Every word of records the maximal minors of for one quotient vector. Moreover, the map is injective. Indeed, if , all minors of vanish, so rank . Since has rank , this forces and thus . It follows that
For an extension field , the natural identification gives the scalar-extended forms
These forms are well-defined because adding any to the last row leaves the determinant unchanged. When the field is clear, we also write for . Write and denote by the scalar extension of . The corresponding maximal minors are the coordinates of .
Example 3.3. Consider the code
from Example 2.3. A generator matrix of is . Every coset in has a unique representative , where . Appending this row gives
Its three maximal minors, indexed by , , and , are a, b, and , respectively. Thus
and hence
In particular, is a linear code with generator matrix
It has no full-support word over . However, over , the scalar-extended code contains the full-weight word , where .
The following correspondence is the central reduction used throughout the paper.
Theorem 3.4. For every extension field , the following are equivalent:
(i) contains a word of weight ;
(ii) is contained in an MDS code.
More precisely, the MDS completions of are in bijection with the one-dimensional K-subspaces of spanned by full-weight words.
Proof. After scalar extension, every word of has the form
for some . This word has weight if and only if all the corresponding maximal minors of are nonzero. By Proposition 2.2, this is equivalent to the row space being an MDS code.
To see the bijection, note that two nonzero vectors and determine the same completion if and only if they differ by a nonzero scalar in . Since is injective, the same holds for their images in , which completes the proof.
Remark 3.5. Although not required for the counting proof, the same construction admits a useful basis-free description via exterior algebra. Let be the rows of G and set
The map
is well-defined and injective, and its coordinates with respect to the standard exterior basis are precisely . Consequently, its image is the canonically embedded , whose projectivization is the linear Schubert subspace
See [3] for this Grassmannian description. When , the canonical embedding even determines the seed:
Indeed, every annihilates . Conversely, if , choose ; then . This observation provides additional geometric insight, though it is not required for the subsequent arguments.
3.3 The distance obstruction
Before counting the allowed directions, we must ensure that none of the linear forms vanish identically. Indeed, by Theorem 3.4, an MDS completion requires a full-weight word in the Plücker extension code, meaning all coordinates must be nonzero. A zero form would impose an impossible condition over every scalar extension. For any subset , we denote by the submatrix of formed by the columns indexed by .
Lemma 3.6. For every subset of size ,
Proof. Write . Expanding along the last row gives
Thus, the form vanishes identically if and only if all the minors of vanish. This occurs precisely when .
Combining Lemma 3.6 with the distance-rank formula (2.1), we obtain a purely structural criterion for the seed code . For an integer , we denote by the family of all -element subsets of .
Corollary 3.7. The following are equivalent:
(i) for every ;
(ii) for every ;
(iii) .
If these conditions fail, no scalar extension of U admits an MDS completion.
Proof. First, Lemma 3.6 directly establishes the equivalence (i)⇔(ii).
Next, by (2.1), condition (ii) means that the zero set of any nonzero word in has size at most . This is precisely the statement that , proving (ii) (iii).
Finally, if any determinant form is identically zero, it remains zero after any scalar extension. By Theorem 3.4, this obstructs MDS completion over all extension fields.
Since has dimension , the Singleton bound yields . Therefore, the condition means exactly that is either MDS or almost MDS (AMDS). The condition is exactly that no coordinate of vanishes identically; a full-weight word may nevertheless require scalar extension.
3.4 Identification of the derived matroid
The full-weight condition requires all coordinate forms to be nonzero on the same quotient vector. To count such vectors, we identify the distinct nonzero forms up to scalar and determine the linear dependencies among them. The following construction relates these forms to the circuits of the seed's column matroid.
While is a linear form on the quotient space , the duality from Section 2.3 allows us to represent these forms concretely. For , we define a vector by
By Laplace expansion, is a cofactor vector representing the form :
This shows that is a concrete representative of the form . When , it is a normal vector to the hyperplane . Some may be zero, and different nonzero may be proportional, in which case they define the same hyperplane. The following theorem precisely identifies these distinct nonzero normal lines using the column circuits of .
Theorem 3.8. Let G have full row rank k - 1, and let U be its row space. For every k-subset :
(i) if and only if ;
(ii) if , then is the unique circuit of contained in ;
(iii) every circuit vector of occurs, up to a nonzero scalar, among the nonzero .
Consequently, after deleting the zero forms and identifying proportional forms, the normal matroid of the arrangement defined by the nonzero is exactly . This arrangement has rank .
If , all the forms are nonzero. Over any extension field, the projectivization of the complement of the scalar-extended arrangement parametrizes the MDS completions. Conversely, if , some vanishes identically, meaning no MDS completion exists over any scalar extension.
Proof. Part (i) is a direct consequence of Lemma 3.6.
For Part (ii), assume . Then rank , which implies that the kernel ker is one-dimensional. The restriction of to is a nonzero vector in this kernel, meaning the columns of indexed by are linearly dependent.
To see that this dependence is minimal, suppose a proper subset of were also dependent. Then there would exist a nonzero vector in whose support is strictly smaller than . But since is one-dimensional, every nonzero vector in it is merely a scalar multiple of , and scaling cannot change the support size. This is a contradiction. Hence, is a minimal dependent set (a circuit). Moreover, the one-dimensionality of guarantees that this is the unique circuit contained in .
For Part (iii), let be an arbitrary circuit of , and choose an element . Since is minimal, is an independent set, which can be extended to a basis of . Because lies in the span of , adding to would create a cycle; therefore, . Now, define . Then and . By the independence of , remains the unique circuit contained in . Applying Part (ii), the vector is a nonzero scalar multiple of the circuit vector . Thus, every circuit vector occurs among the nonzero .
By (3.6), each nonzero acts as a normal vector to the hyperplane . While proportional vectors define the same hyperplane, vectors from distinct circuits cannot be proportional since their supports differ. Therefore, the distinct nonzero normal lines are in bijection with the circuits of , and their vector matroid is exactly the derived matroid .
We claim that the circuit vectors span ker G. Let . Its support must contain some circuit C. Choose . Since is nonzero at the e-th coordinate, we can subtract a suitable scalar multiple of from x to eliminate its -th coordinate (akin to Gaussian elimination). Because , this operation strictly reduces the support size of without introducing any new nonzero coordinates. By induction on the support size, can be expressed as a linear combination of circuit vectors. Hence,
Thus, the arrangement has full rank r.
Remark 3.9. The represented derived matroid is attached to the fixed code U, not to a choice of its basis. Two generator matrices of U differ by left multiplication by an element of ; this does not alter ker G or the projective circuit vectors. Thus the isomorphism type of and its characteristic polynomial are independent of the generator matrix of U.
3.5 Exact counting of MDS completions
By Theorem 3.4, the MDS completions of correspond to the one-dimensional subspaces of spanned by full-weight words. Thus, counting completions reduces to counting full-weight words in an auxiliary linear code and then identifying nonzero scalar multiples. We first recall a general counting identity.
Proposition 3.10. Let be a linear code of dimension with generator matrix . For every ,
Proof. Put . Since A has row rank s, the map
is an isomorphism. Write the columns of as . Then has full weight precisely when for every .
For each , put . For any ,
Inclusion-exclusion therefore gives
This also covers degenerate codes: if A has a zero column, both sides are zero.
We now apply this identity to the Plücker extension code. The identification of its coordinate forms in Theorem 3.8 turns the general full-weight count into the claimed MDS completion formula.
Proof of Theorem 3.1. Put . If , Corollary 3.7 shows that some determinant form vanishes identically. Hence no scalar extension of has an MDS completion.
Assume . Choose a basis of and let be the generator matrix of obtained from the map . Its columns are the coefficient vectors of the determinant forms in the chosen basis. By Theorem 3.4 and Proposition 3.10,
Here the division by Q - 1 identifies the nonzero scalar multiples that determine the same completion.
By Corollary 3.7, every is nonzero, so has no zero column. Theorem 3.8 identifies the distinct columns of , up to nonzero scalars, with the circuit vectors representing . Since deleting parallel elements does not change the characteristic polynomial of a loopless matroid,
Consequently,
In particular, an MDS completion exists over if and only if .
3.6 First extension degree, bounds, and invariance
The counting formula determines the number of MDS completions over each extension field. We next determine when full-weight words first appear after scalar extension. The underlying principle applies to arbitrary linear codes; it does not require an MDS hypothesis.
Lemma 3.11. Let , where , be a linear code of dimension , and let be the column matroid of a generator matrix of . The following are equivalent:
(i) C is nondegenerate, that is, no coordinate vanishes identically on C;
(ii) contains a full-weight word for some .
If these conditions hold, set
Then
and, in particular,
Proof. If a coordinate vanishes on every word of C, it also vanishes on every word of each scalar extension. Thus the existence of a full-weight word over an extension implies that C is nondegenerate.
Conversely, suppose is nondegenerate. Every coordinate is nonzero on at least one word of , so finitely many words have supports covering and is well-defined. Moreover, the supports of the rows of a generator matrix cover , giving .
Suppose that has full weight. Choose an -basis of . We may write
Since has no zero coordinate, the supports of cover . Therefore .
Conversely, choose whose supports cover . For any , take elements that are linearly independent over , and put
At every coordinate, at least one coefficient from the corresponding is nonzero. Hence that coordinate of cannot vanish, because doing so would give a nontrivial -linear relation among the . Thus has full weight.
We have proved that contains a full-weight word exactly when . By Proposition 3.10, this is equivalent to , giving (3.9) and the stated formula for the least extension degree.
In particular, every nondegenerate linear code has a full-weight word over every extension of degree at least s. The threshold property is not merely a consequence of field inclusion: need not be a subfield of . For the Plücker extension code, the same principle determines the first degree at which an MDS completion appears.
Corollary 3.12. Assume , and put
Then, for every ,
Moreover, is the minimum number of words in the Plücker extension code whose supports cover all its coordinates. In particular,
Proof. By Corollary 3.7, no coordinate of vanishes identically. Thus is nondegenerate, and it has dimension . By Theorem 3.4, has an MDS completion precisely when contains a full-weight word. Lemma 3.11, applied to , shows that this happens exactly when and that . By Theorem 3.1, the same condition is equivalent to . Hence .
Example 3.13. We give two examples with different first completion degrees. Throughout, let .
(i) Degree two. Consider from Example 3.3. As shown there,
Over , a word has full weight precisely when a and b are linearly independent over . Hence
(ii) Degree three. Let be the binary [7, 4, 3] Hamming code with parity-check matrix
The seven nonzero words of all have weight 4 and are precisely the circuit vectors of the column matroid of a generator matrix of . By Theorem 3.8, the distinct coordinate forms of are the seven nonzero binary linear forms in three variables.
Thus contains a full-weight word if and only if there exist such that
are all nonzero. This is equivalent to being linearly independent over , which is possible precisely when . Consequently,
There are such triples, so
In particular, has no MDS completion over or , but has 24 completions over .
The general full-weight principle also gives a simple existence criterion for the seed: all determinant coordinates must be nonzero forms, and this condition is sufficient after a finite extension.
Corollary 3.14. Let have dimension , and put . The following are equivalent:
(i) U admits an MDS completion over some finite scalar extension;
(ii)
(iii)
Proof. Necessity follows from Corollary 3.7, and sufficiency from Corollary 3.12. Since , the Singleton defect is , so (ii) and (iii) are equivalent.
To bound the first completion degree more explicitly, let
be the number of circuits of the column matroid of . When , Theorem 3.8 shows that is exactly the number of distinct obstruction hyperplanes.
Proposition 3.15. Assume . Then
In particular,
Proof. Put and . We first show that at most distinct proper hyperplanes cannot cover a -dimensional vector space over .
If , the only proper hyperplane is and the assertion is immediate. Suppose , and let be distinct hyperplanes with . Each has elements, and for the intersection has elements. Consequently,
Thus the complement of their union is nonempty.
By Theorem 3.8, the obstruction arrangement of has exactly distinct hyperplanes. Therefore an MDS completion exists whenever , giving (3.11).
Every circuit of occurs as the unique circuit within some k-subset, so Theorem 3.8 also gives . Combining this with (3.11) and from Corollary 3.12 proves (3.12).
Remark 3.16. If is an MDS code, then , whose circuits are precisely the -subsets of . Hence
Corollary 3.17. Assume . If
then U has an one-step MDS completion. In particular, every MDS seed satisfying
admits a one-step MDS completion over the base field.
Proof. Apply Proposition 3.15 with and then Theorem 3.1. For an MDS seed, Remark 3.16 gives .
Finally, although the counting formula is expressed using a generator matrix, the resulting counts depend only on the monomial equivalence class of the seed.
Lemma 3.18. Let M be an invertible monomial matrix over . For every finite extension , the map
gives a bijection between the MDS completions of and those of . Consequently, the completion counts over all finite scalar extensions, and the first completion degree whenever defined, are invariant under monomial equivalence of U.
Proof. Right multiplication by M bijects the k-dimensional subspaces containing with those containing . Since a monomial transformation preserves Hamming weights, it also preserves the MDS property. Thus the completion counts agree over each extension, and so do their first nonzero degrees whenever defined.
3.7 Coset distances, syndromes, and deep holes
Covering radii and deep holes have received sustained attention in coding theory, particularly for Reed–Solomon and projective Reed–Solomon codes. Kaipa studied the connection between deep-hole classification and MDS extensions of Reed–Solomon codes [7], while Zhang, Wan, and Kaipa investigated the construction and classification of deep holes of projective Reed–Solomon codes [8]. From a counting perspective, Jurrius and Pellikaan developed a framework for extended coset leader weight enumerators using derived codes, hyperplane arrangements, and characteristic polynomials [12].
When , the full-weight condition in has an equivalent interpretation in terms of coset distance. This connects the same completion problem with covering radii and deep holes. We begin by identifying the minimum distance of a one-step span.
Proposition 3.19. If , then
Consequently, if , then
Proof. Every nonzero word in either belongs to or has the form
Since multiplication by preserves Hamming weight,
As ranges over , the minimum weight among such words is exactly
Together with , this proves (3.13). If , then the redundancy bound gives (3.14).
Thus, when , the MDS completion problem can equally be phrased as the problem of finding cosets at the largest distance allowed by the redundancy bound (2.4). For MDS seeds, the connection between row augmentation and deep holes is given in [6, Lemma 6].
Proposition 3.20. Assume , and let
be an parity-check matrix of U. For every field extension , the syndrome map
is a K-linear isomorphism.
If has size and , then
Consequently, in syndrome coordinates, the obstruction arrangement defined by the nonzero forms is transformed into the arrangement formed by the spans of the -subsets of the parity-check columns.
Proof. First, the map has kernel and rank . By the first isomorphism theorem, it induces the stated -linear isomorphism .
Next, fix with , and let . Since , Corollary 3.7 guarantees that . Recall that the linear form evaluated at is precisely the determinant . Thus, if and only if the rows of are linearly dependent, which means the coordinates lie in the row space of . Equivalently, there exists a codeword such that the restriction equals .
Because , the difference is a vector supported entirely on . Furthermore, since , the parity-check equations give . Therefore, and share the same syndrome:
Finally, since is supported on , its syndrome lies in the span . Conversely, every vector in this span is the syndrome of some vector supported on . Since vectors with the same syndrome differ by an element of , this establishes the bijection
which proves (3.15).
The same correspondence yields a count of top-distance cosets and, when the covering radius reaches r, of deep-hole words.
Theorem 3.21. Let have dimension and assume
Let G generate U. For every , put . Then
Equivalently,
Whenever these equivalent conditions hold, the cosets counted in (3.16) are precisely the deep-hole cosets of . Consequently, the number of deep-hole words is
In particular,
Proof. Put . By Proposition 3.19, since , for every ,
Moreover, nonzero scalar multiples of a coset have the same distance from , and each such scalar class contains exactly cosets. Therefore Theorem 3.1 gives
Since the redundancy bound gives
a coset of distance exists if and only if . This proves
When , the cosets counted above are precisely the deep-hole cosets. Each contains
words, so the number of deep-hole words is
Finally, taking the least m for which these equivalent conditions hold gives the stated formula for the first extension degree.
Example 3.22. Return to the code from Example 2.3. Let and . A parity-check matrix of is
Its three columns represent distinct points of PG(1, Q).
Under the syndrome isomorphism , a coset has distance 2 from precisely when its syndrome lies outside the three one-dimensional subspaces spanned by the columns of . Since these subspaces intersect only at zero, the number of such syndromes is
Consequently,
For , the number of deep-hole cosets is , and the number of deep-hole words is
Dividing the number of distance-2 cosets by Q - 1 recovers , as obtained in Example 2.3.
4 Examples
The two examples illustrate both the information carried by the full-weight count and its limitations. The first gives seeds with the same column matroid and Hamming weight enumerator but different completion counts and first completion degrees. The second gives monomially inequivalent seeds with identical counts over every finite scalar extension. In both cases, the completion count is the number of full-weight words in the associated Plücker extension code divided by Q - 1.
Throughout this section, , and the coordinate positions are kept fixed. When a seed is specified by a parity-check matrix, G denotes an arbitrary generator matrix of that seed.
4.1 Different counts for the same column matroid
We first show that the completion count is not determined by the ordinary column matroid, even together with the Hamming weight enumerator.
Proposition 4.1. Over , let
Then and are both MDS codes with column matroid and Hamming weight enumerator
For every , their numbers of MDS completions are
Thus their completion counts differ over every finite scalar extension, although their column matroids and weight enumerators coincide. Moreover,
Proof. Direct computation shows that every minor of and is nonzero. Hence both and are MDS codes with column matroid and weight enumerator
Let be a generator matrix of . Computing the characteristic polynomials of the corresponding represented derived matroids gives
Theorem 3.1 therefore yields
In particular, and , whereas . Thus and .
4.2 Identical counts for inequivalent seeds
The preceding example shows that completion counts can distinguish some seeds. The converse fails: the next two explicit matrices give inequivalent MDS seeds with identical counts over every scalar extension.
Proposition 4.2. Over , let
Then and are monomially inequivalent MDS codes, but for every ,
Thus the completion counts over all finite scalar extensions do not determine the seed up to monomial equivalence.
Proof. All minors of and are nonzero, so both codes are MDS codes. For either code, the represented derived matroid is , with characteristic polynomial
Theorem 3.1 therefore gives
To establish inequivalence, a direct computation of the monomial automorphism groups gives
Since monomially equivalent codes have conjugate monomial automorphism groups, the two codes are not monomially equivalent.
5 Conclusion
Using the full-weight correspondence for the Plücker extension code, we have shown that a fixed -dimensional code admits an MDS completion over some finite extension if and only if . Under this condition, the number of completions over is
so existence at a given extension degree is equivalent to positivity of the numerator. The first extension degree at which a full-weight word appears equals the minimum size of a support cover in and admits explicit upper bounds.
The characteristic polynomial also has a metric interpretation: it counts cosets at the redundancy distance and, when the covering radius equals that distance, determines the number of deep-hole words. The two examples show that completion counts capture information beyond ordinary code parameters and the column matroid, while equality of these counts over all finite extensions does not imply monomial equivalence.
Acknowledgments
We would like to express our sincere gratitude to the editor for their insightful comments and constructive suggestions. These valuable feedbacks have significantly helped us improve the organization and clarity of this manuscript.
Funding
This work was supported by the National Natural Science Foundation of China (grant numbers 12571003 and 12501006) and the Basic and Applied Basic Research Foundation of Guangdong Province (grant number 2024A1515010589).
AI Use Declaration
During the preparation and revision of this manuscript, generative AI tools were used for literature searches, comparisons with related work, and finding examples. The mathematical claims, proofs, and final presentation remain the responsibility of the authors.
Data Availability
No datasets were generated or analysed during the current study.
Competing Interests
The authors declare no competing interests.
References
[1] W. C. Huffman, V. Pless, Fundamentals of Error-Correcting Codes, Cambridge University Press, Cambridge, 2003.
[2] S. Ball, M. Lavrauw, Arcs in finite projective spaces, EMS Surv. Math. Sci. 6 (1–2) (2019), 133–172. https://doi.org/10.4171/EMSS/33.
[3] J. Harris, Algebraic Geometry: A First Course, Graduate Texts in Mathematics 133, Springer, New York, 1992.
[4] J. Oxley, Matroid Theory, 2nd ed., Oxford Graduate Texts in Mathematics 21, Oxford University Press, Oxford, 2011.
[5] Y. Li, P. Yuan, Cyclic codes and cyclically covering subspaces over finite fields, Designs, Codes and Cryptography 94, 214 (2026). https://doi.org/10.1007/s10623-026-01956-1.
[6] Y. Wu, C. Ding and T. Chen, When does the extended code of an MDS code remain MDS?, IEEE Trans. Inform. Theory 71(1) (2025), 263–272. https://doi.org/10.1109/TIT.2024.3494813.
[7] K. Kaipa, Deep holes and MDS extensions of Reed–Solomon codes, IEEE Trans. Inform. Theory 63 (8) (2017), 4940–4948. https://doi.org/10.1109/TIT.2017.2706677.
[8] J. Zhang, D. Wan, K. Kaipa, Deep holes of projective Reed–Solomon codes, IEEE Trans. Inform. Theory 66 (4) (2020), 2392–2401. https://doi.org/10.1109/TIT.2019.2940962.
[9] E. Camps-Moreno, E. Gorla, H. H. López, Code distances: a new family of invariants of linear codes, Des. Codes Cryptogr., to appear. arXiv:2509.16424v2, 27 August 2026. https://arxiv.org/abs/2509.16424v2.
[10] R. Pellikaan, On the existence of error-correcting pairs, J. Statist. Plann. Inference 51 (2) (1996), 229–242. https://doi.org/10.1016/0378-3758(95)00088-7.
[11] P. Wang, J. Luo, Extension of MDS Codes over Finite Fields, arXiv:2610.31023, 2026. https://arxiv.org/abs/2610.31023.
[12] R. Jurrius, R. Pellikaan, The coset leader and list weight enumerator, in: G. M. Kyureghyan, G. L. Mullen, A. Pott (Eds.), Topics in Finite Fields, Contemp. Math. 632, Amer. Math. Soc., Providence, RI, 2015, pp. 229–251. https://doi.org/10.1090/comm/632/12631. Corrected author version, 7 November 2019: https://ruudp.win.tue.nl/paper/71.pdf.
[13] J. Oxley, S. Wang, Dependencies among dependencies in matroids, Electron. J. Combin. 26 (3) (2019), Paper No. 3.46. https://doi.org/10.37236/8742.