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
feat: 保留模型核中到 ζ 极点的复距离
Browse filesChecks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+62 −38 ConditionalGoldbach/Proofs/SpectralModelGrowth.lean View file
| @@ -44,36 +44,43 @@ lemma riemannZeta_right_pole_bound (σ : ℝ) (hσ : 0 < σ) (hσ1 : σ ≤ 1) : | ||
| 44 | 44 | field_simp |
| 45 | 45 | linarith |
| 46 | 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) | |
| 47 | +/-- Near the pole, retain the full complex distance so its square can be integrated | |
| 48 | +along a vertical line. -/ | |
| 49 | +lemma riemannZeta_left_pole_distance_bound {s : ℂ} (hs : 3 / 4 ≤ s.re) (hs1 : s.re < 1) : | |
| 50 | + ‖riemannZeta s‖ ≤ 8 * max 1 ‖s - 1‖⁻¹ * (1 + |s.im|) ^ (1 / 4 : ℝ) := by | |
| 51 | + have hm := le_max_left (1 : ℝ) ‖s - 1‖⁻¹ | |
| 51 | 52 | by_cases ht : 1 ≤ |s.im| |
| 52 | 53 | · 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 | |
| 54 | + exact hh.trans (mul_le_mul_of_nonneg_right (by linarith) (by positivity)) | |
| 57 | 55 | · have hs0 : 0 < s.re := by linarith |
| 58 | 56 | have hsne : s ≠ 1 := by intro he; norm_num [he] at hs1 |
| 59 | 57 | have hnorm : ‖s‖ ≤ 2 := by |
| 60 | 58 | have hh := Complex.norm_le_abs_re_add_abs_im s |
| 61 | 59 | rw [abs_of_pos hs0] at hh |
| 62 | 60 | 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 | |
| 61 | + have hp : 1 ≤ (1 + |s.im|) ^ (1 / 4 : ℝ) := | |
| 62 | + Real.one_le_rpow (by linarith [abs_nonneg s.im]) (by norm_num) | |
| 67 | 63 | 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) | |
| 64 | + _ ≤ ‖s‖ / ‖s - 1‖ + ‖s‖ / s.re := riemannZeta_euler_norm_bound hs0 hsne | |
| 65 | + _ ≤ 2 * ‖s - 1‖⁻¹ + 2 / (3 / 4 : ℝ) := by | |
| 66 | + rw [← div_eq_mul_inv (2 : ℝ) ‖s - 1‖] | |
| 67 | + exact add_le_add (div_le_div_of_nonneg_right hnorm (norm_nonneg _)) | |
| 71 | 68 | (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 | |
| 69 | + _ ≤ 8 * max 1 ‖s - 1‖⁻¹ := by linarith [le_max_right (1 : ℝ) ‖s - 1‖⁻¹] | |
| 70 | + _ ≤ _ := le_mul_of_one_le_right (by linarith) hp | |
| 71 | + | |
| 72 | +lemma riemannZeta_left_pole_bound {s : ℂ} (hs : 3 / 4 ≤ s.re) (hs1 : s.re < 1) : | |
| 73 | + ‖riemannZeta s‖ ≤ (8 / (1 - s.re)) * (1 + |s.im|) ^ (1 / 4 : ℝ) := by | |
| 74 | + have hσ : 0 < 1 - s.re := by linarith | |
| 75 | + have hden : 1 - s.re ≤ ‖s - 1‖ := by | |
| 76 | + have hh := Complex.abs_re_le_norm (s - 1) | |
| 77 | + simpa only [Complex.sub_re, Complex.one_re, abs_of_neg (by linarith : s.re - 1 < 0), neg_sub] using hh | |
| 78 | + have hm : max 1 ‖s - 1‖⁻¹ ≤ (1 - s.re)⁻¹ := by | |
| 79 | + apply max_le ((one_le_inv₀ hσ).mpr (by linarith)) | |
| 80 | + simpa only [one_div] using div_le_div_of_nonneg_left zero_le_one hσ hden | |
| 81 | + apply (riemannZeta_left_pole_distance_bound hs hs1).trans | |
| 82 | + rw [div_eq_mul_inv (8 : ℝ) (1 - s.re)] | |
| 83 | + gcongr | |
| 77 | 84 | |
| 78 | 85 | lemma continuedModel_norm_split (N : ℕ) (hN : 0 < N) (s z : ℂ) : |
| 79 | 86 | ‖continuedModel N s z‖ = (Real.pi)^(s + z).re * |
| @@ -89,16 +96,17 @@ lemma continuedModel_norm_split (N : ℕ) (hN : 0 < N) (s z : ℂ) : | ||
| 89 | 96 | simp only [continuedModel, norm_mul, hpow] |
| 90 | 97 | ring |
| 91 | 98 | |
| 92 | -/-- A single constant works for all moduli and all left boundaries `a > 0`. -/ | |
| 93 | -theorem continuedModel_uniform_power_bound : | |
| 99 | +/-- A uniform model bound retaining the pole at `s + conj z = 0`. -/ | |
| 100 | +theorem continuedModel_uniform_pole_bound : | |
| 94 | 101 | ∃ C : ℝ, 0 < C ∧ ∀ a : ℝ, 0 < a → a < beta → ∀ N : ℕ, 0 < N → |
| 95 | 102 | ∀ s z : ℂ, s.re ∈ Icc a beta → z.re ∈ Icc a beta → |
| 96 | 103 | ‖continuedModel N s (conj z)‖ ≤ |
| 97 | - C * (a⁻¹)^2 * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := by | |
| 104 | + C * a⁻¹ * max 1 ‖s + conj z‖⁻¹ * | |
| 105 | + (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := by | |
| 98 | 106 | obtain ⟨G, hG, hGamma⟩ := gammaQuotient_uniform_nonnegative beta |
| 99 | 107 | (by norm_num [beta]) (by norm_num [beta]) |
| 100 | 108 | refine ⟨48 * Real.pi * G^2, by positivity, ?_⟩ |
| 101 | - intro a ha hab N hN s z hs hz | |
| 109 | + intro a ha _ N hN s z hs hz | |
| 102 | 110 | have hσ : 0 < (s + conj z).re := by simp; linarith [hs.1, hz.1] |
| 103 | 111 | have hσa : a ≤ (s + conj z).re := by simp; linarith [hs.1, hz.1] |
| 104 | 112 | have hσ1 : (s + conj z).re ≤ 1 := by |
| @@ -119,32 +127,48 @@ theorem continuedModel_uniform_power_bound : | ||
| 119 | 127 | _ ≤ Real.pi^(1 : ℝ) := Real.rpow_le_rpow_of_exponent_le (by linarith [Real.pi_gt_three]) hσ1 |
| 120 | 128 | _ = _ := Real.rpow_one _ |
| 121 | 129 | have hζ : ‖riemannZeta (1 - s - conj z)‖ ≤ |
| 122 | - (8 / a) * ((1 + |s.im|)^(1 / 4 : ℝ) * (1 + |z.im|)^(1 / 4 : ℝ)) := by | |
| 130 | + (8 * max 1 ‖s + conj z‖⁻¹) * ((1 + |s.im|)^(1 / 4 : ℝ) * (1 + |z.im|)^(1 / 4 : ℝ)) := by | |
| 123 | 131 | have hlo : 3 / 4 ≤ (1 - s - conj z).re := by |
| 124 | 132 | simp only [Complex.sub_re, Complex.one_re, Complex.conj_re] |
| 125 | 133 | dsimp [beta] at hs hz |
| 126 | 134 | linarith [hs.2, hz.2] |
| 127 | 135 | 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 | |
| 136 | + have hh := riemannZeta_left_pole_distance_bound hlo hhi | |
| 137 | + rw [show 1 - s - conj z - 1 = -(s + conj z) by ring, norm_neg] at hh | |
| 131 | 138 | 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 | |
| 139 | + apply mul_le_mul_of_nonneg_left _ (by positivity) | |
| 140 | + rw [← Real.mul_rpow (by positivity) (by positivity)] | |
| 141 | + apply Real.rpow_le_rpow (by positivity) _ (by norm_num) | |
| 142 | + have him : (1 - s - conj z).im = -(s.im - z.im) := by simp; ring | |
| 143 | + rw [him, abs_neg] | |
| 144 | + nlinarith [abs_sub s.im z.im, mul_nonneg (abs_nonneg s.im) (abs_nonneg z.im)] | |
| 141 | 145 | have hGs := hGamma s ⟨ha.le.trans hs.1, hs.2⟩ |
| 142 | 146 | have hGz := hGamma (conj z) ⟨by simpa using ha.le.trans hz.1, by simpa using hz.2⟩ |
| 143 | 147 | rw [continuedModel_norm_split N hN] |
| 144 | 148 | calc |
| 145 | 149 | _ ≤ Real.pi * (6 / a) * |
| 146 | - ((8 / a) * ((1 + |s.im|)^(1 / 4 : ℝ) * (1 + |z.im|)^(1 / 4 : ℝ))) * G * G := by | |
| 150 | + ((8 * max 1 ‖s + conj z‖⁻¹) * ((1 + |s.im|)^(1 / 4 : ℝ) * (1 + |z.im|)^(1 / 4 : ℝ))) * G * G := by | |
| 147 | 151 | gcongr |
| 148 | 152 | _ = _ := by simp only [div_eq_mul_inv]; ring |
| 149 | 153 | |
| 154 | +/-- A single constant works for all moduli and all left boundaries `a > 0`. -/ | |
| 155 | +theorem continuedModel_uniform_power_bound : | |
| 156 | + ∃ C : ℝ, 0 < C ∧ ∀ a : ℝ, 0 < a → a < beta → ∀ N : ℕ, 0 < N → | |
| 157 | + ∀ s z : ℂ, s.re ∈ Icc a beta → z.re ∈ Icc a beta → | |
| 158 | + ‖continuedModel N s (conj z)‖ ≤ | |
| 159 | + C * (a⁻¹)^2 * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := by | |
| 160 | + obtain ⟨C, hC, hb⟩ := continuedModel_uniform_pole_bound | |
| 161 | + refine ⟨C, hC, ?_⟩ | |
| 162 | + intro a ha hab N hN s z hs hz | |
| 163 | + have hden : a ≤ ‖s + conj z‖ := by | |
| 164 | + apply le_trans _ (Complex.re_le_norm _) | |
| 165 | + simp only [Complex.add_re, Complex.conj_re] | |
| 166 | + linarith [hs.1, hz.1] | |
| 167 | + have hm : max 1 ‖s + conj z‖⁻¹ ≤ a⁻¹ := by | |
| 168 | + apply max_le ((one_le_inv₀ ha).mpr (hab.le.trans (by norm_num [beta]))) | |
| 169 | + simpa only [one_div] using div_le_div_of_nonneg_left zero_le_one ha hden | |
| 170 | + apply (hb a ha hab N hN s z hs hz).trans | |
| 171 | + rw [pow_two, ← mul_assoc C] | |
| 172 | + gcongr | |
| 173 | + | |
| 150 | 174 | end ConditionalGoldbach |
