Documentation

CslibFrontier.Computability.Circuit.Frontier.PolynomialWitness

Low-degree polynomial witnesses for worst-case and average-case frontier bounds #

Counting over all Boolean functions (Cslib.Circuits.Frontier.exists_rectangleFree_family and exists_rectangleBias_family) uses 2 ^ n bits of description. By contrast, quadratic forms over 𝔽₂ have succinct O(n ^ 2)-bit descriptions (Cslib.Circuits.Frontier.hardForm), but on balanced cuts a quadratic form can be constant on 2 ^ (n / 2) Γ— 2 ^ (n / 2) affine cosets, capping quadratic correlation bounds at (1 + L₃) / 2 β‰ˆ 2.787986 n gates rather than L₃ β‰ˆ 4.575972 n.

Raising the algebraic degree from 2 to 4 (quartic polynomials over 𝔽₂, and more generally degree 2 p for any p β‰₯ 2, with O(n ^ (2 p)) bits of description) eliminates large monochromatic and biased rectangles across all cuts simultaneously, reaching the full L₃ β‰ˆ 4.575972 n frontier threshold both in the worst case (including nondeterministic circuits) and on average (agreement ≀ 1 / 2 + (n + 1) ^ (-Ξ²) + exp (-Ξ³ n) for every Ξ² < (p - 1) / 2, so every Ξ² < 1 / 2 already at degree 4).

Proof overview #

  1. Graded-weight monomial footprint. Ordering monomials I : Finset (Fin m) by monomialCode I = #I Β· 2 ^ m + βˆ‘_{i ∈ I} 2 ^ i, the footprint Ξ”(A) of a set A βŠ† Bool ^ m consists of those monomials whose evaluation column on A over ZMod 2 is not in the span of earlier columns. By BitString.mem_lowDegree_self, Ξ”(A) spans A β†’ ZMod 2 (|A| ≀ #Ξ”(A)), its columns are linearly independent, and multiplication of monomials (BitString.monomial_mul) makes Ξ”(A) a down-closed set system.
  2. Hypergraph-degeneracy shadow bound (Finset.card_filter_card_ge_le in Foundations/Combinatorics/SetFamily/ShadowDegeneracy). For any down-closed family Ξ”, p β‰₯ 1 and d : β„• with p! Β· #Ξ”_p ≀ d ^ p, minimum-degree vertex peeling on the p-uniform layer proves #Ξ”_{β‰₯ p} ≀ (#Ξ”_1) ^ (p - 1) Β· 2 ^ d purely in β„•. Hence any A of size at least polyThreshold p s = s + s ^ (p - 1) Β· 2 ^ ⌈(p! s) ^ (1 / p)βŒ‰β‚Š has at least s linearly independent degree-≀ p monomial columns, and Gaussian pivot selection extracts s inputs in A whose s Γ— s monomial evaluation matrix is invertible over ZMod 2.
  3. Kronecker surjectivity on s Γ— s sub-rectangles. Across any cut (X, Xᢜ) of Fin n, pairing s pivot inputs on X with s pivot inputs on Xᢜ embeds s ^ 2 cross-monomials I βˆͺ J of degree at most 2 p whose evaluation map C ↦ M₁ C Mβ‚‚α΅€ is a bijection on s Γ— s matrices over ZMod 2. A uniformly random degree-≀ 2 p polynomial over ZMod 2 is therefore uniformly distributed on that s Γ— s sub-rectangle!
  4. Union bound and greedy rectangle peeling. Taking s = n + 2 gives two-sided polyThreshold p (n + 2)-rectangle-free degree-≀ 2 p polynomials, and flipping f ↦ 1 - f ensures density |S| β‰₯ 2 ^ (n - 1) (exists_lowDegree_rectangleFree). Taking s = Θ(n / b ^ 2) with Hoeffding's inequality and greedy disjoint s Γ— s peeling bounds the bias by b on all rectangles above threshold ⌈polyThreshold p s / (b / 2)βŒ‰β‚Š + 1 (exists_lowDegree_rectangleBias). Since log (polyThreshold p s) = O(s ^ (1 / p)) = o(n) whenever b_n = (n + 1) ^ (-Ξ²) with Ξ² < (p - 1) / 2, instantiating FanInTwo and Nondeterministic gives 4.57597 n worst-case and average-case bounds at degree 4 (p = 2).

