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.Calculus.ParametricIntegral |
| 4 | public import ConditionalGoldbach.Proofs.HardyTraceAlgebra |
| 5 | |
| 6 | /-! Holomorphy of the Fourier–Laplace representation on its open strip. -/ |
| 7 | public section |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | open MeasureTheory Filter Set Complex |
| 12 | open scoped Topology |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | lemma hardy_derivative_exp_bound (u v δ τ : ℝ) (hδ : 0 < δ) (hu : |u - v| ≤ δ) : |
| 16 | |τ| * Real.exp (u * τ) ≤ |
| 17 | δ⁻¹ * (Real.exp ((v - 2 * δ) * τ) + Real.exp ((v + 2 * δ) * τ)) := by |
| 18 | have habs : δ * |τ| ≤ Real.exp (δ * |τ|) := by |
| 19 | linarith [Real.add_one_le_exp (δ * |τ|)] |
| 20 | have h := mul_le_mul_of_nonneg_right habs (Real.exp_pos (u * τ)).le |
| 21 | rw [← Real.exp_add] at h |
| 22 | have hb : Real.exp (δ * |τ| + u * τ) ≤ |
| 23 | Real.exp ((v - 2 * δ) * τ) + Real.exp ((v + 2 * δ) * τ) := by |
| 24 | by_cases hτ : 0 ≤ τ |
| 25 | · rw [abs_of_nonneg hτ] |
| 26 | apply le_trans (Real.exp_le_exp.mpr ?_) (le_add_of_nonneg_left (Real.exp_pos _).le) |
| 27 | nlinarith [(abs_le.mp hu).2] |
| 28 | · rw [abs_of_neg (lt_of_not_ge hτ)] |
| 29 | apply le_trans (Real.exp_le_exp.mpr ?_) (le_add_of_nonneg_right (Real.exp_pos _).le) |
| 30 | nlinarith [(abs_le.mp hu).1] |
| 31 | have hh := le_trans h hb |
| 32 | calc |
| 33 | _ = δ⁻¹ * (δ * |τ| * Real.exp (u * τ)) := by field_simp |
| 34 | _ ≤ _ := mul_le_mul_of_nonneg_left hh (inv_nonneg.mpr hδ.le) |
| 35 | |
| 36 | lemma fourierLaplace_differentiableAt {a b : ℝ} (ψ : HardySpace a b) {s : ℂ} |
| 37 | (hs : s ∈ strip a b) : DifferentiableAt ℂ (fourierLaplace ψ) s := by |
| 38 | have hsa : 0 < s.re - a := sub_pos.mpr hs.1 |
| 39 | have hsb : 0 < b - s.re := sub_pos.mpr hs.2 |
| 40 | obtain ⟨δ, hδ, hδa, hδb⟩ : ∃ δ : ℝ, 0 < δ ∧ a < s.re - 2 * δ ∧ s.re + 2 * δ < b := by |
| 41 | refine ⟨min (s.re - a) (b - s.re) / 4, by positivity, ?_, ?_⟩ |
| 42 | · have hm := min_le_left (s.re - a) (b - s.re) |
| 43 | have ha : a < s.re := hs.1 |
| 44 | linarith |
| 45 | · have hm := min_le_right (s.re - a) (b - s.re) |
| 46 | have hb : s.re < b := hs.2 |
| 47 | linarith |
| 48 | let B : ℝ → ℝ := fun τ => δ⁻¹ * |
| 49 | (Real.exp ((s.re - 2 * δ) * τ) + Real.exp ((s.re + 2 * δ) * τ)) * ‖ψ τ‖ |
| 50 | have hB : Integrable B := by |
| 51 | have h1 := (hardy_weighted_line_integrable (a := a) (b := b) |
| 52 | (x := s.re - 2 * δ) ⟨hδa, by linarith [hs.2]⟩ ψ).norm |
| 53 | have h2 := (hardy_weighted_line_integrable (a := a) (b := b) |
| 54 | (x := s.re + 2 * δ) ⟨by linarith [hs.1], hδb⟩ ψ).norm |
| 55 | have h := (h1.add h2).const_mul δ⁻¹ |
| 56 | simpa only [B, Pi.add_apply, norm_mul, Complex.norm_real, Real.norm_eq_abs, |
| 57 | abs_of_pos (Real.exp_pos _), add_mul, mul_add, mul_assoc] using h |
| 58 | have hmain := hasDerivAt_integral_of_dominated_loc_of_deriv_le |
| 59 | (F := fun z : ℂ => fun τ : ℝ => ψ τ * Complex.exp (z * τ)) |
| 60 | (F' := fun z : ℂ => fun τ : ℝ => ψ τ * (Complex.exp (z * τ) * τ)) |
| 61 | (bound := B) (Metric.ball_mem_nhds s hδ) |
| 62 | (Eventually.of_forall (fun z => (hardySpace_aestronglyMeasurable ψ).mul |
| 63 | (by fun_prop : Continuous (fun τ : ℝ => Complex.exp (z * τ))).aestronglyMeasurable)) |
| 64 | (fourierLaplace_integrable ψ hs) |
| 65 | ((hardySpace_aestronglyMeasurable ψ).mul |
| 66 | (by fun_prop : Continuous (fun τ : ℝ => Complex.exp (s * τ) * τ)).aestronglyMeasurable) |
| 67 | ?_ hB ?_ |
| 68 | · exact hmain.2.differentiableAt.const_mul _ |
| 69 | · apply Eventually.of_forall |
| 70 | intro τ z hz |
| 71 | have hz' : |z.re - s.re| ≤ δ := by |
| 72 | rw [Metric.mem_ball, dist_eq_norm] at hz |
| 73 | have h := (Complex.abs_re_le_norm (z - s)).trans (le_of_lt hz) |
| 74 | simpa only [Complex.sub_re, dist_eq_norm] using h |
| 75 | have h := mul_le_mul_of_nonneg_right (hardy_derivative_exp_bound z.re s.re δ τ hδ hz') (norm_nonneg (ψ τ)) |
| 76 | simpa only [B, Pi.add_apply, norm_mul, Complex.norm_exp, Complex.mul_re, Complex.ofReal_re, |
| 77 | Complex.ofReal_im, mul_zero, sub_zero, Complex.norm_real, Real.norm_eq_abs, |
| 78 | mul_assoc, mul_comm, mul_left_comm] using h |
| 79 | · exact Eventually.of_forall (fun τ z _ => by |
| 80 | simpa only [id_eq, one_mul] using |
| 81 | ((((hasDerivAt_id z).mul_const (τ : ℂ)).cexp).const_mul (ψ τ))) |
| 82 | |
| 83 | lemma fourierLaplace_differentiableOn {a b : ℝ} (ψ : HardySpace a b) : |
| 84 | DifferentiableOn ℂ (fourierLaplace ψ) (strip a b) := |
| 85 | fun _ hs => (fourierLaplace_differentiableAt ψ hs).differentiableWithinAt |
| 86 | |
| 87 | end ConditionalGoldbach |
