Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Row 23 RH support: RHLegendreSmoothing

Definition
row23_rh_supp_RHLegendreSmoothing

by abcdefg · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

finite-verificationnumber-theoryriemann-zeta

A Lean-checked supporting component of the finite-height Riemann hypothesis and Chebyshev psi reduction for the b=23 Dusart Table 1 bound. Its declarations and hypotheses are stated exactly in the attached Lean source; this module alone does not assert the complete row estimate.

Definition code
import Mathlib
set_option autoImplicit false
set_option maxHeartbeats 3000000
namespace DusartLegendreSmoothing
open MeasureTheory intervalIntegral
noncomputable def normalization (m : ℕ) : ℝ :=
  ((2*m+1).factorial : ℝ) / (m.factorial : ℝ)^2
noncomputable def weight (m : ℕ) (t : ℝ) : ℝ :=
  normalization m * t^m * (1-t)^m
lemma normalization_pos (m : ℕ) : 0 < normalization m := by
  unfold normalization
  positivity
lemma weight_nonneg (m : ℕ) (t : ℝ) (ht : t ∈ Set.Icc (0:ℝ) 1) : 0 ≤ weight m t := by
  unfold weight
  exact mul_nonneg (mul_nonneg (normalization_pos m).le (pow_nonneg ht.1 _))
    (pow_nonneg (sub_nonneg.mpr ht.2) _)
lemma weight_continuous (m : ℕ) : Continuous (weight m) := by
  unfold weight
  fun_prop
lemma weight_symmetric (m : ℕ) (t : ℝ) : weight m (1-t)=weight m t := by
  simp only [weight,sub_sub_cancel]
  ring
lemma beta_nat (m n : ℕ) :
    (∫ t : ℝ in 0..1, t^m*(1-t)^n) =
      (m.factorial:ℝ)*(n.factorial:ℝ)/((m+n+1).factorial:ℝ) := by
  apply Complex.ofReal_injective
  have h := Complex.betaIntegral_eq_Gamma_mul_div ((m:ℂ)+1) ((n:ℂ)+1)
    (by simp only [Complex.add_re,Complex.natCast_re,Complex.one_re]; positivity)
    (by simp only [Complex.add_re,Complex.natCast_re,Complex.one_re]; positivity)
  have he : (m:ℂ)+1+((n:ℂ)+1)=((m+n+1:ℕ):ℂ)+1 := by push_cast; ring
  rw [he,Complex.Gamma_nat_eq_factorial,Complex.Gamma_nat_eq_factorial,
    Complex.Gamma_nat_eq_factorial] at h
  simp only [Complex.betaIntegral,add_sub_cancel_right,Complex.cpow_natCast] at h
  rw [←intervalIntegral.integral_ofReal]
  push_cast
  exact h
lemma moment (m k : ℕ) :
    (∫ t : ℝ in 0..1, weight m t*t^k) =
      normalization m * ((m+k).factorial:ℝ)*(m.factorial:ℝ)/((2*m+k+1).factorial:ℝ) := by
  have he : (fun t : ℝ => weight m t*t^k) =
      (fun t : ℝ => normalization m * (t^(m+k)*(1-t)^m)) := by
    funext t
    rw [weight,pow_add]
    ring
  rw [he,intervalIntegral.integral_const_mul,beta_nat]
  have hn : m+k+m+1=2*m+k+1 := by omega
  rw [hn]
  ring
lemma integral_weight (m : ℕ) : (∫ t : ℝ in 0..1, weight m t)=1 := by
  have h := moment m 0
  simp only [pow_zero,mul_one,Nat.add_zero] at h
  rw [h]
  unfold normalization
  have hm : (m.factorial:ℝ)≠0 := by positivity
  have h2m : ((2*m+1).factorial:ℝ)≠0 := by positivity
  field_simp
lemma first_moment (m : ℕ) : (∫ t : ℝ in 0..1, weight m t*t)=1/2 := by
  have h := moment m 1
  simp only [pow_one] at h
  rw [h]
  have hm : (m.factorial:ℝ)≠0 := by positivity
  have h2m : ((2*m+1).factorial:ℝ)≠0 := by positivity
  rw [show 2*m+1+1=(2*m+1)+1 by omega,Nat.factorial_succ,Nat.factorial_succ]
  push_cast
  unfold normalization
  field_simp
  ring
end DusartLegendreSmoothing
#print axioms DusartLegendreSmoothing.beta_nat
#print axioms DusartLegendreSmoothing.integral_weight
#print axioms DusartLegendreSmoothing.first_moment
Source
Supporting arithmetic and analytic certificate for P. Dusart, Ramanujan J. 45 (2018), Table 1 and explicit psi bounds, pp. 233–235, DOI 10.1007/s11139-016-9839-4.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me