Low-degree witness existence in this asymptotic regime already follows from the stronger sumset extraction theorem of [AGMR25], ECCC TR24-093 revision 1, Theorem 2 (p. 8): degree 2 p suffices at entropy O(p (n / Ξ΅ ^ 2) ^ (1 / p)). Coordinate rectangles are special cases of sumset sources. This module supplies a direct finite-counting proof for coordinate rectangles, the explicit polyThreshold estimates, and the downstream 4.57597 n frontier applications (via layoutBound_switched from [Gas26]); it does not formalize the general sumset theorem. Its polynomial families are chosen nonconstructively from BitString.lowDegree (ZMod 2) (Fin n) (2 * p), with O(n ^ (2 p)) bits of description; no uniform polynomial-time construction or language in P is established here.

Main definitions #

Main results #

References #

The subexponential rectangle threshold for degree-2 p polynomial witnesses at rank s: s + s ^ (p - 1) Β· 2 ^ ⌈(p! Β· s) ^ (1 / p)βŒ‰β‚Š. For p = 2 (quartic polynomials), log (polyThreshold 2 s) = O(√s).

Graded-weight monomial footprint and pivot extraction #

Kronecker surjectivity and exact uniformity on s Γ— s sub-rectangles #

Worst-case dense rectangle-free low-degree polynomials #

theorem Cslib.Circuits.Frontier.exists_lowDegree_rectangleFree {p : β„•} (hp : 1 ≀ p) (n : β„•) :
βˆƒ f ∈ BitString.lowDegree (ZMod 2) (Fin n) (2 * p), (βˆ€ (v : ZMod 2), RectangleFree {x : Fin n β†’ Bool | f x = v} (polyThreshold p (n + 2))) ∧ 2 ^ (n - 1) ≀ {x : Fin n β†’ Bool | f x = 1}.ncard

Low-degree rectangle-free witnesses. For every p β‰₯ 1 and n : β„•, there is a polynomial f ∈ BitString.lowDegree (ZMod 2) (Fin n) (2 * p) of degree at most 2 p over ZMod 2 such that both {x | f x = 0} and {x | f x = 1} are polyThreshold p (n + 2)-rectangle-free and 2 ^ (n - 1) ≀ {x | f x = 1}.ncard.

theorem Cslib.Circuits.Frontier.exists_quartic_rectangleFree (n : β„•) :
βˆƒ f ∈ BitString.lowDegree (ZMod 2) (Fin n) 4, (βˆ€ (v : ZMod 2), RectangleFree {x : Fin n β†’ Bool | f x = v} (polyThreshold 2 (n + 2))) ∧ 2 ^ (n - 1) ≀ {x : Fin n β†’ Bool | f x = 1}.ncard

Quartic rectangle-free witnesses (deg ≀ 4). For every n : β„•, there is a quartic polynomial f ∈ BitString.lowDegree (ZMod 2) (Fin n) 4 over ZMod 2 such that both {x | f x = 0} and {x | f x = 1} are polyThreshold 2 (n + 2)-rectangle-free and 2 ^ (n - 1) ≀ {x | f x = 1}.ncard.

Quantitative RectangleBias for low-degree polynomials #

theorem Cslib.Circuits.Frontier.exists_lowDegree_rectangleBias {p : β„•} (hp : 1 ≀ p) (n : β„•) {b : ℝ} (hb : 0 < b) :
have s := ⌈(↑n + 2) / (b ^ 2 / 2)βŒ‰β‚Š + 2; have K := βŒˆβ†‘(polyThreshold p s) / (b / 2)βŒ‰β‚Š + 1; βˆƒ f ∈ BitString.lowDegree (ZMod 2) (Fin n) (2 * p), RectangleBias {x : Fin n β†’ Bool | f x = 1} K b

Quantitative RectangleBias for low-degree polynomials. For every p β‰₯ 1, n : β„•, and b > 0, let s = ⌈(n + 2) / (b ^ 2 / 2)βŒ‰β‚Š + 2 and K = ⌈polyThreshold p s / (b / 2)βŒ‰β‚Š + 1. Then some polynomial f ∈ BitString.lowDegree (ZMod 2) (Fin n) (2 * p) satisfies RectangleBias {x | f x = 1} K b.

