Manuscript Offprint
arXiv:2610.39364A Uniform Upper Bound on the Length of MDS Codes from Genus-Two Curves
Abstract
We study the maximal length of MDS algebraic geometry codes from genus-two curves over finite fields. Let be such a code over , with length and dimension . Assume that . We prove that . This bound holds for every prime power and for both parities of . It gives a uniform upper bound of for the maximal length. The explicit bound is strictly smaller than when .
Index Terms: MDS codes, Hyperelliptic curves, Algebraic geometry codes, Function fields.
I. INTRODUCTION
Maximum distance separable (MDS) codes are optimal linear codes with respect to the Singleton bound. A linear code over has length , dimension , and minimum distance , and is called MDS if . Their optimal distance properties make MDS codes fundamental objects in coding theory; see [1]. In addition to the classical questions about their possible parameters, MDS codes with prescribed algebraic properties have also been studied. A basic problem is to determine how long an MDS code can be over a given finite field.
Let denote the maximal length of a non-trivial q-ary linear MDS code of dimension k. The classical MDS main conjecture (see [1]) states that for ,
Much progress has been made toward this conjecture. The connection between MDS codes and arcs in finite projective spaces has led to substantial progress on this problem. Ball [2] proved the conjecture over prime fields. For odd square fields, results on planar arcs by Ball and Lavrauw [3] yield further cases of the conjecture; see also their survey [4]. Chao and Kaneta [5] treated the cases . Other important results on arcs and the associated length bounds include the work of Hirschfeld and Korchmáros [6], Kaneta and Maruta [7], and Storme and Thas [8]. For codes obtained from algebraic curves, restrictions on the underlying curve provide additional arithmetic information that can be used to study the length problem.
Denote by the finite field with elements. Let be a function field of genus with full constant field , and let be distinct rational places of . Put , and let be a divisor satisfying
The algebraic geometry code is obtained by evaluating the functions in the Riemann–Roch space at these places. It has dimension and minimum distance (see [9]).
The MDS main conjecture for algebraic geometry codes has also been investigated. Munuera [10] introduced an approach that established cases of the conjecture for curves of genera one and two over sufficiently large fields. Further developments were obtained by Chen [11] and Walker [12]. Chen and Yau [13] studied geometric hyperelliptic MDS codes and proved the conjecture under explicit hypotheses.
Haojie Chen is with the School of Mathematics, Sun Yat-sen University, Guangzhou 510275, China (e-mail: chenhj69@mail2.sysu.edu.cn).
on the genus and the field size. These results motivate a more specific question: how far below the general benchmark can the maximal length lie when the underlying curves belong to a fixed class?
When , the resulting codes are called elliptic codes. Let denote the maximal length of a non-trivial -ary MDS elliptic code of dimension . Munuera [10] obtained the bound
Li, Wan, and Zhang [14] proved that, for and , there is a constant such that an elliptic code of length is not MDS whenever
Both restrictions on the dimension are part of the statement. They also conjectured that the maximal length of non-trivial MDS elliptic codes is at most for sufficiently large .
Subsequently, Han and Ren [15] established the explicit bound
whenever and . Their bound is attained when is an odd square and is odd in this range.
Their subsequent work [16, Theorem 1.2] proved the asymptotic conjecture of Li, Wan, and Zhang. More precisely, it gives dimension-dependent bounds that imply the uniform estimate
for non-trivial MDS codes from an elliptic curve . Two recent preprints give further results for elliptic codes. Chen, Hu, Huang, and Zhao [17] determine maximal lengths for and . Their results distinguish divisors supported on rational places from divisors that may include places of higher degree. Chen and Huang [18, Theorem 32] prove for and . These results concern genus one.
For genus two, Munuera [10] and Chen and Yau [13] obtained the bound under field-size hypotheses. Their method uses a divisor class whose representatives avoid prescribed evaluation points. Recent work by Zhu et al. [19] constructs MDS codes using split Jacobians of genus-two curves. Here we seek a uniform upper bound for all genus-two curves in the dimension range below.
We ask whether genus-two MDS codes satisfy a bound for an explicit absolute constant . The bound should hold for every genus-two function field and every dimension , in every characteristic.
In this paper, we give an affirmative answer with . Let be a function field of genus 2, and retain the notation introduced above. Our main result shows that if is MDS with
then
This bound holds for every prime power q and both parities of k. The divisor G may have places of degree greater than one in its support.
Therefore, the maximal length of these codes is at most , uniformly over the underlying genus-two function field and the entire indicated dimension range. Thus the leading coefficient in the length bound is reduced from 1 to 2/3. For every prime power , the bound also gives a strict improvement over the benchmark.
The paper is organized as follows. We begin in Section II with the necessary preliminaries on function fields and algebraic geometry codes. The main length bound is proved in Section III. Section IV proves the key auxiliary theorem used in the proof of the main length bound.
A. Algebraic Geometry Codes
Let denote the finite field with elements and let be an algebraic function field of genus with full constant field . We use the terminology of [9]. Let be the set of places of , and put
A divisor of F is a formal sum
where all but finitely many coefficients are zero.
Here is the degree of the residue field of over . We write and . The notation means that every coefficient is nonnegative; means . For a divisor , write
For a nonzero function , its principal divisor is defined by
Two divisors and are said to be linearly equivalent if for some . Here denotes the normalized valuation at . We write and for the effective zero and pole divisors, so . We write for this relation and for the divisor class of , consisting of all divisors linearly equivalent to . In particular, if with , then
Let W be a canonical divisor. The Riemann–Roch theorem [9, Theorem 1.5.15] gives
We will also use the Hasse–Weil bound [9, Theorem 5.2.3] in the form
In what follows, we always assume that the genus of is 2. Let be distinct rational places, and set
Let G be a divisor with
The algebraic geometry code associated with D and G is
Since , the kernel of the evaluation map is zero. Moreover, (3) gives . Thus has dimension , in agreement with the standard parameter formula for algebraic geometry codes [9, Theorem 2.2.2 and Corollary 2.2.3].
B. A Characterization of the MDS Property and Dual Codes
The following proposition expresses the usual information-set characterization of an MDS code in terms of Riemann–Roch spaces (see [13, Lemma 2.2]).
Proposition 1. Under Condition (5), the code is MDS if and only if
If the code is MDS, then, for every and every choice of distinct rational places ,
Proof. A nonzero function in gives a nonzero codeword vanishing at the coordinates in , and hence having weight at most . Conversely, any nonzero codeword of weight at most vanishes at some coordinates and gives such a function. Therefore (6) is equivalent to . The Singleton bound then gives equality.
Now assume that the code is MDS. Evaluation at any coordinates is an injective map from the -dimensional space to , and is therefore an isomorphism. Extend to a set of evaluation places. Projection onto the first coordinates shows that evaluation at is surjective. Its kernel is , so (7) follows from the rank-nullity formula.
The dual code of an MDS code is an MDS code [1, Ch. 11]. For evaluation codes, choose a Weil differential satisfying
whose existence follows from [9, Lemma 2.2.9]. By the duality formula [9, Theorem 2.2.8 and Proposition 2.2.10],
The coefficient of at every is zero, and
Consequently, the dual code satisfies (5), with dimension . Replacing the code by its dual code if necessary, we may assume without loss of generality that
C. The Hyperelliptic Involution and Degree-Two Divisors
For a finite separable extension and places , write for the ramification index and for the residue field degree. The conorm of is
Conorm extends linearly to divisors.
A function field of genus at least 2 is called hyperelliptic if it is a quadratic extension of a rational function field over the same constant field. Every genus-two function field is hyperelliptic [9, Lemma 6.2.2]. Fix such that , and put . The extension is Galois; see [9, Sec. 6.2]. Write
The automorphism is called the hyperelliptic involution. Two distinct rational places P and Q form a conjugate pair if . We collect some basic properties of the divisor H. These properties will allow us to replace conjugate pairs of rational places without changing the divisor class.
Lemma 2. The divisor H has degree 2, is linearly equivalent to W, and satisfies
Moreover, the following statements hold.
- For every ,
If , the left-hand side means 2P.
- For every divisor B of degree 2,
In particular, distinct effective divisors of degree 2 can be linearly equivalent only if both are equivalent to H.
- If satisfies , then
In particular, .
Proof. For completeness, we provide a proof. The degree formula for a nonconstant function [9, Theorem 1.4.11] gives . Since are linearly independent, (3) implies
A divisor of degree zero has a nonzero Riemann–Roch space only if it is principal [9, Corollary 1.4.12]. Thus , and .
For (1), let be the restriction of to . Since is rational, so is . Its conorm in is , including multiplicity when is ramified. The divisor is the conorm of the pole of in . Any two rational places of a rational function field are linearly equivalent, so (10) follows.
For (2), Riemann–Roch gives
Since , the last term is 1 precisely when , and is 0 otherwise. Thus,
If are effective and linearly equivalent, a nonconstant function with , together with 1, belongs to . Hence and for , proving the final assertion.
For (3), put . Then , and are linearly independent. By (2), . Choose with . Equation (2) shows that form a basis of . Thus
for an invertible coefficient matrix over . Taking their quotient proves (12).
A rational place P of F is called a Weierstrass point if . The following lemma bounds the number of rational Weierstrass points.
Lemma 3 ([13, Lemma 3.1]). Let
Then .
Proof. A fixed rational place is ramified in : its decomposition group has order two and its residue degree is one. The Hurwitz formula [9, Theorem 3.4.13] gives
Each ramified rational place contributes at least one to this degree. This proves the bound, including in characteristic two.
D. Degree-Three Divisors and Injective Functions
For , define the set of values of at the rational places of by
where if is a pole of . We identify with the rational points of the projective line. The degree of means .
Let be a divisor of degree 3. Then by the Riemann–Roch Theorem. For any -basis of , the quotient is nonconstant by the linear independence of . We first determine the possible degrees of the associated quotients and characterize the quadratic case.
Lemma 4. Let A be a divisor of degree 3. For any -basis of , the quotient satisfies
and this extension is separable. Furthermore,
Equivalently,
Proof. Both and are effective, and
Consequently,
and . Degree one would make rational, which is impossible since .
To check separability, let . If were inseparable, then for some , by [9, Proposition 3.10.2(d)]. It follows that
As is either 2 or 3, this forces , again contradicting .
Suppose that . Lemma 2 gives . By (17), the divisor
is effective of degree one, and therefore is a rational place. Hence .
Conversely, suppose that for some . Then form a basis of . Since ,
Both spaces have dimension 2, so they are equal. We may therefore write
Thus
which proves (15). Finally, , so holds precisely when is linearly equivalent to a rational place. This proves (16).
We next show that some properties of used below are independent of the choice of basis and of the representative of the divisor class [A].
Lemma 5. For a divisor A of degree 3, the generated subfield , the degree of and the cardinality depend only on [A]. For any fixed subset , injectivity of on also depends only on [A].
Proof. Fix a divisor of degree 3, and let and be two -bases of . There exist with such that
Put and . Then we have . Consequently,
so t and have the same degree.
Consider the fractional linear transformation
This transformation permutes , since it is invertible. For every rational place of , we have
It follows that
Moreover, for any ,
Therefore is injective on if and only if is injective on .
Finally, let be another representative of . Write for some . Since
the functions form a basis of , and their quotient is
Any other basis of gives the same degree, cardinality , and injectivity property on by the argument above. This completes the proof.
By Lemma 5, we may define a function on divisor classes of degree 3 by
where is any -basis of . This definition is independent of both the representative A and the chosen basis.
The following lemma provides a criterion for to be injective on a set of rational places.
Lemma 6 (Injectivity criterion). Let be a divisor of degree 3, and let contain at least two places. Suppose that
Then, for every basis u, v of , the quotient is injective on . In particular,
No disjointness assumption on supp(A) and is required.
Proof. By the Weak Approximation Theorem [9, Theorem 1.3.1], choose such that
where denotes the coefficient of P in A. Put
Then , form a basis of , and . Moreover, linear equivalence preserves (18).
For distinct , consider the evaluation map
Its kernel is . Since both spaces have dimension 2, the map is an isomorphism. Consequently,
Thus, and are distinct, with a zero denominator interpreted as . These ratios equal and , respectively. Therefore, is injective on . Inequality (19) follows from the injectivity of .
Following Munuera [10], for a positive integer m, we consider the set of divisors
Thus each element of is a sum of distinct rational places in . Let contain at least two places. We consider the following hypothesis.
: There exists a class in such that, for any two distinct places , there is a representative of that class whose support contains neither nor .
When , this is Munuera's condition [10]. For a proper subset , only the pairs to be avoided are restricted to . The representatives may still be supported on the full evaluation set .
The following corollary plays a key role in the proof of the main result in Section III.
Corollary 7. Let contain at least two places. Suppose that is MDS and that holds. Choose a divisor whose class satisfies this condition.
Let be any divisor linearly equivalent to . Then , and for every -basis of , the quotient is injective on . In particular, if contains a pair with , then .
Proof. For distinct , choose with and . Since , Proposition 1 gives
Lemma 6 proves the first assertion.
By Lemma 4, the degree of is either 2 or 3. In the quadratic case, by Lemma 2, so for every rational place . If contains a conjugate pair, this contradicts injectivity. Hence .
III. MAIN RESULT
We retain the notation of Section II and put
The main result is the following.
Theorem 8. Let be a function field of genus 2 with full constant field . Let be a sum of distinct rational places, and let be a divisor satisfying
If is MDS, then
Equivalently,
The two formulations are equivalent since is never an integer, as verified in the proof of Corollary 18. The proof constructs a fixed degree-three divisor class whose associated quotient t is injective on at least evaluation places. A uniform bound for the cardinality of the set of this quotient t then yields (21).
A. The Auxiliary Value-Set Theorem
Let be an algebraic closure of . Write for the extension of the constant field to . Let be the set of degree-three divisor classes [A] with the following property: for a basis of and , one has
The extension is then cyclic of degree 3. These conditions are independent of the basis and of the representative of [A] by Lemma 5. We call the elements of exceptional classes and refer to as the exceptional set.
The following result supplies the estimate of needed for the proof of Theorem 8. It also bounds the number of divisor classes that must be avoided.
Theorem 9. For every genus-two function field with full constant field ,
In characteristic 2, one has . If is a divisor of degree 3 with , then for every basis of , the quotient satisfies
The proof of Theorem 9 is independent of the coding assumptions and will be given in Section IV. In the constructions below, the quotients will have degree 3.
B. Counting Conjugate Pairs and Divisor Classes
Let as before, and let be the number of unordered pairs
Distinct such pairs are disjoint. As in Lemma 3, let w be the number of rational places of F fixed by . To construct the auxiliary divisors, we need enough complete conjugate pairs in S. The following count is the same orbit-counting argument used in [13, Proposition 3.3], written here for an arbitrary evaluation set S.
Lemma 10. With the notation above, one has
Proof. The action of on has orbits of size one and orbits of size two. Exactly of the latter are contained in . Every other orbit of size two contributes at most one place to , and the fixed places contribute at most . Therefore
The first inequality holds. The second inequality follows from and the Hasse–Weil bound (4).
We also need enough distinct divisor classes to avoid the exceptional set . This leads us to count the classes represented by one or two evaluation places.
Lemma 11. Define
Then
and
where if and if .
Proof. Distinct rational places cannot be linearly equivalent. Indeed, for any distinct rational places and , an equivalence would give a nonconstant function with pole divisor , of degree one. The degree formula [9, Theorem 1.4.11] would then imply that , contradicting . This proves (25).
There are distinct effective divisors with and . By Lemma 2, two different such divisors can be linearly equivalent only in the class .
Moreover,
Thus precisely of the divisors under consideration belong to , and every other divisor represents a different class. This gives the equality in (26). The lower bound follows from .
C. Constructing Injective Functions on Some Evaluation Places
We now use conjugate pairs contained in to verify for a large subset .
Consider first the case of even dimension. With enough conjugate pairs contained in , we can construct a function of degree 3 that is injective on all but two evaluation places.
Proposition 12 (Even dimension). Suppose that is MDS, , and . For any distinct , put . Then the following statements hold.
-
The condition holds with as the required divisor class.
-
For every divisor satisfying
one has , and the quotient of any -basis of is injective on and has degree 3. In particular,
- If, in addition,
then
Proof. 1) Fix distinct and put . For distinct , the four places meet at most four conjugate pairs contained in . Since , at least pairs avoid all four places. Choose such pairs and put
All places in this sum are distinct and lie in . By (10),
Hence the divisor satisfies
and
Thus holds with the stated class.
- Let satisfy (27). Then
By part (1) and Corollary 7, the quotient of any -basis of is injective on . Removing destroys at most two conjugate pairs, so contains at least such pairs. The same corollary therefore gives . Moreover,
- Now allow R, T to vary. The map
is injective on . Indeed, equality of two image classes implies equality of the corresponding classes .
By Lemma 11 and (28), its image contains more than 20 classes. Since , we may choose so that the corresponding class lies outside . For this choice, Theorem 9 and (30) give
Hence .
In odd dimension, the construction requires setting aside only one evaluation place. This gives a stronger bound under the corresponding pair and class conditions.
Proposition 13 (Odd dimension). Suppose that is MDS, , and . For any , put . Then the following statements hold.
-
The condition holds with as the required divisor class.
-
For every divisor satisfying
one has , and the quotient of any -basis of is injective on and has degree 3. In particular,
- If, in addition, n > 20, then
Proof. 1) Fix and put . For distinct , the three places meet at most three conjugate pairs contained in . Since , at least pairs avoid all three places. Choose such pairs and put
All places in this sum are distinct and lie in . By (10),
Hence the divisor satisfies
and
Thus holds with the stated class.
- Let satisfy (31). Then
By part (1) and Corollary 7, the quotient of any -basis of is injective on . Removing destroys at most one conjugate pair, so contains at least such pairs. The same corollary therefore gives . Moreover,
- Now allow R to vary. The map
is injective on . Indeed, equality of two image classes implies equality of the corresponding classes . By Lemma 11, its image contains distinct classes. If , then allows us to choose so that the corresponding class lies outside . For this choice, Theorem 9 and (33) give
Hence .
D. Completion of the Proof
Proof of Theorem 8. By the duality reduction in (8) and (9), we may replace the code by its dual if necessary and assume
This replacement preserves the length and the hypotheses of the theorem.
Case 1: . Suppose, for a contradiction, that
By Lemma 10 and , we have
Thus
Moreover, and (34) imply
Consequently,
If is even, then (36) gives . Part (3) of Proposition 12 therefore yields
contrary to (34).
If is odd, then (36) again gives . Since , part (3) of Proposition 13 yields
which also contradicts (34). This proves (21) for .
Case 2: . The remaining prime powers are . Since , the Hasse–Weil bound [9, Theorem 5.2.3] gives
For these field sizes, we have
| q | ||
|---|---|---|
| 2 | 8 | 11 |
| 3 | 10 | 13 |
| 4 | 13 | 14 |
| 5 | 14 | 16 |
| 7 | 18 | 18 |
| 8 | 20 | 20 |
It follows that
Thus (21) holds in every remaining case. The integer bound (22) follows from the integrality of .
Remark 14. The bound in (21) is mainly useful for large field sizes . For prime powers , its right-hand side exceeds , so it gives no improvement over this benchmark. For , however, the integer bound in (22) yields . Moreover, as , the theorem gives
which improves the leading coefficient from 1 to 2/3.
IV. PROOF OF THEOREM 9
This section proves Theorem 9. Throughout, has genus 2 and full constant field , and we write .
For each divisor of degree 3, let , where is any -basis of . Define
and
Both sets are well defined, since the generated subfield depends only on , as shown in the proof of Lemma 5.
We first study the functions associated with classes in . We then bound the number of exceptional classes in and complete the proof by treating the classes in .
A. The Normal Closure and Its Constant Field
We write for a cyclic group of order , for the symmetric group on letters, and for its alternating subgroup. Let be the normal closure of . We first determine and the full constant field of . These facts will be used in the comparison of rational places in its intermediate fields.
Lemma 15. Let be a divisor with , and let be any -basis of . Put and , and let be the normal closure of . Then
and the full constant field of is . In particular, if , then also has full constant field and
Proof. The extension is separable. Indeed, if it were inseparable, then the characteristic would be 3 and for some , by [9, Proposition 3.10.2(d)]. It would follow that
which would make rational.
Choose a primitive element for and let be its minimal polynomial. The field is the splitting field of the separable irreducible cubic polynomial .
Since the three roots of generate over , any -automorphism of fixing all three roots is the identity. Moreover, for any two roots and , the irreducibility of gives a -isomorphism sending to . Since is normal, this isomorphism extends to a -automorphism of .
Consequently, acts faithfully and transitively on the three roots. Faithfulness identifies it with a subgroup of , so its order divides 6. Transitivity and the orbit-stabilizer theorem imply that its order is divisible by 3. Thus its order is either 3 or 6. A group of order 3 is cyclic, whereas a subgroup of of order 6 is itself. Therefore, is isomorphic to either or .
Set and . By [9, Proposition 3.6.1(c)], constant field extension preserves the degree . Thus remains irreducible over , and is its splitting field over . Since is not Galois, its normal closure has Galois group . Hence
Let denote the full constant field of M. By [9, Proposition 3.6.6], we have
On the other hand, . Therefore and . The remaining assertions follow from the Galois correspondence and .
Lemma 15 assumes that remains non-Galois after extending the constant field to . This assumption is essential for the conclusion that is the full constant field of . A non-Galois cubic extension over can become Galois after extending constants; an example is given at the end of this section.
B. Different Divisors and a Genus Bound
We retain the fields and from Lemma 15. For a finite separable extension of function fields, the different is the effective divisor
where denotes the different exponent of over , as defined in [9, Definition 3.4.3]. In particular, is a divisor of the upper field . All different divisors below are understood in this sense.
Proposition 16. One has
Consequently,
These assertions hold in every characteristic.
Proof. Identify with , and let
Put , choosing the identification so that .
Fix a place of , and write . Let be its valuation ring. For , let be the -th ramification group of over , namely
For a subgroup , the corresponding -th ramification group for is . This follows directly from the definition, since the valuation and the valuation ring remain unchanged; see [9, Definition 3.8.4].
Every nonidentity element of belongs to exactly one of . Thus, for each ,
Summing over and applying Hilbert's different formula [9, Theorem 3.8.7] yields
Since this holds at every place R, we obtain an identity of divisors of M:
The subgroups are conjugate in . Hence, for every and , there exists such that . By Galois correspondence,
Thus the fields are mutually K-conjugate.
If for , then
Indeed, conjugation identifies the corresponding ramification groups and hence preserves the different exponents. It also preserves place degrees, because fixes and induces isomorphisms of residue class fields. Therefore the three different divisors have the same degree. Writing
we deduce from (40) that
Apply transitivity of the different [9, Corollary 3.4.12] to the two towers and . All fields have the same full constant field, so the degrees of conorms are multiplied by the corresponding extension degrees. We obtain
Comparing (41) with (42) gives . Comparison with (43) now gives (37).
By the Hurwitz genus formula [9, Theorem 3.4.13],
Since Diff(M/E) is effective, we obtain . Applying Hurwitz once more, to E/K, gives
Hence .
C. Counting the Values of a Degree-Three Function at Rational Places
The rational places of are naturally indexed by the elements of
For , let denote the unique zero of in , and let denote the unique pole of . Thus each corresponds to a unique rational place of .
For every rational place p of K, define
We claim that, for every ,
Indeed, if , there is a rational place of lying above . If , then
so . If , then
so is a pole of and . Thus .
Conversely, suppose that . Then there is a rational place of such that . If , then , so the restriction of to is . If , then , so the restriction of to is . Hence is counted by , and therefore .
The following lemma expresses in terms of the numbers of rational places of and , with a bounded correction arising from total ramification in .
Lemma 17. Let be a divisor with , and retain the notation , , , and from Lemma 15. Write
Let T be the set of rational places of K that are totally ramified in F/K, and define
Then and
Proof. Recall that, for each rational place of ,
count the rational places of and above , respectively. Write for the indicator that equals one when and zero otherwise.
Since all constant fields are and , every place above has degree equal to its relative degree over . By (45),
Define the local correction term by
Thus
We will prove that unless , in which case .
The local possibilities are summarized in the following table. For an unramified place, the first column lists the residue degrees; in the ramified rows, it lists the conorm in .
| Type over p | |||
|---|---|---|---|
| Unramified: | 3 | 2 | 0 |
| Unramified: | 1 | 0 | 0 |
| Unramified: 3 | 0 | 2 | 0 |
| Ramified: | 2 | 1 | 0 |
| Totally ramified: 3P | 1 | 0, 1, or 2 |
We justify the table in each case, including wild ramification.
Case 1: is unramified in . By [9, Corollary 3.9.3(b)], it is also unramified in the normal closure , and hence in . For a place of above , put
and denote the decomposition group of over by . The inertia group is trivial since is unramified in . By [9, Theorem 3.8.2],
and is cyclic, being isomorphic to the Galois group of an extension of finite residue class fields. The cyclic subgroups of have orders 1, 2, or 3; in the last case .
Since , the decomposition group of over is
Applying the same theorem to gives
The multiplicativity of relative degrees therefore yields
The fundamental equality [9, Theorem 3.1.11] shows that the residue degrees in the unramified cubic extension have one of the following three types.
-
If the type is , then splits completely in . It also splits completely in , by [9, Lemma 3.9.5]. Hence and . As is an unramified quadratic extension at , the place splits into two rational places of . Thus .
-
If the type is , let P be the place of F with , and choose R above P. Then
Thus 2 divides , so . Such a subgroup is generated by a transposition, and therefore
Consequently . Hence is inert in , with one place of degree 2 above it. Thus .
- If the type is 3, let be the unique place of above , and choose above . Let . Then
Thus and . Consequently , so splits into two rational places of . Thus .
In each of these three cases,
and hence .
Case 2: p is ramified but not totally ramified in F/K. Since , the fundamental equality implies
for some rational places and of . In particular, . Choose a place of above , denote its inertia group over by , and put . By multiplicativity of ramification indices,
Because , the right-hand side is either 2 or 4. On the other hand, is Galois of degree 6, so
divides 6. Therefore , and
The inertia group of R over Q in M/E is
By [9, Theorem 3.8.2] and multiplicativity,
Since , this forces Q to be the unique place above p, with relative degree 1. Thus and
Case 3: p is totally ramified in F/K. In this case,
so . Directly from the definition,
The quadratic extension E/K has at most two rational places above p, whence
These cases exhaust all possibilities. Hence
The Hurwitz genus formula [9, Theorem 3.4.13] gives
For each , its unique extension in satisfies
by [9, Theorem 3.5.1]. Since , each such place contributes at least 2 to the degree of the different. Distinct places in T give distinct places of F. Therefore
This argument applies to wild ramification as well.
Finally, sum (47) over all rational places of K, including the infinite place. Every rational place of F or E restricts to a rational place of K, and each attained rational value of t corresponds to exactly one such place. Thus
The resulting equality is
as claimed.
Corollary 18. Let A be a divisor with , and let t be as in Lemma 15. Then
Proof. By Lemma 15 and Proposition 16, the field E has full constant field and genus at most 3. The Hasse–Weil bound [9, Theorem 5.2.3] gives
Substituting these estimates into (46) yields
Thus .
To obtain strict inequality, observe that is never an integer. If is not a square, then is irrational. If with an integer, then
The integrality of proves (48).
☐
D. The Cardinality of the Exceptional Set
Recall the exceptional set defined before Theorem 9. All automorphisms of considered in this subsection fix pointwise.
It remains to bound the number of exceptional classes. We first associate each such class with a subgroup of order 3 in the automorphism group .
Lemma 19. Distinct classes in determine distinct subgroups of order 3 of .
Proof. For , choose a basis of and put . Associate to the subgroup
It has order 3 and is independent of these choices by Lemma 5. Moreover, (17) is an equality in this case, since both divisors have degree 3. Therefore
Suppose that . We want to prove . Let be a corresponding quotient for . Since , their fixed fields in coincide. By the Galois correspondence,
Thus, we can write
If , then . If , then we have . Since , we obtain
Thus the two pole divisors and differ by a principal divisor in and are therefore linearly equivalent. By (49), the constant field extensions of and in are linearly equivalent.
Constant field extension preserves Riemann–Roch dimensions [9, Theorem 3.6.3(d)]. Applying this to the degree-zero divisor shows that . Hence is already principal in . Thus , proving injectivity. This completes the proof.
The preceding injection reduces the problem to counting subgroups of order 3 of . The hyperelliptic structure gives a uniform bound, with a stronger conclusion in characteristic 2.
Proposition 20. One has . In characteristic 2, one has the stronger bound .
Proof. First suppose that the characteristic of F is odd, and write
The hyperelliptic involution is central in , and restriction to the unique quadratic rational subfield gives an embedding
The reduced automorphism group acts faithfully on the six ramified places of ; see [20, Secs. 2 and 3.1]. Indeed, all six ramified places are distinct in odd characteristic, and a nonidentity fractional linear transformation fixes at most two places of a rational function field over an algebraically closed field.
A subgroup of order 3 in A maps injectively to . Furthermore, different such subgroups have different images. To see this, a fixed reduced element has at most two lifts, say and . If , centrality of gives
Thus a reduced element has at most one lift of order 3.
An element of order 3 in acts on the six ramified places with cycle type (3)(3). The other non-trivial possibility, (3)(1)(1)(1), would fix three places and is impossible for a nonidentity fractional linear transformation. There are
ways to partition the six elements into two unordered triples. The factor 1/2 accounts for the fact that interchanging the two triples gives the same partition. Each triple supports exactly two distinct 3-cycles. Choosing one 3-cycle on each triple therefore gives permutations for each partition. Hence the number of permutations of cycle type (3)(3) is
Every subgroup of order 3 has two nonidentity elements, so has at most 20 subgroups of order 3. Lemma 19 now gives .
Now suppose that the characteristic of is 2. The classification of in [21] gives the possibilities
where the last two groups have orders 32 and 160, respectively. Only has order divisible by 3, and it has exactly one subgroup of order 3, namely . Lemma 19 therefore yields . This completes the proof.
E. Completion of the Proof
Proof of Theorem 9. The bounds on follow from Proposition 20. Let be a divisor of degree 3 with . Choose any -basis of and put . By Lemma 4 and the definitions of the three sets, we have
If , then Corollary 18 gives
If , then , and Lemma 2 gives . Every rational value attained at an unramified rational place is attained at exactly two rational places, interchanged by . Every rational value attained at a ramified rational place is attained at exactly one rational place, fixed by . Consequently,
where w is the number of rational places fixed by . Lemma 3 and the Hasse–Weil bound yield
where the strict inequality follows from
Thus
for every divisor class [A] of degree 3 outside and every choice of basis. This completes the proof.
The following example shows that the bound can fail for classes in .
Remark 21 (Necessity of the exceptional set). The assumption that the cubic extension remains non-Galois after extending the constant field to cannot be omitted from the value-set bound.
Let be odd with , and choose . Put
and define
For , let denote the zero of in , and let denote the pole of . The principal divisor of in is
Since , the element is not a cube in . Thus is irreducible over . Since , the extension is separable of degree 3.
By [9, Proposition 3.7.3(b) and Remark 3.7.5], exactly the four places
are ramified in . At each of these four places, the valuation of is relatively prime to 3. The ramification formula therefore gives ramification index 3. The fundamental equality then implies that, for each , there is a unique place above , with
In particular, the residue class field at is , so is the full constant field of . All four places are therefore rational. The ramification is tame, and each different exponent equals 2. Hence
The Hurwitz genus formula now gives
so .
For , the reduction of modulo is
Since , the cube map is a bijection on . This polynomial has exactly one root in and is square-free. It therefore factors into one linear factor and one irreducible quadratic factor. By Kummer's theorem [9, Theorem 3.3.7], there are exactly two places of above , one rational and the other of degree 2.
Together with the four totally ramified places, this shows that every rational place of K has exactly one rational place of F above it. Every rational place of F restricts to a rational place of K. Consequently,
For example,
Thus the cubic value-set bound fails for this example when q = 125.
Finally, consider the constant field extension
The same valuation computation shows that is not a cube in . Since contains a primitive cube root of unity, [9, Proposition 3.7.3(a)] shows that
is a cyclic Kummer extension of degree 3. Moreover,
has degree 3. By the Riemann–Roch theorem, , and hence
Therefore , which explains why this class must be excluded from the uniform bound.
V. CONCLUSION
We established a uniform upper bound on the length of MDS codes from genus-two curves. For an MDS code with and , we proved that
The bound holds for every prime power and both parities of . It gives a leading coefficient of and improves the bound when .
A central question is whether the coefficient 2/3 is optimal. Explicit constructions of long genus-two MDS codes would help determine how closely this bound can be approached. Sharper estimates for rational-place counts and ramification contributions may also improve the terms of smaller order. Another direction is to investigate whether similar methods yield analogous length bounds for MDS codes from hyperelliptic curves of higher genus.
ACKNOWLEDGEMENT
This work is supported by the National Natural Science Foundation of China (No. 12441107), Guangdong Basic and Applied Basic Research Foundation (No. 2025A1515011764), and the National Key Research and Development Program of China (No.2025YFA1017100).
REFERENCES
[1] F. J. MacWilliams and N. J. A. Sloane, The theory of error-correcting codes. I, vol. Vol. 16 of North-Holland Mathematical Library. North-Holland Publishing Co., Amsterdam-New York-Oxford, 1977.
[2] S. Ball, “On sets of vectors of a finite vector space in which every subset of basis size is a basis,” J. Eur. Math. Soc. (JEMS), vol. 14, no. 3, pp. 733–748, 2012.
[3] S. Ball and M. Lavrauw, "Planar arcs," J. Combin. Theory Ser. A, vol. 160, pp. 261–287, 2018.
[4] S. Ball and M. Lavrauw, "Arcs in finite projective spaces," EMS Surv. Math. Sci., vol. 6, no. 1-2, pp. 133–172, 2019.
[5] J. M. Chao and H. Kaneta, “Classical arcs in PG(r, q) for ,” Discrete Math., vol. 174, no. 1-3, pp. 87–94, 1997. Combinatorics (Rome and Montesilvano, 1994).
[6] J. W. P. Hirschfeld and G. Korchmáros, “On the embedding of an arc into a conic in a finite plane,” Finite Fields Appl., vol. 2, no. 3, pp. 274–292, 1996.
[7] H. Kaneta and T. Maruta, “An elementary proof and an extension of Thas’ theorem on k-arcs,” Math. Proc. Cambridge Philos. Soc., vol. 105, no. 3, pp. 459–462, 1989.
[8] L. Storme and J. A. Thas, “M.D.S. codes and arcs in PG(n, q) with q even: an improvement of the bounds of Bruen, Thas, and Blokhuis,” J. Combin. Theory Ser. A, vol. 62, no. 1, pp. 139–154, 1993.
[9] H. Stichtenoth, Algebraic function fields and codes, vol. 254 of Graduate Texts in Mathematics. Springer-Verlag, Berlin, second ed., 2009.
[10] C. Munuera, "On the main conjecture on geometric MDS codes," IEEE Trans. Inform. Theory, vol. 38, no. 5, pp. 1573–1577, 1992.
[11] H. Chen, "On the main conjecture of geometric MDS codes," Internat. Math. Res. Notices, no. 8, pp. 313–318, 1994.
[12] J. L. Walker, “A new approach to the main conjecture on algebraic-geometric MDS codes,” Des. Codes Cryptogr., vol. 9, no. 1, pp. 115–120, 1996. Second Upper Michigan Combinatorics Workshop on Designs, Codes and Geometries (Houghton, MI, 1994).
[13] H. Chen and S. S.-T. Yau, “Contribution to Munuera’s problem on the main conjecture of geometric hyperelliptic MDS codes,” IEEE Trans. Inform. Theory, vol. 43, no. 4, pp. 1349–1354, 1997.
[14] J. Li, D. Wan, and J. Zhang, “On the minimum distance of elliptic curve codes,” in 2015 IEEE International Symposium on Information Theory (ISIT), pp. 2391–2395, 2015.
[15] D. Han and Y. Ren, “A tight upper bound for the maximal length of MDS elliptic codes,” IEEE Trans. Inform. Theory, vol. 69, no. 2, pp. 819–822, 2023.
[16] D. Han and Y. Ren, “The maximal length of q-ary MDS elliptic codes is close to ,” Int. Math. Res. Not. IMRN, no. 11, pp. 9036–9043, 2024.
[17] H. Chen, C. Hu, J. Huang, and C.-A. Zhao, "On the maximal length of mds elliptic codes," 2026.
[18] B. Chen and J. Huang, "Critical numbers for restricted sumsets: Rigidity and collapse in finite abelian groups," 2026.
[19] Y. Zhu, H. Chen, F. Peng, F. Zhang, and C.-A. Zhao, “New explicit constructions of MDS and NMDS algebraic geometry codes,” IEEE Trans. Inform. Theory, vol. 72, no. 9, pp. 6450–6465, 2026.
[20] T. Shaska and H. Völklein, “Elliptic subfields and automorphisms of genus 2 function fields,” in Algebra, Arithmetic and Geometry with Applications (C. Christensen, A. Sathaye, G. Sundaram, and C. Bajaj, eds.), pp. 703–723, Berlin, Heidelberg: Springer, 2004.
[21] G. Cardona, E. Nart, and J. Pujolàs, “Curves of genus two over fields of even characteristic,” Mathematische Zeitschrift, vol. 250, no. 1, pp. 177–201, 2005.