module public import ConditionalGoldbach.Proofs.DensitySeries public import Mathlib.NumberTheory.LSeries.Dirichlet import Mathlib.Analysis.Complex.HalfPlane /-! A positive majorant for the diagonal term sufficient for the fixed-modulus obstruction. -/ public section set_option autoImplicit false noncomputable section open scoped BigOperators Topology open Set Complex Filter namespace ConditionalGoldbach lemma mangoldt_abscissa_le_one : LSeries.abscissaOfAbsConv (fun n : ℕ => (mangoldt n:ℂ)) ≤ 1 := by apply LSeries.abscissaOfAbsConv_le_of_forall_lt_LSeriesSummable intro y hy exact ArithmeticFunction.LSeriesSummable_vonMangoldt (by simpa using hy) lemma deriv_logDeriv_zeta_eq_mangoldt_log {s : ℂ} (hs : 1 < s.re) : deriv (logDeriv riemannZeta) s = LSeries (LSeries.logMul (fun n : ℕ => (mangoldt n:ℂ))) s := by have hab : LSeries.abscissaOfAbsConv (fun n : ℕ => (mangoldt n:ℂ)) < s.re := mangoldt_abscissa_le_one.trans_lt (by exact_mod_cast hs) have he : LSeries (fun n : ℕ => (mangoldt n:ℂ)) =ᶠ[𝓝 s] fun z => -logDeriv riemannZeta z := by filter_upwards [(isOpen_re_gt 1).mem_nhds hs] with z hz simpa only [logDeriv_apply,neg_div] using ArithmeticFunction.LSeries_vonMangoldt_eq_deriv_riemannZeta_div hz have hd := he.deriv_eq change deriv (LSeries (fun n : ℕ => (mangoldt n:ℂ))) s = deriv (-logDeriv riemannZeta) s at hd rw [LSeries_deriv hab,deriv.neg] at hd exact neg_injective hd.symm lemma diagonalSeries_real_le_zeta_second (N : ℕ) {w : ℝ} (hw : 0 < w) : (diagonalSeries N (w:ℂ)).re ≤ (deriv (logDeriv riemannZeta) (1+(w:ℂ))).re := by have hRe : 1 < (1+(w:ℂ)).re := by simpa using hw have hab : LSeries.abscissaOfAbsConv (fun n : ℕ => (mangoldt n:ℂ)) < (1+(w:ℂ)).re := mangoldt_abscissa_le_one.trans_lt (by exact_mod_cast hRe) have hS := LSeriesSummable_logMul_of_lt_re hab have hD : Summable (fun n : ℕ => if 0