| | @@ -1,25 +1,70 @@ |
| 1 | +import ErdosSwarm.Erdos30PsiBounds |
| 1 | 2 | import ErdosSwarm.Erdos30SingerIntervals |
| 3 | +import ErdosSwarm.Erdos30Stirling |
| 2 | 4 | |
| 3 | 5 | /-! |
| 4 | | −# Erdős #30: a prime-power interval of ratio `r` gives the lower coefficient `√r` |
| 6 | +# Prime powers in relative intervals and the Sidon lower bound for Erdős #30 |
| 5 | 7 | |
| 6 | | −For one fixed `r > 0`, assume that every sufficiently large real `x` has a prime |
| 7 | | −power `q` with `r * x ≤ q ≤ x`. |
| 8 | +For each fixed `0 < r < 5/6`, Chebyshev's bounds give `ψ (r * x) < ψ x` for all sufficiently |
| 9 | +large real `x`. A positive von Mangoldt summand then gives a prime power in `(r * x, x]`. |
| 8 | 10 | |
| 9 | | −Under it, the finite Singer alternative `q + 1 ≤ h N ∨ N ≤ q * h N`, applied at |
| 10 | | −`x = √N / √r`, gives `√r * √N ≤ h N` for all large `N`, with no additive error, and hence |
| 11 | | −`√r ≤ liminf h(N) / √N`. If the interval hypothesis holds for every `0 < r < R` |
| 11 | +For any fixed `r > 0` with a prime power in `[r * x, x]` for every sufficiently large `x`, |
| 12 | +the finite Singer alternative |
| 13 | +`q + 1 ≤ h N ∨ N ≤ q * h N`, applied at `x = √N / √r`, gives `√r * √N ≤ h N` for all |
| 14 | +large `N`, and hence `√r ≤ liminf h(N) / √N`. If the interval hypothesis holds for every `0 < r < R` |
| 12 | 15 | with `R > 0`, taking the limit from the left gives the lower bound `√R`. |
| 13 | 16 | -/ |
| 14 | 17 | |
| 15 | 18 | namespace ErdosSwarm.Erdos30 |
| 16 | 19 | |
| 17 | | −open Filter |
| 20 | +open Chebyshev Filter |
| 21 | + |
| 22 | +open ArithmeticFunction Finset in |
| 23 | +/-- A strict increase of Chebyshev's `ψ` gives a prime power in `(a, b]`. -/ |
| 24 | +theorem exists_isPrimePow_of_psi_lt {a b : ℝ} (hab : ψ a < ψ b) : |
| 25 | + ∃ q : ℕ, IsPrimePow q ∧ a < (q : ℝ) ∧ (q : ℝ) ≤ b := by |
| 26 | + have hfloor := Nat.floor_mono (psi_mono.reflect_lt hab).le |
| 27 | + unfold psi at hab |
| 28 | + rw [← sum_Ioc_consecutive (fun n : ℕ => Λ n) (Nat.zero_le _) hfloor, |
| 29 | + lt_add_iff_pos_right] at hab |
| 30 | + obtain ⟨q, hq, hΛ⟩ := (sum_pos_iff_of_nonneg fun _ _ => vonMangoldt_nonneg).mp hab |
| 31 | + obtain ⟨hlo, hhi⟩ := mem_Ioc.mp hq |
| 32 | + have hpow := vonMangoldt_pos_iff.mp hΛ |
| 33 | + exact ⟨q, hpow, Nat.lt_of_floor_lt hlo, (Nat.le_floor_iff' hpow.pos.ne').mp hhi⟩ |
| 34 | + |
| 35 | +/-- Eventual bounds `L*x ≤ ψ x ≤ U*x` give prime powers in `[r*x, x]` when `r*U < L`. -/ |
| 36 | +theorem eventually_exists_isPrimePow_of_psi_bounds {L U r : ℝ} (hr : 0 < r) (hrU : r * U < L) |
| 37 | + (hL : ∀ᶠ x : ℝ in atTop, L * x ≤ ψ x) (hU : ∀ᶠ x : ℝ in atTop, ψ x ≤ U * x) : |
| 38 | + ∀ᶠ x : ℝ in atTop, ∃ q : ℕ, IsPrimePow q ∧ r * x ≤ (q : ℝ) ∧ (q : ℝ) ≤ x := by |
| 39 | + have hrx : Tendsto (fun x : ℝ => r * x) atTop atTop := tendsto_id.const_mul_atTop hr |
| 40 | + filter_upwards [hL, hrx.eventually hU, eventually_gt_atTop 0] with x hLx hUx hx |
| 41 | + have hlt : ψ (r * x) < ψ x := calc |
| 42 | + ψ (r * x) ≤ U * (r * x) := hUx |
| 43 | + _ = (r * U) * x := by ac_rfl |
| 44 | + _ < L * x := mul_lt_mul_of_pos_right hrU hx |
| 45 | + _ ≤ ψ x := hLx |
| 46 | + obtain ⟨q, hq, hlo, hhi⟩ := exists_isPrimePow_of_psi_lt hlt |
| 47 | + exact ⟨q, hq, hlo.le, hhi⟩ |
| 48 | + |
| 49 | +/-- For each fixed `0 < r < 5/6`, every sufficiently large real `x` has a prime power in |
| 50 | +`[r*x, x]`. The ratio `5/6` is the quotient of Chebyshev's lower and upper slopes. -/ |
| 51 | +theorem eventually_exists_isPrimePow_mul_le {r : ℝ} (hr : 0 < r) (hr' : r < 5 / 6) : |
| 52 | + ∀ᶠ x : ℝ in atTop, ∃ q : ℕ, IsPrimePow q ∧ r * x ≤ (q : ℝ) ∧ (q : ℝ) ≤ x := by |
| 53 | + let C := 14 * Real.log 2 + 9 * Real.log 3 + 5 * Real.log 5 |
| 54 | + have hC : 0 < C := chebyshev_const_pos |
| 55 | + have hgap : r * (C / 25) < C / 30 := calc |
| 56 | + r * (C / 25) < (5 / 6) * (C / 25) := mul_lt_mul_of_pos_right hr' (by positivity) |
| 57 | + _ = C / 30 := by ring |
| 58 | + obtain ⟨U, hU, hrU⟩ := exists_between ((lt_div_iff₀' hr).mpr hgap) |
| 59 | + obtain ⟨L, hrL, hL⟩ := exists_between ((lt_div_iff₀' hr).mp hrU) |
| 60 | + exact eventually_exists_isPrimePow_of_psi_bounds hr hrL |
| 61 | + (eventually_mul_le_psi tendsto_chebyshevLogRatio_div hL) |
| 62 | + (eventually_psi_le_mul tendsto_chebyshevLogRatio_div hU) |
| 18 | 63 | |
| 19 | 64 | local notation "h" => _root_.Erdos30.h |
| 20 | 65 | |
| 21 | 66 | /-- **Conditional.** Assume that for one fixed `r > 0` every sufficiently large real `x` |
| 22 | | −has a prime power in `[r * x, x]` (an assumption, not proved here). Then |
| 67 | +has a prime power in `[r * x, x]`. Then |
| 23 | 68 | `√r * √N ≤ h N` for all sufficiently large `N`. -/ |
| 24 | 69 | theorem eventually_sqrt_mul_sqrt_le_h_of_primePow_intervals (r : ℝ) (hr : 0 < r) |
| 25 | 70 | (hpp : ∀ᶠ x : ℝ in atTop, ∃ q : ℕ, IsPrimePow q ∧ r * x ≤ (q : ℝ) ∧ (q : ℝ) ≤ x) : |