{
  "id": "436",
  "ident": "NS.00436",
  "slug": "erdos-1038",
  "title": "Erdős Problem 1038",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "What is the infimum of `|{x ∈ ℝ : |f x| < 1}|` over all nonconstant monic polynomials `f` such\nthat all of its roots are real and contained in `[-1,1]`?",
  "subjects": [
    "math.CA",
    "msc:28"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1038.erdos_1038.parts.i",
  "statement_lean": "theorem erdos_1038.parts.i : erdos_1038.parts.i.answer =\n    ⨅ f : {f : Polynomial ℝ // f.Monic ∧ f ≠ 1 ∧\n    (f.roots.filter fun x => x ∈ Set.Icc (-1 : ℝ) 1).card = f.natDegree},\n    volume {x | |f.1.eval x| < 1}",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 1038\n\n*Reference:*\n - [erdosproblems.com/1038](https://www.erdosproblems.com/1038)\n - [Tao25] Tao, Terence. Sublevel Sets of Logarithmic Potentials. Terry Tao’s Blog, Dec. 2025\n  (https://terrytao.wordpress.com/wp-content/uploads/2025/12/erdos-1038-1.pdf)\n - [EHP58] Erdős, P., Herzog, F., Piranian, G. Metric properties of polynomials.\n  J. Analyse Math. 6 (1958), 125--148.\n\n-/\n\n@[expose] public section\n\nopen scoped Real ENNReal\nopen MeasureTheory Set\n\nnamespace Erdos1038\n\ndef erdos_1038.parts.i.answer : ℝ≥0∞ := sorry\n\n/-- What is the infimum of `|{x ∈ ℝ : |f x| < 1}|` over all nonconstant monic polynomials `f` such\nthat all of its roots are real and contained in `[-1,1]`? -/\n@[category research open, question value, AMS 28]\ntheorem erdos_1038.parts.i : erdos_1038.parts.i.answer =\n    ⨅ f : {f : Polynomial ℝ // f.Monic ∧ f ≠ 1 ∧\n    (f.roots.filter fun x => x ∈ Set.Icc (-1 : ℝ) 1).card = f.natDegree},\n    volume {x | |f.1.eval x| < 1} := by\n  sorry\n\n/-- The supremum of `|{x ∈ ℝ : |f x| < 1}|` over all monic polynomials `f` such that\nall of its roots are real and contained in `[-1,1]` is `2 * 2 ^ (1 / 2)`. This is proved in\n[Tao25]. -/\n@[category research solved, AMS 28]\ntheorem erdos_1038.parts.ii : 2 * 2 ^ (1 / 2 : ℝ) =\n    ⨆ f : {f : Polynomial ℝ // f.Monic ∧\n    (f.roots.filter fun x => x ∈ Set.Icc (-1 : ℝ) 1).card = f.natDegree},\n    volume {x | |f.1.eval x| < 1} := by\n  sorry\n\n/-- The infimum of `|{x ∈ ℝ : |f x| < 1}|` over all nonconstant monic polynomials `f` such that\nall of its roots are real and contained in `[-1,1]` is `< 1.835`. -/\n@[category research solved, AMS 28]\ntheorem erdos_1038.variants.inf_upperBound : ⨅ f : {f : Polynomial ℝ // f.Monic ∧ f ≠ 1 ∧\n    (f.roots.filter fun x => x ∈ Set.Icc (-1 : ℝ) 1).card = f.natDegree},\n    volume {x | |f.1.eval x| < 1} < 1.835 := by\n  sorry\n\n/-- The infimum of `|{x ∈ ℝ : |f x| < 1}|` over all nonconstant monic polynomials `f` such that\nall of its roots are real and contained in `[-1,1]` is `≥ 2 ^ (4 / 3) - 1`. -/\n@[category research solved, AMS 28]\ntheorem erdos_1038.variants.inf_lowerBound : 2 ^ (4 / 3 : ℝ) - 1 ≤\n    ⨅ f : {f : Polynomial ℝ // f.Monic ∧ f ≠ 1 ∧\n    (f.roots.filter fun x => x ∈ Set.Icc (-1 : ℝ) 1).card = f.natDegree},\n    volume {x | |f.1.eval x| < 1} := by\n  sorry\n\n\n/-- For a monic quadratic with roots at distance at most two, the sublevel measure\nis $2\\sqrt{1+d^2}$, where $2|d|$ is the distance between the roots. This gives\nthe degree-two case of the sublevel-set problem in [Tao25]. -/\n@[category textbook, AMS 28]\ntheorem erdos_1038.variants.quadratic_sublevel_formula (m d : ℝ) (hd : |d| ≤ 1) :\n    volume {x : ℝ | |(x - m) ^ 2 - d ^ 2| < 1} =\n      ENNReal.ofReal (2 * Real.sqrt (1 + d ^ 2)) := by\n  have hd2 : d ^ 2 ≤ 1 := by nlinarith [abs_le.mp hd |>.1, abs_le.mp hd |>.2]\n  have hs : 0 < Real.sqrt (1 + d ^ 2) := Real.sqrt_pos.2 (by positivity)\n  have hsq : Real.sqrt (1 + d ^ 2) ^ 2 = 1 + d ^ 2 := Real.sq_sqrt (by positivity)\n  let I := Ioo (m - Real.sqrt (1 + d ^ 2)) (m + Real.sqrt (1 + d ^ 2))\n  have hupper : {x : ℝ | |(x - m) ^ 2 - d ^ 2| < 1} ⊆ I := by\n    intro x hx\n    change |(x-m)^2-d^2| < 1 at hx\n    obtain ⟨hlo, hhi⟩ := abs_lt.mp hx\n    constructor\n    · nlinarith [sq_nonneg (x - m + Real.sqrt (1 + d ^ 2))]\n    · nlinarith [sq_nonneg (x - m - Real.sqrt (1 + d ^ 2))]\n  have hlower : I \\ {m} ⊆ {x : ℝ | |(x - m) ^ 2 - d ^ 2| < 1} := by\n    rintro x ⟨⟨hlo, hhi⟩, hne⟩\n    have hpos : 0 < (x - m) ^ 2 := sq_pos_of_ne_zero (sub_ne_zero.mpr hne)\n    have hlt : (x - m) ^ 2 < 1 + d ^ 2 := by\n      nlinarith [mul_pos (sub_pos.mpr hhi) (sub_pos.mpr hlo)]\n    change |(x-m)^2-d^2| < 1\n    exact abs_lt.mpr ⟨by linarith, by linarith⟩\n  have hI : volume I = ENNReal.ofReal (2 * Real.sqrt (1 + d ^ 2)) := by\n    rw [Real.volume_Ioo]\n    congr 1\n    ring\n  apply le_antisymm\n  · calc\n      _ ≤ volume I := measure_mono hupper\n      _ = _ := hI\n  · have h : volume (I \\ {m}) ≤ volume {x : ℝ | |(x-m)^2-d^2| < 1} :=\n      measure_mono hlower\n    rwa [measure_sdiff_null (by simp), hI] at h\n\n/-- The degree-two case of the supremum bound in [Tao25]: if $a,b\\in[-1,1]$,\nthe sublevel set of $(x-a)(x-b)$ has measure at most $2\\sqrt{2}$. -/\n@[category textbook, AMS 28]\ntheorem erdos_1038.variants.quadratic_upperBound (a b : ℝ) (ha : |a| ≤ 1) (hb : |b| ≤ 1) :\n    volume {x : ℝ | |(x-a)*(x-b)| < 1} ≤ ENNReal.ofReal (2 * Real.sqrt 2) := by\n  have hd : |(a-b)/2| ≤ 1 := by\n    rw [abs_le]\n    constructor <;> linarith [abs_le.mp ha |>.1, abs_le.mp ha |>.2,\n      abs_le.mp hb |>.1, abs_le.mp hb |>.2]\n  have hpoly (x : ℝ) : (x-a)*(x-b) = (x-(a+b)/2)^2 - ((a-b)/2)^2 := by ring\n  simp_rw [hpoly]\n  rw [erdos_1038.variants.quadratic_sublevel_formula ((a+b)/2) ((a-b)/2) hd]\n  apply ENNReal.ofReal_le_ofReal\n  have hd2 : ((a-b)/2)^2 ≤ 1 := by nlinarith [abs_le.mp hd |>.1, abs_le.mp hd |>.2]\n  have h := Real.sqrt_le_sqrt (show 1 + ((a-b)/2)^2 ≤ 2 by linarith)\n  linarith\n\n\n/-- The admissible quadratic $x^2-1$, with roots $-1$ and $1$, attains the supremum\nvalue $2\\sqrt{2}$ in [Tao25]. -/\n@[category textbook, AMS 28]\ntheorem erdos_1038.variants.quadratic_extremizer :\n    volume {x : ℝ | |x ^ 2 - 1| < 1} = ENNReal.ofReal (2 * Real.sqrt 2) := by\n  convert erdos_1038.variants.quadratic_sublevel_formula 0 1 (by norm_num) using 1 <;>\n    norm_num\n\nopen Polynomial in\n/-- The lower half of `erdos_1038.parts.ii`: the supremum is at least $2\\sqrt{2}$, because the\nadmissible polynomial $x^2-1$ has sublevel measure exactly $2\\sqrt{2}$. The matching upper bound\nis proved in [Tao25]. -/\n@[category textbook, AMS 28]\ntheorem erdos_1038.variants.sup_lowerBound : 2 * 2 ^ (1 / 2 : ℝ) ≤\n    ⨆ f : {f : Polynomial ℝ // f.Monic ∧\n    (f.roots.filter fun x => x ∈ Set.Icc (-1 : ℝ) 1).card = f.natDegree},\n    volume {x | |f.1.eval x| < 1} := by\n  have hroots : (X ^ 2 - C 1 : ℝ[X]).roots = {-1, 1} := nthRoots_two_one\n  refine le_iSup_of_le ⟨X ^ 2 - C 1, monic_X_pow_sub_C 1 two_ne_zero, ?_⟩ ?_\n  · rw [hroots, natDegree_X_pow_sub_C]\n    norm_num [Multiset.filter_singleton]\n  · simp only [eval_sub, eval_pow, eval_X, eval_C]\n    rw [erdos_1038.variants.quadratic_extremizer, ENNReal.ofReal_mul zero_le_two,\n      Real.sqrt_eq_rpow, ← ENNReal.ofReal_rpow_of_nonneg zero_le_two (by norm_num)]\n    norm_num\n\nopen Polynomial in\n/-- The infimum in `erdos_1038.parts.i` is strictly less than $2$, as observed in [EHP58]:\nfor $f(x)=(x+1)(x-1)^3$ the sublevel set $\\{x : |f(x)| < 1\\}$ is contained in\n$(-1.108,-0.835)\\cup(0,1.718)$, whose total length is $1.991$. -/\n@[category textbook, AMS 28]\ntheorem erdos_1038.variants.inf_lt_two : ⨅ f : {f : Polynomial ℝ // f.Monic ∧ f ≠ 1 ∧\n    (f.roots.filter fun x => x ∈ Set.Icc (-1 : ℝ) 1).card = f.natDegree},\n    volume {x | |f.1.eval x| < 1} < 2 := by\n  have hmonic : ((X + C 1) * (X - C 1) ^ 3 : ℝ[X]).Monic :=\n    (monic_X_add_C 1).mul ((monic_X_sub_C 1).pow 3)\n  have hdeg : ((X + C 1) * (X - C 1) ^ 3 : ℝ[X]).natDegree = 4 := by\n    rw [(monic_X_add_C 1).natDegree_mul ((monic_X_sub_C 1).pow 3),\n      (monic_X_sub_C 1).natDegree_pow, natDegree_X_add_C, natDegree_X_sub_C]\n  have hne : ((X + C 1) * (X - C 1) ^ 3 : ℝ[X]) ≠ 1 := fun h => by\n    rw [h, natDegree_one] at hdeg\n    exact absurd hdeg (by norm_num)\n  have hcard : (((X + C 1) * (X - C 1) ^ 3 : ℝ[X]).roots.filter\n      fun x => x ∈ Set.Icc (-1 : ℝ) 1).card = ((X + C 1) * (X - C 1) ^ 3 : ℝ[X]).natDegree := by\n    rw [roots_mul hmonic.ne_zero, roots_X_add_C, roots_pow, roots_X_sub_C, hdeg]\n    norm_num [Multiset.filter_singleton, Multiset.filter_nsmul]\n  refine lt_of_le_of_lt (iInf_le _ ⟨(X + C 1) * (X - C 1) ^ 3, hmonic, hne, hcard⟩) ?_\n  simp only [eval_mul, eval_add, eval_sub, eval_pow, eval_X, eval_C]\n  have hsub : {x : ℝ | |(x + 1) * (x - 1) ^ 3| < 1} ⊆\n      Ioo (-277 / 250) (-167 / 200) ∪ Ioo 0 (859 / 500) := by\n    intro x (hx : |(x + 1) * (x - 1) ^ 3| < 1)\n    obtain ⟨hlo, hhi⟩ := abs_lt.mp hx\n    rcases le_or_gt x (-277 / 250) with h1 | h1\n    · have ht : 0 ≤ -277 / 250 - x := by linarith\n      nlinarith [pow_nonneg ht 2, pow_nonneg ht 3, pow_nonneg ht 4]\n    rcases lt_or_ge x (-167 / 200) with h2 | h2\n    · exact Or.inl ⟨h1, h2⟩\n    rcases le_or_gt x 0 with h3 | h3\n    · have hs : 0 ≤ x + 167 / 200 := by linarith\n      have hp : 0 ≤ x ^ 3 - 2 * x ^ 2 + 2 := by\n        nlinarith [mul_nonneg hs (neg_nonneg.mpr h3), pow_nonneg hs 3]\n      nlinarith [mul_nonneg (neg_nonneg.mpr h3) hp]\n    rcases lt_or_ge x (859 / 500) with h4 | h4\n    · exact Or.inr ⟨h3, h4⟩\n    · have ht : 0 ≤ x - 859 / 500 := by linarith\n      nlinarith [pow_nonneg ht 2, pow_nonneg ht 3, pow_nonneg ht 4]\n  calc volume {x : ℝ | |(x + 1) * (x - 1) ^ 3| < 1}\n      ≤ volume (Ioo (-277 / 250 : ℝ) (-167 / 200) ∪ Ioo 0 (859 / 500)) := measure_mono hsub\n    _ ≤ volume (Ioo (-277 / 250 : ℝ) (-167 / 200)) + volume (Ioo (0 : ℝ) (859 / 500)) :=\n      measure_union_le _ _\n    _ < 2 := by\n      rw [Real.volume_Ioo, Real.volume_Ioo, ← ENNReal.ofReal_add (by norm_num) (by norm_num),\n        ENNReal.ofReal_lt_iff_lt_toReal (by norm_num) (by norm_num)]\n      norm_num\n\nend Erdos1038\n",
  "statement_hash": "9f49a550734f63e1d4e012f36d885ed110b0c5e86a491ea49313431c7837d006",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}