Many Non-Reed-Solomon Type MDS Codes From Arbitrary Genus Algebraic Curves (Hao Chen)
Many Non-Reed-Solomon Type MDS Codes From Arbitrary Genus Algebraic Curves (Hao Chen)
Many Non-Reed-Solomon Type MDS Codes From Arbitrary Genus Algebraic Curves (Hao Chen)
Algebraic Curves
Hao Chen ∗
Abstract
It is always interesting and important to construct non-Reed-Solomon
type MDS codes in coding theory and finite geometries. In this paper,
we prove that there are non-Reed-Solomon type MDS codes from ar-
bitrary genus algebraic curves. It is proved that MDS algebraic geom-
etry (AG) codes from higher genus curves are not equivalent to MDS
AG codes from lower genus curves. For genus one case, we construct
MDS AG codes of small consecutive lengths from elliptic curves. New
self-dual MDS AG codes over F2s from elliptic curves are also con-
structed. These MDS AG codes are not equivalent to Reed-Solomon
codes, not equivalent to known MDS twisted Reed-Solomon codes and
not equivalent to Roth-Lempel MDS codes.
1
1 Introduction and Preliminaries
The Hamming weight wt(a) of a vector a ∈ Fnq is the number of non-zero
coordinate positions. The Hamming distance d(a, b) between two vectors a
and b is defined to be the Hamming weight of wt(a−b). For a code C ⊂ Fnq ,
its minimum Hamming distance
The main conjecture of linear MDS codes proposed in [58] claims that the
length of a linear MDS code over Fq is at most q + 1, except some exceptional
cases. In [3] the main conjecture was proved for linear MDS codes over prime
fields. Some classification results about general MDS codes over small fields
were given in [42]. An (n, M = q n−d , d)q code is called almost MDS. A linear
almost MDS code C satisfying that the dual C⊥ is also almost MDS is called
near MDS code. It is well-known that AG codes from elliptic curves are near
MDS codes. The main conjecture of near MDS codes was proposed in [44].
For counting the number of MDS linear codes, we refer to [29, 41].
2
Reed-Solomon codes proposed in the 1960 paper [55] are well-known MDS
codes. Let P1 , . . . , Pn be n ≤ q distinct elements in Fq . The Reed-Solomon
code RS(n, k) is defined by
MDS codes which are not equivalent to Reed-Solomon codes are called
non-Reed-Solomon type MDS codes. It is always interesting and impor-
tant to construct non-Reed-Solomon MDS codes in coding theory and fi-
nite geometries, we refer to [8, 10, 12, 56]. One method used to distinguish
MDS codes from Reed-Solomon codes is the calculation of dimensions of
their Schur squares, see [10, 12]. The componentwise product (star prod-
uct) of t vectors xj = (xj,1 , . . . , xj,n ) ∈ Fnq , j = 1, . . . , t, is x1 ⋆ · · · ⋆ xt =
(x1,1 · · · xt,1 , . . . , x1,n · · · xt,n ) ∈ Fnq . The componentwise product of linear
codes C1 , . . . , Ct in Fnq is defined by
C1 ⋆ · · · ⋆ Ct = Σci ∈Ci Fq c1 ⋆ · · · ⋆ ct .
3
It is a great achievement that some twisted Gabidulin codes were found
in [60]. These rank-metric codes are MRD codes, which are not equivalent
to Gabidulin codes, see [52,60]. Then many papers, see e.g., [17,46,65], were
published for constructing new twisted Gabidulin codes.
The minimum distance of the Euclid dual is called the dual distance and is
denoted by d⊥ . The minimum distance of the Hermitian dual is the same as
d⊥ . A linear code C ⊂ Fnq2 is called Hermitian self-dual if C = C⊥h . The
intersection C C⊥h is called the Hermitian hull of this code C. We refer
T
to [22,23] and [37, Chapter 9] for earlier results about self-dual and Hermitian
self-dual codes over small fields. From the Calderbank-Shor-Steane (CSS)
construction of entanglement-assisted quantum error correction (EAQEC)
codes in [15], Euclidean and Hermitian self-dual MDS codes can be used to
construct MDS EAQEC codes.
The construction of new self-dual MDS codes or near MDS codes has
been a long active topic in coding theory, see [9, 26, 30, 31, 36, 38, 39, 53, 68].
4
On the other hand the construction of Hermitian self-orthogonal (or dual-
containing) MDS codes had been active for the purpose to construct MDS
quantum codes, see [4–6, 34, 40] and references therein. Since the introduc-
tion of twisted Reed-Solomon codes in [10,12], the construction of non-Reed-
Solomon self-dual MDS codes from twisted Reed-Solomon codes has been
given in [36, 64]. These codes are not equivalent to the Reed-Solomon codes
and can be thought as new self-dual MDS codes. From the view of coding
theory, it is always interesting to construct non-Reed-Solomon type MDS
codes and non-Reed-Solomon type self-dual MDS codes.
Let L(G) be the function space associated with the divisor G, that is, L(G)
is the space of all rational functions f satisfying (f ) + G ≥ 0, where (f ) is
the divisor associated with f . The algebraic geometry code (functional code)
associated with G, P = {P1 , . . . , Pn } is defined by
k = deg(G) − g + 1
5
A divisor G = Σmi Gi where Gi ’s are points of the curve, is called effective
if mi ≥ 0. Two effective divisor G1 and G2 are called linear equivalent if
there is a rational function f such that the divisor (f ) associated with f is
of the form
(f ) = G1 − G2 .
It is clear that for two linear equivalent divisors G1 and G2 , the AG codes
C(P1 , . . . , Pn , G1 , X) and C(P1 , . . . , Pn , G2 , X) are equivalent linear codes.
6
constructed for consecutive lengths. These codes can be constructed as AG
codes from elliptic curves E defined over Fq by choosing the evaluation point
set as a coset of a subgroup of E(Fq ). They are not equivalent to Reed-
Solomon codes, not equivalent to the known MDS twisted Reed-Solomon
codes and not equivalent to Roth-Lempel MDS codes in [56]. Moreover
there are non-Reed-Solomon type MDS elliptic curve codes with the same
length and the same dimension. Many new self-dual non-Reed-Solomon type
MDS codes with various lengths are also constructed. It is always good to
understand that algebraic geometry codes can give us more interesting non-
Reed-Solomon type MDS codes.
and √
x+ = x = 1 + 2 x.
If q = p is a prime number it follows from the result in [24, 57] that for
any positive integer N satisfying p− < N < p+ , there is an elliptic curve E
defined over Fp such that the number of Fp -rational points of E satisfying
|E(Fp )| = N.
7
It is well-known there is an Abelian group structure on E(Fq ). As a
group E(Fq ) ≃ Z/mZ × Z/mkZ for some positive integers m and k. We
refer to [57, 62] for the detail. More accurately the following two results were
proved in [57].
All possible group structures of elliptic curves over Fq were also deter-
mined in [57].
with
(a) In case (b) of Theorem 3.1: Each al is equal to h2l ;
(b) In cases (a), (c), (d), (e) of Theorem 3.1: al is an arbitrary integer
satisfying
hl
0 ≤ al ≤ min{vl (q − 1), [ ]},
2
where vl (q − 1) is the order of prime factor l in q − 1.
From Theorem 2.1 and 2.2, there are a lot of elliptic curves with dif-
ferent orders |E(Fq )| and different Abelian group structures. Therefore we
8
can construct many MDS elliptic curve codes from the following Theorem 2.3.
Notice that the Jacobian of the elliptic curve E is itself, so the condition
in Theorem 2.3 1) is equivalent to if Pi1 + · · · + Pim = mP0 is valid in the
group E(Fq ), we refer to [51].
Proposition 2.1. L(P0 ) is the one dimension linear space of all constant
functions. For each m ≥ 2, there is one rational function f in L(mP0 )/L((m−
1)P0 ).
9
Proof. If there is a non-constant rational function f in the space L(P0 ),
then (f ) = Q − P for some rational point Q ∈ E(Fq ). That is, P0 is linearly
equivalent to another rational point Q ∈ E(Fq ). This is a contradiction to
the fact that E(Fq ) is the Jacobian
of E.
10
over Fq . These MDS codes are not equivalent to the Reed-Solomon codes
from dimensions of their Schur squares. On the other hand, MDS twisted
Reed-Solomon codes have been only constructed for some special lengths n
satisfying that n is a divisor of q − 1 or gcd(n, q − 1) = n2 , or n is a divisor
of q, see [12]. Therefore it is obvious that there are more non-Reed-Solomon
MDS AG codes from elliptic curves than twisted Reed-Solomon codes. In
the following part, P0 is the zero element in the group E(Fq ).
Let b1 < · · · < bt be t(≤ p2 −1) distinct nonzero elements in 0×Z/p2 Z and
m be a positive integer satisfying mbt ≤ p2 . Then m1 b1 + · · · + mt bt ≤ mbt <
p2 , where m1 +· · ·+mt = m. Let P be the union of t cosets b1 +E1 , . . . , bt +E1 .
The elliptic curve code C(P, mP0 , E) is an MDS code.
11
It is obvious when t ≥ p22+1 , then m cannot bigger than or equal to two.
Hence if we want to construct a dimension 2 MDS elliptic curve code in this
example, the length is smaller than p12p2 ≤ q + 1.
Proof. First of all, we can find an elliptic curve of the order nl where l is
a positive integer satisfying gcd(n, l) = 1. Then the conclusion follows from
Theorem 3.1 and Theorem 2.4 immediately.
12
Since the general MDS conditions about twisted Reed-Solomon codes are
restricted to subfields or subgroups as in [12], certainly many MDS codes
constructed in Corollary 3.2 are not equivalent to these MDS twisted Reed-
Solomon codes, or there is no known MDS twisted Reed-Solomon code with
the corresponding length. Therefore many new non-Reed-Solomon type MDS
codes from elliptic curves are constructed for consecutive lengths. We can
observe the following example of MDS twisted Reed-Solomon codes as in [12].
for any k distinct αi1 , . . . , αik ∈ α, this code Cα,η,k is an MDS code.
13
gcd(n, p) = gcd(n + 1, p) = 1. Then there is an elliptic curve E defined
over Fp with n(n + 1) rational points from Theorem 2.1 and 2.2, with the
group structure |E(Fp ) = Z/nZ ⊕ Z/(n + 1)Z. The conclusion follows from
Theorem 3.1.
|E(Fpn )| = pn + 1,
if n is an even positive integer, see page 155 of [62]. We have the following
result.
Proof. There is no factor pl in |E(Fpn )|, then we can take a(l) = 0 for
any prime factor l of |E(Fpn )| in Theorem 2.2. The conclusion follows from
Theorem 3.1 1) directly.
Moreover from Theorem 2.3 and 2.4, we can construct some MDS ellip-
tic curve codes such that their Schur squares are MDS codes or not MDS
14
codes. Therefore some non-equivalent MDS elliptic curve codes from one el-
liptic curve or two different elliptic curves (with different elliptic curve group
structures) of the same length and the same dimension can be constructed.
Now we observe the MDS condition for AG codes from genus g curves.
In the case g = 1, this is just Theorem 2.3 1).
15
are n+1 rational point of X, m is a positive integer satisfying 2g−1 < m < n.
Then the one point function code C(P1 , . . . , Pn , mP0 , X) is MDS if and only
if the following MDS condition holds.
Proof. For each different m−g rational points in general position amonge
16
chosen evaluation points, we determine a hyperplane in Pm−g . This hyper-
plane interests Φ(X) at m points. Then the conclusion follows directly.
17
Since 2s1 s2 + 1 − β ≡ 0 mod 8, the exponent h2 of 2 in the prime factor
decomposition of
|E(F2s1 s2 )| = 2s1 s2 + 1 − β,
is at least h2 ≥ 3.
From Theorem 2.1 and 2.2 there are many such an elliptic curve. Then
the group order of the elliptic curve is
|E(F2s1 s2 )| = 2h2 L,
Proof. From Theorem 2.2, we can find elliptic curve such that for any
odd divisor L′ |L, there is an order L′ subgroup E2 ⊂ E(F2s1 s2 ). Therefore
we have an order 2t L′ subgroup E1 of the form (i2h2 −t θ) × E2 , where θ is the
generator of the cyclic subgroup Z/2h2 Z ⊂ E(F2s1 s2 ), and i = 0, 1, . . . , 2t − 1.
2h2 −2 L′ θ × 0 + P.
This is not zero. Therefore the elliptic curve code C(P, 2tL′ P0 , E) is an MDS
code from Theorem 2.3. Here P0 is the zero element of the group E(F2s1 s2 ).
18
the sum of all elements in Z/2u Z is −2u−1 . Then the sum of all elements in
P is 2h2 −1 L′ θ × 0 − 2h2 −1 L′ θ × 0 is zero element P0 . Therefore from Theorem
2.3. 2), the dual code of C(P, 2t−1 L′ P0 , E) is equivalent to a linear code
C(P, 2t−1 L′ P0 , E). Suppose that the dual code is of the form
v·C(P, 2t−1L′ P0 , E) = {(v1 c1 , . . . , vn cn ) : (c1 , c2 , . . . , cn ) ∈ C(P, 2t−1L′ P0 , E)},
where v = (v1 , . . . , vn ) ∈ Fn2s1 s2 is a Hamming weight n vector.
Notice that L′ can be any odd divisor of the group order |E(F2s1 s2 )|, there
are indeed many self-dual MDS codes which are equivalent to elliptic curve
codes. Actually self-dual MDS elliptic curve codes over F2s of√ the length
s 2s ⌋
4L, where L is any odd positive number in the range [1, 2 +1+⌊2 8
], can be
constructed. Hence there are many new self-dual MDS elliptic curve codes
over the finite field F2s , which are not equivalent to self-dual Reed-Solomon
codes or self-dual twisted Reed-Solomon codes.
From the result in [21], it is easy to construct equivalent LCD MDS codes
from self-dual MDS elliptic curve codes.
From Theorem 5.1 and the CSS construction of EAQEC codes in [15],
the following results follows immediately.
Corollary 5.1. Let q = 2s1 s2 be an even prime power and |E(Fq )| = 2h2 ·L
as in above, n be a positive integer of the form 2t L′ where L′ is an odd divisor
of the group order E(F2s1 s2 ) and t ≤ h2 − 1, and k be a positive integer sat-
isfying n2 ≤ k ≤ n − 1, and h be a nonnegative integer satisfying 0 ≤ h ≤ n2 ,
there exists an MDS EAQEC [[n, k − h, n − k + 1, n − k − h]]2s1 s2 code.
19
[n, n2 , n2 + 1]2s1 s2 code with the h-dimension hull, where 0 ≤ h ≤ n2 . Then the
conclusion follows from the CSS construction of EAQEC codes immediately.
Notice that the MDS elliptic curve codes in Theorem 5.1 are not equiv-
alent to Reed-Solomon code, then these MDS EAQEC codes in Corollary
5.1 are new MDS EAQEC codes, comparing to previous constructed MDS
EAQEC codes from generalized Reed-Solomon codes.
References
[1] A. Aguglia, L. Giuzzi and A. Sonnino, Near MDS codes from elliptic
curves, Des., Codes and Cryptogr., vol. 89, pp. 965-972, 2021.
20
[2] A. Allen, K. Blackwell, O. Fiol, R. Kshirsagar, B. Matsick, G. L.
Matthews and Z. Nelson, Twisted Hermitian codes, Mathematics Spe-
cial Issue” Algebra and its Application, vol. 9, no. 1, 2021.
[3] S. Ball, On large subsets of a finite vector space in which every subset
of basis size is a basis, J. EMS, vol. 14, pp. 733-748, 2012.
[4] S. Ball, Some constructions of quantum MDS codes, Des., Codes and
Cryptogra. vol. 89, pp. 811-821, 2021.
[6] S. Ball and R. Vilar, The geometry of Hermitian orthogonal codes, Jour-
nal of Geometry, vol. 113, artical no. 7, 2022.
[9] A. Bassa and H. Stichtenoth, Self-dual codes better than the Gilbert-
Varshamov bound, Des., Codes and Cryptogr., vol. 87, pp. 173-182,
2019.
21
[14] M. A. de Boer, MDS codes from hyperelliptic curves, Proc. Arithmetic,
Geometry and Coding Theory, pp. 23-34, 1996.
[20] H. Chen and R. Cramer, Algebraic geometric secret sharing schemes and
secure multiparty computation over small fields, Crypto 2006, LNCS
4117, pp. 521-536, 2006.
22
[26] X. Fang, M. Liu and J. Luo, New MDS Euclidean self-orthogonal codes,
IEEE Trans. Inf. Theory, vol. 67, no. 1, pp. 130-137, 2021.
[30] G. Guo and R. Li, Hermitian self-dual GRS and entended GRS codes,
IEEE Commun. Lett., vol. 25, no. 4, pp. 1062-1065, 2021.
[31] T. A. Gulliver, J-L. Kim and Y. Lee, New MDS or near MDS codes,
IEEE Trans. Inf. Theory, vol. 54, no. 9, pp. 4354-4360, 2008.
[33] D. Han and Y. Ren, A tight upper bound for the maximal length of
MDS elliptic codes, IEEE Trans. Inf. Theory, vol. 69, no. 2, pp. 819-822,
2023.
[34] X. He, L. Xu and H. Chen, New q-ary quamtum MDS codes with dis-
tances bigger than q2 , Quantum Inf. Process., vol. 15, pp. 2745-2758,
2016.
[36] D. Huang, Q. Yue, Y. Niu and X. Li, MDS or NMDS self-dual codes from
twisted generalized Reed-Solomon codes, Des., Codes and Cryptogra.,
vol. 89, pp. 2195-2209, 2022.
23
[38] L. Jin and C. Xing, New MDS self-dual codes from generalized Reed-
Solomon codes, IEEE Trans. Inf. Theory, vol. 63, no. 3, pp. 14-34-1438,
2017.
[39] L. Jin and H. Kan, Self-dual near MDS codes from elliptic curves, IEEE
Trans. Inf. Theory, vol. 65, no. 4, pp. 2166-2170, 2019.
[40] X. Kai and S. Zhu, New quantum MDS codes from negacyclic codes,
IEEE Trans. Inf. Theory, vol. 59, no. 2, pp. 1193-1197, 2013.
[41] K. V. Kaipa, An asymptotic formula in q for the number of [n, k] q-ary
MDS codes, IEEE Trans. Inf. Theory, Vol. 60, no. 11, pp. 7047-7057,
2014.
[42] J. I. Kokkala, D. Krotov and P. R. J. Österga̋rd, On the classification
of MDS codes, IEEE Trans. Inf. Theory, Vol. 61, pp. 6485-6492, 2015.
[43] L. Landi and L. Vicino, Two-ponit AG codes from Beelen-Montanucci
cuvres, Finite Fields Appl., vol. 50, 102009, 2020.
[44] I. Landjev and A. Rousseva, The main conjcture for near MDS code,
WCC 2015, in Proc. 9th Int. Workshop on Coding and Cryptography,
A. Canteaut, G. Leurent, M. Naya-Plasencia, Apr 2015, Paris, France,
hal-01276222, 2015.
[45] H. Liu and S. Liu, Construction of MDS twisted Reed-Solomon codes
and LCD MDS codes, Des., Codes and Cryptogra., vol. 89, pp. 2051-
2065, 2021.
[46] G. Lunardon, R. Trombetti and Y. Zhou, Generalized twisted Gabidulin
codes, J. Combinat. Theory A, vol. 159, pp. 79-106, 2018.
[47] G. Luo, X. Cao and X. Chen, MDS codes with hulls of arbitray dimen-
sions and their quantum error correction, IEEE Trans. Inf. Theory, vol.
65, no. 5, pp. 2944-2952, 2019.
[48] F. J. MacWilliams and N. J. A. Sloane, The Theory of error-correcting
codes, 3rd Edition, North-Holland Mathematical Library, vol. 16. North-
Holland, Amsterdam, 1977.
[49] R. J. McEliece and D. V. Sarvate, On sharing secrets and Reed-Solomon
codes. Commun. ACM, vol 24, no. 11, pp. 583-584, 1981.
24
[50] C. Munuera, On main conjecture on MDS geometric codes, IEEE Trans.
Inf. Theory, vol. 38, no. 5, 1992.
[51] C. Munuera, On elliptic MDS codes, Discrete Math., vol. 117, pp. 279-
286, 1993.
[53] Y. Niu, Q. Yue, Y. Wu and L. Hu, Hermitian self-dual, MDS and gen-
eralized Reed-Solomon codes, IEEE Commun. Lett., vol. 23, no. 5, pp.
781-784, 2019.
[54] K. Otal and F. Özbudak, Additive rank-metric codes, IEEE Trans. Inf.
Theory, vol. 63, no. 1, pp. 164-168, 2017.
[55] I. Reed and G. Solomon, Polynomial codes over certain finite fields, J.
SIAM, vol. 8, pp. 300-304, 1960.
[57] H-G. Rück, A note on elliptic curves over finite fields, Math. Comput.,
Vol. 49, No. 179, pp. 301-304.
[58] B. Segre, Curve raizionali normali e k-archi negli spazi finiti, Ann. Mat.
Pura Appl., Vol. 39, pp. 357-378, 1955.
[59] A. Shamir, How to share a secret, Commun. ACM, vol. 22, no. 11, pp.
612-613, 1979.
[60] J. Sheekey, A new family of linear maximum rank distance code, Adv
Math. Commun., vol. 10, no. 3, pp. 475-488, 2016.
25
[63] A. M. Steane, Mutiple particle interference and quantum error correc-
tion, Proc. Roy. Soc. London, vol. 452, pp. 2551-2577, 1996.
[64] J. Sui, Q. Yue, X. Li and D. Huang, MDS, near MDS or 2-MDS self-dual
codes via twisted Reed-Solomon code, IEEE Trans. Inf. Theory, vol. 68,
no. 12, pp. 7832-7841, 2022.
[65] R. Trombetti and Y. Zhou, A new family of MRD codes in Fq2n×2n with
right and middle nuclei Fnq , IEEE Trans. Inf. Theory, vol. 65, no. 2, pp.
1054C1062, Feb. 2019.
26