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.HardyConverse |
| 4 | |
| 5 | /-! Exact traces for holomorphic strip functions with a common integrable square majorant. -/ |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open MeasureTheory Filter Set Complex |
| 11 | open scoped Topology ComplexConjugate |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | lemma continuous_closedStrip_line {a b : ℝ} {f : ℂ → ℂ} |
| 15 | (hf : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (x : Icc a b) : |
| 16 | Continuous (fun t : ℝ => f (line x t)) := by |
| 17 | apply hf.comp_continuous (by unfold line; fun_prop) |
| 18 | intro t |
| 19 | simpa only [Set.mem_ofPred_eq, line, Complex.add_re, Complex.ofReal_re, |
| 20 | Complex.mul_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, |
| 21 | zero_mul, sub_zero, add_zero] using x.property |
| 22 | |
| 23 | lemma closedStrip_line_memLp_of_majorant {a b : ℝ} {f : ℂ → ℂ} {M : ℝ → ℝ} |
| 24 | (hf : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (hM : Integrable M) |
| 25 | (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ^ 2 ≤ M t) (x : Icc a b) : |
| 26 | MemLp (fun t : ℝ => f (line x t)) 2 volume := by |
| 27 | apply (memLp_two_iff_integrable_sq_norm (continuous_closedStrip_line hf x).aestronglyMeasurable).mpr |
| 28 | apply hM.mono' ((continuous_closedStrip_line hf x).norm.pow 2).aestronglyMeasurable |
| 29 | filter_upwards [] with t |
| 30 | simpa only [Pi.pow_apply, Real.norm_eq_abs, abs_sq] using hbound x x.property t |
| 31 | |
| 32 | lemma closedStrip_toLp_continuous {a b : ℝ} {f : ℂ → ℂ} {M : ℝ → ℝ} |
| 33 | (hf : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (hM : Integrable M) |
| 34 | (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ^ 2 ≤ M t) : |
| 35 | Continuous (fun x : Icc a b => (closedStrip_line_memLp_of_majorant hf hM hbound x).toLp _) := by |
| 36 | apply continuous_iff_continuousAt.mpr |
| 37 | intro y |
| 38 | rw [ContinuousAt, tendsto_iff_norm_sub_tendsto_zero] |
| 39 | have hdct : Tendsto (fun x : Icc a b => ∫ t : ℝ, ‖f (line x t) - f (line y t)‖ ^ 2) |
| 40 | (𝓝 y) (𝓝 0) := by |
| 41 | convert tendsto_integral_filter_of_dominated_convergence (l := 𝓝 y) (fun t : ℝ => 4 * M t) |
| 42 | (F := fun x : Icc a b => fun t : ℝ => ‖f (line x t) - f (line y t)‖ ^ 2) |
| 43 | (f := fun _ : ℝ => (0 : ℝ)) ?_ ?_ (hM.const_mul 4) ?_ using 1 <;> try simp only [integral_zero] |
| 44 | · exact Eventually.of_forall (fun x => |
| 45 | ((continuous_closedStrip_line hf x).sub (continuous_closedStrip_line hf y)).norm.pow 2 |>.aestronglyMeasurable) |
| 46 | · apply Eventually.of_forall |
| 47 | intro x |
| 48 | filter_upwards [] with t |
| 49 | rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _)] |
| 50 | have hn := norm_sub_le (f (line x t)) (f (line y t)) |
| 51 | have hs := (sq_le_sq₀ (norm_nonneg _) (add_nonneg (norm_nonneg _) (norm_nonneg _))).mpr hn |
| 52 | nlinarith [hbound x x.property t, hbound y y.property t, |
| 53 | sq_nonneg (‖f (line x t)‖ - ‖f (line y t)‖)] |
| 54 | · apply Eventually.of_forall |
| 55 | intro t |
| 56 | have hc : Continuous (fun x : Icc a b => f (line x t)) := by |
| 57 | apply hf.comp_continuous (by unfold line; fun_prop) |
| 58 | intro x |
| 59 | simpa only [Set.mem_ofPred_eq, line, Complex.add_re, Complex.ofReal_re, |
| 60 | Complex.mul_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, |
| 61 | zero_mul, sub_zero, add_zero] using x.property |
| 62 | have hct : Continuous (fun x : Icc a b => ‖f (line x t) - f (line y t)‖ ^ 2) := |
| 63 | (hc.sub continuous_const).norm.pow 2 |
| 64 | simpa only [sub_self, norm_zero, zero_pow (by norm_num : (2 : ℕ) ≠ 0)] using hct.tendsto y |
| 65 | have hs := Real.continuous_sqrt.continuousAt.tendsto.comp hdct |
| 66 | simp only [Real.sqrt_zero] at hs |
| 67 | convert hs using 1 |
| 68 | funext x |
| 69 | let fx := (closedStrip_line_memLp_of_majorant hf hM hbound x).toLp (fun t : ℝ => f (line x t)) |
| 70 | let fy := (closedStrip_line_memLp_of_majorant hf hM hbound y).toLp (fun t : ℝ => f (line y t)) |
| 71 | have he : ‖fx - fy‖ ^ 2 = ∫ t : ℝ, ‖f (line x t) - f (line y t)‖ ^ 2 := by |
| 72 | rw [l2_norm_sq_integral] |
| 73 | apply integral_congr_ae |
| 74 | filter_upwards [Lp.coeFn_sub fx fy, |
| 75 | (closedStrip_line_memLp_of_majorant hf hM hbound x).coeFn_toLp, |
| 76 | (closedStrip_line_memLp_of_majorant hf hM hbound y).coeFn_toLp] with t ht hx hy |
| 77 | simp only [ht, Pi.sub_apply, fx, fy, hx, hy] |
| 78 | change ‖fx - fy‖ = Real.sqrt (∫ t : ℝ, ‖f (line x t) - f (line y t)‖ ^ 2) |
| 79 | rw [← he, Real.sqrt_sq (norm_nonneg _)] |
| 80 | |
| 81 | lemma rawHardy_of_closedStrip_majorant {a b : ℝ} (_hab : a < b) {f : ℂ → ℂ} {M : ℝ → ℝ} |
| 82 | (hhol : DifferentiableOn ℂ f (strip a b)) |
| 83 | (hc : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (hM : Integrable M) |
| 84 | (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ^ 2 ≤ M t) : IsRawHardy a b f := by |
| 85 | refine ⟨hhol, ⟨2 * ∫ t : ℝ, M t, ?_⟩⟩ |
| 86 | intro ε hε hε' |
| 87 | have hl : a + ε ∈ Icc a b := ⟨by linarith, by linarith⟩ |
| 88 | have hr : b - ε ∈ Icc a b := ⟨by linarith, by linarith⟩ |
| 89 | have hil := (closedStrip_line_memLp_of_majorant hc hM hbound ⟨a + ε, hl⟩).norm.integrable_sq |
| 90 | have hir := (closedStrip_line_memLp_of_majorant hc hM hbound ⟨b - ε, hr⟩).norm.integrable_sq |
| 91 | refine ⟨hil.add hir, ?_⟩ |
| 92 | rw [integral_add hil hir] |
| 93 | have hleft := integral_mono hil hM (hbound (a + ε) hl) |
| 94 | have hright := integral_mono hir hM (hbound (b - ε) hr) |
| 95 | linarith |
| 96 | |
| 97 | lemma hardy_representation_exact_boundary {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} {M : ℝ → ℝ} |
| 98 | (hc : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (hM : Integrable M) |
| 99 | (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ^ 2 ≤ M t) |
| 100 | (ψ : HardySpace a b) (hψ : ∀ s ∈ strip a b, fourierLaplace ψ s = f s) : |
| 101 | ((boundaryTraces hab ψ).1 =ᵐ[volume] fun t => f (line a t)) ∧ |
| 102 | ((boundaryTraces hab ψ).2 =ᵐ[volume] fun t => f (line b t)) := by |
| 103 | let F := fun x : Icc a b => (closedStrip_line_memLp_of_majorant hc hM hbound x).toLp _ |
| 104 | have hF : Continuous F := closedStrip_toLp_continuous hc hM hbound |
| 105 | have hi : ∀ x : Ioo a b, interiorLine hab ψ x x.property = |
| 106 | F ⟨x, ⟨x.property.1.le, x.property.2.le⟩⟩ := by |
| 107 | intro x |
| 108 | apply Lp.ext |
| 109 | filter_upwards [(interiorLine_memLp hab x.property ψ).coeFn_toLp, |
| 110 | (closedStrip_line_memLp_of_majorant hc hM hbound ⟨x, ⟨x.property.1.le, x.property.2.le⟩⟩).coeFn_toLp] |
| 111 | with t ht ht' |
| 112 | change ((interiorLine_memLp hab x.property ψ).toLp _) t = _ |
| 113 | rw [ht] |
| 114 | change fourierLaplace ψ (line x t) = |
| 115 | ((closedStrip_line_memLp_of_majorant hc hM hbound ⟨x, ⟨x.property.1.le, x.property.2.le⟩⟩).toLp _) t |
| 116 | rw [ht'] |
| 117 | apply hψ |
| 118 | simpa only [strip, Set.mem_ofPred_eq, line, Complex.add_re, Complex.ofReal_re, |
| 119 | Complex.mul_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, |
| 120 | zero_mul, sub_zero, add_zero, Set.mem_Ioo] using x.property |
| 121 | have he : boundaryTraces hab ψ = (F ⟨a, ⟨le_rfl, hab.le⟩⟩, F ⟨b, ⟨hab.le, le_rfl⟩⟩) := by |
| 122 | apply boundaryTraces_unique hab ψ _ _ (boundaryTraces_spec hab ψ) |
| 123 | constructor |
| 124 | · have ht : Tendsto (fun x : Ioo a b => (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) |
| 125 | (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 ⟨a, ⟨le_rfl, hab.le⟩⟩) := by |
| 126 | rw [tendsto_subtype_rng] |
| 127 | exact tendsto_comap.mono_right nhdsWithin_le_nhds |
| 128 | simpa only [Function.comp_def, ← hi] using (hF.tendsto ⟨a, ⟨le_rfl, hab.le⟩⟩).comp ht |
| 129 | · have ht : Tendsto (fun x : Ioo a b => (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) |
| 130 | (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 ⟨b, ⟨hab.le, le_rfl⟩⟩) := by |
| 131 | rw [tendsto_subtype_rng] |
| 132 | exact tendsto_comap.mono_right nhdsWithin_le_nhds |
| 133 | simpa only [Function.comp_def, ← hi] using (hF.tendsto ⟨b, ⟨hab.le, le_rfl⟩⟩).comp ht |
| 134 | rw [he] |
| 135 | exact ⟨(closedStrip_line_memLp_of_majorant hc hM hbound ⟨a, ⟨le_rfl, hab.le⟩⟩).coeFn_toLp, |
| 136 | (closedStrip_line_memLp_of_majorant hc hM hbound ⟨b, ⟨hab.le, le_rfl⟩⟩).coeFn_toLp⟩ |
| 137 | |
| 138 | lemma hardy_column_of_closedStrip_majorant {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} {M : ℝ → ℝ} |
| 139 | (hhol : DifferentiableOn ℂ f (strip a b)) |
| 140 | (hc : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (hM : Integrable M) |
| 141 | (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ^ 2 ≤ M t) : |
| 142 | ∃ ψ : HardySpace a b, (∀ s ∈ strip a b, fourierLaplace ψ s = f s) ∧ |
| 143 | ((boundaryTraces hab ψ).1 =ᵐ[volume] fun t => f (line a t)) ∧ |
| 144 | ((boundaryTraces hab ψ).2 =ᵐ[volume] fun t => f (line b t)) := by |
| 145 | obtain ⟨ψ, hψ⟩ := rawHardy_fourierLaplace_exists hab |
| 146 | (rawHardy_of_closedStrip_majorant hab hhol hc hM hbound) |
| 147 | exact ⟨ψ, hψ, hardy_representation_exact_boundary hab hc hM hbound ψ hψ⟩ |
| 148 | |
| 149 | end ConditionalGoldbach |
