arXiv:2611.01546cs.ITNov 2026

Manuscript Offprint

arXiv:2611.01546

MDS Algebraic Geometry Codes of Square-Root Length on Hyperelliptic Curves

Chuangqiang Hu, Guorui Ma

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Chuangqiang Hu and Guorui Ma

Abstract—For every fixed genus g≥2g \geq 2 and every 0<ρ<10 < \rho < 1, we construct maximum distance separable (MDS) algebraic geometry codes over Fq\mathbb{F}_q for all sufficiently large odd squares qq. Their parameters are [n,⌊ρn⌋,n−⌊ρn⌋+1]q[n, \lfloor \rho n \rfloor, n - \lfloor \rho n \rfloor + 1]_q with n=q+1+Og(q1/4)n = \sqrt{q} + 1 + O_g(q^{1/4}). The codes use full Riemann–Roch spaces on genus-gg hyperelliptic curves. They are not monomially equivalent to generalized Reed–Solomon (GRS) codes when qq is sufficiently large. An infinite subfamily has exact length n=q+2gq1/4+1n = \sqrt{q} + 2gq^{1/4} + 1.

Index Terms—MDS codes, algebraic geometry codes, hyperelliptic curves, Jacobians, theta divisors.

I. INTRODUCTION

Reed–Solomon codes are obtained by evaluating polynomials of bounded degree over a finite field [1]. Their minimum distance meets the Singleton bound. Goppa extended this construction to algebraic curves by replacing polynomials with Riemann–Roch spaces [2]. This gave algebraic geometry codes, whose parameters reflect both the genus and the rational points of the curve. A standard account appears in [3, Ch. 2].

Write Fs\mathbb{F}_s for a finite field with ss elements. A linear [n,k,d]s[n, k, d]_s code is a kk-dimensional subspace of Fsn\mathbb{F}_s^n with minimum Hamming distance dd. Its rate is k/nk/n. The Singleton bound is d≤n−k+1d \leq n - k + 1, and a code attaining equality is called maximum distance separable (MDS). On a curve of genus gg, the usual designed-distance bound for an algebraic geometry code can be smaller than n−k+1n - k + 1 by gg. To obtain an MDS code, one must rule out functions that vanish at too many evaluation points. Thus a large number of rational points alone does not ensure the MDS property.

MDS codes from curves of positive genus have been studied through divisor classes, point configurations, and code equivalence. Munuera proved the main conjecture for elliptic codes and for genus-two codes when the field size exceeds 83 [4, Thms. 1–2]. His Proposition 1 reduces the length problem to a condition on representatives of classes of sums of distinct evaluation points. He also studied length bounds for elliptic MDS codes [5]. The hyperelliptic case of the main conjecture, under hypotheses on the genus and field size, was treated independently by Chen [6] and de Boer [7]. Walker developed an approach through projective embeddings and proved the elliptic case by this method [8]. These upper-bound results explain the role of divisor classes. The present paper addresses existence with a specified length and dimension range.

In arbitrary genus, Chen gave an MDS criterion and a counting construction [9, Thms. 4.2–4.3]. For a one-point divisor of degree m≥4gm \geq 4g, the dimension is k=m−g+1k = m - g + 1. The sufficient condition for length n>mn > m is

m(nm−g)<N,m\binom{n}{m-g} < N,

where N≤q+1+2gqN \leq q + 1 + 2g\sqrt{q} is the number of rational points in the projective image. For fixed gg and k/n→ρ∈(0,1)k/n \to \rho \in (0,1), put

H(ρ)=−ρlog⁡ρ−(1−ρ)log⁡(1−ρ)>0.H(\rho) = -\rho \log \rho - (1 - \rho) \log (1 - \rho) > 0.

Here log denotes the natural logarithm. Stirling's formula gives

log⁡(mm−g)=nH(ρ)+o(n).\log\binom{m}{m-g} = nH(\rho) + o(n).

Thus this sufficient condition can certify only n=O(log⁡q)n = O(\log q) at a fixed limiting rate. This observation concerns that counting condition; it is not an upper bound for all codes in [9].

Marques, da Silva, and Tafazolian study complementary pairs on hyperelliptic curves [10]. Their Proposition 6 characterizes the MDS property of their length-2t2t, dimension-tt pairs by requiring reduced Mumford representatives of degree gg for classes associated with every tt-subset of the evaluation set. The present construction proves simultaneous avoidance for all such subset classes by placing them in a subgroup of the Jacobian. It imposes no complementarity or LCD condition.

Zhu, Chen, Peng, Zhang, and Zhao study MDS and NMDS constructions from maximal curves and genus-two curves with split Jacobian [11]. Their results impose determinant, evaluation-point, elliptic-cover, and subset-sum conditions, including k≡2(mod3)k \equiv 2 \pmod{3} in one specialization. For the Beelen–Montanucci branch, write q=a2hq = a^{2h}, where aa is a prime power and h≥3h \geq 3 is odd, and put

s=ah−1−1a2−1.s = \frac{a^{h-1} - 1}{a^2 - 1}.

Theorem 1 of [11] uses a curve of genus

(a−1)(ah+1+ah−a2)2\frac{(a-1)(a^{h+1} + a^h - a^2)}{2}

and a one-point divisor giving dimension s+3s + 3. This genus varies with aa and hh; for example, h=3h = 3 gives s=1s = 1 and dimension 4, while the genus grows with aa. Their genus-two branch instead fixes the genus at two and assumes a split Jacobian, with sufficient conditions on the evaluation set. We do not claim to improve every length in [11]. Our contribution is a uniform existence theorem in every fixed genus, over all sufficiently large odd square fields, with g+1≤k≤n−gg+1 \leq k \leq n-g, full

