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 Mathlib.Analysis.Meromorphic.Basic |
| 4 | public import ConditionalGoldbach.Proofs.CharacterSeries |
| 5 | public import ConditionalGoldbach.Proofs.KernelAlgebra |
| 6 | import Mathlib.Analysis.Calculus.Deriv.Star |
| 7 | |
| 8 | /-! Global conjugation and meromorphy of the character kernel. -/ |
| 9 | public section |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | open scoped BigOperators ComplexConjugate Topology ContDiff |
| 14 | open MeasureTheory Filter Set Complex |
| 15 | namespace ConditionalGoldbach |
| 16 | attribute [local instance] Classical.propDecidable conductorNeZero |
| 17 | |
| 18 | lemma star_character_ne_one {N : ℕ} (χ : Character N) (hχ : χ ≠ 1) : star χ ≠ 1 := by |
| 19 | intro h |
| 20 | apply hχ |
| 21 | simpa using congrArg star h |
| 22 | |
| 23 | lemma LFunction_star_eq_conj {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) : |
| 24 | (star χ).LFunction = fun s => conj (χ.LFunction (conj s)) := by |
| 25 | have hL : Differentiable ℂ (star χ).LFunction := |
| 26 | DirichletCharacter.differentiable_LFunction (star_character_ne_one χ hχ) |
| 27 | have hC : Differentiable ℂ (fun s => conj (χ.LFunction (conj s))) := by |
| 28 | intro s |
| 29 | simpa [Function.comp_def] using |
| 30 | (DirichletCharacter.differentiable_LFunction hχ (conj s)).conj_conj |
| 31 | apply AnalyticOnNhd.eq_of_eventuallyEq (𝕜 := ℂ) (fun z _ => hL.analyticAt z) (fun z _ => hC.analyticAt z) (z₀ := 2) |
| 32 | have hu : {s : ℂ | 1 < s.re} ∈ 𝓝 (2 : ℂ) := |
| 33 | (isOpen_lt continuous_const continuous_re).mem_nhds (by norm_num) |
| 34 | filter_upwards [hu] with s hs |
| 35 | rw [DirichletCharacter.LFunction_eq_LSeries _ hs, |
| 36 | DirichletCharacter.LFunction_eq_LSeries _ (by simpa using hs)] |
| 37 | unfold LSeries |
| 38 | rw [Complex.conj_tsum] |
| 39 | apply tsum_congr |
| 40 | intro n |
| 41 | by_cases hn : n = 0 |
| 42 | · simp [LSeries.term, hn] |
| 43 | · simp [LSeries.term, hn, MulChar.star_apply, RCLike.star_def, conj_natCast_cpow] |
| 44 | |
| 45 | lemma logDerivative_star_eq_conj {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) (s : ℂ) : |
| 46 | logDerivative (star χ) s = conj (logDerivative χ (conj s)) := by |
| 47 | have hf : (star χ).LFunction = conj ∘ χ.LFunction ∘ conj := LFunction_star_eq_conj χ hχ |
| 48 | unfold logDerivative |
| 49 | rw [hf, deriv_conj_conj] |
| 50 | simp [Function.comp_def, map_div₀, show conj (2 : ℂ) = 2 from Complex.conj_ofReal 2] |
| 51 | |
| 52 | lemma logDerivative_meromorphic {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) : |
| 53 | MeromorphicOn (logDerivative χ) Set.univ := by |
| 54 | intro s _ |
| 55 | have hL := DirichletCharacter.differentiable_LFunction hχ |
| 56 | have hshift : AnalyticAt ℂ (fun z : ℂ => 1 / 2 + z) s := analyticAt_const.add analyticAt_id |
| 57 | exact (((hL.deriv.analyticAt _).comp hshift).meromorphicAt).fun_div |
| 58 | (((hL.analyticAt _).comp hshift).meromorphicAt) |
| 59 | |
| 60 | lemma star_mem_oddCharacters {N : ℕ} [NeZero N] (χ : Character N) : |
| 61 | star χ ∈ oddCharacters N ↔ χ ∈ oddCharacters N := by |
| 62 | simp only [oddCharacters, Finset.mem_filter, Finset.mem_univ, true_and, MulChar.star_apply] |
| 63 | constructor |
| 64 | · intro h |
| 65 | have h' := congrArg star h |
| 66 | simpa using h' |
| 67 | · intro h |
| 68 | simp [h] |
| 69 | |
| 70 | lemma characterKernel_eq_star_sum (N : ℕ) [NeZero N] (s z : ℂ) : |
| 71 | characterKernel N s z = (2 / (N.totient : ℂ)) * |
| 72 | ∑ χ ∈ oddCharacters N, logDerivative χ s * logDerivative (star χ) z := by |
| 73 | unfold characterKernel |
| 74 | congr 1 |
| 75 | apply Finset.sum_congr rfl |
| 76 | intro χ hχ |
| 77 | rw [logDerivative_star_eq_conj χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2)] |
| 78 | |
| 79 | lemma characterKernel_symmetric (N : ℕ) [NeZero N] (s z : ℂ) : |
| 80 | characterKernel N s z = characterKernel N z s := by |
| 81 | rw [characterKernel_eq_star_sum, characterKernel_eq_star_sum] |
| 82 | congr 1 |
| 83 | apply Finset.sum_bij (fun χ _ => star χ) |
| 84 | · intro χ hχ |
| 85 | exact (star_mem_oddCharacters χ).2 hχ |
| 86 | · intro a ha b hb hab |
| 87 | simpa using congrArg star hab |
| 88 | · intro χ hχ |
| 89 | exact ⟨star χ, (star_mem_oddCharacters χ).2 hχ, by simp⟩ |
| 90 | · intro χ hχ |
| 91 | simp [mul_comm] |
| 92 | |
| 93 | lemma characterKernel_conjugation (N : ℕ) [NeZero N] (s z : ℂ) : |
| 94 | conj (characterKernel N s z) = characterKernel N (conj s) (conj z) := by |
| 95 | calc |
| 96 | conj (characterKernel N s z) = characterKernel N (conj z) (conj s) := by |
| 97 | simpa using congrArg conj (characterKernel_hermitian N s (conj z)) |
| 98 | _ = _ := characterKernel_symmetric N _ _ |
| 99 | |
| 100 | lemma characterKernel_meromorphic_left (N : ℕ) [NeZero N] (z : ℂ) : |
| 101 | MeromorphicOn (fun s => characterKernel N s z) Set.univ := by |
| 102 | intro s _ |
| 103 | unfold characterKernel |
| 104 | apply (MeromorphicAt.const _ _).fun_mul |
| 105 | apply MeromorphicAt.fun_sum |
| 106 | intro χ hχ |
| 107 | exact (logDerivative_meromorphic χ (odd_character_ne_one χ |
| 108 | (Finset.mem_filter.mp hχ).2) s (Set.mem_univ s)).fun_mul (MeromorphicAt.const _ _) |
| 109 | |
| 110 | lemma characterKernel_meromorphic_right (N : ℕ) [NeZero N] (s : ℂ) : |
| 111 | MeromorphicOn (fun z => characterKernel N s z) Set.univ := by |
| 112 | simpa only [characterKernel_symmetric N s] using characterKernel_meromorphic_left N s |
| 113 | |
| 114 | theorem proposition_3_2 (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) : |
| 115 | (∀ s z : ℂ, 1 / 2 < s.re → 1 / 2 < z.re → |
| 116 | Summable (fun p : ℕ × ℕ => ‖arithmeticExpansionTerm N p.1 p.2 s z‖) ∧ |
| 117 | characterKernel N s z = ∑' p : ℕ × ℕ, arithmeticExpansionTerm N p.1 p.2 s z) ∧ |
| 118 | (∀ z, MeromorphicOn (fun s => characterKernel N s z) Set.univ) ∧ |
| 119 | (∀ s, MeromorphicOn (fun z => characterKernel N s z) Set.univ) ∧ |
| 120 | (GRH N → DifferentiableOn ℂ (fun p : ℂ × ℂ => characterKernel N p.1 p.2) |
| 121 | {p | 0 < p.1.re ∧ 0 < p.2.re}) ∧ |
| 122 | (∀ s z, characterKernel N s z = characterKernel N z s ∧ |
| 123 | conj (characterKernel N s z) = characterKernel N (conj s) (conj z)) ∧ |
| 124 | PositiveKernel (fun s z => characterKernel N s (conj z)) ∧ |
| 125 | Module.finrank ℂ (Submodule.span ℂ (Set.range |
| 126 | (fun z : ℂ => fun s : ℂ => characterKernel N s (conj z)))) ≤ N.totient / 2 := by |
| 127 | exact ⟨fun s z hs hz => characterKernel_dirichlet_expansion N hN hN4 s z hs hz, |
| 128 | characterKernel_meromorphic_left N, characterKernel_meromorphic_right N, |
| 129 | fun hGRH => characterKernel_differentiableOn_of_GRH hGRH, |
| 130 | fun s z => ⟨characterKernel_symmetric N s z, characterKernel_conjugation N s z⟩, |
| 131 | characterKernel_positive N, characterKernel_rank_le N hN hN4⟩ |
| 132 | |
| 133 | end ConditionalGoldbach |
