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.Experiment |
| 4 | public import ConditionalGoldbach.Definitions.Operators |
| 5 | public import ConditionalGoldbach.Definitions.Spectral |
| 6 | public import Mathlib.Analysis.InnerProductSpace.PiL2 |
| 7 | |
| 8 | /-! FiniteSpectrum 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 spectralNode (i : Fin 2562) : ℂ := |
| 19 | line (if i.val < 1281 then alpha experimentN else beta) (((i.val % 1281 : ℕ) : ℝ) / 16 - 40) |
| 20 | |
| 21 | def trapezoidWeight (i : Fin 2562) : ℝ := |
| 22 | (1 / 16) * if i.val % 1281 = 0 ∨ i.val % 1281 = 1280 then 1 / 2 else 1 |
| 23 | |
| 24 | def finiteSpectralMatrix : Matrix (Fin 2562) (Fin 2562) ℂ := |
| 25 | fun i j => (Real.sqrt (trapezoidWeight i) : ℂ) * |
| 26 | weightedKernel experimentN (spectralNode i) (spectralNode j) * Real.sqrt (trapezoidWeight j) |
| 27 | |
| 28 | def finiteSpectralFunction (q : ℂ) : ℂ := |
| 29 | Matrix.det (1 - (4 * q * (1 - q) / spectralScale experimentN ^ 2) • |
| 30 | (finiteSpectralMatrix * finiteSpectralMatrix)) |
| 31 | |
| 32 | def IsFiniteSpectrum (ev : Fin 2562 → ℝ) : Prop := |
| 33 | ∃ U : Matrix (Fin 2562) (Fin 2562) ℂ, |
| 34 | star U * U = 1 ∧ U * star U = 1 ∧ |
| 35 | finiteSpectralMatrix = U * Matrix.diagonal (fun i => (ev i : ℂ)) * star U |
| 36 | |
| 37 | def finiteEigenvalues : Fin 2562 → ℝ := |
| 38 | if h : ∃ ev, IsFiniteSpectrum ev then Classical.choose h else 0 |
| 39 | |
| 40 | def finiteMatrixOpNorm : ℝ := |
| 41 | sSup {r : ℝ | ∃ x : EuclideanSpace ℂ (Fin 2562), ‖x‖ = 1 ∧ |
| 42 | r = ‖(WithLp.toLp 2 (finiteSpectralMatrix.mulVec (WithLp.ofLp x)) : EuclideanSpace ℂ (Fin 2562))‖} |
| 43 | |
| 44 | end ConditionalGoldbach |
