{
  "id": "1385",
  "ident": "NS.01385",
  "slug": "erdos-225",
  "title": "Erdős Problem 225",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let\n$$ f(\\theta) = \\sum_{0\\leq k\\leq n}c_k e^{ik\\theta}$$\nbe a trigonometric polynomial all of whose roots are real, such that\n$\\max_{\\theta\\in [0,2\\pi]}\\lvert f(\\theta)\\rvert=1$. Then\n$$\\int_0^{2\\pi}\\lvert f(\\theta)\\rvert \\mathrm{d}\\theta \\leq 4.$$\n\nThis is Problem 4.20 in [Ha74], where it is attributed to Erdős.\n\nThis was solved independently by Kristiansen [Kr74] (only in the case when $c_k\\in\\mathbb{R}$)\nand Saff and Sheil-Small [SaSh74] (for general $c_k\\in \\mathbb{C}$). (The original proof of\nKristiansen contained an error which was later fixed in [Kr76].)\n\n\"All roots real\" refers to the zeros of $f$ as an entire function of $\\theta\\in\\mathbb{C}$. We\nnormalise by $c_0c_n\\neq 0$ and $n\\geq 1$: a factor $e^{im\\theta}$ affects neither the zeros nor\n$\\lvert f\\rvert$ on the real line, while a single term $c_me^{im\\theta}$ has no zeros and\n$\\int_0^{2\\pi}\\lvert f\\rvert = 2\\pi$.",
  "subjects": [
    "math.CV",
    "math.CA",
    "msc:30",
    "msc:42"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos225.erdos_225",
  "statement_lean": "theorem erdos_225 :\n    ∀ (n : ℕ) (c : ℕ → ℂ), 0 < n → c 0 ≠ 0 → c n ≠ 0 →\n    (∀ z : ℂ, trigPoly n c z = 0 → z.im = 0) →\n    (∀ θ ∈ Icc (0 : ℝ) (2 * Real.pi), ‖trigPoly n c θ‖ ≤ 1) →\n    (∃ θ ∈ Icc (0 : ℝ) (2 * Real.pi), ‖trigPoly n c θ‖ = 1) →\n    ∫ θ in (0 : ℝ)..(2 * Real.pi), ‖trigPoly n c θ‖ ≤ 4",
  "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 225\n\n*References:*\n- [erdosproblems.com/225](https://www.erdosproblems.com/225)\n- [Er40b] Erdős, P., *Note on some elementary properties of polynomials*. Bull. Amer. Math. Soc.\n  (1940), 954-958.\n- [Er57] Erdős, Paul, *Some unsolved problems*. Michigan Math. J. (1957), 291-300.\n- [Er61] Erdős, Paul, *Some unsolved problems*. Magyar Tud. Akad. Mat. Kutató Int. Közl. (1961),\n  221-254.\n- [Ha74] Hayman, W. K., *Research problems in function theory: new problems*. (1974), 155-180.\n- [Kr74] Kristiansen, G. K., *Proof of an inequality for trigonometric polynomials*. Proc. Amer.\n  Math. Soc. (1974), 49-57.\n- [SaSh74] Saff, E. B. and Sheil-Small, T., *Coefficient and integral mean estimates for\n  algebraic and trigonometric polynomials with restricted zeros*. J. London Math. Soc. (2)\n  (1974/75), 16-22.\n- [Kr76] Kristiansen, G. K., *Erratum to \"Proof of a polynomial conjecture\"*. Proc. Amer. Math.\n  Soc. (1976), 377.\n-/\n\n@[expose] public section\n\nopen Set\n\nnamespace Erdos225\n\n/-- The trigonometric polynomial $f(z) = \\sum_{0\\leq k\\leq n}c_k e^{ikz}$, as an entire function\nof $z\\in\\mathbb{C}$. -/\nnoncomputable def trigPoly (n : ℕ) (c : ℕ → ℂ) (z : ℂ) : ℂ :=\n  ∑ k ∈ Finset.range (n + 1), c k * Complex.exp (Complex.I * (k * z))\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet\n$$ f(\\theta) = \\sum_{0\\leq k\\leq n}c_k e^{ik\\theta}$$\nbe a trigonometric polynomial all of whose roots are real, such that\n$\\max_{\\theta\\in [0,2\\pi]}\\lvert f(\\theta)\\rvert=1$. Then\n$$\\int_0^{2\\pi}\\lvert f(\\theta)\\rvert \\mathrm{d}\\theta \\leq 4.$$\n\nThis is Problem 4.20 in [Ha74], where it is attributed to Erdős.\n\nThis was solved independently by Kristiansen [Kr74] (only in the case when $c_k\\in\\mathbb{R}$)\nand Saff and Sheil-Small [SaSh74] (for general $c_k\\in \\mathbb{C}$). (The original proof of\nKristiansen contained an error which was later fixed in [Kr76].)\n\n\"All roots real\" refers to the zeros of $f$ as an entire function of $\\theta\\in\\mathbb{C}$. We\nnormalise by $c_0c_n\\neq 0$ and $n\\geq 1$: a factor $e^{im\\theta}$ affects neither the zeros nor\n$\\lvert f\\rvert$ on the real line, while a single term $c_me^{im\\theta}$ has no zeros and\n$\\int_0^{2\\pi}\\lvert f\\rvert = 2\\pi$.\n-/\n@[category research solved, question, AMS 30 42, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos225.lean#L2034\"]\ntheorem erdos_225 :\n    ∀ (n : ℕ) (c : ℕ → ℂ), 0 < n → c 0 ≠ 0 → c n ≠ 0 →\n    (∀ z : ℂ, trigPoly n c z = 0 → z.im = 0) →\n    (∀ θ ∈ Icc (0 : ℝ) (2 * Real.pi), ‖trigPoly n c θ‖ ≤ 1) →\n    (∃ θ ∈ Icc (0 : ℝ) (2 * Real.pi), ‖trigPoly n c θ‖ = 1) →\n    ∫ θ in (0 : ℝ)..(2 * Real.pi), ‖trigPoly n c θ‖ ≤ 4 := by\n  sorry\n\nend Erdos225\n",
  "statement_hash": "c80f6cad0f3711985be4f341db332c676b011dac8e4134c440a002f11eaf69e2",
  "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."
}