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.ModelContinuation |
| 4 | public import ConditionalGoldbach.Proofs.CharacterAnalytic |
| 5 | |
| 6 | /-! Joint holomorphy and exact conjugation symmetries of the residual kernel. -/ |
| 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 | attribute [local instance] Classical.propDecidable conductorNeZero |
| 15 | |
| 16 | lemma conj_nonnegReal_cpow (x : ℝ) (hx : 0 ≤ x) (s : ℂ) : |
| 17 | conj ((x : ℂ)^s) = (x : ℂ)^(conj s) := by |
| 18 | simpa using (Complex.conj_cpow (x : ℂ) (conj s) |
| 19 | (by rw [Complex.arg_ofReal_of_nonneg hx]; exact ne_of_lt Real.pi_pos)).symm |
| 20 | |
| 21 | lemma conj_tprod_complex {ι : Type*} (f : ι → ℂ) : |
| 22 | conj (∏' i, f i) = ∏' i, conj (f i) := by |
| 23 | exact Function.LeftInverse.map_tprod (g := starRingEnd ℂ) f |
| 24 | continuous_star continuous_star (fun z => star_star z) |
| 25 | |
| 26 | lemma densityEulerProduct_conj (N : ℕ) (w : ℂ) : |
| 27 | conj (densityEulerProduct N w) = densityEulerProduct N (conj w) := by |
| 28 | unfold densityEulerProduct |
| 29 | rw [conj_tprod_complex] |
| 30 | apply tprod_congr |
| 31 | intro p |
| 32 | split_ifs <;> simp [map_add, map_div₀, map_sub, conj_natCast_cpow, map_ofNat] |
| 33 | |
| 34 | lemma gammaQuotient_conj (s : ℂ) : conj (gammaQuotient s) = gammaQuotient (conj s) := by |
| 35 | unfold gammaQuotient |
| 36 | rw [map_div₀, ← Complex.Gamma_conj, ← Complex.Gamma_conj] |
| 37 | congr 1 <;> congr 1 <;> simp [map_ofNat] |
| 38 | |
| 39 | lemma continuedModel_symmetric (N : ℕ) (s z : ℂ) : |
| 40 | continuedModel N s z = continuedModel N z s := by |
| 41 | unfold continuedModel |
| 42 | rw [add_comm z s, show (1 : ℂ)-z-s = 1-s-z by ring] |
| 43 | ring |
| 44 | |
| 45 | lemma continuedModel_conj (N : ℕ) (s z : ℂ) : |
| 46 | conj (continuedModel N s z) = continuedModel N (conj s) (conj z) := by |
| 47 | unfold continuedModel |
| 48 | simp only [map_mul, densityEulerProduct_conj, gammaQuotient_conj, |
| 49 | ← riemannZeta_conj, map_sub, map_add, map_one, Complex.conj_ofReal] |
| 50 | have hc : conj (((Real.pi : ℂ) / N)^(s+z)) = |
| 51 | ((Real.pi : ℂ)/N)^(conj s+conj z) := by |
| 52 | simpa using conj_nonnegReal_cpow (Real.pi / N) (by positivity) (s+z) |
| 53 | rw [hc] |
| 54 | |
| 55 | lemma diagonalSeries_conj (N : ℕ) (w : ℂ) : |
| 56 | conj (diagonalSeries N w) = diagonalSeries N (conj w) := by |
| 57 | unfold diagonalSeries |
| 58 | rw [Complex.conj_tsum] |
| 59 | apply tsum_congr |
| 60 | intro n |
| 61 | split_ifs <;> simp [map_div₀, map_pow, conj_natCast_cpow] |
| 62 | |
| 63 | lemma residual_symmetric (N : ℕ) [NeZero N] (s z : ℂ) : residual N s z = residual N z s := by |
| 64 | unfold residual |
| 65 | rw [characterKernel_symmetric, continuedModel_symmetric, add_comm s z] |
| 66 | |
| 67 | lemma residual_conj (N : ℕ) [NeZero N] (s z : ℂ) : |
| 68 | conj (residual N s z) = residual N (conj s) (conj z) := by |
| 69 | simp only [residual, map_sub, characterKernel_conjugation, diagonalSeries_conj, |
| 70 | continuedModel_conj, map_add] |
| 71 | |
| 72 | lemma residual_hermitian (N : ℕ) [NeZero N] : |
| 73 | HermitianKernel (fun s z => residual N s (conj z)) := by |
| 74 | intro s z |
| 75 | rw [residual_conj, Complex.conj_conj, residual_symmetric] |
| 76 | |
| 77 | lemma residual_differentiableOn (N : ℕ) [NeZero N] (hN : 0 < N) (hGRH : GRH N) : |
| 78 | DifferentiableOn ℂ (fun p : ℂ × ℂ => residual N p.1 p.2) analyticDomain := by |
| 79 | have hK := (characterKernel_differentiableOn_of_GRH hGRH).mono |
| 80 | (show analyticDomain ⊆ {p : ℂ × ℂ | 0 < p.1.re ∧ 0 < p.2.re} from |
| 81 | fun p hp => ⟨hp.1, hp.2.2.1⟩) |
| 82 | have hD : DifferentiableOn ℂ (fun p : ℂ × ℂ => diagonalSeries N (p.1+p.2)) analyticDomain := by |
| 83 | intro p hp |
| 84 | have hs : 0 < (p.1+p.2).re := by simpa only [add_re] using add_pos hp.1 hp.2.2.1 |
| 85 | exact (DifferentiableAt.comp (g := diagonalSeries N) |
| 86 | (f := fun q : ℂ × ℂ => q.1+q.2) p (diagonalSeries_differentiableAt N hs) (by fun_prop)).differentiableWithinAt |
| 87 | exact (hK.sub hD).sub (continuedModel_differentiableOn N hN) |
| 88 | |
| 89 | theorem proposition_4_5 (N : ℕ) [NeZero N] (_hN : Even N) (hN4 : 4 ≤ N) (hGRH : GRH N) : |
| 90 | DifferentiableOn ℂ (fun p : ℂ × ℂ => residual N p.1 p.2) analyticDomain ∧ |
| 91 | (∀ s z : ℂ, residual N s z = residual N z s ∧ |
| 92 | conj (residual N s z) = residual N (conj s) (conj z)) ∧ |
| 93 | HermitianKernel (fun s z => residual N s (conj z)) := by |
| 94 | exact ⟨residual_differentiableOn N (by omega) hGRH, |
| 95 | fun s z => ⟨residual_symmetric N s z, residual_conj N s z⟩, residual_hermitian N⟩ |
| 96 | |
| 97 | end ConditionalGoldbach |
