{
  "id": "2198",
  "ident": "NS.02198",
  "slug": "erdos-457",
  "title": "Erdős Problem 457",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Is there some $\\epsilon > 0$ such that there are infinitely\nmany $n$ where all primes $p \\le (2 + \\epsilon) \\log n$ divide\n$$\n  \\prod_{1 \\le i \\le \\log n} (n + i)?\n$$\n\nThis was formalized in Lean by Baretto and van Doorn using Aristotle.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/457",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos457.erdos_457",
  "statement_lean": "theorem erdos_457 : ∃ ε > (0 : ℝ),\n    { (n : ℕ) | ∀ (p : ℕ), p ≤ (2 + ε) * Real.log n → p.Prime →\n      p ∣ ∏ i ∈ Finset.Icc 1 ⌊Real.log n⌋₊, (n + i) }.Infinite",
  "challenge_source": "/-\nCopyright 2025 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 457\n\n*Reference:* [erdosproblems.com/457](https://www.erdosproblems.com/457)\n-/\n\n@[expose] public section\n\nnamespace Erdos457\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIs there some $\\epsilon > 0$ such that there are infinitely\nmany $n$ where all primes $p \\le (2 + \\epsilon) \\log n$ divide\n$$\n  \\prod_{1 \\le i \\le \\log n} (n + i)?\n$$\n\nThis was formalized in Lean by Baretto and van Doorn using Aristotle.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at \"https://github.com/Woett/Lean-files/blob/main/ErdosProblem457.lean\"]\ntheorem erdos_457 : ∃ ε > (0 : ℝ),\n    { (n : ℕ) | ∀ (p : ℕ), p ≤ (2 + ε) * Real.log n → p.Prime →\n      p ∣ ∏ i ∈ Finset.Icc 1 ⌊Real.log n⌋₊, (n + i) }.Infinite := by\n  sorry\n\n/-- Let $q(n, k)$ denote the least prime which does not divide\n$\\prod_{1 \\le i \\le k}(n + i)$. -/\nnoncomputable abbrev q (n : ℕ) (k : ℝ) : ℕ :=\n    Nat.find (Nat.exists_prime_not_dvd (n := ∏ i ∈ Finset.Icc 1 ⌊k⌋₊, (n + i))\n      (Finset.prod_ne_zero_iff.2 fun a ha => by aesop))\n\n/--\nMore generally, let $q(n, k)$ denote the least prime which\ndoes not divide $\\prod_{1 \\le i \\le k}(n + i)$. This\nproblem asks whether $q(n, \\log n) \\ge (2 + \\epsilon) \\log n$\ninfinitely often.\n\nThis follows from `erdos_457`: if every prime $p \\le (2 + \\epsilon) \\log n$\ndivides $\\prod_{1 \\le i \\le \\log n} (n + i)$, then $q(n, \\log n)$, the least\nprime not dividing this product, must exceed $(2 + \\epsilon) \\log n$.\n-/\n@[category research solved, question, AMS 11]\ntheorem erdos_457.variants.qnk : ∃ ε > (0 : ℝ),\n    { (n : ℕ) | (2 + ε) * Real.log n ≤ q n (Real.log n) }.Infinite := by\n  obtain ⟨ε, hε, hinf⟩ := erdos_457\n  refine ⟨ε, hε, hinf.mono ?_⟩\n  intro n hn\n  by_contra h\n  obtain ⟨hp, hndvd⟩ : (q n (Real.log n)).Prime ∧\n      ¬q n (Real.log n) ∣ ∏ i ∈ Finset.Icc 1 ⌊Real.log n⌋₊, (n + i) :=\n    Nat.find_spec (Nat.exists_prime_not_dvd (Finset.prod_ne_zero_iff.2 fun a ha => by aesop))\n  exact hndvd (hn _ (not_le.1 h).le hp)\n\n/--\nTaking $n$ to be the product of primes\nbetween $\\log n$ and $(2 + o(1)) \\log n$ gives an example where\n$$\n  q(n, \\log n) \\ge (2 + o(1)) \\log n.\n$$\nCan one prove that $q(n, \\log n) < (1 - \\epsilon) (\\log n)^2$\nfor all large $n$ and some $\\epsilon > 0$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_457.variants.one_sub : ∃ ε > (0 : ℝ),\n    ∀ᶠ n in Filter.atTop, q n (Real.log n) < (1 - ε) * Real.log n ^ 2 := by\n  sorry\n\nend Erdos457\n",
  "statement_hash": "6ea6be1bd82e77b9626d6b9abe366d6ac4fe56808d926d56b92a5aa91e8e2939",
  "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."
}