markov_brothers_integer_grid_v2
ProvedNisan-Szegedy 1994, Lemma 2 — the integer-grid distinguishing polynomial bound.
For every univariate real polynomial of degree that satisfies
(with ), we have
This is the bundled version of the classical Markov-brothers-on-the-integer-grid argument used in the polynomial-method proof of .
Why a bundled hypothesis is needed. The naive form "any polynomial of degree bounded by on has on " is false in general: the continuous extension constant from Ehlich-Zeller / Coppersmith-Rivlin can grow as , so chaining "Ehlich-Zeller continuous extension" with "classical Markov on intervals" gives a worse constant than .
Nisan and Szegedy circumvent this by using the additional value constraints and , together with the integer-grid bound, to derive the conclusion directly via a tightened Markov-on-the-grid argument that exploits the constrained structure (rather than passing through the continuous interval).
Likely proof strategy (NOT formalised here): combine a discrete-derivative bound with the constrained values to conclude without invoking Ehlich-Zeller. Estimated 600-1000 Lean lines, may need its own sub-decomposition (discrete derivatives, Markov inequality on integer points, the specific exploitation of , etc.).
import Mathlib.Algebra.Polynomial.Basic
import Mathlib.Algebra.Polynomial.Degree.Defs
import Mathlib.Algebra.Polynomial.Eval.Defs
import Mathlib.Data.Real.Basic
/-!
# NS 1994 Lemma 2 — integer-grid distinguishing polynomial bound
Replaces the over-strong (and disprovable) `markov_brothers_integer_grid`.
Bundles the *specific* hypotheses Nisan–Szegedy use in the proof of
`bs(f) ≤ 2 deg(f)²`:
* `Q : Polynomial ℝ` of degree `≤ d`,
* `Q(0) = 0`, `Q(1) = 1`,
* `|Q(t)| ≤ 1` on the integer grid `{0, 1, …, b}`,
and concludes `b ≤ 2 d²` *directly*. This is exactly NS Lemma 2; the proof
combines a tightened Markov-on-integer-grid argument with the value
constraints `Q(0)=0, Q(1)=1` to avoid the Ehlich–Zeller blow-up that breaks
the generic continuous-Markov composition.
Left as a platform leaf — DEFERRED. Estimated 600–1000 lines, may need
its own 4th-layer decomposition (e.g. discrete derivative bounds, the
Bernstein inequality variant on integer grids, etc.).
Why the previous `markov_brothers_integer_grid` is wrong: the bound
`|Q'(c)| ≤ 2 d² / b` is *false* in general for arbitrary polynomials
bounded by 1 on the integer grid; the continuous extension constant from
Ehlich–Zeller can grow as `exp(d²/b)`. NS sidestep this by using the
specific structure `Q(0) = 0, Q(1) = 1` directly, which is what this v2
statement encodes.
-/
/-- **Nisan–Szegedy 1994, Lemma 2.** A polynomial `Q : ℝ[X]` of degree
`≤ d` that vanishes at `0`, equals `1` at `1`, and is absolutely bounded
by `1` on the integer grid `{0, 1, …, b}` (with `b ≥ 1`) admits the bound
`b ≤ 2 d²`. -/theorem markov_brothers_integer_grid_v2
{b : ℕ} (hb : 1 ≤ b) (Q : Polynomial ℝ) {d : ℕ}
(h_deg : Q.natDegree ≤ d)
(h_zero : Q.eval 0 = 0) (h_one : Q.eval 1 = 1)
(h_bound : ∀ t : ℕ, t ≤ b → |Q.eval (t : ℝ)| ≤ 1) :
b ≤ 2 * d^2 := by sorry