Bent Squares in Boolean Function Analysis
- Bent squares are matrix representations of bent Boolean functions, organizing each row and column as the Walsh spectrum of a function in n/2 variables.
- The approach uses sparse type 1 and type 2 Walsh spectra to reformulate global nonlinear conditions into a structured matrix design problem.
- A combinatorial block construction employing signature matching enables a counting argument that yields a lower bound of log₂(bₙ) ≥ n·2^(n/2)(1 + O(1/n)).
Bent squares are matrix representations of bent Boolean functions. For even , a bent square is a matrix such that each row and each column is the Walsh spectrum of a Boolean function in variables. In this formulation, the flat-spectrum condition that defines bentness is recast as a local row-and-column spectral constraint on a square array. This representation is central in "A lower bound on the number of bent squares" (Haugland, 20 Aug 2025), where it is used to construct and count a large family of bent functions, leading to the bound
and, for every even integer ,
1. Spectral setting and bentness
A Boolean function in variables is a map
Its Walsh transform is
where is the standard inner product over 0. A function 1 is called bent if 2 is even and
3
Equivalently, every Walsh coefficient has the same absolute value 4, so bent functions are maximally nonlinear (Haugland, 20 Aug 2025).
The same condition can be expressed with Hadamard matrices. Let 5 and define recursively
6
Then 7. If one writes the sign vector of 8 as 9, ordered lexicographically by 0, then the Walsh spectrum is
1
Thus 2 is bent exactly when every entry of this vector is 3.
This spectral formulation is the background for bent squares. It isolates the Walsh spectrum as the primary invariant and makes it natural to reorganize the truth table of a bent function into a square matrix.
2. Matrix representation and the bent-square correspondence
Suppose now that 4 is even. Given a bent function 5, let 6 be the 7 matrix whose rows are consecutive blocks of length 8 from the vector 9. The associated bent square is then defined by
0
Two structural facts explain why this matrix is special. Since 1,
2
so every row of 3 is the Walsh spectrum of some Boolean function in 4 variables. Also,
5
contains the entries of
6
and because 7 is bent, these are all 8. Hence every column of 9 is also the Walsh spectrum of some Boolean function in 0 variables (Haugland, 20 Aug 2025).
The resulting definition is exact:
A bent square is a 1 matrix such that each row and each column is the Walsh spectrum of a Boolean function in 2 variables.
The representation is not merely one-way. Any matrix with this property is a bent square corresponding to some bent function in 3 variables. Bent squares therefore give a genuine correspondence between bent functions in 4 variables and these square matrices.
In small dimension, the first nontrivial type-2 case is 5. Then rows and columns of a bent square correspond to Boolean functions in 6 variables, and a type 2 Walsh spectrum has four nonzero entries of size
7
supported on a 8-dimensional affine subspace of 9. Since 0 itself is a 1-dimensional affine space, all four positions are nonzero, with an odd number of positive signs.
The significance of the correspondence is methodological. Instead of constructing a bent function directly in 2 variables, one constructs a square matrix whose rows and columns are valid Walsh spectra in 3 variables. This converts a global nonlinear spectral condition into a structured matrix design problem.
3. Sparse row and column spectra
Following Agievich, two sparse classes of Walsh spectra play a distinguished role in the bent-square approach. They are the elementary row and column types used in the counting argument (Haugland, 20 Aug 2025).
| Type | Nonzero entries | Structural property |
|---|---|---|
| Type 1 | exactly one | value 4 |
| Type 2 | exactly four | each equals 5 |
For type 1, if a Boolean function in 6 variables is affine, then its Walsh spectrum has exactly one nonzero entry, namely 7.
For type 2, if 8 and a Boolean function in 9 variables is EA-equivalent to a single quadratic monomial, then its Walsh spectrum has exactly four nonzero entries, each equal to 0. The indices of these four nonzero entries form a 1-dimensional affine subspace of 2, and the number of positive entries among the four is odd.
Bent squares whose rows and columns are all of type 1 are easy to count, giving
3
such bent squares. However, this family is asymptotically too small for the lower bound sought in (Haugland, 20 Aug 2025). The decisive gain comes from bent squares built only from type 2 rows and columns.
The type 2 condition is especially useful because it separates support geometry from sign geometry. The support must lie on an affine 4-flat, while the sign pattern must have odd positive parity. The combinatorial construction exploits exactly these two constraints.
4. Signature combinatorics and block construction
The core construction begins with a set 5 of binary matrices of size
6
such that each row and each column contains exactly two nonzero entries. Rows and columns are indexed by elements of 7.
Two signatures are associated with a matrix in 8. The vertical signature records, for each row, the XOR of the two column indices where the row has nonzero entries. The horizontal signature records, for each column, the XOR of the two row indices where the column has nonzero entries. These signatures encode the affine-subspace pattern required for type 2 spectra.
Two lemmas are used repeatedly. The first is a Cauchy-style collision bound: if 9 is any map between finite sets, then there are at least
0
ordered pairs 1 with 2. The second states that for each matrix in 3, there is at least one partition of its nonzero entries into two subsets such that every row and every column contains one entry from each subset. The proof views nonzero entries as vertices of a graph in which two vertices are joined whenever they lie in the same row or the same column; because each row and column has exactly two nonzero entries, the graph is 4-regular, hence a disjoint union of even cycles, so it is bipartite (Haugland, 20 Aug 2025).
From here the construction selects four matrices
5
with matched signatures:
- 6 and 7 have the same vertical signature;
- 8 and 9 have the same vertical signature;
- 0 and 1 have the same horizontal signature;
- 2 and 3 have the same horizontal signature.
These are assembled into the block matrix
4
The signature conditions ensure that in each row and each column, the positions of the four nonzero entries form a 5-dimensional affine subspace of 6, which is precisely the support pattern required for a type 2 Walsh spectrum. The nonzero entries are then replaced by signs 7 so that each row and each column has an odd number of positive entries. The paper explicitly shows that there are at least 8 valid sign assignments for each such block pattern.
This construction isolates the support problem in the matrices 9 and the sign problem in the bipartite partition from Lemma 2. That separation is what makes a systematic counting argument possible.
5. Counting bent squares and the lower bound on bent functions
Let
0
with the same count for horizontal signatures. A result of Knuth gives
1
and the signature count satisfies
2
The last signature entry is determined by the previous ones because the XOR of all row-signature values must vanish (Haugland, 20 Aug 2025).
The collision lemma is then applied twice. First, there are at least
3
ordered pairs 4 with the same vertical signature. Second, among these, considering horizontal signatures, there are at least
5
ordered quadruples 6 satisfying the four signature-matching conditions. Since each such support pattern has at least 7 valid signings, one obtains the explicit inequality
8
Substituting the asymptotics for 9 and 00 yields the main theorem: 01 for every even integer 02.
The result improves the leading exponential constant in the known lower bounds. Previous bounds had the form
03
with known values 04 from earlier work and 05 via a construction of Baksova and Tarannikov. The bent-square method reaches 06.
This is a lower-bound theorem, not an exact enumeration. It is obtained by constructing and counting a substantial subclass: bent functions whose associated bent squares have every row and every column of type 2.
6. Significance, limitations, and terminological scope
The bent-square viewpoint translates the global bentness condition on a function in 07 variables into a local spectral condition on rows and columns of a matrix of dimension 08. In the language of (Haugland, 20 Aug 2025), it creates a bridge between harmonic or spectral properties of Boolean functions and combinatorial matrix constructions. The paper exploits this bridge through sparse type 2 spectra and a counting argument on block-supported square matrices.
The scope of the result is explicit. It applies for all even integers 09. It concerns 10, the total number of bent functions in 11 variables, but proves the lower bound by counting only a particular subclass arising from bent squares with type 2 rows and columns. The actual number of bent functions may therefore be much larger. The estimate
12
is also not intended to be optimal; the paper remarks that refinements may improve constants, but are not expected to change the leading asymptotic constant 13 in
14
A common source of confusion is terminological. In bent-function theory, bent squares are the Walsh-spectral square matrices described above. In another literature, "bent squares" denotes regular but nonflat squares embedded in 15, with all four side lengths equal and all four interior angles equal to a common angle 16; those objects are used to study one-dimensional periodic tilings exhibiting bending, wrinkling, or rolling up (Friedrich et al., 2021). The two notions are unrelated except for the phrase itself.
A second nearby but distinct matrix tradition occurs in the graph-and-design study of bent functions. "Classifying bent functions by their Cayley graphs" introduces square-array objects such as the weight class matrix
17
and the SDP design incidence matrix
18
but that paper does not define bent squares in the sense of the row-and-column Walsh-spectrum correspondence (Leopardi, 2017).
Bent squares, in the precise sense of (Haugland, 20 Aug 2025), are therefore best understood as a matrix-theoretic language for bent Boolean functions. Their importance lies not in providing a full structural classification of all bent functions, but in furnishing a rigid and countable subclass whose combinatorics is rich enough to improve the best known asymptotic lower bound on 19.