Index of theproofnetwork/open-problems@860a535/FormalConjectures/ErdosProblems/Erdos457.lean

qedmarket’s copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source ↗

88 lines · 3.2 kBraw
/-Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at     https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.-/module public import FormalConjecturesUtil /-!# Erdős Problem 457 *Reference:* [erdosproblems.com/457](https://www.erdosproblems.com/457)-/ @[expose] public section namespace Erdos457 set_option linter.style.formal_proof_palomar false in/--Is there some $\epsilon > 0$ such that there are infinitelymany $n$ where all primes $p \le (2 + \epsilon) \log n$ divide$$  \prod_{1 \le i \le \log n} (n + i)?$$ This was formalized in Lean by Baretto and van Doorn using Aristotle.-/@[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/Woett/Lean-files/blob/main/ErdosProblem457.lean"]theorem erdos_457 : ∃ ε > (0 : ℝ),    { (n : ℕ) | ∀ (p : ℕ), p ≤ (2 + ε) * Real.log n → p.Prime →      p ∣ ∏ i ∈ Finset.Icc 1 ⌊Real.log n⌋₊, (n + i) }.Infinite := by  sorry /-- Let $q(n, k)$ denote the least prime which does not divide$\prod_{1 \le i \le k}(n + i)$. -/noncomputable abbrev q (n : ℕ) (k : ℝ) : ℕ :=    Nat.find (Nat.exists_prime_not_dvd (n := ∏ i ∈ Finset.Icc 1 ⌊k⌋₊, (n + i))      (Finset.prod_ne_zero_iff.2 fun a ha => by aesop)) /--More generally, let $q(n, k)$ denote the least prime whichdoes not divide $\prod_{1 \le i \le k}(n + i)$. Thisproblem asks whether $q(n, \log n) \ge (2 + \epsilon) \log n$infinitely often. This follows from `erdos_457`: if every prime $p \le (2 + \epsilon) \log n$divides $\prod_{1 \le i \le \log n} (n + i)$, then $q(n, \log n)$, the leastprime not dividing this product, must exceed $(2 + \epsilon) \log n$.-/@[category research solved, question, AMS 11]theorem erdos_457.variants.qnk : ∃ ε > (0 : ℝ),    { (n : ℕ) | (2 + ε) * Real.log n ≤ q n (Real.log n) }.Infinite := by  obtain ⟨ε, hε, hinf⟩ := erdos_457  refine ⟨ε, hε, hinf.mono ?_⟩  intro n hn  by_contra h  obtain ⟨hp, hndvd⟩ : (q n (Real.log n)).Prime ∧      ¬q n (Real.log n) ∣ ∏ i ∈ Finset.Icc 1 ⌊Real.log n⌋₊, (n + i) :=    Nat.find_spec (Nat.exists_prime_not_dvd (Finset.prod_ne_zero_iff.2 fun a ha => by aesop))  exact hndvd (hn _ (not_le.1 h).le hp) /--Taking $n$ to be the product of primesbetween $\log n$ and $(2 + o(1)) \log n$ gives an example where$$  q(n, \log n) \ge (2 + o(1)) \log n.$$Can one prove that $q(n, \log n) < (1 - \epsilon) (\log n)^2$for all large $n$ and some $\epsilon > 0$?-/@[category research open, question, AMS 11]theorem erdos_457.variants.one_sub : ∃ ε > (0 : ℝ),    ∀ᶠ n in Filter.atTop, q n (Real.log n) < (1 - ε) * Real.log n ^ 2 := by  sorry end Erdos457

download (.tar)