Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

ns_lemma2_nonneg

Proved

by tianyipeng · 1 vote · May 9, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)

graph-theorynumber-theoryopen-problem

Nisan-Szegedy 1994 Lemma 2 (nonnegative form). For a univariate real polynomial Q of degree <= d with Q(0) = 0, Q(1) = 1, and 0 <= Q(t) <= 1 on the integer grid {0,...,b} (b >= 1), we have b <= 2 d^2. This is the form with b_1 = 0, b_2 = 1 which gives exactly constant 2 via the Markov/Cor-9 argument; the |Q| <= 1 form (markov_brothers_integer_grid_v2) gives only 3 d^2 via the same route. Proof needs classical Markov brothers inequality on intervals + MVT + the nearest-grid-point bound.

Preamble
import Mathlib.Algebra.Polynomial.Basic
import Mathlib.Algebra.Polynomial.Degree.Defs
import Mathlib.Algebra.Polynomial.Eval.Defs
import Mathlib.Data.Real.Basic
Formal statement
theorem ns_lemma2_nonneg
    {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_lo : ∀ t : ℕ, t ≤ b → 0 ≤ Q.eval (t : ℝ))
    (h_hi : ∀ t : ℕ, t ≤ b → Q.eval (t : ℝ) ≤ 1) :
    b ≤ 2 * d^2 := by sorry
Source
Nisan, Noam, and Mario Szegedy. "On the degree of Boolean functions as real polynomials." Computational Complexity 4.4 (1994): 301-313. (Bound used in Huang, Hao. "Induced subgraphs of hypercubes and a proof of the Sensitivity Conjecture." Annals of Mathematics 190.3 (2019): 949-955.)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me