{
  "id": "344",
  "ident": "NS.00344",
  "slug": "erdos-1001",
  "title": "Erdős Problem 1001",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $S(N,A,c)$ be the measure of the set of those $\\alpha\\in (0,1)$ such that\n$$\\left\\lvert \\alpha-\\frac{x}{y}\\right\\rvert< \\frac{A}{y^2}$$\nfor some $N\\leq y\\leq cN$ and $(x,y)=1$. Does\n$$\\lim_{N\\to \\infty}S(N,A,c)=f(A,c)$$\nexist?\n\nThis is a problem of Erdős, Szüsz, and Turán [EST58], restated in [Er64b, p. 62]. The existence\nof the limit for all $A>0$ and $c\\geq 1$ was proved by Kesten and Sós [KeSo66]. Boca [Bo08] and\nXiong and Zaharescu [XiZa06, Theorem 2] gave further proofs. We assume $A>0$ and $c\\geq 1$,\nsince otherwise $S=0$. The second question, the explicit form of $f(A,c)$, is not stated here.",
  "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": "Erdos1001.erdos_1001.parts.i",
  "statement_lean": "theorem erdos_1001.parts.i (A c : ℝ) (hA : 0 < A) (hc : 1 ≤ c) :\n    ∃ f : ℝ, Tendsto (fun N : ℕ ↦ S N A c) atTop (𝓝 f)",
  "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 1001\n\n*References:*\n- [erdosproblems.com/1001](https://www.erdosproblems.com/1001)\n- [Er64b] Erdős, P., *Problems and results on diophantine approximations*. Compositio Math.\n  16 (1964), 52-65. [PDF](https://www.numdam.org/item/CM_1964__16__52_0.pdf)\n- [EST58] Erdős, P. and Szüsz, P. and Turán, P., *Remarks on the theory of diophantine\n  approximation*. Colloq. Math. 6 (1958), 119-126.\n- [KeSo66] Kesten, H. and Sós, V. T., *On two problems of Erdős, Szüsz and Turán concerning\n  diophantine approximations*. Acta Arith. 12 (1966/67), 183-192.\n- [XiZa06] Xiong, Maosheng and Zaharescu, Alexandru, *A problem of Erdős-Szüsz-Turán on\n  diophantine approximation*. Acta Arith. 125 (2006), 163-177.\n- [Bo08] Boca, Florin P., *A problem of Erdős, Szüsz and Turán concerning Diophantine\n  approximations*. Int. J. Number Theory 4 (2008), 691-708.\n-/\n\n@[expose] public section\n\nopen Filter MeasureTheory Topology\n\nnamespace Erdos1001\n\n/--\nThe set of $\\alpha\\in(0,1)$ such that $\\lvert\\alpha-x/y\\rvert<A/y^2$ for some integer $x$ and\nsome natural number $y$ with $N\\le y\\le cN$ and $(x,y)=1$. The condition $(x,y)=1$ is\n`x.natAbs.Coprime y`.\n-/\nnoncomputable def approximableSet (N : ℕ) (A c : ℝ) : Set ℝ :=\n  {α | α ∈ Set.Ioo (0 : ℝ) 1 ∧\n    ∃ x : ℤ, ∃ y : ℕ, 0 < y ∧ N ≤ y ∧ (y : ℝ) ≤ c * (N : ℝ) ∧ x.natAbs.Coprime y ∧\n      |α - (x : ℝ) / (y : ℝ)| < A / (y : ℝ) ^ 2}\n\n/--\n$S(N,A,c)$: the Lebesgue measure of `approximableSet N A c`. This set lies in $(0,1)$, so its\nmeasure is finite and `Measure.real` has no junk value. For $A\\le 0$ or $c<1$ the set is empty\nand $S=0$.\n-/\nnoncomputable def S (N : ℕ) (A c : ℝ) : ℝ :=\n  volume.real (approximableSet N A c)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $S(N,A,c)$ be the measure of the set of those $\\alpha\\in (0,1)$ such that\n$$\\left\\lvert \\alpha-\\frac{x}{y}\\right\\rvert< \\frac{A}{y^2}$$\nfor some $N\\leq y\\leq cN$ and $(x,y)=1$. Does\n$$\\lim_{N\\to \\infty}S(N,A,c)=f(A,c)$$\nexist?\n\nThis is a problem of Erdős, Szüsz, and Turán [EST58], restated in [Er64b, p. 62]. The existence\nof the limit for all $A>0$ and $c\\geq 1$ was proved by Kesten and Sós [KeSo66]. Boca [Bo08] and\nXiong and Zaharescu [XiZa06, Theorem 2] gave further proofs. We assume $A>0$ and $c\\geq 1$,\nsince otherwise $S=0$. The second question, the explicit form of $f(A,c)$, is not stated here.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1001.lean#L8077\"]\ntheorem erdos_1001.parts.i (A c : ℝ) (hA : 0 < A) (hc : 1 ≤ c) :\n    ∃ f : ℝ, Tendsto (fun N : ℕ ↦ S N A c) atTop (𝓝 f) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nErdős, Szüsz, and Turán [EST58] proved that\n$$f(A,c)=\\frac{12 A\\log c}{\\pi^2}$$\nwhen $0<A< \\frac{c}{1+c^2}$. Here $c\\geq 1$, since the range $N\\leq y\\leq cN$ is empty for\n$c<1$.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1001.lean#L1047\"]\ntheorem erdos_1001.variants.est_formula (A c : ℝ) (hA : 0 < A) (hc : 1 ≤ c)\n    (hAc : A < c / (1 + c ^ 2)) :\n    Tendsto (fun N : ℕ ↦ S N A c) atTop (𝓝 (12 * A * Real.log c / Real.pi ^ 2)) := by\n  sorry\n\nend Erdos1001\n",
  "statement_hash": "237ac7ee1efd9e2a97f4e4e3f70e2e4551543d87186eed8098ffd83267e8dee0",
  "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."
}