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.Definitions.Model |
| 4 | import Mathlib.Tactic.NormNum.RealSqrt |
| 5 | |
| 6 | /-! Absolute convergence and holomorphy of the diagonal Dirichlet series. -/ |
| 7 | public section |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | open scoped BigOperators ComplexConjugate Topology ContDiff |
| 12 | open MeasureTheory Filter Set Complex |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | lemma LSeriesSummable_mangoldt_sq (N : ℕ) {s : ℂ} (hs : 1 < s.re) : |
| 16 | LSeriesSummable (fun n : ℕ => if Nat.Coprime n N then (mangoldt n : ℂ)^2 else 0) s := by |
| 17 | have hf := LSeriesSummable_logMul_of_lt_re (f := LSeries.logMul 1) |
| 18 | (s := s) (by rw [LSeries.abscissaOfAbsConv_logMul, LSeries.abscissaOfAbsConv_one]; exact_mod_cast hs) |
| 19 | rw [LSeriesSummable, ← summable_norm_iff] at hf ⊢ |
| 20 | refine hf.of_nonneg_of_le (fun _ => norm_nonneg _) (fun n => LSeries.norm_term_le (n := n) s ?_) |
| 21 | change ‖(if Nat.Coprime n N then (mangoldt n : ℂ)^2 else 0)‖ ≤ |
| 22 | ‖Complex.log n * (Complex.log n * 1)‖ |
| 23 | by_cases hn : Nat.Coprime n N |
| 24 | · rw [ite_eq_left hn] |
| 25 | simp only [norm_pow, mul_one, norm_mul] |
| 26 | have hΛ : ‖(mangoldt n : ℂ)‖ ≤ ‖Complex.log n‖ := by |
| 27 | simpa [mangoldt, abs_of_nonneg, ArithmeticFunction.vonMangoldt_nonneg, |
| 28 | ← Complex.natCast_log, Real.log_natCast_nonneg] |
| 29 | using (ArithmeticFunction.vonMangoldt_le_log (n := n)) |
| 30 | nlinarith [norm_nonneg (mangoldt n : ℂ), norm_nonneg (Complex.log n)] |
| 31 | · simp only [hn, ite_false, norm_zero] |
| 32 | positivity |
| 33 | |
| 34 | lemma diagonalSeries_eq_LSeries (N : ℕ) (w : ℂ) : |
| 35 | diagonalSeries N w = |
| 36 | LSeries (fun n : ℕ => if Nat.Coprime n N then (mangoldt n : ℂ)^2 else 0) (1 + w) := by |
| 37 | apply tsum_congr |
| 38 | intro n |
| 39 | by_cases hn : n = 0 |
| 40 | · subst n |
| 41 | simp [LSeries.term] |
| 42 | · simp only [LSeries.term, ite_false, Nat.pos_iff_ne_zero, hn] |
| 43 | split_ifs <;> simp_all |
| 44 | |
| 45 | lemma diagonalSeries_summable (N : ℕ) {w : ℂ} (hw : 0 < w.re) : |
| 46 | Summable (fun n : ℕ => if 0 < n ∧ Nat.Coprime n N then |
| 47 | ‖(mangoldt n : ℂ)^2 / (n : ℂ) ^ (1 + w)‖ else 0) := by |
| 48 | have h := (LSeriesSummable_mangoldt_sq N (s := 1 + w) (by simpa using hw)).norm |
| 49 | apply h.congr |
| 50 | intro n |
| 51 | by_cases hn : n = 0 |
| 52 | · subst n |
| 53 | simp [LSeries.term] |
| 54 | · simp only [LSeries.term, ite_false, Nat.pos_iff_ne_zero, hn] |
| 55 | split_ifs <;> simp_all |
| 56 | |
| 57 | lemma diagonalSeries_differentiableAt (N : ℕ) {w : ℂ} (hw : 0 < w.re) : |
| 58 | DifferentiableAt ℂ (diagonalSeries N) w := by |
| 59 | have hab : LSeries.abscissaOfAbsConv |
| 60 | (fun n : ℕ => if Nat.Coprime n N then (mangoldt n : ℂ)^2 else 0) ≤ (1 : ℝ) := by |
| 61 | exact LSeries.abscissaOfAbsConv_le_of_forall_lt_LSeriesSummable |
| 62 | (fun s hs => LSeriesSummable_mangoldt_sq N hs) |
| 63 | have ht : (1 : EReal) < ((1 + w).re : ℝ) := by |
| 64 | exact_mod_cast (show (1 : ℝ) < (1 + w).re by simpa using hw) |
| 65 | have hd := (LSeries_hasDerivAt (lt_of_le_of_lt hab ht)).differentiableAt |
| 66 | simpa only [Function.comp_def, ← diagonalSeries_eq_LSeries] using |
| 67 | hd.comp w ((differentiableAt_const (1 : ℂ)).add differentiableAt_id) |
| 68 | |
| 69 | lemma diagonalSeries_differentiableOn (N : ℕ) : |
| 70 | DifferentiableOn ℂ (diagonalSeries N) {w | 0 < w.re} := |
| 71 | fun _ hw => (diagonalSeries_differentiableAt N hw).differentiableWithinAt |
| 72 | |
| 73 | end ConditionalGoldbach |
