Manuscript Offprint
arXiv:2610.36687The Exact Weight Spectrum of ): A Counterexample to the Carlet-Solé Conjecture
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Boolean functions are widely used in cryptography and coding theory. A key challenge lies in finding the weight spectrum for all n-variable Boolean functions of degree at most r, also known as the Reed–Muller code . In 2023, Carlet and Solé determined the weight spectra of for , and conjectured the weight spectrum of for . The weight spectra of and were determined by Carlet in 2024 and by Lou and Wang in 2025, respectively, confirming the Carlet-Solé conjecture for the cases . Very recently, Leuenberger et al. and Wei et al. investigated the weight spectrum of independently, and there are eight potential weights which have not been determined. Up until now, the weight spectra of the Reed–Muller codes are still unknown for . In this paper, we determine the exact weight spectrum of for every . By combining affine geometry and Fourier analysis, we exclude the conjectured eight weights for . We then extend the exclusions to all higher dimensions using a geometric transfer. Consequently, we provide a counterexample to the Carlet-Solé conjecture.
Keywords: Boolean functions, weight spectrum, Reed–Muller codes, Fourier transform.
1 Introduction
Boolean functions are fundamental objects in cryptography and coding theory. The -th order Reed–Muller code of length , denoted by ,
*School of Computer and Electronic Information/School of Artificial Intelligence, Nanjing Normal University, Nanjing, China. Email: 232212001@njnu.edu.cn.
School of Computer and Electronic Information/School of Artificial Intelligence, Nanjing Normal University, Nanjing, China. Email: qcwang@fudan.edu.cn.
Corresponding author.
is the binary linear code formed by truth tables (output values) of all n-variable Boolean functions of algebraic degree . Determining the Hamming weights (i.e., the weight spectrum and weight distribution) of is an important long-standing research topic [17].
For , the weight spectra of are well-known. In 2023, Carlet and Solé determined the weight spectra of for and proposed the following conjecture about the weight spectrum of the Reed–Muller code [6].
Conjecture 1 (Conjecture of [6, 15], Open question of [5]). Let be any positive integer. For , the weight spectrum of is of the form
where:
is given by Kasami and Tokura [9],
is given by Kasami, Tokura and Azumi [10],
consists of all consecutive even integers,
, and .
In 2024, Carlet determined the weight spectrum of for , using the Maiorana-McFarland construction, confirming that conjecture for , where he restated the conjecture as an open question since it seemed to be very difficult to make a prediction by further study [5]. In 2025, using the four-block concatenation construction, we determined the weight spectrum of for , confirming the conjecture for , and proposed a new conjecture which implies the Carlet-Solé conjecture[15]. In 2026, we proved that the four-block concatenation construction cannot generate the weight 322 for , so the new conjecture is false [16]. Very recently, Leuenberger et al. and Wei et al. used the four-block concatenation method to investigate the weight spectrum of independently, and there are eight potential weights of which have not been determined [13, 24].
In [8, 20], Jain et al. estimated the unknown weight enumerators of and determined the exact weight spectrum of . In 2025, Markov and Borissov computed the weight distribution of which was the smallest length Reed–Muller code with unknown weight distribution [18]. Very recently, Khoruzhii et al. computed the exact weight distribution of [11]. For more information about the weight spectra of Reed–Muller codes of particular orders and lengths, one can refer to [1, 2, 22, 23].
In this paper, we determine the exact weight spectrum of for every . We exclude those eight conjectured weights in by combining affine geometry and Fourier analysis. We then extend the exclusions to all higher dimensions using a geometric transfer. Consequently, we provide a counterexample to the Carlet-Solé conjecture.
The paper is organized as follows. In Section 2, the necessary background is established. We deduce some necessary conditions using affine geometry in Section 3, and exclude the eight weights of RM(7,14) in Section 4. In Section 5, we extend the exclusions to all higher dimensions and prove the main theorem. We end in Section 6 with conclusions.
Every Boolean function has a unique algebraic normal form (ANF), which is its multivariate polynomial representation over :
The algebraic degree of , denoted by , equals . The function is affine, if . We use to denote the set of all -variable affine functions.
Let and
The cardinality is called the Hamming weight of g, and will be denoted by .
The binary Reed–Muller code is exactly the set of truth-tables of all -variable Boolean functions whose algebraic degree is at most . That is, . Write
All polynomial operations are over ; all weights, intersection sizes, and Fourier coefficients are ordinary integers. We write for the indicator of a set . An affine -flat has points. If an affine section vanishes identically, uniqueness of the ANF gives
Affine substitutions preserve degree and weight, and restriction to an affine subspace does not increase degree [4, 7]. The following four consequences will be used afterwards.
Standard forms for low weights. The minimum positive weight of is ; its minimum supports are affine -flats. Moreover, for , every nonzero word of weight strictly less than is affinely equivalent to one of the two Kasami–Tokura forms
with weight . In the second form the support is the symmetric difference of two affine -flats. See [9, 21] for these standard forms.
Weights below 208 of . If , , and , then
This necessary list follows from the weight spectrum of [15].
Two-hyperplane covering. If and for , its support is contained in two affine hyperplanes with independent linear parts. Consequently its zero set contains an affine -flat. We use the basic covering lemma in [12]; all applications have and threshold 160.
Weights below 320 of . The Kasami–Tokura–Azumi classification specialized to gives, for ,
We use this low-weight classification [9, 10] to establish the bottom of the spectrum.
3 Affine geometry and some necessary conditions
Let . Throughout this paper, , , , and , whenever those symbols occur.
Lemma 1. For , every satisfies
In particular, every word of RM(6,13) has weight divisible by four. Consequently, if has weight in , then every affine hyperplane meets .
Proof. The divisibility assertion is the classical theorem [3, 19]. If an affine hyperplane is disjoint from , then by (1), we have with and , which is contradictory to (6), and the result follows.
Lemma 2. There is a unique such that every affine hyperplane satisfies
Proof. On the vector space of affine functions define
It is well-defined by Lemma 1, since . For any , we have . Hence, by (6),
and is linear over . Moreover, we have . Let . Linearity gives for every affine , and the coordinate functions make unique. Taking , we have
and the result follows.
Lemma 3. Some affine -flat is disjoint from S.
Proof. For define . Character orthogonality gives
For and , the right side is greater than , since
Thus for some . This coefficient is even, so . Let be the smaller of the two parallel hyperplane sections in direction . Then
If , then any affine -flat in is disjoint from . Otherwise, the nonzero restriction has weight strictly below . The two-hyperplane covering result from Section 2 then provides an affine -flat in disjoint from .
Lemma 4. Some affine -flat is disjoint from S.
Proof. Assume that every affine -flat meets S. Then every affine hyperplane meets S as well, since it contains affine -flats. Moreover, a positive hyperplane section of weight below 128 has a nonconstant affine factor by the forms : for and , Type I has such factors and Type II has . Therefore, the section is contained in an -flat, leaving its parallel -flat empty, contradicting the assumption. Hence, every global hyperplane section has weight at least 128, and, by taking its complementary hyperplane, at most . By Lemma 2, a hyperplane containing the characteristic point has weight 2 (mod 4), then by , its weight is at least 154.
Choose the empty -flat from Lemma 3 and translate it to a linear subspace. Index its eight cosets by , and let be the number of support points in the -coset. Hence, . For each , exactly three two-dimensional linear subspaces of contain , and at least one contains the image of . The corresponding three hyperplane weights therefore sum to at least . In this sum, is counted three times and each other nonzero quotient point once. Therefore,
Since vanishes on , each coset restriction has degree at most in variables, by the ANF factorization in the three quotient coordinates. Thus it belongs to , whose first two positive weights are 32, 48 by the standard forms for low weights from Section 2. Then by (9), every nonzero coset has at least 48 points, and , contradicting .
Lemma 5. Let and . There are no of respective weights 96, 112, 126 such that .
Proof. For let
Its dimension is invariant under affine substitutions, since the condition depends only on the degree- part of . The weight-96 standard form
implies . Both weight-112 forms have at least independent affine factors, so .
Put , so . The weight-126 standard form provides affine coordinates in which the top-degree part of is
with when . Write for the spans of the -, -, and -coordinate linear forms. Take and a subspace of dimension .
Suppose . For and , we have
Write and . The degree- part of udk is
where denotes the squarefree quadratic part. The summands have distinct -degrees and hence vanish separately. Thus are dependent, as are , for every , .
Since and , the projection of onto has dimension at least . Hence at least one of its projections onto and has dimension at least 2. Interchange if necessary to make it . Choose whose -components are linearly independent. For any , the vector is dependent with both and , so . Thus . Since , its projection to has dimension at least three, and dependence in the other block gives
Let be the degree- parts of . We compare the number of variables from . Choose a basis of extending a basis of . For every basis element , the condition forces every degree-r monomial of to contain . Hence every monomial of has -degree at least .
On the other hand, at least three members of have independent -projections. By changing the -basis and adding -linear forms to its elements, we may take these members as three -coordinate variables. These changes leave fixed and preserve the two indicated -degrees of : terms introduced into by adding -linear forms have degree less than after multiplication by . Since their products with have degree at most , every degree- monomial of contains these three -variables and therefore has -degree at most .
Thus no degree-r monomial of can cancel one of . As and the two terms of have -degrees and , respectively, we must have and . But then every linear form in belongs to , so , contradicting .
The next proposition uses the additional assumption that every hyperplane section is nonempty, which will be verified separately in both applications.
Proposition 1. If every affine hyperplane meets , then some affine hyperplane satisfies .
Proof. Choose an empty -flat from Lemma 4, and use coordinates in which it is . Then
The other three parallel sections are . All are nonzero, otherwise, two empty parallel -flats would form an empty hyperplane, contradicting the hypothesis. By (4), their weights sum to and lie in .
Suppose none has weight 64, and order the three weights . Then , so . Also , hence . If , the remaining weight is one of 130, 134, 138, 142, none in . If , the remaining weight is one of 114, 118, 122, 126, and only 126 lies in . Thus and the weights are (96, 112, 126). But has degree at most , contradicting Lemma 5 with , . Therefore one of the three sections has weight 64, joining it to the empty parallel section gives the required hyperplane.
4 Exclusion of the eight weights in RM(7, 14)
Assume that has weight . By Lemma 1 every affine hyperplane meets . Thus the additional assumption of Proposition 1 is satisfied, which supplies a hyperplane with . Its restriction is a minimum word of , hence
where is an affine six-flat. Translate the origin into , so that are linear.
Lemma 6. The XOR of the indicators of three affine seven-flats in cannot have weight in T.
Proof. Suppose on the contrary that the XOR of the indicators of has weight in T. Let be their pairwise intersection sizes, and let t be their triple intersection size. Inclusion-exclusion for the XOR gives
Every nonzero is a power of two. If , the odd right side forces one and hence . The only remaining possible sum of three positive powers of two is . Thus the two affine four-flats of size 16 inside the same seven-flat meet in the triple intersection point. However, their direction spaces have intersection dimension at least , so their intersection cannot be a singleton, a contradiction.
If , the only value in (13) expressible as a sum of at most three powers of two is . Relabel so that , , and . The directions of , meet trivially. Therefore, the four- and three-dimensional directions of the last two intersections are complementary inside dir . Their affine translates in must meet, contradicting .
Lemma 7. For each put . Then
Proof. Use coordinates with , . Since , write
Clearly, for every . Therefore, . Furthermore,
Therefore,
By Lemma 1, wt(d_a) is divisible by four, so i_a and wt(d_a|_L) are odd.
Suppose . The word is nonzero and has degree exactly six, since a nonzero word of has weight at least 256. In the first Kasami–Tokura form, has four independent affine factors times a quadratic, and its weight belongs to . On , the four factor equations are either inconsistent, giving , or define an affine space of dimension at least two. Since a quadratic on an affine space of dimension at least three has even weight, odd forces a two-dimensional space and . Equation (15) then gives
contradictory to the first-form weights.
In the second form, is the XOR of indicators of two affine seven-flats . Then is the XOR of the indicators of the three affine seven-flats , , , in the coordinates . This contradicts Lemma 6. Therefore . Then by (15), we deduce the result.
Theorem 1. No word of RM(7, 14) has weight in T.
Proof. By Lemma 2, the characteristic point lies outside , since . Choose a complement with and . Every point has a unique expression
For put . By Lemma 7, , with
where the sum follows from and . For , the dual space of linear functions on , define the integer Fourier coefficients
For nonzero , consider the affine hyperplanes
(in coordinates (16)). On the inside half , both avoid , so both have zero support there. Their outside weights are
where . Indeed,
By Lemma 7, each selected outside coset is nonempty, so each section has weight at least 64 and at most . Both weights lie in and sum to . Since , Lemma 2 gives
Enumerating the allowed pairs in (19) using (4), and then applying (20), yields Table 1.
Table 1: Signed nonzero Fourier coefficients.
| is contained in | ||||
|---|---|---|---|---|
| 322 | 129 | 65 | 16 | |
| 326 | 131 | 67 | 17 | |
| 330 | 133 | 69 | 18 | |
| 334 | 135 | 71 | 19 |
Fourier orthogonality at gives
By Table 1, for , the left side is at least ; for it is at least . These cases are impossible. For , the same inequality shows that some nonzero coefficient equals ; for , some nonzero coefficient equals . Choose with
In either case, has weight by (19). Its half with t = 0 is empty, so by (1) the restriction of f to the affine twelve-flat
has degree at most six and weight 126. The Kasami–Tokura form in RM(6, 12) therefore gives
where are affine six-flats meeting at a single point o. Their directions have trivial intersection and are complementary in the twelve-dimensional direction space dir K.
Let , so , and project onto along . Every fiber is the six-flat with population . Put . If both are positive, every intersection of a fiber with either flat is empty or even-sized, then all fiber populations in (24) are even, a contradiction. If both are zero, each flat projects bijectively onto , so each contributes one point to every fiber and their XOR again has even population. Thus exactly one of , is zero. Relabel so that and . The projection of is an affine -flat , and the projection of lies in . The flat contributes one point in every fiber, contributes precisely over , and the common point is removed twice over . Therefore,
or equivalently
where is the point indicator at z.
A character is a map . Since , summing a character over yields either when it is trivial on dir , or zero otherwise. Since , (25) implies
In particular, each coefficient lies in . Every character of has two extensions to J, so
For the trivial character, this equals . For any nontrivial character both indices in (27) are nonzero. The possible half-sums from Table 1 are
Each intersects only in 31. Thus all 64 coefficients of equal 31. Fourier inversion at zero gives , contradicting from (17). So, all four cases are excluded.
Since , the other four weights 16050, 16054, 16058, 16062 can also be excluded.
5 Extend to higher dimensions
The base exclusion alone does not rule out the possibility of new low weights in more variables. The following lemma controls this issue.
Lemma 8. Let have weight , where . If
then some word of has the same weight w.
Proof. Let . Since at most nonzero directions are differences of two distinct points of , by (28), there exists a nonzero direction not among these differences. So, every coset of contains at most one point of . In coordinates , write with . The derivative has weight , since no two support points collide under projection along , and the result follows.
Theorem 2. For every and ,
Proof. For , . Repeated application of Lemma 8 reduces the parameters to RM(8, 15) while preserving the weight. Conversely, if , the word belongs to and has the same weight, and the result follows.
Theorem 3. No word of RM(8,15) has weight in T. Consequently for every .
Proof. Suppose has weight . Its support cannot be contained in a hyperplane: otherwise (1) would give a word of of weight , contrary to Theorem 1. Hence every affine hyperplane meets the support, so the assumption of Proposition 1 holds. That proposition produces a hyperplane whose section has weight 64. Its support is an affine six-flat . Translate the origin into and write , where .
For , write with , and set . As in (15),
If , then has forbidden weight W in RM(7, 14). Hence every outside L-coset contains at least one support point.
Choose an outside vector and a nonzero linear form on . In coordinates consider
Both avoid L in the half t = 0. In the half t = 1 they select complementary sets of 128 of the 256 nonempty L-cosets. Their weights x, y therefore satisfy
so . The sections lie in RM(8, 14), of codimension six, and (4) leaves only 128 and 136 in this range. Thus is divisible by four, whereas . This contradiction proves the first assertion. The second follows from Theorems 1 and 2.
Put
Leuenberger et al. and Wei et al. gave the following base inclusion [13, 24]:
Proposition 2. Put . If for some , then .
Proof. Write . For , concatenation gives
and . Taking preserves and all even weights in . Taking one block of weight 336 and the other through this interval gives all even weights in . These two intervals overlap because for . Thus every even weight from 336 through occurs. Complementing the resulting length-2N codewords gives every even weight from through , together with . These are exactly the weights in .
Theorem 4. For every integer ,
The three sets are pairwise disjoint, and
In particular, no codeword has weight in or in .
Proof. The inclusion is (32). Proposition 2 therefore yields for all .
For the reverse inclusion, every codeword of has even weight by Lemma 1, and addition of the constant function 1 complements a weight to . It suffices to consider weights at most . Below 320, the classical classification (5) gives exactly the corresponding members of A. From 320 through 334, the four even weights 320, 324, 328, 332 belong to A, while 322, 326, 330, 334 are excluded by Theorem 3. Every remaining even weight through the midpoint lies in the central interval of (33). Complementation proves .
Finally and . The central even interval contains elements, so the disjoint union has elements.
If Conjecture 1 holds, then and will be subsets of , which is contradictory to Theorem 4. So, we have the following corollary.
Corollary 1. Conjecture 1 does not hold for , where .
6 Conclusions
The only outstanding nonexistence cases for RM(7,14) were the four low weights in T and their complements. We used the geometric and Fourier proof to exclude them in fourteen variables and in every larger dimension. With the established constructive inclusion, we deduced the exact weight spectrum of RM(m - 7, m).
We do not know whether Conjecture 1 holds for , where . It seems to be quite difficult to make a prediction for . However, it should be noted that the four counterexamples for are all below . So, we propose the following conjecture.
Conjecture 2. Let be any positive integer. For , the weight spectrum of is of the form
where:
could be given by a low-weight structure theorem,
consists of all consecutive even integers,
.
By the KTA structure theorem, if and , then is affine equivalent to a Boolean function with a standard form. More generally, for and , one may build a new structure theorem, which we leave for the future work.
Acknowledgment
The authors would like to thank the financial support from the National Natural Science Foundation of China (Grant 62172230).
References
[1] E. Abbe, A. Shpilka and M. Ye, “Reed–Muller Codes: Theory and Algorithms,” IEEE Trans. Inform. Theory, 67:6 (2021), 3251–3277.
[2] E. Brier and P. Langevin, “The classification of Boolean cubics of nine variables,” 2003 IEEE Information Theory Workshop (ITW), 2003, pp. 179–182.
[3] J. Ax, “Zeroes of polynomials over finite fields,” American Journal of Mathematics, 86:2 (1964), 255–261.
[4] C. Carlet, “Boolean Functions for Cryptography and Coding Theory,” Cambridge University Press, 2021.
[5] C. Carlet, “The weight spectrum of the Reed-Muller codes ,” IEEE Trans. Inform. Theory, 70:7 (2024), 4799–4807.
[6] C. Carlet and P. Solé, “The weight spectrum of two families of Reed-Muller codes,” Discrete Mathematics, 346:10 (2023), 113568. See also http://arxiv.org/abs/2301.13497.
[7] T. W. Cusick and P. Stanica, “Cryptographic Boolean Functions and Applications,” Academic Press, 2017.
[8] S. Jain, V. A. Rameshwar and N. Kashyap, “Estimating the Weight Enumerators of Reed-Muller Codes via Sampling,” 2024 IEEE International Symposium on Information Theory (ISIT), 2024, pp. 280–285.
[9] T. Kasami and N. Tokura, “On the weight structure of the Reed–Muller codes,” IEEE Transactions on Information Theory, 16 (1970), 752–759.
[10] T. Kasami, N. Tokura and S. Azumi, “On the weight enumeration of weights less than 2.5d of the binary Reed–Muller codes,” Information and Control, 30:4 (1976), 380–395.
[11] K. Khoruzhii and P. Gelfß and S. Pokutta, “The Weight Distribution of the Third-Order Reed-Muller Code of Length 2048,” http://arxiv.org/abs/2607.02365, submitted to IEEE Trans. Inform. Theory, 2026.
[12] A. Klein and L. Storme, “On the non-minimality of the largest weight codewords in the binary Reed–Muller codes,” Advances in Mathematics of Communications, 5:2 (2011), 333–337.
[13] M. Leuenberger and M. Albrizzio, “On the Weight Spectrum of the Reed-Muller Codes RM(7,14),” https://arxiv.org/abs/2606.21425, submitted to Designs, Codes and Cryptography, 2026.
[14] O. A. Logachev, A. A. Salnikov and V. V. Yashchenko, “Boolean Functions in Coding Theory and Cryptography,” American Mathematical Society, 2012.
[15] Y. Lou and Q. Wang, “Determining the weight spectrum of the Reed–Muller codes RM(m - 6, m),” Designs, Codes and Cryptography, 93 (2025), 4925–4936.
[16] Y. Lou and Q. Wang, “A Note on Two Conjectures about the Weight Spectra of the Reed–Muller Codes,” Discrete Applied Mathematics, 388 (2026), 142–145.
[17] F. J. MacWilliams and N. J. Sloane, "The theory of error-correcting codes," North Holland, 1977.
[18] M. Markov and Y. Borissov, “The weight distribution of the fourth-order Reed–Muller code of length 512,” Designs, Codes and Cryptography, 93:7 (2025), 2487–2502.
[19] R. J. McEliece, “Weight congruence for p-ary cyclic codes,” Discrete Mathematics, 3 (1972), 177–192.
[20] V. A. Rameshwar, S. Jain and N. Kashyap, “Sampling-Based Estimates of the Weight Enumerators of Reed–Muller Codes,” IEEE Transactions on Communications, 73:10 (2025), 8530-8541.
[21] J. Schillewaert, L. Storme and J. A. Thas, “Minimal codewords in Reed–Muller codes,” Designs, Codes and Cryptography, 54 (2010), 273–286.
[22] N.J. Sloane, “Online Encyclopedia of Integer Sequences (OEIS),” https://oeis.org/A146976.
[23] T. Sugita, T. Kasami, and T. Fujiwara, “The weight distribution of the third-order Reed–Muller code of length 512,” IEEE Trans. Inform. Theory, 42:5 (1996), 1622-1625.
[24] Z. Wei, B. Zhou, X. Zhang and H. Chen, “Some results on the weight spectrum of binary Reed–Muller codes RM(m - 7, m),” https://arxiv.org/abs/2610.29807, submitted to Cryptography and Communications, 2026.