{
  "id": "2183",
  "ident": "NS.02183",
  "slug": "erdos-450",
  "title": "Erdős Problem 450",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "How large must $y=y(\\epsilon,n)$ be such that the number of integers in\n$(x,x+y)$ with a divisor in $(n,2n)$ is at most $\\epsilon y$?\n\nThe bound is required for every $x$ and every window length at least $y$, and\n$y(\\epsilon,n)$ is the least such threshold (or $\\infty$ if there is none).\nA **linear** scale $y \\le C(\\epsilon) n$ is known to suffice for fixed $\\epsilon$\nand all large $n$ (see `erdos_450.linear_scale_suffices`).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/450",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos450.erdos_450",
  "statement_lean": "theorem erdos_450 (ε : ℝ) (hε : 0 < ε) (n : ℕ) :\n    windowThreshold ε n = erdos_450.answer ε n",
  "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 450\n\n*Reference:* [erdosproblems.com/450](https://www.erdosproblems.com/450)\n-/\n\n@[expose] public section\n\nnamespace Erdos450\n\n/-- `m` has a divisor strictly between `n` and `2n`. -/\ndef HasMediumDivisor (n m : ℕ) : Prop := ∃ d : ℕ, n < d ∧ d < 2 * n ∧ d ∣ m\n\nopen scoped Classical in\n/-- The number of integers strictly between `x` and `x + y` with a divisor in\n`(n, 2n)`. -/\nnoncomputable def localCount (n x y : ℕ) : ℕ :=\n  ((Finset.Ioo x (x + y)).filter (HasMediumDivisor n)).card\n\n/-- Every window `(x, x+y)` has at most `ε y` integers with a divisor in `(n, 2n)`. -/\ndef UniformlySparse (ε : ℝ) (n y : ℕ) : Prop := ∀ x : ℕ, (localCount n x y : ℝ) ≤ ε * (y : ℝ)\n\n/-- `Y ε n` is a sufficient window length: for every `ε > 0`, all large `n`, and\nevery `y ≥ Y ε n`, the window is `ε`-sparse. -/\ndef IsSufficientScale (Y : ℝ → ℕ → ℕ) : Prop :=\n  ∀ ε : ℝ, 0 < ε → ∃ N : ℕ, ∀ n : ℕ, N ≤ n → ∀ y : ℕ, Y ε n ≤ y → UniformlySparse ε n y\n\n/-- The least window length `y₀` such that every window `(x, x+y)` with `y ≥ y₀` is\n`ε`-sparse, or `⊤` if no such `y₀` exists. -/\nnoncomputable def windowThreshold (ε : ℝ) (n : ℕ) : ℕ∞ :=\n  ⨅ y : {y : ℕ // ∀ z ≥ y, UniformlySparse ε n z}, (y.1 : ℕ∞)\n\ndef erdos_450.answer (ε : ℝ) (n : ℕ) : ℕ∞ := sorry\n\n/--\nHow large must $y=y(\\epsilon,n)$ be such that the number of integers in\n$(x,x+y)$ with a divisor in $(n,2n)$ is at most $\\epsilon y$?\n\nThe bound is required for every $x$ and every window length at least $y$, and\n$y(\\epsilon,n)$ is the least such threshold (or $\\infty$ if there is none).\nA **linear** scale $y \\le C(\\epsilon) n$ is known to suffice for fixed $\\epsilon$\nand all large $n$ (see `erdos_450.linear_scale_suffices`).\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_450 (ε : ℝ) (hε : 0 < ε) (n : ℕ) :\n    windowThreshold ε n = erdos_450.answer ε n := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nA translate-uniform **linear** scale suffices: there is a sufficient window\nlength `Y` with `Y ε n ≤ C(ε) · n`. This is an upper bound on the optimal scale,\nnot the exact threshold asked for in `erdos_450`.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at \"https://github.com/williamjblair/lean-proofs/blob/4f915a323443bfb1709a6805a013812016dca88a/starfleet/erdos-450/Research/TuranAnswer.lean\"]\ntheorem erdos_450.linear_scale_suffices :\n    ∃ Y : ℝ → ℕ → ℕ,\n      (∀ ε : ℝ, 0 < ε → ∃ C : ℝ, ∀ n : ℕ, (Y ε n : ℝ) ≤ C * n) ∧ IsSufficientScale Y := by\n  sorry\n\nend Erdos450\n",
  "statement_hash": "41f6c3de6924d325296110f3de488a8bc0b27b28946af9356755f98e43d3295e",
  "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."
}