Generalized Hamming weights of affine cartesian codes
Peter Beelen, Mrinmoy Datta

TL;DR
This paper determines the maximum number of common zeros of certain polynomials over finite sets, generalizing known results for Reed--Muller codes to affine Cartesian codes, thereby advancing coding theory understanding.
Contribution
It extends the calculation of generalized Hamming weights from Reed--Muller codes to a broader class of affine Cartesian codes.
Findings
Derived formulas for maximum common zeros in affine Cartesian codes
Generalized Hamming weights for these codes are characterized
Extends previous Reed--Muller code results to larger code classes
Abstract
In this article, we give the answer to the following question: Given a field , finite subsets of , and linearly independent polynomials of total degree at most . What is the maximal number of common zeros can have in ? For , the finite field with elements, answering this question is equivalent to determining the generalized Hamming weights of the so-called affine Cartesian codes. Seen in this light, our work is a generalization of the work of Heijnen--Pellikaan for Reed--Muller codes to the significantly larger class of affine Cartesian 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.
Generalized Hamming weights of affine cartesian codes
Peter Beelen and Mrinmoy Datta
Department of Applied Mathematics and Computer Science,
Technical University of Denmark, DK 2800, Kgs. Lyngby, Denmark
[email protected], [email protected]
Abstract.
In this article, we give the answer to the following question: Given a field , finite subsets of , and linearly independent polynomials of total degree at most . What is the maximal number of common zeros can have in ? For , the finite field with elements, answering this question is equivalent to determining the generalized Hamming weights of the so-called affine Cartesian codes. Seen in this light, our work is a generalization of the work of Heijnen–Pellikaan for Reed–Muller codes to the significantly larger class of affine Cartesian codes.
1. Introduction
Let be a field and be finite non-empty subsets of consisting of elements respectively. For each we write . We consider the finite subset of given by the cartesian product Without loss of generality we may assume that . Define .
Let denote the polynomial ring in variables and for an integer , denote by the vector subspace of consisting of polynomials with and for . In this article we give the answer to the following main question:
Question 1.1**.**
For a positive integer , let be linearly independent elements of . What is the maximum number of common zeroes that can have in ?
Denoting by the set of common zeros of in , we can reformulate this question as: What is the maximum cardinality of ? As noted in [10, Thm.3.1], we may assume that , since is the monomial of highest possible degree in . We will use the notation in the remainder of this article.
Partial answers to Question 1.1 are known, but the general case is still open. First of all, in case it was answered in [10, Prop.3.6]. Furthermore, for , the finite field with elements, the question was settled in [11] for all values of using, among others, the theory of order domains applied to Reed–Muller codes. In [11], Question 1.1 was answered in a reformulated form in terms of so-called generalized Hamming weights of certain error-correcting codes. Also in [10] it was observed that the answer to Question 1.1 for the case gives the minimum distance of what they called affine cartesian codes. It was brought to our attention by Olav Geil that, these codes were already studied in [7] in a more general setting and the answer to Question 1.1 for is a special case of [7, Prop. 5]. Therefore, after having answered Question 1.1, we compute the generalized Hamming weights of affine cartesian codes. Moreover, we explicitly determine the duals of affine cartesian codes and as a consequence obtain these weights for the duals as well.
The article is organized as follows: In Section 2, we collect some results from the theory of affine Hilbert functions and their relations to counting the number of points on a zero dimensional affine variety. In Section 3, we revisit a combinatorial result of Wei [14, Lemma 6] and prove it completely in a more general setting. Next, in Section 4, we answer Question 1.1 and in Section 5, we determine the generalized Hamming weights of affine cartesian codes and their duals.
2. Affine Hilbert functions and number of points on a zero dimensional affine variety
The set of common zeroes of in is of course a finite subset of . Therefore, it has a natural interpretation as a zero dimensional affine variety. For this reason, we explore in this section the theory of affine Hilbert functions and discuss its relation with the number of points on zero dimensional affine varieties. This relation will be used in subsequent sections. Many results on affine Hilbert functions exist in the literature. For a detailed discussion on the results mentioned in this section, one may for example refer to [4] and [13].
Let denote the subset of consisting of polynomials of degree at most . For an ideal of , we denote by the subset of consisting of polynomials of degree at most . Note that both and are vector spaces over . The function
[TABLE]
is called the affine Hilbert function of . One may readily observe that, if then .
Similarly, given a subset of we define the affine Hilbert function of , denoted by, as , where is the ideal of consisting of polynomials of that vanishes at every point of . It is easy to show that, if then .
To compute the affine Hilbert function of a given ideal , one can use the theory of monomial ideals, i.e., ideals generated by monomials. For a given graded order on one defines to be the ideal generated by where denotes the leading monomial of under . Then we have the following well-known proposition. For a proof one may refer to Section 3 of Chapter 9 of [4].
Proposition 2.1**.**
Let be a graded order on .
- (a)
For any ideal of , we have for any . 2. (b)
If is a monomial ideal of then is the number of monomials of degree at most that do not lie in .
The next known proposition, taken from [13, Lemma 2.1], relates affine Hilbert functions of zero-dimensional ideals with the number of points in the corresponding variety. Similar statements (though formulated in the language of so-called footprints) can be found in [5, Cor.2.5] and [6, Cor.4.5].
Proposition 2.2**.**
Let be a finite set. Then for all sufficiently large values of .
Now we come back to Question 1.1. Note that contains the polynomials
[TABLE]
This means that contains the monomials . Further, given linearly independent polynomials the ideal
[TABLE]
contains the monomials along with the monomials . We may assume w.l.o.g. that are distinct using our assumption that are linearly independent. Thus,
[TABLE]
This implies that for all . By Propositions 2.1 and 2.2, we have,
[TABLE]
for all sufficiently large values of .
The above shows that Hilbert functions of monomial ideals can be used to answer Question 1.1. The following proposition gives a very useful way of determining such Hilbert functions, see [4, §2.4, Lemma 2 and §9.3, Prop.3] for a proof.
Proposition 2.3** ([4]).**
Let be a monomial ideal and be a positive integer.
- (a)
Then is given by the number of monomials of degree at most that do not belong to . 2. (b)
Let be generated by monomials and let be an arbitrary monomial. Then if and only if for some .
Corollary 2.4**.**
Let be a monomial ideal and be a positive integer. Then is given by the number of monomials of degree at most which are not divisible by any of the generators of .
Proof.
Immediately follows from Proposition 2.3. ∎
Now we return to the ideal defined in equation (1). We write , where and . By Proposition 2.3, any monomial that does not belong to will be of the form where for all . Consequently, the monomials that do not belong to are, naturally, in one-to-one correspondence with points in . In more concrete terms, if denotes the set of all monomials that do not belong to , then the map given by gives such a bijection. In particular, if we assume that then the monomials of degree at most in are in one-to-one correspondence with elements of . Further, if are two monomials in we have that if and only if .
In light of Proposition 2.3, a monomial , is in if and only if for some . Here denotes the natural partial ordering on , defined by
[TABLE]
This leads us to consider the so-called shadow of a collection of elements in :
Definition 2.5**.**
Let , then we define the shadow of in as
[TABLE]
Combining the above discussion and Proposition 2.3, we have following:
[TABLE]
Hence, from equations (2) and (3), we get that
[TABLE]
and hence
[TABLE]
where . Note that for , inequality (4) is given in [8, Cor.13].
3. Generalization of a combinatorial theorem by Wei
Inequality (5) gives a way to investigate Question 1.1 using purely combinatorial means. What is needed is to determine the minimum cardinality of the shadow given distinct elements . In this section we will determine this minimum cardinality. Our approach is to generalize [14], where the case was settled. It should be noted that we actually found an error in the proof of [14, Lemma 6]. This has some impact, since [14, Lemma 6] also was used in [11] to deal with the case . Fortunately, the material in this section (notably Theorem 3.9) implies that Lemma 6 in [14] is correct and thus fully justifies its use in [11].
For the convenience of the reader let us recap the notation we have used so far as well as introduce some further notation that we will use in this section.
Notation 3.1**.**
- (a)
Let be integers and . 2. (b)
. 3. (c)
For , define . 4. (c)
For , define and . 5. (d)
Let and . Denote by the set of first elements of in descending lexicographic order. 6. (e)
7. (f)
Let and . Define and . 8. (g)
For with , denote by the first elements of in descending lexicographic order.
Like in [11], the following theorem due to Clements and Lindström, will be an essential combinatorial tool.
Theorem 3.2** (Cor.1 [3]).**
For let . Then .
Corollary 3.3**.**
For and we have . In particular, .
Proof.
For there is nothing to prove. The case follows from Theorem 3.2. If then we have,
[TABLE]
The rest of the proof follows by induction on . ∎
Corollary 3.4**.**
For and , we have .
Proof.
Note that . The inequality follows from Corollary 3.3. ∎
Lemma 3.5**.**
Let and write . Choose and consider . Then .
Proof.
Write , where and . Since , we have . We divide the proof in two cases.
Case 1: If for all then we have and we are done.
Case 2: There exists such that . Choose . Note that, by definition of , we have for all .
Subcase : Suppose . Let , where denotes the tuple with in the -th coordinate and zeroes elsewhere. It follows trivially that . Moreover, the first nonzero coordinate in is which is positive. This implies that and hence
[TABLE]
Moreover, . To see that , we observe that
- (1)
since and 2. (2)
since .
Hence, contradicting the maximality of .
Subcase : Assume that and for some . It is easy to see that the same as in subcase 1 satisfies the inequality (6) which again violates the maximality of .
Subcase : Assume that and for all . Since and with , there exists such that . Let . Clearly . Also, the first nonzero coordinate of is . Thus satisfies the inequality (6) and clearly since which contradicts the maximality of . ∎
Remark 3.6*.*
Note that, one could derive the conclusion of Lemma 3.5 for any by applying the lemma iteratively.
Lemma 3.7**.**
Assume that . Let denote the first elements of in descending lexicographic order. Let and . Then , where consists of the first elements of in descending lexicographic order for .
Proof.
If , then there exists and such that . Hence, which implies . The fact thus implies that . Also, . Thus, . This proves the first inclusion.
Let . Define . Remark 3.6 implies that . If then we are done. So we may assume that . Note that consists of the first elements of in descending lexicographic order. This implies that , where denote the first elements of in descending lexicographic order. If then and hence . Now suppose, if possible, that . By maximality of we have . However, since , we have (by definition of ) which implies that . This is a contradiction since . This completes the proof. ∎
Lemma 3.8**.**
For and , let denote the set of first elements of in descending lexicographic order. For , we write . Then .
Proof.
It follows from Lemma 3.7 that,
[TABLE]
Now,
[TABLE]
Note that, consists of first elements of in descending lexicographic order. Hence, by applying (7) to (on the -th level). Reasoning iteratively, for all . This proves the lemma. ∎
The following theorem is a generalization of [14, Lemma 6] and our proof approach is similar as in Wei’s paper. However, as mentioned before, Wei’s somewhat terse proof contains a mistake which is why we have chosen to give a fully detailed proof of Theorem 3.9.
Theorem 3.9**.**
For , let with . Then , where, as before, denotes the first elements of in descending lexicographic order.
Proof.
For , define . We divide the proof into two cases:
Case 1: Suppose that for some . Then,
[TABLE]
This follows from Corollary 3.4 applied on a subset of consisting of elements and the contribution of shadows in of the remaining elements of . Further,
[TABLE]
Hence,
[TABLE]
Case 2: Now suppose that . Since , this implies that there exists such that . Hence, . By Lemma 3.7 and Theorem 3.3 we have Hence,
[TABLE]
The last equality follows from Lemma 3.8. ∎
4. Answer to Question 1.1
In this section we give the answer to Question 1.1 in Theorem 4.6. There are two main steps in the proof of this theorem. First, the combinatorial theory developed in the previous section is used to obtain an upper bound for . Further we construct an explicit family of -linearly independent polynomials in that attains this upper bound. Our results are more general than the results presented in [11], but some of the ideas are akin to that in [11, Section 5]. For instances, the Lemmas 4.1 and 4.2 are direct generalizations of Lemma 5.8 and Proposition 5.9 in [11] and Definition 4.4 is similar to Definition 4.10 from [11].
Lemma 4.1**.**
Let be an integer. Write
[TABLE]
Then is the -th tuple of in descending lexicographic order.
Proof.
Define a map
[TABLE]
Since any integer can be expressed uniquely as , it follows that is surjective. Moreover,
[TABLE]
The claim follows from the fact that is the -th highest element of . ∎
Lemma 4.2**.**
Let be the first elements of in descending lexicographic order. Then,
[TABLE]
Moreover, if then
[TABLE]
Proof.
Let . There exists such that . Thus, . Consequently, Conversely, let . If then there is nothing to prove. So we may assume that . Writing , there exists such that for and . Define an -tuple as follows:
[TABLE]
Clearly, and . Note that . If , then which implies that . On the other hand, if then for some . Consequently, . This shows that . The claim about the number of elements follows from the Lemma 4.1. ∎
Proposition 4.3**.**
Let be linearly independent over . Then
[TABLE]
where is the -th element of in descending lexicographic order.
Proof.
This follows from inequality (5), Theorem 3.9 and Lemma 4.2. ∎
We now construct a family of -linearly independent polynomials in such that the cardinality of attains the upper bound obtained in Proposition 4.3. Recall that, for .
Definition 4.4**.**
For define the polynomial,
[TABLE]
Proposition 4.5**.**
Let be the first elements of in descending lexicographic order. Then,
[TABLE]
where .
Proof.
Note that the map defined by is a bijection.
For we see that if and only if for all . This implies that if and only if . Consequently, for , we have if and only if . Thus, . In particular, if are the first elements of in descending lexicographic order we see that, , where the last equality follows from Lemma 4.2. Thus, ∎
Theorem 4.6**.**
We have
[TABLE]
where is the -th element of in descending lexicographic order and where the maximum is taken over all -linearly independent .
Proof.
This follows from Proposition 4.3 and Proposition 4.5. ∎
5. Affine cartesian codes and their higher weights
In this section we relate our results with coding theory and obtain a complete determination of the generalized Hamming weights of a class of codes containing the well-known Reed–Muller codes as a particular case. Throughout this section we assume , where denotes the finite field with elements, but otherwise we use the same notation as before. In particular, we assume that are positive integers and are subsets of of cardinality respectively. As before, denote by the cartesian product . Also we fix an enumeration of elements in and a positive integer
Recall that, a linear code of length and dimension is simply a linear subspace of of dimension . One class of codes related to the setting in this article is obtained as follows.
Definition 5.1**.**
Let be the map defined by
[TABLE]
Then for we define .
Note that is a linear code since is a linear map. It has length and it follows from the injectivity of that the dimension of is . The codes obtained in this way are called affine cartesian codes. Affine cartesian codes were defined in [10] and further studied in, for example, [1, 12, 8, 2]. In [10, Theorem 3.8] the authors determined the minimum distance of these codes.
Remark 5.2*.*
- (a)
If , then the code is the generalized Reed-Muller code . 2. (b)
If , the code is a toric code, see [9].
In this section we completely determine the generalized Hamming weights of affine cartesian codes. For the ease of the reader, we recall the definition of generalized Hamming weights of linear codes.
Definition 5.3**.**
Let be a subspace of dimension . The support of is defined to be
[TABLE]
Let be a code (i.e., linear subspace) of dimension . For , the th generalized Hamming weight of , denoted by is defined as,
[TABLE]
The quantity is simply the minimum distance of the code .
Theorem 5.4**.**
Let denote the -th generalized Hamming weight of . Then
[TABLE]
where is the -th element of in ascending lexicographic order.
Proof.
It follows from Theorem 4.6 that
[TABLE]
where is the -th element of in descending lexicographic order. Further we note that,
[TABLE]
[TABLE]
We define for . The assertion of the theorem now follows noting that the map is a bijection that reverses the lexicographic order on elements of . ∎
This theorem has a number of corollaries, relating it to previously known results. In the first place, we recover a result concerning the minimum distance of .
Corollary 5.5**.**
[10, Theorem 3.8]** The minimum distance of is given by , where and are uniquely determined integers such that .
Proof.
The first element of in descending lexicographic order is given by . From Theorem 5.4 and its proof we see that the minimum distance of is equal to
[TABLE]
The last equality follows noting that
[TABLE]
which completes the proof. ∎
As another consequence of Theorem 4.6, we recover the generalized Hamming weights of Reed-Muller codes . This was obtained in [14, Theorem 7] for and in [11, Theorem 5.10] for any prime powers .
Corollary 5.6**.**
[11, Thm. 5.10]** The -th higher weights of is given by
[TABLE]
where denotes the -th element of in ascending lexicographic order.
Proof.
This follows directly from Remark 5.2(a) and Theorem 4.6. ∎
We finish this section by an observation on the generalized Hamming weights of . Generalized Hamming weights have a number of properties. One of these, called Wei-duality [14, Thm.3] is the following. For a linear code of dimension , consider the linear subspace of
[TABLE]
The code has dimension and is called the dual code of . The following well-known statement, that relates the higher weights of a linear code to that of its dual, is sometimes referred to as Wei duality and can be found in [14, Thm 3].
[TABLE]
Note that the union in equation (10) is a disjoint union. Further, a direct computation using equation (9) shows that the sets and are disjoint and have union . For Reed-Muller codes, this is very simple to derive from Wei duality, since . But for affine cartesian codes this is not true in general. However, the following result offers an explanation of the above observation. As in Section 2, we will use the polynomials Further, denote by , the partial derivative of with respect to . We use our enumeration of the elements of as in the beginning of this Section.
Theorem 5.7**.**
We have
[TABLE]
where
Proof.
Let us for convenience write
[TABLE]
Observe that
[TABLE]
while
[TABLE]
Since , both codes and have the same dimension. Therefore, the theorem follows once we show that
Now let . Since the univariate polynomials and have the same evaluation for any element of , but have degree strictly less than , they are equal. Comparing coefficients of , we obtain that
[TABLE]
Any codeword is of the form for some and likewise any codeword is of the form for some To show that , it is enough to show that this equality holds whenever and are monomials. Therefore, we will assume that and are monomials from now on and write . Since , there exists at least one value of such that . Then we have
[TABLE]
Equation (11) and the fact that for at least one value of , then imply that . This shows that , which completes the proof. ∎
Corollary 5.8**.**
The -th generalized Hamming weight of the code is given by .
Proof.
Theorem 5.7 directly implies that the codes and have the same generalized Hamming weights. ∎
6. Acknowledgments
The authors would like to gratefully acknowledge the following foundations and institutions: Peter Beelen is supported by The Danish Council for Independent Research (Grant No. DFF–4002-00367). Mrinmoy Datta is supported by The Danish Council for Independent Research (Grant No. DFF–6108-00362).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] C. Carvalho, On the second Hamming weight of some Reed-Muller type codes. Finite Fields Appl. 24 (2013), 88–94.
- 2[2] C. Carvalho, V. G. L. Neumann, On the next-to-minimal weight of affine cartesian codes. Finite Fields Appl. 44 (2017), 113-134.
- 3[3] G. F. Clements, B. Lindström, A generalization of a combinatorial theorem of Macaulay, J. Combinatorial Theory 7 , 1969, 230 – 238.
- 4[4] D. A. Cox, J. Little, D. O’Shea, Ideals, varieties, and algorithms. An introduction to computational algebraic geometry and commutative algebra. Fourth edition. Undergraduate Texts in Mathematics. Springer, Cham, 2015.
- 5[5] D. A. Cox, J. Little, D. O’Shea, Using Algebraic Geometry. Second edition. Graduate Texts in Mathematics. Springer, New York, 2005.
- 6[6] O. Geil, Evaluation codes from an affine variety code perspective, Chapter 2 in Advances in Algebraic Geometry Codes, Series on Coding Theory and Cryptology, vol.5, World Scientific Publishing Co. Pte. Ltd., 2008.
- 7[7] O. Geil and C. Thomsen, Weighted Reed-Muller codes revisited, Des. Codes. Crypt , 66, (2013), pp. 195–220.
- 8[8] O. Geil, C. Thomsen, More results on the number of zeros of multiplicity at least r. Discrete Math. 340 (2017), no. 5, 1028–1038.
