goldbach-spectral-bridge
Li and Liu's GRH + S ⇒ Goldbach in Lean, checked against the paper by Comparator: clean it up together, and settle S
| 1 | module |
| 2 | |
| 3 | public import Mathlib.Analysis.Real.Pi.Bounds |
| 4 | public import ConditionalGoldbach.Proofs.SpectralModelEuler |
| 5 | public import ConditionalGoldbach.Proofs.SpectralModelBound |
| 6 | public import ConditionalGoldbach.Proofs.ZetaTruncation |
| 7 | |
| 8 | /-! Uniform model-kernel growth as the left Hardy boundary tends to zero. -/ |
| 9 | public section |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | open scoped BigOperators ComplexConjugate Topology |
| 14 | open MeasureTheory Filter Set Complex |
| 15 | namespace ConditionalGoldbach |
| 16 | |
| 17 | lemma riemannZeta_euler_norm_bound {s : ℂ} (hs : 0 < s.re) (hs1 : s ≠ 1) : |
| 18 | ‖riemannZeta s‖ ≤ ‖s‖ / ‖s - 1‖ + ‖s‖ / s.re := by |
| 19 | rw [riemannZeta_fraction_formula hs hs1] |
| 20 | calc |
| 21 | _ ≤ ‖s / (s - 1)‖ + ‖s * zetaFractionIntegral s‖ := norm_sub_le _ _ |
| 22 | _ ≤ ‖s‖ / ‖s - 1‖ + ‖s‖ * (1 / s.re) := by |
| 23 | rw [norm_div, norm_mul] |
| 24 | exact add_le_add le_rfl (mul_le_mul_of_nonneg_left (zetaFractionIntegral_norm hs) (norm_nonneg s)) |
| 25 | _ = _ := by ring |
| 26 | |
| 27 | lemma riemannZeta_right_pole_bound (σ : ℝ) (hσ : 0 < σ) (hσ1 : σ ≤ 1) : |
| 28 | ‖riemannZeta ((1 + σ : ℝ) : ℂ)‖ ≤ 3 / σ := by |
| 29 | have hs : 0 < (((1 + σ : ℝ) : ℂ)).re := by simp; linarith |
| 30 | have hs1 : ((1 + σ : ℝ) : ℂ) ≠ 1 := by |
| 31 | intro he |
| 32 | have hh := congrArg Complex.re he |
| 33 | simp at hh |
| 34 | linarith |
| 35 | have hh := riemannZeta_euler_norm_bound hs hs1 |
| 36 | have hnorm : ‖((1 + σ : ℝ) : ℂ)‖ = 1 + σ := by |
| 37 | rw [Complex.norm_real, Real.norm_eq_abs, abs_of_pos (by linarith)] |
| 38 | have hden : ‖((1 + σ : ℝ) : ℂ) - 1‖ = σ := by |
| 39 | rw [show ((1 + σ : ℝ) : ℂ) - 1 = (σ : ℂ) by push_cast; ring, |
| 40 | Complex.norm_real, Real.norm_eq_abs, abs_of_pos hσ] |
| 41 | simp only [hnorm, hden, Complex.ofReal_re, div_self (show 1 + σ ≠ 0 by linarith)] at hh |
| 42 | apply hh.trans |
| 43 | rw [le_div_iff₀ hσ] |
| 44 | field_simp |
| 45 | linarith |
| 46 | |
| 47 | lemma riemannZeta_left_pole_bound {s : ℂ} (hs : 3 / 4 ≤ s.re) (hs1 : s.re < 1) : |
| 48 | ‖riemannZeta s‖ ≤ (8 / (1 - s.re)) * (1 + |s.im|) ^ (1 / 4 : ℝ) := by |
| 49 | have hσ : 0 < 1 - s.re := by linarith |
| 50 | have hp : 1 ≤ (1 + |s.im|) ^ (1 / 4 : ℝ) := Real.one_le_rpow (by linarith [abs_nonneg s.im]) (by norm_num) |
| 51 | by_cases ht : 1 ≤ |s.im| |
| 52 | · have hh := riemannZeta_three_quarter_growth (hi := 1) hs hs1.le ht |
| 53 | apply hh.trans |
| 54 | apply mul_le_mul_of_nonneg_right _ (by positivity) |
| 55 | rw [le_div_iff₀ hσ] |
| 56 | nlinarith |
| 57 | · have hs0 : 0 < s.re := by linarith |
| 58 | have hsne : s ≠ 1 := by intro he; norm_num [he] at hs1 |
| 59 | have hnorm : ‖s‖ ≤ 2 := by |
| 60 | have hh := Complex.norm_le_abs_re_add_abs_im s |
| 61 | rw [abs_of_pos hs0] at hh |
| 62 | linarith |
| 63 | have hden : 1 - s.re ≤ ‖s - 1‖ := by |
| 64 | have hh := Complex.abs_re_le_norm (s - 1) |
| 65 | simpa only [Complex.sub_re, Complex.one_re, abs_of_neg (by linarith : s.re - 1 < 0), neg_sub] using hh |
| 66 | have hh := riemannZeta_euler_norm_bound hs0 hsne |
| 67 | calc |
| 68 | _ ≤ ‖s‖ / ‖s - 1‖ + ‖s‖ / s.re := hh |
| 69 | _ ≤ 2 / (1 - s.re) + 2 / (3 / 4 : ℝ) := by |
| 70 | exact add_le_add (div_le_div₀ (by norm_num) hnorm hσ hden) |
| 71 | (div_le_div₀ (by norm_num) hnorm (by norm_num) hs) |
| 72 | _ ≤ 8 / (1 - s.re) := by |
| 73 | apply (le_div_iff₀ hσ).mpr |
| 74 | field_simp |
| 75 | nlinarith |
| 76 | _ ≤ _ := le_mul_of_one_le_right (by positivity) hp |
| 77 | |
| 78 | lemma continuedModel_norm_split (N : ℕ) (hN : 0 < N) (s z : ℂ) : |
| 79 | ‖continuedModel N s z‖ = (Real.pi)^(s + z).re * |
| 80 | ‖(N : ℂ)^(-(s + z)) * (singularSeries N : ℂ) * densityEulerProduct N (s + z)‖ * |
| 81 | ‖riemannZeta (1 - s - z)‖ * ‖gammaQuotient s‖ * ‖gammaQuotient z‖ := by |
| 82 | have hn : (0 : ℝ) < N := by exact_mod_cast hN |
| 83 | have hpow : ‖((Real.pi : ℂ) / N)^(s + z)‖ = |
| 84 | (Real.pi)^(s + z).re * ‖(N : ℂ)^(-(s + z))‖ := by |
| 85 | rw [show (Real.pi : ℂ) / N = ((Real.pi / (N : ℝ) : ℝ) : ℂ) by push_cast; rfl, |
| 86 | Complex.norm_cpow_eq_rpow_re_of_pos (div_pos Real.pi_pos hn), |
| 87 | Real.div_rpow Real.pi_pos.le hn.le, Complex.norm_natCast_cpow_of_pos hN, |
| 88 | Complex.neg_re, Real.rpow_neg hn.le, div_eq_mul_inv] |
| 89 | simp only [continuedModel, norm_mul, hpow] |
| 90 | ring |
| 91 | |
| 92 | /-- A single constant works for all moduli and all left boundaries `a > 0`. -/ |
| 93 | theorem continuedModel_uniform_power_bound : |
| 94 | ∃ C : ℝ, 0 < C ∧ ∀ a : ℝ, 0 < a → a < beta → ∀ N : ℕ, 0 < N → |
| 95 | ∀ s z : ℂ, s.re ∈ Icc a beta → z.re ∈ Icc a beta → |
| 96 | ‖continuedModel N s (conj z)‖ ≤ |
| 97 | C * (a⁻¹)^2 * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := by |
| 98 | obtain ⟨G, hG, hGamma⟩ := gammaQuotient_uniform_nonnegative beta |
| 99 | (by norm_num [beta]) (by norm_num [beta]) |
| 100 | refine ⟨48 * Real.pi * G^2, by positivity, ?_⟩ |
| 101 | intro a ha hab N hN s z hs hz |
| 102 | have hσ : 0 < (s + conj z).re := by simp; linarith [hs.1, hz.1] |
| 103 | have hσa : a ≤ (s + conj z).re := by simp; linarith [hs.1, hz.1] |
| 104 | have hσ1 : (s + conj z).re ≤ 1 := by |
| 105 | simp only [Complex.add_re, Complex.conj_re] |
| 106 | dsimp [beta] at hs hz |
| 107 | linarith [hs.2, hz.2] |
| 108 | have hscale : ‖(N : ℂ)^(-(s + conj z)) * (singularSeries N : ℂ) * |
| 109 | densityEulerProduct N (s + conj z)‖ ≤ 6 / a := by |
| 110 | calc |
| 111 | _ ≤ 2 * ‖riemannZeta ((1 + (s + conj z).re : ℝ) : ℂ)‖ := |
| 112 | singularSeries_densityEuler_scaled_bound N hN hσ |
| 113 | _ ≤ 2 * (3 / (s + conj z).re) := |
| 114 | mul_le_mul_of_nonneg_left (riemannZeta_right_pole_bound _ hσ hσ1) (by norm_num) |
| 115 | _ ≤ 2 * (3 / a) := by gcongr |
| 116 | _ = _ := by ring |
| 117 | have hpi : Real.pi^(s + conj z).re ≤ Real.pi := by |
| 118 | calc |
| 119 | _ ≤ Real.pi^(1 : ℝ) := Real.rpow_le_rpow_of_exponent_le (by linarith [Real.pi_gt_three]) hσ1 |
| 120 | _ = _ := Real.rpow_one _ |
| 121 | have hζ : ‖riemannZeta (1 - s - conj z)‖ ≤ |
| 122 | (8 / a) * ((1 + |s.im|)^(1 / 4 : ℝ) * (1 + |z.im|)^(1 / 4 : ℝ)) := by |
| 123 | have hlo : 3 / 4 ≤ (1 - s - conj z).re := by |
| 124 | simp only [Complex.sub_re, Complex.one_re, Complex.conj_re] |
| 125 | dsimp [beta] at hs hz |
| 126 | linarith [hs.2, hz.2] |
| 127 | have hhi : (1 - s - conj z).re < 1 := by simp; linarith [hs.1, hz.1] |
| 128 | have hden : 1 - (1 - s - conj z).re = (s + conj z).re := by simp; ring |
| 129 | have hh := riemannZeta_left_pole_bound hlo hhi |
| 130 | rw [hden] at hh |
| 131 | apply hh.trans |
| 132 | apply mul_le_mul |
| 133 | · exact div_le_div_of_nonneg_left (by norm_num) ha hσa |
| 134 | · rw [← Real.mul_rpow (by positivity) (by positivity)] |
| 135 | apply Real.rpow_le_rpow (by positivity) _ (by norm_num) |
| 136 | have him : (1 - s - conj z).im = -(s.im - z.im) := by simp; ring |
| 137 | rw [him, abs_neg] |
| 138 | nlinarith [abs_sub s.im z.im, mul_nonneg (abs_nonneg s.im) (abs_nonneg z.im)] |
| 139 | · positivity |
| 140 | · positivity |
| 141 | have hGs := hGamma s ⟨ha.le.trans hs.1, hs.2⟩ |
| 142 | have hGz := hGamma (conj z) ⟨by simpa using ha.le.trans hz.1, by simpa using hz.2⟩ |
| 143 | rw [continuedModel_norm_split N hN] |
| 144 | calc |
| 145 | _ ≤ Real.pi * (6 / a) * |
| 146 | ((8 / a) * ((1 + |s.im|)^(1 / 4 : ℝ) * (1 + |z.im|)^(1 / 4 : ℝ))) * G * G := by |
| 147 | gcongr |
| 148 | _ = _ := by simp only [div_eq_mul_inv]; ring |
| 149 | |
| 150 | end ConditionalGoldbach |
