{
  "id": "2724",
  "ident": "NS.02724",
  "slug": "erdos-650",
  "title": "Erdős Problem 650",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f(m)$ be such that if $A\\subseteq \\{1,\\ldots,N\\}$ has $\\lvert A\\rvert=m$ then every interval\nin $[1,\\infty)$ of length $2N$ contains $\\geq f(m)$ many distinct integers $b_1,\\ldots,b_r$ where\neach $b_i$ is divisible by some $a_i\\in A$, where $a_1,\\ldots,a_r$ are distinct.\n\nEstimate $f(m)$.\n\nGPT 5.4 Pro (prompted by He, Li, and Tang) proved $f(m)\\leq \\lceil 2\\sqrt{m}\\rceil$. A\ncorresponding lower bound was given by GPT 5.4 Pro and Aristotle; it is now known (see the paper\nof van Doorn, Li, and Tang [VLT26]) that\n$$f(m) = \\min(m, \\lceil 2\\sqrt{m}\\rceil)$$\nfor all $m$.\n\nThis was formalized in Lean by van Doorn using Aristotle.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos650.erdos_650.parts.i",
  "statement_lean": "theorem erdos_650.parts.i (m : ℕ) : f m = min m ⌈2 * Real.sqrt m⌉₊",
  "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 650\n\n*References:*\n- [erdosproblems.com/650](https://www.erdosproblems.com/650)\n- [Er78] Erdős, Paul, *Problems and results in combinatorial analysis and combinatorial number\n  theory*. Proceedings of the Ninth Southeastern Conference on Combinatorics, Graph Theory, and\n  Computing (Florida Atlantic Univ., Boca Raton, Fla., 1978) (1978), 29-40.\n- [Er86c] Erdős, P., *Some problems on number theory*. (1986), 53-67.\n- [Er95c] Erdős, Paul, *Some problems in number theory*. Octogon Math. Mag. (1995), 3-5.\n- [ErSu59] Erdős, Pál and Surányi, János, *Bemerkungen zu einer Aufgabe eines mathematischen\n  Wettbewerbs*. Mat. Lapok (1959), 39-48.\n- [VLT26] W. Van Doorn, Y. Li, and Q. Tang, *Optimal bounds for an Erdős problem on matching\n  integers to distinct multiples*. arXiv:2603.28636 (2026).\n-/\n\n@[expose] public section\n\nnamespace Erdos650\n\n/--\n`f m` is the largest `r` such that whenever `A ⊆ {1, …, N}` has `m` elements, every interval\nin `[1, ∞)` of length `2 * N` contains `r` distinct integers `b 0, …, b (r - 1)`, each `b i`\nbeing divisible by some `a i ∈ A`, where `a 0, …, a (r - 1)` are distinct. -/\nnoncomputable def f (m : ℕ) : ℕ :=\n  sSup {r : ℕ | ∀ N : ℕ, ∀ A ⊆ Finset.Icc 1 N, A.card = m → ∀ x : ℝ, 1 ≤ x →\n    ∃ a b : Fin r → ℕ, (Function.Injective a) ∧ (Function.Injective b) ∧\n      (∀ i, a i ∈ A) ∧ (∀ i, (b i : ℝ) ∈ Set.Ioo x (x + 2 * (N : ℝ))) ∧ (∀ i, a i ∣ b i)}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $f(m)$ be such that if $A\\subseteq \\{1,\\ldots,N\\}$ has $\\lvert A\\rvert=m$ then every interval\nin $[1,\\infty)$ of length $2N$ contains $\\geq f(m)$ many distinct integers $b_1,\\ldots,b_r$ where\neach $b_i$ is divisible by some $a_i\\in A$, where $a_1,\\ldots,a_r$ are distinct.\n\nEstimate $f(m)$.\n\nGPT 5.4 Pro (prompted by He, Li, and Tang) proved $f(m)\\leq \\lceil 2\\sqrt{m}\\rceil$. A\ncorresponding lower bound was given by GPT 5.4 Pro and Aristotle; it is now known (see the paper\nof van Doorn, Li, and Tang [VLT26]) that\n$$f(m) = \\min(m, \\lceil 2\\sqrt{m}\\rceil)$$\nfor all $m$.\n\nThis was formalized in Lean by van Doorn using Aristotle.\n-/\n@[category research solved, AMS 5 11, formal_proof using lean4 at\n\"https://github.com/Woett/Lean-files/blob/main/ErdosProblem650.lean\"]\ntheorem erdos_650.parts.i (m : ℕ) : f m = min m ⌈2 * Real.sqrt m⌉₊ := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $f(m)$ be such that if $A\\subseteq \\{1,\\ldots,N\\}$ has $\\lvert A\\rvert=m$ then every interval\nin $[1,\\infty)$ of length $2N$ contains $\\geq f(m)$ many distinct integers $b_1,\\ldots,b_r$ where\neach $b_i$ is divisible by some $a_i\\in A$, where $a_1,\\ldots,a_r$ are distinct.\n\nIn particular is it true that $f(m)\\leq \\sqrt{m}$?\n\nGPT 5.4 Pro (prompted by He, Li, and Tang) proved $f(m)\\leq \\lceil 2\\sqrt{m}\\rceil$. A\ncorresponding lower bound was given by GPT 5.4 Pro and Aristotle; it is now known (see the paper\nof van Doorn, Li, and Tang [VLT26]) that\n$$f(m) = \\min(m, \\lceil 2\\sqrt{m}\\rceil)$$\nfor all $m$.\n\nThis was formalized in Lean by van Doorn using Aristotle.\n-/\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at\n\"https://github.com/Woett/Lean-files/blob/main/ErdosProblem650.lean\"]\ntheorem erdos_650.parts.ii : ¬ ∀ m : ℕ, (f m : ℝ) ≤ Real.sqrt m := by\n  sorry\n\n/--\nErdős and Surányi [ErSu59] proved that $f(m)\\geq\\sqrt{m}$.\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_650.variants.erdos_suranyi (m : ℕ) : Real.sqrt m ≤ (f m : ℝ) := by\n  sorry\n\n/--\nErdős and Selfridge proved (see [Er78] and [Er86c]) that $f(m^2)\\leq 2m$, which implies\n$f(m)\\leq 2\\lceil \\sqrt{m}\\rceil$ for all $m$.\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_650.variants.erdos_selfridge (m : ℕ) : f (m ^ 2) ≤ 2 * m := by\n  sorry\n\nend Erdos650\n",
  "statement_hash": "8fc05f58281a9725a6a3cb4c29bece027260779bd3d5d919af9cfe669944aca0",
  "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."
}