{
  "id": "3017",
  "ident": "NS.03017",
  "slug": "erdos-726",
  "title": "Erdős Problem 726",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "As $n\\to \\infty$ ranges over integers\n$\\sum_{p\\leq n}1_{n\\in (p/2,p)\\pmod{p}}\\frac{1}{p}\\sim \\frac{\\log\\log n}{2}$?\n\nA conjecture of Erdős, Graham, Ruzsa, and Straus [EGRS75].\n\nBy $n\\in (p/2,p)\\pmod{p}$ we mean $n\\equiv r\\pmod{p}$ for some integer $r$ with $p/2<r<p$.\nThe remainder `n % p` is computed in `ℕ` before casting to `ℝ`.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos726.erdos_726",
  "statement_lean": "theorem erdos_726 :\n    (fun n : ℕ ↦ ∑ p ∈ (range (n + 1)).filter\n        (fun p : ℕ ↦ p.Prime ∧ (p : ℝ) / 2 < ((n % p : ℕ) : ℝ)),\n      (1 : ℝ) / (p : ℝ))\n    ~[atTop] (fun n : ℕ ↦ Real.log (Real.log (n : ℝ)) / 2)",
  "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 726\n\n*References:*\n- [erdosproblems.com/726](https://www.erdosproblems.com/726)\n- [EGRS75] Erdős, P., and Graham, R. L. and Ruzsa, I. Z. and Straus, E. G., On the prime factors of\n  $(\\sp{2n}\\sb{n})$. Math. Comp. (1975), 83-92.\n-/\n\n@[expose] public section\n\nopen Nat Filter Finset\nopen scoped Topology Asymptotics\n\nnamespace Erdos726\n\n/--\nAs $n\\to \\infty$ ranges over integers\n$\\sum_{p\\leq n}1_{n\\in (p/2,p)\\pmod{p}}\\frac{1}{p}\\sim \\frac{\\log\\log n}{2}$?\n\nA conjecture of Erdős, Graham, Ruzsa, and Straus [EGRS75].\n\nBy $n\\in (p/2,p)\\pmod{p}$ we mean $n\\equiv r\\pmod{p}$ for some integer $r$ with $p/2<r<p$.\nThe remainder `n % p` is computed in `ℕ` before casting to `ℝ`.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_726 :\n    (fun n : ℕ ↦ ∑ p ∈ (range (n + 1)).filter\n        (fun p : ℕ ↦ p.Prime ∧ (p : ℝ) / 2 < ((n % p : ℕ) : ℝ)),\n      (1 : ℝ) / (p : ℝ))\n    ~[atTop] (fun n : ℕ ↦ Real.log (Real.log (n : ℝ)) / 2) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe classical estimate of Mertens states that $\\sum_{p\\leq n}\\frac{1}{p}\\sim \\log\\log n$.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/74888affffcf320d798f78a2fb45d13c86704d89/erdos-726/Solution.lean#L36\"]\ntheorem erdos_726.variants.mertens_estimate :\n    (fun n : ℕ ↦ ∑ p ∈ (range (n + 1)).filter (fun p ↦ p.Prime), (1 : ℝ) / ((p : ℕ) : ℝ))\n    ~[atTop] (fun n : ℕ ↦ Real.log (Real.log (n : ℝ))) := by\n  sorry\n\nend Erdos726\n",
  "statement_hash": "4f4a11a3fd99507a153da92b998b6313f16d606ebd37d74e73dfac4ee738db90",
  "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."
}