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 Mathlib.Analysis.InnerProductSpace.l2Space |
| 4 | |
| 5 | /-! Hilbert–Schmidt and trace-class operators and diagonal spectral data. -/ |
| 6 | @[expose] public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology |
| 11 | open Filter Set Complex |
| 12 | namespace ConditionalGoldbach |
| 13 | attribute [local instance] Classical.propDecidable |
| 14 | |
| 15 | def paperInner {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 16 | (u v : H) : ℂ := inner ℂ v u |
| 17 | |
| 18 | def IsHilbertSchmidt {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 19 | (T : H →L[ℂ] H) : Prop := |
| 20 | ∃ b : HilbertBasis ℕ ℂ H, Summable (fun j => ‖T (b j)‖ ^ 2) |
| 21 | |
| 22 | def hsNorm {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 23 | (T : H →L[ℂ] H) : ℝ := |
| 24 | if h : ∃ b : HilbertBasis ℕ ℂ H, Summable (fun j => ‖T (b j)‖ ^ 2) |
| 25 | then Real.sqrt (∑' j, ‖T ((Classical.choose h) j)‖ ^ 2) else 0 |
| 26 | |
| 27 | def IsPositiveTraceClass {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 28 | (T : H →L[ℂ] H) : Prop := |
| 29 | T.IsSymmetric ∧ (∀ x, 0 ≤ (paperInner (T x) x).re) ∧ |
| 30 | ∃ b : HilbertBasis ℕ ℂ H, Summable (fun j => (paperInner (T (b j)) (b j)).re) |
| 31 | |
| 32 | def positiveTrace {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 33 | (T : H →L[ℂ] H) : ℝ := |
| 34 | if h : ∃ b : HilbertBasis ℕ ℂ H, Summable (fun j => (paperInner (T (b j)) (b j)).re) |
| 35 | then ∑' j, (paperInner (T ((Classical.choose h) j)) ((Classical.choose h) j)).re else 0 |
| 36 | |
| 37 | structure SpectralData {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 38 | (T : H →L[ℂ] H) where |
| 39 | basis : HilbertBasis ℕ ℂ H |
| 40 | values : ℕ → ℝ |
| 41 | diagonal : ∀ j, T (basis j) = (values j : ℂ) • basis j |
| 42 | squareSummable : Summable (fun j => values j ^ 2) |
| 43 | |
| 44 | def eigenvalues {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 45 | (T : H →L[ℂ] H) : ℕ → ℝ := |
| 46 | if h : Nonempty (SpectralData T) then (Classical.choice h).values else 0 |
| 47 | |
| 48 | def positiveFredholmDet {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 49 | (A : H →L[ℂ] H) (t : ℂ) : ℂ := |
| 50 | ∏' j : ℕ, (1 - t * (eigenvalues A j : ℂ)) |
| 51 | |
| 52 | def fredholmSquareDet {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 53 | (T : H →L[ℂ] H) (t : ℂ) : ℂ := |
| 54 | positiveFredholmDet (T.comp T) t |
| 55 | |
| 56 | end ConditionalGoldbach |
