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 ConditionalGoldbach.Proofs.HalfPlaneWeightedCauchy |
| 4 | public import ConditionalGoldbach.Proofs.CharacterReferenceEnergy |
| 5 | |
| 6 | /-! The half-plane weighted real-part estimate for actual logarithmic derivatives. -/ |
| 7 | public section |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | open MeasureTheory Filter Set Complex |
| 12 | open scoped Topology ComplexConjugate BigOperators |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | lemma logDerivative_right_bound (N : ℕ) [NeZero N] (χ : Character N) |
| 16 | (s : ℂ) (hs : 1 ≤ s.re) : ‖logDerivative χ s‖ ≤ 3 * (Real.log 4 + 4) := by |
| 17 | have hs' : 1 / 2 < s.re := by linarith |
| 18 | have hsum := summable_logDerivative_terms χ hs' |
| 19 | have hshift := (summable_nat_add_iff 1).mpr hsum |
| 20 | have hm := mangoldt_positive_series_bound (1/2) (by norm_num) |
| 21 | rw [logDerivative_eq_neg_tsum χ hs', norm_neg, hsum.tsum_eq_zero_add] |
| 22 | simp only [mangoldt, ArithmeticFunction.map_zero, Complex.ofReal_zero, zero_mul, zero_div, zero_add] |
| 23 | apply (norm_tsum_le_tsum_norm hshift.norm).trans |
| 24 | apply (Summable.tsum_le_tsum _ hshift.norm hm.1).trans |
| 25 | · convert hm.2 using 1; norm_num; ring |
| 26 | intro j |
| 27 | have hn : 0 < (j+1 : ℕ) := by omega |
| 28 | have hn1 : (1 : ℝ) ≤ (j+1 : ℕ) := by exact_mod_cast hn |
| 29 | have hΛ : 0 ≤ mangoldt (j+1) := ArithmeticFunction.vonMangoldt_nonneg |
| 30 | rw [norm_div, norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg hΛ, |
| 31 | Complex.norm_natCast_cpow_of_pos hn] |
| 32 | have hnum : mangoldt (j+1) * ‖χ ((j+1 : ℕ) : ZMod N)‖ ≤ mangoldt (j+1) := |
| 33 | mul_le_of_le_one_right hΛ (χ.norm_le_one _) |
| 34 | have hden : ((j+1 : ℕ) : ℝ) ^ (1+(1/2 : ℝ)) ≤ ((j+1 : ℕ) : ℝ) ^ (1/2+s).re := by |
| 35 | apply Real.rpow_le_rpow_of_exponent_le hn1 |
| 36 | norm_num [Complex.add_re] |
| 37 | linarith |
| 38 | exact (div_le_div_of_nonneg_right hnum (Real.rpow_nonneg (by positivity) _)).trans |
| 39 | (div_le_div_of_nonneg_left hΛ (Real.rpow_pos_of_pos (by positivity) _) hden) |
| 40 | |
| 41 | lemma shifted_logDerivative_holomorphic (N : ℕ) [NeZero N] (hGRH : GRH N) |
| 42 | (χ : Character N) (hχ : χ ∈ oddCharacters N) {σ : ℝ} (hσ : 0 < σ) : |
| 43 | ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ (fun z => logDerivative χ ((σ : ℂ) + z)) z := by |
| 44 | intro z hz |
| 45 | have ha := odd_logDerivative_analyticAt_of_GRH hGRH χ hχ (s := (σ : ℂ)+z) |
| 46 | (by simp only [add_re, ofReal_re]; linarith) |
| 47 | exact ha.differentiableAt.comp z (differentiableAt_id.const_add (σ : ℂ)) |
| 48 | |
| 49 | lemma shifted_logDerivative_growth (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) (hGRH : GRH N) |
| 50 | (χ : Character N) (hχ : χ ∈ oddCharacters N) {σ : ℝ} (hσ : 0 < σ) : |
| 51 | ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, |
| 52 | ‖logDerivative χ ((σ : ℂ) + line x t)‖ ≤ C * (1 + |t|) ^ (1/4 : ℝ) := by |
| 53 | intro R hR |
| 54 | obtain ⟨L,hL,hb⟩ := logDerivative_uniform_bound σ (σ+R) hσ (by linarith) |
| 55 | refine ⟨L * (64 * (2*N) ^ (1/4 : ℝ)), by positivity, ?_⟩ |
| 56 | intro x hx t |
| 57 | have hh := hb N inferInstance hN4 hGRH χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) |
| 58 | (σ+x) ⟨by linarith [hx.1], by linarith [hx.2]⟩ t |
| 59 | have he : (σ : ℂ) + line x t = line (σ+x) t := by unfold line; push_cast; ring |
| 60 | rw [he] |
| 61 | apply hh.trans |
| 62 | have hn1 : (1 : ℝ) ≤ N := by exact_mod_cast (by omega : 1 ≤ N) |
| 63 | convert mul_le_mul_of_nonneg_left (logarithm_square_le_quarter_power hn1 t) hL.le using 1; ring |
| 64 | |
| 65 | lemma logDerivative_weighted_realPart_bound (N : ℕ) [NeZero N] |
| 66 | (hN4 : 4 ≤ N) (hGRH : GRH N) (χ : Character N) (hχ : χ ∈ oddCharacters N) |
| 67 | (σ : ℝ) (hσ : 0 < σ) : |
| 68 | Integrable (fun t : ℝ => (logDerivative χ (line σ t)).re ^ 2 / (1+t^2)) ∧ |
| 69 | (∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1+t^2)) ≤ |
| 70 | 2 * (∫ t : ℝ, (logDerivative χ (line σ t)).re ^ 2 / (1+t^2)) + |
| 71 | Real.pi * (3 * (Real.log 4 + 4)) ^ 2 := by |
| 72 | have he (t : ℝ) : (σ : ℂ)+line 0 t = line σ t := by simp [line] |
| 73 | have hh := halfPlane_weighted_realPart (fun z => logDerivative χ ((σ : ℂ)+z)) |
| 74 | (shifted_logDerivative_holomorphic N hGRH χ hχ hσ) |
| 75 | (shifted_logDerivative_growth N hN4 hGRH χ hχ hσ) |
| 76 | (by |
| 77 | refine ⟨1, 3*(Real.log 4+4), by positivity, ?_⟩ |
| 78 | intro z hz |
| 79 | exact logDerivative_right_bound N χ _ (by simp only [add_re, ofReal_re]; linarith)) |
| 80 | (by simpa only [he] using logDerivative_weighted_square_integrable N hN4 hGRH χ hχ σ hσ) |
| 81 | simp only [he] at hh |
| 82 | refine ⟨hh.1, hh.2.trans ?_⟩ |
| 83 | apply add_le_add le_rfl |
| 84 | apply mul_le_mul_of_nonneg_left _ Real.pi_pos.le |
| 85 | exact (sq_le_sq₀ (norm_nonneg _) (by positivity)).mpr |
| 86 | (logDerivative_right_bound N χ ((σ : ℂ)+1) (by simp only [add_re, ofReal_re, one_re]; linarith)) |
| 87 | |
| 88 | end ConditionalGoldbach |
