{
  "id": "3893",
  "ident": "NS.03893",
  "slug": "erdos-997",
  "title": "Erdős Problem 997",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Is it true that, for every $\\alpha$, the sequence $\\{ \\alpha p_n\\}$ is not well-distributed,\nif $p_n$ is the sequence of primes?\n\nThe answer is yes, by [APSSV26, Section 4]; a Lean formalisation is available in [Mo26].",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos997.erdos_997",
  "statement_lean": "theorem erdos_997 :\n    ∀ α : ℝ, ¬ IsWellDistributed (fun n ↦ Int.fract (α * (n.nth Nat.Prime)))",
  "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 997\n\n*References:*\n- [erdosproblems.com/997](https://www.erdosproblems.com/997)\n- [APSSV26] B. Alexeev, M. Putterman, M. Sawhney, M. Sellke, and G. Valiant,\n  [Short proofs in combinatorics and number theory](https://arxiv.org/abs/2603.29961).\n  arXiv:2603.29961 (2026).\n- [CLLW24] J. Champagne, T. Le, Y.-R. Liu, and T. D. Wooley, Well-distribution modulo one and the\n  primes. arXiv:2406.19491 (2024).\n- [Er64b] Erdős, P., Problems and results on diophantine approximations. Compositio Math. (1964),\n  52-65.\n- [Er85e] Erdős, P., Some problems and results in number theory. Number theory and combinatorics.\n  Japan 1984 (Tokyo, Okayama and Kyoto, 1984) (1985), 65-87.\n- [Hl55] Hlawka, Edmund, Zur formalen {T}heorie der {G}leichverteilung in kompakten {G}ruppen. Rend.\n  Circ. Mat. Palermo (2) (1955), 33--47.\n- [Mo26] P. Monticone, [Lean formalisation of Erdős problem 997](https://live.lean-lang.org/#project=mathlib-v4.28.0&url=https://gist.githubusercontent.com/pitmonticone/016f2ed66b4cd1c4c4b9998095170e60/raw/b7dfc05c525ae385b5835f89f1ada721443e4305/Erdos997.lean) (2026)\n-/\n\n@[expose] public section\n\nopen Set\n\nnamespace Erdos997\n\n/--\nCall $x_1,x_2,\\ldots \\in (0,1)$ well-distributed if, for every $\\epsilon>0$, if $k$ is\nsufficiently large then, for all $n>0$ and intervals $I\\subseteq [0,1]$,\n$\\lvert \\# \\{ n < m\\leq n+k : x_m\\in I\\} - \\lvert I\\rvert k\\rvert < \\epsilon k.$\n\nThe notion of a well-distributed sequence was introduced by Hlawka and Petersen [Hl55].\n-/\ndef IsWellDistributed (x : ℕ → ℝ) : Prop :=\n  ∀ ε > 0, ∀ᶠ k in Filter.atTop, ∀ n : ℕ,\n  ∀ a b, 0 ≤ a → a ≤ b → b ≤ 1 →\n    letI I := Ico a b\n    let count := (Finset.Ioc n (n + k)).filter (fun m ↦ x m ∈ I)\n    abs ((count.card : ℝ) - (b - a) * k) < ε * k\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIs it true that, for every $\\alpha$, the sequence $\\{ \\alpha p_n\\}$ is not well-distributed,\nif $p_n$ is the sequence of primes?\n\nThe answer is yes, by [APSSV26, Section 4]; a Lean formalisation is available in [Mo26].\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://gist.githubusercontent.com/pitmonticone/016f2ed66b4cd1c4c4b9998095170e60/raw/b7dfc05c525ae385b5835f89f1ada721443e4305/Erdos997.lean\"]\ntheorem erdos_997 :\n    ∀ α : ℝ, ¬ IsWellDistributed (fun n ↦ Int.fract (α * (n.nth Nat.Prime))) := by\n  sorry\n\n/--\nErdős proved that, if $n_k$ is a lacunary sequence, then the sequence $\\{ \\alpha n_k\\}$ is not\nwell-distributed for almost all $\\alpha$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_997.variants.lacunary (n : ℕ → ℕ) (h : IsLacunary n) :\n    ∀ᵐ α, ¬ IsWellDistributed (fun k ↦ Int.fract (α * (n k : ℝ))) := by\n  sorry\n\n/--\nHe also claimed in [Er64b] to have proved that there exists an irrational $\\alpha$ for which\n$\\{\\alpha p_n\\}$ is not well-distributed. He later retracted this claim in [Er85e], saying \"The\ntheorem is no doubt correct and perhaps will not be difficult to prove but I never was able to\nreconstruct my 'proof' which perhaps never existed.\"\n\nThe existence of such an $\\alpha$ was established by Champagne, Le, Liu, and Wooley [CLLW24].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_997.variants.irrational :\n    ∃ α : ℝ, Irrational α ∧\n      ¬ IsWellDistributed (fun n ↦ Int.fract (α * (n.nth Nat.Prime))) := by\n  sorry\n\nend Erdos997\n",
  "statement_hash": "c0136688be93aeddbeaa5ef659cf83447fe4a6bbb181e806d34dd9498e82485d",
  "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."
}