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.FiniteMellinProjection |
| 4 | public import ConditionalGoldbach.Proofs.WideWeight |
| 5 | |
| 6 | /-! Finite C6 model weights with arbitrary compact support strictly inside (0,1). -/ |
| 7 | @[expose] 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 | structure FiniteModelWeight (φ : ℝ → ℝ) where |
| 16 | smooth : ContDiff ℝ 6 φ |
| 17 | lower : ℝ |
| 18 | upper : ℝ |
| 19 | lower_pos : 0 < lower |
| 20 | upper_lt_one : upper < 1 |
| 21 | lower_le_upper : lower ≤ upper |
| 22 | support_subset : Function.support φ ⊆ Icc lower upper |
| 23 | |
| 24 | namespace FiniteModelWeight |
| 25 | lemma continuous {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : Continuous φ := hφ.smooth.continuous |
| 26 | lemma hasCompactSupport {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : HasCompactSupport φ := |
| 27 | HasCompactSupport.of_support_subset_isCompact isCompact_Icc hφ.support_subset |
| 28 | lemma mem_support_interval {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) {u : ℝ} |
| 29 | (hu : φ u ≠ 0) : u ∈ Icc hφ.lower hφ.upper := hφ.support_subset hu |
| 30 | lemma mem_support_unit {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) {u : ℝ} |
| 31 | (hu : φ u ≠ 0) : u ∈ Ioo (0 : ℝ) 1 := |
| 32 | ⟨hφ.lower_pos.trans_le (hφ.mem_support_interval hu).1, |
| 33 | (hφ.mem_support_interval hu).2.trans_lt hφ.upper_lt_one⟩ |
| 34 | lemma eq_zero_of_nonpos {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) {u : ℝ} |
| 35 | (hu : u ≤ 0) : φ u = 0 := by |
| 36 | by_contra hn |
| 37 | exact (not_lt_of_ge hu) (hφ.mem_support_unit hn).1 |
| 38 | lemma norm_bounded {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : |
| 39 | ∃ B : ℝ, ∀ u : ℝ, ‖(φ u : ℂ)‖ ≤ B := by |
| 40 | obtain ⟨B,hB⟩ := (isCompact_Icc (a := hφ.lower) (b := hφ.upper)).exists_bound_of_continuousOn |
| 41 | hφ.continuous.continuousOn |
| 42 | refine ⟨|B|+1,fun u => ?_⟩ |
| 43 | by_cases hu : φ u = 0 |
| 44 | · simp [hu]; positivity |
| 45 | · simpa only [Complex.norm_real,Real.norm_eq_abs] using |
| 46 | (hB u (hφ.mem_support_interval hu)).trans (by linarith [le_abs_self B]) |
| 47 | end FiniteModelWeight |
| 48 | |
| 49 | namespace FiniteModel |
| 50 | |
| 51 | def modelMass (φ : ℝ → ℝ) : ℝ := ∫ u in (0 : ℝ)..1, φ u * φ (1-u) |
| 52 | |
| 53 | lemma companion_contDiff {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : |
| 54 | ContDiff ℝ 6 (companion φ) := by |
| 55 | rw [contDiff_iff_contDiffAt] |
| 56 | intro x |
| 57 | by_cases hx : x ≠ 0 |
| 58 | · exact (Real.contDiffAt_sqrt hx).mul hφ.smooth.contDiffAt |
| 59 | · have hx0 : x = 0 := by simpa using hx |
| 60 | subst x |
| 61 | apply (contDiffAt_const (c := (0 : ℝ))).congr_of_eventuallyEq |
| 62 | filter_upwards [Iio_mem_nhds hφ.lower_pos] with u hu |
| 63 | have hz : φ u = 0 := by |
| 64 | by_contra hn |
| 65 | exact (not_lt_of_ge (hφ.mem_support_interval hn).1) hu |
| 66 | simp [companion,hz] |
| 67 | |
| 68 | lemma companion_support_subset {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : |
| 69 | Function.support (companion φ) ⊆ Icc hφ.lower hφ.upper := by |
| 70 | intro x hx |
| 71 | exact hφ.mem_support_interval (mul_ne_zero_iff.mp hx).2 |
| 72 | |
| 73 | theorem mellinWeight_convergent {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) (s : ℂ) : |
| 74 | MellinConvergent (fun u => (companion φ u : ℂ)) s := by |
| 75 | have hsupp : Function.support (fun u : ℝ => (u : ℂ) ^ (s - 1) * |
| 76 | (companion φ u : ℂ)) ⊆ Icc hφ.lower hφ.upper := by |
| 77 | intro u hu |
| 78 | apply companion_support_subset hφ |
| 79 | intro hzero |
| 80 | exact hu (by simp [hzero]) |
| 81 | change IntegrableOn (fun u : ℝ => (u : ℂ) ^ (s - 1) * (companion φ u : ℂ)) (Ioi 0) |
| 82 | apply Integrable.integrableOn |
| 83 | apply (integrableOn_iff_integrable_of_support_subset hsupp).mp |
| 84 | apply ContinuousOn.integrableOn_Icc |
| 85 | intro u hu |
| 86 | have hu0 : u ≠ 0 := by linarith [hu.1, hφ.lower_pos] |
| 87 | exact ((Complex.continuousAt_ofReal_cpow_const u (s - 1) (Or.inr hu0)).mul |
| 88 | (Complex.continuous_ofReal.continuousAt.comp (companion_contDiff hφ).continuous.continuousAt)).continuousWithinAt |
| 89 | |
| 90 | lemma mellinWeight_verticalIntegrable {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) |
| 91 | (σ : ℝ) (hσ : 0 < σ) : VerticalIntegrable (mellinWeight φ) σ := |
| 92 | compact_mellin_finite_verticalIntegrable (companion φ) |
| 93 | ((companion_contDiff hφ).of_le (by norm_num)) _ _ (companion_support_subset hφ) σ hσ |
| 94 | |
| 95 | lemma mellinWeight_inversion {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) |
| 96 | (σ : ℝ) (hσ : 0 < σ) (u : ℝ) (hu : 0 < u) : |
| 97 | (companion φ u : ℂ) = verticalMellin σ (fun s => mellinWeight φ s * (u : ℂ)^(-s)) := |
| 98 | compact_mellin_finite_inversion (companion φ) |
| 99 | ((companion_contDiff hφ).of_le (by norm_num)) _ _ (companion_support_subset hφ) σ hσ u hu |
| 100 | |
| 101 | lemma mellinWeight_uniform_decay (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) |
| 102 | (lo hi : ℝ) (hlo : 0 < lo) (hlh : lo ≤ hi) : |
| 103 | ∃ C : ℝ, 0 < C ∧ ∀ x ∈ Icc lo hi, ∀ t : ℝ, |
| 104 | ‖mellinWeight φ (line x t)‖ ≤ C*(1+|t|)⁻¹^6 := by |
| 105 | obtain ⟨C,hC,hbound⟩ := compact_mellin_finite_decay 6 (companion φ) |
| 106 | (companion_contDiff hφ) _ _ (companion_support_subset hφ) lo hi hlo hlh |
| 107 | refine ⟨C,hC,fun x hx t => ?_⟩ |
| 108 | simpa [mellinWeight,line] using hbound (line x t) (by simpa [line] using hx) |
| 109 | |
| 110 | theorem mellinWeight_differentiable {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : |
| 111 | Differentiable ℂ (mellinWeight φ) := by |
| 112 | have hc : Continuous (fun u : ℝ => (companion φ u : ℂ)) := |
| 113 | Complex.continuous_ofReal.comp (companion_contDiff hφ).continuous |
| 114 | have htop : (fun u : ℝ => (companion φ u : ℂ)) =ᶠ[atTop] 0 := by |
| 115 | filter_upwards [eventually_gt_atTop hφ.upper] with u hu |
| 116 | have hz : companion φ u = 0 := by |
| 117 | by_contra hn |
| 118 | exact (not_lt_of_ge (companion_support_subset hφ hn).2) hu |
| 119 | simp [hz] |
| 120 | have hbot : (fun u : ℝ => (companion φ u : ℂ)) =ᶠ[𝓝[>] (0 : ℝ)] 0 := by |
| 121 | filter_upwards [nhdsWithin_le_nhds (Iio_mem_nhds (show (0 : ℝ) < hφ.lower from hφ.lower_pos))] with u hu |
| 122 | have hz : companion φ u = 0 := by |
| 123 | by_contra hn |
| 124 | exact (not_lt_of_ge (companion_support_subset hφ hn).1) hu |
| 125 | simp [hz] |
| 126 | intro s |
| 127 | apply mellin_differentiableAt_of_isBigO_rpow (a := s.re + 1) (b := s.re - 1) |
| 128 | (hc.locallyIntegrable.locallyIntegrableOn _) |
| 129 | · exact htop.trans_isBigO (Asymptotics.isBigO_zero _ _) |
| 130 | · linarith |
| 131 | · exact hbot.trans_isBigO (Asymptotics.isBigO_zero _ _) |
| 132 | · linarith |
| 133 | |
| 134 | end FiniteModel |
| 135 | end ConditionalGoldbach |
