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.DensityEuler |
| 4 | public import ConditionalGoldbach.Proofs.BetaIdentity |
| 5 | |
| 6 | /-! Continuation of the beta model, with the original two-variable domain. -/ |
| 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 |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | lemma gammaQuotient_differentiableAt {s : ℂ} (hs : 0 < s.re) (hs' : s.re < 3 / 2) : |
| 16 | DifferentiableAt ℂ gammaQuotient s := by |
| 17 | have ha : 0 < ((3 / 2 - s) / 2).re := by simp; linarith |
| 18 | have hb : 0 < ((3 / 2 + s) / 2).re := by simp; linarith |
| 19 | unfold gammaQuotient |
| 20 | apply DifferentiableAt.div |
| 21 | · exact (Complex.hasDerivAt_Gamma_of_re_pos ha).differentiableAt.comp s (by fun_prop) |
| 22 | · exact (Complex.hasDerivAt_Gamma_of_re_pos hb).differentiableAt.comp s (by fun_prop) |
| 23 | · exact Complex.Gamma_ne_zero_of_re_pos hb |
| 24 | |
| 25 | lemma continuedModel_differentiableAt (N : ℕ) (hN : 0 < N) (p : ℂ × ℂ) |
| 26 | (hp : p ∈ analyticDomain) : |
| 27 | DifferentiableAt ℂ (fun q : ℂ × ℂ => continuedModel N q.1 q.2) p := by |
| 28 | have ho : IsOpen {w : ℂ | 0 < w.re} := isOpen_lt continuous_const Complex.continuous_re |
| 29 | have hs : 0 < (p.1 + p.2).re := by simpa only [add_re] using add_pos hp.1 hp.2.2.1 |
| 30 | have hdD : DifferentiableAt ℂ (densityEulerProduct N) (p.1 + p.2) := |
| 31 | (densityEulerProduct_differentiableOn N).differentiableAt (ho.mem_nhds hs) |
| 32 | have hD : DifferentiableAt ℂ (fun q : ℂ × ℂ => densityEulerProduct N (q.1 + q.2)) p := |
| 33 | DifferentiableAt.comp (g := densityEulerProduct N) |
| 34 | (f := fun q : ℂ × ℂ => q.1 + q.2) p hdD (by fun_prop) |
| 35 | have hz : 1 - p.1 - p.2 ≠ (1 : ℂ) := by |
| 36 | intro he |
| 37 | have hr := congrArg Complex.re he |
| 38 | simp only [sub_re, one_re] at hr |
| 39 | simp only [add_re] at hs |
| 40 | linarith |
| 41 | have hZ : DifferentiableAt ℂ (fun q : ℂ × ℂ => riemannZeta (1-q.1-q.2)) p := |
| 42 | (differentiableAt_riemannZeta hz).comp p (by fun_prop) |
| 43 | have hG1 : DifferentiableAt ℂ (fun q : ℂ × ℂ => gammaQuotient q.1) p := |
| 44 | (gammaQuotient_differentiableAt hp.1 hp.2.1).comp p (by fun_prop) |
| 45 | have hG2 : DifferentiableAt ℂ (fun q : ℂ × ℂ => gammaQuotient q.2) p := |
| 46 | (gammaQuotient_differentiableAt hp.2.2.1 hp.2.2.2).comp p (by fun_prop) |
| 47 | have hb : (Real.pi : ℂ) / N ≠ 0 := |
| 48 | div_ne_zero (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero) (by exact_mod_cast hN.ne') |
| 49 | have hP : DifferentiableAt ℂ (fun q : ℂ × ℂ => ((Real.pi : ℂ) / N) ^ (q.1 + q.2)) p := |
| 50 | (show DifferentiableAt ℂ (fun q : ℂ × ℂ => q.1 + q.2) p from by fun_prop).const_cpow (Or.inl hb) |
| 51 | unfold continuedModel |
| 52 | exact ((((hP.const_mul (singularSeries N : ℂ)).mul hD).mul hZ).mul hG1).mul hG2 |
| 53 | |
| 54 | lemma continuedModel_differentiableOn (N : ℕ) (hN : 0 < N) : |
| 55 | DifferentiableOn ℂ (fun p : ℂ × ℂ => continuedModel N p.1 p.2) analyticDomain := |
| 56 | fun p hp => (continuedModel_differentiableAt N hN p hp).differentiableWithinAt |
| 57 | |
| 58 | lemma betaModel_eq_continuedModel (N : ℕ) (hN : 0 < N) (s z : ℂ) |
| 59 | (hd : (s,z) ∈ betaDomain) : betaModel N s z = continuedModel N s z := by |
| 60 | have hw0 : 0 < (s+z).re := hd.2.2 |
| 61 | have hw1 : (s+z).re < 1 := by simp only [add_re]; linarith [hd.1, hd.2.1] |
| 62 | have hneg : ∀ n : ℕ, s+z ≠ -(n : ℂ) := by |
| 63 | intro n he |
| 64 | have hr := congrArg Complex.re he |
| 65 | simp at hr |
| 66 | have : (0 : ℝ) ≤ n := Nat.cast_nonneg n |
| 67 | simp only [add_re] at hw0 |
| 68 | linarith |
| 69 | have hne : s+z ≠ (1 : ℂ) := by intro he; simp [he] at hw1 |
| 70 | have hzeta := riemannZeta_one_sub hneg hne |
| 71 | have hN0 : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' |
| 72 | have hπ : (Real.pi : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr Real.pi_ne_zero |
| 73 | have htwo : (2 : ℂ) ≠ 0 := by norm_num |
| 74 | have hpow2 : (2 * Real.pi : ℂ)^(-(s+z)) = |
| 75 | (2 : ℂ)^(-(s+z)) * (Real.pi : ℂ)^(-(s+z)) := by |
| 76 | simpa using Complex.mul_cpow_ofReal_nonneg (by norm_num : (0 : ℝ) ≤ 2) Real.pi_pos.le (-(s+z)) |
| 77 | have hpow : ((Real.pi : ℂ) / N) ^ (s+z) * (2 * Real.pi : ℂ) ^ (-(s+z)) * 2 = |
| 78 | (N : ℂ)^(-(s+z)) * (2 : ℂ) ^ (1-(s+z)) := by |
| 79 | rw [show (N : ℂ) = ((N : ℝ) : ℂ) by norm_cast, |
| 80 | Complex.div_cpow_ofReal_nonneg Real.pi_pos.le (Nat.cast_nonneg N), |
| 81 | hpow2, |
| 82 | Complex.cpow_sub _ _ htwo, Complex.cpow_one] |
| 83 | simp only [Complex.cpow_neg] |
| 84 | field_simp [Complex.cpow_ne_zero_iff.mpr (Or.inl hπ)] |
| 85 | unfold betaModel continuedDensity continuedModel |
| 86 | rw [betaKernel_gamma_identity s z hd, |
| 87 | show 1-s-z = 1-(s+z) by ring, hzeta] |
| 88 | linear_combination |
| 89 | -(singularSeries N : ℂ) * densityEulerProduct N (s+z) * riemannZeta (s+z) * |
| 90 | Gamma (s+z) * Complex.cos (Real.pi*(s+z)/2) * gammaQuotient s * gammaQuotient z * hpow |
| 91 | |
| 92 | theorem proposition_4_4 (N : ℕ) (_hN : Even N) (hN4 : 4 ≤ N) : |
| 93 | (∀ s z : ℂ, (s, z) ∈ betaDomain → betaModel N s z = continuedModel N s z) ∧ |
| 94 | DifferentiableOn ℂ (fun p : ℂ × ℂ => continuedModel N p.1 p.2) analyticDomain := by |
| 95 | exact ⟨fun s z hd => betaModel_eq_continuedModel N (by omega) s z hd, |
| 96 | continuedModel_differentiableOn N (by omega)⟩ |
| 97 | |
| 98 | end ConditionalGoldbach |
