Evaluation codes and their basic parameters
Delio Jaramillo, Maria Vaz Pinto, Rafael H. Villarreal

TL;DR
This paper provides formulas and bounds for generalized Hamming weights of evaluation codes, including Reed--Muller, toric, and squarefree codes, advancing understanding of their parameters and minimum distances.
Contribution
It introduces degree formulas for generalized Hamming weights and establishes lower bounds, specifically analyzing Reed--Muller, toric, and squarefree evaluation codes.
Findings
Degree formulas for generalized Hamming weights of Reed--Muller codes
Minimum distance of toric codes over hypersimplices determined
First and second generalized Hamming weights of squarefree evaluation codes identified
Abstract
The aim of this work is to give degree formulas for the generalized Hamming weights of evaluation codes and to show lower bounds for these weights. In particular, we give degree formulas for the generalized Hamming weights of Reed--Muller-type codes, and we determine the minimum distance of toric codes over hypersimplices, and the 1st and 2nd generalized Hamming weights of squarefree evaluation codes.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Evaluation codes and their basic parameters
Delio Jaramillo
Departamento de Matemáticas
Centro de Investigación y de Estudios Avanzados del IPN
Apartado Postal 14–740
07000 Mexico City, Mexico.
,
Maria Vaz Pinto
Departamento de Matemática, Instituto Superior Técnico, Universidade de Lisboa, Avenida Rovisco Pais, 1, 1049-001 Lisboa, Portugal.
and
Rafael H. Villarreal
Departamento de Matemáticas
Centro de Investigación y de Estudios Avanzados del IPN
Apartado Postal 14–740
07000 Mexico City, Mexico
Abstract.
The aim of this work is to give degree formulas for the generalized Hamming weights of evaluation codes and to show lower bounds for these weights. In particular, we give degree formulas for the generalized Hamming weights of Reed–Muller-type codes, and we determine the minimum distance of toric codes over hypersimplices, and the 1st and 2nd generalized Hamming weights of squarefree evaluation codes.
Key words and phrases:
Evaluation codes, toric codes, minimum distance, projective torus, footprint, degree, Reed–Muller codes, generalized Hamming weights, affine variety, finite field, Gröbner bases.
2010 Mathematics Subject Classification:
Primary 13P25; Secondary 14G50, 94B27, 11T71.
The first author was supported by a scholarship from CONACYT, Mexico. The second author was partially supported by the Center for Mathematical Analysis, Geometry and Dynamical Systems of Instituto Superior Técnico, Universidade de Lisboa. The third author was supported by SNI, Mexico.
1. Introduction
Let be a polynomial ring over a finite field with the standard grading and let be a set of distinct points in the affine space . The evaluation map, denoted , is the -linear map given by
[TABLE]
The kernel of , denoted , is the vanishing ideal of consisting of the polynomials of that vanish at all points of . This map induces an isomorphism of -linear spaces between and . Let be a linear subspace of of finite dimension. The image of under the evaluation map, denoted , is called an evaluation code on [50, 52].
Let be a monomial order on [10, p. 54] and let be the vanishing ideal of . The monomials of are denoted , in , where . We denote the initial monomial of a non-zero polynomial by and the initial ideal of by . A monomial is called a standard monomial of , with respect to , if . The footprint of , denoted , is the set of all standard monomials of . The footprint has been used in connection with many kinds of codes [12, 13, 14, 24].
The linear code is called a standard evaluation code on relative to if is a linear subspace of , the -linear space spanned by . A polynomial is called a standard polynomial of if and is in . As the field is finite, there are only a finite number of standard polynomials.
The aim of this work is to introduce general methods, similar to those of [9, 17, 37], to study the basic parameters of the family of evaluation codes and those of certain interesting subfamilies, such as, affine and projective Reed–Muller-type codes, generalized toric codes, toric codes over hypersimplices and squarefree evaluation codes. This will also allow us to gain insight of the geometry of affine varieties and systems of polynomial equations over finite fields [3, 22, 30, 31]. We study standard evaluation codes first and then, using a monomial order, we show how to transform an evaluation code into a standard evaluation code.
If is a finite subset of , the affine variety of in , denoted , is the set of all such that for all . The ideal
[TABLE]
is referred to as a colon ideal. This ideal is useful to determine whether or not the affine variety is non-empty (Lemma 2.5).
The degree of the quotient ring , denoted , is defined using Hilbert functions at the beginning of Section 2. This invariant plays a unifying role in the theory of affine and projective varieties over finite fields. For instance, using the degree, one has similar formulas for when is a set of affine or projective points (cf. Lemma 2.8 and [17, Lemma 3.4]). The footprint of combined with the degree (Theorems 2.11 and 2.12) will be used to compute and to find lower bounds for the generalized Hamming weights of evaluation codes over .
We now turn our attention to standard evaluation codes and present degree formulas, and degree-footprint lower bounds formulas, for their generalized Hamming weights. The parameters of the linear code that we consider are:
- (a)
length: ,
- (b)
dimension: , and
- (c)
-th generalized Hamming weight: .
For convenience we recall the notion of generalized Hamming weight of a linear code [25, 54]. Let be a linear code of length and dimension , that is, is a linear subspace of with . Let be an integer. Given a subcode of (that is, is a linear subspace of ), the support of is the set
[TABLE]
The -th generalized Hamming weight of , denoted , is the size of the smallest support of an -dimensional subcode. If , is the minimum distance of and is denoted simply by . Generalized Hamming weights have received a lot of attention; see [7, 26, 28, 52, 54] and the references therein. The study of these weights is related to trellis coding, –resilient functions, and was motivated by some applications from cryptography [54].
There are combinatorial formulas for the generalized Hamming weights of some interesting families of evaluation codes [4, 8, 17, 24, 39]. The work done by Heijnen and Pellikaan [24] relates footprints and generalized Hamming weights and introduce methods to study certain evaluation codes (cf. [24, Section 7]). These methods were used in [5] to determine the generalized Hamming weights of affine Cartesian codes.
If , the -linear subspace of spanned by is denoted by . Let be a monomial order on . Given a linear subspace of and an integer , let be the set of nonzero elements of , and let be the set of all subsets of such that are distinct monomials and is monic for .
One of the main result of Section 3 is the following degree formula for the -th generalized Hamming weight of a standard evaluation code .
Theorem 3.4.* Let be a subset of , let be the vanishing ideal of , let be a linear subspace of , and let be the standard evaluation code on relative to . Then*
[TABLE]
This theorem can be applied to any evaluation code by constructing a standard evaluation code on , relative to a monomial order , such that (Proposition 3.5, Example 6.1). We will apply this theorem to interesting subfamilies of evaluation codes.
Fix a degree and let be the -linear subspace of of all polynomials of degree at most . If is equal to , then the resulting evaluation code is called a Reed-Muller-type code of degree on [11, 20] and is denoted by . If , we obtain the generalized Reed–Muller code [26, p. 524] or -ary Reed–Muller code [24]. As an application of Theorem 3.4 we obtain a formula to compute the -th generalized Hamming weight of using the degree and a graded monomial order (Corollary 3.6, Example 6.2).
The minimum distance of can be computed using the standard polynomials of of degree at most (Corollary 3.6). Using this together with Proposition 2.2, we show that the minimum distance of can be computed recursively using only the standard polynomials of of degree (Corollary 3.7, Example 6.4).
To compute is a very difficult problem even for because , where is the dimension of . In practice the formula of Theorem 3.4 can only be used to compute examples for small values of , and . Using Theorem 3.4, we show lower bounds for , in terms of the degree and the footprint of , which are easier to compute.
Let be the family of all subsets of with distinct elements. The -th footprint of the evaluation code , denoted , is given by
[TABLE]
The -th footprint of is easier to compute than because is . The other main result of Section 3 is the following degree-footprint lower bound for .
Theorem 3.9.* Let be a subset of , let be the vanishing ideal of , let be a linear subspace of , and let be the standard evaluation code on . Then*
[TABLE]
As an application of Theorem 3.9 we obtain a lower bound for the -generalized Hamming weight of (Corollary 3.10, Example 6.5).
The scope of our results include another interesting family of evaluation codes that we now introduce. Let be a set of non-zero distinct points in such that the first non-zero entry of each is . If , the evaluation code on is called a projective Reed–Muller-type code on [20]. In particular, by making and equal to the set of all non-zero points of whose first non-zero entry is , we obtain the classical projective Reed–Muller code studied by Lachaud and Sørensen[32, 47].
As we just saw, one can apply our results on evaluation codes to non-classical projective Reed–Muller-type codes (Example 6.6, Procedure A.8). One can study Reed-Muller-type codes over a set by using projective Reed–Muller-type codes over the set , because the corresponding codes on and have the same basic parameters [35].
We show examples of how to use Hilbert’s Nullstellensatz over [16] (Proposition 3.12) to estimate the parameters of evaluation codes over affine varieties that are in a broad sense algebraic geometry codes [52, p. 192] (Examples 6.7 and 6.8). Then, we give a projective version over of Hilbert’s Nullstellensatz (Theorem 3.13) that can be used in the case of evaluation codes over projective varieties defined by a given set of homogeneous polynomials (Example 6.9).
The rest of this paper is devoted to show applications of the results of Sections 2 and 3 to two other families of evaluation codes that we now introduce.
First we introduce toric codes over hypersimplices. Let be an integer, , and let be the convex hull in of all integral points such that , where is the -th unit vector in . The lattice polytope is called the -th hypersimplex of [51, p. 84]. The affine torus of the affine space is given by , where is the multiplicative group of the field . The toric code of of degree , denoted or simply , is the image of the evaluation map
[TABLE]
where is the -linear subspace of spanned by the set of all such that , and is the set of all points of the affine torus . A monomial of is in if and only if is squarefree and has degree . The set is precisely the set of squarefree monomials of of degree .
Toric codes were introduced by Hansen [23] and have been actively studied in the last decade, see [46] and the references therein. These codes are affine-variety codes in the sense of [2, p. 1]. For , the toric code is a standard evaluation code on , relative to any monomial order , because the linear space is spanned by , all elements of are standard monomials of , and (Lemma 4.2).
We solve part of the following problem by determining the minimum distance of .
Problem 1.1**.**
Find formulas for the minimum distance or more generally for the generalized Hamming weights of the toric code .
We come to our main result on toric codes.
Theorem 4.5.* Let be the toric code of of degree and let be its minimum distance. Then*
[TABLE]
The 2nd generalized Hamming weight of the toric code has been recently determined by Patanker and Singh [42].
We now introduce the family of squarefree evaluation codes. Elements of this family are generalized toric codes in the sense of [33, 43, 46]. Let be the set of all squarefree monomials of of degree at most . If we replace by in the evaluation map of Eq. (1.1), the image of the resulting map, denoted , is called a squarefree evaluation code of degree on . If we replace by in the evaluation map of Eq. (1.1), the image of the resulting map is the Reed–Muller-type code over the affine torus . The parameters of have been determined in [5, 17, 18, 34, 44].
We solve part of the following problem by determining easy to evaluate formulas for the minimum distance and the 2nd generalized Hamming weight of .
Problem 1.2**.**
Find formulas for the minimum distance or more generally for the generalized Hamming weights of the squarefree evaluation code .
The first main result about squarefree evaluation codes is:
Theorem 5.5.* If , then the minimum distance of is . *
We obtain formulas to compute the generalized Hamming weights of squarefree evaluation codes, and also obtain the corresponding footprint lower bounds (Corollaries 5.3 and 5.4).
The second main result about squarefree evaluation codes is the following formula.
Theorem 5.6.* If , then the second generalized Hamming weight of is*
[TABLE]
We include one section with some examples illustrating some of our results (Section 6) and an appendix with implementations in Macaulay [21] that show how some of our results can be used in practice (Appendix A).
For all unexplained terminology and additional information we refer to [10, 48, 53] (for the theory of Gröbner bases and Hilbert functions), and [26, 36, 52] (for the theory of error-correcting codes and linear codes).
2. Preliminaries: Affine varieties over finite
sets
In this section we study affine varieties defined over finite sets. The results of this section do not need the hypothesis that the field is finite.
Let be a polynomial ring over a field and let be an ideal of . The Krull dimension of is denoted by . We say that has dimension if is equal to . The -linear space of polynomials in (resp. ) of degree at most is denoted by (resp. ). The function
[TABLE]
is called the affine Hilbert function of . Let be a new variable and let be the homogenization of , where is given the standard grading. One has the following two well-known facts
[TABLE]
where , see for instance [53, Lemma 8.5.4]. If , by Hilbert theorem [48, p. 58], there is a unique polynomial of degree such that for . By convention the degree of the zero polynomial is . The integer , denoted , is called the degree of . The degree of is equal to . If , then for . Note that the degree of is positive if and is [math] otherwise.
An element is called a zero-divisor of —as an -module—if there is such that , and is called regular on otherwise. Note that is a zero-divisor of if and only if . An associated prime of is a prime ideal of of the form for some in . The radical of is denoted by . The ideal is radical if .
Theorem 2.1**.**
[53, Lemma 2.1.19, Corollary 2.1.30]** If is an ideal of and is an irredundant primary decomposition with , then the set of zero-divisors of is equal to , and are the associated primes of .
Proposition 2.2**.**
([15], [35, p. 411])* Let be the vanishing ideal of a set of affine points over a field . Then, is increasing until it reaches constant value , and is decreasing, as a function of , until it reaches constant value . In particular, .*
The least integer such that for , denoted , is the index of regularity of the affine Hilbert function.
Proposition 2.3**.**
(Additivity of the degree [41, Proposition 2.5])* If is an ideal of and is an irredundant primary decomposition, then*
[TABLE]
Lemma 2.4**.**
[30, p. 389]** Let be a finite subset of , let be a point in , , and let be the vanishing ideal of . Then, is a prime ideal of height ,
[TABLE]
and is the primary decomposition of .
Lemma 2.5**.**
Let be a finite subset of over a field and let be a set of polynomials of . Then, the following conditions are equivalent.
- (a)
. 2. (b)
. 3. (c)
.
Proof.
(a) (b): We can write and , where is equal to , the vanishing ideal of . We proceed by contradiction. Assume that . Pick in . Then, and for all . Note that . Therefore
[TABLE]
Hence for some , see [53, p. 74]. Thus, , a contradiction.
(b) (a): We proceed by contradiction. Assume that . Pick a polynomial such that for all and . Then, there is in such that . Thus, for all , that is, , a contradiction.
(c) (b): We can write , where and for all . If , picking and evaluating the last equality at , we get , a contradiction.
(a) (c): If , pick a maximal ideal of that contains . Then, by Lemma 2.4 and [53, 2.1.48, p. 74], for some in . Thus, and , a contradiction because conditions (a) and (b) are equivalent. ∎
The next result gives a sufficient conditions for an ideal of dimension zero to be radical. As usual we denote the derivative of a univariate polynomial by .
Lemma 2.6**.**
(Seidenberg’s lemma [45])* Let be an ideal of dimension zero. If contains a univariate polynomial with for , then is an intersection of finitely many maximal ideals, and any proper ideal of containing is a radical ideal.*
If is a finite field, by taking for , the next result follows directly from Seidenberg’s lemma.
Proposition 2.7**.**
Let be a finite subset of an affine space over a field . For each , there is a univariate polynomial in that vanishes at all points of such that , and any proper ideal of containing is a radical ideal.
Proof.
Let be the points of . We can write with for all and . For each consider the set
[TABLE]
where are distinct elements of and for . The univariate polynomials given by
[TABLE]
vanish at all points of . Each is a separable polynomial of . Hence, is relatively prime to [27, Theorem 4.5, p. 231]. Thus, the result follows from Lemma 2.6. ∎
The next result is an analog of [17, Lemma 3.4] for affine spaces.
Lemma 2.8**.**
(cf. [31, Proposition 6.2.12, p. 262])*
Let be a finite subset of and let be its vanishing ideal. If is a finite subset of , then*
[TABLE]
Proof.
Let be the points of , , and let be a point in , with . Then, the vanishing ideal of is a maximal ideal of of height ,
[TABLE]
and is an irredundant primary decomposition of (Lemma 2.4). In particular the ideal is an unmixed radical ideal of dimension [math].
Assume that . If , then , , and
[TABLE]
Hence, we may assume the strict inclusions . By Lemma 2.5, one has , and by Proposition 2.7, is a radical ideal. Any prime ideal containing is equal to for some . Therefore, we may assume that
[TABLE]
for some , for , and for . As a consequence, noticing that if and only if and by additivity of the degree of Proposition 2.3, we get
[TABLE]
Now assume . Then, by Lemma 2.5, and . ∎
Let be an ideal, let be a monomial order, and let be the set of standard monomials of . The image of , under the canonical map , , is a basis of as a -vector space. This is a classical result of Macaulay [10, Chapter 5]. In particular, is the number of standard monomials of of degree at most .
Definition 2.9**.**
Let be an ideal of and let be a monomial order. A subset of is called a Gröbner basis of if .
Lemma 2.10**.**
[7, p. 2]** Let be an ideal generated by , then
[TABLE]
with equality if is a Gröbner basis of .
Proof.
Take in . We set . Note that is the set of all monomials that are not in . If , then , that is, we can write for some and some . Then, , with in , a contradiction. Thus, . Assume that is a Gröbner basis of , that is, . Then, . ∎
Theorem 2.11**.**
(cf. [3, Theorem 8.32])* Let be a finite subset of an affine space over a field . If is a set of polynomials of , then*
[TABLE]
Proof.
First assume that . Then, by Lemma 2.5, . The first equality follows from Lemma 2.8, the second equality follows from the definition of the degree since has Krull dimension [math], and the third equality is Macaulay’s theorem that is a basis for as a -vector space [10, Chapter 5].
Now assume that . Then, by Lemma 2.5, and . Thus, , , and all numbers in the equality above are [math]. ∎
For vanishing ideals, the next result is the affine analog of [17, Lemma 4.1].
Theorem 2.12**.**
Let be a finite subset of , let be the vanishing ideal of , and let be a monomial order. If is a finite set of polynomials of and , then
[TABLE]
and if .
Proof.
The equality on the left follows from Lemma 2.8 and the equality on the right follows from Lemma 2.4 and the additivity of the degree of Proposition 2.3. We set and , where . As , we can pick in and not in . Then, for all . Thus, all elements of are zero divisors of . Hence, as is a finite intersection of maximal ideals of , by Theorem 2.1 and [53, 2.1.49, p. 74], there is an associated prime ideal of such that . Thus, . The rings , , and have Krull dimension [math] since . Pick a Gröbner basis of . Then, is generated by and by Lemma 2.10 one has the inclusions
[TABLE]
Thus, . Recall that , the affine Hilbert function of at , is the number of standard monomials of degree at most . Hence, for . Then, by Hilbert theorem [48, p. 58], , , are polynomial functions of degree equal to , and so they become constant for . Thus,
[TABLE]
for , that is, . Now, assume that . As is a radical ideal, there is at least one minimal prime of that does not contain . By Proposition 2.7, is a radical ideal. Hence, , and using the additivity of the degree of Proposition 2.3, we get
[TABLE]
and consequently . ∎
3. Generalized Hamming weights of evaluation
codes
In this section we give formulas, in terms of the degree and a graded monomial order, for the generalized Hamming weights of standard evaluation codes, and show degree-footprint lower bounds for these weights which are much easier to compute. To avoid repetitions, we continue to employ the notations and definitions used in Sections 1 and 2. Throughout this section we assume that is a finite field .
Lemma 3.1**.**
Let be a standard evaluation code on relative to a monomial order . Then, and .
Proof.
We set . Take . If , then , a contradiction since all monomials of are standard monomial of . Hence, the evaluation maps gives an isomorphism between and . ∎
Let be an ideal of , let be a monomial order on , let be a linear subspace of , let be the set of all linearly independent subsets of with elements, let be the set of all subsets of such that are distinct monomials and is monic for . The set of all standard polynomials of is denoted by , that is, is equal to .
Lemma 3.2**.**
Let be a -linear subspace of spanned by a finite subset of , and let be a subset of . The following hold.
- (a)
If are linearly independent over , then there is a set such that , distinct, and for all . 2. (b)
If are distinct, then are linearly independent over . 3. (c)
, and if is in , then there is in such that .
Proof.
(a): Note that all elements of are standard polynomials of . We proceed by induction on . The case is clear. Assume that . Permuting the ’s if necessary we may assume that .
Case (): Assume that . By applying the induction hypothesis to the set , we obtain a set such that is equal to , the monomials are distinct, and for . Setting and , we get , and the monomial is distinct from because for .
Case (): Assume there is such that for and for . We set for and for . Note that for , are in , and are linearly independent over . By applying the induction hypothesis to the set , we obtain a set such that , distinct, and for . Setting and , we get , and the monomial is distinct from because for .
(b): By hypothesis, . Assume that , for all . We proceed by contradiction assuming and for some . Setting , we get and , a contradiction.
(c): This follows at once from parts (a) and (b). ∎
Let be a linear code of length and dimension over a finite field , and let be an integer. Given a subcode of , the support of is the set
[TABLE]
The support of a vector is , that is, is the set of all non-zero entries of . The -th generalized Hamming weight of , denoted , is the size of the smallest support of an -dimensional subcode:
[TABLE]
The weight hierarchy of is the sequence . The integer is the minimum distance of and is denoted by . According to [54, Theorem 1, Corollary 1] the weight hierarchy is an increasing sequence
[TABLE]
and for . For this is the Singleton bound for the minimum distance. Notice that .
Lemma 3.3**.**
[17, Lemma 2.1]** Let be a subcode of of dimension . If is a -basis for with for , then and the number of elements of is the number of non-zero columns of the matrix:
[TABLE]
One of the main result of this section is the following degree formula for the -th generalized Hamming weight of a standard evaluation code .
Theorem 3.4**.**
Let be a subset of , let be the vanishing ideal of , let be a linear subspace of , and let be the standard evaluation code on relative to . Then
[TABLE]
*Proof. *Let be the points of and let be a subcode of of dimension . The evaluation map induces an isomorphism of -vector spaces between and (Lemma 3.1). Hence, by Lemma 3.3, there are linearly independent elements of , that is, the set is in , such that , where is , and the support of is equal to . Consider the matrix with rows . The -th column of is not zero if and only if is in . Therefore, since the number of non-zero columns of is (Lemma 3.3), we get:
[TABLE]
Conversely let be a set in , then there is a subcode of of dimension with . Indeed, setting
[TABLE]
and using Lemma 3.3, we obtain that . The affine varieties defined by the elements of and are the same:
[TABLE]
Indeed, the inclusion “” is clear since (Lemma 3.2). To show the inclusion “” take . Then, by Lemma 3.2, there is such that . Thus, with , that is, is in the right hand side of Eq. (3.2). By Proposition 2.2, . Hence, by Eqs. (3.1)–(3.2) and Lemma 2.8, we obtain
[TABLE]
The next proposition allows us to transform any evaluation code into a standard evaluation code relative to a monomial order, that is, one can apply Theorem 3.4 to any evaluation code after picking a monomial order and making a suitable transformation. We illustrate the case of generalized toric codes in Example 6.1 (Procedure A.2) and the case of projective Reed–Muller-type codes in Example 6.6 (Procedure A.8).
Proposition 3.5**.**
Let be an evaluation code on and let be a monomial order. Then, there is a standard evaluation code on relative to such that .
Proof.
Let be the set of points of the affine space and let be a Gröbner basis of . Pick a -basis of . For each , let be the remainder on division of by , that is, by the division algorithm [10, Theorem 3, p. 63], for each we can write , where , and or is a standard polynomial of . We set
[TABLE]
The evaluation code is a standard evaluation code on relative to since is a linear subspace of . To show the inclusion take a point in . Then, is equal to for some . Using the equations , , we can write , where and . Hence, is equal to , that is, . To show the inclusion take a point in . Then, is equal to for some . Using the equations , , we can write , where and . Hence, is equal to , that is, . ∎
Let be a standard evaluation code on relative to of dimension . Fix an integer . The generalized Hamming weights of are hard to compute because the size of could be very large as we now explain. The Grassmannian of , denoted , is the set of -dimensional subspaces of . Consider the equivalence relation on given by: if and only if . The map
[TABLE]
is bijective. This follows from Lemma 3.2. If , then . The following formula for can be found in [49, Proposition 1.7.2, p. 57]:
[TABLE]
Let and be in . If , then is equal to . The converse does not hold in general but it may hold for some special families of standard evaluation codes.
One of the applications of Theorem 3.4 is a formula for the -th generalized Hamming weight of an affine Reed–Muller-type code that can be used to compute for small values of using the software system Macaulay [21] (Example 6.2). In the next result we assume that is a graded monomial order, that is, monomials are first compared by their total degrees (Example 6.3). For use below, let be the set of all contained in such that is a standard monic polynomial of for all and are distinct monomials.
Corollary 3.6**.**
Let be a finite field, let be a subset of , and let be the vanishing ideal of . If is a graded monomial order, then
[TABLE]
Proof.
Let be the points of and let be the linear space of standard polynomials of of degree at most together with the zero vector. Note that . Hence, by Theorem 3.4, we need only show that . Clearly, . To show the other inclusion take a point in , that is, for some . As is a graded monomial order, by the division algorithm [10, Theorem 3, p. 63], can be written as , where is in and is a -linear combination of standard monomials of degree at most . Hence, and is in . ∎
The minimum distance of the linear code is and can be computed using the standard monic polynomials of of degree at most (Corollary 3.6). The next result can be used to compute the minimum distance of recursively using only the standard monic polynomials of of degree (Example 6.4).
Corollary 3.7**.**
Let be a finite field, let be a subset of , let be the vanishing ideal of , let be a graded monomial order, and let be the set of standard monic polynomials of of degree . If and , then
[TABLE]
Proof.
Let be the set of standard monic polynomials of of degree at most . As is equal to , by Corollary 3.6, one has
[TABLE]
This proves the inequality “”. To show the inequality “”pick in such that . It suffices to show that has degree , because then Eq. (3.4) becomes an equality. If , then by Proposition 2.2, we get
[TABLE]
a contradiction. ∎
For non-graded orders we obtain the following upper bound for .
Corollary 3.8**.**
Let be a finite field, let be a subset of , and let be the vanishing ideal of . If is a monomial order, then
[TABLE]
Proof.
Let be the linear space of standard polynomials of of degree at most together with the zero vector. Note that . As , one has . Therefore, the inequality follows from Theorem 3.4. ∎
Fix a monomial order on , let be a subset of , and let be its vanishing ideal. Given a -linear subspace of , let be the family of all subsets of with distinct elements. The -th footprint of the standard evaluation code , denoted , is given by
[TABLE]
The other main result of Section 3 is the following lower bound for .
Theorem 3.9**.**
Let be a subset of , let be the vanishing ideal of , let be a linear subspace of , and let be the standard evaluation code on . Then
[TABLE]
Proof.
By Theorem 3.4, there is such that . Hence, by Theorem 2.12, and noticing that because , we get
[TABLE]
Thus, . ∎
Given integers , let be the set of all subsets of with distinct elements. The -th footprint of the Reed–Muller-type code , denoted , is given by
[TABLE]
We come to one of the main applications of Theorem 3.9.
Corollary 3.10**.**
Let be a finite field, let be a subset of , let be the vanishing ideal of , and let be a graded monomial order. Then
[TABLE]
Proof.
Let be the -vector space generated by the set of all standard monomials of of degree at most . As is a graded monomial order, by the division algorithm [10, Theorem 3, p. 63], one has:
[TABLE]
that is, is the standard evaluation code on . Hence, the inequality follows directly from Theorem 3.9 by noticing the following. The set of initial terms of is equal to , is equal to , and is equal to . ∎
Remark 3.11**.**
Let be the vanishing ideal of a subset of . The following hold.
- (a)
for and . This follows from the fact that the weight hierarchy is an increasing sequence (see [54, Theorem 1]).
- (b)
If , then and for .
- (c)
If is non-degenerate, i.e., for each there is whose -th entry is non-zero, then when . This follows from Lemma 2.5 and Corollary 3.6 noticing that for .
Hilbert’s Nullstellensatz over finite fields
The next result is well-known, see [16] for an expository account of Nullstellensatz-type results like this. For convenience we give a short proof of this result using our degree driven approach. We show examples of how to use this result to estimate the basic parameters of evaluation codes over affine varieties defined by a given set of polynomials of (Examples 6.7 and 6.8).
Proposition 3.12**.**
Let be a finite field , let be the affine space over , and let be a finite set of polynomials of . If and , then
[TABLE]
Proof.
As [27, p. 137], we need only show . The ideal is contained in because . By Lemma 2.8 and Proposition 2.2, we get and , respectively. Thus, and have the same degree. Therefore, using the inclusion , by additivity of the degree and Seidenberg’s lemma the equality follows. ∎
As a byproduct we obtain the next projective version over finite fields of Hilbert’s projective Nullstellensatz over algebraically closed fields [22, Theorem A.4.6, p. 476]. This result can be used to estimate the parameters of evaluation codes over projective varieties defined by a given set of homogeneous polynomials of [9, 17] (Example 6.9).
Theorem 3.13**.**
Let be a projective space over a finite field , let be the projective variety defined by a finite set of homogeneous polynomials of , and let be its homogeneous vanishing ideal. If and , then
[TABLE]
Proof.
As [40, Theorem 2.1], we need only show that is equal to . The ideal is a subset of because . Thus, is a subset of because is a radical ideal. Using [17, Lemma 3.4] and Proposition 2.2, we get
[TABLE]
and , respectively. Thus, and have the same degree. Let be the points of and for each let be the homogeneous vanishing ideal of the point . Then, . As and have height and , the ideal has an irredundant primary decomposition of the form such that , is -primary of height for , and . Hence, by additivity of the degree Proposition 2.3, one has
[TABLE]
Therefore, and consequently . ∎
4. Minimum distance of toric
codes
To avoid repetitions, we continue to employ the notations and definitions used in Section 1. In this section we determine the minimum distance of the toric code . Throughout this section we assume that is a finite field .
Lemma 4.1**.**
(cf. [38, Lemma 3.3])* Let be positive integers and let be the ideal of generated by . If is not in , then*
[TABLE]
Proof.
The colon ideal is equal to . Since and are complete intersections, one has and . Taking affine Hilbert functions in the exact sequence
[TABLE]
we obtain . ∎
A polynomial is called squarefree if all its monomials are squarefree. The set of all squarefree monomials of of degree (resp. degree at most ) is denoted by (resp. ).
Lemma 4.2**.**
Let be a monomial order on and let be the vanishing ideal of an affine torus over a finite field with elements. The following hold.
- (a)
The initial ideal of is generated by . In particular if is a squarefree polynomial of , then is a standard polynomial of . 2. (b)
If or , then the evaluation code on is a standard evaluation code on relative to . 3. (c)
The toric code over the hypersimplex and the squarefree evaluation code are standard evaluation codes on relative to .
Proof.
(a): The ideal is generated by the set and this set is a Gröbner basis of (see [19] and [34, Lemma 2.3] ). Then, the initial ideal of is generated by the set of monomials . As and is squarefree, none of the terms of can be in . Thus, is a standard polynomial.
(b): By part (a), and are subset of . Thus, is a linear subspace of and is a standard evaluation code.
(c): This follows from part (b) by recalling that and are the images of and under the evaluation map, respectively. ∎
To prove the next proposition we use the results of Section 2.
Proposition 4.3**.**
If , and , then
[TABLE]
Proof.
Let be a monomial order on and let be the vanishing ideal of the affine torus . By Theorem 2.11, one has
[TABLE]
The initial ideal of is generated by the set (Lemma 4.2). Let be the initial monomial of . Since is squarefree, so is . As , cannot be in . Therefore, by Theorem 2.12 and Lemma 4.1, we get
[TABLE]
where . Thus, the inequality follows at once from Eq. (4.1). ∎
Proposition 4.4**.**
Let be the toric code of of degree . Then, the length of is equal to and its dimension is given by
[TABLE]
Proof.
The length of is the number of points of , that is, . Assume that . The number of squarefree monomials of of degree is . Then, one has . Hence, it suffices to note that, by Lemmas 3.1 and 4.2, the evaluation map gives an isomorphism between and .
Assume that . Then, , , , and . ∎
We come to the main result of this section.
Theorem 4.5**.**
Let be the toric code of of degree and let be its minimum distance. Then
[TABLE]
Proof.
Assume that and . We set and . Let be the affine torus in , let be a monomial order on , and let be the linear space generated by . By Lemma 4.2, is a standard evaluation code. Then, by Theorems 2.11 and 3.4, there is such that
[TABLE]
Thus, by Proposition 4.3, one has and . Consider the squarefree homogeneous polynomial of degree
[TABLE]
where for . By Eq. (4.3), to prove the inequality it suffices to show that the polynomial has exactly roots in . As is equal to , using the inclusion-exclusion principle [1, p. 38, Formula 2.12], we get
[TABLE]
The variables occurring in and are disjoint for . Thus, counting monomials in each of the intersections, one obtains
[TABLE]
and consequently the number of zeros of in is given by
[TABLE]
Assume that , and . The affine torus in is a group under componentwise multiplication and the map , is a group isomorphism. Setting for , we can write
[TABLE]
We denote the toric code of of degree with respect to by and denote the toric code of
[TABLE]
of degree with respect to by . Thus,
[TABLE]
The basic parameters of the projective toric codes and do not depend on how we order the elements of . For use below, let be the set of all squarefree monomials of of degree . Setting for , note that is the set of all squarefree monomials of of degree . If , writing , for all , we set . From the equalities
[TABLE]
we get . Hence, setting , one has
[TABLE]
for . There is a commutative diagram
[TABLE]
where all the maps are isomorphisms of linear spaces. By Eq. (4.5), if and only if . Hence, the linear codes and have the same minimum distance. Since , by the previous part, it follows that
[TABLE]
Thus, the minimum distance of is equal to , as required.
Assume that . Then, is generated by and the toric code is generated by . Since for all , one has .
Assume that . Then, , , and . Thus, . ∎
Corollary 4.6**.**
Let be a squarefree homogeneous polynomial in and let be the affine torus of . If and , then
[TABLE]
and this upper bound is sharp.
*Proof. *Let be the minimum distance of . By Theorem 4.5, one has
[TABLE]
Therefore, and this upper bound is sharp. For convenience we construct a polynomial in where equality occurs. There is such that . Consider the following squarefree homogeneous polynomial of degree
[TABLE]
where for . Since is equal to , where , and , using Eq. (4.4) with and noticing , we get
[TABLE]
The minimum distance of the affine Reed–Muller-type code is non-increasing as a function of (Proposition 2.2). This is no longer the case for the minimum distance of the toric code (Example 6.10).
5. Squarefree affine evaluation
codes
In this section we determine the minimum distance and the 2nd generalized Hamming weight of a squarefree evaluation code. To avoid repetitions, we continue to employ the notations and definitions used in Sections 1 and 3.
Proposition 5.1**.**
Let be a squarefree polynomial in of degree at most and let be the affine torus of . If and , then
[TABLE]
with equality if and .
Proof.
Let be the vanishing ideal of . If is not a zero divisor of , then and, by Lemma 2.8, the set is empty and the required inequality is clear. Thus, we may assume that is a zero-divisor of . In particular . If , then
[TABLE]
Thus, we may also assume that . Let be a graded monomial order and let be the initial monomial of . Note that is squarefree and since is graded. The initial ideal of is generated by the set of monomials (Lemma 4.2). As , cannot be in . Hence, by Theorem 2.12 and Lemma 4.1, we get
[TABLE]
Now, assume that , where for . As in the proof of Theorem 4.5, using the inclusion-exclusion principle [1, p. 38, Formula 2.12], the formula for follows readily. ∎
Proposition 5.2**.**
Let be the squarefree evaluation code of degree on the affine torus . Then, the length of is , and the dimension of is given by
[TABLE]
Proof.
The length of the code is the number of points of , that is, . Assume that . The number of squarefree monomial of of degree at most is equal to . Then, one has . Setting , by Lemmas 3.1 and 4.2, one has . Thus, .
Assume that . Then , , , and . ∎
Let be a monomial order and let be the set of all such that are distinct monomials and is monic for all .
Corollary 5.3**.**
Let be a finite field and let be the vanishing ideal of the affine torus . If and is a graded monomial order, then
[TABLE]
Proof.
We set . By Lemma 4.2, is a standard evaluation code on relative to . Then, , and the formula for is a direct consequence of Theorem 3.4. ∎
To show a lower bound for , let be the family of all sets such that are distinct squarefree monomials of . The -th squarefree footprint of of degree , denoted , is given by
[TABLE]
Corollary 5.4**.**
Let be a finite field and let be the vanishing ideal of the affine torus . If and is a graded monomial order, then
[TABLE]
Proof.
We set . By Lemma 4.2, is a standard evaluation code on relative to . Then, , and the lower bound for is a direct consequence of Theorem 3.9. ∎
We come to one of the main results of this section.
Theorem 5.5**.**
Let be the squarefree evaluation code of degree on the affine torus . If , then the minimum distance of is .
Proof.
Let be a monomial order on . We set . As , by Lemma 4.2, is a standard evaluation code on relative to . Then, by Corollary 5.3, we get
[TABLE]
and the result follows from Proposition 5.1. ∎
We come to another of the main results of this section.
Theorem 5.6**.**
If and , then the second generalized Hamming weight of is
[TABLE]
*Proof. *Let be a graded monomial order and let be the vanishing ideal of . The initial ideal of is (Lemma 4.2). If , then and . Indeed, take in and notice that , then and consequently, by Corollary 5.3, . Thus, we may assume .
The support of a monomial , denoted , is the set of all that occur in . Take , and . We set , , , and . We may assume . As and are squarefree monomials, one has
[TABLE]
Therefore, picking a new variable and setting , from [17, p. 343] and using that are squarefree monomials, we obtain
[TABLE]
Case (a): Assume . As are distinct squarefree monomials, one has . Indeed, if , then , , and , a contradiction. First we show the inequality . By Corollary 5.4, . Thus, it suffices to show the inequality . Hence, we need only show
[TABLE]
for any in . Note that, by Eq. (5.1), this inequality is equivalent to
[TABLE]
That this inequality holds follows recalling that and noticing the next two inequalities
[TABLE]
Now, we show the inequality . By Corollary 5.3 and Theorem 2.11, it suffices to find in such that
[TABLE]
Setting and , one has . As and , by Proposition 5.1, we get
[TABLE]
Case (b): Assume . First we show the inequality . By Corollary 5.4, . Thus, it suffices to show . Hence, we need only show that the inequality
[TABLE]
holds for any in . Note that, by Eq. (5.1), this inequality is equivalent to
[TABLE]
To show this inequality we consider two subcases.
(): Assume . Then, , and Eq. (5.2) is equivalent to
[TABLE]
This inequality follows by noticing that . Indeed, if , then and , a contradiction.
(): Assume . Setting , one has because . This inequality is easy to show using induction on . That Eq. (5.2) holds true now follows from the following two inequalities
[TABLE]
Finally, we show the inequality . By Corollary 5.3 and Theorem 2.11, it suffices to find in such that
[TABLE]
Setting , , and , one has and, by Proposition 5.1, we get
[TABLE]
6. Examples
This section includes examples illustrating some of our results. In Appendix A we give the implementations in Macaulay [21] and Magma [6] that are used in the examples.
Example 6.1**.**
Let be the field , let be a polynomial ring in two variables, and let be the -linear space generated by all monomials such that is one of the solid points of the point configuration depicted on the left of Figure 1. The evaluation code , over the torus , is a generalized toric code in the sense of [33, 43]. Let be a monomial order. The vanishing ideal of is generated by the Gröbner basis . Then, is generated by
[TABLE]
and the list of remainder of the elements of on division by is
[TABLE]
that is, is generated by and is a standard evaluation code on relative to . Using Theorem 3.4, Proposition 3.5, Theorem 3.9, and Procedure A.2, we obtain that the minimum distance of is and the footprint is . The length and the dimension of are and , respectively.
Example 6.2**.**
Let be the field , let be a set of points on , and let be the vanishing ideal of . The ideal is generated by the binomials . Using Corollary 3.6 and Procedure A.3, we obtain
[TABLE]
, and .
Example 6.3**.**
Let be a polynomial ring and let be the lexicographical order with . If is the ideal generated by and , and is the polynomial , then but the residue of the division of by is and (see Procedure A.4). This example shows that the proof of Corollary 3.6 is only valid for graded orders.
Example 6.4**.**
Let be the field and let be the following set of points in :
[TABLE]
Using Corollary 3.7 and Procedure A.5, we obtain that and the minimum distance of is given by
[TABLE]
Example 6.5**.**
Let be the field , let be the affine torus , and let be the vanishing ideal of . Using Theorem 3.9 and Procedure A.6, we obtain the inequality and the following table:
[TABLE]
Example 6.6**.**
Let be a polynomial ring over the field , let be the following set of points in :
[TABLE]
let be the linear space , and let be the evaluation code on . Using Theorem 3.4, Proposition 3.5, and Procedure A.8, we obtain the following information:
[TABLE]
if the linear space of Proposition 3.5 is generated by , the minimum distance of is given by
[TABLE]
and for .
Example 6.7**.**
Let be a polynomial ring over the finite field with elements, let be the Hermitian curve defined by [52, p. 242] and let be its vanishing ideal. If , by Proposition 3.12, the vanishing ideal of can be computed using the equality
[TABLE]
To compute the length of the Reed–Muller-type code of degree over the curve , we use Macaulay [21] to obtain
[TABLE]
We can compute the minimum distance of using Proposition 3.12, Corollary 3.7 and Procedure A.5. The -th generalized Hamming weight and -th footprint of can be computed using Procedures A.3 and A.6. If , we obtain a linear code of length , dimension , and minimum distance . If , using the footprint lower bound of Corollary 3.10, we obtain a linear code of length , dimension , minimum distance at least because , and because . We can use this example as a model to estimate the parameters of for any affine variety defined by a given finite set of polynomials of in variables, by replacing by .
Example 6.8**.**
Let be the elliptic curve of the polynomial over a finite field of . Elliptic curves have a group structure and they are used in cryptography [29]. If , to compute the number of zeros of in notice that [27, p. 137]. Then, using Lemma 2.8 and Macaulay [21], we obtain
[TABLE]
see Procedure A.1. If we apply Theorem 2.12 with the lexicographical order , we obtain
[TABLE]
For a polynomial defining an elliptic curve over a finite field , the bound of Theorem 2.12 says that , which is not a good bound (cf. Hasse’s theorem [29, p. 174]).
Let be the affine variety of and let be its vanishing ideal. We can compute the minimum distance of the Reed–Muller-type code , over the elliptic curve , using Proposition 3.12, together with Corollary 3.7 and Procedure A.5. The -th footprint of can be computed using Procedure A.6. If and , we obtain a linear code of length , dimension , minimum distance , and the -st footprint of is . If and , we obtain a linear code of length , dimension , and minimum distance . If and , we obtain a linear code of length , dimension , and minimum distance at least because .
Example 6.9**.**
Let be a polynomial ring over the finite field , let be the projective space over the field , and let be the projective variety of the homogeneous polynomial . Then, by Theorem 3.13, the homogeneous vanishing ideal of is given by
[TABLE]
Computing the radical on the right with Magma [6] (Procedure A.7) gives
[TABLE]
If , using Eq. (6.2) and [17, Procedure 7.1, p. 334], we obtain that the standard evaluation code on has length , dimension , and minimum distance . Note that we cannot apply Procedure A.8 since is not an affine vanishing ideal.
Example 6.10**.**
For and , by Theorem 4.5, the list of values of the length, dimension and minimum distance of are given by the following table.
[TABLE]
Appendix A Procedures for Macaulay
In this section we give procedures for Macaulay [21] and Magma [6] using finite fields to compute generalized Hamming weights and lower bound footprints of evaluation codes.
Procedure A.1**.**
Computing the number of points of an affine variety over a finite field using Lemma 2.8. This procedure correspond to Example 6.8. To compute other examples just change the finite field and the set of polynomials that define the affine variety.
q=71 S=ZZ/q[x,y]-- finite field K=ZZ/q I=ideal(x^q-x,y^q-y)--vanishing ideal of K^2 F={y^2-x^3+x} quotient(I,ideal(F))==I--false means F has zeros degree (I+ideal(F))--number of zeros of f
Procedure A.2**.**
Computing the generalized Hamming weights and footprint of an evaluation code using Theorem 3.4, Proposition 3.5, and Theorem 3.9. The input for this procedure is a generating set for and the vanishing ideal of . This procedure corresponds to Example 6.1.
q=5, H=GF(q,Variable=>a), S=H[t1,t2] I=ideal(t1^(q-1)-1,t2^(q-1)-1), M=coker gens gb I r=1--we are computing the r-th generalized Hamming weight G=gb I, div=(x)->x % G --This is the K-basis for L Basis=matrix{{1,t1^3,t1t2^2,t2^3,t1t2,t1^2*t2^4}} --This is the list of remainders on division by G cL=toList set apply(flatten entries Basis,div) --This gives the r-th generalized Hamming weight gmd=degree M-max apply(apply(subsets(toList set apply(toList set(apply(apply(apply(apply(toList ((set(0,a,a^2,a^3,a^4))^(#cL)-(set{0})^(#cL))/deepSplice, toList),x->matrix{cL}*vector x),entries),n->n#0)), m->(leadCoefficient(m))^(-1)*m),r),ideal), x-> if #(set flatten entries leadTerm gens x)==r then degree(I+x) else 0) init=ideal(leadTerm gens gb I) er=(x)-> degree ideal(init,x) --This is the r-th footprint fpr=degree M - max apply(apply(apply(subsets(cL,r), toSequence),ideal),er)
Procedure A.3**.**
Computing the generalized Hamming weights of an affine Reed–Muller-type code using Corollary 3.6. This procedure correspond to Example 6.2. Other examples can be computed changing the finite field, the affine space, and the set of points of .
q=3, G=ZZ/q, S=G[t1,t2]; I1=ideal(t1,t2), I2=ideal(t1-1,t2),I3=ideal(t1,t2-1) I4=ideal(t1-1,t2-1),I5=ideal(t1,t2+1) I=intersect(I1,I2,I3,I4,I5)--this is the vanishing ideal M=coker gens gb I --This is the r-th generalized Hamming weight of C_X(d): genmdaffine=(d,r)->degree M-max apply(apply(subsets(toList set apply(toList set(apply(apply(apply(apply(toList ((set(0..q-1))^(#flatten entries basis(0,d,M))- (set{0})^(#flatten entries basis(0,d,M))) /deepSplice,toList),x->basis(0,d,M)*vector x), entries),n->n#0)), m->(leadCoefficient(m))^(-1)*m),r), ideal), x-> if #(set flatten entries leadTerm gens x)==r then degree(I+x) else 0) --This is the affine Hilbert function of I: #flatten entries basis(0,1,M), #flatten entries basis(0,2,M) genmdaffine(1,1), genmdaffine(1,2),genmdaffine(1,3) genmdaffine(2,1), genmdaffine(2,2)
Procedure A.4**.**
Computing the quotient and the remainder in the multivariate division algorithm [10, Theorem 3, p. 63]. This procedure correspond to Example 6.3
R=QQ[x,y,MonomialOrder=>Lex] I=ideal(y^(40)-y^2+1,x-y^8) f=x^2-y^3+y G=matrix{{y^(40)-y^2+1,x-y^8}} remainder(matrix{{f}},G) quotientRemainder(matrix{{f}},G)
Procedure A.5**.**
Computing the minimum distance of an affine Reed–Muller-type code of degree using Corollary 3.7. This procedure corresponds to Example 6.4
q=3, S=ZZ/q[t1,t2,t3]; I1=ideal(t1-1,t2,t3), I2=ideal(t1-1,t2,t3-1),I3=ideal(t1-1,t2,t3+1), I4=ideal(t1-1,t2-1,t3),I5=ideal(t1-1,t2-1,t3-1),I6=ideal(t1-1,t2-1,t3+1), I7=ideal(t1,t2,t3), I8=ideal(t1,t2,t3-1),I9=ideal(t1,t2,t3+1), I10=ideal(t1,t2-1,t3),I11=ideal(t1,t2-1,t3-1),I12=ideal(t1,t2-1,t3+1) I=intersect(I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12) M=coker gens gb I --This computes the minimum distance of an affine Reed-Muller-type code --of degree d mindisaffine=(d)-> degree M- max apply(apply((toList (set (apply(toList set apply(toList set(apply(apply(apply(apply(toList ((set(0..q-1))^(#flatten entries basis(0,d,M))- (set{0})^(#flatten entries basis(0,d,M)))/deepSplice,toList), x->basis(0,d,M)*vector x),entries),n->n#0)), m->(leadCoefficient(m))^(-1)*m),x-> if degree(x)=={d} then x else t1^0))-set{t1^0})),ideal),x-> degree(I+x)) mindisaffine(1), mindisaffine(2), mindisaffine(3)
Procedure A.6**.**
Computing the footprint of a Reed–Muller-type code . This procedure corresponds to Example 6.5. To compute other examples just change the finite field and the vanishing ideal of .
q=5, G=ZZ/q, S=G[t1,t2]; I=ideal(t1^(q-1)-1,t2^(q-1)-1)--vanishing ideal of the affine torus T M=coker gens gb I init=ideal(leadTerm gens gb I) er=(x)-> if not quotient(init,x)==init then degree ideal(init,x) else 0 --This is the r-th footprint: fpraffine=(d,r)->degree M - max apply(apply(apply(subsets (flatten entries basis(0,d,M),r),toSequence),ideal),er) f=(n)->#flatten entries basis(0,n,M), apply(1..6,f) f1=(n)->fpraffine(n,1),apply(1..6,f1) f2=(n)->fpraffine(n,2),apply(1..6,f2) f3=(n)->fpraffine(n,3),apply(1..6,f3)
Procedure A.7**.**
Computing the radical of an ideal over a finite field using Magma [6]. This procedure corresponds to Example 6.9.
P<x,y,z>:=PolynomialRing(FiniteField(2, 2),3); J:= ideal<P| xy^4-x^4y,xz^4-x^4z,yz^4-y^4z,y^3+xz^2+x^2z>; Radical(J);
Procedure A.8**.**
Given an evaluation code on and a monomial order . This procedure computes a linear subspace of such that is a standard evaluation code on and (Proposition 3.5). Then it computes the -generalized Hamming weight of a projective Reed–Muller-type code on of degree (Theorem 3.4). This procedure corresponds to Example 6.6. To compute for an evaluation code replace basis(d,S) by the matrix of a -basis of the linear space .
q=3, S=ZZ/q[t1,t2,t3]; I1=ideal(t1-1,t2,t3),I2=ideal(t1-1,t2,t3-1),I3=ideal(t1-1,t2,t3+1), I4=ideal(t1-1,t2-1,t3),I5=ideal(t1-1,t2-1,t3-1), I6=ideal(t1-1,t2-1,t3+1),I7=ideal(t1,t2,t3-1),I8=ideal(t1,t2-1,t3), I9=ideal(t1,t2-1,t3-1),I10=ideal(t1,t2-1,t3+1) I=intersect(I1,I2,I3,I4,I5,I6,I7,I8,I9,I10) M=coker gens gb I d=2, r=1, G=gb I div=(x)->x % G --This is the list of residues of S_d after division by G cL=toList set apply(flatten entries basis(d,S),div) --This gives the r-th generalized Hamming weight of --the evaluation code on X defined by S_d gmd=degree M-max apply(apply(subsets(toList set apply(toList set(apply(apply(apply(apply(toList ((set(0..q-1))^(#cL)- (set{0})^(#cL))/deepSplice,toList),x->matrix{cL}*vector x), entries),n->n#0)),m->(leadCoefficient(m))^(-1)*m),r),ideal), x-> if #(set flatten entries leadTerm gens x)==r then degree(I+x) else 0)
Acknowledgments
We thank Nupur Patanker for pointing out an error in the previous statement of Corollary 4.6 and Proposition 5.1. Computations with Magma [6] and Macaulay [21] were important to give examples and to have a better understanding of evaluation codes.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] M. Aigner, Combinatorial Theory , Springer, 1997.
- 2[2] E. Ballico, M. Elia and M. Sala, On the evaluation of multivariate polynomials over finite fields, J. Symbolic Comput. 50 (2013), 255–262.
- 3[3] T. Becker and V. Weispfenning, Gröbner bases A Computational Approach to Commutative Algebra , in cooperation with Heinz Kredel, Graduate Texts in Mathematics 141 , Springer-Verlag, New York, 1993.
- 4[4] P. Beelen, A note on the generalized Hamming weights of Reed-Muller codes, Appl. Algebra Engrg. Comm. Comput. 30 (2019), no. 3, 233–242.
- 5[5] P. Beelen and M. Datta, Generalized Hamming weights of affine Cartesian codes, Finite Fields Appl. 51 (2018), 130–145.
- 6[6] W. Bosma, J. Cannon, and C. Playoust, The Magma algebra system. I. The user language, J. Symbolic Comput. 24 (1997), 235–265.
- 7[7] C. Carvalho, On the second Hamming weight of some Reed-Muller type codes, Finite Fields Appl. 24 (2013), 88–94.
- 8[8] C. Carvalho, V. G. Lopez Neumann and H. H. López, Projective nested cartesian codes, Bull. Braz. Math. Soc. (N.S.) 48 (2017), no. 2, 283–302.
