WorksMathematics
Boolean functions and completely regular codes of bounded degree on the halved cube
Abstract
We establish a bijection between Boolean functions of degree d on the -dimensional hypercube and Boolean functions of degree d on the halved n-cube for n>=4d+1. Moreover, for each fixed d and sufficiently large n, we show that every completely regular code of degree in the halved n-cube has covering radius 1.
Introduction
A function is called Boolean. Given a function on , a variable , , is called relevant if there are two vectors such that and differ only in position and . The -dimensional hypercube is defined as follows. The vertex set of is , and two vertices are adjacent if they differ in exactly one coordinate. The vertices of the halved -cube are all even-weight binary vectors of length , and two vertices are adjacent if they differ in exactly two coordinates.
The famous Nisan–Szegedy theorem [14] states that any degree- Boolean function on has at most relevant variables. In 2020, Chiarelli, Hatami and Saks [2] improved this bound to . Subsequently, in 2022, Wellens [19] further improved it to . In Johnson graphs, Filmus and Ihringer [6] established an analogue of the Nisan–Szegedy theorem for Boolean functions, showing that functions of fixed degree are "juntas" when the parameters are sufficiently large.
Now we briefly discuss the results on Boolean functions of degree at most 3 on . Any degree-1 Boolean function on has exactly one relevant variable (this can be proved by induction on ; it also follows directly from the Nisan–Szegedy theorem). By the Nisan–Szegedy theorem, any degree-2 Boolean function on has at most 4 relevant variables. Therefore, all such functions can be found by the enumeration of all Boolean functions on . In other terms, such functions were characterized by Camion et al. in [1]. The results of Tarannikov and Kirienko [17] on correlation-immune functions imply that any degree-3 Boolean function on has at most 10 relevant variables (this bound is sharp). Based on this bound, in 2023 Rasoolzadeh [15] classified all -resilient Boolean functions with variables. The classification of degree-3 Boolean functions can be derived from Rasoolzadeh’s classification (see details in [11 Section 2.1]).
Characteristic functions of completely regular codes (CRCs) whose largest eigenvalue index is form an important class of Boolean functions of degree . Completely regular codes are also of independent interest [16]. In particular, a Boolean function on a distance-regular graph has degree 1 if and only if its support is a CRC with covering radius 1 whose non-principal eigenvalue has index 1. Boolean functions of degree 1 have been studied in classical association schemes [7, 9, 5].
Completely regular codes of covering radius 1 whose characteristic functions have degree 2 have been investigated in Hamming graphs [12, 13] and Johnson graphs [4, 8, 18]. Completely regular codes of covering radius 1 in halved cubes were studied in [10], where all possible parameter sets for such codes in with were determined.
In this work, we investigate Boolean functions of bounded degree on the halved -cube and their connection to completely regular codes. In § 3, we establish a rigidity property: if , restriction to gives a bijection between Boolean functions of degree on the hypercube and Boolean functions of degree on . Moreover, this bound is sharp.
Having established the restriction result for Boolean functions of fixed degree, we turn to completely regular codes in § 4. In general, a CRC of degree has covering radius at most because a CRC with covering radius has exactly distinct eigenvalues. For halved cubes, however, we show that for every fixed , all nontrivial CRCs of degree in have covering radius 1 whenever is sufficiently large. Moreover, their characteristic functions are restrictions of characteristic functions of CRCs with covering radius 1 in the hypercube .
Thus, for every fixed degree , all nontrivial CRCs in sufficiently halved cubes of sufficiently large diameter have covering radius 1. In contrast, Hamming, Johnson, and Grassmann graphs admit CRCs of degree and covering radius for every diameter at least (see Remark 1 in § 4).
Using the correspondence established in § 3 between Boolean functions of fixed degree on the hypercube and on the halved -cube , we obtain a complete classification of Boolean functions of degree at most 2 on for in § 5. We now proceed to the preliminaries on Boolean functions. The definitions related to CRCs are given in § 4.
Preliminaries and notation
Let be a distance-regular graph of diameter . We index its eigenvalues in decreasing order:
Let be the eigenspace corresponding to , and the orthogonal projector onto it. A real-valued function on has degree if
and . The zero function is defined to have degree 0.
Write for the binary words of length , and for the Hamming weight of . The -dimensional hypercube has vertex set , with two vertices adjacent if they differ in exactly one position. The vertex set of is
For a function on , write . The eigenvalues of the hypercube and halved cube graphs and are
For , define the Fourier character
where the inner product is taken over . Write for the bitwise complement of . Since both graphs are Cayley graphs of abelian groups,
and, for ,
where the displayed restrictions form a basis. When is even and , one takes one representative from each pair , since . Thus, for , restriction is an isomorphism from each of and onto :
Boolean functions of bounded degree on
Lemma 3.1. If then for every function of degree on there is a unique function of degree on such that .
Proof. By (1), restriction is a bijection between and .
Theorem 3.2. For , restriction is a bijection between Boolean functions of degree on and .
Proof. By Lemma 3.1, every Boolean function of degree on has a unique real-valued extension of degree on .
Consider the function , which has degree for some , since the product of two Fourier characters of weights at most has weight at most . Since , Lemma 3.1 implies that has degree . However, , since is Boolean. Therefore and , so is Boolean.
Note that the above bound is sharp.
Proposition 3.3. For every , there exists a function of degree on such that is Boolean on but is not Boolean on .
Proof. The function is of degree 1 and Boolean on . However, if , the value of the function is , so it is not Boolean on .
We replace each with degree function to obtain the function on of degree fulfilling the required properties.
We note that the Boolean function in Proposition 3.3 defines a completely regular code in , obtained from the corresponding code in by the construction [10 Section 4.4]. The code in is depicted in Figure 1.

