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.HardyContinuousBoundary |
| 4 | public import ConditionalGoldbach.Proofs.SpectralPoissonConvolution |
| 5 | |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology |
| 11 | open MeasureTheory Filter Set Complex InnerProductSpace |
| 12 | namespace ConditionalGoldbach |
| 13 | attribute [local instance] Classical.propDecidable |
| 14 | |
| 15 | /-- Exact square modulus of the diagonal rank-one vector on a vertical line. -/ |
| 16 | theorem diagonalVector_norm_sq (n : ℕ) (hn : 1 ≤ n) (x t : ℝ) : |
| 17 | ‖diagonalVector n (line x t)‖ ^ 2 = (n : ℝ) ^ (-2 * x) / ((1 + x) ^ 2 + t ^ 2) := by |
| 18 | unfold diagonalVector |
| 19 | rw [norm_div, div_pow, Complex.norm_natCast_cpow_of_pos (by omega), Complex.sq_norm] |
| 20 | have hpow : ((n : ℝ) ^ (-(line x t)).re) ^ 2 = (n : ℝ) ^ (-2 * x) := by |
| 21 | simp only [neg_re, line, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, |
| 22 | mul_zero, zero_mul, sub_zero, add_zero] |
| 23 | rw [← Real.rpow_natCast, ← Real.rpow_mul (Nat.cast_nonneg n)] |
| 24 | congr 1 |
| 25 | ring |
| 26 | rw [hpow] |
| 27 | congr 1 |
| 28 | simp only [Complex.normSq_apply, line, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, |
| 29 | one_re, one_im, mul_zero, sub_zero, add_zero, add_im, mul_im, mul_one, zero_add] |
| 30 | ring |
| 31 | |
| 32 | /-- A common integrable square majorant for all closed strips in the right half-plane. -/ |
| 33 | theorem diagonalVector_norm_sq_le (n : ℕ) (hn : 1 ≤ n) (x t : ℝ) (hx : 0 ≤ x) : |
| 34 | ‖diagonalVector n (line x t)‖ ^ 2 ≤ (1 + t ^ 2)⁻¹ := by |
| 35 | rw [diagonalVector_norm_sq n hn] |
| 36 | have hn' : 1 ≤ (n : ℝ) := by exact_mod_cast hn |
| 37 | have hp := Real.rpow_le_one_of_one_le_of_nonpos hn' (show -2 * x ≤ 0 by linarith) |
| 38 | have hd : 0 < (1 + x) ^ 2 + t ^ 2 := by nlinarith [sq_nonneg t] |
| 39 | calc |
| 40 | _ ≤ 1 / ((1 + x) ^ 2 + t ^ 2) := div_le_div_of_nonneg_right hp hd.le |
| 41 | _ ≤ 1 / (1 + t ^ 2) := div_le_div_of_nonneg_left zero_le_one (by positivity) (by nlinarith) |
| 42 | _ = _ := one_div _ |
| 43 | |
| 44 | /-- Holomorphy and continuity of the diagonal vector on any closed positive strip. -/ |
| 45 | theorem diagonalVector_regular {a b : ℝ} (ha : 0 ≤ a) (n : ℕ) (hn : 1 ≤ n) : |
| 46 | DifferentiableOn ℂ (diagonalVector n) (strip a b) ∧ |
| 47 | ContinuousOn (diagonalVector n) {s : ℂ | s.re ∈ Icc a b} := by |
| 48 | have hf : Differentiable ℂ (fun s : ℂ => (n : ℂ) ^ (-s)) := |
| 49 | differentiable_id.neg.const_cpow (Or.inl (by exact_mod_cast (show n ≠ 0 by omega))) |
| 50 | have hg : Differentiable ℂ (fun s : ℂ => 1 + s) := by fun_prop |
| 51 | have hne (s : ℂ) (hs : a ≤ s.re) : 1 + s ≠ 0 := by |
| 52 | intro h |
| 53 | have h' := congrArg Complex.re h |
| 54 | simp only [add_re, one_re, zero_re] at h' |
| 55 | linarith |
| 56 | exact ⟨hf.differentiableOn.div hg.differentiableOn (fun s hs => hne s hs.1.le), |
| 57 | hf.continuous.continuousOn.div hg.continuous.continuousOn (fun s hs => hne s hs.1)⟩ |
| 58 | |
| 59 | /-- The actual diagonal function belongs to the Hardy space, with both exact boundary traces. -/ |
| 60 | theorem diagonalVector_hardy_exists {a b : ℝ} (hab : a < b) (ha : 0 ≤ a) |
| 61 | (n : ℕ) (hn : 1 ≤ n) : |
| 62 | ∃ d : HardySpace a b, (∀ s ∈ strip a b, fourierLaplace d s = diagonalVector n s) ∧ |
| 63 | ((boundaryTraces hab d).1 =ᵐ[volume] fun t => diagonalVector n (line a t)) ∧ |
| 64 | ((boundaryTraces hab d).2 =ᵐ[volume] fun t => diagonalVector n (line b t)) := by |
| 65 | have hr := diagonalVector_regular (b := b) ha n hn |
| 66 | exact hardy_column_of_closedStrip_majorant hab hr.1 hr.2 |
| 67 | integrable_inv_one_add_sq (fun x hx t => diagonalVector_norm_sq_le n hn x t (ha.trans hx.1)) |
| 68 | |
| 69 | /-- The boundary square integral is evaluated exactly using the mass-one Poisson kernel. -/ |
| 70 | theorem diagonalVector_line_integral (n : ℕ) (hn : 1 ≤ n) (x : ℝ) (hx : -1 < x) : |
| 71 | (∫ t : ℝ, ‖diagonalVector n (line x t)‖ ^ 2) = |
| 72 | Real.pi * ((n : ℝ) ^ (-2 * x) / (1 + x)) := by |
| 73 | have hp : 0 < 1 + x := by linarith |
| 74 | have heq (t : ℝ) : ‖diagonalVector n (line x t)‖ ^ 2 = |
| 75 | (Real.pi * ((n : ℝ) ^ (-2 * x) / (1 + x))) * poissonKernelReal (1 + x) t := by |
| 76 | rw [diagonalVector_norm_sq n hn] |
| 77 | unfold poissonKernelReal |
| 78 | field_simp [hp.ne', Real.pi_ne_zero] |
| 79 | simp only [heq, integral_const_mul, (poissonKernelReal_integral (1 + x) hp).2, mul_one] |
| 80 | |
| 81 | /-- The choice-based diagonal vector agrees with the actual Hardy representative. -/ |
| 82 | theorem diagonalHardyVector_spec {a : ℝ} (ha : a < beta) (ha0 : 0 ≤ a) (n : ℕ) (hn : 1 ≤ n) : |
| 83 | (∀ s ∈ strip a beta, fourierLaplace (diagonalHardyVector (a := a) n) s = diagonalVector n s) ∧ |
| 84 | ((boundaryTraces ha (diagonalHardyVector (a := a) n)).1 =ᵐ[volume] |
| 85 | fun t => diagonalVector n (line a t)) ∧ |
| 86 | ((boundaryTraces ha (diagonalHardyVector (a := a) n)).2 =ᵐ[volume] |
| 87 | fun t => diagonalVector n (line beta t)) := by |
| 88 | obtain ⟨d, hd, hdl, hdr⟩ := diagonalVector_hardy_exists ha ha0 n hn |
| 89 | have he : ∃ d : HardySpace a beta, ∀ s ∈ strip a beta, |
| 90 | fourierLaplace d s = diagonalVector n s := ⟨d, hd⟩ |
| 91 | have hrep : ∀ s ∈ strip a beta, |
| 92 | fourierLaplace (diagonalHardyVector (a := a) n) s = diagonalVector n s := by |
| 93 | rw [diagonalHardyVector, dite_eq_left he] |
| 94 | exact Classical.choose_spec he |
| 95 | have heq : diagonalHardyVector (a := a) n = d := |
| 96 | fourierLaplace_injective_strip ha _ _ (fun s hs => (hrep s hs).trans (hd s hs).symm) |
| 97 | exact ⟨hrep, by simpa only [heq] using hdl, by simpa only [heq] using hdr⟩ |
| 98 | |
| 99 | /-- The exact Hardy norm of the diagonal vector, including both boundary contributions. -/ |
| 100 | theorem diagonalHardyVector_norm_sq {a : ℝ} (ha : a < beta) (ha0 : 0 ≤ a) |
| 101 | (n : ℕ) (hn : 1 ≤ n) : |
| 102 | ‖diagonalHardyVector (a := a) n‖ ^ 2 = Real.pi * |
| 103 | ((n : ℝ) ^ (-2 * a) / (1 + a) + (n : ℝ) ^ (-2 * beta) / (1 + beta)) := by |
| 104 | have hs := diagonalHardyVector_spec ha ha0 n hn |
| 105 | rw [boundaryTraces_norm_sq ha, l2_norm_sq_integral, l2_norm_sq_integral] |
| 106 | have hleft := integral_congr_ae (hs.2.1.fun_comp (fun z : ℂ => ‖z‖ ^ 2)) |
| 107 | have hright := integral_congr_ae (hs.2.2.fun_comp (fun z : ℂ => ‖z‖ ^ 2)) |
| 108 | simp only [Function.comp_def] at hleft hright |
| 109 | rw [hleft, hright, |
| 110 | diagonalVector_line_integral n hn a (by linarith), |
| 111 | diagonalVector_line_integral n hn beta (by norm_num [beta])] |
| 112 | ring |
| 113 | |
| 114 | /-- All five assertions about the diagonal vector in the audited statement of Proposition 6.5. -/ |
| 115 | theorem proposition_6_5_diagonal_vector_spec (N : ℕ) [NeZero N] (_hN : Even N) |
| 116 | (hlarge : Real.exp 10 < (N : ℝ)) (ha : alpha N < beta) (n : ℕ) (hn : 1 ≤ n) : |
| 117 | let d : HardySpace (alpha N) beta := diagonalHardyVector n |
| 118 | (∀ s ∈ strip (alpha N) beta, fourierLaplace d s = diagonalVector n s) ∧ |
| 119 | ((boundaryTraces ha d).1 =ᵐ[volume] fun t : ℝ => diagonalVector n (line (alpha N) t)) ∧ |
| 120 | ((boundaryTraces ha d).2 =ᵐ[volume] fun t : ℝ => diagonalVector n (line beta t)) ∧ |
| 121 | ‖d‖ ^ 2 = Real.pi * (Real.rpow n (-2 * alpha N) / (1 + alpha N) + |
| 122 | Real.rpow n (-2 * beta) / (1 + beta)) ∧ |
| 123 | (∀ h : HardySpace (alpha N) beta, |
| 124 | InnerProductSpace.rankOne ℂ d d h = paperInner h d • d) := by |
| 125 | have hN : 1 < (N : ℝ) := (Real.one_lt_exp_iff.mpr (by norm_num : (0 : ℝ) < 10)).trans hlarge |
| 126 | have ha0 : 0 ≤ alpha N := by unfold alpha; exact (div_pos zero_lt_one (Real.log_pos hN)).le |
| 127 | have hs := diagonalHardyVector_spec ha ha0 n hn |
| 128 | exact ⟨hs.1, hs.2.1, hs.2.2, diagonalHardyVector_norm_sq ha ha0 n hn, |
| 129 | fun _ => InnerProductSpace.rankOne_apply _ _ _⟩ |
| 130 | |
| 131 | end ConditionalGoldbach |
