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.CharacterPoissonIdentity |
| 4 | public import ConditionalGoldbach.Proofs.CharacterPoissonAnchor |
| 5 | public import ConditionalGoldbach.Proofs.CharacterHalfPlane |
| 6 | public import ConditionalGoldbach.Proofs.GammaDifference |
| 7 | public import ConditionalGoldbach.Proofs.CharacterEulerBounds |
| 8 | |
| 9 | /-! The uniform logarithmic error between the positive zero sum and the real part of L'/L. -/ |
| 10 | public section |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | open scoped BigOperators Topology |
| 15 | open Set Complex Filter |
| 16 | namespace ConditionalGoldbach |
| 17 | attribute [local instance] conductorNeZero |
| 18 | |
| 19 | lemma Gamma_halfplane_horizontal_difference {x t : ℝ} (hx : 0 < x) (hx1 : x ≤ 1) : |
| 20 | ‖logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line (3/2) t/2)‖ ≤ 6 := by |
| 21 | have hu : (1/2:ℝ) ≤ (3/4+line x t/2).re := by simp [line]; linarith |
| 22 | have hv : (1/2:ℝ) ≤ (3/4+line (3/2) t/2).re := by norm_num [line] |
| 23 | have he : (3/4+line x t/2 : ℂ)-(3/4+line (3/2) t/2) = ((x/2-3/4:ℝ):ℂ) := by |
| 24 | unfold line |
| 25 | push_cast |
| 26 | ring |
| 27 | apply (Gamma_logDeriv_difference_norm_le hu hv).trans |
| 28 | rw [he,Complex.norm_real,Real.norm_eq_abs,abs_of_nonpos (by linarith : x/2-3/4 ≤ 0)] |
| 29 | linarith |
| 30 | |
| 31 | lemma zeroPoisson_logDerivative_comparison : ∃ C : ℝ, 0 < C ∧ |
| 32 | ∀ N : ℕ, ∀ (_ : NeZero N), 4 ≤ N → GRH N → ∀χ ∈ oddCharacters N, |
| 33 | ∀ x t : ℝ, 0 < x → x ≤ 1 → |
| 34 | |zeroPoisson χ x t-(logDerivative χ (line x t)).re| ≤ |
| 35 | C*Real.log ((N:ℝ)*(|t|+2)) := by |
| 36 | obtain ⟨C,hC,hQ⟩ := zeroPoisson_anchor_bound |
| 37 | let B : ℝ := 3*(Real.log 4+4)+3 |
| 38 | have hB : 0 < B := by dsimp [B]; positivity |
| 39 | refine ⟨C+B+8,by positivity,?_⟩ |
| 40 | intro N _ hN4 hGRH χ hχ x t hx hx1 |
| 41 | have hχn := odd_character_ne_one χ (Finset.mem_filter.mp hχ).2 |
| 42 | have he := zeroPoisson_logDerivative_difference hGRH χ hχ x (3/2) t hx (by norm_num) |
| 43 | let W : ℂ := -logDerivative χ (line (3/2) t)+ |
| 44 | (logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line (3/2) t/2))/2- |
| 45 | eulerCorrection χ (1/2+line x t)+eulerCorrection χ (1/2+line (3/2) t) |
| 46 | have he' : zeroPoisson χ x t-(logDerivative χ (line x t)).re = |
| 47 | zeroPoisson χ (3/2) t+W.re := by |
| 48 | dsimp [W] |
| 49 | simp only [add_re,sub_re] at he ⊢ |
| 50 | linarith |
| 51 | have hQ0 : 0 ≤ zeroPoisson χ (3/2) t := tsum_nonneg (fun _ => by positivity) |
| 52 | have hW : ‖W‖ ≤ B+8*Real.log N := by |
| 53 | have hg := logDerivative_right_bound N χ (line (3/2) t) (by norm_num [line]) |
| 54 | have hΓ := Gamma_halfplane_horizontal_difference (t := t) hx hx1 |
| 55 | have hE := eulerCorrection_norm_le χ (u := 1/2+line x t) (by simp [line]; exact hx.le) |
| 56 | have hE' := eulerCorrection_norm_le χ (u := 1/2+line (3/2) t) (by norm_num [line]) |
| 57 | have hnorm := norm_add_le (-logDerivative χ (line (3/2) t)) |
| 58 | ((logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line (3/2) t/2))/2) |
| 59 | have hnorm' := norm_sub_le (-logDerivative χ (line (3/2) t)+ |
| 60 | (logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line (3/2) t/2))/2) |
| 61 | (eulerCorrection χ (1/2+line x t)) |
| 62 | have hnorm'' := norm_add_le (-logDerivative χ (line (3/2) t)+ |
| 63 | (logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line (3/2) t/2))/2- |
| 64 | eulerCorrection χ (1/2+line x t)) (eulerCorrection χ (1/2+line (3/2) t)) |
| 65 | simp only [norm_neg,norm_div,Complex.norm_ofNat] at hnorm |
| 66 | dsimp [W,B] |
| 67 | linarith |
| 68 | have hN : (4:ℝ) ≤ N := by exact_mod_cast hN4 |
| 69 | have hprod : (0:ℝ) < (N:ℝ)*(|t|+2) := by positivity |
| 70 | have hlog : 1 ≤ Real.log ((N:ℝ)*(|t|+2)) := by |
| 71 | apply (Real.le_log_iff_exp_le hprod).mpr |
| 72 | have hlt := Real.exp_one_lt_three |
| 73 | nlinarith [abs_nonneg t] |
| 74 | have hlogN : Real.log N ≤ Real.log ((N:ℝ)*(|t|+2)) := by |
| 75 | apply Real.log_le_log (by positivity) |
| 76 | nlinarith [abs_nonneg t] |
| 77 | rw [he'] |
| 78 | calc |
| 79 | _ ≤ |zeroPoisson χ (3/2) t|+|W.re| := abs_add_le _ _ |
| 80 | _ ≤ zeroPoisson χ (3/2) t+‖W‖ := by rw [abs_of_nonneg hQ0]; exact add_le_add_right (abs_re_le_norm W) _ |
| 81 | _ ≤ C*Real.log ((N:ℝ)*(|t|+2))+(B+8*Real.log N) := |
| 82 | add_le_add (hQ N inferInstance χ hχn t) hW |
| 83 | _ ≤ _ := by nlinarith [mul_le_mul_of_nonneg_left hlog hB.le] |
| 84 | |
| 85 | end ConditionalGoldbach |
