Sharp Non-Asymptotic Razborov–Smolensky Polynomial Approximation, $\mathrm{AC}^0[p]$ Lower Bounds, Exact Karchmer–Wigderson Equivalences & Hansel–Kraft Monotone Formula Complexity
A unified sharp non-asymptotic Lean 4 formalization across four pillars of Circuit & Formula Complexity: (1) Universal Odd/Even-Strength Gram–Smolensky Bound $|E(P,\chi_\omega)|\ge\mathrm{Rao}(n,n-d-1)$ over every field (including $\mathrm{char}=2$, improving on Smolensky by $\binom{n-1}{(n+d)/2}$), exact signed-cubature duality, Hadamard obstruction $|E|\ge n+2$ improving on Rao at $d=n-3$ ($n\not\equiv 3\pmod 4$), & explicit $\mathbb{F}_4$ linear lift for $\mathrm{MOD}_3$ over $\mathbb{F}_2$; (2) Field-Universal Two-Term Threshold/Majority Bound $B(n,m,d)$ (exact at $d=1,m$ with $\mathrm{MAJ}_5/\mathbb{F}_2$ attaining $|E|=2$) + end-to-end DAG $\mathrm{AC}^0[p]$ lower bounds for $\mathrm{PARITY}_n$, $\mathrm{MOD}_3$, & $\mathrm{THR}_k^n$; (3) Exact Simultaneous $(L,d)$ Karchmer–Wigderson Equivalences & Duality for monotone and De Morgan formulas; and (4) Per-Variable Bilinear Spectral Adversary, Multiplicative Distance-1 Witness Composition ($L^+(\mathrm{MAJ}_3^{\circ t})\ge 4^t, D^+\ge 2t$), Exact Hansel–Kraft Formula Size $L^+(\mathrm{THR}_2^n)=n(\lfloor\log_2 n\rfloor+2)-2^{\lfloor\log_2 n\rfloor+1}$, & Restriction–Duality–Kraft $\Omega(n\log n)$ improving on Khrapchenko for all $k\ge 3$ (143 verified theorems/lemmas, 6,768 lines, 26/26 clean axioms).
Contribution status
Claim-by-claim literature review not yet recorded. Lean verification, where shown, applies to the exact formal statements. External publication status is not recorded.
How results are classifiedUnified sharp non-asymptotic Lean 4 formalization of Razborov–Smolensky, $\mathrm{AC}^0[p]$, Karchmer–Wigderson & Hansel–Kraft Formula Complexity (143 verified theorems/lemmas, 6,768 lines, 26/26 clean axioms): proves the field-universal odd/even-strength Gram–Smolensky bound $|E(P,\chi_\omega)|\ge\mathrm{Rao}(n,n-d-1)$ (improving on Smolensky by $\binom{n-1}{(n+d)/2}$), exact signed-cubature duality, Hadamard obstruction $|E|\ge n+2$ at $d=n-3$ ($n\not\equiv 3\pmod 4$), & $\mathbb{F}_4$ linear lift for $\mathrm{MOD}_3/\mathbb{F}_2$; field-universal two-term threshold bound $B(n,m,d)$ + end-to-end DAG $\mathrm{AC}^0[p]$ lower bounds; exact simultaneous $(L,d)$ monotone & general De Morgan KW equivalences; and bilinear spectral adversary, multiplicative witness composition ($L^+(\mathrm{MAJ}_3^{\circ t})\ge 4^t, D^+\ge 2t$), exact Hansel–Kraft size $L^+(\mathrm{THR}_2^n)=n(\lfloor\log_2 n\rfloor+2)-2^{\lfloor\log_2 n\rfloor+1}$, & Restriction–Duality–Kraft $\Omega(n\log n)$ improving on Khrapchenko for all $k\ge 3$.
- A. A. Razborov (1987); R. Smolensky (1987, 1993); C. R. Rao (1947): Polynomial method and $\mathrm{AC}^0[p]$ lower bounds — sharpened non-asymptotically here over every field (including $\mathrm{char}=2$) with odd-strength Rao gain, exact signed-cubature iff, $d=n-3$ Hadamard obstruction, two-term threshold bound, and full DAG $\mathrm{AC}^0[p]$ formalization.
- M. Karchmer & A. Wigderson (1990); V. M. Khrapchenko (1971); G. Hansel (1964); G. Katona & E. Szemerédi (1967): KW communication games and monotone formula lower bounds — formalized here with exact simultaneous $(L,d)$ equivalences, sqrt-free bilinear spectral adversary, exact multiplicative witness composition, exact $L^+(\mathrm{THR}_2^n)$, and $\Omega(n\log n)$ Restriction–Duality–Kraft for all $k\ge 3$.
MonotoneKWAndSmolenskyBounds.lean, 143 verified theorems/lemmas: 26 headline + 7 structural + 110 lemmas, 6,768 lines, 26/26 clean axioms) plus Python verifier (verify_kw_smolensky.py) proving universal_gram_smolensky_bound, parity_approx_iff_signed_design, parity_deg_n_sub_3_hadamard_obstruction, mod3_over_F2_sharp_error_bound, sharp_threshold_polynomial_error_bound, ac0p_parity_lower_bound, ac02_mod3_lower_bound, ac0p_threshold_lower_bound, monotone_kw_exact_equivalence, general_kw_exact_equivalence, mkw_bilinear_adversary_bound, iterMaj3_monotone_formula_lb, thr2_exact_monotone_formula_size, and thr_k_restriction_duality_kraft_bound.⊢ Mathematical Constructions & Proof Explorer
Select any definition, structure, or theorem on the left to inspect its formal statement, proof dependencies, and isolated Lean 4 code.
Mathematical Overview & Verification Notes
TL;DR: We prove and formalize in Lean 4 (6,768 lines, 143 proved theorems/lemmas including 26 headline theorems, 0 warnings, 0 sorry, 15.7s compile) a unified sharp non-asymptotic theory spanning four pillars: (1) a universal odd/even-strength Gram–Smolensky bound $|E(P,\chi_\omega)| \ge \mathrm{Rao}(n, n-d-1)$ over every field (including $\operatorname{char}=2$) with exact cubature duality, a Hadamard-obstruction sharpening $|E| \ge n+2$ at $d = n-3$ when $n \not\equiv 3 \pmod 4$, and a linear $\mathbb{F}_4$ lift for $\mathrm{MOD}_3$ over $\mathbb{F}_2$; (2) a field-universal two-term threshold/majority approximation bound $|E(P,\mathrm{THR}_k^n)| \ge \sum_{j=0}^{m-d}\binom{n}{j} + \sum_{j=(m-2d+1)_+}^{m-d}\binom{n-d}{j}$ (exact at $d=1$ and $d=m$) paired with end-to-end DAG $\mathrm{AC}^0[p]$ circuit lower bounds for $\mathrm{PARITY}_n$, $\mathrm{MOD}_3$, and $\mathrm{THR}_k^n$; (3) exact simultaneous leaf-size and depth Karchmer–Wigderson equivalences for both monotone and De Morgan formulas; and (4) per-variable bilinear spectral adversary composition, exact multiplicative witness composition yielding $L^+(\mathrm{MAJ}_3^{\circ t}) \ge 4^t$ and $D^+(\mathrm{MAJ}_3^{\circ t}) \ge 2t$, the exact Hansel–Kraft monotone formula size $L^+(\mathrm{THR}_2^n) = n(\lfloor \log_2 n\rfloor + 2) - 2^{\lfloor \log_2 n\rfloor + 1}$ for all $n \ge 2$, and a restriction–duality–Kraft bound beating Khrapchenko ($\Omega(n\log n)$ vs. $O(n)$) for every fixed $k \ge 3$.
Artifacts
- Lean 4 formalization: MonotoneKWAndSmolenskyBounds.lean (6,768 lines; 33
theorems [26 headline + 7 structural], 110lemmas, 101def/abbrev/structure/inductive/instances = 244 declarations) - Python computational verifier: verify_kw_smolensky.py (exit 0 with zero warnings under
python3 -W error) - Documentation & inventory: README.md
Mathematical Overview (4 Pillars)
Pillar 1 — Universal Odd/Even-Strength Gram–Smolensky, Cubature Duality, Hadamard Obstruction, and $\mathbb{F}_4$ $\mathrm{MOD}_3$ Lift
Let $\mathrm{Rao}(n, r) := \sum_{j=0}^{\lfloor r/2 \rfloor} \binom{n}{j}$ if $r$ is even and $2 \sum_{j=0}^{(r-1)/2} \binom{n-1}{j}$ if $r$ is odd (raoBound, L96). For any field $K$ (including $\operatorname{char}(K) = 2$), any $\omega \in K \setminus \{0, 1\}$, and any multilinear polynomial $P \in K[x_1,\dots,x_n]$ of degree $\le d < n$, define the multiplicative character $\chi_\omega(y) = \omega^{|y|}$ and error set $E = \{y \in \{0,1\}^n : P(y) \ne \chi_\omega(y)\}$.
- Universal Gram–Smolensky Bound (
universal_gram_smolensky_bound, L1023):$$|E| \ge \mathrm{Rao}(n, n - d - 1).$$
The proof constructs a Gram matrix using inverted monomials $\prod_{j \in J} ((1-\omega)^{-1}(1 - (1-\omega)x_j))$ (invMonomial, L666) against the top-degree Möbius functional (topCoeffFunctional, L624) over the Rao family (raoFamily, L942). Whenever $n + d$ is even (so $r = n - d - 1$ is odd), this strictly beats the classical Smolensky bound $\sum_{j=0}^{\lfloor (n-d-1)/2 \rfloor} \binom{n}{j}$ by exactly $\binom{n-1}{(n+d)/2}$! - Exactness at $d = 0$ and $d = n - 2$:
- Exact Signed-Cubature Duality (
parity_approx_iff_signed_design, L1254):
When $\operatorname{char}(K) \ne 2$, there exists a degree-$\le d$ polynomial agreeing with $\mathrm{PARITY}_n$ outside $E \subseteq \{0,1\}^n$ if and only if $E$ supports a nonzero $K$-valued signed $(n - d - 1)$-wise independent measure $\mu : E \to K$ whose total mass equals the discrepancy. - Hadamard Obstruction Beating Rao at $d = n - 3$ (
parity_deg_n_sub_3_hadamard_obstruction, L1585):
When $n \ge 3$, $n \not\equiv 3 \pmod 4$, and $\operatorname{char}(K) = 0$ or $\operatorname{char}(K) = p \ge n$ (odd prime), every degree-$\le (n-3)$ approximation of $\mathrm{PARITY}_n$ satisfies$$|E| \ge n + 2 > n + 1 = \mathrm{Rao}(n, 2),$$
proved via exact square-matrix Gram inversion $V V^T = \operatorname{diag}(h^{-1})$ over $K$ combined with the Hamming-distance triangle parity identity (hammingDist_triangle_even, L1566). - Exact $\mathbb{F}_4$ Linear Lift for $\mathrm{MOD}_3$ over $\mathbb{F}_2$ (
mod3_over_F2_sharp_error_bound, L2009):
Constructing an explicit 4-element fieldF4(L1797) with $\omega^3 = 1$, $\omega \ne 0, 1$, the degree-$(d+1)$ linear lift $P(y) = (\omega^2 + y_0) Q(y) + Q(y \oplus e_0)$ converts any degree-$\le d$ $\mathbb{F}_2$-polynomial $Q$ approximating $\mathrm{MOD}_3(y) = \mathbf{1}[3 \nmid |y|]$ into an $\mathbb{F}_4$-approximation of $\omega^{|y|}$ with at most $2|E(Q,\mathrm{MOD}_3)|$ errors, yielding$$\mathrm{Rao}(n, n - d - 2) \le 2\,|E(Q, \mathrm{MOD}_3)| \qquad (\forall\, n \ge 1,\; d + 1 < n).$$
Pillar 2 — Field-Universal Two-Term Threshold/Majority Bound & End-to-End DAG $\mathrm{AC}^0[p]$ Lower Bounds
Let $m = \min(k - 1, n - k)$ and define the two-term bound (sharpThrBound, L2116):
- Field-Universal Two-Term Threshold Error Bound (
sharp_threshold_polynomial_error_bound, L2666):
Over every field $K$ (any characteristic), for $1 \le k \le n$ and $0 \le d \le m = \min(k-1, n-k)$, every degree-$\le d$ polynomial $P$ satisfies$$|E(P, \mathrm{THR}_k^n)| \ge B(n, m, d).$$
The proof introduces a maximal-monomial degree-separation theorem (mul01_has_high_monomial, L2233) establishing linear independence of two disjoint-support layers (exact-degree casesharp_threshold_exact_deg, L2352), combined with Vandermonde monotonicity in $d$ (sharpThrBound_antitone, L2648). - Exactness at $d = 1$ and $d = m$ for Majority:
majority_deg1_exact(L2792): For every $m \ge 1$ and every field $K$, $\min_{\deg P \le 1} |E(P, \mathrm{MAJ}_{2m+1})| = 2 \sum_{j=0}^{m-1} \binom{2m}{j}$, attained by the dictator $x_0$.majority_deg_half_sharp(L2938): At $d = m$, $|E(P, \mathrm{MAJ}_{2m+1})| \ge 2$ over every field $K$ (doubling the classical $\binom{n}{0} = 1$ bound).majority5_deg2_F2_attains_two(L2953): On $\mathrm{MAJ}_5 / \mathbb{F}_2$ at $d = 2$, $P(x) = e_2(x) + e_1(x) + 1$ attains $|E| = 2$ identically!
- End-to-End DAG $\mathrm{AC}^0[p]$ Circuit Approximation & Lower Bounds:
Modeling arbitrary topologically-ordered DAG circuits with unbounded fan-in $\mathrm{OR}$, $\mathrm{AND}$, $\mathrm{MOD}_p$, and $\mathrm{NOT}$ gates (AC0pCircuit, L3033):ac0p_probabilistic_polynomial_approx(L3424): Pure finite-sum Razborov–Smolensky randomized-polynomial approximation producing a deterministic $P \in \mathbb{F}_p[x_1,\dots,x_n]$ with $\deg P \le \mathrm{polyDeg}(C, k)$ and $p^k \cdot |E(P, C)| \le \mathrm{orAndCount}(C) \cdot 2^n$.ac0p_parity_lower_bound(L3910): For any odd prime $p$, $p^k \cdot \mathrm{Rao}(n, n - \mathrm{polyDeg}(C, k) - 1) \le \mathrm{orAndCount}(C) \cdot 2^n$.ac02_mod3_lower_bound(L3962): For $p = 2$, $2^k \cdot \mathrm{Rao}(n, n - \mathrm{polyDeg}(C, k) - 2) \le 2 \cdot \mathrm{orAndCount}(C) \cdot 2^n$.ac0p_threshold_lower_bound(L3985): For every prime $p$ (including $p = 2$) and threshold $t$, $p^k \cdot B(n, \min(t-1, n-t), \mathrm{polyDeg}(C, k)) \le \mathrm{orAndCount}(C) \cdot 2^n$.
Pillar 3 — Exact Simultaneous Size & Depth Karchmer–Wigderson Equivalences & Duality
- Exact Monotone KW Equivalence (
monotone_kw_exact_equivalence, L4430):
For every non-constant Boolean function $f$ and every $(L, d) \in \mathbb{N}^2$:$$(\exists F : \mathrm{MonotoneFormula}\;n,\; F = f \land \mathrm{leafSize}(F) \le L \land \mathrm{depth}(F) \le d) \iff (\exists P : \mathrm{MKWProtocol}\;n,\; P\text{ solves }(f^{-1}(1), f^{-1}(0)) \land \mathrm{leafSize}(P) \le L \land \mathrm{depth}(P) \le d),$$
proved using empty-branch-pruned protocol extraction (exists_formula_of_mkw, L4303) preserving leaf-size, depth, and per-variable leaf counts simultaneously. - Exact Monotone De Morgan Duality (
monotone_duality_exact, L4452):
$f$ and $f^\dagger(x) = \neg f(\neg x)$ have identical simultaneous $(L, d)$ monotone formula realizability (and per-variable leaf counts). - Exact General De Morgan KW Equivalence (
general_kw_exact_equivalence, L4703):
Simultaneous $(L, d)$ iff betweenDeMorganFormula nandKWProtocol n.
Pillar 4 — Bilinear Spectral Adversary Composition, Multiplicative Witness Composition, and Exact Hansel–Kraft Bounds
- Per-Variable Weighted Bilinear Spectral Adversary Bounds (
mkw_bilinear_adversary_bound, L4754;kw_bilinear_adversary_bound, L4885):
Using a sqrt-free, division-free 2-term Cauchy–Schwarz lemma (sq_add_le_mul_add, L4735), any protocol $P$ solving $(A, B)$ satisfies$$\Big(\sum_{x \in A}\sum_{y \in B} u_x M_{x,y} v_y\Big)^2 \le \Big(\sum_{i=1}^n \mathrm{leafCount}_P(i)\cdot C_i\Big)\Big(\sum_{x \in A} u_x^2\Big)\Big(\sum_{y \in B} v_y^2\Big),$$
whenever each coordinate-masked matrix $M_i$ has squared operator norm $\le C_i$.
Immediate corollaries: - Exact Multiplicative Witness Composition & Iterated Majority (
monotoneDist1Witness_compose_mult, L5463;iterMaj3_monotone_formula_lb, L5791):
Composing any uniform-weight outer monotone distance-1 witness $W_f$ with any inner witness $W_g$ yields an explicit witness $W_{f \circ g}$ whose Khrapchenko ratio multiplies identically:$$|E_{f\circ g}|^2 \cdot |A_f||B_f||A_g||B_g| = |E_f|^2 |E_g|^2 \cdot |A_{f\circ g}||B_{f\circ g}|.$$
Iterating on $\mathrm{MAJ}_3$ gives for every $t \in \mathbb{N}$:$$L^+(\mathrm{MAJ}_3^{\circ t}) \ge 4^t \qquad\text{and}\qquad D^+(\mathrm{MAJ}_3^{\circ t}) \ge 2t.$$ - Exact Hansel–Kraft Monotone Formula Theory (
monotone_graph_kraft_inequality, L6139;thr2_exact_monotone_formula_size, L6433):
Extracting a disjoint-side bipartite cover (monotone_bipartite_cover_extract, L5928) and proving the Katona–Szemerédi coin-flip Kraft inequality via pure finite sums (bipartite_cover_kraft_ineq, L6036) yields $\sum_{i \in C} 2^{-\mathrm{varCount}_F(i)} \le 1$ on every covered clique $C$. Pairing a zero-calculus tangent-line minimization (kraft_sum_tangent_lb, L6192) with an explicit balanced-bisection construction (thr2Formula, L6252) proves the exact monotone formula size for all $n \ge 2$:$$L^+(\mathrm{THR}_2^n) = n(\lfloor \log_2 n\rfloor + 2) - 2^{\lfloor \log_2 n\rfloor + 1}.$$ - Restriction–Duality–Kraft Bound for General $\mathrm{THR}_k^n$ (
thr_k_restriction_duality_kraft_bound, L6529):
Averaging monotonetrue-restrictions (restrictTrue, L6471) over all $\binom{n}{n-k+2}$ subsets of size $n-k+2$ on both $F$ and $F^\dagger$ yields, with $M := \max(n - k + 2, k + 1)$ and $k_0 := \lfloor \log_2 M\rfloor$:$$M \sum_{i=1}^n 2^{-\mathrm{varCount}_F(i)} \le n \qquad\text{and}\qquad n\big(M(k_0 + 2) - 2^{k_0+1}\big) \le M \cdot L^+(F).$$
At $k = 2$ ($M = n$) this recovers the exact Hansel–Kraft minimum; for every fixed $k \ge 3$ it gives $\Omega(n \log n)$ explicitly, strictly beating Khrapchenko's linear $k(n - k + 1)$ bound (e.g. for $k=3$: at $n=20$ gives $102 > 54$, at $n=100$ gives $749 > 294$).
Prior-Art Comparison Through November 2026
| Topic | Prior Art (through Nov 2026) | What This Work Proves & Formalizes |
|---|---|---|
| Low-degree parity / $\chi_\omega$ approximation | Razborov (1987), Smolensky (1987, 1993): $\|E\| \ge \sum_{j=0}^{\lfloor (n-d-1)/2\rfloor}\binom{n}{j}$ over $\operatorname{char} \ne 2$; Rao (1947) orthogonal-array bound; Kopparty–Srinivasan (2012) asymptotic $\mathrm{AC}^0[p]$ correlation. | Universal odd/even-strength Gram–Smolensky (universal_gram_smolensky_bound) for every field (including $\operatorname{char}=2$) and $\omega \ne 0, 1$, beating Smolensky by $\binom{n-1}{(n+d)/2}$ for every even $n+d$; exact signed-cubature iff (parity_approx_iff_signed_design); Hadamard obstruction $|E| \ge n+2$ beating Rao's $n+1$ at $d=n-3, n\not\equiv 3\pmod 4$ (parity_deg_n_sub_3_hadamard_obstruction); exact $\mathbb{F}_4$ linear lift for $\mathrm{MOD}_3$ over $\mathbb{F}_2$ (mod3_over_F2_sharp_error_bound). |
| Threshold / Majority low-degree approximation & $\mathrm{AC}^0[p]$ | Razborov (1987) & Smolensky (1987) single-term $\sum_{j=0}^{m-d}\binom{n}{j}$ bound (or asymptotic $1/2 - O(d/\sqrt{n})$); Filmus–Meir–Tal / Rossman degree-vs-threshold bounds. | Field-universal two-term threshold bound (sharp_threshold_polynomial_error_bound) adding $\sum_{j=(m-2d+1)_+}^{m-d}\binom{n-d}{j}$ over all fields; exact at $d=1$ (majority_deg1_exact) and $d=m$ (majority_deg_half_sharp, majority5_deg2_F2_attains_two, doubling Smolensky's $1$ to $2$); full DAG $\mathrm{AC}^0[p]$ finite-sum probabilistic polynomial approximation (ac0p_probabilistic_polynomial_approx) and non-asymptotic circuit bounds (ac0p_parity_lower_bound, ac02_mod3_lower_bound, ac0p_threshold_lower_bound). |
| Karchmer–Wigderson games & formula complexity | Karchmer–Wigderson (1990) monotone & general KW games; Raz–McKenzie (1999), Garg–Göös–Kamath–Sokolov (2018), de Rezende–Nordström–Risse–Sokolov, Cavalar–Kumar–Rossman (2020), Cavalar–Göös–Riazanov–Sofronova–Sokolov (arXiv:2507.16105, STOC 2026), arXiv:2501.09545 (CCC 2025), arXiv:2410.10189, arXiv:2610.34474 (mostly asymptotic lifting / monotone circuit depth). | Exact simultaneous $(L, d)$ KW equivalences with empty-branch pruning preserving per-variable leaf counts (monotone_kw_exact_equivalence, general_kw_exact_equivalence, monotone_duality_exact); zero prior Lean 4 / Mathlib formalization of KW games, Khrapchenko, or Hansel–Kraft. |
| Adversary composition & Hansel–Kraft monotone formula bounds | Khrapchenko (1971), Koutsoupias (1993), Laplante–Lee–Szegedy (2006) spectral adversary; Hansel (1964) & Katona–Szemerédi (1967) bipartite-cover bound for $\mathrm{THR}_2^n$; Razborov (1985), Alon–Boppana (1987) monotone clique circuits. | Sqrt-free per-variable bilinear spectral adversary (mkw_bilinear_adversary_bound, kw_bilinear_adversary_bound); exact multiplicative distance-1 witness composition (monotoneDist1Witness_compose_mult) giving $L^+(\mathrm{MAJ}_3^{\circ t}) \ge 4^t, D^+ \ge 2t$; exact $L^+(\mathrm{THR}_2^n) = n(\lfloor\log_2 n\rfloor+2)-2^{\lfloor\log_2 n\rfloor+1}$ with constructive optimal formula (thr2_exact_monotone_formula_size); exact non-asymptotic Restriction–Duality–Kraft bound for all $2 \le k \le n-1$ (thr_k_restriction_duality_kraft_bound). |
Novelty Receipt & Zero-Overlap Verification
- Novelty Receipt (verified through Nov 2026):
- Mathematical advances: (a) Field-universal odd/even-strength Gram–Smolensky bound over arbitrary fields (including $\operatorname{char}=2$) with exact signed-cubature duality and the explicit $d = n-3$ Hadamard obstruction beating Rao's bound over $\operatorname{char} 0$ and large odd primes; (b) field-universal two-term threshold/majority approximation bound via maximal-monomial degree-separation (
mul01_has_high_monomial) + Vandermonde monotonicity, exact at $d=1$ and $d=m$; (c) exact multiplicative distance-1 Khrapchenko witness composition for uniform-weight outer witnesses; (d) symmetrized Restriction–Duality–Kraft integer lower bound for $\mathrm{THR}_k^n$ interpolating exact $k=2$ optimality and $\Omega(n\log n)$ bounds for all fixed $k \ge 3$. - Formalization novelty: First Lean 4 formalization of the Razborov–Smolensky polynomial method (including full DAG $\mathrm{AC}^0[p]$ circuits and $\mathbb{F}_4$ $\mathrm{MOD}_3$ lifting), exact simultaneous size/depth monotone & general Karchmer–Wigderson game equivalences, bilinear spectral adversary bounds, and exact Hansel–Kraft monotone formula size bounds.
- Mathematical advances: (a) Field-universal odd/even-strength Gram–Smolensky bound over arbitrary fields (including $\operatorname{char}=2$) with exact signed-cubature duality and the explicit $d = n-3$ Hadamard obstruction beating Rao's bound over $\operatorname{char} 0$ and large odd primes; (b) field-universal two-term threshold/majority approximation bound via maximal-monomial degree-separation (
- Strict Zero Overlap:
- Zero overlap with
open-sunflower-spread-bounds(no standalone sunflower or spread lemma). - Zero overlap with
open-communication-complexity-frontiers(no protocol-tree balancing or direct-sum communication bounds). - Zero overlap with
open-query-logrank-separations(no Log-Rank monochromatic rectangle or query-complexity separations).
- Zero overlap with
Python Computational Verification (verify_kw_smolensky.py)
Running python3 -W error verify_kw_smolensky.py exits with code 0 and 0 warnings, independently checking:
- Pillar 1: Exhaustive $\mathbb{F}_3, \mathbb{F}_5$ low-degree parity error searches, exactness at $d \in \{0, n-2, n-1\}$, Hadamard obstruction at $d = n-3$ ($n \not\equiv 3 \pmod 4$), and exact $\mathbb{F}_4$ linear lift $P(y) = (\omega^2 + y_0)\mathrm{MOD}_3(y) + \mathrm{MOD}_3(y \oplus e_0) = \omega^{|y|}$ for $n = 1,\dots,6$.
- Pillar 2: Sharp two-term threshold/majority bound monotonicity for $n \le 30$, exactness at $d=1$ and $d=m$, exhaustive checks over $\mathbb{F}_2, \mathbb{F}_3$ (including $\mathrm{MAJ}_5 / \mathbb{F}_2$ witness $e_2 + e_1 + 1$ attaining $|E| = 2$), and exact Razborov–Smolensky OR-gate linear-form kernel counts $p^{m-1}$ for $p \in \{2, 3, 5\}$.
- Pillars 3 & 4: Exact Hansel–Kraft closed form $L^+(\mathrm{THR}_2^n) = n(\lfloor \log_2 n\rfloor + 2) - 2^{\lfloor \log_2 n\rfloor + 1}$ for $n = 2,\dots,199$, constructive
thr2Formulatruth-table verification on all $2^n$ inputs for $n = 2,\dots,8$, Restriction–Duality–Kraft strictly beating Khrapchenko on $\mathrm{THR}_3^n$ ($n \in \{11, 20, 50, 100\}$), and bilinear spectral adversary / Khrapchenko composition identities.
Reproduction Commands
# 1. Verify Lean 4 formalization (15.7s wall time, 0 errors, 0 warnings, 26/26 clean #print axioms)
cd /Users/arthurcolle/math_rip/new-results/collatz-coalescence && \
lake env lean /Users/arthurcolle/math_rip/new-results/open-monotone-circuit-kw-games/MonotoneKWAndSmolenskyBounds.lean
# 2. Run Python verification under strict warnings-as-errors
python3 -W error /Users/arthurcolle/math_rip/new-results/open-monotone-circuit-kw-games/verify_kw_smolensky.py
Complete Line-Numbered Inventory (MonotoneKWAndSmolenskyBounds.lean, 244 Declarations)
Section 0 — Combinatorial Binomial Sums & Multilinear Polynomial Algebra
| Line | Kind | Name |
|---|---|---|
| 69 | def | binomSum |
| 73 | lemma | card_filter_card_le |
| 96 | def | raoBound |
| 101 | lemma | binomSum_self |
| 105 | lemma | binomSum_add_compl |
| 146 | lemma | raoBound_pred |
| 190 | abbrev | MultiPoly |
| 193 | def | HasDegLe |
| 197 | def | polySpaceDegLe |
| 204 | lemma | finrank_polySpaceDegLe |
| 234 | def | evalOn |
| 239 | def | eval01 |
| 243 | def | evalPM |
| 247 | def | evalOmega |
| 252 | def | boolSupp |
| 256 | def | hammingWeight |
| 260 | lemma | prod_boolBit |
| 277 | lemma | eval01_eq_sum_powerset |
| 288 | lemma | sum_powerset_neg_one_pow |
| 318 | def | indicatorBool |
| 321 | lemma | boolSupp_indicatorBool |
| 327 | def | mobiusCoeff |
| 331 | lemma | eval01_mobiusCoeff |
| 388 | lemma | mobiusCoeff_eval01 |
| 442 | lemma | eq_zero_of_eval01_eq_zero |
| 450 | def | mul01 |
| 453 | lemma | eval01_mul01 |
| 495 | lemma | hasDegLe_mul01 |
| 513 | lemma | hasDegLe_add |
| 517 | lemma | hasDegLe_sub |
| 521 | lemma | hasDegLe_smul |
| 525 | lemma | hasDegLe_mono |
| 530 | def | constPoly |
| 533 | lemma | eval01_constPoly |
| 542 | lemma | hasDegLe_constPoly |
| 550 | def | varPoly |
| 553 | lemma | eval01_varPoly |
| 577 | lemma | hasDegLe_varPoly |
| 587 | lemma | eval01_add |
| 591 | lemma | eval01_sub |
| 595 | lemma | eval01_smul |
| 600 | def | pow01 |
| 604 | lemma | eval01_pow01 |
| 610 | lemma | hasDegLe_pow01 |
Section 1 (Pillar 1) — Universal Gram–Smolensky, Cubature Duality, Hadamard Obstruction, $\mathbb{F}_4$ $\mathrm{MOD}_3$
| Line | Kind | Name |
|---|---|---|
| 624 | def | topCoeffFunctional |
| 628 | lemma | topCoeffFunctional_eval01 |
| 649 | lemma | topCoeffFunctional_eq_zero_of_hasDegLe |
| 656 | def | prodChar |
| 660 | lemma | prodChar_eq_prod |
| 666 | def | invMonomial |
| 671 | lemma | exists_poly_invMonomial |
| 695 | lemma | topCoeffFunctional_prodChar_mul_invMonomial |
| 770 | lemma | invMonomial_mul_expand |
| 835 | theorem | gram_rank_lower_bound |
| 942 | def | raoFamily |
| 951 | lemma | card_raoFamily |
| 995 | lemma | raoFamily_union_card_le |
| 1023 | theorem | universal_gram_smolensky_bound (Headline #1) |
| 1076 | theorem | gram_smolensky_deg0_exact (Headline #2) |
| 1087 | theorem | gram_smolensky_deg_n_sub_2_sharp (Headline #3) |
| 1254 | theorem | parity_approx_iff_signed_design (Headline #4) |
| 1561 | def | hammingDist |
| 1566 | lemma | hammingDist_triangle_even |
| 1585 | theorem | parity_deg_n_sub_3_hadamard_obstruction (Headline #5) |
| 1797 | structure | F4 |
| 1804 | def | F4.zero |
| 1805 | def | F4.one |
| 1806 | def | F4.omega |
| 1807 | def | F4.omega2 |
| 1809 | def | F4.add |
| 1810 | def | F4.mul |
| 1811 | def | F4.inv |
| 1817 | instance | Zero F4 |
| 1818 | instance | One F4 |
| 1819 | instance | Add F4 |
| 1820 | instance | Neg F4 |
| 1821 | instance | Sub F4 |
| 1822 | instance | Mul F4 |
| 1823 | instance | Inv F4 |
| 1825 | lemma | F4.eq_cases |
| 1829 | instance | Fintype F4 |
| 1834 | instance | Field F4 |
| 1881 | def | F4.ofZMod2 |
| 1883 | lemma | F4.ofZMod2_zero |
| 1884 | lemma | F4.ofZMod2_one |
| 1885 | lemma | F4.ofZMod2_add |
| 1887 | lemma | F4.ofZMod2_mul |
| 1890 | lemma | F4.omega_ne_zero |
| 1891 | lemma | F4.omega_ne_one |
| 1892 | lemma | F4.omega_cube |
| 1894 | lemma | F4.omega_pow_mod3 |
| 1904 | def | mod3Bool |
| 1908 | def | liftPolyF4 |
| 1911 | lemma | eval01_liftPolyF4 |
| 1919 | lemma | hasDegLe_liftPolyF4 |
| 1924 | def | flipVarPoly |
| 1927 | lemma | hasDegLe_flipVarPoly |
| 1938 | lemma | eval01_flipVarPoly |
| 2009 | theorem | mod3_over_F2_sharp_error_bound (Headline #6) |
Section 2 (Pillar 2) — Sharp Two-Term Threshold/Majority Bound & DAG $\mathrm{AC}^0[p]$ Lower Bounds
| Line | Kind | Name |
|---|---|---|
| 2107 | def | thrFun |
| 2111 | def | majFun |
| 2116 | def | sharpThrBound |
| 2121 | def | compPoly |
| 2124 | lemma | hasDegLe_compPoly |
| 2135 | lemma | eval01_compPoly |
| 2184 | lemma | eq_zero_of_eval01_eq_zero_on_low_weight |
| 2210 | lemma | eq_zero_of_eval01_eq_zero_on_high_weight |
| 2233 | lemma | mul01_has_high_monomial |
| 2299 | lemma | card_disjoint_high_layer |
| 2322 | lemma | mul01_add_right |
| 2331 | lemma | mul01_smul_right |
| 2340 | lemma | mul01_one_sub |
| 2352 | theorem | sharp_threshold_exact_deg |
| 2551 | lemma | sharpThrBound_antitone_step |
| 2648 | lemma | sharpThrBound_antitone |
| 2666 | theorem | sharp_threshold_polynomial_error_bound (Headline #7) |
| 2792 | theorem | majority_deg1_exact (Headline #8) |
| 2938 | theorem | majority_deg_half_sharp (Headline #9) |
| 2953 | theorem | majority5_deg2_F2_attains_two (Headline #10) |
| 3016 | inductive | AC0pGateKind |
| 3025 | structure | AC0pGate |
| 3033 | structure | AC0pCircuit |
| 3039 | def | AC0pCircuit.orAndCount |
| 3044 | lemma | mul01_comm |
| 3048 | lemma | mul01_assoc |
| 3052 | instance | instStdCommMul01 |
| 3055 | instance | instStdAssocMul01 |
| 3059 | def | AC0pCircuit.evalWire |
| 3079 | def | AC0pCircuit.evalBool |
| 3082 | def | AC0pCircuit.evalZMod |
| 3086 | def | AC0pCircuit.wireDeg |
| 3107 | def | AC0pCircuit.polyDeg |
| 3112 | abbrev | RSSeed |
| 3115 | def | AC0pCircuit.wirePoly |
| 3150 | lemma | AC0pCircuit.evalWire_gate |
| 3188 | lemma | AC0pCircuit.wirePoly_gate |
| 3238 | lemma | eval01_fold_mul01 |
| 3246 | lemma | hasDegLe_fold_mul01 |
| 3256 | lemma | eval01_sum |
| 3265 | lemma | hasDegLe_sum |
| 3273 | lemma | AC0pCircuit.hasDegLe_wirePoly |
| 3332 | lemma | card_linear_form_zero_eq |
| 3387 | lemma | card_k_linear_forms_zero_eq |
| 3424 | theorem | ac0p_probabilistic_polynomial_approx (Headline #11) |
| 3910 | theorem | ac0p_parity_lower_bound (Headline #12) |
| 3962 | theorem | ac02_mod3_lower_bound (Headline #13) |
| 3985 | theorem | ac0p_threshold_lower_bound (Headline #14) |
Section 3 (Pillar 3) — Exact Karchmer–Wigderson Game Equivalences & De Morgan Duality
| Line | Kind | Name |
|---|---|---|
| 4006 | inductive | MonotoneFormula |
| 4014 | def | MonotoneFormula.eval |
| 4020 | def | MonotoneFormula.leafSize |
| 4026 | def | MonotoneFormula.depth |
| 4032 | def | MonotoneFormula.varCount |
| 4037 | lemma | MonotoneFormula.sum_varCount |
| 4044 | lemma | MonotoneFormula.leafSize_le_two_pow_depth |
| 4060 | lemma | MonotoneFormula.eval_monotone |
| 4074 | def | MonotoneFormula.dual |
| 4079 | lemma | MonotoneFormula.eval_dual |
| 4086 | lemma | MonotoneFormula.leafSize_dual |
| 4092 | lemma | MonotoneFormula.depth_dual |
| 4098 | lemma | MonotoneFormula.varCount_dual |
| 4106 | def | MonotoneFormula.mapVars |
| 4111 | lemma | MonotoneFormula.eval_mapVars |
| 4118 | lemma | MonotoneFormula.leafSize_mapVars |
| 4125 | lemma | MonotoneFormula.depth_mapVars |
| 4134 | def | MonotoneFormula.compose |
| 4144 | lemma | MonotoneFormula.eval_compose |
| 4157 | lemma | MonotoneFormula.leafSize_compose |
| 4164 | lemma | MonotoneFormula.depth_compose |
| 4178 | inductive | MKWProtocol |
| 4185 | def | MKWProtocol.run |
| 4190 | def | MKWProtocol.leafSize |
| 4195 | def | MKWProtocol.depth |
| 4200 | def | MKWProtocol.leafCount |
| 4205 | lemma | MKWProtocol.sum_leafCount |
| 4213 | def | MKWProtocol.Solves |
| 4218 | def | MKWProtocol.ofFormula |
| 4225 | def | MKWProtocol.toFormula |
| 4230 | lemma | MKWProtocol.leafSize_ofFormula |
| 4237 | lemma | MKWProtocol.depth_ofFormula |
| 4244 | lemma | MKWProtocol.leafCount_ofFormula |
| 4251 | lemma | MKWProtocol.ofFormula_solves |
| 4278 | lemma | MKWProtocol.leafSize_toFormula |
| 4285 | lemma | MKWProtocol.depth_toFormula |
| 4292 | lemma | MKWProtocol.varCount_toFormula |
| 4303 | theorem | MKWProtocol.exists_formula_of_mkw |
| 4430 | theorem | monotone_kw_exact_equivalence (Headline #15) |
| 4452 | theorem | monotone_duality_exact (Headline #16) |
| 4470 | inductive | DeMorganFormula |
| 4477 | def | DeMorganFormula.eval |
| 4482 | def | DeMorganFormula.leafSize |
| 4487 | def | DeMorganFormula.depth |
| 4492 | def | DeMorganFormula.varCount |
| 4497 | lemma | DeMorganFormula.sum_varCount |
| 4508 | inductive | KWProtocol |
| 4515 | def | KWProtocol.run |
| 4520 | def | KWProtocol.leafSize |
| 4525 | def | KWProtocol.depth |
| 4530 | def | KWProtocol.leafCount |
| 4535 | def | KWProtocol.Solves |
| 4540 | def | KWProtocol.ofFormula |
| 4545 | lemma | KWProtocol.leafSize_ofFormula |
| 4552 | lemma | KWProtocol.depth_ofFormula |
| 4559 | lemma | KWProtocol.leafCount_ofFormula |
| 4566 | lemma | KWProtocol.ofFormula_solves |
| 4591 | theorem | KWProtocol.exists_formula_of_kw |
| 4703 | theorem | general_kw_exact_equivalence (Headline #17) |
Section 4 (Pillar 4) — Bilinear Spectral Adversary, Multiplicative Composition, and Exact Hansel–Kraft Bounds
| Line | Kind | Name |
|---|---|---|
| 4729 | def | BilinearSpectralBound |
| 4735 | lemma | sq_add_le_mul_add |
| 4754 | theorem | mkw_bilinear_adversary_bound (Headline #18) |
| 4885 | theorem | kw_bilinear_adversary_bound (Headline #19) |
| 4997 | lemma | bilinearSpectralBound_partial_matching |
| 5047 | structure | MonotoneDist1Witness |
| 5061 | theorem | monotoneDist1Witness_leafSize_lb |
| 5116 | theorem | monotone_formula_khrapchenko_thr (Headline #20) |
| 5225 | theorem | demorgan_formula_khrapchenko_parity (Headline #21) |
| 5415 | def | composeBoolFun |
| 5424 | def | packBlocks |
| 5439 | lemma | packBlocks_apply |
| 5450 | lemma | packBlocks_injective |
| 5463 | theorem | monotoneDist1Witness_compose_mult (Headline #22) |
| 5780 | def | iterMaj3 |
| 5791 | theorem | iterMaj3_monotone_formula_lb (Headline #23) |
| 5909 | def | singletonSet |
| 5913 | abbrev | BipCover |
| 5915 | def | BipCover.deg |
| 5918 | def | BipCover.CoversEdge |
| 5921 | def | BipCover.IsDisjoint |
| 5928 | theorem | monotone_bipartite_cover_extract |
| 6036 | theorem | bipartite_cover_kraft_ineq |
| 6139 | theorem | monotone_graph_kraft_inequality (Headline #24) |
| 6157 | lemma | two_zpow_neg_ge_tangent |
| 6192 | lemma | kraft_sum_tangent_lb |
| 6207 | def | orAll |
| 6214 | lemma | eval_orAll |
| 6240 | lemma | leafSize_orAll |
| 6252 | def | thr2Formula |
| 6278 | lemma | hansel_kraft_bisection_eq |
| 6344 | lemma | leafSize_thr2Formula |
| 6361 | lemma | eval_thr2Formula |
| 6433 | theorem | thr2_exact_monotone_formula_size (Headline #25) |
| 6471 | def | restrictTrue |
| 6484 | lemma | eval_restrictTrue |
| 6500 | lemma | varCount_restrictTrue_le |
| 6529 | theorem | thr_k_restriction_duality_kraft_bound (Headline #26) |
Verbatim #print axioms Output
'MonotoneKWSmolensky.universal_gram_smolensky_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.gram_smolensky_deg0_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.gram_smolensky_deg_n_sub_2_sharp' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.parity_approx_iff_signed_design' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.parity_deg_n_sub_3_hadamard_obstruction' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.mod3_over_F2_sharp_error_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.sharp_threshold_polynomial_error_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.majority_deg1_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.majority_deg_half_sharp' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.majority5_deg2_F2_attains_two' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.ac0p_probabilistic_polynomial_approx' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.ac0p_parity_lower_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.ac02_mod3_lower_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.ac0p_threshold_lower_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.monotone_kw_exact_equivalence' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.monotone_duality_exact' depends on axioms: [propext, Quot.sound]
'MonotoneKWSmolensky.general_kw_exact_equivalence' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.mkw_bilinear_adversary_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.kw_bilinear_adversary_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.monotone_formula_khrapchenko_thr' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.demorgan_formula_khrapchenko_parity' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.monotoneDist1Witness_compose_mult' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.iterMaj3_monotone_formula_lb' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.monotone_graph_kraft_inequality' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.thr2_exact_monotone_formula_size' depends on axioms: [propext, Classical.choice, Quot.sound]
'MonotoneKWSmolensky.thr_k_restriction_duality_kraft_bound' depends on axioms: [propext, Classical.choice, Quot.sound]