Asymptotics of polyThreshold and 4.57597 n circuit lower bounds #

theorem Cslib.Circuits.Frontier.exists_lowDegree_denseRectangleFree_family {p : β„•} (hp : 2 ≀ p) :
βˆƒ (f : (n : β„•) β†’ (Fin n β†’ Bool) β†’ ZMod 2), (βˆ€ (n : β„•), f n ∈ BitString.lowDegree (ZMod 2) (Fin n) (2 * p)) ∧ (DenseRectangleFree (fun (n : β„•) => {x : Fin n β†’ Bool | f n x = 1}) fun (n : β„•) => polyThreshold p (n + 2)) ∧ βˆ€ (n : β„•), 2 ^ (n - 1) ≀ {x : Fin n β†’ Bool | f n x = 1}.ncard

Low-degree polynomial families satisfy DenseRectangleFree. For every p β‰₯ 2, there is a family of degree-≀ 2 p polynomials f n ∈ BitString.lowDegree (ZMod 2) (Fin n) (2 * p) over ZMod 2 such that S n = {x | f n x = 1} satisfies DenseRectangleFree S (polyThreshold p (Β· + 2)) and 2 ^ (n - 1) ≀ (S n).ncard.

theorem Cslib.Circuits.Frontier.exists_quartic_denseRectangleFree_family :
βˆƒ (f : (n : β„•) β†’ (Fin n β†’ Bool) β†’ ZMod 2), (βˆ€ (n : β„•), f n ∈ BitString.lowDegree (ZMod 2) (Fin n) 4) ∧ (DenseRectangleFree (fun (n : β„•) => {x : Fin n β†’ Bool | f n x = 1}) fun (n : β„•) => polyThreshold 2 (n + 2)) ∧ βˆ€ (n : β„•), 2 ^ (n - 1) ≀ {x : Fin n β†’ Bool | f n x = 1}.ncard

Quartic polynomial families (deg ≀ 4) satisfy DenseRectangleFree.

theorem Cslib.Circuits.Frontier.exists_quartic_switched_lt_innerSize :
βˆƒ (f : (n : β„•) β†’ (Fin n β†’ Bool) β†’ ZMod 2), (βˆ€ (n : β„•), f n ∈ BitString.lowDegree (ZMod 2) (Fin n) 4) ∧ βˆ€ {Ξ΅ : ℝ}, 0 < Ξ΅ β†’ βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (Οƒ : Signature) (I : Interpretation Οƒ Bool) (Acc : Set Bool) (c : Circuit Οƒ n 1), c.FanInAtMost 2 β†’ c.Decides I Acc {x : Fin n β†’ Bool | f n x = 1} β†’ (1 + 2 * Real.pi / (3 * Real.arccos (5 / 6)) - Ξ΅) * ↑n < ↑c.innerSize

Worst-case 4.57597 n circuit lower bound for quartic (deg ≀ 4) polynomials. There is a family of quartic polynomials f n ∈ BitString.lowDegree (ZMod 2) (Fin n) 4 (O(n ^ 4) bits of description) such that for every Ξ΅ > 0 and all large n, every fan-in-two circuit deciding {x | f n x = 1} over any basis has more than (1 + 2Ο€ / (3 arccos (5 / 6)) - Ξ΅) n inner gates (in particular more than (457597 / 100000 - Ξ΅) n inner gates).

theorem Cslib.Circuits.Frontier.exists_quartic_switched_lt_innerSize_nondeterministic :
βˆƒ (f : (n : β„•) β†’ (Fin n β†’ Bool) β†’ ZMod 2), (βˆ€ (n : β„•), f n ∈ BitString.lowDegree (ZMod 2) (Fin n) 4) ∧ βˆ€ {Ξ΅ : ℝ}, 0 < Ξ΅ β†’ βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (k : β„•) (Οƒ : Signature) (I : Interpretation Οƒ Bool) (Acc : Set Bool) (c : Circuit Οƒ (n + k) 1), c.FanInAtMost 2 β†’ c.NondeterministicDecides I Acc {x : Fin n β†’ Bool | f n x = 1} β†’ (1 + 2 * Real.pi / (3 * Real.arccos (5 / 6)) - Ξ΅) * ↑n < ↑c.innerSize

