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.FiniteFunctional |
| 4 | public import ConditionalGoldbach.Proofs.QuadraticIdentity |
| 5 | |
| 6 | /-! Recovery of a kernel quadratic form from any represented finite-smooth Mellin functional. -/ |
| 7 | public section |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | open scoped BigOperators ComplexConjugate Topology |
| 12 | open MeasureTheory Filter Set Complex |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | lemma real_mellin_conj (f : ℝ → ℝ) (s : ℂ) : |
| 16 | mellin (fun u => (f u : ℂ)) (conj s) = conj (mellin (fun u => (f u : ℂ)) s) := by |
| 17 | unfold mellin |
| 18 | rw [← integral_conj] |
| 19 | apply setIntegral_congr_fun measurableSet_Ioi |
| 20 | intro u hu |
| 21 | simp only [smul_eq_mul,map_mul,conj_ofReal] |
| 22 | rw [← ofReal_cpow_conj u hu,map_sub,map_one] |
| 23 | |
| 24 | lemma finite_mellin_coefficient_conj (N : ℕ) (hN : 0 < N) (f : ℝ → ℝ) (s : ℂ) : |
| 25 | (N : ℂ)^conj s * mellin (fun u => (f u : ℂ)) (conj s) * (1+conj s) = |
| 26 | conj ((N : ℂ)^s*mellin (fun u => (f u : ℂ)) s*(1+s)) := by |
| 27 | rw [← ofReal_natCast,ofReal_cpow_conj (N : ℝ) (by exact_mod_cast hN),real_mellin_conj] |
| 28 | simp only [map_mul,map_add,map_one] |
| 29 | |
| 30 | lemma finite_functional_kernel_recovery {a : ℝ} (N : ℕ) (hN : 0 < N) |
| 31 | (f : ℝ → ℝ) (σ : ℝ) (hσ : σ ∈ Ioo a beta) |
| 32 | (v : HardySpace a beta) |
| 33 | (hv : ∀ ψ, finiteFunctionalValue N f σ ψ = paperInner ψ v) |
| 34 | (T : HardySpace a beta →L[ℂ] HardySpace a beta) (K : ℂ → ℂ → ℂ) |
| 35 | (hK : ∀ s z : ℂ, s ∈ strip a beta → z ∈ strip a beta → |
| 36 | K s z = paperInner (T (evaluationVector z)) (evaluationVector s)) |
| 37 | (s : ℂ) (hs : s ∈ strip a beta) : |
| 38 | fourierLaplace (T v) s = verticalMellin σ (fun z => |
| 39 | (N : ℂ)^z*mellin (fun u => (f u : ℂ)) z*(1+z)*K s (conj z)) := by |
| 40 | have hstart : fourierLaplace (T v) s = |
| 41 | conj (finiteFunctionalValue N f σ (T.adjoint (evaluationVector s))) := by |
| 42 | rw [hv,evaluationVector_spec hs] |
| 43 | unfold paperInner |
| 44 | rw [inner_conj_symm] |
| 45 | exact (T.adjoint_inner_left v (evaluationVector s)).symm |
| 46 | rw [hstart,finiteFunctionalValue,verticalMellin_conj] |
| 47 | unfold verticalMellin |
| 48 | congr 1 |
| 49 | apply integral_congr_ae |
| 50 | filter_upwards [] with t |
| 51 | let z := line σ t |
| 52 | have hz : conj z ∈ strip a beta := by simpa [z,strip,line] using hσ |
| 53 | change conj ((N : ℂ)^conj z*mellin (fun u => (f u : ℂ)) (conj z)*(1+conj z)* |
| 54 | fourierLaplace (T.adjoint (evaluationVector s)) (conj z)) = _ |
| 55 | rw [map_mul,finite_mellin_coefficient_conj N hN f z,conj_conj, |
| 56 | evaluationVector_spec hz,hK s (conj z) hs hz] |
| 57 | congr 1 |
| 58 | unfold paperInner |
| 59 | rw [inner_conj_symm] |
| 60 | exact T.adjoint_inner_left (evaluationVector (conj z)) (evaluationVector s) |
| 61 | |
| 62 | lemma finite_quadratic_residual_integral {a : ℝ} (N : ℕ) [NeZero N] |
| 63 | (f : ℝ → ℝ) (σ : ℝ) (hσ : σ ∈ Ioo a beta) (hσ0 : 0 < σ) |
| 64 | (v : HardySpace a beta) |
| 65 | (hv : ∀ ψ, finiteFunctionalValue N f σ ψ = paperInner ψ v) |
| 66 | (T : HardySpace a beta →L[ℂ] HardySpace a beta) |
| 67 | (hK : ∀ s z : ℂ, s ∈ strip a beta → z ∈ strip a beta → |
| 68 | weightedKernel N s z = paperInner (T (evaluationVector z)) (evaluationVector s)) : |
| 69 | paperInner (T v) v = verticalMellin σ (fun s => verticalMellin σ (fun z => |
| 70 | (N : ℂ)^(s+z)*mellin (fun u => (f u : ℂ)) s*mellin (fun u => (f u : ℂ)) z* |
| 71 | residual N s z)) := by |
| 72 | have hN : 0 < N := Nat.pos_of_ne_zero (NeZero.ne N) |
| 73 | have hNz : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' |
| 74 | rw [← hv (T v)] |
| 75 | unfold finiteFunctionalValue verticalMellin |
| 76 | congr 1 |
| 77 | apply integral_congr_ae |
| 78 | filter_upwards [] with t |
| 79 | let s := line σ t |
| 80 | have hs : s ∈ strip a beta := by simpa [s,strip,line] using hσ |
| 81 | change (N : ℂ)^s*mellin (fun u => (f u : ℂ)) s*(1+s)*fourierLaplace (T v) s = _ |
| 82 | rw [finite_functional_kernel_recovery N hN f σ hσ v hv T (weightedKernel N) hK s hs] |
| 83 | unfold verticalMellin |
| 84 | rw [mul_left_comm _ ((2*(Real.pi : ℂ))⁻¹),← integral_const_mul] |
| 85 | congr 1 |
| 86 | apply integral_congr_ae |
| 87 | filter_upwards [] with y |
| 88 | let z := line σ y |
| 89 | have hs0 : 1+s ≠ 0 := by |
| 90 | intro h |
| 91 | have hr := congrArg Complex.re h |
| 92 | simp [s,line] at hr |
| 93 | linarith |
| 94 | have hz0 : 1+z ≠ 0 := by |
| 95 | intro h |
| 96 | have hr := congrArg Complex.re h |
| 97 | simp [z,line] at hr |
| 98 | linarith |
| 99 | change (N : ℂ)^s*mellin (fun u => (f u : ℂ)) s*(1+s)* |
| 100 | ((N : ℂ)^z*mellin (fun u => (f u : ℂ)) z*(1+z)*weightedKernel N s (conj z)) = _ |
| 101 | simp only [weightedKernel,conj_conj] |
| 102 | rw [cpow_add _ _ hNz] |
| 103 | field_simp; ring |
| 104 | |
| 105 | end ConditionalGoldbach |
