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.CharacterTraceBounds |
| 4 | |
| 5 | /-! The arithmetic positive-trace construction on every positive Hardy strip. -/ |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open MeasureTheory Filter Set Complex InnerProductSpace |
| 11 | open scoped Topology ComplexConjugate BigOperators |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | lemma characterHardyFunction_representation_on_strip (N : ℕ) [NeZero N] |
| 15 | (hN4 : 4 ≤ N) (hGRH : GRH N) {a : ℝ} (ha0 : 0 < a) (ha : a < beta) |
| 16 | (χ : Character N) (hχ : χ ∈ oddCharacters N) : |
| 17 | ∃ g : HardySpace (a) beta, |
| 18 | (∀ s ∈ strip (a) beta, fourierLaplace g s = characterHardyFunction χ s) ∧ |
| 19 | ((boundaryTraces ha g).1 =ᵐ[volume] fun t => characterHardyFunction χ (line (a) t)) ∧ |
| 20 | ((boundaryTraces ha g).2 =ᵐ[volume] fun t => characterHardyFunction χ (line beta t)) := by |
| 21 | obtain ⟨L, hLp, hbound⟩ := logDerivative_uniform_bound a beta ha0 ha.le |
| 22 | have hL := hLp.le |
| 23 | have hlog : ∀ χ ∈ oddCharacters N, ∀ s : ℂ, s.re ∈ Icc a beta → |
| 24 | ‖logDerivative χ s‖ ≤ L * Real.log (N * (|s.im| + 2)) ^ 2 := by |
| 25 | intro χ hχ s hs |
| 26 | have hh := hbound N inferInstance hN4 hGRH χ |
| 27 | (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) s.re hs s.im |
| 28 | have he : line s.re s.im = s := by apply Complex.ext <;> simp [line] |
| 29 | simpa only [he] using hh |
| 30 | let A : ℝ := L * (64 * (2 * N) ^ (1 / 4 : ℝ)) |
| 31 | have hA : 0 ≤ A := by dsimp [A]; positivity |
| 32 | have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast (show 1 ≤ N by omega) |
| 33 | have hd (s : ℂ) (hs : s.re ∈ Icc (a) beta) := |
| 34 | characterHardyFunction_differentiableAt hGRH χ hχ (ha0.trans_le hs.1) |
| 35 | apply hardy_column_of_closedStrip_majorant ha |
| 36 | (fun s hs => (hd s ⟨hs.1.le, hs.2.le⟩).differentiableWithinAt) |
| 37 | (fun s hs => (hd s hs).continuousAt.continuousWithinAt) |
| 38 | (hardy_decay_integrable.const_mul (4 * A ^ 2)) |
| 39 | intro x hx t |
| 40 | apply weighted_line_square_bound (ha0.le.trans hx.1) t A hA |
| 41 | have hx' : (line x t).re ∈ Icc (a) beta := by simpa [line] using hx |
| 42 | have hh := hlog χ hχ (line x t) hx' |
| 43 | simp only [line, Complex.add_im, Complex.ofReal_im, Complex.mul_im, |
| 44 | Complex.ofReal_re, Complex.I_re, Complex.I_im, mul_one, mul_zero, add_zero, zero_add] at hh |
| 45 | apply hh.trans |
| 46 | calc |
| 47 | L * Real.log (N * (|t| + 2)) ^ 2 ≤ |
| 48 | L * ((64 * (2 * N) ^ (1 / 4 : ℝ)) * (1 + |t|) ^ (1 / 4 : ℝ)) := |
| 49 | mul_le_mul_of_nonneg_left (logarithm_square_le_quarter_power hN1 t) hL |
| 50 | _ = A * (1 + |t|) ^ (1 / 4 : ℝ) := by dsimp [A]; ring |
| 51 | |
| 52 | lemma arithmeticOperator_positive_trace_formula_on_strip (N : ℕ) [NeZero N] |
| 53 | (hN4 : 4 ≤ N) (hGRH : GRH N) {a : ℝ} (ha0 : 0 < a) (ha : a < beta) : |
| 54 | IsPositiveTraceClass (arithmeticOperator ha N) ∧ |
| 55 | positiveTrace (arithmeticOperator ha N) = |
| 56 | (2 / N.totient : ℝ) * ∑ χ ∈ oddCharacters N, |
| 57 | ((∫ t : ℝ, ‖characterHardyFunction χ (line (a) t)‖ ^ 2) + |
| 58 | ∫ t : ℝ, ‖characterHardyFunction χ (line beta t)‖ ^ 2) := by |
| 59 | classical |
| 60 | let ι := {χ : Character N // χ ∈ oddCharacters N} |
| 61 | have hgex (χ : ι) := characterHardyFunction_representation_on_strip N hN4 hGRH ha0 ha χ.val χ.property |
| 62 | choose g hg hgl hgr using hgex |
| 63 | let c : ℝ := 2 / N.totient |
| 64 | have hc : 0 ≤ c := by dsimp [c]; positivity |
| 65 | let v : ι → HardySpace (a) beta := fun χ => (Real.sqrt c : ℂ) • g χ |
| 66 | let f : ι → ℂ → ℂ := fun χ s => (Real.sqrt c : ℂ) * characterHardyFunction χ.val s |
| 67 | have hvf (χ : ι) (s : ℂ) (hs : s ∈ strip (a) beta) : fourierLaplace (v χ) s = f χ s := by |
| 68 | dsimp only [v] |
| 69 | rw [fourierLaplace_smul _ _ hs, hg χ s hs] |
| 70 | have hvl (χ : ι) : (boundaryTraces ha (v χ)).1 =ᵐ[volume] fun t => f χ (line (a) t) := by |
| 71 | dsimp only [v] |
| 72 | rw [boundaryTraces_smul] |
| 73 | filter_upwards [Lp.coeFn_smul (Real.sqrt c : ℂ) (boundaryTraces ha (g χ)).1, hgl χ] with t ht hg |
| 74 | change ((Real.sqrt c : ℂ) • (boundaryTraces ha (g χ)).1) t = _ |
| 75 | rw [ht, Pi.smul_apply, smul_eq_mul, hg] |
| 76 | have hvr (χ : ι) : (boundaryTraces ha (v χ)).2 =ᵐ[volume] fun t => f χ (line beta t) := by |
| 77 | dsimp only [v] |
| 78 | rw [boundaryTraces_smul] |
| 79 | filter_upwards [Lp.coeFn_smul (Real.sqrt c : ℂ) (boundaryTraces ha (g χ)).2, hgr χ] with t ht hg |
| 80 | change ((Real.sqrt c : ℂ) • (boundaryTraces ha (g χ)).2) t = _ |
| 81 | rw [ht, Pi.smul_apply, smul_eq_mul, hg] |
| 82 | have hc_cast : (c : ℂ) = (2 : ℂ) / N.totient := by dsimp [c]; push_cast; rfl |
| 83 | have hc_sq : (Real.sqrt c : ℂ) ^ 2 = (c : ℂ) := by rw [← Complex.ofReal_pow, Real.sq_sqrt hc] |
| 84 | have hgram (s z : ℂ) : weightedAnalyticKernel (characterKernel N) s z = ∑ χ : ι, f χ s * conj (f χ z) := by |
| 85 | dsimp only [f, weightedAnalyticKernel, characterHardyFunction] |
| 86 | rw [Finset.sum_coe_sort (oddCharacters N) (fun χ : Character N => |
| 87 | (Real.sqrt c : ℂ) * (logDerivative χ s / (1 + s)) * |
| 88 | conj ((Real.sqrt c : ℂ) * (logDerivative χ z / (1 + z))))] |
| 89 | simp only [characterKernel, Complex.conj_conj] |
| 90 | rw [Finset.mul_sum, Finset.sum_div] |
| 91 | apply Finset.sum_congr rfl |
| 92 | intro χ hχ |
| 93 | rw [map_mul, Complex.conj_ofReal, map_div₀, map_add, map_one] |
| 94 | calc |
| 95 | (2 / (N.totient : ℂ) * (logDerivative χ s * conj (logDerivative χ z))) / |
| 96 | ((1 + s) * (1 + conj z)) = |
| 97 | (Real.sqrt c : ℂ) ^ 2 * (logDerivative χ s / (1 + s)) * |
| 98 | (conj (logDerivative χ z) / (1 + conj z)) := by |
| 99 | rw [hc_sq, hc_cast] |
| 100 | simp only [div_eq_mul_inv, mul_inv_rev] |
| 101 | ring |
| 102 | _ = _ := by ring |
| 103 | have hrep := hardyFiniteGram_represents ha N v f (weightedAnalyticKernel (characterKernel N)) hvf hvl hvr hgram |
| 104 | have he : arithmeticOperator ha N = ∑ χ : ι, rankOne ℂ (v χ) (v χ) := |
| 105 | kernelOperator_eq_of_represents ha N hrep |
| 106 | have ht := rankOne_tsum_positiveTraceClass v (hasSum_fintype (fun χ : ι => ‖v χ‖ ^ 2)).summable |
| 107 | (Classical.choice (hardySpace_exists_nat_hilbertBasis (a) beta)) |
| 108 | rw [tsum_fintype, tsum_fintype] at ht |
| 109 | refine ⟨he ▸ ht.1, ?_⟩ |
| 110 | rw [he, ht.2] |
| 111 | have hnorm (χ : ι) : ‖v χ‖ ^ 2 = c * |
| 112 | ((∫ t : ℝ, ‖characterHardyFunction χ.val (line (a) t)‖ ^ 2) + |
| 113 | ∫ t : ℝ, ‖characterHardyFunction χ.val (line beta t)‖ ^ 2) := by |
| 114 | dsimp only [v] |
| 115 | rw [norm_smul, mul_pow, Complex.norm_real, Real.norm_eq_abs, |
| 116 | abs_of_nonneg (Real.sqrt_nonneg _), Real.sq_sqrt hc, boundaryTraces_norm_sq ha (g χ), |
| 117 | l2_norm_sq_integral, l2_norm_sq_integral] |
| 118 | congr 1 |
| 119 | apply congrArg₂ (· + ·) |
| 120 | · exact integral_congr_ae ((hgl χ).fun_comp (fun z : ℂ => ‖z‖ ^ 2)) |
| 121 | · exact integral_congr_ae ((hgr χ).fun_comp (fun z : ℂ => ‖z‖ ^ 2)) |
| 122 | simp_rw [hnorm] |
| 123 | rw [← Finset.mul_sum, Finset.sum_coe_sort (oddCharacters N) (fun χ : Character N => |
| 124 | (∫ t : ℝ, ‖characterHardyFunction χ (line (a) t)‖ ^ 2) + |
| 125 | ∫ t : ℝ, ‖characterHardyFunction χ (line beta t)‖ ^ 2)] |
| 126 | |
| 127 | lemma arithmeticOperator_trace_le_averages_on_strip (N : ℕ) [NeZero N] |
| 128 | (hN4 : 4 ≤ N) (hGRH : GRH N) {a : ℝ} (ha0 : 0 < a) (ha : a < beta) : |
| 129 | IsPositiveTraceClass (arithmeticOperator ha N) ∧ |
| 130 | hsNorm (arithmeticOperator ha N) ≤ positiveTrace (arithmeticOperator ha N) ∧ |
| 131 | positiveTrace (arithmeticOperator ha N) ≤ |
| 132 | averagedLogDerivative N (a) + averagedLogDerivative N beta := by |
| 133 | obtain ⟨hp, htrace⟩ := arithmeticOperator_positive_trace_formula_on_strip N hN4 hGRH ha0 ha |
| 134 | refine ⟨hp, hp.hsNorm_le_trace, ?_⟩ |
| 135 | rw [htrace, averagedLogDerivative, averagedLogDerivative, ← mul_add, ← Finset.sum_add_distrib] |
| 136 | apply mul_le_mul_of_nonneg_left _ (by positivity) |
| 137 | apply Finset.sum_le_sum |
| 138 | intro χ hχ |
| 139 | exact add_le_add |
| 140 | (characterHardyFunction_energy_le N hN4 hGRH χ hχ (a) ha0) |
| 141 | (characterHardyFunction_energy_le N hN4 hGRH χ hχ beta (by norm_num [beta])) |
| 142 | |
| 143 | lemma arithmeticOperator_trace_bound_of_average_on_strip (N : ℕ) [NeZero N] |
| 144 | (hN4 : 4 ≤ N) (hGRH : GRH N) {a : ℝ} (ha0 : 0 < a) (ha : a < beta) |
| 145 | (C : ℝ) (hC : 0 ≤ C) |
| 146 | (haverage : ∀ σ : ℝ, 0 < σ → σ ≤ beta → |
| 147 | averagedLogDerivative N σ ≤ C * (Real.log N ^ 2 + σ⁻¹ ^ 2)) : |
| 148 | IsPositiveTraceClass (arithmeticOperator ha N) ∧ |
| 149 | hsNorm (arithmeticOperator ha N) ≤ positiveTrace (arithmeticOperator ha N) ∧ |
| 150 | positiveTrace (arithmeticOperator ha N) ≤ 2 * C * (Real.log N ^ 2 + (a)⁻¹ ^ 2) := by |
| 151 | obtain ⟨hp, hhs, hb⟩ := arithmeticOperator_trace_le_averages_on_strip N hN4 hGRH ha0 ha |
| 152 | refine ⟨hp, hhs, hb.trans ?_⟩ |
| 153 | have hi : beta⁻¹ ≤ (a)⁻¹ := by |
| 154 | simpa only [one_div] using one_div_le_one_div_of_le ha0 ha.le |
| 155 | have hisq := (sq_le_sq₀ (by norm_num [beta] : (0 : ℝ) ≤ beta⁻¹) (by positivity)).mpr hi |
| 156 | have hA := haverage (a) ha0 ha.le |
| 157 | have hB := haverage beta (by norm_num [beta]) le_rfl |
| 158 | have hm := mul_le_mul_of_nonneg_left hisq hC |
| 159 | nlinarith |
| 160 | |
| 161 | end ConditionalGoldbach |
