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.HardyInterior |
| 4 | |
| 5 | /-! Construction of the endpoint Fourier–Laplace traces by L² limits. -/ |
| 6 | public section |
| 7 | |
| 8 | noncomputable section |
| 9 | open MeasureTheory Filter Set Complex FourierTransform |
| 10 | open scoped Topology |
| 11 | namespace ConditionalGoldbach |
| 12 | open Analysis |
| 13 | |
| 14 | private def hardyLineDensity {a b : ℝ} (ψ : HardySpace a b) (x : Icc a b) : |
| 15 | Lp ℂ 2 (volume : Measure ℝ) := |
| 16 | (hardy_weighted_line_memLp x.property ψ).toLp _ |
| 17 | |
| 18 | private lemma hardyLineDensity_diff_bound {a b : ℝ} (ψ : HardySpace a b) |
| 19 | (x y : Icc a b) (τ : ℝ) : |
| 20 | ‖(Real.exp (x.val * τ) : ℂ) * ψ τ - (Real.exp (y.val * τ) : ℂ) * ψ τ‖ ^ 2 ≤ |
| 21 | 4 * (‖ψ τ‖ ^ 2 * hardyWeight a b τ) := by |
| 22 | have hx := mul_le_mul_of_nonneg_right (hardy_exp_sq_le_weight x.property τ) (sq_nonneg ‖ψ τ‖) |
| 23 | have hy := mul_le_mul_of_nonneg_right (hardy_exp_sq_le_weight y.property τ) (sq_nonneg ‖ψ τ‖) |
| 24 | have hn := norm_sub_le ((Real.exp (x.val * τ) : ℂ) * ψ τ) |
| 25 | ((Real.exp (y.val * τ) : ℂ) * ψ τ) |
| 26 | have hn0 := norm_nonneg ((Real.exp (x.val * τ) : ℂ) * ψ τ - (Real.exp (y.val * τ) : ℂ) * ψ τ) |
| 27 | simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, |
| 28 | abs_of_pos (Real.exp_pos _)] at hn |
| 29 | have hp : 0 ≤ (Real.exp (x.val * τ) + Real.exp (y.val * τ)) * ‖ψ τ‖ := by positivity |
| 30 | have hs := (sq_le_sq₀ hn0 hp).mpr (by nlinarith [hn]) |
| 31 | nlinarith [sq_nonneg ((Real.exp (x.val * τ) - Real.exp (y.val * τ)) * ‖ψ τ‖)] |
| 32 | |
| 33 | private lemma hardyLineDensity_continuous {a b : ℝ} (ψ : HardySpace a b) : |
| 34 | Continuous (hardyLineDensity ψ) := by |
| 35 | apply continuous_iff_continuousAt.mpr |
| 36 | intro y |
| 37 | rw [ContinuousAt, tendsto_iff_norm_sub_tendsto_zero] |
| 38 | have hdct : Tendsto (fun x : Icc a b => ∫ τ : ℝ, |
| 39 | ‖(Real.exp (x.val * τ) : ℂ) * ψ τ - (Real.exp (y.val * τ) : ℂ) * ψ τ‖ ^ 2) |
| 40 | (𝓝 y) (𝓝 0) := by |
| 41 | convert tendsto_integral_filter_of_dominated_convergence (l := 𝓝 y) |
| 42 | (fun τ : ℝ => 4 * (‖ψ τ‖ ^ 2 * hardyWeight a b τ)) |
| 43 | (F := fun x : Icc a b => fun τ : ℝ => |
| 44 | ‖(Real.exp (x.val * τ) : ℂ) * ψ τ - (Real.exp (y.val * τ) : ℂ) * ψ τ‖ ^ 2) |
| 45 | (f := fun _ : ℝ => (0 : ℝ)) ?_ ?_ |
| 46 | ((hardySpace_integrable_weighted_sq ψ).const_mul 4) ?_ using 1 <;> try simp only [integral_zero] |
| 47 | · exact Eventually.of_forall (fun x : Icc a b => |
| 48 | ((hardy_weighted_line_memLp x.property ψ).sub |
| 49 | (hardy_weighted_line_memLp y.property ψ)).aestronglyMeasurable.norm.pow 2) |
| 50 | · exact Eventually.of_forall (fun x => Eventually.of_forall (fun τ => by |
| 51 | rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _)] |
| 52 | exact hardyLineDensity_diff_bound ψ x y τ)) |
| 53 | · apply Eventually.of_forall |
| 54 | intro τ |
| 55 | have h : Continuous (fun x : Icc a b => |
| 56 | ‖(Real.exp (x.val * τ) : ℂ) * ψ τ - (Real.exp (y.val * τ) : ℂ) * ψ τ‖ ^ 2) := by fun_prop |
| 57 | simpa only [sub_self, norm_zero, zero_pow (by norm_num : (2 : ℕ) ≠ 0)] using h.tendsto y |
| 58 | have hs := Real.continuous_sqrt.continuousAt.tendsto.comp hdct |
| 59 | simp only [Real.sqrt_zero] at hs |
| 60 | convert hs using 1 |
| 61 | funext x |
| 62 | have hfx := hardy_weighted_line_memLp x.property ψ |
| 63 | have hfy := hardy_weighted_line_memLp y.property ψ |
| 64 | change ‖hfx.toLp _ - hfy.toLp _‖ = _ |
| 65 | rw [← MemLp.toLp_sub] |
| 66 | exact toLp_norm_eq_sqrt_integral (hfx.sub hfy) |
| 67 | |
| 68 | |
| 69 | private def hardyCompletedLine {a b : ℝ} (ψ : HardySpace a b) (x : Icc a b) : |
| 70 | Lp ℂ 2 (volume : Measure ℝ) := physicalFourierL2 (hardyLineDensity ψ x) |
| 71 | |
| 72 | private lemma hardyCompletedLine_continuous {a b : ℝ} (ψ : HardySpace a b) : |
| 73 | Continuous (hardyCompletedLine ψ) := |
| 74 | physicalFourierL2_continuous.comp (hardyLineDensity_continuous ψ) |
| 75 | |
| 76 | private lemma hardyCompletedLine_interior {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) |
| 77 | (x : Ioo a b) : |
| 78 | hardyCompletedLine ψ ⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ = |
| 79 | (hardy_interiorLine_memLp hab x.property ψ).toLp _ := by |
| 80 | apply Lp.ext |
| 81 | have h := physicalFourierL2_coe_classical (hardy_weighted_line_integrable x.property ψ) |
| 82 | (hardy_weighted_line_memLp ⟨x.property.1.le, x.property.2.le⟩ ψ) |
| 83 | filter_upwards [h, (hardy_interiorLine_memLp hab x.property ψ).coeFn_toLp] with t ht ht' |
| 84 | change physicalFourierL2 _ t = _ |
| 85 | dsimp only [hardyLineDensity] |
| 86 | rw [ht, ht', fourierLaplace_line_eq_classical_fourier] |
| 87 | |
| 88 | /-- Endpoint `L²` limits of the Fourier–Laplace representation, with the original filters. -/ |
| 89 | theorem hardy_boundaryTraces_exist {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) : |
| 90 | ∃ p : Lp ℂ 2 (volume : Measure ℝ) × Lp ℂ 2 (volume : Measure ℝ), |
| 91 | Tendsto (fun x : Ioo a b => (hardy_interiorLine_memLp hab x.property ψ).toLp |
| 92 | (fun t : ℝ => fourierLaplace ψ (line x t))) |
| 93 | (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 p.1) ∧ |
| 94 | Tendsto (fun x : Ioo a b => (hardy_interiorLine_memLp hab x.property ψ).toLp |
| 95 | (fun t : ℝ => fourierLaplace ψ (line x t))) |
| 96 | (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 p.2) := by |
| 97 | refine ⟨(hardyCompletedLine ψ ⟨a, ⟨le_rfl, hab.le⟩⟩, |
| 98 | hardyCompletedLine ψ ⟨b, ⟨hab.le, le_rfl⟩⟩), ?_, ?_⟩ |
| 99 | · have he : Tendsto (fun x : Ioo a b => |
| 100 | (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) |
| 101 | (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 ⟨a, ⟨le_rfl, hab.le⟩⟩) := by |
| 102 | rw [tendsto_subtype_rng] |
| 103 | exact (tendsto_comap.mono_right nhdsWithin_le_nhds) |
| 104 | have h := ((hardyCompletedLine_continuous ψ).tendsto ⟨a, ⟨le_rfl, hab.le⟩⟩).comp he |
| 105 | simpa only [Function.comp_def, hardyCompletedLine_interior hab ψ] using h |
| 106 | · have he : Tendsto (fun x : Ioo a b => |
| 107 | (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) |
| 108 | (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 ⟨b, ⟨hab.le, le_rfl⟩⟩) := by |
| 109 | rw [tendsto_subtype_rng] |
| 110 | exact (tendsto_comap.mono_right nhdsWithin_le_nhds) |
| 111 | have h := ((hardyCompletedLine_continuous ψ).tendsto ⟨b, ⟨hab.le, le_rfl⟩⟩).comp he |
| 112 | simpa only [Function.comp_def, hardyCompletedLine_interior hab ψ] using h |
| 113 | |
| 114 | |
| 115 | private lemma hardyCompletedLine_norm_sq {a b : ℝ} (ψ : HardySpace a b) (x : Icc a b) : |
| 116 | ‖hardyCompletedLine ψ x‖ ^ 2 = ∫ τ : ℝ, ‖ψ τ‖ ^ 2 * Real.exp (2 * x.val * τ) := by |
| 117 | rw [hardyCompletedLine, physicalFourierL2_norm_sq, L2_norm_sq_integral] |
| 118 | apply integral_congr_ae |
| 119 | filter_upwards [(hardy_weighted_line_memLp x.property ψ).coeFn_toLp] with τ ht |
| 120 | dsimp only [hardyLineDensity] |
| 121 | rw [ht] |
| 122 | simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, |
| 123 | abs_of_pos (Real.exp_pos _), mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat] |
| 124 | rw [show 2 * (x.val * τ) = 2 * x.val * τ by ring] |
| 125 | exact mul_comm _ _ |
| 126 | |
| 127 | /-- The two endpoint norms have exactly the paper's sum normalization. -/ |
| 128 | theorem hardy_boundary_norm_of_traces {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) |
| 129 | (left right : Lp ℂ 2 (volume : Measure ℝ)) |
| 130 | (hl : Tendsto (fun x : Ioo a b => (hardy_interiorLine_memLp hab x.property ψ).toLp |
| 131 | (fun t : ℝ => fourierLaplace ψ (line x t))) |
| 132 | (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 left)) |
| 133 | (hr : Tendsto (fun x : Ioo a b => (hardy_interiorLine_memLp hab x.property ψ).toLp |
| 134 | (fun t : ℝ => fourierLaplace ψ (line x t))) |
| 135 | (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 right)) : |
| 136 | ‖ψ‖ ^ 2 = ‖left‖ ^ 2 + ‖right‖ ^ 2 := by |
| 137 | have ha : NeBot (comap (Subtype.val : Ioo a b → ℝ) (nhdsWithin a (Ioo a b))) := |
| 138 | (left_nhdsWithin_Ioo_neBot hab).comap_of_range_mem (by simpa only [Subtype.range_coe] using (self_mem_nhdsWithin : Ioo a b ∈ nhdsWithin a (Ioo a b))) |
| 139 | have hb : NeBot (comap (Subtype.val : Ioo a b → ℝ) (nhdsWithin b (Ioo a b))) := |
| 140 | (right_nhdsWithin_Ioo_neBot hab).comap_of_range_mem (by simpa only [Subtype.range_coe] using (self_mem_nhdsWithin : Ioo a b ∈ nhdsWithin b (Ioo a b))) |
| 141 | let := ha |
| 142 | let := hb |
| 143 | have hleft : Tendsto (fun x : Ioo a b => |
| 144 | (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) |
| 145 | (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 ⟨a, ⟨le_rfl, hab.le⟩⟩) := by |
| 146 | rw [tendsto_subtype_rng] |
| 147 | exact tendsto_comap.mono_right nhdsWithin_le_nhds |
| 148 | have hright : Tendsto (fun x : Ioo a b => |
| 149 | (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) |
| 150 | (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 ⟨b, ⟨hab.le, le_rfl⟩⟩) := by |
| 151 | rw [tendsto_subtype_rng] |
| 152 | exact tendsto_comap.mono_right nhdsWithin_le_nhds |
| 153 | have hl' := ((hardyCompletedLine_continuous ψ).tendsto ⟨a, ⟨le_rfl, hab.le⟩⟩).comp hleft |
| 154 | have hr' := ((hardyCompletedLine_continuous ψ).tendsto ⟨b, ⟨hab.le, le_rfl⟩⟩).comp hright |
| 155 | simp only [Function.comp_def, hardyCompletedLine_interior hab ψ] at hl' hr' |
| 156 | rw [tendsto_nhds_unique hl hl', tendsto_nhds_unique hr hr', |
| 157 | hardyCompletedLine_norm_sq, hardyCompletedLine_norm_sq, hardySpace_norm_sq_integral] |
| 158 | have hia := (hardy_weighted_line_memLp (x := a) ⟨le_rfl, hab.le⟩ ψ).norm.integrable_sq |
| 159 | have hib := (hardy_weighted_line_memLp (x := b) ⟨hab.le, le_rfl⟩ ψ).norm.integrable_sq |
| 160 | have ha' : Integrable (fun τ : ℝ => ‖ψ τ‖ ^ 2 * Real.exp (2 * a * τ)) := by |
| 161 | simpa only [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), |
| 162 | mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat, mul_assoc, mul_comm, mul_left_comm] using hia |
| 163 | have hb' : Integrable (fun τ : ℝ => ‖ψ τ‖ ^ 2 * Real.exp (2 * b * τ)) := by |
| 164 | simpa only [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), |
| 165 | mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat, mul_assoc, mul_comm, mul_left_comm] using hib |
| 166 | rw [← integral_add ha' hb'] |
| 167 | apply integral_congr_ae |
| 168 | exact Eventually.of_forall (fun τ => by simp only [hardyWeight, mul_add]) |
| 169 | |
| 170 | end ConditionalGoldbach |
