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.Operators |
| 4 | public import ConditionalGoldbach.Proofs.MellinTestInversion |
| 5 | |
| 6 | /-! An absolutely convergent density formula for the Mellin functional. -/ |
| 7 | 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 | lemma functional_mellin_coefficient_integrable (N : ℕ) (hN : 0 < N) |
| 16 | (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) : |
| 17 | Integrable (fun t : ℝ => (N : ℂ) ^ (line σ t) * mellinWeight φ (line σ t) * (1 + line σ t)) := by |
| 18 | have hNc : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' |
| 19 | have hNr : 0 < (N : ℝ) := by exact_mod_cast hN |
| 20 | have hc : Continuous (fun t : ℝ => (N : ℂ) ^ (line σ t)) := by |
| 21 | apply Continuous.const_cpow |
| 22 | · unfold line |
| 23 | fun_prop |
| 24 | · exact Or.inl hNc |
| 25 | have hbound : ∀ᵐ t : ℝ, ‖(N : ℂ) ^ (line σ t)‖ ≤ Real.rpow N σ := by |
| 26 | filter_upwards [] with t |
| 27 | rw [← Complex.ofReal_natCast, Complex.norm_cpow_eq_rpow_re_of_pos hNr] |
| 28 | simp [line, Real.rpow_eq_pow] |
| 29 | have hi := (derivativeWeight_mellin_verticalIntegrable φ hφ σ).bdd_mul hc.aestronglyMeasurable hbound |
| 30 | convert hi using 1 |
| 31 | ext t |
| 32 | rw [derivativeWeight_mellin φ hφ] |
| 33 | dsimp [line] |
| 34 | ring |
| 35 | |
| 36 | lemma mellin_exponential_kernel (N : ℕ) (hN : 0 < N) (τ : ℝ) (s : ℂ) : |
| 37 | (((Real.exp (-τ) / N : ℝ) : ℂ)) ^ (-s) = (N : ℂ) ^ s * Complex.exp (s * τ) := by |
| 38 | have hNreal : 0 < (N : ℝ) := by exact_mod_cast hN |
| 39 | have hpos : 0 < Real.exp (-τ) / N := div_pos (Real.exp_pos _) hNreal |
| 40 | rw [cpow_def_of_ne_zero (Complex.ofReal_ne_zero.mpr hpos.ne'), |
| 41 | cpow_def_of_ne_zero (by exact_mod_cast hN.ne'), ← Complex.exp_add, |
| 42 | ← Complex.ofReal_natCast N, ← Complex.ofReal_log hNreal.le, |
| 43 | ← Complex.ofReal_log hpos.le, Real.log_div (Real.exp_ne_zero _) hNreal.ne', Real.log_exp] |
| 44 | push_cast |
| 45 | congr 1 |
| 46 | ring |
| 47 | |
| 48 | lemma functional_double_integrable {a b : ℝ} (N : ℕ) (hN : 0 < N) |
| 49 | (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : σ ∈ Ioo a b) |
| 50 | (ψ : HardySpace a b) : |
| 51 | Integrable (fun p : ℝ × ℝ => |
| 52 | ((N : ℂ) ^ (line σ p.1) * mellinWeight φ (line σ p.1) * (1 + line σ p.1)) * |
| 53 | ψ p.2 * Complex.exp (line σ p.1 * p.2)) := by |
| 54 | let A : ℝ → ℂ := fun t => (N : ℂ) ^ (line σ t) * mellinWeight φ (line σ t) * (1 + line σ t) |
| 55 | have hA : Integrable A := functional_mellin_coefficient_integrable N hN φ hφ σ |
| 56 | have hψ := hardy_weighted_line_integrable hσ ψ |
| 57 | have he : Continuous (fun p : ℝ × ℝ => Complex.exp (line σ p.1 * p.2)) := by |
| 58 | unfold line |
| 59 | fun_prop |
| 60 | have hm := (hA.aestronglyMeasurable.comp_fst.mul |
| 61 | (hardySpace_aestronglyMeasurable ψ).comp_snd).mul he.aestronglyMeasurable |
| 62 | apply (hA.norm.mul_prod hψ.norm).mono' hm |
| 63 | filter_upwards [] with p |
| 64 | apply le_of_eq |
| 65 | simp only [Pi.mul_apply, norm_mul, Complex.norm_exp, line, mul_re, add_re, ofReal_re, |
| 66 | ofReal_im, I_re, I_im, mul_zero, zero_mul, sub_zero, sub_self, add_zero, |
| 67 | Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] |
| 68 | ring |
| 69 | |
| 70 | |
| 71 | lemma functionalValue_integrable {a : ℝ} (N : ℕ) (hN : 0 < N) |
| 72 | (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : σ ∈ Ioo a beta) |
| 73 | (ψ : HardySpace a beta) : |
| 74 | Integrable (fun t : ℝ => (N : ℂ) ^ (line σ t) * mellinWeight φ (line σ t) * |
| 75 | (1 + line σ t) * fourierLaplace ψ (line σ t)) := by |
| 76 | have hF := functional_double_integrable N hN φ hφ σ hσ ψ |
| 77 | have h := hF.integral_prod_left.const_mul ((Real.sqrt (2 * Real.pi) : ℂ)⁻¹) |
| 78 | convert h using 1 |
| 79 | ext t |
| 80 | unfold fourierLaplace |
| 81 | simp only [mul_assoc, integral_const_mul] |
| 82 | ring |
| 83 | |
| 84 | |
| 85 | /-- All interchanges are absolutely convergent for every Hardy vector. -/ |
| 86 | theorem functionalValue_density {a : ℝ} (N : ℕ) (hN : 0 < N) |
| 87 | (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : σ ∈ Ioo a beta) |
| 88 | (ψ : HardySpace a beta) : |
| 89 | functionalValue N φ σ ψ = (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * |
| 90 | ∫ τ : ℝ, ψ τ * (derivativeWeight φ (Real.exp (-τ) / N) : ℂ) := by |
| 91 | let A : ℝ → ℂ := fun t => (N : ℂ) ^ (line σ t) * mellinWeight φ (line σ t) * (1 + line σ t) |
| 92 | let F : ℝ → ℝ → ℂ := fun t τ => A t * ψ τ * Complex.exp (line σ t * τ) |
| 93 | let K : ℂ := (2 * (Real.pi : ℂ))⁻¹ |
| 94 | let L : ℂ := (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ |
| 95 | have hF : Integrable (Function.uncurry F) := functional_double_integrable N hN φ hφ σ hσ ψ |
| 96 | have hi (τ : ℝ) : K * (∫ t : ℝ, F t τ) = |
| 97 | ψ τ * (derivativeWeight φ (Real.exp (-τ) / N) : ℂ) := by |
| 98 | have hNu : 0 < Real.exp (-τ) / N := by positivity |
| 99 | rw [derivativeWeight_mellin_inversion φ hφ σ _ hNu] |
| 100 | unfold verticalMellin |
| 101 | simp_rw [mellin_exponential_kernel N hN τ] |
| 102 | dsimp [F, A, K] |
| 103 | simp_rw [← integral_const_mul] |
| 104 | apply integral_congr_ae |
| 105 | filter_upwards [] with t |
| 106 | ring |
| 107 | calc |
| 108 | functionalValue N φ σ ψ = K * L * ∫ t : ℝ, ∫ τ : ℝ, F t τ := by |
| 109 | have hinner (t : ℝ) : (∫ τ : ℝ, F t τ) = |
| 110 | A t * ∫ τ : ℝ, ψ τ * Complex.exp (line σ t * τ) := by |
| 111 | simp only [F, mul_assoc, integral_const_mul] |
| 112 | change K * (∫ t : ℝ, A t * (L * ∫ τ : ℝ, ψ τ * Complex.exp (line σ t * τ))) = _ |
| 113 | simp_rw [hinner] |
| 114 | simp_rw [← integral_const_mul] |
| 115 | apply integral_congr_ae |
| 116 | filter_upwards [] with t |
| 117 | ring_nf |
| 118 | _ = K * L * ∫ τ : ℝ, ∫ t : ℝ, F t τ := by rw [integral_integral_swap hF] |
| 119 | _ = L * ∫ τ : ℝ, K * (∫ t : ℝ, F t τ) := by rw [integral_const_mul]; ring |
| 120 | _ = _ := by simp_rw [hi]; rfl |
| 121 | |
| 122 | |
| 123 | theorem functionalValue_contour_independent {a : ℝ} (N : ℕ) (hN : 0 < N) |
| 124 | (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ τ : ℝ) |
| 125 | (hσ : σ ∈ Ioo a beta) (hτ : τ ∈ Ioo a beta) (ψ : HardySpace a beta) : |
| 126 | functionalValue N φ σ ψ = functionalValue N φ τ ψ := by |
| 127 | rw [functionalValue_density N hN φ hφ σ hσ, functionalValue_density N hN φ hφ τ hτ] |
| 128 | |
| 129 | end ConditionalGoldbach |
