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.Proofs.MellinModelRemovable |
| 4 | |
| 5 | /-! Shifting the model's single Mellin contour across its removable point. -/ |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology ContDiff |
| 11 | open MeasureTheory Filter Set Complex |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | lemma uniform_vertical_decay_of_far_bound (f : ℂ → ℂ) (a b : ℝ) |
| 15 | (hd : ∀ w : ℂ, w.re ∈ Icc a b → DifferentiableAt ℂ f w) |
| 16 | (D : ℝ) (hD : 0 ≤ D) |
| 17 | (hfar : ∀ x ∈ Icc a b, ∀ t : ℝ, 1 ≤ |t| → |
| 18 | ‖f (line x t)‖ ≤ D * (1 + |t|)⁻¹ ^ 2) : |
| 19 | ∃ C : ℝ, 0 < C ∧ ∀ x ∈ Icc a b, ∀ t : ℝ, |
| 20 | ‖f (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2 := by |
| 21 | let K : Set (ℝ × ℝ) := Icc a b ×ˢ Icc (-1 : ℝ) 1 |
| 22 | have hK : IsCompact K := isCompact_Icc.prod isCompact_Icc |
| 23 | have hc : ContinuousOn (fun p : ℝ × ℝ => f (line p.1 p.2)) K := by |
| 24 | intro p hp |
| 25 | exact ((hd _ (by simpa [line] using hp.1)).continuousAt.comp |
| 26 | (show ContinuousAt (fun p : ℝ × ℝ => line p.1 p.2) p by unfold line; fun_prop)).continuousWithinAt |
| 27 | obtain ⟨B, hB⟩ := hK.exists_bound_of_continuousOn hc |
| 28 | refine ⟨4 * (|B| + 1) + D, by positivity, fun x hx t => ?_⟩ |
| 29 | by_cases ht : 1 ≤ |t| |
| 30 | · exact (hfar x hx t ht).trans (mul_le_mul_of_nonneg_right (by linarith [abs_nonneg B]) (sq_nonneg _)) |
| 31 | · have ht' : |t| ≤ 1 := (lt_of_not_ge ht).le |
| 32 | have hb : ‖f (line x t)‖ ≤ |B| + 1 := |
| 33 | (hB (x, t) ⟨hx, (abs_le.mp ht')⟩).trans (by linarith [le_abs_self B]) |
| 34 | have hi : (1 / 2 : ℝ) ≤ (1 + |t|)⁻¹ := by |
| 35 | simpa only [one_div] using |
| 36 | (one_div_le_one_div_of_le (by positivity : (0 : ℝ) < 1 + |t|) |
| 37 | (by linarith : 1 + |t| ≤ 2)) |
| 38 | have hi2 : (1 / 4 : ℝ) ≤ (1 + |t|)⁻¹ ^ 2 := by nlinarith |
| 39 | have hnon : 0 ≤ |B| + 1 := by positivity |
| 40 | nlinarith [mul_nonneg hD (sq_nonneg (1 + |t|)⁻¹), mul_le_mul_of_nonneg_left hi2 hnon] |
| 41 | |
| 42 | /-- A regularized product inherits integrable vertical decay from linear growth of |
| 43 | one factor and sixth-power decay of the other. The factors agree with the |
| 44 | regularization away from the removable point at `1`. -/ |
| 45 | lemma regularized_mellin_product_decay (regularized density transform : ℂ → ℂ) |
| 46 | (a b : ℝ) |
| 47 | (hd : ∀ w : ℂ, w.re ∈ Icc a b → DifferentiableAt ℂ regularized w) |
| 48 | (heq : ∀ w : ℂ, w ≠ 1 → regularized w = density w * transform w) |
| 49 | (D B : ℝ) (hD : 0 ≤ D) (hB : 0 ≤ B) |
| 50 | (hgrowth : ∀ w : ℂ, w.re ∈ Icc a b → 1 ≤ |w.im| → |
| 51 | ‖density w‖ ≤ D * (1 + |w.im|)) |
| 52 | (hdecay : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖transform (line x t)‖ ≤ B * (1 + |t|)⁻¹ ^ 6) : |
| 53 | ∃ C : ℝ, 0 < C ∧ ∀ x ∈ Icc a b, ∀ t : ℝ, |
| 54 | ‖regularized (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2 := by |
| 55 | apply uniform_vertical_decay_of_far_bound regularized a b hd (D * B) (mul_nonneg hD hB) |
| 56 | intro x hx t ht |
| 57 | have hre : (line x t).re ∈ Icc a b := by simpa [line] using hx |
| 58 | have him : (line x t).im = t := by simp [line] |
| 59 | have hne : line x t ≠ 1 := by |
| 60 | intro h |
| 61 | rw [show t = 0 from him.symm.trans (congrArg Complex.im h)] at ht |
| 62 | norm_num at ht |
| 63 | rw [heq _ hne, norm_mul] |
| 64 | have hprod := mul_le_mul (hgrowth _ hre (by simpa only [him] using ht)) |
| 65 | (hdecay x hx t) (norm_nonneg _) (by positivity) |
| 66 | rw [him] at hprod |
| 67 | apply hprod.trans |
| 68 | have hi : 0 ≤ (1 + |t|)⁻¹ := by positivity |
| 69 | have hi1 : (1 + |t|)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (by linarith [abs_nonneg t]) |
| 70 | have he : (D * (1 + |t|)) * (B * (1 + |t|)⁻¹ ^ 6) = |
| 71 | (D * B) * (1 + |t|)⁻¹ ^ 5 := by field_simp |
| 72 | rw [he] |
| 73 | exact mul_le_mul_of_nonneg_left |
| 74 | (pow_le_pow_of_le_one hi hi1 (by norm_num)) (mul_nonneg hD hB) |
| 75 | |
| 76 | /-- Integrability and contour shifting for a Mellin integrand with a removable |
| 77 | singularity. The original integrand agrees almost everywhere on the left line. -/ |
| 78 | lemma verticalMellin_shift_of_ae_eq (regularized original : ℂ → ℂ) (a b C : ℝ) |
| 79 | (hab : a ≤ b) |
| 80 | (hd : ∀ w : ℂ, w.re ∈ Icc a b → DifferentiableAt ℂ regularized w) |
| 81 | (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖regularized (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2) |
| 82 | (hae : (fun t : ℝ => regularized (line a t)) =ᵐ[volume] fun t => original (line a t)) : |
| 83 | Integrable (fun t : ℝ => original (line a t)) ∧ |
| 84 | verticalMellin a original = verticalMellin b regularized := by |
| 85 | have hint (x : ℝ) (hx : x ∈ Icc a b) : |
| 86 | Integrable (fun t : ℝ => regularized (line x t)) := by |
| 87 | apply integrable_of_uniform_vertical_decay _ x C |
| 88 | · apply continuous_iff_continuousAt.mpr |
| 89 | intro t |
| 90 | exact (hd _ (by simpa [line] using hx)).continuousAt.comp (by unfold line; fun_prop) |
| 91 | · exact hbound x hx |
| 92 | refine ⟨(hint a ⟨le_rfl, hab⟩).congr hae, ?_⟩ |
| 93 | calc |
| 94 | verticalMellin a original = verticalMellin a regularized := by |
| 95 | unfold verticalMellin |
| 96 | rw [integral_congr_ae hae.symm] |
| 97 | _ = verticalMellin b regularized := |
| 98 | verticalMellin_eq_of_uniform_decay regularized a b C hab hd |
| 99 | (hint a ⟨le_rfl, hab⟩) (hint b ⟨hab, le_rfl⟩) hbound |
| 100 | |
| 101 | lemma regularizedModelMellin_uniform_decay (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) |
| 102 | (a b : ℝ) (ha : 0 < a) (hab : a ≤ b) (D : ℝ) (hD : 0 ≤ D) |
| 103 | (hgrowth : ∀ w : ℂ, w.re ∈ Icc a b → 1 ≤ |w.im| → |
| 104 | ‖continuedDensity N w‖ ≤ D * (1 + |w.im|)) : |
| 105 | ∃ C : ℝ, 0 < C ∧ ∀ x ∈ Icc a b, ∀ t : ℝ, |
| 106 | ‖regularizedModelMellin N φ (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2 := by |
| 107 | obtain ⟨B, hB, hdec⟩ := signedConvolution_mellin_decay φ hφ a b ha hab |
| 108 | exact regularized_mellin_product_decay (regularizedModelMellin N φ) (continuedDensity N) |
| 109 | (mellin fun y => (signedConvolution φ y : ℂ)) a b |
| 110 | (fun w hw => regularizedModelMellin_differentiableAt N φ hφ (ha.trans_le hw.1)) |
| 111 | (fun w hw => regularizedModelMellin_eq N φ hφ hw) D B hD hB.le hgrowth hdec |
| 112 | |
| 113 | lemma model_single_mellin_shift_of_growth (N : ℕ) (hN : Even N) (hpos : 0 < N) |
| 114 | (φ : ℝ → ℝ) (hφ : IsWeight φ) (a b : ℝ) (ha : 0 < a) (hab : a ≤ b) |
| 115 | (hb : 1 < b) (D : ℝ) (hD : 0 ≤ D) |
| 116 | (hgrowth : ∀ w : ℂ, w.re ∈ Icc a b → 1 ≤ |w.im| → |
| 117 | ‖continuedDensity N w‖ ≤ D * (1 + |w.im|)) : |
| 118 | Integrable (fun t : ℝ => continuedDensity N (line a t) * |
| 119 | mellin (fun y => (signedConvolution φ y : ℂ)) (line a t)) ∧ |
| 120 | verticalMellin a (fun w => continuedDensity N w * |
| 121 | mellin (fun y => (signedConvolution φ y : ℂ)) w) = |
| 122 | -(weightMass φ * singularSeries N : ℝ) := by |
| 123 | obtain ⟨C, _, hbound⟩ := regularizedModelMellin_uniform_decay N φ hφ a b ha hab D hD hgrowth |
| 124 | obtain ⟨hint, hshift⟩ := verticalMellin_shift_of_ae_eq (regularizedModelMellin N φ) |
| 125 | (fun w => continuedDensity N w * mellin (fun y => (signedConvolution φ y : ℂ)) w) |
| 126 | a b C hab |
| 127 | (fun w hw => regularizedModelMellin_differentiableAt N φ hφ (ha.trans_le hw.1)) |
| 128 | hbound (regularizedModelMellin_line_ae N φ hφ a) |
| 129 | exact ⟨hint, hshift.trans (regularizedModelMellin_initial N hN hpos φ hφ b hb).2⟩ |
| 130 | |
| 131 | end ConditionalGoldbach |
