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.LogDerivativeDisk |
| 4 | public import ConditionalGoldbach.Proofs.CharacterGrowthFoundation |
| 5 | |
| 6 | /-! The GRH logarithmic-derivative bound obtained from zero-free disks, independently of Hadamard products. -/ |
| 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 Metric |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | /-- The disk estimate with its dependence on the distance from the critical line. -/ |
| 16 | lemma logDerivative_disk_strip_bound (δ M : ℝ) (hδ : 0 < δ) (hM : δ ≤ M) : |
| 17 | ∀ N : ℕ, ∀ (_ : NeZero N), 4 ≤ N → GRH N → |
| 18 | ∀ χ : Character N, χ ≠ 1 → ∀ σ ∈ Icc δ M, ∀ t : ℝ, |
| 19 | ‖logDerivative χ (line σ t)‖ ≤ |
| 20 | (8 * (M+5/2-δ/2) / (δ/2)^2 * (2*(4*M+13)+1)) * Real.log (N*(|t|+2))^2 := by |
| 21 | let R : ℝ := M+5/2-δ/2 |
| 22 | let r : ℝ := M+5/2-δ |
| 23 | let A : ℝ := 4*M+13 |
| 24 | let K : ℝ := 8*R/(R-r)^2 |
| 25 | have hMpos : 0 < M := hδ.trans_le hM |
| 26 | have hr : 0 ≤ r := by dsimp [r]; linarith |
| 27 | have hrR : r < R := by dsimp [r,R]; linarith |
| 28 | have hR : 0 < R := hr.trans_lt hrR |
| 29 | have hA : 0 < A := by dsimp [A]; positivity |
| 30 | have hK : 0 < K := by dsimp [K]; positivity |
| 31 | intro N _ hN hGRH χ hχ σ hσ t |
| 32 | have hNr : (4 : ℝ) ≤ N := by exact_mod_cast hN |
| 33 | have hNpos : 0 < (N : ℝ) := by linarith |
| 34 | let X : ℝ := (N : ℝ)*(|t|+2) |
| 35 | have hX : 8 ≤ X := by |
| 36 | dsimp only [X] |
| 37 | nlinarith only [hNr, mul_nonneg hNpos.le (abs_nonneg t)] |
| 38 | have hXpos : 0 < X := by linarith |
| 39 | let c : ℂ := ((M+3 : ℝ) : ℂ)+(t : ℂ)*I |
| 40 | let f : ℂ → ℂ := fun u => χ.LFunction (c+u) |
| 41 | let z : ℂ := 1/2+line σ t-c |
| 42 | have hcre : c.re = M+3 := by simp [c] |
| 43 | have hcnorm : ‖c‖ ≤ M+3+|t| := by |
| 44 | apply (norm_add_le _ _).trans |
| 45 | simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, norm_I, mul_one] |
| 46 | rw [abs_of_pos (by linarith : 0 < M+3)] |
| 47 | have hF : AnalyticOnNhd ℂ f (ball 0 R) := by |
| 48 | intro u _ |
| 49 | exact ((χ.differentiable_LFunction hχ).analyticAt _).comp |
| 50 | (analyticAt_const.add analyticAt_id) |
| 51 | have hright (u : ℂ) (hu : u ∈ ball (0 : ℂ) R) : 1/2 < (c+u).re := by |
| 52 | have hn := mem_ball_zero_iff.mp hu |
| 53 | have hre : -‖u‖ ≤ u.re := by |
| 54 | have hh := (neg_le_abs u.re).trans (Complex.abs_re_le_norm u) |
| 55 | linarith |
| 56 | rw [add_re,hcre] |
| 57 | dsimp [R] at hn |
| 58 | linarith |
| 59 | have hnon (u : ℂ) (hu : u ∈ ball (0 : ℂ) R) : f u ≠ 0 := |
| 60 | LFunction_ne_zero_of_GRH hGRH χ hχ (hright u hu) |
| 61 | have hflower : (1/2 : ℝ) ≤ ‖f 0‖ := by |
| 62 | simpa only [f,add_zero] using LFunction_right_lower_bound χ c (by rw [hcre]; linarith) |
| 63 | have hupper (u : ℂ) (hu : u ∈ ball (0 : ℂ) R) : ‖f u‖ ≤ A*X := by |
| 64 | have hp := hright u hu |
| 65 | have hpoly := LFunction_polynomial_bound χ hχ (c+u) (by linarith) |
| 66 | have hinv : ‖c+u‖/(c+u).re ≤ 2*‖c+u‖ := by |
| 67 | have h := div_le_div_of_nonneg_left (norm_nonneg (c+u)) (by norm_num : (0 : ℝ) < 1/2) hp.le |
| 68 | convert h using 1; ring |
| 69 | have hnorm := norm_add_le c u |
| 70 | have hunorm := mem_ball_zero_iff.mp hu |
| 71 | have hscl : 1+2*‖c+u‖ ≤ A*(|t|+2) := by |
| 72 | dsimp only [A] |
| 73 | dsimp only [R] at hunorm |
| 74 | nlinarith only [hnorm, hcnorm, hunorm, hδ, hMpos, abs_nonneg t, |
| 75 | mul_nonneg hMpos.le (abs_nonneg t)] |
| 76 | calc |
| 77 | ‖f u‖ ≤ (N : ℝ)*(1+‖c+u‖/(c+u).re) := hpoly |
| 78 | _ ≤ (N : ℝ)*(A*(|t|+2)) := mul_le_mul_of_nonneg_left (by linarith) hNpos.le |
| 79 | _ = A*X := by dsimp [X]; ring |
| 80 | have hz : ‖z‖ ≤ r := by |
| 81 | have he : z = ((σ-M-5/2 : ℝ) : ℂ) := by dsimp [z,c,line]; push_cast; ring |
| 82 | rw [he, Complex.norm_real, Real.norm_eq_abs, abs_of_nonpos (by linarith [hσ.2])] |
| 83 | dsimp [r] |
| 84 | linarith [hσ.1] |
| 85 | have hU : (1/2 : ℝ) < A*X := by |
| 86 | dsimp only [A] |
| 87 | nlinarith only [hX, mul_nonneg hMpos.le hXpos.le] |
| 88 | have hb := logDerivative_disk_bound f R r (A*X) (1/2) hR hr hrR (by norm_num) hU |
| 89 | hF hnon hflower hupper z hz |
| 90 | have hdf : deriv f z = deriv χ.LFunction (1/2+line σ t) := by |
| 91 | have hh := ((χ.differentiable_LFunction hχ (c+z)).hasDerivAt).comp z |
| 92 | ((hasDerivAt_id z).const_add c) |
| 93 | have he : c+z = 1/2+line σ t := by dsimp [z]; ring |
| 94 | simpa only [f,Function.comp_def,he,mul_one] using hh.deriv |
| 95 | have hfz : f z = χ.LFunction (1/2+line σ t) := by dsimp [f,z]; congr 1; ring |
| 96 | rw [hdf,hfz] at hb |
| 97 | change ‖logDerivative χ (line σ t)‖ ≤ K*Real.log (A*X/(1/2)) at hb |
| 98 | have hlog : 1 ≤ Real.log X := by |
| 99 | apply (Real.le_log_iff_exp_le hXpos).mpr |
| 100 | exact (Real.exp_one_lt_three.le).trans (by linarith) |
| 101 | have hlogbound : Real.log (A*X/(1/2)) ≤ (2*A+1)*Real.log X^2 := by |
| 102 | rw [show A*X/(1/2) = (2*A)*X by ring, |
| 103 | Real.log_mul (by positivity : 2*A ≠ 0) hXpos.ne'] |
| 104 | have hlogA : Real.log (2*A) ≤ 2*A := by |
| 105 | have h := Real.log_le_sub_one_of_pos (by positivity : 0 < 2*A) |
| 106 | linarith |
| 107 | have hlogA' : Real.log (2*A) ≤ (2*A)*Real.log X := |
| 108 | hlogA.trans (le_mul_of_one_le_right (by positivity) hlog) |
| 109 | have hlogpow : Real.log X ≤ Real.log X^2 := by nlinarith only [hlog] |
| 110 | calc |
| 111 | _ ≤ (2*A+1)*Real.log X := by linarith |
| 112 | _ ≤ _ := mul_le_mul_of_nonneg_left hlogpow (by positivity) |
| 113 | calc |
| 114 | _ ≤ K * ((2*A+1) * Real.log X^2) := |
| 115 | hb.trans (mul_le_mul_of_nonneg_left hlogbound hK.le) |
| 116 | _ = _ := by |
| 117 | dsimp only [K] |
| 118 | rw [show R-r = δ/2 by dsimp [R,r]; ring] |
| 119 | dsimp only [R,A,X] |
| 120 | ring |
| 121 | |
| 122 | lemma logDerivative_uniform_bound (δ M : ℝ) (hδ : 0 < δ) (hM : δ ≤ M) : |
| 123 | ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), 4 ≤ N → GRH N → |
| 124 | ∀ χ : Character N, χ ≠ 1 → ∀ σ ∈ Icc δ M, ∀ t : ℝ, |
| 125 | ‖logDerivative χ (line σ t)‖ ≤ C * Real.log (N*(|t|+2))^2 := by |
| 126 | have hR : 0 < M+5/2-δ/2 := by linarith |
| 127 | have hMpos := hδ.trans_le hM |
| 128 | exact ⟨8 * (M+5/2-δ/2) / (δ/2)^2 * (2*(4*M+13)+1), by positivity, |
| 129 | logDerivative_disk_strip_bound δ M hδ hM⟩ |
| 130 | |
| 131 | end ConditionalGoldbach |
