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.HadamardLimit |
| 4 | public import ConditionalGoldbach.Proofs.CharacterGammaFactor |
| 5 | public import ConditionalGoldbach.Proofs.CharacterEulerCorrection |
| 6 | public import ConditionalGoldbach.Proofs.CharacterGrowth |
| 7 | |
| 8 | /-! The paper's complete logarithmic-derivative expansion, with its primitive zeros and Euler corrections. -/ |
| 9 | public section |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | open scoped BigOperators ComplexConjugate Topology |
| 14 | open Set Complex Metric Filter |
| 15 | namespace ConditionalGoldbach |
| 16 | attribute [local instance] conductorNeZero |
| 17 | |
| 18 | lemma logDerivative_zero_expansion {N : ℕ} [NeZero N] (hGRH : GRH N) |
| 19 | (χ : Character N) (hχ : χ ∈ oddCharacters N) (s : ℂ) (hs : 0 < s.re) : |
| 20 | logDerivative χ s = zeroDifference χ.primitiveCharacter (1/2+s) 2 + |
| 21 | deriv χ.LFunction 2/χ.LFunction 2 - |
| 22 | (deriv Gamma (3/4+s/2)/Gamma (3/4+s/2)-deriv Gamma (3/2)/Gamma (3/2))/2 + |
| 23 | eulerCorrection χ (1/2+s)-eulerCorrection χ 2 := by |
| 24 | have hodd := (Finset.mem_filter.mp hχ).2 |
| 25 | have hχn := odd_character_ne_one χ hodd |
| 26 | have hχp := primitiveCharacter_ne_one_of_ne_one χ hχn |
| 27 | have hoddp := primitiveCharacter_odd χ hodd |
| 28 | have hu : 0 < (1/2+s).re := by norm_num; linarith |
| 29 | have hLu : χ.primitiveCharacter.LFunction (1/2+s) ≠ 0 := |
| 30 | primitive_LFunction_ne_zero_of_GRH hGRH χ.conductor_dvd_level χ.primitiveCharacter |
| 31 | χ.primitiveCharacter_isPrimitive hχp (by norm_num; exact hs) |
| 32 | have hL2 : χ.primitiveCharacter.LFunction 2 ≠ 0 := |
| 33 | χ.primitiveCharacter.LFunction_ne_zero_of_one_le_re (Or.inl hχp) (by norm_num) |
| 34 | have hCu : completedL χ.primitiveCharacter (1/2+s) ≠ 0 := by |
| 35 | intro h |
| 36 | exact hLu ((completedL_eq_zero_iff χ.primitiveCharacter hχp χ.primitiveCharacter_isPrimitive _).mp h).2.2 |
| 37 | have hC2 : completedL χ.primitiveCharacter 2 ≠ 0 := by |
| 38 | intro h |
| 39 | exact hL2 ((completedL_eq_zero_iff χ.primitiveCharacter hχp χ.primitiveCharacter_isPrimitive _).mp h).2.2 |
| 40 | have hH := completedL_logDerivative_difference χ.primitiveCharacter hχp |
| 41 | χ.primitiveCharacter_isPrimitive (1/2+s) 2 hCu hC2 |
| 42 | change logDeriv (completedL χ.primitiveCharacter) (1/2+s) - |
| 43 | logDeriv (completedL χ.primitiveCharacter) 2 = _ at hH |
| 44 | rw [completedL_logDeriv_odd χ.primitiveCharacter hoddp hu hLu, |
| 45 | completedL_logDeriv_odd χ.primitiveCharacter hoddp (by norm_num : 0<(2 : ℂ).re) hL2, |
| 46 | show ((1/2+s : ℂ)+1)/2 = 3/4+s/2 by ring, |
| 47 | show ((2 : ℂ)+1)/2 = 3/2 by ring] at hH |
| 48 | have hEu := logDeriv_eq_primitive_add_euler χ hχn hu hLu |
| 49 | have hE2 := logDeriv_eq_primitive_add_euler χ hχn (by norm_num : 0<(2 : ℂ).re) hL2 |
| 50 | change logDeriv χ.LFunction (1/2+s) = _ |
| 51 | change logDeriv χ.LFunction (1/2+s) = zeroDifference χ.primitiveCharacter (1/2+s) 2 + |
| 52 | logDeriv χ.LFunction 2 - |
| 53 | (deriv Gamma (3/4+s/2)/Gamma (3/4+s/2)-deriv Gamma (3/2)/Gamma (3/2))/2 + |
| 54 | eulerCorrection χ (1/2+s)-eulerCorrection χ 2 |
| 55 | linear_combination hEu-hE2+hH |
| 56 | |
| 57 | theorem lemma_3_4 (δ M : ℝ) (hδ : 0 < δ) (hM : δ ≤ M) : |
| 58 | ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), 4 ≤ N → Even N → GRH N → |
| 59 | ∀ χ ∈ oddCharacters N, |
| 60 | (∀ s : ℂ, 0 < s.re → logDerivative χ s = |
| 61 | zeroDifference χ.primitiveCharacter (1 / 2 + s) 2 + |
| 62 | deriv χ.LFunction 2 / χ.LFunction 2 - |
| 63 | (deriv Gamma (3 / 4 + s / 2) / Gamma (3 / 4 + s / 2) - |
| 64 | deriv Gamma (3 / 2) / Gamma (3 / 2)) / 2 + |
| 65 | eulerCorrection χ (1 / 2 + s) - eulerCorrection χ 2) ∧ |
| 66 | (∀ σ ∈ Icc δ M, ∀ t : ℝ, |
| 67 | ‖logDerivative χ (line σ t)‖ ≤ C * Real.log (N * (|t| + 2)) ^ 2) := by |
| 68 | obtain ⟨C,hC,hbound⟩ := logDerivative_uniform_bound δ M hδ hM |
| 69 | refine ⟨C,hC,fun N _ hN4 _ hGRH χ hχ => ?_⟩ |
| 70 | exact ⟨logDerivative_zero_expansion hGRH χ hχ, |
| 71 | hbound N inferInstance hN4 hGRH χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2)⟩ |
| 72 | |
| 73 | end ConditionalGoldbach |
