Skip to content

About

The Balanced Parseval Bound and Zero-Free Walsh Spectra in Odd Dimensions. Research preprint and companion Lean 4 formalization.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

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

lean Lean 4.15.0 no sorry License: MIT DOI Paper: CC BY 4.0

Project page: https://lizzolizard.github.io/general-odd-parseval/

Author: Daniel Ayomide Shittu, Rowan University (ologicstudy@gmail.com)
Current preprint: v3.1.0

Archive: All versions · v1.0.0 · v2.0.0 · v3.0.0

Formal verification: standalone Lean 4.15.0, no Mathlib, no imports in the proof file, no sorry, no native_decide, no set_option, no custom axioms.

Version 3.1.0 presents the full-spectrum and hyperplane tests through a common energy bound, adds two proof diagrams, and restores the order restriction in the printed Walsh difference lemma. The companion proof is the Lean formalization released with v3.0.0. Appendix A maps the spectral exclusions and digit criteria to their Lean declarations.

Contents

Path What it is
paper/paper.tex, paper/paper.pdf The preprint (CC BY 4.0, see paper/LICENSE).
paper/revision-notes.md Section correspondence with v3.0.0, proof dependencies, and replay instructions.
lean/GeneralOddParseval.lean The proof (3,127 lines, 24 public theorems).
lean/ChallengeDefs.lean The definitions used in the statements: Boolean vectors, Hamming distance, affine functions, balanced, nonlinearity, Walsh transform, sqrtStep, the balanced Parseval ceiling. No imports.
lean/Challenge.lean The 24 statements, each with sorry. Together with ChallengeDefs.lean this is everything a reader has to trust.
lean/Solution.lean Proofs of those 24 statements, taken from GeneralOddParseval.lean. It first shows the two files' definitions agree.
lean/config.json, lean/check_comparator.sh The comparator check: Solution must prove exactly the statements of Challenge.
lean/SHA256SUMS Checksums of the Lean files.
formalization.yaml Machine-readable summary of what is formalized (formalization.yaml format).
verify.sh Runs every check below.
lakefile.toml, lean-toolchain Lake configuration; Lean v4.15.0.
analysis/ Which odd dimensions the cascade theorems cover (computational; see below).
docs/ The project page (GitHub Pages).
.github/workflows/lean.yml GitHub Actions: validates formalization.yaml and runs ./verify.sh on every push.

What is proved

  1. Discrete Walsh difference divisibility (diffs_walshBool_dvd) and Reed–Muller minimum distance (rm_min_distance).
  2. Master Theorem I-A (unconstrained_exact_residue): unconstrained 2-adic Walsh rigidity, forcing zero-free spectra W_F(a) ≡ 2^k (mod 2^(k+1)).
  3. Master Theorem I-B (balanced_tierA_no_nl): balanced Tier-A 2-adic Reed–Muller cascade for any valuation k = v_2(B) ≥ 2.
  4. Master Theorem II (balanced_tierB_no_nl): balanced Tier-B hyperplane descent for B ≡ 4 (mod 8).
  5. Infinite family 1 (infinitely_many_odd_beat_balanced_parseval): infinitely many odd dimensions n = 2m + 1 with nl_bal(n) ≤ parsevalBalNL(m) − 2.
  6. Infinite family 2 (infinitely_many_odd_unconstrained_zero_free): infinitely many odd dimensions in which every function (balanced or not) reaching parsevalBalNL(m) has W_F(a) ≡ 4 (mod 8) everywhere.
  7. Eleven explicit corollaries: n ∈ {7, 9, 13, 17, 27, 29, 33, 35, 37, 39, 41}.
  8. Version 3, exact coverage. With b_j = sqrtStep j % 2 (the binary digits of √2): tierA_exact_criterion and tierB_exact_criterion (each cascade applies at the ceiling iff a digit condition holds), cascade_gain_at_most_two (no larger peak helps), exact_coverage (some instance applies iff b_(m+1) = 1 or (b_m, b_(m+1), b_(m+2)) = (0, 0, 1)), digit_criterion_beats_balanced_parseval, covered_dimension_zero_free and tierA_dimension_residue.

