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.Definitions.Model |
| 4 | public import Mathlib.MeasureTheory.Group.Prod |
| 5 | public import Mathlib.MeasureTheory.Integral.Prod |
| 6 | public import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar |
| 7 | import Mathlib.Tactic.Push |
| 8 | import Mathlib.Tactic.Ring |
| 9 | |
| 10 | /-! Diagonalization and factor extraction for double vertical Mellin integrals. -/ |
| 11 | public section |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | open scoped BigOperators ComplexConjugate Topology |
| 16 | open MeasureTheory Filter Set Complex |
| 17 | namespace ConditionalGoldbach |
| 18 | |
| 19 | lemma double_verticalMellin_diagonal (F : ℂ → ℂ → ℂ) (σ : ℝ) |
| 20 | (hi : Integrable (fun p : ℝ × ℝ => F (line σ p.1) (line σ p.2))) : |
| 21 | verticalMellin σ (fun s => verticalMellin σ (fun z => F s z)) = |
| 22 | verticalMellin (2*σ) (fun w => verticalMellin σ (fun s => F s (w-s))) := by |
| 23 | have hline (v t : ℝ) : line (2*σ) t-line σ v = line σ (t-v) := by |
| 24 | unfold line |
| 25 | push_cast |
| 26 | ring |
| 27 | rw [Measure.volume_eq_prod] at hi |
| 28 | have hg : Integrable (fun p : ℝ × ℝ => F (line σ p.1) (line σ (p.2-p.1))) |
| 29 | (volume.prod volume) := (measurePreserving_prod_sub volume volume).integrable_comp_of_integrable hi |
| 30 | have he : (∫ v : ℝ, ∫ y : ℝ, F (line σ v) (line σ y)) = |
| 31 | ∫ t : ℝ, ∫ v : ℝ, F (line σ v) (line (2*σ) t-line σ v) := by |
| 32 | calc |
| 33 | _ = ∫ v : ℝ, ∫ t : ℝ, F (line σ v) (line σ (t-v)) := by |
| 34 | apply integral_congr_ae |
| 35 | filter_upwards [] with v |
| 36 | exact (integral_sub_right_eq_self (μ := volume) (fun y : ℝ => F (line σ v) (line σ y)) v).symm |
| 37 | _ = ∫ t : ℝ, ∫ v : ℝ, F (line σ v) (line σ (t-v)) := |
| 38 | integral_integral_swap (f := fun v t : ℝ => F (line σ v) (line σ (t-v))) hg |
| 39 | _ = _ := by simp_rw [hline] |
| 40 | simp only [verticalMellin, integral_const_mul, he] |
| 41 | |
| 42 | /-- Reduce the double model integral to one vertical Mellin integral. The joint |
| 43 | integrability and beta-transform identity are supplied separately by the smooth |
| 44 | weight and finite-regularity constructions. -/ |
| 45 | lemma model_double_mellin_eq_single (N : ℕ) (φ : ℝ → ℝ) (σ : ℝ) |
| 46 | (hi : Integrable (fun p : ℝ × ℝ => |
| 47 | mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * |
| 48 | continuedDensity N (line σ p.1 + line σ p.2) * |
| 49 | betaKernel (line σ p.1) (line σ p.2))) |
| 50 | (hbeta : ∀ w : ℂ, w.re = 2 * σ → |
| 51 | mellin (fun y => (signedConvolution φ y : ℂ)) w = |
| 52 | verticalMellin σ (fun s => |
| 53 | mellinWeight φ s * mellinWeight φ (w - s) * betaKernel s (w - s))) : |
| 54 | verticalMellin σ (fun s => verticalMellin σ (fun z => |
| 55 | mellinWeight φ s * mellinWeight φ z * continuedDensity N (s + z) * betaKernel s z)) = |
| 56 | verticalMellin (2 * σ) (fun w => |
| 57 | continuedDensity N w * mellin (fun y => (signedConvolution φ y : ℂ)) w) := by |
| 58 | rw [double_verticalMellin_diagonal _ σ hi] |
| 59 | unfold verticalMellin |
| 60 | congr 1 |
| 61 | apply integral_congr_ae |
| 62 | filter_upwards [] with t |
| 63 | let w := line (2 * σ) t |
| 64 | have hw : w.re = 2 * σ := by simp [w, line] |
| 65 | have he (s : ℂ) : mellinWeight φ s * mellinWeight φ (w - s) * |
| 66 | continuedDensity N (s + (w - s)) * betaKernel s (w - s) = |
| 67 | continuedDensity N w * |
| 68 | (mellinWeight φ s * mellinWeight φ (w - s) * betaKernel s (w - s)) := by |
| 69 | rw [add_sub_cancel] |
| 70 | ring |
| 71 | change (2 * (Real.pi : ℂ))⁻¹ * |
| 72 | (∫ u : ℝ, mellinWeight φ (line σ u) * mellinWeight φ (w - line σ u) * |
| 73 | continuedDensity N (line σ u + (w - line σ u)) * |
| 74 | betaKernel (line σ u) (w - line σ u)) = _ |
| 75 | simp_rw [he] |
| 76 | rw [integral_const_mul] |
| 77 | change (2 * (Real.pi : ℂ))⁻¹ * (continuedDensity N w * _) = |
| 78 | continuedDensity N w * mellin (fun y => (signedConvolution φ y : ℂ)) w |
| 79 | rw [hbeta w hw] |
| 80 | unfold verticalMellin |
| 81 | ring |
| 82 | |
| 83 | end ConditionalGoldbach |
