From 939061d5be034ebada43a1f0014730669e9cecf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A2?= <240895760+sqrt-of-2@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:37:10 +0000 Subject: [PATCH 1/2] feat: add xi positivity and Hermite RH criterion --- RealRooted.lean | 13 ++ RealRooted/Hermite/GeneratingFunction.lean | 64 +++++++ RealRooted/Hermite/Jensen.lean | 106 +++++++++++ .../Calculus/IteratedDeriv/MulPow.lean | 26 +++ .../Analysis/MellinTransform/LogMoments.lean | 112 ++++++++++++ .../LSeries/RiemannXi/Kernel.lean | 166 ++++++++++++++++++ .../LSeries/RiemannXi/Mellin.lean | 112 ++++++++++++ .../LSeries/RiemannXi/Moments.lean | 134 ++++++++++++++ .../LSeries/RiemannXi/Positivity.lean | 119 +++++++++++++ .../MultiplierSequence/JensenDerivative.lean | 57 ++++++ .../PolyaSchur/LaguerrePolya/Hermite.lean | 55 ++++++ RealRooted/Production.lean | 13 ++ RealRooted/RiemannHypothesis/Hermite.lean | 63 +++++++ .../RiemannHypothesis/Inequalities.lean | 46 +++++ .../RiemannHypothesis/MultiplierSequence.lean | 108 ++++++++++++ scripts/import_architecture.json | 4 +- scripts/mathlib_shims.json | 60 +++++++ 17 files changed, 1256 insertions(+), 2 deletions(-) create mode 100644 RealRooted/Hermite/GeneratingFunction.lean create mode 100644 RealRooted/Hermite/Jensen.lean create mode 100644 RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/MulPow.lean create mode 100644 RealRooted/Mathlib/Analysis/MellinTransform/LogMoments.lean create mode 100644 RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Kernel.lean create mode 100644 RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Mellin.lean create mode 100644 RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Moments.lean create mode 100644 RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Positivity.lean create mode 100644 RealRooted/MultiplierSequence/JensenDerivative.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Hermite.lean create mode 100644 RealRooted/RiemannHypothesis/Hermite.lean create mode 100644 RealRooted/RiemannHypothesis/Inequalities.lean create mode 100644 RealRooted/RiemannHypothesis/MultiplierSequence.lean diff --git a/RealRooted.lean b/RealRooted.lean index 01532f981..07c64c58c 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2428,3 +2428,16 @@ public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Hadamard public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen public import RealRooted.RiemannHypothesis +public import RealRooted.Hermite.GeneratingFunction +public import RealRooted.Hermite.Jensen +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.MulPow +public import RealRooted.Mathlib.Analysis.MellinTransform.LogMoments +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Kernel +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Mellin +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Moments +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity +public import RealRooted.MultiplierSequence.JensenDerivative +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Hermite +public import RealRooted.RiemannHypothesis.Hermite +public import RealRooted.RiemannHypothesis.Inequalities +public import RealRooted.RiemannHypothesis.MultiplierSequence diff --git a/RealRooted/Hermite/GeneratingFunction.lean b/RealRooted/Hermite/GeneratingFunction.lean new file mode 100644 index 000000000..e0a86217f --- /dev/null +++ b/RealRooted/Hermite/GeneratingFunction.lean @@ -0,0 +1,64 @@ +module + +public import RealRooted.Hermite.Homogeneous +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +public import Mathlib.Analysis.Complex.Exponential +public import Mathlib.Analysis.Complex.Basic +import RealRooted.Hermite.Gaussian +import Mathlib.Analysis.SpecialFunctions.ExpDeriv +import Mathlib.Analysis.Calculus.Deriv.Polynomial +import Mathlib.Analysis.Calculus.Deriv.Pow + +/-! +# Derivatives of quadratic exponentials + +The homogeneous Hermite normalization is the exponential generating function +`exp (x z + s z²)`. In particular, `s = -1` and `x = 2 X` give the +physicists' Hermite polynomials used by O'Sullivan. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +private theorem hasDerivAt_hermiteHomogeneous_affine (x s z : ℂ) (n : ℕ) : + HasDerivAt (fun w => hermiteHomogeneous (x + 2 * s * w) s (n + 1)) + ((n + 1 : ℂ) * hermiteHomogeneous (x + 2 * s * z) s n * (2 * s)) z := by + have h := ((hermiteHomogeneousPoly s (n + 1)).hasDerivAt (x + 2 * s * z)).comp z + (((hasDerivAt_id z).const_mul (2 * s)).const_add x) + rw [derivative_hermiteHomogeneousPoly] at h + simpa only [Function.comp_def, hermiteHomogeneousPoly, eval_hermiteHomogeneous, + eval_mul, eval_natCast, Nat.cast_add, Nat.cast_one, eval_add, eval_one, + id_eq, mul_one] using h + +/-- Iterated derivatives of a quadratic exponential are homogeneous Hermite polynomials. -/ +theorem iteratedDeriv_exp_quadratic (x s : ℂ) (n : ℕ) (z : ℂ) : + iteratedDeriv n (fun w : ℂ => exp (x * w + s * w ^ 2)) z = + hermiteHomogeneous (x + 2 * s * z) s n * exp (x * z + s * z ^ 2) := by + have he (z : ℂ) : HasDerivAt (fun w : ℂ => exp (x * w + s * w ^ 2)) + ((x + 2 * s * z) * exp (x * z + s * z ^ 2)) z := by + convert (((hasDerivAt_id' z).const_mul x).add + ((hasDerivAt_pow 2 z).const_mul s)).cexp using 1 + dsimp + ring + induction n generalizing z with + | zero => simp + | succ n ih => + rw [iteratedDeriv_succ, funext ih] + cases n with + | zero => simpa using (he z).deriv + | succ n => + rw [((hasDerivAt_hermiteHomogeneous_affine x s z n).fun_mul (he z)).deriv, + hermiteHomogeneous_add_two] + push_cast + ring + +/-- The homogeneous Hermite polynomial is the Taylor data of a quadratic exponential. -/ +theorem iteratedDeriv_exp_quadratic_zero (x s : ℂ) (n : ℕ) : + iteratedDeriv n (fun w : ℂ => exp (x * w + s * w ^ 2)) 0 = + hermiteHomogeneous x s n := by + simp [iteratedDeriv_exp_quadratic] + +end RealRooted diff --git a/RealRooted/Hermite/Jensen.lean b/RealRooted/Hermite/Jensen.lean new file mode 100644 index 000000000..4670621f3 --- /dev/null +++ b/RealRooted/Hermite/Jensen.lean @@ -0,0 +1,106 @@ +module + +public import RealRooted.Hermite.Homogeneous +public import RealRooted.MultiplierSequence +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import Mathlib.Analysis.Complex.Basic +public import Mathlib.Analysis.CStarAlgebra.Classes +public import Mathlib.Analysis.Complex.Exponential +import Mathlib.Algebra.Polynomial.Reverse +import RealRooted.Hermite.GeneratingFunction +import RealRooted.Mathlib.Algebra.Polynomial.Chow +import Mathlib.Analysis.SpecialFunctions.ExpDeriv +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas +import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Hermite versions of Jensen polynomials + +The physicists' Hermite polynomials have generating function `exp (2 X z - z²)`. +Their binomial convolution with the Taylor data of `f` is a reversed Jensen +polynomial of `f(z) exp(-z²)`, evaluated at `2 X`. +-/ + +@[expose] public section + +open Polynomial Complex + +namespace RealRooted + +/-- The physicists' Hermite normalization, `H₀ = 1` and `H₁ = 2 X`. -/ +noncomputable def hermitePhysicists (d : ℕ) : ℝ[X] := + hermiteHomogeneous (2 * X) (-1) d + +/-- A Hermite polynomial with binomially weighted Taylor coefficients. -/ +noncomputable def hermiteJensenPolynomial (d : ℕ) (gamma : ℕ → ℝ) : ℝ[X] := + ∑ k ∈ Finset.range (d + 1), C ((d.choose k : ℝ) * gamma k) * hermitePhysicists (d - k) + +@[simp] theorem hermitePhysicists_zero : hermitePhysicists 0 = 1 := rfl + +@[simp] theorem hermitePhysicists_one : hermitePhysicists 1 = 2 * X := rfl + +/-- The classical three-term recurrence in the physicists' normalization. -/ +theorem hermitePhysicists_add_two (d : ℕ) : + hermitePhysicists (d + 2) = 2 * X * hermitePhysicists (d + 1) - + C (2 * (d + 1 : ℝ)) * hermitePhysicists d := by + simp only [hermitePhysicists, hermiteHomogeneous_add_two, map_mul, map_ofNat, + map_add, map_natCast, map_one] + push_cast + ring + +private theorem eval₂_hermitePhysicists (d : ℕ) (x : ℂ) : + (hermitePhysicists d).eval₂ ofRealHom x = hermiteHomogeneous (2 * x) (-1) d := by + change (eval₂RingHom ofRealHom x) (hermiteHomogeneous (2 * X) (-1) d) = _ + rw [map_hermiteHomogeneous, map_mul, map_ofNat] + simp + +private theorem eval₂_reflect_jensenPolynomial (d : ℕ) (gamma : ℕ → ℝ) (x : ℂ) : + (reflect d (jensenPolynomial d gamma)).eval₂ ofRealHom x = + ∑ k ∈ Finset.range (d + 1), (d.choose k : ℂ) * (gamma k : ℂ) * x ^ (d - k) := by + simp only [jensenPolynomial, ← C_mul_X_pow_eq_monomial, reflect_finset_sum_C_mul, + reflect_monomial, eval₂_finsetSum, eval₂_mul, eval₂_C, eval₂_pow, eval₂_X, + ofRealHom_eq_coe, ofReal_mul, ofReal_natCast] + apply Finset.sum_congr rfl + intro k hk + rw [revAt_le (by simpa using hk)] + +private theorem eval₂_reflect_jensenPolynomial_eq_iteratedDeriv + {f : ℂ → ℂ} {gamma : ℕ → ℝ} (hf : Differentiable ℂ f) + (hgamma : ∀ k, iteratedDeriv k f 0 = (gamma k : ℂ)) (d : ℕ) (x : ℂ) : + (reflect d (jensenPolynomial d gamma)).eval₂ ofRealHom x = + iteratedDeriv d (fun z => f z * exp (x * z)) 0 := by + rw [eval₂_reflect_jensenPolynomial, iteratedDeriv_fun_mul + (hf.contDiff.contDiffAt) (by fun_prop)] + simp only [hgamma, iteratedDeriv_cexp_const_mul, mul_zero, exp_zero, mul_one] + +/-- The Hermite convolution is a reversed Jensen polynomial of the product +with a Gaussian. This identity fixes both the coefficient and Hermite normalizations. -/ +theorem hermiteJensenPolynomial_eq_reflect_jensenPolynomial + {f : ℂ → ℂ} {gamma beta : ℕ → ℝ} (hf : Differentiable ℂ f) + (hgamma : ∀ k, iteratedDeriv k f 0 = (gamma k : ℂ)) + (hbeta : ∀ k, iteratedDeriv k (fun z => f z * exp (-z ^ 2)) 0 = (beta k : ℂ)) + (d : ℕ) : + hermiteJensenPolynomial d gamma = + (reflect d (jensenPolynomial d beta)).comp (C 2 * X) := by + apply Polynomial.funext + intro x + apply ofReal_injective + have heval (p : ℝ[X]) : ((p.eval x : ℝ) : ℂ) = p.eval₂ ofRealHom (x : ℂ) := by + exact (eval₂_at_apply ofRealHom x).symm + rw [heval, heval, eval₂_comp] + simp only [eval₂_mul, eval₂_C, eval₂_X, ofRealHom_eq_coe, ofReal_ofNat] + rw [eval₂_reflect_jensenPolynomial_eq_iteratedDeriv + (hf.mul (by fun_prop)) hbeta] + simp only [Pi.mul_def] + have heq : (fun z => (f z * exp (-z ^ 2)) * exp (2 * (x : ℂ) * z)) = + fun z => f z * exp (2 * (x : ℂ) * z + (-1) * z ^ 2) := by + funext z + rw [mul_assoc, ← exp_add] + congr 2 + ring + rw [heq, iteratedDeriv_fun_mul (hf.contDiff.contDiffAt) (by fun_prop)] + simp only [hermiteJensenPolynomial, eval₂_finsetSum, eval₂_mul, eval₂_C, + ofRealHom_eq_coe, ofReal_mul, ofReal_natCast, eval₂_hermitePhysicists, + hgamma, iteratedDeriv_exp_quadratic_zero] + +end RealRooted diff --git a/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/MulPow.lean b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/MulPow.lean new file mode 100644 index 000000000..503ec6b73 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/MulPow.lean @@ -0,0 +1,26 @@ +/- +Copyright (c) 2026 The RealRooted contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The RealRooted contributors +-/ +module + +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas + +/-! +# Taylor data after multiplication by a monomial +-/ + +public section + +/-- Multiplication by a monomial shifts Taylor coefficients at zero. -/ +theorem iteratedDeriv_pow_mul_zero {𝕜 : Type*} [NontriviallyNormedField 𝕜] + {f : 𝕜 → 𝕜} {n : ℕ} (hf : ContDiffAt 𝕜 n f 0) (m : ℕ) : + iteratedDeriv n (fun z => z ^ m * f z) 0 = + (n.choose m : 𝕜) * m.factorial * iteratedDeriv (n - m) f 0 := by + rw [iteratedDeriv_fun_mul (by fun_prop) hf] + simp only [iteratedDeriv_fun_pow_zero] + by_cases hm : m ≤ n + · simp [Finset.sum_ite_eq', hm] + · simp [Finset.sum_ite_eq', hm, Nat.choose_eq_zero_of_lt (lt_of_not_ge hm)] diff --git a/RealRooted/Mathlib/Analysis/MellinTransform/LogMoments.lean b/RealRooted/Mathlib/Analysis/MellinTransform/LogMoments.lean new file mode 100644 index 000000000..7b78cf937 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/MellinTransform/LogMoments.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 The RealRooted contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The RealRooted contributors +-/ +module + +import Mathlib.Analysis.MellinTransform +public import Mathlib.MeasureTheory.Measure.Haar.OfBasis +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.MeasureTheory.Integral.IntegrableOn +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import TauCeti.Analysis.MellinTransform.UpperTail +import Mathlib.Analysis.Complex.Asymptotics +import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas + +/-! +# Logarithmic moments of rapidly decreasing Mellin kernels + +Every derivative of an upper Mellin integral is obtained by multiplying its +kernel by the corresponding power of the logarithm. +-/ + +public section + +open Complex Set Filter MeasureTheory Asymptotics +open scoped Topology + +private theorem isBigO_mul_log_pow {f : ℝ → ℂ} + (hf : ∀ r : ℝ, f =O[atTop] fun t => t ^ r) (n : ℕ) (r : ℝ) : + (fun t => f t * (Real.log t : ℂ) ^ n) =O[atTop] fun t => t ^ r := by + have hl : (fun t : ℝ => (Real.log t : ℂ) ^ n) =O[atTop] fun t => t ^ (1 : ℝ) := by + simpa only [← ofReal_pow, isBigO_ofReal_left, Real.rpow_natCast] using + (isLittleO_log_rpow_rpow_atTop (n : ℝ) (by norm_num : (0 : ℝ) < 1)).isBigO + refine ((hf (r - 1)).mul hl).congr' EventuallyEq.rfl ?_ + filter_upwards [eventually_gt_atTop (0 : ℝ)] with t ht + rw [← Real.rpow_add ht] + congr 1 + ring + +private theorem continuousOn_mul_log_pow {f : ℝ → ℂ} + (hf : ContinuousOn f (Ici 1)) (n : ℕ) : + ContinuousOn (fun t => f t * (Real.log t : ℂ) ^ n) (Ici 1) := + hf.mul ((continuous_ofReal.comp_continuousOn + (Real.continuousOn_log.mono (fun _ ht => ne_of_gt (zero_lt_one.trans_le ht)))).pow n) + +/-- All logarithmic moments of a rapidly decreasing continuous kernel are integrable. -/ +theorem integrableOn_mul_log_pow_cpow {f : ℝ → ℂ} + (hc : ContinuousOn f (Ici 1)) (hO : ∀ r : ℝ, f =O[atTop] fun t => t ^ r) + (n : ℕ) (s : ℂ) : + IntegrableOn (fun t : ℝ => f t * (Real.log t : ℂ) ^ n * (t : ℂ) ^ (s - 1)) + (Ioi 1) := by + have h := TauCeti.integrableOn_mul_cpow_of_isBigO + ((continuousOn_mul_log_pow hc n).locallyIntegrableOn measurableSet_Ici) + (isBigO_mul_log_pow hO n ((-s).re - 1)) (s := -s) (sub_one_lt _) + simpa only [neg_add_rev, neg_neg, sub_eq_add_neg, add_comm] using h + +/-- Differentiation adds one logarithmic factor to an upper Mellin integral. -/ +theorem hasDerivAt_integral_mul_log_pow_cpow {f : ℝ → ℂ} + (hc : ContinuousOn f (Ici 1)) (hO : ∀ r : ℝ, f =O[atTop] fun t => t ^ r) + (n : ℕ) (s : ℂ) : + HasDerivAt (fun z : ℂ => ∫ t in Ioi (1 : ℝ), + f t * (Real.log t : ℂ) ^ n * (t : ℂ) ^ (z - 1)) + (∫ t in Ioi (1 : ℝ), f t * (Real.log t : ℂ) ^ (n + 1) * (t : ℂ) ^ (s - 1)) s := by + have h := (TauCeti.hasDerivAt_integral_mul_cpow_of_isBigO + ((continuousOn_mul_log_pow hc n).locallyIntegrableOn measurableSet_Ici) + (isBigO_mul_log_pow hO n ((-s).re - 1)) (s := -s) (sub_one_lt _)).comp s + (hasDerivAt_id' s).neg + simpa only [Function.comp_def, neg_add_rev, neg_neg, neg_mul, mul_neg, + mul_one, neg_neg, sub_eq_add_neg, add_comm, pow_succ, mul_assoc] using h + +/-- Iterated differentiation under a rapidly decreasing upper Mellin integral. -/ +theorem iteratedDeriv_integral_mul_cpow {f : ℝ → ℂ} + (hc : ContinuousOn f (Ici 1)) (hO : ∀ r : ℝ, f =O[atTop] fun t => t ^ r) + (n : ℕ) (s : ℂ) : + iteratedDeriv n (fun z : ℂ => ∫ t in Ioi (1 : ℝ), f t * (t : ℂ) ^ (z - 1)) s = + ∫ t in Ioi (1 : ℝ), f t * (Real.log t : ℂ) ^ n * (t : ℂ) ^ (s - 1) := by + induction n generalizing s with + | zero => simp + | succ n ih => + rw [iteratedDeriv_succ, funext ih] + exact (hasDerivAt_integral_mul_log_pow_cpow hc hO n s).deriv + +/-- Real logarithmic moments with arbitrary real power weights are integrable. -/ +theorem integrableOn_mul_log_pow_rpow {f : ℝ → ℝ} + (hc : ContinuousOn f (Ici 1)) (hO : ∀ r : ℝ, f =O[atTop] fun t => t ^ r) + (n : ℕ) (r : ℝ) : + IntegrableOn (fun t : ℝ => f t * Real.log t ^ n * t ^ r) (Ioi 1) := by + have h := (integrableOn_mul_log_pow_cpow + (continuous_ofReal.comp_continuousOn hc) + (fun r => isBigO_ofReal_left.mpr (hO r)) n ((r : ℂ) + 1)).re + refine h.congr_fun (fun t ht => ?_) measurableSet_Ioi + simp only [Function.comp_apply, add_sub_cancel_right, ← ofReal_pow, + ← ofReal_cpow (zero_lt_one.trans ht).le, ← ofReal_mul] + rfl + +/-- Multiplication by logarithmic and power weights preserves vanishing at infinity +for a rapidly decreasing function. -/ +theorem tendsto_mul_log_pow_rpow_zero {f : ℝ → ℝ} + (hO : ∀ r : ℝ, f =O[atTop] fun t => t ^ r) (n : ℕ) (r : ℝ) : + Tendsto (fun t : ℝ => f t * Real.log t ^ n * t ^ r) atTop (𝓝 0) := by + have hlog : (fun t => f t * Real.log t ^ n) =O[atTop] fun t => t ^ (-r - 1) := by + have h := isBigO_mul_log_pow (fun r => isBigO_ofReal_left.mpr (hO r)) n (-r - 1) + simpa only [← ofReal_pow, ← ofReal_mul, isBigO_ofReal_left] using h + have hprod := hlog.mul (isBigO_refl (fun t : ℝ => t ^ r) atTop) + have hpow : (fun t : ℝ => t ^ (-r - 1) * t ^ r) =ᶠ[atTop] fun t => t ^ (-1 : ℝ) := by + filter_upwards [eventually_gt_atTop (0 : ℝ)] with t ht + rw [← Real.rpow_add ht] + congr 1 + ring + exact (hprod.congr' EventuallyEq.rfl hpow).trans_tendsto (tendsto_rpow_neg_atTop one_pos) diff --git a/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Kernel.lean b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Kernel.lean new file mode 100644 index 000000000..c308947f3 --- /dev/null +++ b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Kernel.lean @@ -0,0 +1,166 @@ +/- +Copyright (c) 2026 The RealRooted contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The RealRooted contributors +-/ +module + +public import Mathlib.NumberTheory.LSeries.HurwitzZetaEven +import Mathlib.Analysis.Calculus.SmoothSeries +import TauCeti.Analysis.SpecialFunctions.Exp.StretchedDecay + +/-! +# Positivity and decay of the Riemann theta kernel + +The theta kernel with its constant term removed is positive and its derivative +is bounded above by minus pi times the kernel. +-/ + +@[expose] public section + +open Real Filter Asymptotics Set HurwitzZeta +open scoped Topology + +/-- The real theta kernel with its constant term removed. -/ +noncomputable def riemannThetaKernel (t : ℝ) : ℝ := evenKernel 0 t - 1 + +/-- The derivative series of the theta kernel. -/ +noncomputable def riemannThetaKernelDeriv (t : ℝ) : ℝ := + ∑' n : ℕ, -2 * π * (n + 1 : ℝ) ^ 2 * exp (-π * (n + 1 : ℝ) ^ 2 * t) + +/-- The positive Gaussian series for the theta kernel. -/ +theorem hasSum_riemannThetaKernel {t : ℝ} (ht : 0 < t) : + HasSum (fun n : ℕ => 2 * exp (-π * (n + 1 : ℝ) ^ 2 * t)) + (riemannThetaKernel t) := by + simpa [riemannThetaKernel, evenKernel_eq_cosKernel_of_zero] using hasSum_nat_cosKernel₀ 0 ht + +/-- The theta kernel is strictly positive on the positive ray. -/ +theorem riemannThetaKernel_pos {t : ℝ} (ht : 0 < t) : 0 < riemannThetaKernel t := by + rw [← (hasSum_riemannThetaKernel ht).tsum_eq] + exact lt_of_lt_of_le (by positivity) + ((hasSum_riemannThetaKernel ht).summable.le_tsum 0 (fun _ _ => by positivity)) + +/-- The theta kernel is continuous on the positive ray. -/ +theorem continuousOn_riemannThetaKernel : ContinuousOn riemannThetaKernel (Ioi 0) := + (continuousOn_evenKernel 0).sub continuousOn_const + +/-- The kernel decreases faster than every real power at infinity. -/ +theorem isBigO_riemannThetaKernel_rpow (r : ℝ) : + riemannThetaKernel =O[atTop] fun t => t ^ r := by + obtain ⟨p, hp, h⟩ := isBigO_atTop_evenKernel_sub 0 + apply TauCeti.isBigO_rpow_of_isBigO_exp_neg hp one_pos (α := 1) _ r + change (fun t => evenKernel 0 t - 1) =O[atTop] _ + simpa using h + +private theorem summable_theta_weight {t : ℝ} (ht : 0 < t) : + Summable (fun n : ℕ => (n + 1 : ℝ) ^ 2 * exp (-π * (n + 1 : ℝ) ^ 2 * t)) := by + have hinj : Function.Injective (fun n : ℕ => (n + 1 : ℤ)) := by + intro a b hab + exact_mod_cast add_right_cancel hab + have h := (summable_pow_mul_jacobiTheta₂_term_bound 0 ht 2).comp_injective hinj + convert h using 1 + funext n + dsimp only [Function.comp_apply] + push_cast + rw [abs_of_nonneg (by positivity : 0 ≤ (n + 1 : ℝ))] + congr 2 + ring + +private theorem summable_theta_deriv {t : ℝ} (ht : 0 < t) : + Summable (fun n : ℕ => -2 * π * (n + 1 : ℝ) ^ 2 * exp (-π * (n + 1 : ℝ) ^ 2 * t)) := by + simpa only [mul_assoc] using (summable_theta_weight ht).mul_left (-2 * π) + +/-- Differentiation of the theta series on the positive ray. -/ +theorem hasDerivAt_riemannThetaKernel {t : ℝ} (ht : 0 < t) : + HasDerivAt riemannThetaKernel (riemannThetaKernelDeriv t) t := by + let g (n : ℕ) (u : ℝ) := 2 * exp (-π * (n + 1 : ℝ) ^ 2 * u) + let g' (n : ℕ) (u : ℝ) := -2 * π * (n + 1 : ℝ) ^ 2 * exp (-π * (n + 1 : ℝ) ^ 2 * u) + have hbound := (summable_theta_weight (half_pos ht)).mul_left (2 * π) + have hg (n : ℕ) (u : ℝ) : HasDerivAt (g n) (g' n u) u := by + convert (((hasDerivAt_id' u).const_mul (-π * (n + 1 : ℝ) ^ 2)).exp).const_mul 2 using 1 + dsimp [g, g'] + ring + have h := hasDerivAt_tsum_of_isPreconnected hbound isOpen_Ioi (convex_Ioi _).isPreconnected + (fun n u _ => hg n u) (fun n u hu => ?_) + (show t ∈ Ioi (t / 2) by change t / 2 < t; linarith) + (hasSum_riemannThetaKernel ht).summable + (show t ∈ Ioi (t / 2) by change t / 2 < t; linarith) + · apply h.congr_of_eventuallyEq + filter_upwards [eventually_gt_nhds ht] with u hu + exact (hasSum_riemannThetaKernel hu).tsum_eq.symm + · dsimp [g'] + rw [abs_mul, abs_mul, abs_mul, abs_neg, abs_of_pos (by norm_num : (0 : ℝ) < 2), + abs_of_pos pi_pos, abs_of_nonneg (sq_nonneg _), abs_of_pos (exp_pos _)] + simp only [mul_assoc] + have he : exp (-π * (n + 1 : ℝ) ^ 2 * u) ≤ + exp (-π * (n + 1 : ℝ) ^ 2 * (t / 2)) := by + apply exp_le_exp.mpr + exact mul_le_mul_of_nonpos_left hu.le + (mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr pi_pos.le) (sq_nonneg _)) + simpa only [mul_assoc] using mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left + (mul_le_mul_of_nonneg_left he (sq_nonneg _)) pi_pos.le) (by norm_num : (0 : ℝ) ≤ 2) + +/-- Each Gaussian summand decreases at least at rate pi. -/ +theorem riemannThetaKernelDeriv_le {t : ℝ} (ht : 0 < t) : + riemannThetaKernelDeriv t ≤ -π * riemannThetaKernel t := by + rw [riemannThetaKernelDeriv, ← (hasSum_riemannThetaKernel ht).tsum_eq, ← tsum_mul_left] + apply Summable.tsum_le_tsum _ (summable_theta_deriv ht) + ((hasSum_riemannThetaKernel ht).summable.mul_left (-π)) + intro n + have hn : 1 ≤ (n + 1 : ℝ) ^ 2 := by nlinarith [Nat.cast_nonneg (α := ℝ) n] + nlinarith [mul_nonneg (mul_nonneg pi_pos.le (exp_pos (-π * (n + 1 : ℝ) ^ 2 * t)).le) + (sub_nonneg.mpr hn)] + +private theorem theta_weight_le {t : ℝ} (ht : 1 ≤ t) (n : ℕ) : + (n + 1 : ℝ) ^ 2 * exp (-π * (n + 1 : ℝ) ^ 2 * t) ≤ + ((n + 1 : ℝ) ^ 2 * exp (-π * (n + 1 : ℝ) ^ 2 * (1 / 2))) * exp (-(π / 2) * t) := by + conv_rhs => rw [mul_assoc, ← exp_add] + apply mul_le_mul_of_nonneg_left _ (sq_nonneg _) + apply exp_le_exp.mpr + have hn : 1 ≤ (n + 1 : ℝ) ^ 2 := by nlinarith [Nat.cast_nonneg (α := ℝ) n] + have h₁ := mul_le_mul_of_nonneg_left ht (sq_nonneg (n + 1 : ℝ)) + have h₂ := mul_le_mul_of_nonneg_right hn (zero_le_one.trans ht) + have h₃ : (n + 1 : ℝ) ^ 2 + t ≤ 2 * (n + 1 : ℝ) ^ 2 * t := by nlinarith + nlinarith [mul_le_mul_of_nonneg_left h₃ pi_pos.le] + +private theorem isBigO_riemannThetaKernelDeriv_exp : + riemannThetaKernelDeriv =O[atTop] fun t => exp (-(π / 2) * t) := by + let W (t : ℝ) := ∑' n : ℕ, (n + 1 : ℝ) ^ 2 * exp (-π * (n + 1 : ℝ) ^ 2 * t) + have hD (t : ℝ) : riemannThetaKernelDeriv t = (-2 * π) * W t := by + simp only [riemannThetaKernelDeriv, W, mul_assoc, tsum_mul_left] + refine IsBigO.of_bound (2 * π * W (1 / 2)) ?_ + filter_upwards [eventually_ge_atTop (1 : ℝ)] with t ht + have ht0 := zero_lt_one.trans_le ht + have hW : W t ≤ W (1 / 2) * exp (-(π / 2) * t) := by + dsimp only [W] + rw [← tsum_mul_right] + exact Summable.tsum_le_tsum (theta_weight_le ht) (summable_theta_weight ht0) + ((summable_theta_weight (by norm_num : (0 : ℝ) < 1 / 2)).mul_right _) + rw [hD, norm_mul, Real.norm_of_nonneg (show 0 ≤ W t from tsum_nonneg fun _ => by positivity), + norm_mul, norm_neg, Real.norm_of_nonneg pi_pos.le, Real.norm_of_nonneg (exp_pos _).le] + norm_num only [Real.norm_ofNat] + nlinarith [mul_le_mul_of_nonneg_left hW (show 0 ≤ 2 * π by positivity)] + +/-- The derivative kernel also decreases faster than every real power. -/ +theorem isBigO_riemannThetaKernelDeriv_rpow (r : ℝ) : + riemannThetaKernelDeriv =O[atTop] fun t => t ^ r := by + apply TauCeti.isBigO_rpow_of_isBigO_exp_neg (half_pos pi_pos) one_pos (α := 1) _ r + simpa using isBigO_riemannThetaKernelDeriv_exp + +/-- The derivative series is continuous on the upper integration ray. -/ +theorem continuousOn_riemannThetaKernelDeriv : + ContinuousOn riemannThetaKernelDeriv (Ici 1) := by + apply continuousOn_tsum (fun _ => by fun_prop) + ((summable_theta_weight zero_lt_one).mul_left (2 * π)) + intro n t ht + have he : exp (-π * (n + 1 : ℝ) ^ 2 * t) ≤ exp (-π * (n + 1 : ℝ) ^ 2 * 1) := by + apply exp_le_exp.mpr + exact mul_le_mul_of_nonpos_left ht + (mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr pi_pos.le) (sq_nonneg _)) + have hn : -2 * π * (n + 1 : ℝ) ^ 2 * exp (-π * (n + 1 : ℝ) ^ 2 * t) ≤ 0 := by + apply mul_nonpos_of_nonpos_of_nonneg _ (exp_pos _).le + exact mul_nonpos_of_nonpos_of_nonneg (by linarith [pi_pos]) (sq_nonneg _) + rw [Real.norm_eq_abs, abs_of_nonpos hn] + convert mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left he (sq_nonneg _)) + (show 0 ≤ 2 * π by positivity) using 1 + ring diff --git a/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Mellin.lean b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Mellin.lean new file mode 100644 index 000000000..25576308d --- /dev/null +++ b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Mellin.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 The RealRooted contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The RealRooted contributors +-/ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Moments +public import Mathlib.NumberTheory.LSeries.RiemannZeta +import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.Mathlib.Analysis.MellinTransform.LogMoments +import TauCeti.NumberTheory.LSeries.MellinGrowth +import Mathlib.Analysis.Complex.Asymptotics +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas +import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Central derivatives of completed zeta as theta moments + +Splitting the completed-zeta integral at one and using the functional equation +expresses its even central derivatives by positive logarithmic theta moments. +-/ + +@[expose] public section + +open Complex Set MeasureTheory HurwitzZeta Filter Asymptotics + +/-- The upper Mellin integral of the Riemann theta kernel. -/ +noncomputable def riemannThetaMellin (s : ℂ) : ℂ := + ∫ t in Ioi (1 : ℝ), (riemannThetaKernel t : ℂ) * (t : ℂ) ^ (s - 1) + +private theorem kernel_continuous : + ContinuousOn (fun t => (riemannThetaKernel t : ℂ)) (Ici 1) := + continuous_ofReal.comp_continuousOn + (continuousOn_riemannThetaKernel.mono (fun _ ht => zero_lt_one.trans_le ht)) + +private theorem kernel_isBigO (r : ℝ) : + (fun t => (riemannThetaKernel t : ℂ)) =O[atTop] fun t => t ^ r := + isBigO_ofReal_left.mpr (isBigO_riemannThetaKernel_rpow r) + +/-- The upper Mellin integral of the theta kernel is entire. -/ +theorem differentiable_riemannThetaMellin : Differentiable ℂ riemannThetaMellin := by + intro s + change DifferentiableAt ℂ + (fun z => ∫ t in Ioi (1 : ℝ), (riemannThetaKernel t : ℂ) * (t : ℂ) ^ (z - 1)) s + have h := (hasDerivAt_integral_mul_log_pow_cpow kernel_continuous kernel_isBigO 0 s) + simpa only [pow_zero, mul_one] using h.differentiableAt + +/-- At exponent one quarter, all derivatives of the Mellin integral are real moments. -/ +theorem iteratedDeriv_riemannThetaMellin_quarter (n : ℕ) : + iteratedDeriv n riemannThetaMellin (1 / 4) = (riemannXiMoment n : ℂ) := by + change iteratedDeriv n (fun z => ∫ t in Ioi (1 : ℝ), + (riemannThetaKernel t : ℂ) * (t : ℂ) ^ (z - 1)) (1 / 4) = _ + rw [iteratedDeriv_integral_mul_cpow kernel_continuous kernel_isBigO, + riemannXiMoment, ← integral_complex_ofReal] + apply setIntegral_congr_fun measurableSet_Ioi + intro t ht + dsimp only + have ht0 := (zero_lt_one.trans ht).le + rw [show (1 / 4 : ℂ) - 1 = ((-3 / 4 : ℝ) : ℂ) by push_cast; ring, + ← ofReal_cpow ht0] + push_cast + rfl + +/-- The split Mellin representation of the entire part of completed zeta. -/ +theorem completedRiemannZeta₀_eq_mellin (s : ℂ) : + completedRiemannZeta₀ s = + (riemannThetaMellin (s / 2) + riemannThetaMellin ((1 - s) / 2)) / 2 := by + have hi (z : ℂ) : IntegrableOn + (fun t : ℝ => (t : ℂ) ^ (z - 1) * (riemannThetaKernel t : ℂ)) (Ioi 1) := by + simpa only [pow_zero, mul_one, mul_comm] using + integrableOn_mul_log_pow_cpow kernel_continuous kernel_isBigO 0 z + have h := (hurwitzEvenFEPair 0).Λ₀_eq_integral_add_smul_integral (s / 2) + (by simpa [hurwitzEvenFEPair, riemannThetaKernel, Function.comp_def] using hi (s / 2)) + (by simpa [hurwitzEvenFEPair, riemannThetaKernel, Function.comp_def, + evenKernel_eq_cosKernel_of_zero] using hi ((1 / 2 : ℂ) - s / 2)) + rw [completedRiemannZeta₀, completedHurwitzZetaEven₀, h] + have he : (1 / 2 : ℂ) - s / 2 = (1 - s) / 2 := by ring + simp only [hurwitzEvenFEPair, Function.comp_apply, ite_true, ofReal_div, ofReal_one, + ofReal_ofNat, he, smul_eq_mul, one_mul, riemannThetaMellin, riemannThetaKernel, + ofReal_sub, evenKernel_eq_cosKernel_of_zero, mul_comm] + +private theorem deriv_affine_mellin (a b : ℂ) (n : ℕ) : + iteratedDeriv n (fun z => riemannThetaMellin (b + a * z)) 0 = + a ^ n * iteratedDeriv n riemannThetaMellin b := by + have hd : ContDiff ℂ n (fun z => riemannThetaMellin (b + z)) := + (differentiable_riemannThetaMellin.comp (differentiable_id.const_add b)).contDiff + have h := congrFun (iteratedDeriv_comp_const_mul hd a) 0 + simpa only [mul_zero, iteratedDeriv_comp_const_add, add_zero] using h + +/-- Even central derivatives of the completed zeta function are theta moments. -/ +theorem iteratedDeriv_completedRiemannZeta₀_even (n : ℕ) : + iteratedDeriv (2 * n) completedRiemannZeta₀ (1 / 2) = + (1 / 2 : ℂ) ^ (2 * n) * (riemannXiMoment (2 * n) : ℂ) := by + have heq : (fun z => completedRiemannZeta₀ (1 / 2 + z)) = fun z => + (riemannThetaMellin (1 / 4 + (1 / 2) * z) + + riemannThetaMellin (1 / 4 + (-1 / 2) * z)) / 2 := by + funext z + rw [completedRiemannZeta₀_eq_mellin] + congr 2 <;> congr 1 <;> ring + have h := congrArg (fun f : ℂ → ℂ => iteratedDeriv (2 * n) f 0) heq + have hd (a : ℂ) : ContDiffAt ℂ (2 * n) + (fun z => riemannThetaMellin (1 / 4 + a * z)) 0 := + (differentiable_riemannThetaMellin.comp (by fun_prop)).contDiff.contDiffAt + simp only [iteratedDeriv_comp_const_add, add_zero] at h + rw [iteratedDeriv_div_const, + iteratedDeriv_fun_add (hd _) (hd _), deriv_affine_mellin, + deriv_affine_mellin, iteratedDeriv_riemannThetaMellin_quarter] at h + have hn : (-1 / 2 : ℂ) ^ (2 * n) = (1 / 2 : ℂ) ^ (2 * n) := by + rw [neg_div, neg_pow, Even.neg_one_pow (even_two_mul n), one_mul] + rw [hn] at h + exact h.trans (by ring) diff --git a/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Moments.lean b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Moments.lean new file mode 100644 index 000000000..834e51811 --- /dev/null +++ b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Moments.lean @@ -0,0 +1,134 @@ +/- +Copyright (c) 2026 The RealRooted contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The RealRooted contributors +-/ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Kernel +import Mathlib.MeasureTheory.Integral.Bochner.Set +import RealRooted.Mathlib.Analysis.MellinTransform.LogMoments +import Mathlib.MeasureTheory.Integral.IntegralEqImproper +import Mathlib.Analysis.SpecialFunctions.Pow.Deriv + +/-! +# Logarithmic moments of the theta kernel + +The positive moments at exponent `1/4` obey `M(n+1) ≤ (n+1) M(n)`. +This deliberately coarse bound suffices for positivity of the even xi derivatives. +-/ + +@[expose] public section + +open Real Set Filter MeasureTheory +open scoped Topology + +/-- The logarithmic moments entering the central derivatives of completed zeta. -/ +noncomputable def riemannXiMoment (n : ℕ) : ℝ := + ∫ t in Ioi (1 : ℝ), riemannThetaKernel t * log t ^ n * t ^ (-3 / 4 : ℝ) + +private theorem kernel_continuous : ContinuousOn riemannThetaKernel (Ici 1) := + continuousOn_riemannThetaKernel.mono (fun _ ht => zero_lt_one.trans_le ht) + +private theorem moment_integrable (n : ℕ) : + IntegrableOn (fun t : ℝ => riemannThetaKernel t * log t ^ n * t ^ (-3 / 4 : ℝ)) + (Ioi 1) := + integrableOn_mul_log_pow_rpow kernel_continuous isBigO_riemannThetaKernel_rpow n _ + +/-- Every logarithmic theta moment is strictly positive. -/ +theorem riemannXiMoment_pos (n : ℕ) : 0 < riemannXiMoment n := by + have hp (t : ℝ) (ht : t ∈ Ioi 1) : + 0 < riemannThetaKernel t * log t ^ n * t ^ (-3 / 4 : ℝ) := + mul_pos (mul_pos (riemannThetaKernel_pos (zero_lt_one.trans ht)) + (pow_pos (log_pos ht) n)) (rpow_pos_of_pos (zero_lt_one.trans ht) _) + rw [riemannXiMoment, setIntegral_pos_iff_support_of_nonneg_ae + (ae_restrict_of_forall_mem measurableSet_Ioi fun t ht => (hp t ht).le) (moment_integrable n)] + have he : Function.support (fun t : ℝ => riemannThetaKernel t * log t ^ n * + t ^ (-3 / 4 : ℝ)) ∩ Ioi 1 = Ioi 1 := by + apply inter_eq_right.mpr + exact fun t ht => (hp t ht).ne' + rw [he] + simp + +private theorem quarter_rpow {t : ℝ} (ht : 0 < t) : + t ^ (1 / 4 : ℝ) = t * t ^ (-3 / 4 : ℝ) := by + rw [show (1 / 4 : ℝ) = 1 + (-3 / 4) by norm_num, rpow_add ht, rpow_one] + +private theorem weighted_kernel_deriv_le {t : ℝ} (ht : 1 < t) : + riemannThetaKernelDeriv t * t ^ (1 / 4 : ℝ) + + riemannThetaKernel t * (1 / 4 : ℝ) * t ^ (-3 / 4 : ℝ) ≤ + -(riemannThetaKernel t * t ^ (-3 / 4 : ℝ)) := by + have ht0 := zero_lt_one.trans ht + have hf := (riemannThetaKernel_pos ht0).le + have hd := riemannThetaKernelDeriv_le ht0 + have hd0 : riemannThetaKernelDeriv t ≤ 0 := + hd.trans (mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr pi_pos.le) hf) + have htd := mul_le_mul_of_nonpos_right ht.le hd0 + have hp := mul_nonneg (sub_nonneg.mpr two_le_pi) hf + have hmain : t * riemannThetaKernelDeriv t + riemannThetaKernel t / 4 ≤ + -riemannThetaKernel t := by nlinarith + rw [quarter_rpow ht0] + nlinarith [mul_le_mul_of_nonneg_right hmain (rpow_pos_of_pos ht0 (-3 / 4 : ℝ)).le] + +/-- Consecutive moments satisfy a factorial bound, obtained by integration by parts. -/ +theorem riemannXiMoment_succ_le (n : ℕ) : + riemannXiMoment (n + 1) ≤ (n + 1 : ℝ) * riemannXiMoment n := by + let u (t : ℝ) := riemannThetaKernel t * t ^ (1 / 4 : ℝ) + let u' (t : ℝ) := riemannThetaKernelDeriv t * t ^ (1 / 4 : ℝ) + + riemannThetaKernel t * (1 / 4 : ℝ) * t ^ (-3 / 4 : ℝ) + let v (t : ℝ) := log t ^ (n + 1) + let v' (t : ℝ) := (n + 1 : ℝ) * log t ^ n / t + have hu (t : ℝ) (ht : t ∈ Ioi 1) : HasDerivAt u (u' t) t := by + convert (hasDerivAt_riemannThetaKernel (zero_lt_one.trans ht)).fun_mul + (hasDerivAt_rpow_const (p := (1 / 4 : ℝ)) (Or.inl (zero_lt_one.trans ht).ne')) using 1 + dsimp [u, u'] + norm_num + ring + have hv (t : ℝ) (ht : t ∈ Ioi 1) : HasDerivAt v (v' t) t := by + convert ((hasDerivAt_log (zero_lt_one.trans ht).ne').pow (n + 1)) using 1 + dsimp [v, v'] + simp only [Nat.cast_add, Nat.cast_one] + ring + have huv (t : ℝ) (ht : t ∈ Ioi 1) : + u t * v' t = (n + 1 : ℝ) * + (riemannThetaKernel t * log t ^ n * t ^ (-3 / 4 : ℝ)) := by + dsimp [u, v'] + rw [quarter_rpow (zero_lt_one.trans ht)] + field_simp [(zero_lt_one.trans ht).ne'] + have hu'v (t : ℝ) : u' t * v t = + riemannThetaKernelDeriv t * log t ^ (n + 1) * t ^ (1 / 4 : ℝ) + + (1 / 4 : ℝ) * (riemannThetaKernel t * log t ^ (n + 1) * t ^ (-3 / 4 : ℝ)) := by + dsimp [u', v] + ring + have hi₁ : IntegrableOn (u * v') (Ioi 1) := by + apply IntegrableOn.congr_fun ((moment_integrable n).const_mul (n + 1 : ℝ)) + (fun t ht => (huv t ht).symm) measurableSet_Ioi + have hi₂ : IntegrableOn (u' * v) (Ioi 1) := by + apply ((integrableOn_mul_log_pow_rpow continuousOn_riemannThetaKernelDeriv + isBigO_riemannThetaKernelDeriv_rpow (n + 1) (1 / 4)).add + ((moment_integrable (n + 1)).const_mul (1 / 4 : ℝ))).congr_fun + (fun t _ => (hu'v t).symm) measurableSet_Ioi + have hc : ContinuousAt riemannThetaKernel 1 := + continuousOn_riemannThetaKernel.continuousAt (Ioi_mem_nhds zero_lt_one) + have hzero : Tendsto (u * v) (𝓝[>] 1) (𝓝 0) := by + have h : ContinuousAt (u * v) 1 := by + dsimp [u, v] + fun_prop (disch := norm_num) + simpa [u, v] using h.tendsto.mono_left nhdsWithin_le_nhds + have hinfty : Tendsto (u * v) atTop (𝓝 0) := by + convert tendsto_mul_log_pow_rpow_zero isBigO_riemannThetaKernel_rpow (n + 1) (1 / 4) using 1 + funext t + dsimp [u, v] + ring + have hibp := integral_Ioi_mul_deriv_eq_deriv_mul hu hv hi₁ hi₂ hzero hinfty + have heval : (∫ t in Ioi (1 : ℝ), u t * v' t) = (n + 1 : ℝ) * riemannXiMoment n := by + rw [setIntegral_congr_fun measurableSet_Ioi huv, integral_const_mul] + rfl + rw [heval, sub_zero, zero_sub] at hibp + rw [riemannXiMoment, hibp, ← integral_neg] + apply integral_mono_ae (moment_integrable (n + 1)) hi₂.neg + filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + have hlog : 0 ≤ log t ^ (n + 1) := pow_nonneg (log_pos ht).le _ + have h := mul_le_mul_of_nonneg_right (weighted_kernel_deriv_le ht) hlog + dsimp [u', v] + nlinarith [h] diff --git a/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Positivity.lean b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Positivity.lean new file mode 100644 index 000000000..c2ba7b764 --- /dev/null +++ b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Positivity.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 The RealRooted contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The RealRooted contributors +-/ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Mellin +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.MulPow +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas +import Mathlib.Analysis.Complex.CauchyIntegral +import Mathlib.Topology.Order.IntermediateValue + +/-! +# Positivity of the normalized xi coefficients + +The constant coefficient is positive because xi is real and nonzero on the real +axis and equals `1/2` at one. Higher even derivatives are positive by the theta +moment bound. None of these positivity statements assumes RH. +-/ + +public section + +open Complex +open scoped ComplexConjugate + +/-- The constant normalized xi coefficient is strictly positive, unconditionally. -/ +theorem riemannXiCoeff_zero_pos : 0 < riemannXiCoeff 0 := by + rw [riemannXiCoeff_eq] + simp only [Nat.mul_zero, Nat.factorial_zero, Nat.cast_one, div_one, one_mul, iteratedDeriv_zero] + have hc : Continuous (fun x : ℝ => (riemannXi (x : ℂ)).re) := + continuous_re.comp (differentiable_riemannXi.continuous.comp continuous_ofReal) + by_contra! h + have hleft : (riemannXi ((1 / 2 : ℝ) : ℂ)).re ≤ 0 := by simpa using h + have hright : 0 ≤ (riemannXi ((1 : ℝ) : ℂ)).re := by norm_num [riemannXi_one] + obtain ⟨x, _, hx⟩ := intermediate_value_Icc (by norm_num : (1 / 2 : ℝ) ≤ 1) + hc.continuousOn ⟨hleft, hright⟩ + change (riemannXi (x : ℂ)).re = 0 at hx + have hr : ((riemannXi (x : ℂ)).re : ℂ) = riemannXi (x : ℂ) := + conj_eq_iff_re.mp (by simpa using (riemannXi_conj (x : ℂ)).symm) + exact riemannXi_ofReal_ne_zero x (by rw [← hr, hx, ofReal_zero]) + +/-- Differentiating the pole-removing quadratic gives the central xi derivatives. -/ +theorem iteratedDeriv_riemannXi_add_two (n : ℕ) : + iteratedDeriv (n + 2) riemannXi (1 / 2) = + ((n + 2 : ℂ) * (n + 1) * iteratedDeriv n completedRiemannZeta₀ (1 / 2) - + (1 / 4 : ℂ) * iteratedDeriv (n + 2) completedRiemannZeta₀ (1 / 2)) / 2 := by + let f (z : ℂ) := completedRiemannZeta₀ (1 / 2 + z) + have hf : Differentiable ℂ f := differentiable_completedZeta₀.comp + (differentiable_id.const_add _) + have heq : (fun z => riemannXi (1 / 2 + z)) = fun z => + (1 + (z ^ 2 * f z - (1 / 4 : ℂ) * f z)) / 2 := by + funext z + simp only [riemannXi, f] + ring + have h := congrArg (fun g : ℂ → ℂ => iteratedDeriv (n + 2) g 0) heq + have hcf : ContDiff ℂ (n + 2) f := hf.contDiff + simp only [iteratedDeriv_comp_const_add, add_zero] at h + rw [iteratedDeriv_div_const, iteratedDeriv_const_add (by lia), + iteratedDeriv_fun_sub ((by fun_prop : ContDiff ℂ (n + 2) (fun z : ℂ => z ^ 2)).mul + hcf).contDiffAt ((contDiff_const.mul hcf).contDiffAt), + iteratedDeriv_pow_mul_zero hf.contDiff.contDiffAt, + iteratedDeriv_const_mul_field] at h + have hc : ((n + 2).choose 2 : ℂ) * 2 = (n + 2 : ℂ) * (n + 1) := by + have hn := (Nat.add_one_mul_choose_eq (n + 1) 1).symm + exact_mod_cast (show (n + 2).choose 2 * 2 = (n + 2) * (n + 1) by + simpa only [Nat.choose_one_right, Nat.add_assoc] using hn) + simp only [Nat.add_sub_cancel, Nat.factorial_two, Nat.cast_ofNat, hc, f, + iteratedDeriv_comp_const_add, add_zero] at h + exact h + +private theorem even_derivative_succ_pos (n : ℕ) : + 0 < (iteratedDeriv (2 * (n + 1)) riemannXi (1 / 2)).re := by + have h := iteratedDeriv_riemannXi_add_two (2 * n) + rw [show 2 * n + 2 = 2 * (n + 1) by lia, + iteratedDeriv_completedRiemannZeta₀_even, + iteratedDeriv_completedRiemannZeta₀_even] at h + have hr : (iteratedDeriv (2 * (n + 1)) riemannXi (1 / 2)).re = + ((2 * n + 2 : ℝ) * (2 * n + 1) * ((1 / 2 : ℝ) ^ (2 * n) * + riemannXiMoment (2 * n)) - (1 / 4 : ℝ) * + ((1 / 2 : ℝ) ^ (2 * (n + 1)) * riemannXiMoment (2 * (n + 1)))) / 2 := by + have he := h.trans (show _ = ((((2 * n + 2 : ℝ) * (2 * n + 1) * + ((1 / 2 : ℝ) ^ (2 * n) * riemannXiMoment (2 * n)) - (1 / 4 : ℝ) * + ((1 / 2 : ℝ) ^ (2 * (n + 1)) * riemannXiMoment (2 * (n + 1)))) / 2 : ℝ) : ℂ) by + push_cast + rfl) + exact congrArg Complex.re he + have hbound : riemannXiMoment (2 * (n + 1)) ≤ + (2 * n + 2 : ℝ) * (2 * n + 1) * riemannXiMoment (2 * n) := by + have h₁ := riemannXiMoment_succ_le (2 * n) + have h₂ := riemannXiMoment_succ_le (2 * n + 1) + have h₃ := mul_le_mul_of_nonneg_left h₁ (by positivity : (0 : ℝ) ≤ (2 * n + 1 + 1 : ℕ)) + push_cast at h₁ h₂ h₃ + rw [show 2 * n + 1 + 1 = 2 * (n + 1) by lia] at h₂ + nlinarith + have hpos : 0 < (2 * n + 2 : ℝ) * (2 * n + 1) * riemannXiMoment (2 * n) := + mul_pos (by positivity) (riemannXiMoment_pos _) + have hfactor : 0 < (1 / 2 : ℝ) ^ (2 * n) / 2 := by positivity + have hmain : 0 < (2 * n + 2 : ℝ) * (2 * n + 1) * riemannXiMoment (2 * n) - + riemannXiMoment (2 * (n + 1)) / 16 := by linarith + have he : (iteratedDeriv (2 * (n + 1)) riemannXi (1 / 2)).re = + ((1 / 2 : ℝ) ^ (2 * n) / 2) * + ((2 * n + 2 : ℝ) * (2 * n + 1) * riemannXiMoment (2 * n) - + riemannXiMoment (2 * (n + 1)) / 16) := by + rw [hr] + rw [show 2 * (n + 1) = 2 * n + 2 by lia, pow_add] + norm_num + ring + rw [he] + exact mul_pos hfactor hmain + +/-- Every normalized xi coefficient is strictly positive, without assuming RH. -/ +theorem riemannXiCoeff_pos (n : ℕ) : 0 < riemannXiCoeff n := by + cases n with + | zero => exact riemannXiCoeff_zero_pos + | succ n => + rw [riemannXiCoeff_eq] + exact mul_pos (by positivity) (even_derivative_succ_pos n) diff --git a/RealRooted/MultiplierSequence/JensenDerivative.lean b/RealRooted/MultiplierSequence/JensenDerivative.lean new file mode 100644 index 000000000..1dfa2d91e --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenDerivative.lean @@ -0,0 +1,57 @@ +module + +public import RealRooted.MultiplierSequence +import RealRooted.Basic +import Mathlib.Algebra.Polynomial.Derivative +import RealRooted.Derivative.Interlacing + +/-! +# Derivatives of Jensen polynomials + +Differentiation lowers the degree parameter and shifts the coefficient sequence. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Differentiating a Jensen polynomial shifts its coefficient sequence by one. -/ +theorem derivative_jensenPolynomial (d : ℕ) (gamma : ℕ → ℝ) : + (jensenPolynomial (d + 1) gamma).derivative = + C (d + 1 : ℝ) * jensenPolynomial d (fun k => gamma (k + 1)) := by + ext k + simp only [coeff_derivative, coeff_jensenPolynomial, coeff_C_mul] + by_cases hk : k ≤ d + · rw [ite_eq_left (by lia), ite_eq_left hk] + have hc : ((d + 1).choose (k + 1) : ℝ) * (k + 1) = + (d + 1) * (d.choose k : ℝ) := by + exact_mod_cast (Nat.add_one_mul_choose_eq d k).symm + linear_combination gamma (k + 1) * hc + · rw [ite_eq_right (by lia), ite_eq_right hk] + ring + +/-- A nonzero final coefficient makes the degree parameter exact. -/ +theorem natDegree_jensenPolynomial {d : ℕ} {gamma : ℕ → ℝ} (hd : gamma d ≠ 0) : + (jensenPolynomial d gamma).natDegree = d := + natDegree_eq_of_le_of_coeff_ne_zero (natDegree_jensenPolynomial_le d gamma) + (by simpa using hd) + +/-- Consecutive degree and shift parameters weakly interlace whenever the larger +Jensen polynomial splits. The zero-aware relation covers vanishing coefficients. -/ +theorem jensenPolynomial_shift_interl {d : ℕ} {gamma : ℕ → ℝ} + (h : (jensenPolynomial (d + 1) gamma).Splits) : + Interl (jensenPolynomial d (fun k => gamma (k + 1))) + (jensenPolynomial (d + 1) gamma) := by + have hi : Interl (jensenPolynomial (d + 1) gamma).derivative + (jensenPolynomial (d + 1) gamma) := by + by_cases hd : (jensenPolynomial (d + 1) gamma).natDegree = 0 + · rw [derivative_eq_zero.mpr hd] + exact interl_zero_left _ + · exact (derivative_interlaces_of_natDegree_ne_zero h hd).toStrictInterl.toInterl + have hscaled := hi.C_mul_left_of_nonneg (a := (d + 1 : ℝ)⁻¹) (by positivity) + simpa only [derivative_jensenPolynomial, ← mul_assoc, ← C_mul, + inv_mul_cancel₀ (by positivity : (d + 1 : ℝ) ≠ 0), C_1, one_mul] using hscaled + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Hermite.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Hermite.lean new file mode 100644 index 000000000..fdf156174 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Hermite.lean @@ -0,0 +1,55 @@ +module + +public import RealRooted.Hermite.Jensen +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlow +import RealRooted.Mathlib.Algebra.Polynomial.Reverse +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# A Hermite form of Jensen's criterion + +All Hermite Jensen polynomials of a real entire function `f` split exactly when +`f(z) exp(-z²)` belongs to the Laguerre–Pólya class. In particular, membership +of `f` itself implies splitting. The converse concerns the Gaussian product. +-/ + +public section + +open Polynomial Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- A Hermite form of Jensen's criterion, with the Gaussian factor explicit. -/ +theorem isLaguerrePolya_mul_exp_neg_sq_iff + {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hconj : ∀ z, f (conj z) = conj (f z)) : + IsLaguerrePolya (fun z => f z * exp (-z ^ 2)) ↔ + ∀ d, (hermiteJensenPolynomial d (fun k => (iteratedDeriv k f 0).re)).Splits := by + let F : ℂ → ℂ := fun z => f z * exp (-z ^ 2) + have hF : Differentiable ℂ F := hf.mul (by fun_prop) + have hFc (z : ℂ) : F (conj z) = conj (F z) := by + simp only [F, hconj, map_mul, ← exp_conj, map_neg, map_pow] + have hg (k : ℕ) := (ofReal_re_iteratedDeriv_zero hconj k).symm + have hb (k : ℕ) := (ofReal_re_iteratedDeriv_zero hFc k).symm + change IsLaguerrePolya F ↔ _ + rw [isLaguerrePolya_iff_jensenPolynomial_splits hF hb] + apply forall_congr' + intro d + rw [hermiteJensenPolynomial_eq_reflect_jensenPolynomial hf hg hb] + rw [← splits_iff_comp_splits_of_natDegree_eq_one + (show (C (2 : ℝ) * X).natDegree = 1 by simp)] + exact (splits_reflect_iff (natDegree_jensenPolynomial_le d _)).symm + +/-- Hermite Jensen polynomials of a Laguerre–Pólya function split over the reals. -/ +theorem IsLaguerrePolya.hermiteJensenPolynomial_splits {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (d : ℕ) : + (hermiteJensenPolynomial d (fun k => (iteratedDeriv k f 0).re)).Splits := by + apply (isLaguerrePolya_mul_exp_neg_sq_iff hf.differentiable hf.conj).mp ?_ d + have h := hf.mul (isLaguerrePolya_exp_neg_mul_sq (a := 1) (by norm_num)) + simpa only [Pi.mul_def, ofReal_one, neg_one_mul] using h + +end RealRooted diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index eccff3623..0a813cb93 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2353,6 +2353,19 @@ public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Hadamard public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen public import RealRooted.RiemannHypothesis +public import RealRooted.Hermite.GeneratingFunction +public import RealRooted.Hermite.Jensen +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.MulPow +public import RealRooted.Mathlib.Analysis.MellinTransform.LogMoments +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Kernel +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Mellin +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Moments +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity +public import RealRooted.MultiplierSequence.JensenDerivative +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Hermite +public import RealRooted.RiemannHypothesis.Hermite +public import RealRooted.RiemannHypothesis.Inequalities +public import RealRooted.RiemannHypothesis.MultiplierSequence /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/Hermite.lean b/RealRooted/RiemannHypothesis/Hermite.lean new file mode 100644 index 000000000..0c4c2caf1 --- /dev/null +++ b/RealRooted/RiemannHypothesis/Hermite.lean @@ -0,0 +1,63 @@ +module + +import RealRooted.RiemannHypothesis +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.Hermite.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Hermite +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros + +/-! +# The Hermite Jensen criterion for the Riemann hypothesis + +This is Theorem 1.2 of Cormac O'Sullivan, *Zeros of Jensen polynomials and +asymptotics for the Riemann xi function* (2021), https://arxiv.org/abs/2007.13582. +The normalization is exactly `Σ binom(d,k) γ(n+k) H_{d-k}(X)`, with physicists' +Hermite polynomials. Already the unshifted family characterizes RH. +-/ + +@[expose] public section + +open Polynomial Complex + +namespace RealRooted + +/-- The Hermite Jensen polynomial of the normalized xi coefficients. -/ +noncomputable def riemannXiHermitePolynomial (d n : ℕ) : ℝ[X] := + hermiteJensenPolynomial d (fun k => riemannXiCoeff (n + k)) + +/-- Under RH, every xi Hermite Jensen polynomial splits over the reals. -/ +theorem riemannXiHermitePolynomial_splits (hRH : RiemannHypothesis) (d n : ℕ) : + (riemannXiHermitePolynomial d n).Splits := by + have hf := riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH + simpa only [riemannXiHermitePolynomial, riemannXiCoeff, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm] using + (hf.iterate_deriv n).hermiteJensenPolynomial_splits d + +/-- The unshifted Hermite Jensen family characterizes Mathlib's RH. -/ +theorem riemannHypothesis_iff_riemannXiHermitePolynomial_zero_splits : + RiemannHypothesis ↔ ∀ d, (riemannXiHermitePolynomial d 0).Splits := by + constructor + · intro h d + exact riemannXiHermitePolynomial_splits h d 0 + · intro h + have hF := (isLaguerrePolya_mul_exp_neg_sq_iff differentiable_riemannXiTheta + riemannXiTheta_conj).mpr (by + simpa only [riemannXiHermitePolynomial, riemannXiCoeff, Nat.zero_add] using h) + apply riemannHypothesis_iff_riemannXiTheta_zeros.mpr + intro z hz + apply hF.im_eq_zero_of_eq_zero ?_ (by simp [hz]) + intro hzero + have h0 := congrFun hzero 0 + exact riemannXiTheta_zero_ne_zero (by simpa using h0) + +/-- **O'Sullivan's Hermite criterion:** RH holds exactly when the Hermite Jensen +polynomials split for every degree and shift. -/ +theorem riemannHypothesis_iff_riemannXiHermitePolynomial_splits : + RiemannHypothesis ↔ ∀ d n, (riemannXiHermitePolynomial d n).Splits := by + constructor + · exact riemannXiHermitePolynomial_splits + · intro h + exact riemannHypothesis_iff_riemannXiHermitePolynomial_zero_splits.mpr (fun d => h d 0) + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/Inequalities.lean b/RealRooted/RiemannHypothesis/Inequalities.lean new file mode 100644 index 000000000..dab606263 --- /dev/null +++ b/RealRooted/RiemannHypothesis/Inequalities.lean @@ -0,0 +1,46 @@ +module + +public import RealRooted.RiemannHypothesis +import RealRooted.Basic +import RealRooted.MultiplierSequence.JensenDerivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Inequality + +/-! +# Turán inequalities and differentiation for xi Jensen polynomials + +The inequalities here are consequences of Mathlib's `RiemannHypothesis`. +They do not assert the converse, nor the unconditional Turán theorem. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- The Turán inequality for normalized xi coefficients, conditional on RH. -/ +theorem riemannXiCoeff_logConcave (hRH : RiemannHypothesis) (n : ℕ) : + riemannXiCoeff n * riemannXiCoeff (n + 2) ≤ riemannXiCoeff (n + 1) ^ 2 := by + have h := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n + have hi := h.laguerre_form_nonneg 0 + simpa only [riemannXiCoeff, Complex.ofReal_zero, iteratedDeriv_succ, + show n + 2 = (n + 1) + 1 from rfl, sub_nonneg] using hi + +/-- Differentiating increases the shift and lowers the degree parameter. -/ +theorem derivative_riemannXiJensenPolynomial (d n : ℕ) : + (riemannXiJensenPolynomial (d + 1) n).derivative = + C (d + 1 : ℝ) * riemannXiJensenPolynomial d (n + 1) := by + simpa only [riemannXiJensenPolynomial, Nat.add_assoc, Nat.add_left_comm, + Nat.add_comm] using derivative_jensenPolynomial d (fun k => riemannXiCoeff (n + k)) + +/-- Under RH, the shifted degree-`d` Jensen polynomial weakly interlaces the +degree-`d+1` polynomial. Repeated and shared roots are allowed. -/ +theorem riemannXiJensenPolynomial_shift_interl (hRH : RiemannHypothesis) (d n : ℕ) : + Interl (riemannXiJensenPolynomial d (n + 1)) + (riemannXiJensenPolynomial (d + 1) n) := by + simpa only [riemannXiJensenPolynomial, Nat.add_assoc, Nat.add_left_comm, + Nat.add_comm] using jensenPolynomial_shift_interl + (riemannXiJensenPolynomial_splits hRH (d + 1) n) + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/MultiplierSequence.lean b/RealRooted/RiemannHypothesis/MultiplierSequence.lean new file mode 100644 index 000000000..b52da1fed --- /dev/null +++ b/RealRooted/RiemannHypothesis/MultiplierSequence.lean @@ -0,0 +1,108 @@ +module + +public import RealRooted.RiemannHypothesis +import RealRooted.RiemannHypothesis.Inequalities +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity +import RealRooted.MultiplierSequence.JensenDerivative +import RealRooted.MultiplierSequence.PolyaSchur + +/-! +# Positive xi multiplier sequences and negative Jensen roots + +Unconditional coefficient positivity gives exact degrees and excludes all +nonnegative real roots. Under RH the Jensen polynomials split and the xi +coefficients form a PF multiplier sequence. Shifts and pointwise products then +give further real-rootedness preservers. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Every coefficient through the degree parameter is strictly positive. -/ +theorem coeff_riemannXiJensenPolynomial_pos (d n k : ℕ) (hk : k ≤ d) : + 0 < (riemannXiJensenPolynomial d n).coeff k := by + rw [coeff_riemannXiJensenPolynomial, ite_eq_left hk] + exact mul_pos (by exact_mod_cast Nat.choose_pos hk) (riemannXiCoeff_pos _) + +/-- All xi Jensen polynomials have nonnegative coefficients, unconditionally. -/ +theorem hasNonnegCoeffs_riemannXiJensenPolynomial (d n : ℕ) : + HasNonnegCoeffs (riemannXiJensenPolynomial d n) := + hasNonnegCoeffs_jensenPolynomial (n := d) (fun k => (riemannXiCoeff_pos (n + k)).le) + +/-- The degree parameter is exact; no RH assumption is needed. -/ +theorem natDegree_riemannXiJensenPolynomial (d n : ℕ) : + (riemannXiJensenPolynomial d n).natDegree = d := + natDegree_jensenPolynomial (riemannXiCoeff_pos (n + d)).ne' + +/-- Xi Jensen polynomials are nonzero, including in degree zero. -/ +theorem riemannXiJensenPolynomial_ne_zero (d n : ℕ) : + riemannXiJensenPolynomial d n ≠ 0 := by + intro h + have hp := coeff_riemannXiJensenPolynomial_pos d n 0 (Nat.zero_le _) + simp [h] at hp + +/-- Every real root is strictly negative. RH additionally says that all roots are real. -/ +theorem riemannXiJensenPolynomial_roots_neg (d n : ℕ) : + ∀ x ∈ (riemannXiJensenPolynomial d n).roots, x < 0 := + roots_neg_of_hasNonnegCoeffs_of_coeff_zero_ne + (hasNonnegCoeffs_riemannXiJensenPolynomial d n) + (coeff_riemannXiJensenPolynomial_pos d n 0 (Nat.zero_le _)).ne' + +/-- Under RH the xi Jensen polynomials are PF polynomials. -/ +theorem riemannXiJensenPolynomial_isPF (hRH : RiemannHypothesis) (d n : ℕ) : + IsPFPolynomial (riemannXiJensenPolynomial d n) := + IsPFPolynomial.of_realRooted_nonneg (hasNonnegCoeffs_riemannXiJensenPolynomial d n) + (riemannXiJensenPolynomial_splits hRH d n) + +/-- The normalized xi coefficients form a PF multiplier sequence under RH. -/ +theorem isPFMultiplierSequence_riemannXiCoeff (hRH : RiemannHypothesis) : + IsPFMultiplierSequence riemannXiCoeff := by + apply isPFMultiplierSequence_iff_jensenPolynomial_isPF.mpr + intro d + simpa only [riemannXiJensenPolynomial, Nat.zero_add] using + riemannXiJensenPolynomial_isPF hRH d 0 + +/-- In particular, diagonal multiplication by xi coefficients preserves real-rootedness. -/ +theorem isMultiplierSequence_riemannXiCoeff (hRH : RiemannHypothesis) : + IsMultiplierSequence riemannXiCoeff := + (isPFMultiplierSequence_iff_multiplierSequence_and_nonneg.mp + (isPFMultiplierSequence_riemannXiCoeff hRH)).1 + +/-- Every forward shift of the xi sequence is a PF multiplier sequence under RH. -/ +theorem isPFMultiplierSequence_riemannXiCoeff_shift (hRH : RiemannHypothesis) (n : ℕ) : + IsPFMultiplierSequence (fun k => riemannXiCoeff (n + k)) := by + simpa only [Nat.add_comm] using (isPFMultiplierSequence_riemannXiCoeff hRH).shift n + +/-- Pointwise multiplication by any PF multiplier sequence gives another such sequence. -/ +theorem isPFMultiplierSequence_riemannXiCoeff_mul (hRH : RiemannHypothesis) + {delta : ℕ → ℝ} (hdelta : IsPFMultiplierSequence delta) : + IsPFMultiplierSequence (fun k => riemannXiCoeff k * delta k) := + (isPFMultiplierSequence_riemannXiCoeff hRH).mul hdelta + +/-- The xi diagonal operator preserves splitting over the reals under RH. -/ +theorem diagonalOperator_riemannXiCoeff_splits (hRH : RiemannHypothesis) + {p : ℝ[X]} (hp : p.Splits) : (diagonalOperator riemannXiCoeff p).Splits := by + rcases (isMultiplierSequence_riemannXiCoeff hRH).diagonalOperator_eq_zero_or_splits hp + with h | h + · rw [h] + exact Splits.zero + · exact h + +/-- The xi diagonal operator preserves the PF polynomial cone under RH. -/ +theorem diagonalOperator_riemannXiCoeff_isPF (hRH : RiemannHypothesis) + {p : ℝ[X]} (hp : IsPFPolynomial p) : IsPFPolynomial (diagonalOperator riemannXiCoeff p) := + (isPFMultiplierSequence_riemannXiCoeff hRH).diagonalOperator_isPF hp + +/-- Consecutive shifted xi Jensen polynomials have weakly interleaving root lists +with degree gap one. This does not assert distinct roots. -/ +theorem riemannXiJensenPolynomial_shift_interlaces (hRH : RiemannHypothesis) (d n : ℕ) : + Interlaces (riemannXiJensenPolynomial d (n + 1)) + (riemannXiJensenPolynomial (d + 1) n) := by + have h := (riemannXiJensenPolynomial_shift_interl hRH d n).toStrictInterl_of_ne + (riemannXiJensenPolynomial_ne_zero _ _) (riemannXiJensenPolynomial_ne_zero _ _) + exact h.toInterlaces (by simp only [natDegree_riemannXiJensenPolynomial]) + +end RealRooted diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index 28bafcdaa..b65590d93 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2418 + "max_modules": 2431 }, "RealRooted.Production": { - "max_modules": 2346 + "max_modules": 2359 }, "RealRooted.Tactic.Examples": { "max_modules": 844 diff --git a/scripts/mathlib_shims.json b/scripts/mathlib_shims.json index 79ae0d25b..a9f62b3e0 100644 --- a/scripts/mathlib_shims.json +++ b/scripts/mathlib_shims.json @@ -3729,6 +3729,66 @@ ], "note": "Taylor calculus and Riemann xi foundations for the Jensen criterion. Uses the pinned Tau Ceti analytic results where Mathlib lacks them; no upstream PR yet.", "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/MulPow.lean" + ], + "modules": [ + "Mathlib.Analysis.Calculus.IteratedDeriv.MulPow" + ], + "note": "Taylor and Mellin calculus, theta moment bounds, and unconditional positivity of normalized xi coefficients; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/MellinTransform/LogMoments.lean" + ], + "modules": [ + "Mathlib.Analysis.MellinTransform.LogMoments" + ], + "note": "Taylor and Mellin calculus, theta moment bounds, and unconditional positivity of normalized xi coefficients; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Kernel.lean" + ], + "modules": [ + "Mathlib.NumberTheory.LSeries.RiemannXi.Kernel" + ], + "note": "Taylor and Mellin calculus, theta moment bounds, and unconditional positivity of normalized xi coefficients; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Mellin.lean" + ], + "modules": [ + "Mathlib.NumberTheory.LSeries.RiemannXi.Mellin" + ], + "note": "Taylor and Mellin calculus, theta moment bounds, and unconditional positivity of normalized xi coefficients; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Moments.lean" + ], + "modules": [ + "Mathlib.NumberTheory.LSeries.RiemannXi.Moments" + ], + "note": "Taylor and Mellin calculus, theta moment bounds, and unconditional positivity of normalized xi coefficients; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Positivity.lean" + ], + "modules": [ + "Mathlib.NumberTheory.LSeries.RiemannXi.Positivity" + ], + "note": "Taylor and Mellin calculus, theta moment bounds, and unconditional positivity of normalized xi coefficients; no upstream PR yet.", + "speculative": true } ] } From 04248fab6b0fceebecbb3badeafaa0fc7949f226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A2?= <240895760+sqrt-of-2@users.noreply.github.com> Date: Sun, 22 Nov 2026 19:59:05 +0000 Subject: [PATCH 2/2] docs: refresh lemma index after xi Hermite additions --- docs/WORKHORSES.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/WORKHORSES.md b/docs/WORKHORSES.md index 9eb9a8782..31fa7e896 100644 --- a/docs/WORKHORSES.md +++ b/docs/WORKHORSES.md @@ -16,7 +16,7 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | uses | theorem | module | doc | |---:|---|---|---| | 72 | `RealRooted.StrictInterl.refl` | `RealRooted.Basic.ProperPosition` | A nonzero real-rooted polynomial is in same-degree proper position with itself. | -| 58 | `RealRooted.Interl.toStrictInterl_of_ne` | `RealRooted.Basic.ProperPosition` | | +| 59 | `RealRooted.Interl.toStrictInterl_of_ne` | `RealRooted.Basic.ProperPosition` | | | 42 | `RealRooted.strictInterl_mul_X_of_strictInterl_of_nonneg` | `RealRooted.WagnerX.NonnegativeRoots` | Nonnegative-coefficients form of Wagner (3): if `f ≪ g` and both polynomials have nonnegative coefficients, then `g ≪ X * f`. | | 34 | `RealRooted.StrictInterl.C_mul_left` | `RealRooted.Basic.ProperPosition` | Multiplying the left polynomial in a proper-position relation by a nonzero real scalar preserves proper position. | | 33 | `RealRooted.StrictInterl.C_mul_right` | `RealRooted.Basic.ProperPosition` | Multiplying the right polynomial in a proper-position relation by a nonzero real scalar preserves proper position. | @@ -45,15 +45,15 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | uses | theorem | module | doc | |---:|---|---|---| -| 101 | `RealRooted.StrictInterl.toInterlaces` | `RealRooted.Basic.ProperPosition` | | -| 64 | `RealRooted.StrictInterl.toInterl` | `RealRooted.Basic.ProperPosition` | | -| 48 | `RealRooted.interl_zero_left` | `RealRooted.Basic.ProperPosition` | | +| 102 | `RealRooted.StrictInterl.toInterlaces` | `RealRooted.Basic.ProperPosition` | | +| 65 | `RealRooted.StrictInterl.toInterl` | `RealRooted.Basic.ProperPosition` | | +| 49 | `RealRooted.interl_zero_left` | `RealRooted.Basic.ProperPosition` | | | 46 | `RealRooted.interlaces_one_linear` | `RealRooted.Linear` | | | 45 | `RealRooted.interl_zero_right` | `RealRooted.Basic.ProperPosition` | | -| 43 | `RealRooted.derivative_interlaces_of_natDegree_ne_zero` | `RealRooted.Derivative.Interlacing` | **Derivative interlacing**: the derivative of a nonconstant real-rooted polynomial `f` interlaces `f`. | +| 44 | `RealRooted.derivative_interlaces_of_natDegree_ne_zero` | `RealRooted.Derivative.Interlacing` | **Derivative interlacing**: the derivative of a nonconstant real-rooted polynomial `f` interlaces `f`. | | 36 | `RealRooted.Interl.refl` | `RealRooted.Basic.ProperPosition` | A polynomial that splits whenever it is nonzero is zero-aware interlacing with itself. | | 28 | `RealRooted.Interl.C_mul_right_of_nonneg` | `RealRooted.Basic.ProperPosition` | Multiplying the right polynomial in a zero-aware interlacing relation by a nonnegative scalar preserves the relation. | -| 26 | `RealRooted.Interl.C_mul_left_of_nonneg` | `RealRooted.Basic.ProperPosition` | Multiplying the left polynomial in a zero-aware interlacing relation by a nonnegative scalar preserves the relation. | +| 27 | `RealRooted.Interl.C_mul_left_of_nonneg` | `RealRooted.Basic.ProperPosition` | Multiplying the left polynomial in a zero-aware interlacing relation by a nonnegative scalar preserves the relation. | | 26 | `RealRooted.IsPFPolynomial.interl_self` | `RealRooted.PFPolynomial` | A PF polynomial is in zero-aware proper position with itself. | | 22 | `RealRooted.isInterlacingSeq0_iff_pairwise` | `RealRooted.InterlacingSequenceBasic` | `IsInterlacingSeq0` is exactly pairwise `Interl`. | | 20 | `RealRooted.interl_add_right_of_common_left_of_nonneg` | `RealRooted.PFPolynomial` | Fixed-left cone closure in the two-summand form used downstream: if a polynomial is a common left interleaver for two nonnegative-coefficient summands, it is also a common left interleaver for their s | @@ -135,7 +135,7 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | uses | theorem | module | doc | |---:|---|---|---| -| 79 | `RealRooted.IsPFPolynomial.of_realRooted_nonneg` | `RealRooted.PFPolynomial` | A split polynomial with nonnegative coefficients is PF. | +| 80 | `RealRooted.IsPFPolynomial.of_realRooted_nonneg` | `RealRooted.PFPolynomial` | A split polynomial with nonnegative coefficients is PF. | | 43 | `RealRooted.IsPFPolynomial.of_nonnegCoeffs_eq_zero_or_splits` | `RealRooted.PFPolynomial` | Construct a PF polynomial from nonnegative coefficients and a zero-or-splits certificate. | | 41 | `RealRooted.IsPFPolynomial.zero` | `RealRooted.PFPolynomial` | The zero polynomial is PF. | | 32 | `RealRooted.IsPFPolynomial.one` | `RealRooted.PFPolynomial` | The constant polynomial `1` is PF. | @@ -148,10 +148,10 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 11 | `RealRooted.IsPolyaFreqSeq.natCauchyConvolution` | `RealRooted.PolyaFrequencyConvolution.Basic` | Pólya-frequency sequences are closed under Cauchy convolution. | | 10 | `RealRooted.polarTheta_preserves_pf` | `RealRooted.EulerOperator` | The polar-theta operator `N - theta` preserves the polynomial PF cone for polynomials of degree at most `N`. | | 10 | `RealRooted.theta_preserves_pf` | `RealRooted.EulerOperator` | `theta` preserves the polynomial PF cone. | +| 8 | `RealRooted.IsPFMultiplierSequence.diagonalOperator_isPF` | `RealRooted.MultiplierSequence.Infinite` | | | 8 | `RealRooted.IsPFPolynomial.add_of_interl` | `RealRooted.OperatorMatrix.Directed` | The sum of an interlacing PF pair is PF. | | 8 | `RealRooted.isPFPolynomial_jensenPolynomial_of_PFMultiplierSequence` | `RealRooted.MultiplierSequence.Infinite` | Every Jensen polynomial of a PF multiplier sequence is PF. | | 8 | `RealRooted.isPFPolynomial_jensenPolynomial_of_finitePFMultiplierSequence` | `RealRooted.MultiplierSequence` | The easy PF direction: a finite PF multiplier sequence has a PF Jensen polynomial. | -| 7 | `RealRooted.IsPFMultiplierSequence.diagonalOperator_isPF` | `RealRooted.MultiplierSequence.Infinite` | | | 7 | `RealRooted.IsPFPolynomial.of_X_sub_C_mul_factor` | `RealRooted.PFPolynomial` | If a PF polynomial is factored by a real linear factor, then the quotient is again PF. | | 7 | `RealRooted.thetaPlusOne_preserves_pf` | `RealRooted.EulerOperator` | `theta + 1` preserves the polynomial PF cone. | | 6 | `RealRooted.IsPFPolynomial.of_polyaFreqSeq` | `RealRooted.PFPolynomial` | Construct a PF polynomial directly from its Pólya-frequency coefficient sequence using the proved forward ASW theorem. | @@ -238,7 +238,7 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 91 | `RealRooted.roots_nonpos_of_hasNonnegCoeffs` | `RealRooted.Basic.Coefficients` | A real polynomial with nonnegative coefficients has no positive real roots. | | 45 | `RealRooted.IsPFPolynomial.roots_nonpos` | `RealRooted.PFPolynomial` | | | 20 | `RealRooted.hasNonnegCoeffs_iff_pos_leadingCoeff_and_roots_nonpos` | `RealRooted.WagnerX.NonnegativeRoots` | | -| 17 | `RealRooted.roots_neg_of_hasNonnegCoeffs_of_coeff_zero_ne` | `RealRooted.Basic.Coefficients` | A nonnegative-coefficient polynomial with nonzero constant coefficient has strictly negative roots. | +| 18 | `RealRooted.roots_neg_of_hasNonnegCoeffs_of_coeff_zero_ne` | `RealRooted.Basic.Coefficients` | A nonnegative-coefficient polynomial with nonzero constant coefficient has strictly negative roots. | | 15 | `RealRooted.StrictInterl.roots_le_of_right` | `RealRooted.Basic.ProperPosition` | Every root of the left-hand polynomial is bounded by any common upper bound for the roots of the right-hand polynomial in a `StrictInterl` witness. | | 15 | `RealRooted.roots_comp_X_add_C` | `RealRooted.Linear` | | | 13 | `RealRooted.MaWang.exists_isRoot_between_of_eval_mul_neg` | `RealRooted.MaWang.StrictSigns.RootSigns` | Strict IVT bridge: strictly opposite endpoint signs give a real root in the open interval. | @@ -272,7 +272,7 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 49 | `RealRooted.HasNonnegCoeffs.basisTransform` | `RealRooted.BasisTransform` | A basis transform preserves coefficientwise nonnegativity when every basis element has nonnegative coefficients. | | 46 | `RealRooted.hasPosLeadingCoeff_C_mul` | `RealRooted.Basic.Coefficients` | | | 40 | `RealRooted.HasNonnegCoeffs.weightedSum` | `RealRooted.GarloffWagner.SchurProductPF` | | -| 32 | `RealRooted.HasNonnegCoeffs.diagonalOperator` | `RealRooted.MultiplierSequence` | Nonnegative diagonal coefficients preserve nonnegative coefficients. | +| 33 | `RealRooted.HasNonnegCoeffs.diagonalOperator` | `RealRooted.MultiplierSequence` | Nonnegative diagonal coefficients preserve nonnegative coefficients. | | 32 | `RealRooted.hasPosLeadingCoeff_of_monic` | `RealRooted.Basic.Coefficients` | | | 27 | `RealRooted.hasNonnegCoeffs_finsetSum` | `RealRooted.Basic.Coefficients` | | | 27 | `RealRooted.hasNonnegCoeffs_zero` | `RealRooted.Basic.Coefficients` | | @@ -297,9 +297,9 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g |---:|---|---|---| | 33 | `RealRooted.SatisfiesFavardRecurrence.natDegree_eq` | `RealRooted.Favard.Recurrence` | Every member of a Favard family has natural degree equal to its index. | | 20 | `RealRooted.StrictInterl.natDegree_eq_or_eq_succ` | `RealRooted.Basic.ProperPosition` | Proper position forces equal natural degrees or a one-degree increase. | +| 15 | `RealRooted.natDegree_jensenPolynomial_le` | `RealRooted.MultiplierSequence` | | | 14 | `RealRooted.natDegree_add_eq_of_same_natDegree_of_posLeadingCoeff` | `RealRooted.Linear` | If two polynomials have the same degree and positive leading coefficients, their top coefficients cannot cancel. | | 13 | `Polynomial.natDegree_divByMonic_X_sub_C` | `RealRooted.Mathlib.Algebra.Polynomial.Degree.Operations` | Dividing by a monic linear factor lowers natural degree by one. | -| 13 | `RealRooted.natDegree_jensenPolynomial_le` | `RealRooted.MultiplierSequence` | | | 12 | `RealRooted.DegreeDropReversal.natDegree_reflect_eq_of_coeff_zero_ne` | `RealRooted.DegreeDropReversal` | If the constant coefficient is nonzero, reflecting at any degree bound puts a nonzero coefficient in the top reflected degree. | | 10 | `Polynomial.reflect_eq_X_pow_mul_reverse` | `RealRooted.Mathlib.Algebra.Polynomial.Reverse` | Reflecting at a degree bound factors through reversal and a power of `X`. | | 10 | `RealRooted.natDegree_diagonalOperator_le` | `RealRooted.MultiplierSequence` | | @@ -357,7 +357,7 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g |---:|---|---|---| | 26 | `RealRooted.coeff_diagonalOperator` | `RealRooted.MultiplierSequence` | | | 25 | `Polynomial.coeff_sum_range_monomial` | `RealRooted.Mathlib.Algebra.Polynomial.Coeff` | The coefficient of a finite initial-segment monomial sum. | -| 19 | `RealRooted.coeff_jensenPolynomial` | `RealRooted.MultiplierSequence` | | +| 20 | `RealRooted.coeff_jensenPolynomial` | `RealRooted.MultiplierSequence` | | | 16 | `Polynomial.coeff_comp_neg_X` | `RealRooted.Mathlib.Algebra.Polynomial.Degree.Lemmas` | The coefficients of `p.comp (-X)` are those of `p` with alternating signs. | | 16 | `RealRooted.coeff_theta` | `RealRooted.EulerOperator` | | | 14 | `RealRooted.coeff_narayanaPolynomial_of_le` | `RealRooted.NarayanaTransformation.Coefficients` | | @@ -385,8 +385,8 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | uses | theorem | module | doc | |---:|---|---|---| -| 434 | `RealRooted.EffectiveBKW.IntPoly2.eval_mul` | `RealRooted.EffectiveBKW.Certificate.ListPoly` | Evaluation commutes with bivariate multiplication. | -| 281 | `RealRooted.EffectiveBKW.IntPoly2.eval_add` | `RealRooted.EffectiveBKW.Certificate.ListPoly` | Evaluation commutes with bivariate addition. | +| 435 | `RealRooted.EffectiveBKW.IntPoly2.eval_mul` | `RealRooted.EffectiveBKW.Certificate.ListPoly` | Evaluation commutes with bivariate multiplication. | +| 282 | `RealRooted.EffectiveBKW.IntPoly2.eval_add` | `RealRooted.EffectiveBKW.Certificate.ListPoly` | Evaluation commutes with bivariate addition. | | 19 | `RealRooted.bezoutEntry.wronskian` | `RealRooted.Bezoutian.RootEvaluation` | | | 16 | `RealRooted.eval_pos_of_all_roots_lt` | `RealRooted.WagnerRightSum.Sign` | | | 13 | `RealRooted.StrictInterl.eval_mul_eval_derivative_nonneg` | `RealRooted.MaWang.Weak.DerivativeSign` | Every interlacer `g ≪ f` with positive leading coefficients has the sign of `f'` at the roots of `f`: `g(r) f'(r) ≥ 0`. | @@ -486,6 +486,7 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g |---:|---|---|---| | 29 | `RealRooted.toeplitz_apply` | `RealRooted.AissenSchoenbergWhitneyBase` | | | 22 | `RealRooted.IsRealRootedIn.comp_neg_X` | `RealRooted.RootLocation.Basic` | Substituting `-X` into a polynomial rooted in `S` gives a polynomial rooted in the preimage of `S` under negation. | +| 17 | `TendstoLocallyUniformly.iteratedDeriv` | `RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff` | Weierstrass: if entire functions converge locally uniformly on `ℂ`, then so do all their iterated derivatives. | | 15 | `MvPolynomial.mem_degreeOfLE_iff_degreeOf` | `RealRooted.Mathlib.Algebra.MvPolynomial.Stability.DegreeBox` | | | 14 | `MvPolynomial.coe_basisDegreeOfLE` | `RealRooted.Mathlib.Algebra.MvPolynomial.Stability.DegreeBox` | | | 14 | `RealRooted.StrictInterl.rootMultiplicity_bounds` | `RealRooted.Basic.ProperPosition` | In proper position, the multiplicities of every real root differ by at most one. | @@ -494,7 +495,6 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 12 | `Polynomial.ring_choose_pos` | `RealRooted.Mathlib.RingTheory.Polynomial.Jacobi` | A generalized real binomial coefficient is positive above its largest possible zero. | | 11 | `RealRooted.List.Interleaves.ofFn_succ` | `RealRooted.Bezoutian.StrictInterleaving` | | | 11 | `RealRooted.SimpleNegRooted.isRoot_neg` | `RealRooted.EulerOperator.Darboux.NegativeRoots` | | -| 10 | `TendstoLocallyUniformly.iteratedDeriv` | `RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff` | Weierstrass: if entire functions converge locally uniformly on `ℂ`, then so do all their iterated derivatives. | | 9 | `MvPolynomial.algebraicSymbol_eq_sum` | `RealRooted.Mathlib.Algebra.MvPolynomial.Stability.Symbol` | Expand the finite algebraic symbol in its bounded monomial basis. | | 9 | `RealRooted.TuranHurwitz.rising_pos` | `RealRooted.TuranHurwitz.RisingConvolution` | Rising factorials are strictly positive for positive starting value. | | 8 | `Polynomial.splits_nodup_roots_of_strict_sign_changes` | `RealRooted.Mathlib.Algebra.Polynomial.IntervalSignChanges` | A finite grid with strict sign changes accounts for every root of a nonzero polynomial of degree at most the number of gaps. | @@ -548,8 +548,8 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 34 | `RealRooted.allComboRealRooted_of_strictInterl` | `RealRooted.ObreschkoffConverse.Forward` | Forward direction of Obreschkoff: if `f ≪ g` then all real combinations `αf + βg` are real-rooted (or zero). | | 23 | `RealRooted.HasSimpleRoots.of_roots_nodup` | `RealRooted.SimpleRoots` | A nonzero polynomial with a duplicate-free root multiset has simple real roots. | | 16 | `RealRooted.IsRealRootedIn.mem_of_mem_roots` | `RealRooted.RootLocation.Basic` | Every multiset root of a polynomial rooted in `S` lies in `S`. | +| 16 | `RealRooted.MapsRealRootedIn.mono_left` | `RealRooted.RootLocation.Basic` | Shrinking the source set preserves `MapsRealRootedIn`. | | 15 | `MvPolynomial.IsRayleigh.specializeAt` | `RealRooted.Multiaffine.Rayleigh` | Real scalar specialization preserves the Rayleigh property. | -| 15 | `RealRooted.MapsRealRootedIn.mono_left` | `RealRooted.RootLocation.Basic` | Shrinking the source set preserves `MapsRealRootedIn`. | | 14 | `RealRooted.hasSimpleRoots_of_natDegree_le_one` | `RealRooted.SimpleRoots` | Every nonzero polynomial of degree at most one has only simple roots. | | 12 | `Matrix.IsTotallyNonnegRect.toSquare` | `RealRooted.Mathlib.LinearAlgebra.Matrix.TotallyNonneg` | Rectangular total nonnegativity specializes to the square predicate. | | 11 | `RealRooted.isUpperHalfPlaneStable_complexify_of_splits` | `RealRooted.HermiteBiehler.Basic` | A nonzero split real polynomial has stable complexification. |