The main statement, from lean/Challenge.lean:

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)

Which odd dimensions are covered?

Version 3 answers this exactly. Writing b_j for the last bit of ⌊2^(j−2)√2⌋ (the binary digits of √2):

  • Exact criterion (proved, and in Lean as exact_coverage): the two cascade theorems exclude the balanced Parseval ceiling in dimension n = 2m + 1 ≥ 7 if and only if b_{m+1} = 1 (Tier A) or (b_m, b_{m+1}, b_{m+2}) = (0, 0, 1) (Tier B).
  • Gain at most 2 (cascade_gain_at_most_two): no larger peak ever satisfies either energy inequality.
  • Zero-free spectra (covered_dimension_zero_free): in every covered dimension, every Boolean function reaching the ceiling has no Walsh zeros; in Tier A dimensions W_F(a) ≡ 2^k (mod 2^(k+1)) everywhere (tierA_dimension_residue).
  • Counting (paper only): at least (√(4X − 19) − 3)/2 odd n ≤ X are covered.
  • Data: 6,249 of the 9,998 odd n with 7 ≤ n ≤ 20,001 are covered (62.5%). Up to 41 the covered n are exactly the eleven listed above; 11, 15, 19, 21, 23, 25 and 31 are not.
  • Density: if the two relevant blocks in the binary expansion of √2 have their expected frequencies, the share tends to 1/2 + 1/8 = 5/8. Base-2 normality of √2 would suffice.

The exact checks are in analysis/v3_checks.py.

Relation to earlier results

Two of the eleven explicit cases are already known, and the Lean proofs reprove them:

  • n = 7: nl ≤ 56 holds for every 7-variable function, since the covering radius of RM(1,7) is 56 (Mykkeltveit, IEEE Trans. Inf. Theory 26 (1980) 359–362).
  • n = 9: the bound nl_bal(9) ≤ 242 follows from the covering radius of RM(1,9) being 242 (arXiv:2610.17871, arXiv:2611.00890), and is superseded by the author's exact result nl_bal(9) = 240 (https://doi.org/10.5281/zenodo.24447815).

The new contributions are the two infinite-family theorems, the general cascade theorems, and the explicit cases n = 13, 17, 27, 29, 33, 35, 37, 39 and 41.

Checking the proof

You need Lean 4.15.0 (for example elan toolchain install leanprover/lean4:v4.15.0) and python3. Then run

./verify.sh

It stops at the first failure. It:

  1. checks that lean --version is 4.15.0;
  2. checks the SHA-256 sums of the Lean files;
  3. checks that none of sorry, admit, axiom, native_decide, unsafe, implemented_by, extern, set_option or opaque appears outside comments in the definition and proof files;
  4. compiles the four Lean files;
  5. runs the comparator check: for each of the 24 theorems, the statement in Solution must be identical to the one in Challenge, every definition it uses must be identical, and the proof may use only Lean's standard axioms propext, Classical.choice and Quot.sound;
  6. prints the axioms of the 24 theorems in the proof file and checks they are within those three.

With Lake you can also run lake build and then lean/check_comparator.sh.

Acknowledgements

Huge thanks to Gemini Neon (Google), which helped enormously with the formalization and contributed ideas, while I did the reasoning. Claude Opus 5.5 (Anthropic) created ChallengeDefs.lean, Challenge.lean and Solution.lean, together with the comparator and verification scripts. OpenAI Codex assisted with the exposition and checking of the revised manuscript.

License

Paper (paper/): CC BY 4.0, see paper/LICENSE. Code (Lean files and scripts): MIT, see LICENSE.

Citation

@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}
}

About

The Balanced Parseval Bound and Zero-Free Walsh Spectra in Odd Dimensions. Research preprint and companion Lean 4 formalization.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages