{
  "id": "3872",
  "ident": "NS.03872",
  "slug": "erdos-987",
  "title": "Erdős Problem 987",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Question 1:\n\nIs it true that $\\limsup_{k \\to \\infty} A_k = \\infty$?\n\nErdős [Er64b] remarks it is \"easy to see\" that $\\limsup_k \\sup_n |\\sum_{j \\le n} e(k x_j)| = \\infty$.\nErdős [Er65b] later found a \"very easy\" proof that $A_k \\gg \\log k$ for infinitely many $k$.\nClunie [Cl67] proved that $A_k \\gg k^{1/2}$ for infinitely many $k$, which implies the answer is\nyes (Tao independently found a proof). This is Problem 7.21 in [Ha74].",
  "subjects": [
    "math.NT",
    "math.CA",
    "msc:11",
    "msc:40",
    "msc:42"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos987.erdos_987.parts.i",
  "statement_lean": "theorem erdos_987.parts.i :\n    ∀ (x : ℕ → ℝ) (_ : ∀ j : ℕ, x j ∈ Set.Ioo (0 : ℝ) 1),\n      atTop.limsup (fun k : ℕ => A x k) = ⊤",
  "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 987\n\n*References:*\n- [erdosproblems.com/987](https://www.erdosproblems.com/987)\n- [APSSV26b] B. Alexeev, M. Putterman, M. Sawhney, M. Sellke, and G. Valiant,\n  [Short proofs in combinatorics, probability, and number theory II](https://arxiv.org/abs/2604.06609).\n  arXiv:2604.06609 (2026).\n- [Cl67] Clunie, J., On a problem of Erdős. J. London Math. Soc. (1967), 133--136.\n- [Er64b] Erdős, P., Problems and results on diophantine approximations. Compositio Math. (1964),\n  52-65.\n- [Er65b] Erdős, P., Some remarks on number theory. Israel J. Math. (the actual reference\n  cited by Clunie 1967 as [2]; the erdosproblems.com bibliography points to a different\n  Erdős 1965 paper, \"Some recent advances and current problems in number theory\" (Lectures\n  on Modern Mathematics III, 1965, 196-244), which does not appear to contain the\n  exponential-sum log-bound proof).\n- [Ha74] Hayman, W. K., Research problems in function theory: new problems. (1974), 155--180.\n- [Li69] Lindström, B., An inequality for $B_2$-sequences. J. Combinatorial Theory (1969), 211-212.\n-/\n\n@[expose] public section\n\nopen Filter Finset Asymptotics\nopen scoped ExponentialSum\n\nnamespace Erdos987\n\n/-\nHere we use 0-indexing for generality and convenience, while in the original problem\nformulation 1-indexing was used. This change does not affect the meaning of the problem.\nIn the description of the problem below we remain faithful to the original one.\n-/\n\n/--\nFor an infinite sequence $x_1, x_2, \\ldots \\in (0, 1)$, define\n$$A_k = \\limsup_{n \\to \\infty} \\left\\lvert \\sum_{j \\le n} e(k x_j) \\right\\rvert,$$\nwhere $e(x) = e^{2\\pi i x}$.\n-/\nnoncomputable def A (x : ℕ → ℝ) (k : ℕ) : EReal :=\n  atTop.limsup fun n : ℕ => (‖∑ j ∈ range n, e (k * x j)‖ : EReal)\n\n/- ## Question 1 -/\n\nset_option linter.style.formal_proof_palomar false in\n/-- Question 1:\n\nIs it true that $\\limsup_{k \\to \\infty} A_k = \\infty$?\n\nErdős [Er64b] remarks it is \"easy to see\" that $\\limsup_k \\sup_n |\\sum_{j \\le n} e(k x_j)| = \\infty$.\nErdős [Er65b] later found a \"very easy\" proof that $A_k \\gg \\log k$ for infinitely many $k$.\nClunie [Cl67] proved that $A_k \\gg k^{1/2}$ for infinitely many $k$, which implies the answer is\nyes (Tao independently found a proof). This is Problem 7.21 in [Ha74]. -/\n@[category research solved, question, AMS 11 40 42, formal_proof using lean4 at\n\"https://github.com/Marti2203/formal-conjectures/blob/19c63d48acce3099c242b059518c49bf8dc0eab8/FormalConjectures/ErdosProblems/987.lean\"]\ntheorem erdos_987.parts.i :\n    ∀ (x : ℕ → ℝ) (_ : ∀ j : ℕ, x j ∈ Set.Ioo (0 : ℝ) 1),\n      atTop.limsup (fun k : ℕ => A x k) = ⊤ := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Erdős [Er64b] remarks it is \"easy to see\" that for every infinite sequence\n$x_1, x_2, \\ldots \\in (0, 1)$,\n$$\\limsup_{k \\to \\infty} \\sup_n \\left\\lvert \\sum_{j \\le n} e(k x_j) \\right\\rvert = \\infty.$$ -/\n@[category research solved, AMS 11 40 42, formal_proof using lean4 at\n\"https://github.com/Marti2203/formal-conjectures/blob/19c63d48acce3099c242b059518c49bf8dc0eab8/FormalConjectures/ErdosProblems/987.lean\"]\ntheorem erdos_987.variants.sup_limsup_infty\n    (x : ℕ → ℝ) (hx : ∀ j : ℕ, x j ∈ Set.Ioo (0 : ℝ) 1) :\n    atTop.limsup (fun k : ℕ =>\n      ⨆ n : ℕ, ((‖∑ j ∈ range n, e ((k : ℝ) * x j)‖ : ℝ) : EReal)) = ⊤ := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Erdős [Er65b] proved that, for every infinite sequence $x_1, x_2, \\ldots \\in (0, 1)$,\n$A_k \\gg \\log k$ for infinitely many $k$. -/\n@[category research solved, AMS 11 40 42, formal_proof using lean4 at\n\"https://github.com/Marti2203/formal-conjectures/blob/19c63d48acce3099c242b059518c49bf8dc0eab8/FormalConjectures/ErdosProblems/987.lean\"]\ntheorem erdos_987.variants.log_lower_bound\n    (x : ℕ → ℝ) (_hx : ∀ j : ℕ, x j ∈ Set.Ioo (0 : ℝ) 1) :\n    ∃ c > 0, ∃ᶠ k : ℕ in atTop, ((c * Real.log k : ℝ) : EReal) ≤ A x k := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Clunie [Cl67] proved that, for every infinite sequence $x_1, x_2, \\ldots \\in (0, 1)$,\n$A_k \\gg k^{1/2}$ for infinitely many $k$. (Tao independently found a proof.) -/\n@[category research solved, AMS 11 40 42, formal_proof using lean4 at\n\"https://github.com/Marti2203/formal-conjectures/blob/19c63d48acce3099c242b059518c49bf8dc0eab8/FormalConjectures/ErdosProblems/987.lean\"]\ntheorem erdos_987.variants.sqrt_lower_bound\n    (x : ℕ → ℝ) (hx : ∀ j : ℕ, x j ∈ Set.Ioo (0 : ℝ) 1) :\n    ∃ c > 0, ∃ᶠ k : ℕ in atTop, ((c * Real.sqrt k : ℝ) : EReal) ≤ A x k := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- **Linear upper bound (weakened).** A first weakened version of Clunie's `A_k ≤ k`: there\nexists a sequence $x \\in (0,1)$ with $A_k \\le 2k$ for all $k \\ge 1$. The witness is the\n(shifted) van der Corput sequence. For the tighter $A_k \\le k + 1$ bound see\n`linear_upper_bound_clunie`. -/\n@[category research solved, AMS 11 40 42, formal_proof using lean4 at\n\"https://github.com/Marti2203/formal-conjectures/blob/19c63d48acce3099c242b059518c49bf8dc0eab8/FormalConjectures/ErdosProblems/987.lean\"]\ntheorem erdos_987.variants.linear_upper_bound_weak :\n    ∃ (x : ℕ → ℝ) (_ : ∀ j : ℕ, x j ∈ Set.Ioo (0 : ℝ) 1),\n      ∀ k : ℕ, 1 ≤ k → A x k ≤ ((2 * k : ℝ) : EReal) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- **Linear upper bound (tight via Clunie phase tracking).** Tighter than\n`linear_upper_bound_weak`: there exists a sequence $x \\in (0,1)$ with $A_k \\le k + 1$ for all\n$k \\ge 1$, via the (shifted) van der Corput sequence. Whether the $+1$ can be eliminated to\nrecover Clunie's exact $A_k \\le k$ under the strict $\\mathrm{Ioo}\\,0\\,1$ hypothesis is open in\nthis formalization (see `linear_upper_bound`). -/\n@[category research solved, AMS 11 40 42, formal_proof using lean4 at\n\"https://github.com/Marti2203/formal-conjectures/blob/19c63d48acce3099c242b059518c49bf8dc0eab8/FormalConjectures/ErdosProblems/987.lean\"]\ntheorem erdos_987.variants.linear_upper_bound_clunie :\n    ∃ (x : ℕ → ℝ) (_ : ∀ j : ℕ, x j ∈ Set.Ioo (0 : ℝ) 1),\n      ∀ k : ℕ, 1 ≤ k → A x k ≤ (((k : ℝ) + 1) : EReal) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Clunie [Cl67] proved that there exists an infinite sequence $\\{z_\\nu\\}$ on the unit circle\nwith $A_\\nu \\le \\nu$ for all $\\nu \\ge 1$. Translating $z_\\nu = e(x_\\nu)$, the natural domain of\n$x_\\nu$ is the half-open unit interval $\\mathrm{Ico}\\,0\\,1$, matching the original\n[Er64b]/[Cl67] statement (any unit complex number is allowed, including $z = 1$, i.e. $x = 0$).\n\n**Note**: erdosproblems.com/987 phrases the problem with the *open* interval\n$x_\\nu \\in (0, 1)$, which excludes $z = 1$ and is strictly stronger than what [Er64b]/[Cl67]\nstate; we align with the original papers here. The shifted-vdc $\\le k + 1$ variant under the\nopen interval is preserved as `linear_upper_bound_clunie`. -/\n@[category research solved, AMS 11 40 42, formal_proof using lean4 at\n\"https://github.com/Marti2203/formal-conjectures/blob/19c63d48acce3099c242b059518c49bf8dc0eab8/FormalConjectures/ErdosProblems/987.lean\"]\ntheorem erdos_987.variants.linear_upper_bound :\n    ∃ (x : ℕ → ℝ) (_ : ∀ j : ℕ, x j ∈ Set.Ico (0 : ℝ) 1),\n      ∀ k : ℕ, 1 ≤ k → A x k ≤ ((k : ℝ) : EReal) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- An internal OpenAI model (see [APSSV26b, §3]) proved that there exists an infinite sequence\n$x_1, x_2, \\ldots \\in (0, 1)$ such that\n$\\sup_n \\left\\lvert \\sum_{j \\le n} e(k x_j) \\right\\rvert \\ll (k \\log k)^{1/2}$ for all $k \\ge 1$\n(in particular $A_k \\ll (k \\log k)^{1/2}$).\n\nNote: the bound is restricted to $k \\ge 2$ since $\\log 1 = 0$ would make the RHS vanish at\n$k = 1$, while the LHS $\\|\\sum_{j < n} e(x_j)\\|$ can equal $1$ (e.g. for $n = 1$). -/\n@[category research solved, AMS 11 40 42, formal_proof using lean4 at\n\"https://github.com/Marti2203/formal-conjectures/blob/19c63d48acce3099c242b059518c49bf8dc0eab8/FormalConjectures/ErdosProblems/987.lean\"]\ntheorem erdos_987.variants.sqrt_log_upper_bound :\n    ∃ (x : ℕ → ℝ) (_ : ∀ j : ℕ, x j ∈ Set.Ioo (0 : ℝ) 1) (C : ℝ) (_ : 0 < C),\n      ∀ k n : ℕ, 2 ≤ k → ‖∑ j ∈ range n, e (k * x j)‖ ≤ C * Real.sqrt (k * Real.log k) := by\n  sorry\n\n/- ## Question 2 -/\n\nset_option linter.style.formal_proof_palomar false in\n/-- **Question 2 (parts.ii)**: Is it possible for $A_k = o(k)$? Yes — there exists a sequence\n$(x_n) \\in (0, 1)$ and a bound $b(k) = o(k)$ with $A x k \\le b k$ eventually. A corollary of\n`sqrt_log_upper_bound` (which gives a $\\sqrt{k \\log k}$ bound) plus the asymptotic\n$\\sqrt{k \\log k} = o(k)$. -/\n@[category research solved, question, AMS 11 40 42, formal_proof using lean4 at\n\"https://github.com/Marti2203/formal-conjectures/blob/19c63d48acce3099c242b059518c49bf8dc0eab8/FormalConjectures/ErdosProblems/987.lean\"]\ntheorem erdos_987.parts.ii :\n    ∃ (x : ℕ → ℝ) (_ : ∀ j : ℕ, x j ∈ Set.Ioo (0 : ℝ) 1) (b : ℕ → ℝ),\n      b =o[atTop] (fun k : ℕ => (k : ℝ)) ∧ ∀ᶠ k : ℕ in atTop, A x k ≤ ((b k : ℝ) : EReal) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Liu [Li69] showed that, for any $\\epsilon > 0$, $A_k \\gg k^{1 - \\epsilon}$ infinitely often\nunder the additional assumption that there are only a finite number of distinct points. Clunie\nobserved in the Mathscinet review of [Li69] that under this assumption in fact $A_k = \\infty$\ninfinitely often (the version stated here). -/\n@[category research solved, AMS 11 40 42, formal_proof using lean4 at\n\"https://github.com/Marti2203/formal-conjectures/blob/19c63d48acce3099c242b059518c49bf8dc0eab8/FormalConjectures/ErdosProblems/987.lean\"]\ntheorem erdos_987.variants.finite_distinct_points\n    (x : ℕ → ℝ) (_hx : ∀ j : ℕ, x j ∈ Set.Ioo (0 : ℝ) 1)\n    (hfin : (Set.range x).Finite) :\n    ∃ᶠ k : ℕ in atTop, A x k = ⊤ := by\n  sorry\n\nend Erdos987\n",
  "statement_hash": "f0952074bbb759178063ba9c865f21f547a8e6bf6e4f20d058d3fc775b5f210b",
  "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."
}