{
  "id": "1926",
  "ident": "NS.01926",
  "slug": "erdos-375",
  "title": "Erdős Problem 375",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is `Erdos375Prop` true?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos375.erdos_375",
  "statement_lean": "theorem erdos_375 : Erdos375Prop",
  "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\npublic import FormalConjectures.Wikipedia.LegendreConjecture\n\n/-!\n# Erdős Problem 375\n\n*References:*\n - [erdosproblems.com/375](https://www.erdosproblems.com/375)\n - [ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number\n    theory. Monographies de L'Enseignement Mathematique (1980).\n - [RST75] Ramachandra, K. and Shorey, T. N. and Tijdeman, R., On Grimm's problem relating to\n    factorisation of a block of consecutive integers. J. Reine Angew. Math. (1975), 109-124.\n -\n-/\n\n@[expose] public section\n\nopen Set Filter Topology Asymptotics\n\nnamespace Erdos375\n\n/-- This is a proposition saying that for any `n ≥ 1` and any `k`, if `n + 1, ..., n + k` are all\ncomposite, then there are distinct primes `p₁, ... pₖ` such that `pᵢ ∣ n + i` for all `1 ≤ i ≤ k`.\n-/\ndef Erdos375Prop : Prop := ∀ n ≥ 1, ∀ k, (∀ i < k, ¬ (n + i + 1).Prime) →\n    ∃ p : Fin k → ℕ, p.Injective ∧ ∀ i, (p i).Prime ∧ p i ∣ n + i + 1\n\n/-- Is `Erdos375Prop` true? -/\n@[category research open, question, AMS 11]\ntheorem erdos_375 : Erdos375Prop := by\n  sorry\n\n/-- If `Erdos375Prop` is true, then `(n + 1).nth Prime - n.nth Prime < (n.nth Prime) ^ (1 / 2 - c)`\nfor some `c > 0`. -/\n@[category research solved, AMS 11]\ntheorem erdos_375.variants.bounded_gap : Erdos375Prop →\n    ∃ c > 0, ∀ᶠ n in atTop, (n + 1).nth Nat.Prime - n.nth Nat.Prime\n    < (n.nth Nat.Prime : ℝ) ^ (1 / (2 : ℝ) - c) := by\n  sorry\n\n/-- In particular, if `Erdos375Prop` is true, then Legendre's conjecture is asymptotically true. -/\n@[category research solved, AMS 11]\ntheorem erdos_375.variants.legendre : Erdos375Prop →\n    (∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p) :=\n  fun hp => LegendreConjecture.bounded_gap_legendre (erdos_375.variants.bounded_gap hp)\n\n/-- It is easy to see that for any `n ≥ 1` and `k ≤ 2`, if `n + 1, ..., n + k` are all composite,\nthen there are distinct primes `p₁, ... pₖ` such that `pᵢ ∣ n + i` for all `1 ≤ i ≤ k`. -/\n@[category research solved, AMS 11]\ntheorem erdos_375.variants.le_two : ∀ n ≥ 1, ∀ k ≤ 2, (∀ i < k, ¬ (n + i + 1).Prime) →\n    ∃ p : Fin k → ℕ, p.Injective ∧ ∀ i, (p i).Prime ∧ p i ∣ n + i + 1 := by\n  intro n hn k hk\n  interval_cases k <;> intro h\n  · simp_all; intro; grind\n  · choose! p hp using (n + 1).exists_prime_and_dvd (by linarith)\n    exact ⟨fun x => p, fun x => by grind, fun i => by simpa using hp⟩\n  · choose! p hp using (fun i : Fin 2 => (n + i + 1).exists_prime_and_dvd (by linarith))\n    refine ⟨p, fun x y hxy => ?_, hp⟩\n    by_contra! hr\n    wlog hq : x < y\n    · exact this n hn k hk h p hp y x hxy.symm hr.symm (by grind)\n    · have hy : y = x + 1 := by fin_cases x <;> fin_cases y <;> simp_all\n      have := hy ▸ Nat.dvd_sub (hp y).2 (hxy ▸ (hp x).2)\n      have := (hp 1).1\n      simp_all [Nat.not_prime_one]\n\n/-- There exists a constant `c > 0` such that for all `n`, if\n`k < c * (log n / (log (log n))) ^ 3 → (∀ i < k, ¬ (n + i + 1).Prime)`, then\nthere are distinct primes `p₁, ... pₖ` such that `pᵢ ∣ n + i` for all `1 ≤ i ≤ k`. This is proved\nin [RST75]. There is no need to only consider sufficiently large `n` because one can always take\n`c` small enough so that `k < c * (log n / (log (log n))) ^ 3` implies that `k = 0` until `n` is\nlarge. -/\n@[category research solved, AMS 11]\ntheorem erdos_375.variants.log : ∃ c > 0, ∀ n k : ℕ,\n    k < c * (Real.log n / (Real.log (Real.log n))) ^ 3 → (∀ i < k, ¬ (n + i + 1).Prime) →\n    ∃ p : Fin k → ℕ, p.Injective ∧ ∀ i, (p i).Prime ∧ p i ∣ n + i + 1 := by\n  sorry\n\nend Erdos375\n",
  "statement_hash": "e970d42dbe891d16212159646c9973b35bffac079409fa777534e4c865d95b7b",
  "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."
}