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.Complex.CauchyIntegral |
| 4 | public import ConditionalGoldbach.Proofs.MellinBasic |
| 5 | |
| 6 | /-! Contour shifting on a closed vertical strip with integrable boundary lines. -/ |
| 7 | public section |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | open scoped BigOperators ComplexConjugate Topology ContDiff |
| 12 | open MeasureTheory Filter Set Complex |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | lemma verticalMellin_eq_of_horizontal_tendsto (f : ℂ → ℂ) (a b : ℝ) (hab : a ≤ b) |
| 16 | (hd : ∀ z : ℂ, z.re ∈ Icc a b → DifferentiableAt ℂ f z) |
| 17 | (ha : Integrable (fun t : ℝ => f (line a t))) |
| 18 | (hb : Integrable (fun t : ℝ => f (line b t))) |
| 19 | (hbot : Tendsto (fun T : ℝ => ∫ x in a..b, f (line x (-T))) atTop (𝓝 0)) |
| 20 | (htop : Tendsto (fun T : ℝ => ∫ x in a..b, f (line x T)) atTop (𝓝 0)) : |
| 21 | verticalMellin a f = verticalMellin b f := by |
| 22 | have hrect (T : ℝ) : |
| 23 | (∫ x in a..b, f (line x (-T))) - (∫ x in a..b, f (line x T)) + |
| 24 | I * (∫ y in -T..T, f (line b y)) - I * (∫ y in -T..T, f (line a y)) = 0 := by |
| 25 | have h := Complex.integral_boundary_rect_eq_zero_of_differentiableOn |
| 26 | f (line a (-T)) (line b T) (by |
| 27 | intro z hz |
| 28 | apply (hd z ?_).differentiableWithinAt |
| 29 | simpa only [line, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, |
| 30 | mul_zero, zero_mul, sub_self, add_zero, uIcc_of_le hab, mem_preimage] using hz.1) |
| 31 | simpa only [line, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, |
| 32 | mul_zero, zero_mul, sub_self, add_zero, add_im, mul_im, mul_one, zero_add, |
| 33 | smul_eq_mul] using h |
| 34 | have hla := intervalIntegral_tendsto_integral ha tendsto_neg_atTop_atBot tendsto_id |
| 35 | have hlb := intervalIntegral_tendsto_integral hb tendsto_neg_atTop_atBot tendsto_id |
| 36 | have hh := ((hbot.sub htop).add (hlb.const_mul I)).sub (hla.const_mul I) |
| 37 | have heq : (0 : ℂ) - 0 + I * (∫ y : ℝ, f (line b y)) - |
| 38 | I * (∫ y : ℝ, f (line a y)) = 0 := by |
| 39 | apply tendsto_nhds_unique hh |
| 40 | simpa only [id_eq, hrect] using (tendsto_const_nhds : Tendsto (fun _ : ℝ => (0 : ℂ)) atTop (𝓝 0)) |
| 41 | have hi : (∫ y : ℝ, f (line b y)) = ∫ y : ℝ, f (line a y) := by |
| 42 | apply (mul_left_cancel₀ I_ne_zero) |
| 43 | simpa only [sub_self, zero_add, sub_eq_zero] using heq |
| 44 | unfold verticalMellin |
| 45 | rw [hi] |
| 46 | |
| 47 | lemma horizontal_tendsto_of_uniform_decay (f : ℂ → ℂ) (a b C : ℝ) (hab : a ≤ b) |
| 48 | (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2) : |
| 49 | Tendsto (fun T : ℝ => ∫ x in a..b, f (line x T)) atTop (𝓝 0) ∧ |
| 50 | Tendsto (fun T : ℝ => ∫ x in a..b, f (line x (-T))) atTop (𝓝 0) := by |
| 51 | have hmajor : Tendsto (fun T : ℝ => C * (1 + T)⁻¹ ^ 2 * |b - a|) atTop (𝓝 0) := by |
| 52 | have hzero : Tendsto (fun T : ℝ => (1 + T)⁻¹) atTop (𝓝 0) := |
| 53 | tendsto_inv_atTop_zero.comp (tendsto_atTop_add_const_left atTop 1 tendsto_id) |
| 54 | simpa using ((hzero.pow 2).const_mul C).mul_const |b - a| |
| 55 | constructor |
| 56 | · apply squeeze_zero_norm' _ hmajor |
| 57 | filter_upwards [eventually_ge_atTop (0 : ℝ)] with T hT |
| 58 | apply intervalIntegral.norm_integral_le_of_norm_le_const |
| 59 | intro x hx |
| 60 | rw [uIoc_of_le hab] at hx |
| 61 | simpa only [abs_of_nonneg hT] using hbound x ⟨hx.1.le, hx.2⟩ T |
| 62 | · apply squeeze_zero_norm' _ hmajor |
| 63 | filter_upwards [eventually_ge_atTop (0 : ℝ)] with T hT |
| 64 | apply intervalIntegral.norm_integral_le_of_norm_le_const |
| 65 | intro x hx |
| 66 | rw [uIoc_of_le hab] at hx |
| 67 | simpa only [abs_neg, abs_of_nonneg hT] using hbound x ⟨hx.1.le, hx.2⟩ (-T) |
| 68 | |
| 69 | lemma verticalMellin_eq_of_uniform_decay (f : ℂ → ℂ) (a b C : ℝ) (hab : a ≤ b) |
| 70 | (hd : ∀ z : ℂ, z.re ∈ Icc a b → DifferentiableAt ℂ f z) |
| 71 | (ha : Integrable (fun t : ℝ => f (line a t))) |
| 72 | (hb : Integrable (fun t : ℝ => f (line b t))) |
| 73 | (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2) : |
| 74 | verticalMellin a f = verticalMellin b f := by |
| 75 | obtain ⟨htop, hbot⟩ := horizontal_tendsto_of_uniform_decay f a b C hab hbound |
| 76 | exact verticalMellin_eq_of_horizontal_tendsto f a b hab hd ha hb hbot htop |
| 77 | |
| 78 | lemma integrable_of_uniform_vertical_decay (f : ℂ → ℂ) (σ C : ℝ) |
| 79 | (hc : Continuous (fun t : ℝ => f (line σ t))) |
| 80 | (hbound : ∀ t : ℝ, ‖f (line σ t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2) : |
| 81 | Integrable (fun t : ℝ => f (line σ t)) := by |
| 82 | have hint : Integrable (fun t : ℝ => (1 + |t|)⁻¹ ^ 2) := by |
| 83 | have h := integrable_one_add_norm (E := ℝ) (μ := volume) (r := 2) (by simp) |
| 84 | convert h using 1 |
| 85 | ext t |
| 86 | rw [Real.norm_eq_abs, Real.rpow_neg (by positivity), Real.rpow_two, inv_pow] |
| 87 | exact (hint.const_mul C).mono' hc.aestronglyMeasurable (Eventually.of_forall hbound) |
| 88 | |
| 89 | end ConditionalGoldbach |
