|
| 1 | +/- |
| 2 | +Copyright 2026 The Formal Conjectures Authors. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +-/ |
| 16 | +import FormalConjectures.Util.ProblemImports |
| 17 | + |
| 18 | +/-! |
| 19 | +# Erdős Problem 962 |
| 20 | +
|
| 21 | +*References:* |
| 22 | +- [erdosproblems.com/962](https://www.erdosproblems.com/962) |
| 23 | +- [Er65] Erdős, P., Extremal problems in number theory. Proc. Sympos. Pure Math., Vol. VIII (1965), 181-189. |
| 24 | +- [Er76e] Erdős, P., Problems and results on consecutive integers. Publ. Math. Debrecen (1976), 271-282. |
| 25 | +- [Tang](https://github.com/QuanyuTang/erdos-problem-962/blob/main/On_Erd%C5%91s_Problem_962.pdf) |
| 26 | +- [Tao](https://www.erdosproblems.com/forum/thread/962) |
| 27 | +-/ |
| 28 | + |
| 29 | +open Classical Filter Real |
| 30 | + |
| 31 | +namespace Erdos962 |
| 32 | + |
| 33 | +/-- |
| 34 | +`Erdos962Prop n k` : there exists $m \le n$ such that each of |
| 35 | +$m+1, \ldots, m+k$ has a prime divisor strictly larger than $k$. |
| 36 | +-/ |
| 37 | +def Erdos962Prop (n k : ℕ) : Prop := |
| 38 | + ∃ m ≤ n, ∀ i ∈ Set.Icc 1 k, |
| 39 | + ∃ p : ℕ, Nat.Prime p ∧ k < p ∧ p ∣ (m + i) |
| 40 | + |
| 41 | +/-- |
| 42 | +Let $k(n)$ be the maximal $k$ such that there exists $m \le n$ with |
| 43 | +$m+1, \ldots, m+k$ each divisible by a prime $> k$. |
| 44 | +-/ |
| 45 | +noncomputable def k (n : ℕ) : ℕ := |
| 46 | + Nat.findGreatest (fun k => Erdos962Prop n k) n |
| 47 | + |
| 48 | +/-- |
| 49 | +Main conjecture: |
| 50 | +
|
| 51 | +$\log k(n) \le (\log n)^{(1/2 + o(1))}$ |
| 52 | +-/ |
| 53 | +@[category research open, AMS 11] |
| 54 | +theorem erdos_962 : |
| 55 | + answer(sorry) ↔ |
| 56 | + ∃ ε : ℕ → ℝ, |
| 57 | + (∀ δ > 0, ∀ᶠ n in atTop, |ε n| < δ) ∧ |
| 58 | + ∀ᶠ n : ℕ in atTop, |
| 59 | + log (k n : ℝ) |
| 60 | + ≤ rpow (log n) ((1 : ℝ) / 2 + ε n) := by |
| 61 | + sorry |
| 62 | + |
| 63 | +/-- |
| 64 | +Tang's lower bound [Tang]: |
| 65 | +
|
| 66 | +$\log k(n) \ge (1/\sqrt{2} - o(1)) * \sqrt{\log n * \log \log n}$ |
| 67 | +-/ |
| 68 | +@[category research solved, AMS 11] |
| 69 | +theorem erdos_962.variants.tang_lower_bound : |
| 70 | + ∃ ε : ℕ → ℝ, |
| 71 | + (∀ δ > 0, ∀ᶠ n in atTop, |ε n| < δ) ∧ |
| 72 | + ∀ᶠ n : ℕ in atTop, |
| 73 | + (1 / sqrt 2 - ε n) * |
| 74 | + sqrt (log n * log (log n)) |
| 75 | + ≤ log (k n : ℝ) := by |
| 76 | + sorry |
| 77 | + |
| 78 | +/-- |
| 79 | +Tao's upper bound [Tao]: |
| 80 | +
|
| 81 | +$k(n) \le (1 + o(1)) * n^{1/2}$ |
| 82 | +-/ |
| 83 | +@[category research solved, AMS 11] |
| 84 | +theorem erdos_962.variants.tao_upper_bound : |
| 85 | + ∃ ε : ℕ → ℝ, |
| 86 | + (∀ δ > 0, ∀ᶠ n in atTop, |ε n| < δ) ∧ |
| 87 | + ∀ᶠ n : ℕ in atTop, |
| 88 | + (k n : ℝ) ≤ (1 + ε n) * sqrt n := by |
| 89 | + sorry |
| 90 | + |
| 91 | +end Erdos962 |
0 commit comments