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.SpectralPerronGamma |
| 4 | public import ConditionalGoldbach.Proofs.SpectralPerronTruncation |
| 5 | public import ConditionalGoldbach.Proofs.CharacterPoissonComparison |
| 6 | public import ConditionalGoldbach.Proofs.CharacterAverageAssembly |
| 7 | |
| 8 | /-! The full uniform character average in Lemma 6.4. -/ |
| 9 | public section |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | open scoped BigOperators ComplexConjugate Topology |
| 14 | open MeasureTheory Filter Set Complex |
| 15 | namespace ConditionalGoldbach |
| 16 | |
| 17 | lemma reference_line_pointwise_of_gamma_bound (CΓ : ℝ) (hCΓ : 0 < CΓ) |
| 18 | (hGamma : ∀ X : ℝ, 2 ≤ X → ∀ u : ℂ, 1/2 ≤ u.re → |
| 19 | Integrable (fun τ : ℝ => smoothedPerronKernel X (line 1 (2*Real.pi*τ)) * |
| 20 | ((logDeriv Gamma ((u+line 1 (2*Real.pi*τ)+1)/2)-logDeriv Gamma ((u+1)/2))/2)) ∧ |
| 21 | ‖∫ τ : ℝ, smoothedPerronKernel X (line 1 (2*Real.pi*τ)) * |
| 22 | ((logDeriv Gamma ((u+line 1 (2*Real.pi*τ)+1)/2)-logDeriv Gamma ((u+1)/2))/2)‖ ≤ CΓ) : |
| 23 | ∃ A : ℝ, 0 < A ∧ ∀ N : ℕ, ∀ (_ : NeZero N), Even N → |
| 24 | Real.exp 10 < (N : ℝ) → GRH N → ∀ χ ∈ oddCharacters N, ∀ t : ℝ, |
| 25 | ‖logDerivative χ (line (2 / Real.log N) t)‖ ≤ A * |
| 26 | (‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1/2+line (2 / Real.log N) t)‖ + |
| 27 | Real.log ((N : ℝ)*(|t|+2))) := by |
| 28 | obtain ⟨C₂,hC₂,hcompare⟩ := zeroPoisson_logDerivative_comparison |
| 29 | refine ⟨3*(1+(CΓ+8)+C₂),by positivity,?_⟩ |
| 30 | intro N _ _ hlarge hGRH χ hχ t |
| 31 | have hN4 := (large_parameters hlarge).1 |
| 32 | have hN4R : (4 : ℝ) ≤ N := by exact_mod_cast hN4 |
| 33 | have hn : 0 < (N : ℝ) := by linarith |
| 34 | have hln : 10 < Real.log N := (Real.lt_log_iff_exp_lt hn).mpr hlarge |
| 35 | have hσ : 0 < referenceLine N := by unfold referenceLine; positivity |
| 36 | have hσ1 : referenceLine N ≤ 1 := by |
| 37 | unfold referenceLine |
| 38 | exact (div_le_one (by linarith)).mpr (by linarith) |
| 39 | have hX2 : 2 ≤ (N : ℝ)/2 := by linarith |
| 40 | have hΓ := hGamma ((N : ℝ)/2) hX2 (1/2+line (referenceLine N) t) |
| 41 | (by simp [line]; exact hσ.le) |
| 42 | have htr := smoothed_truncation_bound_of_gamma_integral hGRH χ hχ |
| 43 | (by linarith : 1 < (N : ℝ)/2) hσ t CΓ hΓ.1 hΓ.2 |
| 44 | have hlogN : Real.log (N : ℝ) ≤ Real.log ((N : ℝ)*(|t|+2)) := |
| 45 | Real.log_le_log hn (by nlinarith [abs_nonneg t]) |
| 46 | have hE : 1 ≤ Real.log ((N : ℝ)*(|t|+2)) := by linarith |
| 47 | have htr' : ‖-logDerivative χ (line (referenceLine N) t) - |
| 48 | smoothedDirichletPolynomial χ ((N : ℝ)/2) (1/2+line (referenceLine N) t)‖ ≤ |
| 49 | perronZeroCoefficient ((N : ℝ)/2) (referenceLine N) * zeroPoisson χ (referenceLine N) t + |
| 50 | (CΓ+8)*Real.log ((N : ℝ)*(|t|+2)) := by |
| 51 | apply htr.trans |
| 52 | nlinarith [mul_nonneg hCΓ.le (sub_nonneg.mpr hE)] |
| 53 | have hh := reference_logDerivative_bound_of_smoothed_truncation (CΓ+8) C₂ |
| 54 | (by positivity) hC₂.le N hlarge χ t htr' |
| 55 | (hcompare N inferInstance hN4 hGRH χ hχ (referenceLine N) t hσ hσ1) |
| 56 | simpa only [referenceLine] using hh |
| 57 | |
| 58 | lemma lemma_6_4_of_gamma_bound (CΓ : ℝ) (hCΓ : 0 < CΓ) |
| 59 | (hGamma : ∀ X : ℝ, 2 ≤ X → ∀ u : ℂ, 1/2 ≤ u.re → |
| 60 | Integrable (fun τ : ℝ => smoothedPerronKernel X (line 1 (2*Real.pi*τ)) * |
| 61 | ((logDeriv Gamma ((u+line 1 (2*Real.pi*τ)+1)/2)-logDeriv Gamma ((u+1)/2))/2)) ∧ |
| 62 | ‖∫ τ : ℝ, smoothedPerronKernel X (line 1 (2*Real.pi*τ)) * |
| 63 | ((logDeriv Gamma ((u+line 1 (2*Real.pi*τ)+1)/2)-logDeriv Gamma ((u+1)/2))/2)‖ ≤ CΓ) : |
| 64 | ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), |
| 65 | Even N → Real.exp 10 < (N : ℝ) → GRH N → ∀ σ : ℝ, 0 < σ → σ ≤ beta → |
| 66 | (∀ χ ∈ oddCharacters N, |
| 67 | Integrable (fun t : ℝ => ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2))) ∧ |
| 68 | averagedLogDerivative N σ ≤ C * (Real.log N ^ 2 + σ⁻¹ ^ 2) := by |
| 69 | obtain ⟨A,hA,hpoint⟩ := reference_line_pointwise_of_gamma_bound CΓ hCΓ hGamma |
| 70 | apply lemma_6_4_of_reference_and_comparison (reference_line_energy_of_pointwise A hA hpoint) |
| 71 | obtain ⟨C,hC,hcompare⟩ := zeroPoisson_logDerivative_comparison |
| 72 | refine ⟨C,hC,?_⟩ |
| 73 | intro N _ _ hlarge hGRH χ hχ x hx hx1 t |
| 74 | exact hcompare N inferInstance (large_parameters hlarge).1 hGRH χ hχ x t hx (by linarith) |
| 75 | |
| 76 | lemma reference_line_pointwise : ∃ A : ℝ, 0 < A ∧ ∀ N : ℕ, ∀ (_ : NeZero N), Even N → |
| 77 | Real.exp 10 < (N : ℝ) → GRH N → ∀ χ ∈ oddCharacters N, ∀ t : ℝ, |
| 78 | ‖logDerivative χ (line (2 / Real.log N) t)‖ ≤ A * |
| 79 | (‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1/2+line (2 / Real.log N) t)‖ + |
| 80 | Real.log ((N : ℝ)*(|t|+2))) := |
| 81 | reference_line_pointwise_of_gamma_bound 16 (by norm_num) |
| 82 | (fun _ hX _ hu => gamma_perron_integral_bound hX (by norm_num : (0:ℝ)<1) hu) |
| 83 | |
| 84 | theorem lemma_6_4 : ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), |
| 85 | Even N → Real.exp 10 < (N : ℝ) → GRH N → ∀ σ : ℝ, 0 < σ → σ ≤ beta → |
| 86 | (∀ χ ∈ oddCharacters N, |
| 87 | Integrable (fun t : ℝ => ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2))) ∧ |
| 88 | averagedLogDerivative N σ ≤ C * (Real.log N ^ 2 + σ⁻¹ ^ 2) := |
| 89 | lemma_6_4_of_gamma_bound 16 (by norm_num) |
| 90 | (fun _ hX _ hu => gamma_perron_integral_bound hX (by norm_num : (0:ℝ)<1) hu) |
| 91 | |
| 92 | end ConditionalGoldbach |
