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 | |
| 5 | /-! Uniform boundedness of the Gamma quotient from the convergent Beta integral. -/ |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open MeasureTheory Filter Set Complex |
| 11 | open scoped Topology ComplexConjugate |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | lemma betaIntegral_norm_bound_lower_re {p q : ℝ} (hp : 0 < p) (hq : 0 < q) |
| 15 | (u v : ℂ) (hu : p ≤ u.re) (hv : q ≤ v.re) : |
| 16 | ‖betaIntegral u v‖ ≤ |
| 17 | ∫ t : ℝ in 0..1, ‖(t : ℂ) ^ ((p : ℂ) - 1) * (1 - (t : ℂ)) ^ ((q : ℂ) - 1)‖ := by |
| 18 | calc |
| 19 | ‖betaIntegral u v‖ ≤ |
| 20 | ∫ t : ℝ in 0..1, ‖(t : ℂ) ^ (u - 1) * (1 - (t : ℂ)) ^ (v - 1)‖ := |
| 21 | intervalIntegral.norm_integral_le_integral_norm (by norm_num) |
| 22 | _ ≤ _ := by |
| 23 | apply intervalIntegral.integral_mono_on_of_le_Ioo (by norm_num) |
| 24 | (Complex.betaIntegral_convergent (hp.trans_le hu) (hq.trans_le hv)).norm |
| 25 | (Complex.betaIntegral_convergent (by simpa using hp) (by simpa using hq)).norm |
| 26 | intro t ht |
| 27 | rw [norm_mul, norm_mul] |
| 28 | have h1 : 0 < 1 - t := sub_pos.mpr ht.2 |
| 29 | have he : 1 - (t : ℂ) = ((1 - t : ℝ) : ℂ) := by push_cast; rfl |
| 30 | rw [he, Complex.norm_cpow_eq_rpow_re_of_pos ht.1, |
| 31 | Complex.norm_cpow_eq_rpow_re_of_pos ht.1, |
| 32 | Complex.norm_cpow_eq_rpow_re_of_pos h1, |
| 33 | Complex.norm_cpow_eq_rpow_re_of_pos h1] |
| 34 | simp only [Complex.sub_re, Complex.one_re, Complex.ofReal_re] |
| 35 | exact mul_le_mul (Real.rpow_le_rpow_of_exponent_ge ht.1 ht.2.le (by linarith)) |
| 36 | (Real.rpow_le_rpow_of_exponent_ge h1 (by linarith [ht.1]) (by linarith)) |
| 37 | (Real.rpow_nonneg h1.le _) (Real.rpow_nonneg ht.1.le _) |
| 38 | |
| 39 | lemma gammaQuotient_norm_beta (s : ℂ) (hs : 0 < s.re) (hs' : s.re < 3 / 2) : |
| 40 | ‖gammaQuotient s‖ = |
| 41 | ‖betaIntegral ((3 / 2 - conj s) / 2) (s.re : ℂ)‖ * ‖(Gamma (s.re : ℂ))⁻¹‖ := by |
| 42 | have hu : 0 < ((3 / 2 - conj s) / 2).re := by simp; linarith |
| 43 | have hv : 0 < (s.re : ℂ).re := hs |
| 44 | have he : (3 / 2 - conj s) / 2 + (s.re : ℂ) = (3 / 2 + s) / 2 := by |
| 45 | apply Complex.ext <;> simp; ring |
| 46 | rw [Complex.betaIntegral_eq_Gamma_mul_div _ _ hu hv, he, ← norm_mul] |
| 47 | have hΓ : Gamma (s.re : ℂ) ≠ 0 := Complex.Gamma_ne_zero_of_re_pos hs |
| 48 | rw [show Gamma ((3 / 2 - conj s) / 2) * Gamma (s.re : ℂ) / |
| 49 | Gamma ((3 / 2 + s) / 2) * (Gamma (s.re : ℂ))⁻¹ = |
| 50 | Gamma ((3 / 2 - conj s) / 2) / Gamma ((3 / 2 + s) / 2) by field_simp] |
| 51 | rw [gammaQuotient, norm_div, norm_div] |
| 52 | congr 1 |
| 53 | have hc : (3 / 2 - conj s) / 2 = conj ((3 / 2 - s) / 2) := by simp only [map_div₀, map_sub, map_ofNat] |
| 54 | rw [hc, Complex.Gamma_conj, Complex.norm_conj] |
| 55 | |
| 56 | lemma gammaQuotient_uniform_bound {a b : ℝ} (ha : 0 < a) (hb : b < 3 / 2) : |
| 57 | ∃ C : ℝ, 0 ≤ C ∧ ∀ s : ℂ, s.re ∈ Icc a b → ‖gammaQuotient s‖ ≤ C := by |
| 58 | let p : ℝ := (3 / 2 - b) / 2 |
| 59 | have hp : 0 < p := by dsimp [p]; linarith |
| 60 | let A : ℝ := ∫ t : ℝ in 0..1, |
| 61 | ‖(t : ℂ) ^ ((p : ℂ) - 1) * (1 - (t : ℂ)) ^ ((a : ℂ) - 1)‖ |
| 62 | have hA : 0 ≤ A := intervalIntegral.integral_nonneg (by norm_num) (fun _ _ => norm_nonneg _) |
| 63 | have hc : Continuous (fun x : ℝ => (Gamma (x : ℂ))⁻¹) := |
| 64 | Complex.differentiable_one_div_Gamma.continuous.comp Complex.continuous_ofReal |
| 65 | obtain ⟨D, hD⟩ := (isCompact_Icc : IsCompact (Icc a b)).exists_bound_of_continuousOn hc.continuousOn |
| 66 | refine ⟨A * max D 0, mul_nonneg hA (le_max_right _ _), ?_⟩ |
| 67 | intro s hs |
| 68 | rw [gammaQuotient_norm_beta s (ha.trans_le hs.1) (hs.2.trans_lt hb)] |
| 69 | apply mul_le_mul |
| 70 | · apply betaIntegral_norm_bound_lower_re hp ha |
| 71 | · dsimp [p] |
| 72 | simp |
| 73 | linarith [hs.2] |
| 74 | · exact hs.1 |
| 75 | · exact (hD s.re hs).trans (le_max_left _ _) |
| 76 | · exact norm_nonneg _ |
| 77 | · exact hA |
| 78 | |
| 79 | end ConditionalGoldbach |
