| | @@ -32,24 +32,17 @@ private theorem exists_prime_of_theta_lt {a b : ℝ} (ha : 0 ≤ a) (h : θ a < |
| 32 | 32 | refine ⟨p, hp, lt_of_not_ge ?_, (Nat.le_floor_iff (ha.trans hab.le)).mp hpb⟩ |
| 33 | 33 | exact fun hle => hpa (Nat.mem_primesLE.mpr ⟨Nat.le_floor hle, hp⟩) |
| 34 | 34 | |
| 35 | | −/-- For every fixed `0 < r < 77/90`, each sufficiently large real `x` has a prime power |
| 36 | | −in `[r*x, x]`. -/ |
| 37 | | −theorem eventually_exists_isPrimePow_mul_le_of_two_intervals {r : ℝ} |
| 38 | | − (hr : 0 < r) (hr' : r < 77 / 90) : |
| 39 | | − ∀ᶠ x : ℝ in atTop, ∃ q : ℕ, IsPrimePow q ∧ r * x ≤ (q : ℝ) ∧ (q : ℝ) ≤ x := by |
| 40 | | − let C := 14 * Real.log 2 + 9 * Real.log 3 + 5 * Real.log 5 |
| 41 | | − have hC : 0 < C := chebyshev_const_pos |
| 42 | | − have hgap : r * (3 * C / 77) < C / 30 := calc |
| 43 | | − r * (3 * C / 77) < (77 / 90) * (3 * C / 77) := |
| 44 | | − mul_lt_mul_of_pos_right hr' (by positivity) |
| 45 | | − _ = C / 30 := by ring |
| 35 | +/-- Eventual slopes below `A` and above `B` for `ψ` give a prime in `(r*x, x]` |
| 36 | +whenever `r * B < A`. The strict margin absorbs the contribution of higher prime powers. -/ |
| 37 | +theorem eventually_exists_prime_of_psi_slopes {r A B : ℝ} (hr : 0 < r) (hgap : r * B < A) |
| 38 | + (hlower : ∀ L < A, ∀ᶠ x : ℝ in atTop, L * x ≤ ψ x) |
| 39 | + (hupper : ∀ U > B, ∀ᶠ x : ℝ in atTop, ψ x ≤ U * x) : |
| 40 | + ∀ᶠ x : ℝ in atTop, ∃ p : ℕ, p.Prime ∧ r * x < (p : ℝ) ∧ (p : ℝ) ≤ x := by |
| 46 | 41 | obtain ⟨U, hU, hrU⟩ := exists_between ((lt_div_iff₀' hr).mpr hgap) |
| 47 | 42 | obtain ⟨L, hrL, hL⟩ := exists_between ((lt_div_iff₀' hr).mp hrU) |
| 48 | | − have hlower := eventually_mul_le_psi tendsto_chebyshevLogRatio_div hL |
| 49 | | − have hupper := eventually_psi_le_mul_of_two_intervals tendsto_chebyshevLogRatio_div hU |
| 50 | 43 | have hrx : Tendsto (fun x : ℝ => r * x) atTop atTop := tendsto_id.const_mul_atTop hr |
| 51 | 44 | obtain ⟨K, hK⟩ := psi_sub_theta_le_mul_sqrt |
| 52 | | − filter_upwards [hlower, hrx.eventually hupper, eventually_gt_atTop (0 : ℝ), |
| 45 | + filter_upwards [hlower L hL, hrx.eventually (hupper U hU), eventually_gt_atTop (0 : ℝ), |
| 53 | 46 | Real.tendsto_sqrt_atTop.eventually (eventually_gt_atTop (K / (L - r * U)))] |
| 54 | 47 | with x hl hu hx hsqrt |
| 55 | 48 | have herr : K * Real.sqrt x < (L - r * U) * x := calc |
| | @@ -60,7 +53,23 @@ theorem eventually_exists_isPrimePow_mul_le_of_two_intervals {r : ℝ} |
| 60 | 53 | θ (r * x) ≤ ψ (r * x) := theta_le_psi _ |
| 61 | 54 | _ ≤ U * (r * x) := hu |
| 62 | 55 | _ < θ x := by linarith only [hl, herr, hK x] |
| 63 | | − obtain ⟨p, hp, hlo, hhi⟩ := exists_prime_of_theta_lt (mul_nonneg hr.le hx.le) hjump |
| 56 | + exact exists_prime_of_theta_lt (mul_nonneg hr.le hx.le) hjump |
| 57 | + |
| 58 | +/-- For every fixed `0 < r < 77/90`, each sufficiently large real `x` has a prime power |
| 59 | +in `[r*x, x]`. -/ |
| 60 | +theorem eventually_exists_isPrimePow_mul_le_of_two_intervals {r : ℝ} |
| 61 | + (hr : 0 < r) (hr' : r < 77 / 90) : |
| 62 | + ∀ᶠ x : ℝ in atTop, ∃ q : ℕ, IsPrimePow q ∧ r * x ≤ (q : ℝ) ∧ (q : ℝ) ≤ x := by |
| 63 | + let C := 14 * Real.log 2 + 9 * Real.log 3 + 5 * Real.log 5 |
| 64 | + have hC : 0 < C := chebyshev_const_pos |
| 65 | + have hgap : r * (3 * C / 77) < C / 30 := calc |
| 66 | + r * (3 * C / 77) < (77 / 90) * (3 * C / 77) := |
| 67 | + mul_lt_mul_of_pos_right hr' (by positivity) |
| 68 | + _ = C / 30 := by ring |
| 69 | + filter_upwards [eventually_exists_prime_of_psi_slopes hr hgap |
| 70 | + (fun _ => eventually_mul_le_psi tendsto_chebyshevLogRatio_div) |
| 71 | + (fun _ => eventually_psi_le_mul_of_two_intervals tendsto_chebyshevLogRatio_div)] |
| 72 | + with x ⟨p, hp, hlo, hhi⟩ |
| 64 | 73 | exact ⟨p, hp.isPrimePow, hlo.le, hhi⟩ |
| 65 | 74 | |
| 66 | 75 | /-- Unconditional lower bound for the normalized Sidon maximum in Erdős #30. -/ |