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.GammaQuotientBound |
| 4 | public import ConditionalGoldbach.Proofs.SpectralPoissonConvolution |
| 5 | |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology |
| 11 | open MeasureTheory Filter Set Complex |
| 12 | namespace ConditionalGoldbach |
| 13 | attribute [local instance] Classical.propDecidable |
| 14 | |
| 15 | /-- Taking real parts of the Beta parameters gives a sharp modulus majorant. -/ |
| 16 | theorem betaIntegral_norm_le_real (u v : ℂ) (_hu : 0 < u.re) (_hv : 0 < v.re) : |
| 17 | ‖betaIntegral u v‖ ≤ ‖betaIntegral (u.re : ℂ) (v.re : ℂ)‖ := by |
| 18 | let F : ℝ → ℂ := fun t => (t : ℂ) ^ (u - 1) * (1 - (t : ℂ)) ^ (v - 1) |
| 19 | have heq : ((∫ t : ℝ in 0..1, ‖F t‖ : ℝ) : ℂ) = betaIntegral (u.re : ℂ) (v.re : ℂ) := by |
| 20 | rw [← intervalIntegral.integral_ofReal] |
| 21 | apply intervalIntegral.integral_congr_Ioo_of_le (by norm_num) |
| 22 | intro t ht |
| 23 | have h1 : 0 < 1 - t := sub_pos.mpr ht.2 |
| 24 | have he : 1 - (t : ℂ) = ((1 - t : ℝ) : ℂ) := by push_cast; rfl |
| 25 | simp only [F, norm_mul, he, Complex.norm_cpow_eq_rpow_re_of_pos ht.1, |
| 26 | Complex.norm_cpow_eq_rpow_re_of_pos h1, sub_re, one_re, ofReal_mul] |
| 27 | rw [show (u.re : ℂ) - 1 = ((u.re - 1 : ℝ) : ℂ) by push_cast; rfl, |
| 28 | show (v.re : ℂ) - 1 = ((v.re - 1 : ℝ) : ℂ) by push_cast; rfl, |
| 29 | ← Complex.ofReal_cpow ht.1.le, ← Complex.ofReal_cpow h1.le] |
| 30 | have hn : 0 ≤ ∫ t : ℝ in 0..1, ‖F t‖ := |
| 31 | intervalIntegral.integral_nonneg (by norm_num) (fun t ht => norm_nonneg _) |
| 32 | calc |
| 33 | ‖betaIntegral u v‖ ≤ ∫ t : ℝ in 0..1, ‖F t‖ := |
| 34 | intervalIntegral.norm_integral_le_integral_norm (by norm_num) |
| 35 | _ = ‖betaIntegral (u.re : ℂ) (v.re : ℂ)‖ := by |
| 36 | rw [← heq, norm_real, Real.norm_eq_abs, abs_of_nonneg hn] |
| 37 | |
| 38 | /-- On a vertical line the Gamma quotient is bounded by its value on the real axis. -/ |
| 39 | theorem gammaQuotient_norm_le_real (s : ℂ) (hs : 0 < s.re) (hs' : s.re < 3 / 2) : |
| 40 | ‖gammaQuotient s‖ ≤ ‖gammaQuotient (s.re : ℂ)‖ := by |
| 41 | have hp : 0 < ((3 / 2 - conj s) / 2).re := by simp; linarith |
| 42 | rw [gammaQuotient_norm_beta s hs hs', |
| 43 | gammaQuotient_norm_beta (s.re : ℂ) hs hs'] |
| 44 | apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) |
| 45 | have h := betaIntegral_norm_le_real ((3 / 2 - conj s) / 2) (s.re : ℂ) hp hs |
| 46 | convert h using 1; congr 2; apply Complex.ext <;> simp |
| 47 | |
| 48 | /-- A single uniform Gamma-quotient bound remains valid down to the imaginary axis. -/ |
| 49 | theorem gammaQuotient_uniform_nonnegative (b : ℝ) (_hb0 : 0 ≤ b) (hb : b < 3 / 2) : |
| 50 | ∃ C : ℝ, 0 < C ∧ ∀ s : ℂ, s.re ∈ Icc 0 b → ‖gammaQuotient s‖ ≤ C := by |
| 51 | have hc : ContinuousOn (fun x : ℝ => gammaQuotient (x : ℂ)) (Icc 0 b) := by |
| 52 | intro x hx |
| 53 | have hn : 0 < ((3 / 2 - (x : ℂ)) / 2).re := by simp; linarith [hx.2] |
| 54 | have hd : 0 < ((3 / 2 + (x : ℂ)) / 2).re := by simp; linarith [hx.1] |
| 55 | have hg₁ := Complex.continuousAt_Gamma ((3 / 2 - (x : ℂ)) / 2) (fun m hm => by |
| 56 | have hh := congrArg Complex.re hm |
| 57 | simp only [neg_re, natCast_re] at hh |
| 58 | have := Nat.cast_nonneg (α := ℝ) m |
| 59 | linarith) |
| 60 | have hg₂ := Complex.continuousAt_Gamma ((3 / 2 + (x : ℂ)) / 2) (fun m hm => by |
| 61 | have hh := congrArg Complex.re hm |
| 62 | simp only [neg_re, natCast_re] at hh |
| 63 | have := Nat.cast_nonneg (α := ℝ) m |
| 64 | linarith) |
| 65 | exact ((hg₁.comp (f := fun y : ℝ => (3 / 2 - (y : ℂ)) / 2) (by fun_prop : ContinuousAt (fun x : ℝ => (3 / 2 - (x : ℂ)) / 2) x)).div |
| 66 | (hg₂.comp (f := fun y : ℝ => (3 / 2 + (y : ℂ)) / 2) (by fun_prop : ContinuousAt (fun x : ℝ => (3 / 2 + (x : ℂ)) / 2) x)) |
| 67 | (Complex.Gamma_ne_zero_of_re_pos hd)).continuousWithinAt |
| 68 | obtain ⟨C, hC⟩ := (isCompact_Icc : IsCompact (Icc (0 : ℝ) b)).exists_bound_of_continuousOn hc |
| 69 | refine ⟨max C 1, lt_of_lt_of_le zero_lt_one (le_max_right _ _), ?_⟩ |
| 70 | intro s hs |
| 71 | rcases hs.1.eq_or_lt with hzero | hpos |
| 72 | · have he : (3 / 2 - s) / 2 = conj ((3 / 2 + s) / 2) := by |
| 73 | simp only [map_div₀, map_add, map_ofNat] |
| 74 | apply Complex.ext <;> simp; linarith |
| 75 | have hd : Gamma ((3 / 2 + s) / 2) ≠ 0 := Complex.Gamma_ne_zero_of_re_pos (by simp; linarith) |
| 76 | rw [gammaQuotient, he, Complex.Gamma_conj, norm_div, norm_conj, div_self (norm_ne_zero_iff.mpr hd)] |
| 77 | exact le_max_right _ _ |
| 78 | · exact (gammaQuotient_norm_le_real s hpos (hs.2.trans_lt hb)).trans ((hC _ hs).trans (le_max_left _ _)) |
| 79 | |
| 80 | end ConditionalGoldbach |
