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 Mathlib.Analysis.Distribution.SchwartzSpace.Fourier |
| 4 | public import Mathlib.Analysis.MellinInversion |
| 5 | public import ConditionalGoldbach.Proofs.MellinDifferentiation |
| 6 | |
| 7 | /-! Mellin inversion also applies to signed derivative weights. -/ |
| 8 | public section |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | open scoped BigOperators ComplexConjugate Topology ContDiff FourierTransform SchwartzMap |
| 13 | open MeasureTheory Filter Set Complex |
| 14 | namespace ConditionalGoldbach |
| 15 | |
| 16 | lemma mellin_test_convergent (f : ℝ → ℝ) (hf : Continuous f) |
| 17 | (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (s : ℂ) : |
| 18 | MellinConvergent (fun u => (f u : ℂ)) s := by |
| 19 | have hsupport : Function.support (fun u : ℝ => (u : ℂ) ^ (s - 1) * (f u : ℂ)) ⊆ |
| 20 | Icc (1 / 3 : ℝ) (2 / 3) := by |
| 21 | intro u hu |
| 22 | apply hs |
| 23 | intro hzero |
| 24 | exact hu (by simp [hzero]) |
| 25 | change IntegrableOn (fun u : ℝ => (u : ℂ) ^ (s - 1) * (f u : ℂ)) (Ioi 0) |
| 26 | apply Integrable.integrableOn |
| 27 | apply (integrableOn_iff_integrable_of_support_subset hsupport).mp |
| 28 | apply ContinuousOn.integrableOn_Icc |
| 29 | intro u hu |
| 30 | have hu0 : u ≠ 0 := by linarith [hu.1] |
| 31 | exact ((Complex.continuousAt_ofReal_cpow_const u (s - 1) (Or.inr hu0)).mul |
| 32 | (Complex.continuous_ofReal.continuousAt.comp hf.continuousAt)).continuousWithinAt |
| 33 | |
| 34 | lemma mellin_test_verticalIntegrable (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) |
| 35 | (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (σ : ℝ) : |
| 36 | VerticalIntegrable (mellin (fun u => (f u : ℂ))) σ := by |
| 37 | let g : ℝ → ℂ := fun x => Real.exp (-σ * x) • (f (Real.exp (-x)) : ℂ) |
| 38 | have hg : ContDiff ℝ ∞ g := by |
| 39 | exact (Real.contDiff_exp.comp ((contDiff_const : ContDiff ℝ ∞ (fun _ : ℝ => -σ)).mul contDiff_id)).smul |
| 40 | (Complex.ofRealCLM.contDiff.comp (hf.comp (Real.contDiff_exp.comp contDiff_id.neg))) |
| 41 | have hgs : HasCompactSupport g := by |
| 42 | apply HasCompactSupport.of_support_subset_isCompact |
| 43 | (isCompact_Icc (a := -Real.log (2 / 3)) (b := -Real.log (1 / 3))) |
| 44 | intro x hx |
| 45 | have hn : f (Real.exp (-x)) ≠ 0 := by intro hz; exact hx (by simp [g, hz]) |
| 46 | have h := hs hn |
| 47 | have hl := Real.log_le_log (by norm_num : (0 : ℝ) < 1 / 3) h.1 |
| 48 | have hr := Real.log_le_log (Real.exp_pos (-x)) h.2 |
| 49 | rw [Real.log_exp] at hl hr |
| 50 | constructor <;> linarith |
| 51 | let G := hgs.toSchwartzMap hg |
| 52 | have hF : Integrable (𝓕 g) := by |
| 53 | simpa only [SchwartzMap.fourier_coe] using (𝓕 G).integrable |
| 54 | have hscaled := hF.comp_mul_right' (show (2 * Real.pi)⁻¹ ≠ 0 by positivity) |
| 55 | simpa only [VerticalIntegrable, mellin_eq_fourier, add_re, ofReal_re, |
| 56 | mul_re, ofReal_im, I_re, I_im, mul_zero, zero_mul, sub_self, add_zero, add_im, |
| 57 | mul_im, mul_one, zero_add, g, div_eq_mul_inv] using hscaled |
| 58 | |
| 59 | lemma mellin_test_inversion (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) |
| 60 | (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (σ u : ℝ) (hu : 0 < u) : |
| 61 | (f u : ℂ) = verticalMellin σ (fun s => mellin (fun u => (f u : ℂ)) s * (u : ℂ) ^ (-s)) := by |
| 62 | have h := mellinInv_mellin_eq σ (fun u => (f u : ℂ)) hu |
| 63 | (mellin_test_convergent f hf.continuous hs σ) (mellin_test_verticalIntegrable f hf hs σ) |
| 64 | (Complex.continuous_ofReal.continuousAt.comp hf.continuous.continuousAt) |
| 65 | rw [← h] |
| 66 | simp only [mellinInv, verticalMellin, line, smul_eq_mul, Complex.real_smul, |
| 67 | Complex.ofReal_mul, Complex.ofReal_ofNat, one_div, Complex.ofReal_inv] |
| 68 | congr 1 |
| 69 | apply integral_congr_ae |
| 70 | exact Eventually.of_forall (fun _ => mul_comm _ _) |
| 71 | |
| 72 | lemma derivativeWeight_contDiff (φ : ℝ → ℝ) (hφ : IsWeight φ) : |
| 73 | ContDiff ℝ ∞ (derivativeWeight φ) := |
| 74 | mellinD_contDiff (companion_contDiff hφ) |
| 75 | |
| 76 | lemma derivativeWeight_mellin_verticalIntegrable (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) : |
| 77 | VerticalIntegrable (mellin (fun u => (derivativeWeight φ u : ℂ))) σ := |
| 78 | mellin_test_verticalIntegrable _ (derivativeWeight_contDiff φ hφ) (derivativeWeight_support_subset hφ) σ |
| 79 | |
| 80 | lemma derivativeWeight_mellin_inversion (φ : ℝ → ℝ) (hφ : IsWeight φ) |
| 81 | (σ u : ℝ) (hu : 0 < u) : |
| 82 | (derivativeWeight φ u : ℂ) = verticalMellin σ (fun s => |
| 83 | (1 + s) * mellinWeight φ s * (u : ℂ) ^ (-s)) := by |
| 84 | simpa only [derivativeWeight_mellin φ hφ] using |
| 85 | mellin_test_inversion _ (derivativeWeight_contDiff φ hφ) (derivativeWeight_support_subset hφ) σ u hu |
| 86 | |
| 87 | end ConditionalGoldbach |