Figure 1. The halved cube . The shaded vertices form the support of in the case of Proposition 3.3.
Completely regular codes of fixed degree in a halved cube
A code in a graph is a subset of its vertex set.
If is a code in , put
Let be a code in a graph . Define its covering radius and distance layers by
The code is completely regular (abbreviated ) if, for each , every vertex of has the same numbers and of neighbours in and , respectively. The intersection array is defined as
For a nonempty code in , let
For a real-valued function on a distance-regular graph , define its spectral support and external distance by
A code is said to have degree if its characteristic function has degree . We further abbreviate and . Subscripts and mean that the quantities are taken in and , respectively.
Theorem 4.1. [3 Theorems 5.10 and Theorem 5.13] For a code in a distance-regular graph , one has the following
.
If is completely regular, then equality holds.
if and only if is a CRC with .
Proposition 4.2. If is a code in with , then
Proof. We show that and the bound for covering radius will follow. Fix , let , and choose a closest vertex . Since for every , we have . If is even, then and equality follows. If is odd, then by , there exists a neighbour of in . It is of even weight and minimality of forces , excluding . Then , as required.
Theorem 4.3. Let be a code in , with , and
Then is in if and only if is of covering radius in .
If either condition holds, then .
Proof. By (1) and the spectral condition, . If is completely regular, then Theorem 4.1 and Proposition 4.2 give
Hence . Conversely, if is of radius , then , so is of covering radius .
Let be the maximum number of relevant variables that a degree- Boolean function on can have. Recall that (see [14, 19]).
Corollary 4.4. Let and suppose that
Then every of degree in has covering radius and the restriction is a bijection between of covering radius of degree on and .
Proof. Let be completely regular of degree in , and let . By Theorem 3.2, has a unique Boolean extension of degree to . Set as follows: , . Since , has at least one irrelevant variable. Therefore, we have . Since and , Proposition 4.3 applies. The converse follows in the same way as at the end of the proof of Theorem 4.3.
Remark 1. In contrast to halved cubes, the classical Hamming, Johnson, and Grassmann graphs admit completely regular codes of degree and covering radius for every admissible . A simple construction is to fix an -subset and take all vertices whose supports are contained in . This works for both Hamming and Johnson graphs. In the latter case, vertices are binary vectors of weight , and we assume . In Grassmann graphs, the analogous construction is obtained by replacing subsets with subspaces. By Corollary 4.4, however, for every fixed , all of degree in sufficiently large halved cubes have covering radius .
Functions of degree at most two on
By Theorem 3.2, for , every Boolean function of degree on extends uniquely to a Boolean function of degree on and is thus equivalent to . For , there are exactly two equivalence classes under automorphisms induced by and complementation: and the restriction of the function from Proposition 3.3 with . We leave the verification of this classification to the reader.
For , Theorem 3.2 reduces the classification of Boolean functions of degree on to that on . Up to automorphisms and complementation, the five representatives are listed in Table 1. Here is the number of relevant coordinates; the others are irrelevant. By Corollary 4.4, every of degree in for is equivalent to one of the codes marked in the table. In particular, our results settle the two open cases for the eigenvalue in [10 Section 6.5].
| Representative | CR | CR | ||||
| yes | yes | |||||
| yes | no | – | ||||
| yes | yes | |||||
| no | – | no | – | |||
| yes | yes |
Table 1. Representatives of Boolean functions of degree 2 on , , up to hypercube automorphisms and complementation . Here is the support of ; the code parameters refer to the displayed representatives.
Let
Here induces an 8-cycle in , and means the characteristic function of that set. In row 4 the function has support .
We also note that in the same manner degree 3 Boolean functions on from degree 3 Boolean functions on (classified in [11 Section 2.1]) could be described.
Acknowledgments. A key observation used in the proof of Theorem 3.2 emerged during a discussion of a related problem with the AI system Aristotle. The idea was subsequently adapted by the authors to the present setting.
References
- [1]P. Camion, C. Carlet, P. Charpin, N. Sendrier, On correlation-immune functions, CRYPTO’ 91, Advances in Cryptology, Lecture Notes in Computer Science, volume 576 (1992) 86–100.
- [2]J. Chiarelli, P. Hatami, M. Saks, An asymptotically tight bound on the number of relevant variables in a bounded degree Boolean function, Combinatorica 40 (2020) 237–244.arxiv.org/abs/1801.08564
- [3]P. Delsarte, An Algebraic Approach to the Association Schemes of Coding Theory, Philips Research Reports Supplements, No. 10, 1973.
- [4]R. J. Evans, A. L. Gavrilyuk, S. Goryainov, K. Vorob’ev, Equitable 2-partitions of the Johnson graphs J(n, 3), Discrete Mathematics 348(10) (2025) 114565.arxiv.org/abs/2206.15341
- [5]Y. Filmus, Boolean degree one functions on the Grassmann scheme, arXiv:2606.23465, 2026.arxiv.org/abs/2606.23465
- [6]Y. Filmus, F. Ihringer, Boolean constant degree functions on the slice are juntas, Discrete Mathematics 342(12) (2019) 111614.arxiv.org/abs/1801.06338
- [7]Y. Filmus, F. Ihringer, Boolean degree 1 functions on some classical association schemes, Journal of Combinatorial Theory, Series A 162 (2019) 241–270.arxiv.org/abs/1801.06034
- [8]A. L. Gavrilyuk, S. Goryainov, On perfect 2-colorings of Johnson graphs J(v, 3), Journal of Combinatorial Designs 21(6) (2013) 232–252.DOI
- [9]F. Ihringer, The classification of Boolean degree 1 functions in high-dimensional finite vector spaces, Proc. Amer. Math. Soc. 152 (2024), 5355–5365.arxiv.org/abs/2312.03975
- [10]D. S. Krotov, I. Yu. Mogilnykh, and A. Yu. Vasil’eva, On completely regular codes of covering radius 1 in the halved hypercubes, arXiv:1812.03159, 2018.arxiv.org/abs/1812.03159
- [11]D. Krotov, A. Valyuzhenich, On degree-3 and (n − 4)-correlation-immune perfect colorings of n-cubes, Discrete Mathematics 347(10) (2024) 114138.DOI
- [12]I. Mogilnykh, A. Valyuzhenich, Equitable 2-partitions of the Hamming graphs with the second eigenvalue, Discrete Mathematics 343(11) (2020) 112039.arxiv.org/abs/1903.12333
- [13]I. Mogilnykh, A. Taranenko, K. Vorob’ev, Completely regular codes with covering radius 1 and the second eigenvalue in 3-dimensional Hamming graphs, Discrete Mathematics 348(2) (2025) 114296.arxiv.org/abs/2403.02702
- [14]N. Nisan, M. Szegedy, On the degree of Boolean functions as real polynomials, Computational Complexity 4 (1994) 301–313.
- [15]S. Rasoolzadeh, Classification of all t-resilient boolean functions with t + 4 variables, IACR Transactions on Symmetric Cryptology 3 (2023) 213–226.DOI
- [16]M. Shi, P. Solé (eds.), Completely Regular Codes in Distance Regular Graphs, Chapman and Hall/CRC, Boca Raton, 2025.DOI
- [17]Y. Tarannikov, D. Kirienko, Spectral analysis of high order correlation immune functions, IACR Cryptology ePrint Archive (2000) Paper 50.
- [18]K. Vorob’ev, Equitable 2-partitions of Johnson graphs with the second eigenvalue, arXiv:2003.10956, March 2020.arxiv.org/abs/2003.10956
- [19]J. Wellens, Relationships between the number of inputs and other complexity measures of Boolean functions, Discrete Analysis 20 (2022).