{
  "id": "3736",
  "ident": "NS.03736",
  "slug": "erdos-950",
  "title": "Erdős Problem 950",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is it true that $\\liminf f(n)=1$?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos950.erdos_950.parts.i",
  "statement_lean": "theorem erdos_950.parts.i :\n    atTop.liminf (fun n : ℕ ↦ (f n : EReal)) = 1",
  "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 950\n\n*References:*\n- [erdosproblems.com/855](https://www.erdosproblems.com/855)\n- [erdosproblems.com/950](https://www.erdosproblems.com/950)\n- [Er77c] Erdős, Paul, Problems and results on combinatorial number theory. III. Number theory day\n  (Proc. Conf., Rockefeller Univ., New York, 1976) (1977), 43-72.\n- [mathoverflow/508491](https://mathoverflow.net/questions/508491)\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped Asymptotics Nat.Prime\n\nnamespace Erdos950\n\n/--\nLet $f(n) = \\sum_{p<n}\\frac{1}{n-p}$.\n-/\nnoncomputable def f (n : ℕ) : ℝ :=\n  ∑ p ∈ (Finset.range n).filter Prime, (1 : ℝ) / (n - p : ℝ)\n\n/--\nIs it true that $\\liminf f(n)=1$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_950.parts.i :\n    atTop.liminf (fun n : ℕ ↦ (f n : EReal)) = 1 := by\n  sorry\n\n/--\nIs it true that $\\limsup f(n)=\\infty$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_950.parts.ii :\n    atTop.limsup (fun n : ℕ ↦ (f n : EReal)) = ⊤ := by\n  sorry\n\n/--\nIs it true that $f(n)=o(\\log\\log n)$ for all $n$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_950.parts.iii :\n    f =o[atTop] (fun n : ℕ ↦ Real.log (Real.log n)) := by\n  sorry\n\n/--\nThis function was considered by de Bruijn, Erdős, and Turán, who showed that\n$\\sum_{n<x}f(n)\\sim \\sum_{n<x}f(n)^2\\sim x$. They gave no proofs, but a proof of the (harder) second\nclaim is given by Gorodetsky here [mathoverflow/508491].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_950.variants.debruijn_erdos_turan :\n    (fun x : ℕ ↦ ∑ n ∈ Finset.range x, f n) ~[atTop] (fun x : ℕ ↦ (x : ℝ)) ∧\n    (fun x : ℕ ↦ ∑ n ∈ Finset.range x, (f n) ^ 2) ~[atTop] (fun x : ℕ ↦ (x : ℝ)) := by\n  sorry\n\n/--\nErdős writes that a 'weaker conjecture which is perhaps not quite inaccessible' is that,\nfor every $\\epsilon>0$, if $x$ is sufficiently large there exists $y<x$ such that\n$\\pi(x)< \\pi(y)+\\epsilon \\pi(x-y)$. Compare this to [855].\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_950.variants.weaker_pi :\n    ∀ ε > 0, ∀ᶠ x in atTop, ∃ y < x,\n      (π x : ℝ) < (π y : ℝ) + ε * (π (x - y) : ℝ) := by\n  sorry\n\n/--\nHe notes that if $\\pi(x)< \\pi(y)+O\\left(\\frac{x-y}{\\log x}\\right)$ for all $y<x-(\\log x)^C$ for\nsome constant $C>0$ then $f(n)\\ll \\log\\log\\log n$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_950.variants.weaker_pi_implies_f\n    (h : ∃ C > (0 : ℝ), ∃ K > (0 : ℝ), ∀ᶠ x : ℕ in atTop, ∀ y : ℕ,\n      (y : ℝ) < x - (Real.log x) ^ C →\n      (π x : ℝ) < (π y : ℝ) + K * ((x - y : ℝ) / Real.log x)) :\n    f =O[atTop] fun n : ℕ ↦ Real.log (Real.log (Real.log n)) := by\n  sorry\n\n/--\nThe study of $f(p)$ is even harder, and Erdős could not prove that\n$\\sum_{p<x}f(p)^2\\sim \\pi(x)$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_950.variants.sum_primes :\n    (fun x : ℕ ↦ ∑ p ∈ (Finset.range x).filter Prime, (f p) ^ 2) ~[atTop]\n      fun x ↦ (π x : ℝ) := by\n  sorry\n\nend Erdos950\n",
  "statement_hash": "92cfd9efde0cd91d29217d8d25273eb4afde50af6bc5e9722a6bb1509182358c",
  "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."
}