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.CompletedLZeros |
| 4 | |
| 5 | /-! Exact logarithmic derivatives of the completed odd-character Gamma factors. -/ |
| 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 logDeriv_cpow_affine (c a b z : ℂ) (hc : c ≠ 0) : |
| 15 | logDeriv (fun w : ℂ => c^(a*w+b)) z = a*Complex.log c := by |
| 16 | have hd := (((hasDerivAt_id z).const_mul a).add_const b).const_cpow (Or.inl hc) |
| 17 | simp only [id_eq] at hd |
| 18 | rw [logDeriv_apply,hd.deriv] |
| 19 | have hp : c^(a*z+b) ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hc) |
| 20 | field_simp |
| 21 | |
| 22 | lemma completedL_odd_formula {d : ℕ} [NeZero d] (χ : Character d) |
| 23 | (hodd : χ (-1) = -1) {z : ℂ} (hz : 0 < z.re) : |
| 24 | completedL χ z = (d : ℂ)^((z+1)/2) * (Real.pi : ℂ)^(-(z+1)/2) * |
| 25 | Gamma ((z+1)/2) * χ.LFunction z := by |
| 26 | have hz0 : z ≠ 0 := by intro he; rw [he,zero_re] at hz; exact lt_irrefl _ hz |
| 27 | have hγ := gammaFactor_ne_zero_re_pos χ hz |
| 28 | have he := (eq_div_iff hγ).mp (χ.LFunction_eq_completed_div_gammaFactor z (Or.inl hz0)) |
| 29 | rw [completedL,← he,DirichletCharacter.Odd.gammaFactor_def hodd,Complex.Gammaℝ_def] |
| 30 | ring |
| 31 | |
| 32 | lemma completedL_logDeriv_odd {d : ℕ} [NeZero d] (χ : Character d) |
| 33 | (hodd : χ (-1) = -1) {z : ℂ} (hz : 0 < z.re) (hL : χ.LFunction z ≠ 0) : |
| 34 | logDeriv (completedL χ) z = logDeriv χ.LFunction z + |
| 35 | (Complex.log (d : ℂ)-Complex.log (Real.pi : ℂ))/2 + |
| 36 | (deriv Gamma ((z+1)/2)/Gamma ((z+1)/2))/2 := by |
| 37 | have hχ := odd_character_ne_one χ hodd |
| 38 | have hd : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d |
| 39 | have hπ : (Real.pi : ℂ) ≠ 0 := by exact_mod_cast Real.pi_ne_zero |
| 40 | have hΓre : 0 < ((z+1)/2).re := by simp only [div_ofNat_re,add_re,one_re]; linarith |
| 41 | have hΓ := Gamma_ne_zero_of_re_pos hΓre |
| 42 | have hΓd := (Complex.hasDerivAt_Gamma_of_re_pos hΓre).differentiableAt |
| 43 | let P : ℂ → ℂ := fun w => (d : ℂ)^((w+1)/2) |
| 44 | let Q : ℂ → ℂ := fun w => (Real.pi : ℂ)^(-(w+1)/2) |
| 45 | let G : ℂ → ℂ := fun w => Gamma ((w+1)/2) |
| 46 | have hP : Differentiable ℂ P := (((differentiable_id.add_const 1).div_const 2).const_cpow (Or.inl hd)) |
| 47 | have hQ : Differentiable ℂ Q := ((((differentiable_id.add_const 1).neg).div_const 2).const_cpow (Or.inl hπ)) |
| 48 | have hGd := hΓd.hasDerivAt.comp z (((hasDerivAt_id z).add_const 1).div_const 2) |
| 49 | simp only [Function.comp_def,id_eq] at hGd |
| 50 | have hGn : G z ≠ 0 := hΓ |
| 51 | have hG : DifferentiableAt ℂ G z := hGd.differentiableAt |
| 52 | have hPn : P z ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hd) |
| 53 | have hQn : Q z ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hπ) |
| 54 | have he : completedL χ =ᶠ[𝓝 z] P*Q*G*χ.LFunction := by |
| 55 | filter_upwards [(isOpen_lt continuous_const Complex.continuous_re).mem_nhds hz] with w hw |
| 56 | exact completedL_odd_formula χ hodd hw |
| 57 | rw [(logDeriv_congr_nhds he).eq_of_nhds, |
| 58 | logDeriv_mul (f := P*Q*G) (g := χ.LFunction) z (mul_ne_zero (mul_ne_zero hPn hQn) hGn) hL ((hP z).mul (hQ z)|>.mul hG) (χ.differentiable_LFunction hχ z), |
| 59 | logDeriv_mul (f := P*Q) (g := G) z (mul_ne_zero hPn hQn) hGn ((hP z).mul (hQ z)) hG, |
| 60 | logDeriv_mul (f := P) (g := Q) z hPn hQn (hP z) (hQ z)] |
| 61 | have hPe : P = fun w : ℂ => (d : ℂ)^((1/2)*w+1/2) := by funext w; dsimp [P]; congr 1; ring |
| 62 | have hQe : Q = fun w : ℂ => (Real.pi : ℂ)^((-1/2)*w+(-1/2)) := by funext w; dsimp [Q]; congr 1; ring |
| 63 | rw [hPe,hQe,logDeriv_cpow_affine _ _ _ _ hd,logDeriv_cpow_affine _ _ _ _ hπ] |
| 64 | have hGe : logDeriv G z = (deriv Gamma ((z+1)/2)/Gamma ((z+1)/2))/2 := by |
| 65 | rw [logDeriv_apply,hGd.deriv] |
| 66 | dsimp [G] |
| 67 | ring |
| 68 | rw [hGe] |
| 69 | ring |
| 70 | |
| 71 | end ConditionalGoldbach |