Nondeterministic 4.57597 n circuit lower bound for quartic (deg ≀ 4) polynomials. The quartic family of exists_quartic_denseRectangleFree_family also requires more than (1 + 2Ο€ / (3 arccos (5 / 6)) - Ξ΅) n inner gates for every nondeterministic fan-in-two circuit with any number k of witness inputs.

theorem Cslib.Circuits.Frontier.exists_lowDegree_rectangleBias_family {p : β„•} (hp : 2 ≀ p) {Ξ² : ℝ} (hΞ²0 : 0 < Ξ²) (hΞ²p : Ξ² < (↑p - 1) / 2) :
βˆƒ (f : (n : β„•) β†’ (Fin n β†’ Bool) β†’ ZMod 2) (K : β„• β†’ β„•), (βˆ€ (n : β„•), f n ∈ BitString.lowDegree (ZMod 2) (Fin n) (2 * p)) ∧ (βˆ€ (n : β„•), RectangleBias {x : Fin n β†’ Bool | f n x = 1} (K n) ((↑n + 1) ^ (-Ξ²))) ∧ (fun (n : β„•) => Real.log ↑(K n)) =o[Filter.atTop] fun (n : β„•) => ↑n

Low-degree polynomial families with polynomially decaying RectangleBias and log K = o(n). For every p β‰₯ 2 and 0 < Ξ² < (p - 1) / 2, there exist a family of degree-≀ 2 p polynomials f n ∈ BitString.lowDegree (ZMod 2) (Fin n) (2 * p) and thresholds K : β„• β†’ β„• with Real.log (K n) = o(n) such that {x | f n x = 1} has RectangleBias at most (n + 1) ^ (-Ξ²) above K n for every n.

theorem Cslib.Circuits.Frontier.exists_quartic_agreement_le_switched {Ξ² : ℝ} (hΞ²0 : 0 < Ξ²) (hΞ²_half : Ξ² < 1 / 2) :
βˆƒ (f : (n : β„•) β†’ (Fin n β†’ Bool) β†’ ZMod 2), (βˆ€ (n : β„•), f n ∈ BitString.lowDegree (ZMod 2) (Fin n) 4) ∧ βˆ€ {Ξ΅ : ℝ}, 0 < Ξ΅ β†’ βˆƒ Ξ³ > 0, βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (Οƒ : Signature) (I : Interpretation Οƒ Bool) (Acc : Set Bool) (c : Circuit Οƒ n 1), c.FanInAtMost 2 β†’ ↑c.innerSize ≀ (1 + 2 * Real.pi / (3 * Real.arccos (5 / 6)) - Ξ΅) * ↑n β†’ agreement {x : Fin n β†’ Bool | f n x = 1} {x : Fin n β†’ Bool | c.eval I x 0 ∈ Acc} ≀ 1 / 2 + (↑n + 1) ^ (-Ξ²) + Real.exp (-(Ξ³ * ↑n))

Average-case 4.57597 n lower bound for quartic (deg ≀ 4) polynomials. For every 0 < Ξ² < 1 / 2, there is a family of quartic polynomials f n ∈ BitString.lowDegree (ZMod 2) (Fin n) 4 (O(n ^ 4) bits of description) such that for every Ξ΅ > 0 there is a Ξ³ > 0 with the following property: for all large n, every fan-in-two circuit with at most (1 + 2Ο€ / (3 arccos (5 / 6)) - Ξ΅) n inner gates agrees with {x | f n x = 1} on at most a 1 / 2 + (n + 1) ^ (-Ξ²) + exp (-Ξ³ n) fraction of Bool ^ n.

theorem Cslib.Circuits.Frontier.exists_quartic_agreement_le_457597_div_100000 {Ξ² : ℝ} (hΞ²0 : 0 < Ξ²) (hΞ²_half : Ξ² < 1 / 2) :
βˆƒ (f : (n : β„•) β†’ (Fin n β†’ Bool) β†’ ZMod 2), (βˆ€ (n : β„•), f n ∈ BitString.lowDegree (ZMod 2) (Fin n) 4) ∧ βˆ€ {Ξ΅ : ℝ}, 0 < Ξ΅ β†’ βˆƒ Ξ³ > 0, βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (Οƒ : Signature) (I : Interpretation Οƒ Bool) (Acc : Set Bool) (c : Circuit Οƒ n 1), c.FanInAtMost 2 β†’ ↑c.innerSize ≀ (457597 / 100000 - Ξ΅) * ↑n β†’ agreement {x : Fin n β†’ Bool | f n x = 1} {x : Fin n β†’ Bool | c.eval I x 0 ∈ Acc} ≀ 1 / 2 + (↑n + 1) ^ (-Ξ²) + Real.exp (-(Ξ³ * ↑n))

