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.CharacterGammaFactor |
| 4 | public import Mathlib.Analysis.PSeries |
| 5 | |
| 6 | /-! Summable quantitative bounds for differences of Gamma resolvents. -/ |
| 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_resolvent_norm_bound (u v : ℂ) (a : ℝ) (ha : 0 < a) (ha1 : a ≤ 1) |
| 16 | (hu : a ≤ u.re) (hv : a ≤ v.re) (n : ℕ) : |
| 17 | ‖1/(v+(n:ℂ))-1/(u+(n:ℂ))‖ ≤ (‖u-v‖/a^2) * (1/((n:ℝ)+1)^2) := by |
| 18 | have hn : (0:ℝ) ≤ n := Nat.cast_nonneg n |
| 19 | have hual : a*((n:ℝ)+1) ≤ ‖u+(n:ℂ)‖ := by |
| 20 | have hh := Complex.re_le_norm (u+(n:ℂ)) |
| 21 | simp only [add_re,natCast_re] at hh |
| 22 | nlinarith |
| 23 | have hval : a*((n:ℝ)+1) ≤ ‖v+(n:ℂ)‖ := by |
| 24 | have hh := Complex.re_le_norm (v+(n:ℂ)) |
| 25 | simp only [add_re,natCast_re] at hh |
| 26 | nlinarith |
| 27 | have hun : u+(n:ℂ) ≠ 0 := norm_pos_iff.mp (lt_of_lt_of_le (by positivity) hual) |
| 28 | have hvn : v+(n:ℂ) ≠ 0 := norm_pos_iff.mp (lt_of_lt_of_le (by positivity) hval) |
| 29 | have he : 1/(v+(n:ℂ))-1/(u+(n:ℂ)) = (u-v)/((v+(n:ℂ))*(u+(n:ℂ))) := by |
| 30 | field_simp |
| 31 | ring |
| 32 | rw [he,norm_div,norm_mul] |
| 33 | have hden : a^2*((n:ℝ)+1)^2 ≤ ‖v+(n:ℂ)‖*‖u+(n:ℂ)‖ := by |
| 34 | nlinarith [mul_le_mul hval hual (by positivity : 0 ≤ a*((n:ℝ)+1)) (norm_nonneg (v+(n:ℂ)))] |
| 35 | calc |
| 36 | _ ≤ ‖u-v‖/(a^2*((n:ℝ)+1)^2) := div_le_div_of_nonneg_left (norm_nonneg _) (by positivity) hden |
| 37 | _ = _ := by rw [div_mul_eq_div_div]; ring |
| 38 | |
| 39 | lemma gamma_resolvent_summable_norm {u v : ℂ} (hu : 0 < u.re) (hv : 0 < v.re) : |
| 40 | Summable (fun n : ℕ => ‖1/(v+(n:ℂ))-1/(u+(n:ℂ))‖) := by |
| 41 | let a : ℝ := min 1 (min u.re v.re) |
| 42 | have ha : 0 < a := lt_min zero_lt_one (lt_min hu hv) |
| 43 | have hs : Summable (fun n : ℕ => 1/((n:ℝ)+1)^2) := by |
| 44 | simpa only [Nat.cast_add,Nat.cast_one] using |
| 45 | (summable_nat_add_iff (f := fun n : ℕ => 1/(n:ℝ)^2) 1).mpr |
| 46 | (Real.summable_one_div_nat_pow.mpr (by norm_num : 1 < (2:ℕ))) |
| 47 | exact (hs.mul_left (‖u-v‖/a^2)).of_nonneg_of_le (fun _ => norm_nonneg _) |
| 48 | (gamma_resolvent_norm_bound u v a ha (min_le_left _ _) |
| 49 | ((min_le_right _ _).trans (min_le_left _ _)) |
| 50 | ((min_le_right _ _).trans (min_le_right _ _))) |
| 51 | |
| 52 | lemma sum_one_div_nat_add_one_sq_le (n : ℕ) : |
| 53 | ∑ j ∈ Finset.range n, 1/((j:ℝ)+1)^2 ≤ 2-2/((n:ℝ)+1) := by |
| 54 | induction n with |
| 55 | | zero => norm_num |
| 56 | | succ n ih => |
| 57 | rw [Finset.sum_range_succ] |
| 58 | push_cast |
| 59 | have hn : (0:ℝ) ≤ n := Nat.cast_nonneg n |
| 60 | have hstep : 1/((n:ℝ)+1)^2 ≤ 2/((n:ℝ)+1)-2/((n:ℝ)+2) := by |
| 61 | apply (div_le_iff₀ (by positivity : 0 < ((n:ℝ)+1)^2)).mpr |
| 62 | field_simp |
| 63 | nlinarith |
| 64 | have he : (n:ℝ)+1+1 = (n:ℝ)+2 := by ring |
| 65 | rw [he] |
| 66 | linarith |
| 67 | |
| 68 | end ConditionalGoldbach |
