Locally recoverable codes from rational maps
Abstract
Producción Científica
Full text
LOCALLY RECOVERABLE CODES FROM RATIONAL MAPS CARLOS MUNUERA AND WANDERSON TEN ´ ORIO Abstract. We give a method to construct Locally Recoverable Error-Correcting codes. This method is based on the use of rational maps between affine spaces. The recovery of erasures is carried out by Lagrangian interpolation in general and simply by one addition in some good cases. 1. Introduction Error-Correcting codes are used to detect and correct any errors occurred during the transmission of information. A linear code of length nover the finite field Fqis just a linear subspace Cof Fn q. If Chas dimension kand minimum Hamming distance dwe say that it is a [n, k, d] code. Locally Recoverable (LRC) Error-Correcting codes were introduced in [6] motivated by the recent and significant use of coding techniques applied to distributed and cloud storage systems. Roughly speaking, local recovery techniques enable us to repair lost encoded data by a ”local procedure”, which means by making use of small amount of data instead of all information contained in a codeword. Let Cbe a [n, k, d] code over Fq. As a notation, given a vector x∈Fn qand a subset R⊆ {1,...,n}, we write xR= prR(x) and CR= prR(C), where prRis the projection on the coordinates of R. A coordinate i∈ {1,...,n}is locally recoverable with locality rif there is a recovering set R(i)⊆ {1,...,n}with i6∈ R(i) and #R(i) = r, such that for any codeword x∈ C, an erasure in position ican be recovered by using the information of xR(i). That is to say, if for all x,y∈ C,xR(i)=yR(i)implies xi=yi. The code Chas all-symbol locality rif any coordinate is locally recoverable with locality at most r. We use the notation ([n, k], r) to refer to the parameters of such a code C. The notion of local recoverability can be extended in two directions as follows: Firstly it can be desirable to dispose of codes with multiple recovering sets for each coordinate [15]. The code Cis said to have trecovering sets if for each coordinate ithere exist disjoint sets R(i, j), j= 1,...,t, such that #R(i, j)≤rjand the coordinate xican be recovered from the coordinates of prR(i,j)(x) for all x∈ C, as above. The existence of several recovering sets is known as the availability problem, as these codes make the recovering of loss data 2010 Mathematics Subject Classification. 94B27, 11G20, 11T71, 14G50, 94B05. Key words and phrases. error-correcting code, locally recoverable code, algebraic geometry code, Reed- Muller code, toric code. 1
2 CARLOS MUNUERA AND WANDERSON TEN ´ ORIO better available. Secondly we can recover more than one erasure at the same time. C is said to have the (ρ, r)locality property if for each coordinate ithere is a subset ¯ R(i) containing isuch that # ¯ R(i)≤r+ρ−1 and ρ−1 erasures in x¯ R(i)can be recovered from the remaining coordinates of x¯ R(i). It is clear that every code of minimum distance d > 1 is in fact an LRC code able to recover ρ=d−1 erasures, simply by taking ¯ R(i) = {1,2,...,n}. But such recovering sets do not fit into the philosophy of local recovery. We are interested in codes Callowing smaller recovering sets (in relation to the other parameters of C). In this sense, we have the following Singleton-like bound: the locality rof an [n, k, d] code Cobeys the relation (see [6]) (1) k r≤n−k−d+ 2. Codes reaching equality are called Singleton-optimal (or simply optimal) LRC codes, since they have the best possible relationship between these parameters. The number n−k−d+ 2 − ⌈k/r⌉is the optimal defect of C. Similarly we say that Cis Singletonalmost-optimal if, according to Eq. (1), no codes of type ([n, k + 1, d], r) may exist, that is if (k+ 1)/r > n −(k+ 1) −d+ 2. Slight modifications in the proof of Eq. (1) show that more generally, for t= 1,...,k, we have k−t+ 1 r≤n−k−dt+t+ 1 where d1,...,dkis the weight hierarchy of C. We deduce r≤kand, from the duality of the weight hierarchy, r≥d⊥−1. MDS codes (and Reed-Solomon codes in particular) satisfy CR=Fk qfor every set Rof kpositions, hence they have the largest possible locality r=k. Also, adding a parity check to kinformation symbols we get a ([(k+ 1)t, kt, 2], k) optimal code for all positive integer t(which is MDS for t= 1). Optimal codes that either are MDS or have the previous parameters will be called trivial. The search for long nontrivial optimal codes is a challenging problem, and in fact for most known optimal nontrivial codes, the cardinality of the ground field Fqis much larger than the code length n, [16]. In [18] a variation of Reed-Solomon codes for local recoverability purposes was introduced by Tamo and Barg. These so-called LRC RS codes are optimal and can have much smaller locality than RS codes themselves. Its length is still smaller to the size of Fq. A classical way to obtain larger codes is to use algebraic curves with many rational points. In this way LRC RS codes were extended by Barg, Tamo and Vladut [2, 3], to the so-called LRC Algebraic Geometry (LRC AG) codes, actually obtaining larger LRC codes. In this article we propose a construction of LRC codes obtained from rational maps between affine spaces that, to a certain extent, generalizes the methods of [2, 3, 18]. The main idea is to consider a rational map φ:Am(Fq)→At(Fq) and a linear space
LOCALLY RECOVERABLE CODES FROM RATIONAL MAPS 3 Vof functions such that any f∈Vbehaves as a univariate polynomial over each fibre of φ. Under appropriate conditions it is possible to recover such polynomials by using Lagrangian interpolation. Then the code ev(V), where ev is an evaluation map, is an LRC code whose recovering sets are the fibres of φ. The paper is organized as follows. The general construction of our codes is developed in Section 2. In the following two sections this construction is applied to some particular cases: to algebraic curves in Section 3 and to other geometric sets in Section 4. Each case is illustrated with several examples. 2. LRC codes from rational maps The construction of LRC codes we propose relies on rational maps between affine spaces, extending ideas of [2, 18]. For the convenience of the reader, we begin by briefly recalling those constructions. 2.1. LRC codes from Algebraic Geometry. The construction of LRC RS codes is as follows [18]: let A(Fq) be the affine line over Fqand let P1,...,Pt⊂A(Fq) be t > 1 pairwise disjoint subsets of cardinality r+ 1 such that there exists a polynomial φ(x)∈Fq[x] of degree r+ 1 which is constant over each Pi={Pi,1,...,Pi,r+1},i= 1, ..., t. Set P=P1∪···∪Ptand n=t(r+ 1). Fix an integer ksuch that r|kand k+k r≤n, and consider the linear space of polynomials V= r−1 X i=0 k/r−1 X j=0 aijφ(x)jxi:aij ∈Fq . The code Cis obtained by evaluation of Vat the points of P, evP:V→Fn q, evP(f) = (f(Pij), i = 1,...,t,j = 1,...,r+ 1). Since deg(f)≤k+k r−2< n for all f∈V, the map evPis injective hence dim(C) = dim(V) = k. Furthermore given f∈V, for all i= 1,...,t, there exists a polynomial fi(x) of degree ≤r−1 such that fi(Pij) = f(Pij), j= 1,...,r+ 1. Such fi’s can be computed through interpolation at any rpoints of Pi, so a recovering set for the coordinate corresponding to a point Pij is R(i) = Pi\{Pij}. Then Cis a linear ([n, k], r) LRC optimal code. The above method is extended to construct LRC AG codes as follows [2, 3]: let X,Y be two algebraic curves over Fqand let φ:X → Y be a rational separable morphism of degree r+ 1. Take a set S ⊆ Y(Fq) of rational points with totally split fibres and let P=φ−1(S). Let Dbe a rational divisor on Ywith support disjoint from Sand denote by L(D) its associated Riemann-Roch space of dimension m=ℓ(D). By the separability of φthere exists y∈Fq(X) satisfying Fq(X) = Fq(Y)(y). Let V=(r−1 X i=0 m X j=1 aijfjyi:aij ∈Fq)
4 CARLOS MUNUERA AND WANDERSON TEN ´ ORIO where {f1,...,fm}is a basis of L(D). The LRC AG code Cis defined as C= evP(V)⊆Fn q, with n= #P. Note that Cis a subcode of the algebraic geometry code C(P, G) = evP(L(G)), where Gis any divisor on Xsatisfying V⊆ L(G). In particular d(C)≥ d(C(P, G)) ≥n−deg(G). Let evP(f), f∈V, be a codeword in C. Since the functions of L(D) are constant on each fibre φ−1(S), S∈ S, the local recovery of an erased coordinate f(P) of evP(f) can be performed by Lagrangian interpolation at the remaining rcoordinates of evP(f) corresponding to points in the fibre φ−1(φ(P)) of P. LRC AG codes with availability have been studied in [9]. For a complete reference on algebraic geometry codes, see [10]. Theorem 1. [3, Thm. 3.1] If evPis injective on Vthen C ⊆ Fn qis a linear ([n, k, d], r) LRC code with parameters n=s(r+ 1),k=rℓ(D)and d≥n−deg(D)(r+ 1) −(r− 1) deg(y). Example 1. (Example 1 of [18]). The polynomial φ(x) = x3∈F13[x] is constant over the sets P1={1,3,9},P2={2,6,5}and P3={4,10,12}. By the first construction we get optimal LRC codes of length 9, locality 2 and dimensions k= 2,4,6. The same codes can be obtained by the second construction from the curve X:x3=yand the morphism φ=y:X → P1. Example 2. (a) Codes from the Hermitian curve H:xq+1 =y+yqover Fq2were studied in [3]. Consider the morphism φ=x:H → P1of degree q. Take S=A(Fq2)⊆P1 and thus φ−1(S) = H(Fq2)\{Q}, where Qis the point at infinity of H. If D=l∞then V=Lr−1 i=0 h1, x, x2,...,xliyi⊆Fq2(H). We get codes of locality r=q−1 and parameters n=q3,k=r(l+ 1), d≥n−deg(G), where G= (−vQ(xlyr−1))Qand vQis the valuation at Q. (b) Codes from the Norm-Trace curve x1+q+···+qu−1=y+yq+···+yqu−1over Fquwere studied by Ballico and Marcolla in [1]. Following similar ideas they found a family of LRC codes of locality r=qu−1−1, length n=q2u−1and dimension k= (t+ 1)(qu−1−1). 2.2. LRC codes from rational maps. Let φ1,...,φt, φt+1 ∈Fq(x1,...,xm) be rational functions and let A ⊆ Am(Fq) be a subset in which none of these functions have poles. Then the map φ= (φ1, . . . , φt) : A ⊆ Am(Fq)→At(Fq) is well defined. Take two sets S ⊆ At(Fq) and P ⊆ φ−1(S) and define r= minS∈S∗#{φt+1(P) : P∈ P, φ(P) = S}−1, where S∗={S∈ S :φ−1(S)6=∅}. Thus, the function φt+1 takes at least r+ 1 different values in the points of the fibre φ−1(S) for all S∈ S∗. If r > 0, for i= 0,...,r−1, consider a linear Fq-space Vi⊂Fq[φ1,...,φt], and let (2) V= r−1 M i=0 Viφi t+1 ⊂Fq[φ1,...,φt+1]⊂Fq(x1,...,xm). We define the code C=C(P, V ) as the image of the evaluation at Pmap evP:V→Fn q, where n= #P. Then Cis a linear code of length n. If evPis injective then its dimension is
LOCALLY RECOVERABLE CODES FROM RATIONAL MAPS 5 dim(V). Furthermore Cis an LRC code of locality r, where recovering is obtained through Lagrangian interpolation in each fibre of φ: let f∈Vand suppose we want to recover an erasure at position f(P). Let S=φ(P) and {P1,...,Pr+1 =P} ⊆ φ−1(S)∩P a set in which φt+1 takes r+1 different values. Since all functions in each Viare constant in the fibre of S, the restriction of fto this fibre can be written as a polynomial fS=Pr−1 j=0 ajTj, that is f(Pj) = fS(φt+1(Pj)) for all j= 1,...,#φ−1(S). Since φt+1 takes at least r+1 different values in φ−1(S), the polynomial fSmay be computed by Lagrangian interpolation from φt+1(P1),...,φt+1(Pr). Example 3. Consider the rational functions φ1=x/y, φ2= (y−1)/z and the map φ= φ1:A ⊂ A3(F3)→A1(F3), where A={(x, y, z)∈A1(F3) : yz 6= 0}. Let S=A1(F3). Then φ−1(0) = {(0,1,1),(0,1,2),(0,2,1),(0,2,2)},φ−1(1) = {(1,1,1),(1,1,2),(2,2,1), (2,2,2)},φ−1(2) = {(1,2,1),(1,2,2), (2,1,1),(2,1,2)}. Note that φ2(0,1,1) = φ2(0,1,2); φ2(1,1,1) = φ2(1,1,2) and φ2(2,1,1) = φ2(2,1,2). We set P={(0,1,2),(0,2,1), (0,2,2); (1,1,2), (2,2,1),(2,2,2); (1,2,1),(1,2,2),(2,1,2)}and hence r= 2. If we take the spaces of functions V1=h1,x yi⊕h1iy−1 zand V2=h1,x y,x2 y2i⊕h1,x yiy−1 z we get a ([9,3,6],2) optimal LRC code C1(from V1) and a ([9,5,3],2) optimal code C2 (from V2). Both have length much larger than the cardinality of F3. In fact, the length and locality of these codes are the same as those of Example 1, although the cardinal of the ground field is considerably smaller. Defined in such generality, it is not possible to say too much about the parameters and behaviour of codes obtained by the aforementioned construction. In the subsequent sections we will discuss in more detail several particular classes of codes given by this method. As we shall see, in some of these cases the local recovery can be done by a simple checksum and does not require interpolation, which is simpler and faster. Example 4. For both codes C1and C2of Example 3, a direct inspection shows that for any codeword evP(f), f∈V2(as defined in Example 3), the sum of their coordinates corresponding to each fibre of φis zero. Thus a single erasure is corrected by one addition. This construction also allows us to recover more than one erasure. Following the standard notation as in the Introduction, suppose we want to correct ρ−1 erasures in the coordinates corresponding to a fibre of φ. For this, let r= minS∈S∗#{φt+1(P) : P∈ P, φ(P) = S}−ρ, consider the space of functions Vas stated in equation (2), with respect to the new value of r, and define C= evP(V). The restriction of f∈Vto the points in a fibre of φis a polynomial of degree r−1. It can be computed from the information of any r available coordinates among the at least r+ρ−1 coordinates corresponding to points in this fibre for which φt+1 takes different values.
6 CARLOS MUNUERA AND WANDERSON TEN ´ ORIO 3. LRC codes from Algebraic Curves 3.1. The construction for algebraic curves. Let X ⊂ Pm(Fq) be a (algebraic, projective, absolutely irreducible) curve over Fq. Take a rational point Q∈ X(Fq). After a change of coordinates, if necessary, we can assume that Qis a point at infinity. The set L(∞Q) = ∪s≥0L(sQ) is a finitely generated Fq-algebra. Take rational functions φ1,...,φt+1 ∈ L(∞Q) and fix representatives of these functions (still denoted φ1,...,φt, φt+1 by abuse of notation). Let A ⊆ X(Fq) be the set of rational affine points on Xand consider the map φ= (φ1,...,φt) : A ⊆ Am(Fq)→At(Fq). Let S ⊆ At(Fq), P ⊆ φ−1(S) and ras in the general construction. For i= 0,...,r−1, fix linear Fq-spaces Vi⊂Fq[φ1,...,φt] and V= r−1 M i=0 Viφi t+1 ⊂Fq[φ1,...,φt+1]. Since φt+1 ∈ L(∞Q), no point of Pis a pole of φt+1. We define the code C=C(P, V ) as the image of the evaluation at Pmap evP:V→Fn q, where n= #Pis the length of C. Note that the number of zeros of a function fis related to the value vQ(f), where vQ is the valuation at Q: the larger this number, then the smaller the weight of evP(f) may be. This fact leads us to use the language of polytopes to define the space of functions V. For our purposes a polytope will be a set P⊂Nt+1 0, where N0stands for the set of nonnegative integers. Often we shall take Pas the convex hull of a set of points including (0,...,0) and (0,...,0, r −1). Given a polytope Pwe can consider the associated linear Fq-space V(P)⊆Fq[φ1,...,φt] spanned by the functions {φα1 1···φαt+1 t+1 : (α1,...,αt+1)∈P}. In our case, for i= 1,...,t+ 1, let vi=−vQ(φi). For l≥1 we consider the polytope in Nt+1 0 P=P(l) = {(α1, . . . , αt+1)∈Nt+1 0:v1α1+···+vt+1αt+1 ≤l, αt+1 ≤r−1}. If V=V(P(l)), then V⊆ L(lQ) and hence C(P, V ) is a subcode of the usual AG code C(P, lQ). Then C(P, V ) is an LRC code of locality r. When l < n = #Pthe evaluation map evP:L(lQ)→Fn qis injective, then so is evP:V→Fn q, and the dimension of C(P, V ) is #P. The minimum distance of C(P, V ) is at least the minimum distance of C(P, lQ), that is n−l. Remark 1.Our construction of LRC codes from curves extends that given in [2, 3]. The main difference is in the set Vof functions to be evaluated. In the language of [2, 3], rather than considering a unique divisor D, we may consider rrational divisors D0,...,Dr−1on Y, the space of functions V=Lr−1 i=0 L(Di)yiand the code evP(V)⊆Fn q. This change does not affect the locality nor the recovering method. Using a sequence of divisors D0,...,Dr−1, instead of a single divisor Dprovides greater flexibility to the construction. Typically one can take D0≥ ··· ≥ Dr−1. Since codewords of smaller weight come from evaluation of functions f∈ L(Di)yiwith larger i, this strategy allows
LOCALLY RECOVERABLE CODES FROM RATIONAL MAPS 7 to increase the dimension of Cwithout affecting the estimate on the minimum distance. In Subsection 3.4 we shall show several examples of this fact. Recall that codes of this type were already considered by Maharaj in [13] using the language of function fields. In that paper, it is shown that the smallest divisor Gsatisfying V⊆ L(G) is described as G= max{(φ∗(Di)−div(yi) : 0 ≤i≤r−1}, where φ∗: Div(Y)→Div(X) is the pull-back map induced by φ. In the rest of this section we present examples of LRC codes obtained from some types of curves which are well known in coding theory. 3.2. LRC codes from the Klein quartic. The Klein quartic is the curve Kdefined over F8 by the affine equation x3y+y3+x= 0. Codes from this curve have been extensively studied, [8]. It has 24 rational points, being two of them at infinity, R= (0 : 1 : 0) and Q= (1 : 0 : 0). The Weierstrass semigroups at Rand Qare both equal to h3,5,7i. The rational functions φ1=x/y and φ2=x/y2have poles only at Q, with multiplicity 3 and 5 respectively. Example 5. Let Abe the set of affine rational points of Kand consider the rational function φ1:A → A1(F8). The only ramified point of φ1is (0,0), hence #φ−1 1(S) = 3 for all S∈A1(F8), S6= 0. Take S=A1(F8)\ {0}and P=φ−1 1(S) = A \ {(0,0)}. Since φ2takes 3 distinct values in all fibres φ−1 1(S), S∈ S, we have r= 2. The polytope P=P(6) = {(α, β)∈N2 0: 3α+ 5β≤6, β ≤1}leads to the space of functions V=h1, φ1, φ2 1i ⊕ h1iφ2which, through evaluation at P, produces a ([21,4,15],2) LRC code of optimal defect 2. Let us note that according to the Griesmer bound, the maximum possible minimum distance dfor a linear [21,4]8code is d= 16, and therefore optimal ([21,4]8,2) LRC codes cannot exist. In the same way, by considering polytopes P(l), 1 ≤l≤20, we obtain LRC [n, k] codes, 1 ≤k≤13, of locality 2. Those of dimension 1,11,13 are optimal. For the rest, those of odd dimension have defect 1 and those of even dimension have defect 2. The true minimum distances of these codes have been computed with the computer system Magma [12]. In the non-optimal cases, further modifications of the above polytopes can lead to codes with better parameters. For example, if we remove (6,0) from P(20), we get a [21,12,4] almost-optimal code. The same happens for the other values of l. 3.3. LRC codes from elliptic curves. Let Xbe an elliptic curve over Fq. If we assume char(Fq) = p6= 2,3, then Xhas a plane model given by an affine equation of the form y2=x3+ax +band exactly one point at infinity, Q. Although the above theory may be applied to any elliptic curve, in this section, by way of example, we shall restrict ourselves to those of equations y2=x3+B. If q≡3 (mod 3) then all of them have q+ 1 rational points [14], and no interest to construct LRC codes by our method.
8 CARLOS MUNUERA AND WANDERSON TEN ´ ORIO Assume q≡1 (mod 3) and let ξbe a primitive element of Fq. Since ω=ξ(q−1)/3is a cubic root of unity, for each of these curves X, if (a, b)∈ X(Fq) then also (ωa, ±b)∈ X(Fq). Thus the set Aof rational affine points (a, b) of Xwith a6= 0 can be grouped in triples, {(a, b),(ωa, b),(ω2a, b)}, and a= 0 happens at most for two points. We can obtain LRC codes of locality r= 2 from X. To this end, let Abe the set of points belonging to these triples, φ=y:A ⊂ A2→A1,S=A1and P=A ⊆ φ−1(A1). Let n= #P ≥ #X(Fq)−3. Since −vQ(x) = 2,−vQ(y) = 3, for l≥1 we consider the polytope P(l) = {(α, β)∈N2 0: 2α+3β≤l, α ≤1}of cardinality #P(l) = l−⌊(l−1)/3⌋and the linear space of functions V(l) = h{xαyβ: (α, β)∈P(l)}i ⊂ L(lQ). Let C=C(P, V (l)) obtained by evaluation at Pof all functions in V(l). Since C(P, V (l)) ⊆C(P, lQ), if l < n then evPis injective, so the dimension of Cis #P(l) and its minimum distance is n−l. A straightforward computation shows that having these parameters, Cis optimal when l≡0 (mod 3) and almost-optimal when l≡2 (mod 3). In order to determine the length of these codes, we shall study the number of rational points on our curves. There exist six isomorphism classes of such curves, namely Xi:y2= x3+ξi,i= 0,...,5. In [14] a fast algorithm to determine the cardinality of all of them can be found. However, we do not use this algorithm here and we will limit ourselves to using some elementary facts established in that article. Write Si= #Xi−q−1. Since X0∼ =X3,X0∼ =X3,X0∼ =X3over Fq2,X0∼ =X2∼ =X4,X1∼ =X3∼ =X5over Fq3, and all of them are isomorphic over Fq6, we deduce that S0=−S3, S1=−S4, S2=−S5and S2 0+S2 1+S2 2= 6q. Then any of these six curves Xihas at least q+ 1 + √2qpoints. If qis an even power, then any of these six curves Xihas q+ 1 + 2√qpoints. Even in the case that qis an odd power, numerical experiments show that in most cases any of these six curves has either q+ 1 + 2√qor q+ 2√qpoints. In conclusion, when q≡1 (mod 3) we can always find optimal LRC codes of locality r= 2 and length n≥q+√2q−2. Example 6. Consider the field F13 and the primitive element ξ= 2. The curve X2:y2= x3+ 4 has 20 affine points (the maximum possible), namely (7,±3),(8,±3),(11,±3); (4,±4),(10,±4),(12,±4); (2,±5),(5,±5),(6,±5) and (0,±2). We obtain LRC Elliptic codes of length n= 18, locality r= 2 and dimensions k= 1,...,12. Those of odd dimension are optimal whereas those of even dimension are almost-optimal. Remark that the length of these codes is twice the length of those of Example 1. 3.4. LRC codes from Hermitian curves. Among all curves used to obtain AG codes, Hermitian curves H:xq+1 =yq+yover Fq2, are by far the most studied and best known. In this subsection we include some examples of LRC Hermitian codes. Since such codes have been treated also in [2, 3], these examples will allow us to show how our construction can provide codes with better parameters than those obtained from the original construction of [2, 3]. In subsequent subsections we will study further properties of Hermitian codes, including the recovery process.
LOCALLY RECOVERABLE CODES FROM RATIONAL MAPS 9 Example 7. Consider the Hermitian code Ctreated in [3, Section IV] and Example 2(a). It is constructed over Fq2as the evaluation code C= evP(V) from the Hermitian curve H, the set P=H(Fq2)\{Q}, where Qis the only point at infinity, and the space of functions V=Lr−1 i=0 h1, x, x2,...,xliyi. Then r=q−1. Ccan be obtained also from the rectangular polytope P={(α, β)∈N2 0:α≤l, β ≤r−1}. In order to compare this code with some others obtained through our construction of Section 3.1, we note that −vQ(x) = q, −vQ(y) = q+ 1 and so max{−vQ(f) : f∈V}=lq + (r−1)(q+ 1). This fact suggests to consider the polytope P′={(α, β)∈N2 0:qα+(q+1)β≤lq+(r−1)(q+1), β ≤r−1} which leads to the space of functions V′=Lr−1 i=0 h1, x, x2,...,xliiyiwith li=l+r−i−1, i= 0,...,r−1, and the code C′= evP(V′). Note that V, V ′⊆ L((lq + (r−1)(q+ 1))Q), hence whenever lq + (r−1)(q+ 1) < n =q3, both maps evP:V→Fn qand evP:V′→Fn q are injective. So dim(C) = (l+ 1)rand dim(C′) = #P= dim(C) + ((r−1) + ···+ 0). Thus there is a gain of (r−1) + ···+ 1 = (q−1)(q−2)/2 units in the dimension of C′ without affecting the estimate on the minimum distance. For example, if q= 5 then for any value of l≤21, evPis injective, the dimension increases by 6 units and the optimal defect decreases by 8 units. Example 8. Consider again the Hermitian code Cof Example 2(a). Let us take here the opposite way to the previous Example 7 and construct LRC Hermitian codes with improved minimum distance and at least the same dimension. Let Vand Cas in Example 7. Let l′=l− ⌊r(r−1)/2q⌋. Consider now the space of functions V′= Lr−1 i=0 h1, x, x2,...,xl′ iiyiwith l′ i=l′+r−i−1, i= 0,...,r−1, and the code C′= evP(V′). Note that l′=l− ⌊r(r−1)/2q⌋implies q(l′+ 1) + r(r−1)/2≥q(l+ 1) so, according to the considerations made in Example 7, dim(C′)≥dim(C). Furthermore, since V⊆ L((lq + (r−1)(q+ 1))Q), V′⊆ L((l′q+ (r−1)(q+ 1))Q), the estimate on the minimum distance of C′is (l−l′)q≈r(r−1)/2 units larger than the estimate on the minimum distance of C. For example, if q= 5 then dim(C) = 5l+ 5, dim(C′) = 5l+ 6 and the estimate on the minimum distance of C′is 5 units larger than the estimate on the minimum distance of C. Numerical experiments using Magma to compute the true minimum distances of these codes show that this is the case for most values of l. 3.5. AG Hermitian codes as LRC codes. Let C= evP(V) be an LRC code obtained from a curve X, a point Qand the sets Pand V. Our estimate on the minimum distance of Ccomes from the Goppa bound on the minimum distance of the smallest AG code C(P, G) containing C, which is probably much bigger than C. Furthermore, no efficient decoding algorithms for Care currently available, so that we are compelled to decode it as a subcode of C(P, G), bypassing its true error-correcting capability. Consequently it is natural to ask when Cis an AG code itself, that is when V=L(G). We cannot expect this to happen in general, but it is possible when the linear space Vis suitably chosen. In this subsection we discuss the case of Hermitian codes and the rational map φ=x. Note that a function f∈ L(∞Q)⊂Fq2(H) can be uniquely written as a polynomial
16 CARLOS MUNUERA AND WANDERSON TEN ´ ORIO n1, n2, n3polytope parameters locality remarks 2,2,3Q1[12,7,3] 2 optimal 2,2,3Q2[12,6,4] 2 almost-optimal 2,2,6Q3[24,19,3] 5 optimal 2,2,6Q4[24,18,4] 5 optimal 3,3,3Q5[27,17,3] 2 optimal 3,3,3Q6[27,16,4] 2 almost-optimal 3,3,6Q7[54,44,3] 5 optimal 3,3,6Q8[54,13,4] 5 optimal Table 2. LRC Affine Variety codes of Example 13 the simplex ∆(l), l≤q−1. Recall that #∆(l) = m+l mand the minimum distance of C(P, V (∆(l))) is known to be (q−1)m−1(q−l−1), [11]. Example 14. Consider the field F7, the rings of polynomials in two and three variables and the projection φ=x. The following Table 3 contains the parameters of LRC codes obtained by using the following polytopes: P1=H(6,5) \{(5,4)},P2=P1\ {(5,3)}, P3=P2\{(5,2),(4,4)},P4=P3\{(5,1)},R1= ∆(4)\{(4,0),(0,4)}in dimension two; and Q1=H(6,6,5) \{(5,5,4)},Q2=Q1\{(0,0,0)}in dimension three. For a better understanding of these results we recall that the best known [36,25] and [36,13] codes over F7have minimum distances 7 and 17 respectively, [7]. polytope parameters locality remarks P1[36,29,3] 5 optimal P2[36,28,4] 5 optimal P3[36,26,5] 5 defect 1 P4[36,25,6] 5 defect 2 R1[36,13,15] 4 availability 2 corrects 2 erasures Q1[216,179,3] 5 optimal Q2[216,178,4] 5 optimal Table 3. LRC Toric codes of Example 14 4.4. LRC codes from Reed-Muller codes. Let R[x1,...,xm] be the set of reduced polynomials in Fq[x1,...,xm] and R[x1,...,xm]lbe the set of reduced polynomials of total degree at most l. Note that these sets are the spaces of functions V(P) associated to the polytopes P=H(q,...,q) and P= ∆(l), respectively. It is well known that the evaluation at A=Am(Fq) map evA:R → Fn qis an isomorphism ([10] or Corollary 1). The Reed-Muller code RM(l, m) is defined as RM(l, m) = evA(R[x1,...,xm]l). When l≤q−2 this is already an LRC code. To see that we take S=Am−1(Fq), the map φ= (x1,...,xm−1) : Am(Fq)→Am−1(Fq) and P=A. It is clear that for any
LOCALLY RECOVERABLE CODES FROM RATIONAL MAPS 17 S∈Am−1(Fq) the fibre φ−1(S) consists of qpoints, hence RM(l, m) has locality r=q−1 and length n= #Am(Fq) = qm. When l≤q−1 then RM(l, m) has minimum distance d= (q−l)qm−1and dimension is #∆(l) = m+l m. In general, given a polytope P⊆ H(q,...,q,q−1) we can consider the linear space V(P), which can be written as V(P) = Lq−2 i=0 Vixi mwith Vi⊆ R[x1,...,xm−1], and the code C(P, V (P)) = evP(V(P)). This is an LRC code on length n=qm, locality r≤q−1 and dimension k= #P, since evPin injective. The next propositions state two interesting properties of such codes C(P, V (P)). Proposition 5. Let P⊆ H((q,...,q,q−1) be a polytope and let C=C(P, V (P)). For any codeword c∈ C the sum of the coordinates of ccorresponding to each fibre of φis zero. Thus Callows a local recovery of single erasures by one addition. Proof. Let f∈V(P) and P∈ P. Write φ(P) = Sand φ−1(S) = {P1,...,Pq}the fibre of S, with P=Pjfor some j. The points P1,...,Pq, differ in their m-th coordinate, which runs through all the elements of Fq. Then, since facts on the fibre φ−1(S) as a polynomial fS(xm), we have q X i=1 f(Pi) = X α∈Fq fS(α) = 0 where the last equality follows from Lemma 1 as the elements α∈Fqare precisely the roots of the linearized polynomial xq−x(or see [10]). The second interesting property of these codes refers to the availability problem. Fix a variable xj. Let δbe the maximum degree in xjof all elements in V(P). Then this space can be written as V(P) = Lδ i=0 V′ ixi jwith V′ i⊆ R[x1,...,xj−1, xj+1,...,xm]. If δ≤q−2, an erasure at the position f(P) of the word evP(f) can be recovered from the fibre ψ−1(ψ(P)), where ψis the projection map ψ= (x1,...,xj−1, xj+1,...,xm) : Am(Fq)→Am−1(Fq). Note that the fibres φ−1(φ(P)) and ψ−1(ψ(P)) only meet at P. In particular, when P⊆ H(q−1,...,q −1), then each coordinate of a codeword in C(P, V (P)) has mdisjoint recovering sets. We have the following result. Proposition 6. Let P⊆ H((q,...,q)be a polytope and let C=C(P, V (P)). If Phas i-degree r−1for some i1,...,itand 1≤r≤q−1, then the code C(P, V (P)) is an LRC code with t-availability and locality rfor all i1,...,it. Example 15. Let q= 7, P=A2(F7) and P⊆∆(6) ⊂N2 0. (a) If P= ∆(6) then C(P,P) is the Reed-Muller code RM(6,2) of parameters [49,28,7]. Note that this code is not included in our construction as LRC code. In fact RM(6,2) has locality r≥d(RM(6,2)⊥)−1 = d(RM(5,2)) −1 = 13. Let P1= ∆(6) \{(0,6),(6,0)}. Then C1=C(P,P1) is a [49,26,12] code. The best known minimum distance for a [49,26]7 linear code is d= 14, [7]. Let P2=P1\ {(1,1)}. Then C2=C(P,P2) is a [49,25,14]
18 CARLOS MUNUERA AND WANDERSON TEN ´ ORIO code. Both C1and C2are LRC codes of locality r= 6 for which any coordinate has two disjoint recovering sets, and the recovery can be performed through checksum. (b) If P= ∆(5) then C=C(P,P) is the Reed-Muller code RM(5,2) of parameters [49,21,14]. This is an LRC code of locality r= 6. Let P1= ∆(6) \{(0,5),(5,0)}. Then C1=C(P,P1) is a [49,19,18] code. The best known minimum distance for a [49,19]7 linear code is d= 20, [7]. Let P2=P1\ {(1,1)}. Then C2=C(P,P2) is a [49,18,20] code. The best known minimum distance for a [49,18]7linear code is d= 21, [7]. Both C1and C2are LRC codes of locality r= 5. As in (a), any coordinate has two disjoint recovering sets, and the recovery can be performed through checksum. Acknowledgments The first author was supported by Spanish Ministerio de Econom´ıa y Competitividad under grant MTM2015-65764-C3-1-P MINECO/FEDER. The second author was supported by CNPq-Brazil under grants 159852/2014-5 and 201584/2015-8. References [1] E. Ballico, C. Marcolla, Higher Hamming weights for locally recoverable codes on algebraic curves, Finite Fields Appl. 40 (2016), 61–72. [2] A. Barg, I. Tamo, S. Vladut, Locally recoverable codes on algebraic curves, in Proceedings of ISIT- 2015, Hong Kong, 2015, 1252–1256. [3] A. Barg, I. Tamo, S. Vladut, Locally recoverable codes on algebraic curves, arXiv:1603.08876. [4] D. Cox, J. Little, D. O’Shea, Ideals, Varieties, and Algorithms, Springer, New York, 1992. [5] O. Geil, Evaluation codes from an Affine Variety code perspective, in E. Martinez (Ed.), Advances in Algebraic Geometry codes, World Scientific, Hackensack, 2008, 153–180. [6] P. Gopalan, C. Huang, H. Simitci, S. Yekhanin, On the locality of codeword symbols, IEEE Trans. Inform. Theory 58(11) (2012), 6925–6934. [7] M. Grassl, Bounds on the minimum distance of linear codes. Online available at http://www.codetables.de. Accessed on 2017-05-15. [8] J. Hansen, Codes on the Klein quartic, ideals and decoding, IEEE Trans. Inform. Theory 33(6) (1987), 923–925. [9] K. Haymaker, B. Malmskog, G.L. Mathews, Locally recoverable codes with availability t≥2 from fiber products of curves. ArXiv: 1612.03841, 2016. [10] T. Høholdt, J.H. van Lint, R. Pellikaan, Algebraic geometry codes, in V.S. Pless, W.C. Huffman, R.A. Brualdi (Eds.), Handbook of Coding Theory, Elsevier, Amsterdam 1998, 871–961. [11] J. Little, R. Schwarz, On toric codes and multivariate Vandermonde matrices, Appl. Algebra Engrg. Comm. Comput. 18(4) (2007), 349–367. [12] Magma Computational Algebra System. Online available at http://magma. maths.usyd.edu.au/magma/. [13] H. Maharaj, Explicit constructions of algebraic-geometric codes, IEEE Trans. Inform. Theory 51(2) (2005), 714–722. [14] C. Munuera, An algorithm to compute the number of points on elliptic curves of j-invariant 0 or 1728 over a finite field, Rend. Circ. Mat. Palermo (II) 42(1) (1993), 106–116.
LOCALLY RECOVERABLE CODES FROM RATIONAL MAPS 19 [15] A.S. Rawat, D.S. Papailiopoulos, A.G. Dimakis, S. Vishwanath, Locality and availability in distributed storage, in Proceedings of ISIT-2014, Honolulu, 2014, 681–685. [16] N. Silberstein, A. Singh Rawat, S. Vishwanath, Error-correcting regenerating and locally repairable codes via rank-metric codes, IEEE Trans. Inform. Theory 61(11) (2015), 5765–5778. [17] I. Soprunov, J. Soprunova, Bringing toric codes to the next dimension, SIAM J. Discrete Math. 24(2) (2010), 655–665. [18] I. Tamo, A. Barg, A family of optimal locally recoverable codes, IEEE Trans. Inform. Theory 60(8) (2014), 4661–4676. Department of Applied Mathematics, University of Valladolid, Avda Salamanca SN, 47014 Valladolid, Castilla, Spain E-mail address:[email protected]s Faculdade de Matem´ atica, Universidade Federal de Uberlˆ andia (UFU), Av. J. N. ´ Avila 2121, 38408-902, Uberlˆ andia, MG , Brazil E-mail address:[email protected].br