Rational 4.57597 n average-case lower bound for quartic (deg ≀ 4) polynomials. Under the hypotheses of exists_quartic_agreement_le_switched, every fan-in-two circuit with at most (457597 / 100000 - Ξ΅) n inner gates agrees with {x | f n x = 1} on at most a 1 / 2 + (n + 1) ^ (-Ξ²) + exp (-Ξ³ n) fraction of Bool ^ n.

theorem Cslib.Circuits.Frontier.exists_quartic_abs_correlation_le_switched {Ξ² : ℝ} (hΞ²0 : 0 < Ξ²) (hΞ²_half : Ξ² < 1 / 2) :
βˆƒ (f : (n : β„•) β†’ (Fin n β†’ Bool) β†’ ZMod 2), (βˆ€ (n : β„•), f n ∈ BitString.lowDegree (ZMod 2) (Fin n) 4) ∧ βˆ€ {Ξ΅ : ℝ}, 0 < Ξ΅ β†’ βˆƒ Ξ³ > 0, βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (Οƒ : Signature) (I : Interpretation Οƒ Bool) (Acc : Set Bool) (c : Circuit Οƒ n 1), c.FanInAtMost 2 β†’ ↑c.innerSize ≀ (1 + 2 * Real.pi / (3 * Real.arccos (5 / 6)) - Ξ΅) * ↑n β†’ |correlation {x : Fin n β†’ Bool | f n x = 1} {x : Fin n β†’ Bool | c.eval I x 0 ∈ Acc}| ≀ 2 * (↑n + 1) ^ (-Ξ²) + 2 * Real.exp (-(Ξ³ * ↑n))

Two-sided correlation 4.57597 n lower bound for quartic (deg ≀ 4) polynomials. For every 0 < Ξ² < 1 / 2, there is a family of quartic polynomials f n ∈ BitString.lowDegree (ZMod 2) (Fin n) 4 such that for every Ξ΅ > 0 there is a Ξ³ > 0 with |correlation {x | f n x = 1} {x | c.eval I x 0 ∈ Acc}| ≀ 2 (n + 1) ^ (-Ξ²) + 2 exp (-Ξ³ n) for all large n and every fan-in-two circuit with at most (1 + 2Ο€ / (3 arccos (5 / 6)) - Ξ΅) n inner gates.

theorem Cslib.Circuits.Frontier.exists_quartic_abs_correlation_le_457597_div_100000 {Ξ² : ℝ} (hΞ²0 : 0 < Ξ²) (hΞ²_half : Ξ² < 1 / 2) :
βˆƒ (f : (n : β„•) β†’ (Fin n β†’ Bool) β†’ ZMod 2), (βˆ€ (n : β„•), f n ∈ BitString.lowDegree (ZMod 2) (Fin n) 4) ∧ βˆ€ {Ξ΅ : ℝ}, 0 < Ξ΅ β†’ βˆƒ Ξ³ > 0, βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (Οƒ : Signature) (I : Interpretation Οƒ Bool) (Acc : Set Bool) (c : Circuit Οƒ n 1), c.FanInAtMost 2 β†’ ↑c.innerSize ≀ (457597 / 100000 - Ξ΅) * ↑n β†’ |correlation {x : Fin n β†’ Bool | f n x = 1} {x : Fin n β†’ Bool | c.eval I x 0 ∈ Acc}| ≀ 2 * (↑n + 1) ^ (-Ξ²) + 2 * Real.exp (-(Ξ³ * ↑n))

Rational 4.57597 n two-sided correlation bound for quartic (deg ≀ 4) polynomials. Under the hypotheses of exists_quartic_abs_correlation_le_switched, every fan-in-two circuit with at most (457597 / 100000 - Ξ΅) n inner gates has correlation at most 2 (n + 1) ^ (-Ξ²) + 2 exp (-Ξ³ n) in absolute value with {x | f n x = 1}.