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.CharacterZeroReflection |
| 4 | |
| 5 | /-! The completed function is entire and has exactly the multiplicity-indexed nontrivial zeros. -/ |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology |
| 11 | open Set Complex Metric Filter |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | lemma completedL_differentiable {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) : |
| 15 | Differentiable ℂ (completedL χ) := by |
| 16 | have hd : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d |
| 17 | exact (((differentiable_id.add_const 1).div_const 2).const_cpow (Or.inl hd)).mul |
| 18 | (χ.differentiable_completedLFunction hχ) |
| 19 | |
| 20 | lemma completedLFunction_ne_zero_right {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) |
| 21 | {u : ℂ} (hu : 1 ≤ u.re) : χ.completedLFunction u ≠ 0 := by |
| 22 | have hL := χ.LFunction_ne_zero_of_one_le_re (Or.inl hχ) hu |
| 23 | have hu0 : u ≠ 0 := by intro he; rw [he,zero_re] at hu; norm_num at hu |
| 24 | intro hz |
| 25 | apply hL |
| 26 | rw [χ.LFunction_eq_completed_div_gammaFactor u (Or.inl hu0),hz,zero_div] |
| 27 | |
| 28 | lemma completedLFunction_ne_zero_left {d : ℕ} [NeZero d] (χ : Character d) |
| 29 | (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) {u : ℂ} (hu : u.re ≤ 0) : |
| 30 | χ.completedLFunction u ≠ 0 := by |
| 31 | have hh := hprim.completedLFunction_one_sub (1-u) |
| 32 | rw [sub_sub_cancel] at hh |
| 33 | rw [hh] |
| 34 | have hd : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d |
| 35 | exact mul_ne_zero (mul_ne_zero (Complex.cpow_ne_zero_iff.mpr (Or.inl hd)) |
| 36 | (primitive_rootNumber_ne_zero χ hχ hprim)) |
| 37 | (completedLFunction_ne_zero_right χ⁻¹ (inv_ne_one.mpr hχ) |
| 38 | (by simp only [sub_re,one_re]; linarith)) |
| 39 | |
| 40 | lemma completedL_eq_zero_iff {d : ℕ} [NeZero d] (χ : Character d) |
| 41 | (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) (u : ℂ) : |
| 42 | completedL χ u = 0 ↔ 0 < u.re ∧ u.re < 1 ∧ χ.LFunction u = 0 := by |
| 43 | have hd : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d |
| 44 | have hpow : (d : ℂ)^((u+1)/2) ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hd) |
| 45 | rw [completedL,mul_eq_zero,or_iff_right hpow] |
| 46 | constructor |
| 47 | · intro hz |
| 48 | have h0 : 0 < u.re := by |
| 49 | by_contra h |
| 50 | exact completedLFunction_ne_zero_left χ hχ hprim (le_of_not_gt h) hz |
| 51 | have h1 : u.re < 1 := by |
| 52 | by_contra h |
| 53 | exact completedLFunction_ne_zero_right χ hχ (le_of_not_gt h) hz |
| 54 | refine ⟨h0,h1,?_⟩ |
| 55 | rw [χ.LFunction_eq_completed_div_gammaFactor u |
| 56 | (Or.inl (by intro he; rw [he,zero_re] at h0; exact lt_irrefl _ h0)),hz,zero_div] |
| 57 | · rintro ⟨h0,h1,hz⟩ |
| 58 | have hu0 : u ≠ 0 := by intro he; rw [he,zero_re] at h0; exact lt_irrefl _ h0 |
| 59 | rw [χ.LFunction_eq_completed_div_gammaFactor u (Or.inl hu0)] at hz |
| 60 | exact (div_eq_zero_iff.mp hz).resolve_right (gammaFactor_ne_zero_re_pos χ h0) |
| 61 | |
| 62 | lemma completedL_zero_ne_zero {d : ℕ} [NeZero d] (χ : Character d) |
| 63 | (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) : completedL χ 0 ≠ 0 := by |
| 64 | intro h |
| 65 | have hh := ((completedL_eq_zero_iff χ hχ hprim 0).mp h).1 |
| 66 | norm_num at hh |
| 67 | |
| 68 | lemma completedL_order_eq_LFunction {d : ℕ} [NeZero d] (χ : Character d) |
| 69 | (hχ : χ ≠ 1) {u : ℂ} (hu : 0 < u.re) : |
| 70 | analyticOrderAt (completedL χ) u = analyticOrderAt χ.LFunction u := by |
| 71 | have hd : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d |
| 72 | have hp : AnalyticAt ℂ (fun z : ℂ => (d : ℂ)^((z+1)/2)) u := |
| 73 | (((differentiable_id.add_const 1).div_const 2).const_cpow (Or.inl hd)).analyticAt u |
| 74 | have hpn : (d : ℂ)^((u+1)/2) ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hd) |
| 75 | change analyticOrderAt ((fun z : ℂ => (d : ℂ)^((z+1)/2))*χ.completedLFunction) u = _ |
| 76 | rw [analyticOrderAt_mul hp ((χ.differentiable_completedLFunction hχ).analyticAt u), |
| 77 | hp.analyticOrderAt_eq_zero.mpr hpn,zero_add,LFunction_order_eq_completed χ hχ hu] |
| 78 | |
| 79 | end ConditionalGoldbach |
