{
  "id": "3651",
  "ident": "NS.03651",
  "slug": "erdos-929",
  "title": "Erdős Problem 929",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $k\\geq 2$ be large and let $S(k)$ be the minimal $x$ such that there is a positive density set\nof $n$ where\n$$n+1,n+2,\\ldots,n+k$$\nare all divisible by primes $\\leq x$.\n\nEstimate $S(k)$ - in particular, is it true that $S(k)\\geq k^{1-o(1)}$?\n\nA problem of Erdős [Er76d, p. 26]. This is the first part. We read \"estimate\" as\n$S(k) = \\Theta(\\text{answer})$ as $k \\to \\infty$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos929.erdos_929.parts.i",
  "statement_lean": "theorem erdos_929.parts.i : (fun k ↦ (S k : ℝ)) =Θ[atTop] erdos_929.parts.i.answer",
  "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 929\n\n*References:*\n- [erdosproblems.com/929](https://www.erdosproblems.com/929)\n- [Er76d] Erdős, P., *Problems and results on number theoretic properties of consecutive integers\n  and related questions*. Proceedings of the Fifth Manitoba Conference on Numerical Mathematics\n  (Univ. Manitoba, Winnipeg, Man., 1975) (1976), 25-44.\n  [PDF](https://www.renyi.hu/~p_erdos/1976-39.pdf)\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos929\n\n/-- Each of the integers `n + 1, …, n + k` is divisible by some prime `≤ x`. -/\ndef AllHaveSmallPrimeFactor (x k n : ℕ) : Prop :=\n  ∀ i ∈ Finset.Icc 1 k, ∃ p : ℕ, p.Prime ∧ p ≤ x ∧ p ∣ n + i\n\n/-- $S(k)$ is the least $x$ such that the set of $n$ for which each of $n+1, \\ldots, n+k$ is\ndivisible by a prime $\\leq x$ has positive density.\n\nThe set of such $n$ is periodic modulo the product of the primes $\\leq x$, so its density exists.\nWe let $x$ range over `ℕ`: only the primes $\\leq x$ matter, so the least $x$ is a prime and nothing\nchanges if $x$ is real. For every `k` the value `x = k + 1` is admissible (take\n$n \\equiv 1 \\pmod{(k+1)!}$), so `sInf` is a true minimum. For `k = 0` the condition is vacuous and\n`S 0 = 0`. -/\nnoncomputable def S (k : ℕ) : ℕ :=\n  sInf {x : ℕ | {n : ℕ | AllHaveSmallPrimeFactor x k n}.HasPosDensity}\n\n/-- If the set of `n` such that each of `n + 1, …, n + k` is divisible by a prime `≤ x` has\npositive density, then `S k ≤ x`. -/\n@[category API, AMS 11]\ntheorem S_le {k x : ℕ} (h : {n : ℕ | AllHaveSmallPrimeFactor x k n}.HasPosDensity) :\n    S k ≤ x := by\n  unfold S\n  exact Nat.sInf_le h\n\ndef erdos_929.parts.i.answer : ℕ → ℝ := sorry\n\n/--\nLet $k\\geq 2$ be large and let $S(k)$ be the minimal $x$ such that there is a positive density set\nof $n$ where\n$$n+1,n+2,\\ldots,n+k$$\nare all divisible by primes $\\leq x$.\n\nEstimate $S(k)$ - in particular, is it true that $S(k)\\geq k^{1-o(1)}$?\n\nA problem of Erdős [Er76d, p. 26]. This is the first part. We read \"estimate\" as\n$S(k) = \\Theta(\\text{answer})$ as $k \\to \\infty$.\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_929.parts.i : (fun k ↦ (S k : ℝ)) =Θ[atTop] erdos_929.parts.i.answer := by\n  sorry\n\n/--\nLet $k\\geq 2$ be large and let $S(k)$ be the minimal $x$ such that there is a positive density set\nof $n$ where\n$$n+1,n+2,\\ldots,n+k$$\nare all divisible by primes $\\leq x$.\n\nEstimate $S(k)$ - in particular, is it true that $S(k)\\geq k^{1-o(1)}$?\n\nThis is the second part. We read $o(1)$ as an arbitrary $\\varepsilon > 0$ for all large $k$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_929.parts.ii :\n    ∀ ε : ℝ, 0 < ε → ∀ᶠ k : ℕ in atTop, (k : ℝ) ^ (1 - ε) ≤ (S k : ℝ) := by\n  sorry\n\n/--\nIt follows from Rosser's sieve that $S(k)> k^{1/2-o(1)}$.\n\nErdős [Er76d, p. 26] states this for the index $\\ell$ with $p_\\ell = S(k)$. Since\n$S(k) = p_\\ell \\geq \\ell$, the bound transfers to $S(k)$. The $o(1)$ is stated with an arbitrary\n$\\varepsilon > 0$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_929.variants.rosser :\n    ∀ ε : ℝ, 0 < ε → ∀ᶠ k : ℕ in atTop, (k : ℝ) ^ ((1 : ℝ) / 2 - ε) ≤ (S k : ℝ) := by\n  sorry\n\n/--\nIt is trivial that $S(k)\\leq k+1$ since, for example, one can take $n\\equiv 1\\pmod{(k+1)!}$.\n-/\n@[category textbook, AMS 11]\ntheorem erdos_929.variants.trivial_upper (k : ℕ) : S k ≤ k + 1 := by\n  sorry\n\nend Erdos929\n",
  "statement_hash": "1cd8e3f8c4662fffdab695937a3b5ab61cbf86c958747783fad8c2f38201a99c",
  "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."
}