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.GammaDerivativeLimit |
| 4 | public import ConditionalGoldbach.Proofs.GammaResolventBounds |
| 5 | |
| 6 | /-! The absolutely convergent digamma difference series, derived from Euler's Gamma limit. -/ |
| 7 | public section |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | open scoped BigOperators Topology |
| 12 | open Set Complex Filter |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | lemma Gamma_logDeriv_difference_hasSum {u v : ℂ} (hu : 0 < u.re) (hv : 0 < v.re) : |
| 16 | HasSum (fun n : ℕ => 1/(v+(n:ℂ))-1/(u+(n:ℂ))) |
| 17 | (logDeriv Gamma u-logDeriv Gamma v) := by |
| 18 | have hs := (gamma_resolvent_summable_norm hu hv).of_norm |
| 19 | have hlim := (GammaSeq_logDeriv_tendsto hu).sub (GammaSeq_logDeriv_tendsto hv) |
| 20 | have he : ∀ᶠ n : ℕ in atTop, |
| 21 | logDeriv (fun z => GammaSeq z n) u-logDeriv (fun z => GammaSeq z n) v = |
| 22 | ∑ j ∈ Finset.range (n+1), (1/(v+(j:ℂ))-1/(u+(j:ℂ))) := by |
| 23 | filter_upwards [eventually_ne_atTop 0] with n hn |
| 24 | rw [GammaSeq_logDeriv hu hn,GammaSeq_logDeriv hv hn,Finset.sum_sub_distrib] |
| 25 | ring |
| 26 | have hsum := hs.hasSum.tendsto_sum_nat.comp (tendsto_add_atTop_nat 1) |
| 27 | have heq := tendsto_nhds_unique (hlim.congr' he) hsum |
| 28 | simpa only [heq] using hs.hasSum |
| 29 | |
| 30 | lemma Gamma_logDeriv_difference {u v : ℂ} (hu : 0 < u.re) (hv : 0 < v.re) : |
| 31 | logDeriv Gamma u-logDeriv Gamma v = |
| 32 | ∑' n : ℕ, (1/(v+(n:ℂ))-1/(u+(n:ℂ))) := |
| 33 | (Gamma_logDeriv_difference_hasSum hu hv).tsum_eq.symm |
| 34 | |
| 35 | lemma Gamma_logDeriv_difference_norm_le {u v : ℂ} |
| 36 | (hu : 1/2 ≤ u.re) (hv : 1/2 ≤ v.re) : |
| 37 | ‖logDeriv Gamma u-logDeriv Gamma v‖ ≤ 8*‖u-v‖ := by |
| 38 | have hu0 : 0 < u.re := lt_of_lt_of_le (by norm_num) hu |
| 39 | have hv0 : 0 < v.re := lt_of_lt_of_le (by norm_num) hv |
| 40 | have hs := Gamma_logDeriv_difference_hasSum hu0 hv0 |
| 41 | apply le_of_tendsto hs.tendsto_sum_nat.norm |
| 42 | apply Filter.Eventually.of_forall |
| 43 | intro n |
| 44 | calc |
| 45 | ‖∑ j ∈ Finset.range n, (1/(v+(j:ℂ))-1/(u+(j:ℂ)))‖ ≤ |
| 46 | ∑ j ∈ Finset.range n, ‖1/(v+(j:ℂ))-1/(u+(j:ℂ))‖ := norm_sum_le _ _ |
| 47 | _ ≤ ∑ j ∈ Finset.range n, (‖u-v‖/(1/2:ℝ)^2)*(1/((j:ℝ)+1)^2) := |
| 48 | Finset.sum_le_sum (fun j _ => gamma_resolvent_norm_bound u v (1/2) (by norm_num) (by norm_num) hu hv j) |
| 49 | _ = (‖u-v‖/(1/2:ℝ)^2)*(∑ j ∈ Finset.range n, 1/((j:ℝ)+1)^2) := by rw [Finset.mul_sum] |
| 50 | _ ≤ (‖u-v‖/(1/2:ℝ)^2)*2 := by |
| 51 | gcongr |
| 52 | exact (sum_one_div_nat_add_one_sq_le n).trans (sub_le_self _ (by positivity)) |
| 53 | _ = _ := by ring |
| 54 | |
| 55 | end ConditionalGoldbach |
