arXiv:2610.39364cs.ITOct 2026

Manuscript Offprint

arXiv:2610.39364

A Uniform Upper Bound on the Length of MDS Codes from Genus-Two Curves

Haojie Chen

Abstract

We study the maximal length of MDS algebraic geometry codes from genus-two curves over finite fields. Let CL(D,G)C_{\mathcal{L}}(D, G) be such a code over Fq\mathbb{F}_q, with length nn and dimension kk. Assume that 3≤k≤n−33 \leq k \leq n - 3. We prove that n<(2q+10q+16)/3n < (2q + 10\sqrt{q} + 16)/3. This bound holds for every prime power qq and for both parities of kk. It gives a uniform upper bound of 2q/3+O(q)2q/3 + O(\sqrt{q}) for the maximal length. The explicit bound is strictly smaller than q+1q + 1 when q≥125q \geq 125.

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 [n,k,d]q[n, k, d]_q code over Fq\mathbb{F}_q has length nn, dimension kk, and minimum distance dd, and is called MDS if d=n−k+1d = n - k + 1. 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 M(k,q)M(k,q) 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 q>kq > k,

M(k,q)={q+2,qevenandk∈{3,q−1},q+1,otherwise.M(k,q)=\begin{cases}q+2,&q even and k\in\{3,q-1\},\\q+1,&otherwise.\end{cases}

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 11≤q≤1911 \leq q \leq 19. 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 Fq\mathbb{F}_q the finite field with qq elements. Let F/FqF/\mathbb{F}_q be a function field of genus gg with full constant field Fq\mathbb{F}_q, and let P1,…,PnP_1, \ldots, P_n be distinct rational places of FF. Put D=P1+⋯+PnD = P_1 + \cdots + P_n, and let GG be a divisor satisfying

supp⁡(G)∩supp⁡(D)=∅,2g−2<deg⁡G<n.\operatorname{supp}(G)\cap\operatorname{supp}(D)=\varnothing,\qquad2g-2<\deg G<n.

The algebraic geometry code CL(D,G)C_{\mathcal{L}}(D,G) is obtained by evaluating the functions in the Riemann–Roch space L(G)\mathcal{L}(G) at these places. It has dimension k=deg⁡G−g+1k = \deg G - g + 1 and minimum distance d≥n−deg⁡Gd \geq n - \deg G (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 q+1q+1 benchmark can the maximal length lie when the underlying curves belong to a fixed class?

When g=1g=1, the resulting codes are called elliptic codes. Let MEC(k,q)\mathrm{MEC}(k,q) denote the maximal length of a non-trivial qq-ary MDS elliptic code of dimension kk. Munuera [10] obtained the bound

MEC(k,q)≤q+12+q+k.\mathrm{MEC}(k,q)\leq\frac{q+1}{2}+\sqrt{q}+k.

Li, Wan, and Zhang [14] proved that, for ϵ>0\epsilon > 0 and q>4/ϵ2q > 4/\epsilon^2, there is a constant Cϵ>0C_\epsilon > 0 such that an elliptic code of length n≥(2/3+ϵ)qn \geq (2/3 + \epsilon)q is not MDS whenever

Cϵln⁡q<k<n−Cϵln⁡q.C_{\epsilon}\ln q<k<n-C_{\epsilon}\ln q.

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 (1/2+ϵ)q(1/2 + \epsilon)q for sufficiently large qq.

Subsequently, Han and Ren [15] established the explicit bound

MEC(k,q)≤q+12+q\mathrm{MEC}(k,q)\leq\frac{q+1}{2}+\sqrt{q}

whenever q≥289q \geq 289 and 3≤k≤(q+1−2q)/103 \leq k \leq (q + 1 - 2\sqrt{q})/10. Their bound is attained when qq is an odd square and kk 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

n≤∣E(Fq)∣+62≤q2+q+72n\leq\frac{\left|E(\mathbb{F}_{q})\right|+6}{2}\leq\frac{q}{2}+\sqrt{q}+\frac{7}{2}

for non-trivial MDS codes from an elliptic curve E/FqE/\mathbb{F}_q. Two recent preprints give further results for elliptic codes. Chen, Hu, Huang, and Zhao [17] determine maximal lengths for q≥289q \geq 289 and 3≤k≤(q+1−2q)/103 \leq k \leq (q+1-2\sqrt{q})/10. Their results distinguish divisors supported on rational places from divisors that may include places of higher degree. Chen and Huang [18, Theorem 32] prove n≤∣E(Fq)∣/2n \leq |E(\mathbb{F}_q)|/2 for q≥47089q \geq 47089 and 3≤k≤n−33 \leq k \leq n-3. These results concern genus one.

For genus two, Munuera [10] and Chen and Yau [13] obtained the q+1q+1 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 n≤cq+O(q)n \leq cq + O(\sqrt{q}) for an explicit absolute constant c<1c < 1. The bound should hold for every genus-two function field and every dimension 3≤k≤n−33 \leq k \leq n - 3, in every characteristic.

In this paper, we give an affirmative answer with c=2/3c = 2/3. Let F/FqF/\mathbb{F}_q be a function field of genus 2, and retain the notation CL(D,G)C_{\mathcal{L}}(D, G) introduced above. Our main result shows that if CL(D,G)C_{\mathcal{L}}(D, G) is MDS with

deg⁡G=k+1<n,3≤k≤n−3,\deg G=k+1<n,\qquad3\leq k\leq n-3,

then

n<2q+10q+163.(1)n<\frac{2q+10\sqrt{q}+16}{3}. \tag{1}

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 2q/3+O(q)2q/3 + O(\sqrt{q}), 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 q≥125q \geq 125, the bound also gives a strict improvement over the q+1q + 1 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.