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.Analysis.Calculus.Deriv.Basic |
| 5 | public import Mathlib.MeasureTheory.Function.L2Space |
| 6 | public import Mathlib.MeasureTheory.Measure.Haar.OfBasis |
| 7 | |
| 8 | /-! Hardy 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 hardyWeight (a b τ : ℝ) : ℝ := Real.exp (2 * a * τ) + Real.exp (2 * b * τ) |
| 19 | |
| 20 | def hardyMeasure (a b : ℝ) : Measure ℝ := |
| 21 | volume.withDensity (fun τ => ENNReal.ofReal (hardyWeight a b τ)) |
| 22 | |
| 23 | abbrev HardySpace (a b : ℝ) := Lp ℂ 2 (hardyMeasure a b) |
| 24 | |
| 25 | def fourierLaplace {a b : ℝ} (ψ : HardySpace a b) (s : ℂ) : ℂ := |
| 26 | (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * ∫ τ : ℝ, ψ τ * Complex.exp (s * τ) |
| 27 | |
| 28 | def IsRawHardy (a b : ℝ) (f : ℂ → ℂ) : Prop := |
| 29 | DifferentiableOn ℂ f (strip a b) ∧ |
| 30 | ∃ C : ℝ, ∀ ε : ℝ, 0 < ε → ε < (b - a) / 2 → |
| 31 | Integrable (fun t : ℝ => ‖f (line (a + ε) t)‖ ^ 2 + |
| 32 | ‖f (line (b - ε) t)‖ ^ 2) ∧ |
| 33 | (∫ t : ℝ, ‖f (line (a + ε) t)‖ ^ 2 + ‖f (line (b - ε) t)‖ ^ 2) ≤ C |
| 34 | |
| 35 | def rawHardyNormSq (a b : ℝ) (f : ℂ → ℂ) : ℝ := |
| 36 | sSup {r | ∃ ε : ℝ, 0 < ε ∧ ε < (b - a) / 2 ∧ |
| 37 | r = ∫ t : ℝ, ‖f (line (a + ε) t)‖ ^ 2 + ‖f (line (b - ε) t)‖ ^ 2} |
| 38 | |
| 39 | def reproducingKernel (a b : ℝ) (s z : ℂ) : ℂ := |
| 40 | (4 * ((b - a : ℝ) : ℂ))⁻¹ / |
| 41 | Complex.sin ((Real.pi : ℂ) * (s + conj z - 2 * a) / (2 * (b - a : ℝ))) |
| 42 | |
| 43 | def wirtingerBar (f : ℂ → ℂ) (s : ℂ) : ℂ := |
| 44 | (deriv (fun x : ℝ => f (s + x)) 0 + I * deriv (fun y : ℝ => f (s + y * I)) 0) / 2 |
| 45 | |
| 46 | def wirtinger (f : ℂ → ℂ) (s : ℂ) : ℂ := |
| 47 | (deriv (fun x : ℝ => f (s + x)) 0 - I * deriv (fun y : ℝ => f (s + y * I)) 0) / 2 |
| 48 | |
| 49 | abbrev BoundaryParameter := Bool × ℝ |
| 50 | |
| 51 | def boundaryPoint (a b : ℝ) (p : BoundaryParameter) : ℂ := |
| 52 | line (if p.1 then b else a) p.2 |
| 53 | |
| 54 | def boundaryMeasure : Measure BoundaryParameter := |
| 55 | Measure.prod Measure.count (volume : Measure ℝ) |
| 56 | |
| 57 | def poissonKernelReal (a t : ℝ) : ℝ := a / (Real.pi * (a ^ 2 + t ^ 2)) |
| 58 | |
| 59 | def realConvolution (f g : ℝ → ℝ) (t : ℝ) : ℝ := |
| 60 | ∫ u : ℝ, f u * g (t - u) |
| 61 | |
| 62 | def poissonAction (ℓ : ℝ) (f : ℝ → ℝ) : ℝ → ℝ := |
| 63 | if ℓ = 0 then f else realConvolution (poissonKernelReal ℓ) f |
| 64 | |
| 65 | def diagonalVector (n : ℕ) (s : ℂ) : ℂ := (n : ℂ) ^ (-s) / (1 + s) |
| 66 | |
| 67 | end ConditionalGoldbach |