Chuangqiang Hu is with Sun Yat-sen University, Guangzhou 510275, China (e-mail: huchq5@mail.sysu.edu.cn).

Guorui Ma is with the Shanghai Institute for Mathematics and Interdisciplinary Sciences (SIMIS) and the Research Institute of Intelligent Complex Systems, Fudan University, Shanghai 200433, China (e-mail: mgr18@tsinghua.org.cn). Guorui Ma is the corresponding author.

Riemann–Roch spaces, and eventual non-GRS codes. Table I records the scope of these comparisons.

The question considered here is the following. For every fixed g≥2g \geq 2, can one obtain algebraic geometry codes over Fq\mathbb{F}_q with length asymptotic to q\sqrt{q} and with rate bounded away from zero and one? We require the full Riemann–Roch space of a divisor. This requirement excludes constructions obtained by selecting a proper subspace of that space. We allow general defining divisors, rather than requiring all poles to lie at one point.

Throughout, curves are smooth, projective, and geometrically irreducible; an affine equation denotes its smooth projective model. The construction assumes g≥2g \geq 2.

The evaluation points are defined over Fr\mathbb{F}_r, and the defining divisor is defined over Fr2\mathbb{F}_{r^2}. Classes of sums of evaluation points lie in the subfield Jacobian. Corollary 7 reduces the MDS condition to finding a coset that avoids effective divisor classes of degree g−1g-1. The main geometric step is Proposition 14. Its proof uses the intersection formula in Lemma 12 twice, through Lemma 13, to reduce the degree of a fixed point of a translated Frobenius involution by two and ultimately exclude all such effective classes.

Theorem 1. Let rr be an odd prime power, let g≥2g \geq 2, and assume r≥(2g+2)2r \geq (2g + 2)^2. Let X/FrX/\mathbb{F}_r be a hyperelliptic curve of genus gg with an odd-degree affine model

y2=f(x),deg⁡f=2g+1,f∈Fr[x]square−free.(1)\begin{aligned}y^{2}&=f(x),\qquad\deg f=2g+1,\\&f\in\mathbb{F}_{r}[x]square-free.\end{aligned} \tag{1}

Set q=r2q = r^{2}, let n=∣X(Fr)∣n = |X(\mathbb{F}_{r})|, and let DD be the sum of the points in X(Fr)X(\mathbb{F}_{r}). For every integer

g+1≤k≤n−g,(2)g+1\leq k\leq n-g, \tag{2}

there is an effective Fq\mathbb{F}_q-rational divisor GG of degree k+g−1k+g-1, with support disjoint from DD, such that CL(D,G)C_{\mathcal{L}}(D,G) is an [n,k,n−k+1]q[n,k,n-k+1]_q MDS code.

Proposition 17 below gives the additional non-equivalence assertion: if min⁡{k,n−k}≥3g+1\min\{k, n - k\} \geq 3g + 1, then the code is not monomially equivalent to a generalized Reed–Solomon code.

The theorem applies to each curve with the stated model. Existence of such curves in every genus gives the following consequence. In the asymptotic statements, the genus is fixed and q tends to infinity through odd squares.

Corollary 2. Fix g≥2g \geq 2 and 0<ρ<10 < \rho < 1. For every sufficiently large odd square qq, there are genus-gg MDS algebraic geometry codes, not monomially equivalent to generalized Reed–Solomon codes, with parameters

[n,⌊ρn⌋,n−⌊ρn⌋+1]q,(3)[n,\lfloor\rho n\rfloor,n-\lfloor\rho n\rfloor+1]_{q}, \tag{3}

where n satisfies

q+1−2gq1/4≤n≤q+1+2gq1/4.(4)\sqrt{q}+1-2g q^{1/4}\leq n\leq\sqrt{q}+1+2g q^{1/4}. \tag{4}

Writing k=⌊ρn⌋k = \lfloor \rho n \rfloor, we have

kn=ρ+O(n−1)⟶ρ,n=q+1+Og(q1/4).(5)\frac{k}{n}=\rho+O(n^{-1})\longrightarrow\rho,\qquad n=\sqrt{q}+1+O_{g}\Big(q^{1/4}\Big). \tag{5}

The next consequence uses a fixed equation and gives an exact length.

Corollary 3. Fix g≥2g \geq 2, 0<ρ<10 < \rho < 1, and a prime p≡−1(mod2(2g+1))p \equiv -1 \pmod{2(2g+1)}. For every sufficiently large positive odd integer mm, put q=p4mq = p^{4m}. On the curve

X:y2=1−x2g+1(6)X:y^{2}=1-x^{2g+1} \tag{6}

there are MDS codes, not monomially equivalent to generalized Reed–Solomon codes, with parameters (3) and

n=q+2gq1/4+1.(7)n=\sqrt{q}+2g q^{1/4}+1. \tag{7}

A recent preprint gives n≤q/2+o(q)n \leq q/2 + o(q) for fixed genus when both the dimension and the codimension grow faster than log⁡q\log q [12, Thm. 1]. That growth condition includes the families in Corollary 2. There remains a gap in order between that upper bound and the present existence lower bound. No upper bound of order q\sqrt{q}, or optimal leading constant, is proved here.

The proof has three parts. Section II expresses the MDS condition in the Jacobian and constructs effective representatives with the required support. Section III proves the hyperelliptic intersection formula and the coset statement. Section IV finds the required points, proves the main results, and checks the examples. Section V states the remaining questions.