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.Arithmetic |
| 4 | public import ConditionalGoldbach.Definitions.Hardy |
| 5 | public import ConditionalGoldbach.Definitions.Hilbert |
| 6 | public import Mathlib.Analysis.CStarAlgebra.Classes |
| 7 | public import Mathlib.Analysis.Calculus.FDeriv.Defs |
| 8 | public import Mathlib.Analysis.Quaternion |
| 9 | |
| 10 | /-! Spectral definitions used by the conditional Goldbach formalization. -/ |
| 11 | @[expose] public section |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | open scoped BigOperators ComplexConjugate Topology |
| 16 | open MeasureTheory Filter Set Complex |
| 17 | namespace ConditionalGoldbach |
| 18 | attribute [local instance] Classical.propDecidable |
| 19 | |
| 20 | def spectralScale (N : ℕ) : ℝ := |
| 21 | Real.sqrt (singularSeries N / N) * Real.rpow (Real.log N) (3 / 2) |
| 22 | |
| 23 | def spectralComplex {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 24 | (N : ℕ) (T : H →L[ℂ] H) (q : ℂ) : ℂ := |
| 25 | ∏' j : ℕ, (1 - (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) * q * (1 - q)) |
| 26 | |
| 27 | def spectralPartialQuaternion {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 28 | (N : ℕ) (T : H →L[ℂ] H) (q : Quaternion ℝ) (k : ℕ) : Quaternion ℝ := |
| 29 | (List.range k).foldl (fun z j => |
| 30 | z * (1 - (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) • (q * (1 - q)))) 1 |
| 31 | |
| 32 | def spectralQuaternion {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 33 | (N : ℕ) (T : H →L[ℂ] H) (q : Quaternion ℝ) : Quaternion ℝ := |
| 34 | if h : ∃ y, Tendsto (spectralPartialQuaternion N T q) atTop (𝓝 y) |
| 35 | then Classical.choose h else 0 |
| 36 | |
| 37 | def IntrinsicEntire (F : Quaternion ℝ → Quaternion ℝ) : Prop := |
| 38 | ∃ f : ℂ → ℂ, Differentiable ℂ f ∧ (∀ z, f (conj z) = conj (f z)) ∧ |
| 39 | ∀ J : Quaternion ℝ, J.re = 0 → J ^ 2 = -1 → ∀ z : ℂ, |
| 40 | F ((z.re : Quaternion ℝ) + z.im • J) = (f z).re + (f z).im • J |
| 41 | |
| 42 | def spectralWidthFromBound (N : ℕ) (M : ℝ) : ℝ := |
| 43 | (1 - Real.sqrt (1 - spectralScale N ^ 2 / M ^ 2)) / 2 |
| 44 | |
| 45 | def spectralRootParameter (N : ℕ) (μ : ℝ) : ℝ := |
| 46 | spectralScale N ^ 2 / μ ^ 2 |
| 47 | |
| 48 | def quaternionSlice (J : Quaternion ℝ) : Set (Quaternion ℝ) := |
| 49 | {q | ∃ x y : ℝ, q = (x : Quaternion ℝ) + y • J} |
| 50 | |
| 51 | def complexQuaternion (z : ℂ) : Quaternion ℝ := ⟨z.re, z.im, 0, 0⟩ |
| 52 | |
| 53 | def fueterOperator (F : ℂ → ℂ → ℂ) (s z : ℂ) : Quaternion ℝ := |
| 54 | complexQuaternion (wirtingerBar (fun u => F u z) s) + |
| 55 | (⟨0, 0, 1, 0⟩ : Quaternion ℝ) * complexQuaternion (wirtinger (F s) z) |
| 56 | |
| 57 | def spectralPartialQuaternionReindexed {H : Type*} [NormedAddCommGroup H] |
| 58 | [InnerProductSpace ℂ H] (N : ℕ) (T : H →L[ℂ] H) |
| 59 | (e : ℕ ≃ ℕ) (q : Quaternion ℝ) (k : ℕ) : Quaternion ℝ := |
| 60 | (List.range k).foldl (fun acc j => |
| 61 | acc * (1 - (4 * eigenvalues T (e j) ^ 2 / spectralScale N ^ 2 : ℝ) * q * (1 - q))) 1 |
| 62 | |
| 63 | def centeredSpectralPartial {H : Type*} [NormedAddCommGroup H] |
| 64 | [InnerProductSpace ℂ H] (N : ℕ) (T : H →L[ℂ] H) |
| 65 | (ξ : Quaternion ℝ) (k : ℕ) : Quaternion ℝ := |
| 66 | (List.range k).foldl (fun acc j => acc * |
| 67 | (1 - (eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) + |
| 68 | (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) * ξ ^ 2)) 1 |
| 69 | |
| 70 | end ConditionalGoldbach |
