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.MeasureTheory.Function.L2Space |
| 4 | public import Mathlib.MeasureTheory.Integral.DominatedConvergence |
| 5 | public import ConditionalGoldbach.Proofs.SpectralL2Kernel |
| 6 | |
| 7 | public section |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | open scoped BigOperators ComplexConjugate Topology |
| 12 | open MeasureTheory Filter Set Complex InnerProductSpace |
| 13 | namespace ConditionalGoldbach |
| 14 | attribute [local instance] Classical.propDecidable |
| 15 | variable {α β : Type*} [MeasurableSpace α] [MeasurableSpace β] |
| 16 | variable {μ : Measure α} {ν : Measure β} |
| 17 | |
| 18 | /-- Rowwise Parseval for the actual un-conjugated integral kernel pairing. -/ |
| 19 | theorem l2Kernel_row_parseval {k : β → ℂ} (hk : MemLp k 2 ν) |
| 20 | (b : HilbertBasis ℕ ℂ (Lp ℂ 2 ν)) : |
| 21 | HasSum (fun j => ‖∫ y, k y * b j y ∂ν‖ ^ 2) (∫ y, ‖k y‖ ^ 2 ∂ν) := by |
| 22 | let g : Lp ℂ 2 ν := hk.star.toLp (star k) |
| 23 | have heq (j : ℕ) : (∫ y, k y * b j y ∂ν) = inner ℂ g (b j) := by |
| 24 | rw [L2.inner_def] |
| 25 | apply integral_congr_ae |
| 26 | filter_upwards [hk.star.coeFn_toLp] with y hy |
| 27 | change k y * b j y = inner ℂ ((hk.star.toLp (star k)) y) (b j y) |
| 28 | rw [hy] |
| 29 | change k y * b j y = b j y * star (star (k y)) |
| 30 | simp only [star_star, mul_comm] |
| 31 | have hg : ‖g‖ ^ 2 = ∫ y, ‖k y‖ ^ 2 ∂ν := by |
| 32 | rw [l2Kernel_norm_sq_integral] |
| 33 | apply integral_congr_ae |
| 34 | filter_upwards [hk.star.coeFn_toLp] with y hy |
| 35 | change ‖(hk.star.toLp (star k)) y‖ ^ 2 = _ |
| 36 | rw [hy] |
| 37 | simp only [Pi.star_apply, norm_star] |
| 38 | simpa only [heq, norm_inner_symm, hg] using hilbertBasis_hasSum_sq_inner b g |
| 39 | |
| 40 | variable [SFinite μ] [SFinite ν] |
| 41 | |
| 42 | /-- The sum of squared norms of the images of any Hilbert basis is exactly the kernel energy. -/ |
| 43 | theorem l2KernelOperator_hasSum_norm_sq {K : α × β → ℂ} (hK : MemLp K 2 (μ.prod ν)) |
| 44 | (b : HilbertBasis ℕ ℂ (Lp ℂ 2 ν)) : |
| 45 | HasSum (fun j => ‖l2KernelOperator hK (b j)‖ ^ 2) |
| 46 | (∫ p, ‖K p‖ ^ 2 ∂(μ.prod ν)) := by |
| 47 | let F : ℕ → α → ℝ := fun j x => ‖l2KernelOperator hK (b j) x‖ ^ 2 |
| 48 | let E : α → ℝ := fun x => ∫ y, ‖K (x, y)‖ ^ 2 ∂ν |
| 49 | have hcoe : ∀ᵐ x ∂μ, ∀ j, l2KernelOperator hK (b j) x = ∫ y, K (x, y) * b j y ∂ν := |
| 50 | ae_all_iff.mpr fun j => l2KernelOperator_coeFn hK (b j) |
| 51 | have hp : ∀ᵐ x ∂μ, HasSum (fun j => F j x) (E x) := by |
| 52 | filter_upwards [hcoe, l2Kernel_rows_memLp hK] with x hx hk |
| 53 | simpa only [F, E, hx] using l2Kernel_row_parseval hk b |
| 54 | have hm (j : ℕ) : AEStronglyMeasurable (F j) μ := |
| 55 | (Lp.aestronglyMeasurable (l2KernelOperator hK (b j))).norm.pow 2 |
| 56 | have hi : Integrable (fun x => ∑' j, F j x) μ := by |
| 57 | apply hK.norm.integrable_sq.integral_prod_left.congr |
| 58 | filter_upwards [hp] with x hx |
| 59 | exact hx.tsum_eq.symm |
| 60 | have hsum := hasSum_integral_of_dominated_convergence F hm |
| 61 | (fun j => Filter.Eventually.of_forall fun x => by |
| 62 | simp only [F, Real.norm_eq_abs, abs_pow, abs_norm, le_refl]) |
| 63 | (hp.mono fun x hx => hx.summable) hi hp |
| 64 | convert hsum using 1 |
| 65 | · funext j |
| 66 | exact l2Kernel_norm_sq_integral _ |
| 67 | · exact integral_prod _ hK.norm.integrable_sq |
| 68 | |
| 69 | /-- The integral operator is Hilbert--Schmidt whenever the ambient L² space has the paper's basis. -/ |
| 70 | theorem l2KernelOperator_isHilbertSchmidt {K : α × α → ℂ} (hK : MemLp K 2 (μ.prod μ)) |
| 71 | (b : HilbertBasis ℕ ℂ (Lp ℂ 2 μ)) : IsHilbertSchmidt (l2KernelOperator hK) := |
| 72 | ⟨b, (l2KernelOperator_hasSum_norm_sq hK b).summable⟩ |
| 73 | |
| 74 | /-- The Hilbert--Schmidt norm is exactly the L² norm of the kernel. -/ |
| 75 | theorem l2KernelOperator_hsNorm_sq {K : α × α → ℂ} (hK : MemLp K 2 (μ.prod μ)) |
| 76 | (b : HilbertBasis ℕ ℂ (Lp ℂ 2 μ)) : |
| 77 | hsNorm (l2KernelOperator hK) ^ 2 = ∫ p, ‖K p‖ ^ 2 ∂(μ.prod μ) := by |
| 78 | rw [(proposition_5_3_hs_basis_independent _ (l2KernelOperator_isHilbertSchmidt hK b) b).2] |
| 79 | exact (l2KernelOperator_hasSum_norm_sq hK b).tsum_eq |
| 80 | |
| 81 | end ConditionalGoldbach |
