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.GeometryCore |
| 4 | public import Mathlib.MeasureTheory.Integral.Bochner.Basic |
| 5 | public import Mathlib.MeasureTheory.Measure.Haar.OfBasis |
| 6 | |
| 7 | /-! Asymptotics definitions used by the conditional Goldbach formalization. -/ |
| 8 | @[expose] public section |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | open scoped BigOperators ComplexConjugate Topology |
| 13 | open MeasureTheory Filter Set Complex |
| 14 | namespace ConditionalGoldbach |
| 15 | attribute [local instance] Classical.propDecidable |
| 16 | |
| 17 | def EvenEventually (P : ℕ → Prop) : Prop := ∃ N₀ : ℕ, ∀ N ≥ N₀, Even N → P N |
| 18 | |
| 19 | def EvenTendstoInfinity (h : ℕ → ℝ) : Prop := |
| 20 | ∀ B : ℝ, EvenEventually (fun N => B ≤ h N) |
| 21 | |
| 22 | def NormallySummableOn {ι X : Type*} [TopologicalSpace X] |
| 23 | (f : ι → X → ℂ) (U : Set X) : Prop := |
| 24 | ∀ K : Set X, IsCompact K → K ⊆ U → |
| 25 | (∀ i, BddAbove {r : ℝ | ∃ x ∈ K, r = ‖f i x‖}) ∧ |
| 26 | Summable (fun i => sSup {r : ℝ | ∃ x ∈ K, r = ‖f i x‖}) |
| 27 | |
| 28 | def HermitianKernel (K : ℂ → ℂ → ℂ) : Prop := ∀ s z, K s z = conj (K z s) |
| 29 | |
| 30 | def PositiveKernel (K : ℂ → ℂ → ℂ) : Prop := |
| 31 | ∀ n : ℕ, ∀ points coefficients : Fin n → ℂ, |
| 32 | 0 ≤ (∑ i, ∑ j, coefficients i * conj (coefficients j) * K (points i) (points j)).re |
| 33 | |
| 34 | def BoundaryKernelSquareIntegral (a b : ℝ) (K : ℂ → ℂ → ℂ) : ℝ := |
| 35 | ∑ x ∈ ({a, b} : Finset ℝ), ∑ y ∈ ({a, b} : Finset ℝ), |
| 36 | ∫ t : ℝ, ∫ u : ℝ, ‖K (line x t) (line y u)‖ ^ 2 |
| 37 | |
| 38 | def CompactUniformLimit {X Y : Type*} [TopologicalSpace X] [NormedAddCommGroup Y] |
| 39 | (f : ℕ → X → Y) (g : X → Y) : Prop := |
| 40 | ∀ K : Set X, IsCompact K → ∀ ε : ℝ, 0 < ε → |
| 41 | ∃ n₀, ∀ n ≥ n₀, ∀ x ∈ K, ‖f n x - g x‖ < ε |
| 42 | |
| 43 | def EvenAsymptotic (f g : ℕ → ℝ) : Prop := |
| 44 | ∀ ε : ℝ, 0 < ε → EvenEventually (fun N => |f N / g N - 1| < ε) |
| 45 | |
| 46 | def baselineBound (C : ℝ) (N : ℕ) (a : ℝ) : ℝ := C * (Real.log N ^ 2 + a⁻¹ ^ 2) |
| 47 | |
| 48 | def balanceFactor (c : ℝ) : ℝ := Real.exp (2 * c) * (1 + c⁻¹ ^ 2) |
| 49 | |
| 50 | def availableNormMajorant (C : ℝ) (N : ℕ) (a : ℝ) : ℝ := |
| 51 | C * (Real.log N ^ 2 + a ^ (-2 : ℤ)) |
| 52 | |
| 53 | end ConditionalGoldbach |
