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.Definitions.Characters |
| 4 | public import ConditionalGoldbach.Definitions.Weights |
| 5 | public import Mathlib.NumberTheory.ArithmeticFunction.Defs |
| 6 | public import Mathlib.NumberTheory.LSeries.RiemannZeta |
| 7 | |
| 8 | /-! Model definitions used by the conditional Goldbach formalization. -/ |
| 9 | @[expose] public section |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | open scoped BigOperators ComplexConjugate Topology |
| 14 | open MeasureTheory Filter Set Complex |
| 15 | namespace ConditionalGoldbach |
| 16 | attribute [local instance] Classical.propDecidable |
| 17 | |
| 18 | def diagonalSeries (N : ℕ) (w : ℂ) : ℂ := |
| 19 | ∑' n : ℕ, if 0 < n ∧ Nat.Coprime n N then |
| 20 | (mangoldt n : ℂ) ^ 2 / (n : ℂ) ^ (1 + w) else 0 |
| 21 | |
| 22 | def densitySeries (N : ℕ) (w : ℂ) : ℂ := |
| 23 | ∑' k : ℕ, if 0 < k then (singularSeries (k * N) : ℂ) / (k : ℂ) ^ w else 0 |
| 24 | |
| 25 | def densityEulerProduct (N : ℕ) (w : ℂ) : ℂ := |
| 26 | ∏' p : ℕ, if p.Prime ∧ 2 < p ∧ ¬p ∣ N then |
| 27 | 1 + (p : ℂ) ^ (-w) / ((p : ℂ) - 2) else 1 |
| 28 | |
| 29 | def continuedDensity (N : ℕ) (w : ℂ) : ℂ := |
| 30 | singularSeries N * riemannZeta w * densityEulerProduct N w |
| 31 | |
| 32 | def betaKernel (s z : ℂ) : ℂ := |
| 33 | betaIntegral (1 / 2 - s) (s + z) + betaIntegral (1 / 2 - z) (s + z) - |
| 34 | betaIntegral (1 / 2 - s) (1 / 2 - z) |
| 35 | |
| 36 | def gammaQuotient (s : ℂ) : ℂ := |
| 37 | Gamma ((3 / 2 - s) / 2) / Gamma ((3 / 2 + s) / 2) |
| 38 | |
| 39 | def betaModel (N : ℕ) (s z : ℂ) : ℂ := |
| 40 | (N : ℂ) ^ (-(s + z)) * continuedDensity N (s + z) * betaKernel s z |
| 41 | |
| 42 | def continuedModel (N : ℕ) (s z : ℂ) : ℂ := |
| 43 | singularSeries N * ((Real.pi : ℂ) / N) ^ (s + z) * |
| 44 | densityEulerProduct N (s + z) * riemannZeta (1 - s - z) * |
| 45 | gammaQuotient s * gammaQuotient z |
| 46 | |
| 47 | def residual (N : ℕ) [NeZero N] (s z : ℂ) : ℂ := |
| 48 | characterKernel N s z - diagonalSeries N (s + z) - continuedModel N s z |
| 49 | |
| 50 | def residualIntegral (N : ℕ) [NeZero N] (φ : ℝ → ℝ) (σ : ℝ) : ℂ := |
| 51 | verticalMellin σ (fun s => verticalMellin σ (fun z => |
| 52 | (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * residual N s z)) |
| 53 | |
| 54 | def betaGamma (u v : ℂ) : ℂ := Gamma u * Gamma v / Gamma (u + v) |
| 55 | |
| 56 | def baselineProductR (N : ℕ) (w : ℂ) : ℂ := |
| 57 | (∏ p ∈ N.primeFactors, (1 - (p : ℂ) ^ (-1 - w))) * |
| 58 | ∏' p : ℕ, if p.Prime ∧ 2 < p ∧ ¬p ∣ N then |
| 59 | 1 + (2 * (p : ℂ) ^ (-w) - (p : ℂ) ^ (-2 * w)) / ((p : ℂ) * ((p : ℂ) - 2)) |
| 60 | else 1 |
| 61 | |
| 62 | end ConditionalGoldbach |
