Boolean functions · Lean 4 · 2026

The Balanced Parseval Bound and Zero-Free Walsh Spectra in Odd Dimensions

DOI 10.5281/zenodo.24772680

The result

For odd n = 2m + 1, let q(m) = ⌊2m−2√2⌋. Parseval's identity gives every balanced function on n variables the ceiling

parsevalBalNL(m) = 22m − 2(q(m) + 1)

Theorem 1. For infinitely many odd n = 2m + 1, no balanced Boolean function on n variables reaches this ceiling, so nlbal(n) ≤ parsevalBalNL(m) − 2.

Theorem 2. For infinitely many odd n = 2m + 1, every Boolean function on n variables (balanced or not) with nonlinearity at least parsevalBalNL(m) has WF(a) ≡ 4 (mod 8) for every a, so its Walsh spectrum has no zeros.

The proof uses Reed–Muller minimum weight to bound the sum of Walsh squares. The full-spectrum test applies to peaks with 2-adic valuation at least two. The hyperplane test uses extra divisibility when the peak is congruent to four modulo eight. The two tests give eleven explicit cases.

nExcluded ceilingProved nlbal(n) ≤MethodStatus
75856Tier A (k=2)Already known: nl ≤ 56 for every 7-variable function (Mykkeltveit, 1980). Reproved here.
9244242Tier A (k=3)Already known from the covering radius of RM(1,9) (arXiv:2610.17871); superseded by nlbal(9) = 240 (Shittu).
134,0504,048Tier A (k=2)New
1765,35465,352Tier A (k=2)New
2767,103,07067,103,068Tier B (r=6)New
29268,423,870268,423,868Tier A (k=2)New
334,294,920,9544,294,920,952Tier B (r=3)New
3517,179,776,50217,179,776,500Tier A (k=2)New
3768,719,291,37268,719,291,370Tier A (k=3)New
39274,877,536,216274,877,536,214Tier A (k=4)New
411,099,510,886,3201,099,510,886,318Tier A (k=5)New

The binary digits of √2 determine the reach of the two tests. With bj for the last bit of ⌊2j−2√2⌋, dimension n = 2m + 1 is covered if and only if bm+1 = 1 or (bm, bm+1, bm+2) = (0, 0, 1), and no dimension gains more than 2. In every covered dimension, functions reaching the ceiling have zero-free Walsh spectra. These results are checked in Lean. Exact arithmetic gives 6,249 covered dimensions among the 9,998 odd dimensions from 7 to 20,001. If the relevant binary blocks of √2 have their expected frequencies, the limiting fraction is 5/8. See Sections 6 and 7 of the paper.

In plain words

A Boolean function takes a string of n bits and returns one bit. Ciphers are built from such functions, and a cipher is easier to break when they behave almost like simple linear rules (XORs of input bits). Nonlinearity measures how far a function is from every such rule; higher is better. A function is balanced if it outputs 0 and 1 equally often.

When n is odd, a simple counting argument (Parseval) caps the nonlinearity of a balanced function. We show that this cap cannot be reached in infinitely many odd dimensions, using only the binary digits of √2 and divisibility of the Walsh transform by powers of 2. No computer search is involved.

How it is checked

The Lean 4 companion verifies the spectral exclusions and digit criteria. Appendix A maps the results to the Lean declarations and identifies the counting argument and exact computations in the paper. The comparator checks 24 proof statements and their axioms.

theorem infinitely_many_odd_beat_balanced_parseval (M : Nat) :
    ∃ m : Nat, M ≤ 2 * m + 1 ∧ 3 ≤ m ∧
      ¬ ∃ F : Vec (2 * m + 1) → Bool,
          isBalanced (2 * m + 1) F ∧ hasNonlinearityAtLeast (2 * m + 1) F (parsevalBalNL m)

To check it yourself, install Lean 4.15.0, clone the repository and run ./verify.sh (under a minute on a laptop). GitHub Actions runs the same check on every push.

Cite

@misc{shittu2026oddparseval,
  author = {Shittu, Daniel Ayomide},
  title  = {The Balanced {P}arseval Bound and Zero-Free {W}alsh Spectra in Odd Dimensions},
  year   = {2026},
  doi    = {10.5281/zenodo.24772680},
  note   = {Preprint, version 3.1.0. Paper and Lean 4 proof}
}

For n = 7 please also cite Mykkeltveit (1980); for n = 9, the RM(1,9) covering radius papers and the exact value nlbal(9) = 240.