{
  "id": "2382",
  "ident": "NS.02382",
  "slug": "erdos-525",
  "title": "Erdős Problem 525",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Is it true that all except at most $o(2^n)$ many degree $n$ polynomials with $\\pm 1$-valued\ncoefficients $f(z)$ have $\\lvert f(z)\\rvert <1$ for some $\\lvert z\\rvert=1$?\n\nThe answer is yes: Littlewood [Li66] conjectured the stronger $m(f)=o(1)$ almost surely, which\nwas proved by Kashin [Ka87].",
  "subjects": [
    "math.CV",
    "math.PR",
    "msc:30",
    "msc:60"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos525.erdos_525.parts.i",
  "statement_lean": "theorem erdos_525.parts.i :\n    (fun n : ℕ ↦ ((exceptional n).ncard : ℝ)) =o[atTop] fun n : ℕ ↦ (2 : ℝ) ^ n",
  "challenge_source": "/-\nCopyright 2026 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 525\n\n*References:*\n- [erdosproblems.com/525](https://www.erdosproblems.com/525)\n- [Er61] Erdős, Paul, _Some unsolved problems_. Magyar Tud. Akad. Mat. Kutató Int. Közl. (1961),\n  221-254.\n- [Li66] Littlewood, J. E., _On polynomials $\\sum^n \\pm z^m$, $\\sum^n e^{\\alpha_m i} z^m$,\n  $z = e^{\\theta i}$_. J. London Math. Soc. (1966), 367-376.\n- [Ka87] Kashin, B. S., _The properties of random trigonometric polynomials with $\\pm 1$\n  coefficients_. Vestnik Moskov. Univ. Ser. I Mat. Mekh. (1987), 40-46, 105.\n- [Ko94] Konyagin, S. V., _On the minimum modulus of random trigonometric polynomials with\n  coefficients $\\pm1$_. Mat. Zametki (1994), 80-101, 158.\n- [KoSc99] Konyagin, S. V. and Schlag, W., _Lower bounds for the absolute value of random\n  polynomials on a neighborhood of the unit circle_. Trans. Amer. Math. Soc. (1999), 4963-4980.\n- [CoNg21] Cook, Nicholas A. and Nguyen, Hoi H., _Universality of the minimum modulus for random\n  trigonometric polynomials_. Discrete Anal. (2021), Paper No. 20, 46.\n-/\n\n@[expose] public section\n\nopen Filter Real Finset\n\nnamespace Erdos525\n\n/-- The degree-`n` polynomial $f(z)=\\sum_{j\\leq n}\\epsilon_j z^j$ with coefficients\n`ε : Fin (n + 1) → ℤˣ`, i.e. $\\epsilon_j\\in\\{-1,1\\}$, evaluated at `z`. -/\ndef eval {n : ℕ} (ε : Fin (n + 1) → ℤˣ) (z : ℂ) : ℂ :=\n  ∑ j, ((ε j : ℤ) : ℂ) * z ^ (j : ℕ)\n\n/-- The degree-`n` polynomials with $\\pm 1$ coefficients such that $|f(z)|\\geq 1$ for all\n$|z|=1$. -/\ndef exceptional (n : ℕ) : Set (Fin (n + 1) → ℤˣ) :=\n  {ε | ∀ z : ℂ, ‖z‖ = 1 → 1 ≤ ‖eval ε z‖}\n\n/-- $m(f)=\\min_{|z|=1}|f(z)|$. -/\nnoncomputable def m {n : ℕ} (ε : Fin (n + 1) → ℤˣ) : ℝ :=\n  sInf ((fun z ↦ ‖eval ε z‖) '' Metric.sphere (0 : ℂ) 1)\n\nopen scoped Classical in\n/-- The probability that a uniformly random degree-`n` polynomial with $\\pm 1$ coefficients\nsatisfies `P`. -/\nnoncomputable def prob (n : ℕ) (P : (Fin (n + 1) → ℤˣ) → Prop) : ℝ :=\n  ((univ.filter P).card : ℝ) / 2 ^ (n + 1)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIs it true that all except at most $o(2^n)$ many degree $n$ polynomials with $\\pm 1$-valued\ncoefficients $f(z)$ have $\\lvert f(z)\\rvert <1$ for some $\\lvert z\\rvert=1$?\n\nThe answer is yes: Littlewood [Li66] conjectured the stronger $m(f)=o(1)$ almost surely, which\nwas proved by Kashin [Ka87].\n-/\n@[category research solved, question, AMS 30 60, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos525.lean#L118\"]\ntheorem erdos_525.parts.i :\n    (fun n : ℕ ↦ ((exceptional n).ncard : ℝ)) =o[atTop] fun n : ℕ ↦ (2 : ℝ) ^ n := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWhat is the behaviour of\n$$m(f)=\\min_{\\lvert z\\rvert=1}\\lvert f(z)\\rvert?$$\n\nCook and Nguyen [CoNg21] have identified the limiting distribution, proving that for any\n$\\epsilon>0$\n$$\\lim_{n\\to \\infty} \\mathbb{P}(m(f) > \\epsilon n^{-1/2}) = e^{-\\epsilon \\lambda}$$\nwhere $\\lambda=\\sqrt{\\pi/12}$.\n-/\n@[category research solved, AMS 30 60, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos525.lean#L118\"]\ntheorem erdos_525.parts.ii (ε : ℝ) (hε : 0 < ε) :\n    Tendsto (fun n : ℕ ↦ prob n fun f ↦ ε / √n < m f) atTop\n      (nhds (exp (-√(π / 12) * ε))) := by\n  sorry\n\n/-- Littlewood [Li66] conjectured that $m(f)=o(1)$ holds almost surely; this was proved by\nKashin [Ka87]. -/\n@[category research solved, AMS 30 60]\ntheorem erdos_525.variants.kashin (δ : ℝ) (hδ : 0 < δ) :\n    Tendsto (fun n : ℕ ↦ prob n fun f ↦ m f < δ) atTop (nhds 1) := by\n  sorry\n\n/-- Konyagin [Ko94] proved that $m(f)\\leq n^{-1/2+o(1)}$ almost surely. -/\n@[category research solved, AMS 30 60]\ntheorem erdos_525.variants.konyagin (δ : ℝ) (hδ : 0 < δ) :\n    Tendsto (fun n : ℕ ↦ prob n fun f ↦ m f ≤ (n : ℝ) ^ (-1 / 2 + δ : ℝ)) atTop\n      (nhds 1) := by\n  sorry\n\n/-- Konyagin and Schlag [KoSc99] proved that for any $\\epsilon>0$\n$$\\limsup_{n\\to \\infty} \\mathbb{P}(m(f) \\leq \\epsilon n^{-1/2})\\ll \\epsilon.$$ -/\n@[category research solved, AMS 30 60]\ntheorem erdos_525.variants.konyagin_schlag :\n    ∃ C : ℝ, ∀ ε : ℝ, 0 < ε →\n      limsup (fun n : ℕ ↦ prob n fun f ↦ m f ≤ ε / √n) atTop ≤ C * ε := by\n  sorry\n\nend Erdos525\n",
  "statement_hash": "ab6972251ec846c4d736e33b7c81fde6cc10b8b362e0383b89c03d6b547a9263",
  "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."
}