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.BaselineProductLink |
| 4 | public import Mathlib.NumberTheory.Harmonic.ZetaAsymp |
| 5 | import Mathlib.Analysis.Complex.HalfPlane |
| 6 | |
| 7 | /-! The negative quadratic principal part of the continued arithmetic model. -/ |
| 8 | public section |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | open scoped BigOperators ComplexConjugate Topology |
| 13 | open Set Complex Filter |
| 14 | namespace ConditionalGoldbach |
| 15 | |
| 16 | lemma gammaQuotient_differentiableAt_zero_real {s : ℂ} (hs : s.re = 0) : |
| 17 | DifferentiableAt ℂ gammaQuotient s := by |
| 18 | have ha : 0 < ((3/2-s)/2).re := by norm_num [hs] |
| 19 | have hb : 0 < ((3/2+s)/2).re := by norm_num [hs] |
| 20 | unfold gammaQuotient |
| 21 | exact ((hasDerivAt_Gamma_of_re_pos ha).differentiableAt.comp s (by fun_prop)).div |
| 22 | ((hasDerivAt_Gamma_of_re_pos hb).differentiableAt.comp s (by fun_prop)) |
| 23 | (Gamma_ne_zero_of_re_pos hb) |
| 24 | |
| 25 | lemma gammaQuotient_imaginary_product (γ : ℝ) : |
| 26 | gammaQuotient (line 0 γ)*gammaQuotient (conj (line 0 γ)) = 1 := by |
| 27 | have he : conj (line 0 γ) = -line 0 γ := by simp [line] |
| 28 | have ha : Gamma ((3/2-line 0 γ)/2) ≠ 0 := Gamma_ne_zero_of_re_pos (by norm_num [line]) |
| 29 | have hb : Gamma ((3/2+line 0 γ)/2) ≠ 0 := Gamma_ne_zero_of_re_pos (by norm_num [line]) |
| 30 | rw [he] |
| 31 | unfold gammaQuotient |
| 32 | rw [sub_neg_eq_add,← sub_eq_add_neg] |
| 33 | rw [div_mul_div_comm,mul_comm (Gamma ((3/2+line 0 γ)/2)) (Gamma ((3/2-line 0 γ)/2)),div_self (mul_ne_zero ha hb)] |
| 34 | |
| 35 | lemma continuedModel_double_pole (N : ℕ) (hN : Even N) (hpos : 0 < N) (γ : ℝ) : |
| 36 | Tendsto (fun x : ℝ => (x:ℂ)^2*continuedModel N (line x γ) (conj (line x γ))) |
| 37 | (𝓝[>] 0) (𝓝 (-1/4:ℂ)) := by |
| 38 | let F : ℝ → ℂ := fun x => (-1/4:ℂ)*(singularSeries N:ℂ)* |
| 39 | ((Real.pi:ℂ)/N)^(2*(x:ℂ))*baselineProductR N (2*(x:ℂ))* |
| 40 | riemannZeta₁ (1+2*(x:ℂ))*riemannZeta₁ (1-2*(x:ℂ))* |
| 41 | gammaQuotient (line x γ)*gammaQuotient (conj (line x γ)) |
| 42 | have hB : ContinuousAt (baselineProductR N) 0 := |
| 43 | ((baselineProductR_differentiableOn N).differentiableAt (x := (0:ℂ)) |
| 44 | ((isOpen_re_gt (-(1/4:ℝ))).mem_nhds (show -(1/4:ℝ)<(0:ℂ).re by norm_num))).continuousAt |
| 45 | have hG : ContinuousAt gammaQuotient (line 0 γ) := |
| 46 | (gammaQuotient_differentiableAt_zero_real (s := line 0 γ) (by simp [line])).continuousAt |
| 47 | have hG' : ContinuousAt gammaQuotient (conj (line 0 γ)) := |
| 48 | (gammaQuotient_differentiableAt_zero_real (s := conj (line 0 γ)) (by simp [line])).continuousAt |
| 49 | have hbase : (Real.pi:ℂ)/(N:ℂ) ≠ 0 := div_ne_zero |
| 50 | (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero) (by exact_mod_cast hpos.ne') |
| 51 | have hF : ContinuousAt F 0 := by |
| 52 | have hcp : ContinuousAt (fun x : ℝ => ((Real.pi:ℂ)/N)^(2*(x:ℂ))) 0 := |
| 53 | (by fun_prop : ContinuousAt (fun x : ℝ => 2*(x:ℂ)) 0).const_cpow (Or.inl hbase) |
| 54 | have hBb : ContinuousAt (fun x : ℝ => baselineProductR N (2*(x:ℂ))) 0 := |
| 55 | (show ContinuousAt (baselineProductR N) (2*((0:ℝ):ℂ)) by simpa using hB).comp |
| 56 | (f := fun x : ℝ => 2*(x:ℂ)) (by fun_prop) |
| 57 | have hZp : ContinuousAt (fun x : ℝ => riemannZeta₁ (1+2*(x:ℂ))) 0 := |
| 58 | differentiable_riemannZeta₁.continuous.continuousAt.comp (by fun_prop) |
| 59 | have hZm : ContinuousAt (fun x : ℝ => riemannZeta₁ (1-2*(x:ℂ))) 0 := |
| 60 | differentiable_riemannZeta₁.continuous.continuousAt.comp (by fun_prop) |
| 61 | exact (((((continuousAt_const.mul continuousAt_const).mul hcp).mul hBb).mul hZp).mul hZm).mul |
| 62 | (hG.comp (f := fun x : ℝ => line x γ) (by unfold line; fun_prop)) |>.mul |
| 63 | (hG'.comp (f := fun x : ℝ => conj (line x γ)) (by unfold line; fun_prop)) |
| 64 | have hF0 : F 0 = (-1/4:ℂ) := by |
| 65 | dsimp [F] |
| 66 | simp only [mul_zero,sub_zero,add_zero,cpow_zero,mul_one,riemannZeta₁_one] |
| 67 | calc |
| 68 | _ = (-1/4:ℂ)*((singularSeries N:ℂ)*baselineProductR N 0)* |
| 69 | (gammaQuotient (line 0 γ)*gammaQuotient (conj (line 0 γ))) := by ring |
| 70 | _ = _ := by rw [baselineProductR_zero N hN hpos,gammaQuotient_imaginary_product]; ring |
| 71 | rw [← hF0] |
| 72 | apply hF.tendsto.mono_left nhdsWithin_le_nhds |>.congr' |
| 73 | filter_upwards [self_mem_nhdsWithin] with x hx |
| 74 | have hx0 : (x:ℂ) ≠ 0 := by exact_mod_cast (show x ≠ 0 from ne_of_gt hx) |
| 75 | have he : line x γ+conj (line x γ) = 2*(x:ℂ) := by simp [line]; ring |
| 76 | have he' : 1-line x γ-conj (line x γ) = 1-2*(x:ℂ) := by rw [sub_sub,he] |
| 77 | have hp : 1+2*(x:ℂ) ≠ (1:ℂ) := by simp [hx0] |
| 78 | have hm : 1-2*(x:ℂ) ≠ (1:ℂ) := by simp [hx0] |
| 79 | unfold continuedModel |
| 80 | rw [he,he',densityEulerProduct_eq_zeta_baseline N hN hpos (by simp; exact hx), |
| 81 | riemannZeta_eq_inv_sub_mul hp,riemannZeta_eq_inv_sub_mul hm] |
| 82 | dsimp [F] |
| 83 | simp only [add_sub_cancel_left,sub_sub_cancel_left] |
| 84 | field_simp |
| 85 | ring |
| 86 | |
| 87 | end ConditionalGoldbach |
