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.FiniteMellin |
| 4 | public import ConditionalGoldbach.Proofs.MellinProjection |
| 5 | |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology ContDiff |
| 11 | open MeasureTheory Filter Set Complex |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | theorem finite_mellin_inversion_hasSum {ι : Type*} [Countable ι] |
| 15 | (f : ℝ → ℝ) (hf : ContDiff ℝ 2 f) (l r : ℝ) (hsupp : Function.support f ⊆ Icc l r) (σ : ℝ) (hσ : 0<σ) (u : ι → ℝ) (b : ι → ℂ) |
| 16 | (hu : ∀ i, 0 < u i) |
| 17 | (hb : Summable (fun i => ‖b i‖ * Real.rpow (u i) (-σ))) : |
| 18 | HasSum (fun i => b i * (f (u i) : ℂ)) |
| 19 | (verticalMellin σ (fun s => ∑' i, b i * mellin (fun u => (f u:ℂ)) s * (u i : ℂ) ^ (-s))) := by |
| 20 | let F : ι → ℝ → ℂ := fun i t => |
| 21 | b i * mellin (fun u => (f u:ℂ)) (line σ t) * (u i : ℂ) ^ (-line σ t) |
| 22 | let B : ι → ℝ → ℝ := fun i t => |
| 23 | (‖b i‖ * Real.rpow (u i) (-σ)) * ‖mellin (fun u => (f u:ℂ)) (line σ t)‖ |
| 24 | have hint (i : ι) : Integrable (F i) := by |
| 25 | simpa only [F, mul_assoc] using |
| 26 | (compact_mellin_finite_inversion_integrable f hf l r hsupp σ hσ (u i) (hu i)).const_mul (b i) |
| 27 | have heq (i : ι) (t : ℝ) : ‖F i t‖ = B i t := by |
| 28 | simp only [F, B, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (hu i)] |
| 29 | simp only [line, neg_re, add_re, ofReal_re, mul_re, ofReal_im, |
| 30 | I_re, I_im, mul_zero, zero_mul, sub_self, add_zero] |
| 31 | rw [Real.rpow_eq_pow] |
| 32 | ring |
| 33 | have hBi : Integrable (fun t => ∑' i, B i t) := by |
| 34 | simp only [B, tsum_mul_right] |
| 35 | exact (compact_mellin_finite_verticalIntegrable f hf l r hsupp σ hσ).norm.const_mul _ |
| 36 | have h := hasSum_integral_of_dominated_convergence B |
| 37 | (fun i => (hint i).aestronglyMeasurable) |
| 38 | (fun i => Eventually.of_forall (fun t => (heq i t).le)) |
| 39 | (Eventually.of_forall (fun t => hb.mul_right _)) hBi |
| 40 | (Eventually.of_forall (fun t => |
| 41 | (Summable.of_norm (by simpa only [heq] using hb.mul_right ‖mellin (fun u => (f u:ℂ)) (line σ t)‖)).hasSum)) |
| 42 | have hscaled := h.mul_left ((2 * (Real.pi : ℂ))⁻¹) |
| 43 | convert hscaled using 1 |
| 44 | · ext i |
| 45 | rw [compact_mellin_finite_inversion f hf l r hsupp σ hσ (u i) (hu i)] |
| 46 | simp only [verticalMellin, F, mul_assoc, integral_const_mul] |
| 47 | ring |
| 48 | · rfl |
| 49 | |
| 50 | |
| 51 | |
| 52 | theorem finite_mellin_inversion_sum_integrable {ι : Type*} [Countable ι] |
| 53 | (f : ℝ → ℝ) (hf : ContDiff ℝ 2 f) (l r : ℝ) (hsupp : Function.support f ⊆ Icc l r) (σ : ℝ) (hσ : 0<σ) (u : ι → ℝ) (b : ι → ℂ) |
| 54 | (hu : ∀ i, 0 < u i) |
| 55 | (hb : Summable (fun i => ‖b i‖ * Real.rpow (u i) (-σ))) : |
| 56 | Integrable (fun t : ℝ => ∑' i, |
| 57 | b i * mellin (fun u => (f u:ℂ)) (line σ t) * (u i : ℂ) ^ (-line σ t)) := by |
| 58 | let F : ι → ℝ → ℂ := fun i t => |
| 59 | b i * mellin (fun u => (f u:ℂ)) (line σ t) * (u i : ℂ) ^ (-line σ t) |
| 60 | have hint (i : ι) : Integrable (F i) := by |
| 61 | simpa only [F, mul_assoc] using |
| 62 | (compact_mellin_finite_inversion_integrable f hf l r hsupp σ hσ (u i) (hu i)).const_mul (b i) |
| 63 | have hnorm (i : ι) (t : ℝ) : ‖F i t‖ = |
| 64 | (‖b i‖ * Real.rpow (u i) (-σ)) * ‖mellin (fun u => (f u:ℂ)) (line σ t)‖ := by |
| 65 | simp only [F, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (hu i)] |
| 66 | simp only [line, neg_re, add_re, ofReal_re, mul_re, ofReal_im, |
| 67 | I_re, I_im, mul_zero, zero_mul, sub_self, add_zero, Real.rpow_eq_pow] |
| 68 | ring |
| 69 | apply ((compact_mellin_finite_verticalIntegrable f hf l r hsupp σ hσ).norm.const_mul |
| 70 | (∑' i, ‖b i‖ * Real.rpow (u i) (-σ))).mono' |
| 71 | (AEStronglyMeasurable.tsum (fun i => (hint i).aestronglyMeasurable)) |
| 72 | filter_upwards [] with t |
| 73 | have hs : Summable (fun i => ‖F i t‖) := by |
| 74 | simpa only [hnorm] using hb.mul_right ‖mellin (fun u => (f u:ℂ)) (line σ t)‖ |
| 75 | calc |
| 76 | ‖∑' i, F i t‖ ≤ ∑' i, ‖F i t‖ := norm_tsum_le_tsum_norm hs |
| 77 | _ = _ := by simp only [hnorm, tsum_mul_right, line] |
| 78 | |
| 79 | |
| 80 | lemma finite_character_mellin_series {N : ℕ} [NeZero N] (χ : Character N) |
| 81 | (f : ℝ → ℝ) (s : ℂ) (hs : 1 / 2 < s.re) : |
| 82 | (∑' n : ℕ, ((mangoldt (n + 1) : ℂ) * χ (n + 1) / |
| 83 | (n + 1 : ℕ) ^ (1 / 2 : ℂ)) * mellin (fun u => (f u:ℂ)) s * |
| 84 | (((n + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-s)) = |
| 85 | -((N : ℂ) ^ s * mellin (fun u => (f u:ℂ)) s * logDerivative χ s) := by |
| 86 | rw [logDerivative_eq_neg_tsum χ hs, mul_neg, neg_neg, |
| 87 | (summable_logDerivative_terms χ hs).tsum_eq_zero_add] |
| 88 | simp only [mangoldt, ArithmeticFunction.map_zero, |
| 89 | Complex.ofReal_zero, zero_mul, zero_div, zero_add] |
| 90 | rw [← tsum_mul_left] |
| 91 | apply tsum_congr |
| 92 | intro n |
| 93 | calc |
| 94 | _ = mellin (fun u => (f u:ℂ)) s * |
| 95 | (((mangoldt (n + 1) : ℂ) * χ (n + 1) / |
| 96 | (n + 1 : ℕ) ^ (1 / 2 : ℂ)) * |
| 97 | (((n + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-s)) := by ring |
| 98 | _ = _ := by |
| 99 | rw [mellin_dirichlet_rescale (n + 1) N (by omega) (NeZero.pos _)] |
| 100 | push_cast |
| 101 | ring |
| 102 | |
| 103 | lemma finite_character_mellin_initial_integrable {N : ℕ} [NeZero N] |
| 104 | (χ : Character N) (f : ℝ → ℝ) (hf : ContDiff ℝ 2 f) (l r : ℝ) |
| 105 | (hsupp : Function.support f ⊆ Icc l r) (σ : ℝ) (hσ : 1/2<σ) : |
| 106 | Integrable (fun t : ℝ => (N:ℂ)^(line σ t)*mellin (fun u => (f u:ℂ)) (line σ t)*logDerivative χ (line σ t)) := by |
| 107 | have hint := finite_mellin_inversion_sum_integrable f hf l r hsupp σ (by linarith) |
| 108 | (fun n : ℕ => (n+1:ℕ)/(N:ℝ)) |
| 109 | (fun n : ℕ => (mangoldt (n+1):ℂ)*χ (n+1)/(n+1:ℕ)^(1/2:ℂ)) |
| 110 | (fun n => by have := NeZero.pos N; positivity) (character_mellin_coeff_summable χ σ hσ) |
| 111 | convert hint.neg using 1 |
| 112 | ext t |
| 113 | simp only [Pi.neg_apply] |
| 114 | rw [finite_character_mellin_series χ f (line σ t) (by simpa [line] using hσ),neg_neg] |
| 115 | |
| 116 | end ConditionalGoldbach |
