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.HardyGaussianDensity |
| 4 | |
| 5 | /-! Weighted square-integrability of the Gaussian Fourier density, obtained by Fatou at both ends. -/ |
| 6 | @[expose] public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open MeasureTheory Filter Set Complex FourierTransform |
| 11 | open scoped Topology ComplexConjugate |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | lemma hardyGaussian_uniform_line_bound {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} |
| 15 | (hf : IsRawHardy a b f) : ∃ C : ℝ, 0 ≤ C ∧ ∀ ε : ℝ, 0 < ε → ε ≤ 1 → |
| 16 | ∀ x ∈ Ioo a b, (∫ t : ℝ, ‖hardyGaussian f ε 0 (line x t)‖ ^ 2) ≤ C := by |
| 17 | obtain ⟨C, hC, hbound⟩ := rawHardy_uniform_line_bound hab hf |
| 18 | let B : ℝ := Real.exp (2 * (|a| + |b|) ^ 2) |
| 19 | refine ⟨B * C, mul_nonneg (Real.exp_pos _).le hC, ?_⟩ |
| 20 | intro ε hε hε' x hx |
| 21 | have hxa : |x| ≤ |a| + |b| := by |
| 22 | apply abs_le.mpr |
| 23 | constructor |
| 24 | · have h := neg_abs_le a |
| 25 | have hb := abs_nonneg b |
| 26 | linarith [hx.1] |
| 27 | · have h := le_abs_self b |
| 28 | have ha := abs_nonneg a |
| 29 | linarith [hx.2] |
| 30 | have hsq : x ^ 2 ≤ (|a| + |b|) ^ 2 := by |
| 31 | nlinarith [sq_abs x, abs_nonneg x, abs_nonneg a, abs_nonneg b] |
| 32 | have hexp : Real.exp (2 * ε * x ^ 2) ≤ B := by |
| 33 | apply Real.exp_le_exp.mpr |
| 34 | have h := mul_le_mul_of_nonneg_right hε' (sq_nonneg x) |
| 35 | nlinarith |
| 36 | calc |
| 37 | _ ≤ ∫ t : ℝ, B * ‖f (line x t)‖ ^ 2 := by |
| 38 | apply integral_mono ((hardyGaussian_line_memLp hab hf hx hε.le).norm.integrable_sq) |
| 39 | ((hbound x hx).1.const_mul B) |
| 40 | intro t |
| 41 | exact (hardyGaussian_norm_sq_le f hε.le x t).trans |
| 42 | (mul_le_mul_of_nonneg_right hexp (sq_nonneg _)) |
| 43 | _ = B * ∫ t : ℝ, ‖f (line x t)‖ ^ 2 := integral_const_mul _ _ |
| 44 | _ ≤ _ := mul_le_mul_of_nonneg_left (hbound x hx).2 (Real.exp_pos _).le |
| 45 | |
| 46 | lemma hardyGaussianDensity_line_integrable {a b x ε : ℝ} (hab : a < b) {f : ℂ → ℂ} |
| 47 | (hf : IsRawHardy a b f) (hx : x ∈ Ioo a b) (hε : 0 < ε) : |
| 48 | Integrable (fun τ : ℝ => ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * Real.exp (2 * x * τ)) := by |
| 49 | have h := (hardyGaussianDensity_weighted_memLp hab hf hx hε).norm.integrable_sq |
| 50 | convert h using 1 |
| 51 | funext τ |
| 52 | simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), |
| 53 | mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat, mul_comm, mul_assoc, mul_left_comm] |
| 54 | |
| 55 | lemma hardyGaussianDensity_uniform_weighted_bound {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} |
| 56 | (hf : IsRawHardy a b f) : ∃ C : ℝ, 0 ≤ C ∧ ∀ ε : ℝ, 0 < ε → ε ≤ 1 → |
| 57 | Integrable (fun τ : ℝ => ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * hardyWeight a b τ) ∧ |
| 58 | (∫ τ : ℝ, ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * hardyWeight a b τ) ≤ C := by |
| 59 | obtain ⟨C, hC, hbound⟩ := hardyGaussian_uniform_line_bound hab hf |
| 60 | refine ⟨2 * C, by positivity, ?_⟩ |
| 61 | intro ε hε hε' |
| 62 | let δ : ℕ → ℝ := fun n => (b - a) / (n + 3) |
| 63 | have hδ : ∀ n, 0 < δ n ∧ δ n < (b - a) / 2 := by |
| 64 | intro n |
| 65 | have hn : (0 : ℝ) < n + 3 := by positivity |
| 66 | have hn' : (2 : ℝ) < n + 3 := by have := Nat.cast_nonneg (α := ℝ) n; linarith |
| 67 | refine ⟨div_pos (sub_pos.mpr hab) hn, ?_⟩ |
| 68 | exact div_lt_div_of_pos_left (sub_pos.mpr hab) (by norm_num) hn' |
| 69 | have hδlim : Tendsto δ atTop (𝓝 0) := |
| 70 | (tendsto_atTop_add_const_right atTop 3 tendsto_natCast_atTop_atTop).const_div_atTop (b - a) |
| 71 | have hleft : ∀ n, a + δ n ∈ Ioo a b := fun n => ⟨by linarith [(hδ n).1], by linarith [(hδ n).2]⟩ |
| 72 | have hright : ∀ n, b - δ n ∈ Ioo a b := fun n => ⟨by linarith [(hδ n).2], by linarith [(hδ n).1]⟩ |
| 73 | let F : ℕ → ℝ → ℝ := fun n τ => ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * |
| 74 | (Real.exp (2 * (a + δ n) * τ) + Real.exp (2 * (b - δ n) * τ)) |
| 75 | have hfun : ∀ n, F n = fun τ : ℝ => |
| 76 | ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * Real.exp (2 * (a + δ n) * τ) + |
| 77 | ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * Real.exp (2 * (b - δ n) * τ) := by |
| 78 | intro n |
| 79 | funext τ |
| 80 | exact mul_add _ _ _ |
| 81 | have hi : ∀ n, Integrable (F n) := by |
| 82 | intro n |
| 83 | rw [hfun] |
| 84 | exact (hardyGaussianDensity_line_integrable hab hf (hleft n) hε).add |
| 85 | (hardyGaussianDensity_line_integrable hab hf (hright n) hε) |
| 86 | have hb : ∀ n, (∫ τ : ℝ, F n τ) ≤ 2 * C := by |
| 87 | intro n |
| 88 | rw [hfun, integral_add (hardyGaussianDensity_line_integrable hab hf (hleft n) hε) |
| 89 | (hardyGaussianDensity_line_integrable hab hf (hright n) hε), |
| 90 | hardyGaussianDensity_line_integral hab hf (hleft n) hε, |
| 91 | hardyGaussianDensity_line_integral hab hf (hright n) hε] |
| 92 | linarith [hbound ε hε hε' (a + δ n) (hleft n), hbound ε hε hε' (b - δ n) (hright n)] |
| 93 | apply nonnegative_integral_bound_of_tendsto (F := F) (by positivity) hi |
| 94 | (fun n τ => by dsimp [F]; positivity) hb |
| 95 | (((hardyGaussianDensity_continuous hab hf hε).norm.pow 2).mul |
| 96 | (hardyWeight_continuous a b)).aestronglyMeasurable |
| 97 | (fun τ => mul_nonneg (sq_nonneg _) (hardyWeight_pos a b τ).le) |
| 98 | intro τ |
| 99 | have hc : Continuous (fun d : ℝ => ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * |
| 100 | (Real.exp (2 * (a + d) * τ) + Real.exp (2 * (b - d) * τ))) := by fun_prop |
| 101 | simpa only [Function.comp_def, Pi.pow_apply, Pi.mul_apply, F, hardyWeight, add_zero, sub_zero] using hc.continuousAt.tendsto.comp hδlim |
| 102 | |
| 103 | lemma hardyGaussianDensity_memLp {a b ε : ℝ} (hab : a < b) {f : ℂ → ℂ} |
| 104 | (hf : IsRawHardy a b f) (hε : 0 < ε) (hε' : ε ≤ 1) : |
| 105 | MemLp (hardyGaussianDensity a b f ε) 2 (hardyMeasure a b) := by |
| 106 | apply (memLp_two_iff_integrable_sq_norm (hardyGaussianDensity_continuous hab hf hε).aestronglyMeasurable).mpr |
| 107 | obtain ⟨C, hC, hb⟩ := hardyGaussianDensity_uniform_weighted_bound hab hf |
| 108 | change Integrable _ (volume.withDensity (fun τ => ENNReal.ofReal (hardyWeight a b τ))) |
| 109 | rw [integrable_withDensity_iff (hardyWeight_continuous a b).measurable.ennreal_ofReal |
| 110 | (Eventually.of_forall (fun _ => ENNReal.ofReal_lt_top))] |
| 111 | simpa only [ENNReal.toReal_ofReal (hardyWeight_pos a b _).le, smul_eq_mul, mul_comm] using |
| 112 | (hb ε hε hε').1 |
| 113 | |
| 114 | def hardyGaussianVector {a b ε : ℝ} (hab : a < b) {f : ℂ → ℂ} |
| 115 | (hf : IsRawHardy a b f) (hε : 0 < ε) (hε' : ε ≤ 1) : HardySpace a b := |
| 116 | (hardyGaussianDensity_memLp hab hf hε hε').toLp _ |
| 117 | |
| 118 | lemma hardyGaussianVector_uniform_norm_bound {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} |
| 119 | (hf : IsRawHardy a b f) : ∃ C : ℝ, ∀ ε : ℝ, ∀ hε : 0 < ε, ∀ hε' : ε ≤ 1, |
| 120 | ‖hardyGaussianVector hab hf hε hε'‖ ≤ C := by |
| 121 | obtain ⟨C, hC, hb⟩ := hardyGaussianDensity_uniform_weighted_bound hab hf |
| 122 | refine ⟨Real.sqrt C, ?_⟩ |
| 123 | intro ε hε hε' |
| 124 | have he : ‖hardyGaussianVector hab hf hε hε'‖ ^ 2 = |
| 125 | ∫ τ : ℝ, ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * hardyWeight a b τ := by |
| 126 | rw [hardySpace_norm_sq_integral] |
| 127 | apply integral_congr_ae |
| 128 | filter_upwards [(volume_absolutelyContinuous_hardyMeasure a b).ae_eq |
| 129 | (hardyGaussianDensity_memLp hab hf hε hε').coeFn_toLp] with τ hτ |
| 130 | rw [hardyGaussianVector, hτ] |
| 131 | have h := (hb ε hε hε').2 |
| 132 | rw [← he] at h |
| 133 | exact (Real.le_sqrt (norm_nonneg _) hC).mpr h |
| 134 | |
| 135 | end ConditionalGoldbach |
