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 01/56] 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 6ece78af1cd33df31ca39c2f6c83b04c3a4ab148 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 14:25:13 +0000 Subject: [PATCH 02/56] feat: add generalized xi criteria and total positivity --- RealRooted.lean | 8 +++ .../MultiplierSequence/JensenProduct.lean | 56 +++++++++++++++ .../PolyaSchur/LaguerrePolya/Jensen.lean | 8 +-- .../LaguerrePolya/JensenProduct.lean | 31 ++++++++ .../LaguerrePolya/OperatorCriterion.lean | 39 +++++++++++ .../PolyaSchur/LaguerrePolya/Product.lean | 49 +++++++++++++ .../LaguerrePolya/TotalPositivity.lean | 32 +++++++++ RealRooted/Production.lean | 8 +++ .../DifferentialOperator.lean | 46 ++++++++++++ .../RiemannHypothesis/JensenProduct.lean | 70 +++++++++++++++++++ .../RiemannHypothesis/TotalPositivity.lean | 51 ++++++++++++++ scripts/import_architecture.json | 4 +- 12 files changed, 396 insertions(+), 6 deletions(-) create mode 100644 RealRooted/MultiplierSequence/JensenProduct.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenProduct.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorCriterion.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Product.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivity.lean create mode 100644 RealRooted/RiemannHypothesis/DifferentialOperator.lean create mode 100644 RealRooted/RiemannHypothesis/JensenProduct.lean create mode 100644 RealRooted/RiemannHypothesis/TotalPositivity.lean diff --git a/RealRooted.lean b/RealRooted.lean index 07c64c58c..4606f6a4d 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2441,3 +2441,11 @@ public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Hermite public import RealRooted.RiemannHypothesis.Hermite public import RealRooted.RiemannHypothesis.Inequalities public import RealRooted.RiemannHypothesis.MultiplierSequence +public import RealRooted.MultiplierSequence.JensenProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.JensenProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorCriterion +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Product +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivity +public import RealRooted.RiemannHypothesis.DifferentialOperator +public import RealRooted.RiemannHypothesis.JensenProduct +public import RealRooted.RiemannHypothesis.TotalPositivity diff --git a/RealRooted/MultiplierSequence/JensenProduct.lean b/RealRooted/MultiplierSequence/JensenProduct.lean new file mode 100644 index 000000000..acde0439b --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenProduct.lean @@ -0,0 +1,56 @@ +module + +public import RealRooted.MultiplierSequence +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +public import Mathlib.Analysis.CStarAlgebra.Classes +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas +import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Jensen polynomials of products + +The binomial convolution of two exponential Taylor sequences is the Taylor +sequence of their product. This defines the Jensen family used in the general +auxiliary-function criterion, without assuming either sequence is nonzero. +-/ + +@[expose] public section + +open Polynomial Complex + +namespace RealRooted + +/-- Binomial convolution, the coefficient rule for exponential generating functions. -/ +noncomputable def binomialConvolution (gamma delta : ℕ → ℝ) (n : ℕ) : ℝ := + ∑ k ∈ Finset.range (n + 1), (n.choose k : ℝ) * gamma k * delta (n - k) + +/-- Jensen polynomials associated with the product of exponential generating functions. -/ +noncomputable def jensenProductPolynomial (d : ℕ) (gamma delta : ℕ → ℝ) : ℝ[X] := + jensenPolynomial d (binomialConvolution gamma delta) + +/-- The constant binomial-convolution coefficient is the product of constants. -/ +@[simp] theorem binomialConvolution_zero (gamma delta : ℕ → ℝ) : + binomialConvolution gamma delta 0 = gamma 0 * delta 0 := by + simp [binomialConvolution] + +/-- Jensen product coefficients in binomial normalization. -/ +@[simp] theorem coeff_jensenProductPolynomial (d : ℕ) (gamma delta : ℕ → ℝ) (k : ℕ) : + (jensenProductPolynomial d gamma delta).coeff k = + if k ≤ d then (d.choose k : ℝ) * binomialConvolution gamma delta k else 0 := + coeff_jensenPolynomial d _ k + +/-- A Jensen product polynomial has degree at most its index. -/ +theorem natDegree_jensenProductPolynomial_le (d : ℕ) (gamma delta : ℕ → ℝ) : + (jensenProductPolynomial d gamma delta).natDegree ≤ d := + natDegree_jensenPolynomial_le d _ + +/-- Leibniz's rule identifies binomial convolution with the Taylor data of a product. -/ +theorem iteratedDeriv_mul_eq_binomialConvolution {f g : ℂ → ℂ} + {gamma delta : ℕ → ℝ} (hf : Differentiable ℂ f) (hg : Differentiable ℂ g) + (hgamma : ∀ k, iteratedDeriv k f 0 = (gamma k : ℂ)) + (hdelta : ∀ k, iteratedDeriv k g 0 = (delta k : ℂ)) (n : ℕ) : + iteratedDeriv n (f * g) 0 = (binomialConvolution gamma delta n : ℂ) := by + rw [iteratedDeriv_mul (hf.contDiff.contDiffAt) (hg.contDiff.contDiffAt)] + simp [binomialConvolution, hgamma, hdelta] + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Jensen.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Jensen.lean index 336d119e5..c88e183fd 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Jensen.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Jensen.lean @@ -1,9 +1,7 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya -public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative -import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator import RealRooted.Mathlib.Algebra.Polynomial.Reverse import Mathlib.Analysis.Complex.TaylorSeries @@ -21,7 +19,9 @@ open Polynomial Complex Filter Topology namespace RealRooted -private theorem taylorDifferentialOperator_X_pow (f : ℂ → ℂ) (n : ℕ) : +/-- Applying a Taylor differential operator to a monomial gives the +reflected Jensen polynomial of its Taylor data. -/ +theorem taylorDifferentialOperator_X_pow (f : ℂ → ℂ) (n : ℕ) : taylorDifferentialOperator f (X ^ n) = reflect n (jensenPolynomial n (fun k => (iteratedDeriv k f 0).re)) := by classical diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenProduct.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenProduct.lean new file mode 100644 index 000000000..38cebf723 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenProduct.lean @@ -0,0 +1,31 @@ +module + +public import RealRooted.MultiplierSequence.JensenProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen + +/-! +# An auxiliary-product form of Jensen's criterion + +The Jensen polynomials of binomially convolved Taylor data detect membership +of the product in the Laguerre--Pólya class. This identity is the core of +O'Sullivan's Theorem 3.5, https://arxiv.org/abs/2007.13582. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- All Jensen product polynomials split exactly when the entire product is +Laguerre--Pólya. No nonvanishing assumption is needed for this product statement. -/ +theorem isLaguerrePolya_mul_iff_jensenProductPolynomial_splits {f g : ℂ → ℂ} + {gamma delta : ℕ → ℝ} (hf : Differentiable ℂ f) (hg : Differentiable ℂ g) + (hgamma : ∀ k, iteratedDeriv k f 0 = (gamma k : ℂ)) + (hdelta : ∀ k, iteratedDeriv k g 0 = (delta k : ℂ)) : + IsLaguerrePolya (f * g) ↔ ∀ d, (jensenProductPolynomial d gamma delta).Splits := + isLaguerrePolya_iff_jensenPolynomial_splits (hf.mul hg) + (iteratedDeriv_mul_eq_binomialConvolution hf hg hgamma hdelta) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorCriterion.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorCriterion.lean new file mode 100644 index 000000000..97969e699 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorCriterion.lean @@ -0,0 +1,39 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import RealRooted.Mathlib.Algebra.Polynomial.Reverse + +/-! +# Differential-operator criterion for the Laguerre--Pólya class + +A real entire function belongs to the Laguerre--Pólya class exactly when its +Taylor differential operator preserves real-rootedness. Testing on monomials +already suffices by Jensen's criterion. +-/ + +public section + +open Polynomial Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- A real entire function is Laguerre--Pólya exactly when its Taylor +differential operator preserves splitting over the reals. -/ +theorem isLaguerrePolya_iff_taylorDifferentialOperator_splits {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hconj : ∀ z, f (conj z) = conj (f z)) : + IsLaguerrePolya f ↔ + ∀ p : ℝ[X], p.Splits → (taylorDifferentialOperator f p).Splits := by + constructor + · exact fun h _ hp => h.taylorDifferentialOperator_splits hp + · intro h + apply (isLaguerrePolya_iff_jensenPolynomial_splits hf + (fun k => (ofReal_re_iteratedDeriv_zero hconj k).symm)).mpr + intro d + apply (splits_reflect_iff (natDegree_jensenPolynomial_le d _)).mp + rw [← taylorDifferentialOperator_X_pow] + exact h _ (Splits.X.pow d) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Product.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Product.lean new file mode 100644 index 000000000..70fd6ae61 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Product.lean @@ -0,0 +1,49 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import TauCeti.Analysis.Complex.GrowthOrder +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Hadamard +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros +import Mathlib.Analysis.Analytic.IsolatedZeros + +/-! +# Laguerre--Pólya tests using auxiliary products + +Multiplication by a nonzero Laguerre--Pólya function detects membership for a +real entire function of order at most one which does not vanish at zero. +The auxiliary function may vanish at zero. Its exclusion as the identically +zero function is essential because the library uses a zero-aware class. + +This is the order-at-most-one case of the product argument in O'Sullivan, +*Zeros of Jensen polynomials and asymptotics for the Riemann xi function*, +Theorem 3.5, https://arxiv.org/abs/2007.13582. +-/ + +public section + +open Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- A nonzero Laguerre--Pólya auxiliary detects membership for a real entire +function of order at most one which is nonzero at the origin. -/ +theorem isLaguerrePolya_mul_iff_of_orderLE_one {f g : ℂ → ℂ} + (horder : TauCeti.OrderLE f 1) (hf : Differentiable ℂ f) (hf0 : f 0 ≠ 0) + (hconj : ∀ z, f (conj z) = conj (f z)) (hg : IsLaguerrePolya g) (hg0 : g ≠ 0) : + IsLaguerrePolya (f * g) ↔ IsLaguerrePolya f := by + constructor + · intro hfg + have hfg0 : f * g ≠ 0 := by + intro hzero + have hfana : AnalyticOnNhd ℂ f Set.univ := fun z _ => hf.analyticAt z + rcases hfana.eq_zero_or_eq_zero_of_mul_eq_zero hg.analyticOnNhd + (fun z _ => congrFun hzero z) isPreconnected_univ with h | h + · exact hf0 (h 0 (Set.mem_univ _)) + · exact hg0 (funext fun z => h z (Set.mem_univ _)) + exact isLaguerrePolya_of_orderLE_one horder hf hf0 hconj fun z hz => + hfg.im_eq_zero_of_eq_zero hfg0 (by simp [Pi.mul_apply, hz]) + · exact fun h => h.mul hg + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivity.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivity.lean new file mode 100644 index 000000000..7720a2294 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivity.lean @@ -0,0 +1,32 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.PFPolynomial.Closure +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff + +/-! +# Total positivity of Type-I Laguerre--Pólya Taylor coefficients + +The ordinary Taylor coefficients of a Type-I Laguerre--Pólya function form a +Pólya-frequency sequence. The factorial normalization is essential: these are +the coefficients of the ordinary power series, not its exponential Taylor data. +The proof passes every Toeplitz minor to the limit along PF polynomial approximants. +-/ + +public section + +namespace RealRooted + +/-- Ordinary Taylor coefficients of a Type-I Laguerre--Pólya function form a +Pólya-frequency sequence, so all their Toeplitz minors are nonnegative. -/ +theorem IsLaguerrePolyaTypeI.isPolyaFreqSeq {f : ℂ → ℂ} + (hf : IsLaguerrePolyaTypeI f) : + IsPolyaFreqSeq (fun k => (iteratedDeriv k f 0).re / k.factorial) := by + obtain ⟨p, hp, hlim⟩ := hf + apply IsPolyaFreqSeq.of_tendsto (fun n => (hp n).to_sequence) + intro k + simpa only [Complex.div_natCast_re] using + Polynomial.tendsto_coeff_of_tendstoLocallyUniformly hlim k + +end RealRooted diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index 0a813cb93..624d2891b 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2366,6 +2366,14 @@ public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Hermite public import RealRooted.RiemannHypothesis.Hermite public import RealRooted.RiemannHypothesis.Inequalities public import RealRooted.RiemannHypothesis.MultiplierSequence +public import RealRooted.MultiplierSequence.JensenProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.JensenProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorCriterion +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Product +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivity +public import RealRooted.RiemannHypothesis.DifferentialOperator +public import RealRooted.RiemannHypothesis.JensenProduct +public import RealRooted.RiemannHypothesis.TotalPositivity /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/DifferentialOperator.lean b/RealRooted/RiemannHypothesis/DifferentialOperator.lean new file mode 100644 index 000000000..6b1bc09a5 --- /dev/null +++ b/RealRooted/RiemannHypothesis/DifferentialOperator.lean @@ -0,0 +1,46 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +import RealRooted.RiemannHypothesis +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorCriterion +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen + +/-! +# Xi differential operators and the Riemann hypothesis + +Under RH, every derivative of the square-variable xi function defines a +constant-coefficient differential operator preserving real-rootedness. +The unshifted operator's preservation property already characterizes RH. +On polynomials, each operator is a finite sum, so no convergence assumption +on infinite differential series is needed. + +This specializes the operator argument in Section 3.1 of O'Sullivan, +*Zeros of Jensen polynomials and asymptotics for the Riemann xi function*, +https://arxiv.org/abs/2007.13582. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- Under RH, the Taylor differential operator of every derivative of xi's +square-variable function preserves real-rootedness. -/ +theorem taylorDifferentialOperator_riemannXiTheta_splits (hRH : RiemannHypothesis) + (n : ℕ) {p : ℝ[X]} (hp : p.Splits) : + (taylorDifferentialOperator (iteratedDeriv n riemannXiTheta) p).Splits := + IsLaguerrePolya.taylorDifferentialOperator_splits + ((riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n) hp + +/-- RH is equivalent to the unshifted xi Taylor differential operator +preserving real-rootedness. -/ +theorem riemannHypothesis_iff_taylorDifferentialOperator_splits : + RiemannHypothesis ↔ ∀ p : ℝ[X], p.Splits → + (taylorDifferentialOperator riemannXiTheta p).Splits := by + rw [riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta] + exact isLaguerrePolya_iff_taylorDifferentialOperator_splits + differentiable_riemannXiTheta riemannXiTheta_conj + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/JensenProduct.lean b/RealRooted/RiemannHypothesis/JensenProduct.lean new file mode 100644 index 000000000..b00e2839c --- /dev/null +++ b/RealRooted/RiemannHypothesis/JensenProduct.lean @@ -0,0 +1,70 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.MultiplierSequence.JensenProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.RiemannHypothesis +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Product +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.JensenProduct +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Auxiliary Jensen criteria for the Riemann hypothesis + +Any fixed nonzero Laguerre--Pólya function supplies a Jensen-product criterion +for RH. The auxiliary is allowed to vanish at the origin, so the statement +includes sine and Bessel examples with zero constant coefficient. + +This is the xi specialization of O'Sullivan's Theorem 3.5, +*Zeros of Jensen polynomials and asymptotics for the Riemann xi function*, +https://arxiv.org/abs/2007.13582. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- Under RH, convolving any shifted xi Taylor sequence with the Taylor data +of a Laguerre--Pólya auxiliary gives splitting Jensen polynomials. -/ +theorem jensenProductPolynomial_riemannXiCoeff_splits (hRH : RiemannHypothesis) + {g : ℂ → ℂ} {delta : ℕ → ℝ} (hg : IsLaguerrePolya g) + (hdelta : ∀ k, iteratedDeriv k g 0 = (delta k : ℂ)) (d n : ℕ) : + (jensenProductPolynomial d (fun k => riemannXiCoeff (n + k)) delta).Splits := by + have hf := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n + apply (isLaguerrePolya_mul_iff_jensenProductPolynomial_splits hf.differentiable + hg.differentiable ?_ hdelta).mp (hf.mul hg) d + intro k + simpa only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm] + using (ofReal_riemannXiCoeff (n + k)).symm + +/-- A fixed nonzero Laguerre--Pólya auxiliary gives an unshifted Jensen-product +criterion for RH, even when that auxiliary vanishes at the origin. -/ +theorem riemannHypothesis_iff_jensenProductPolynomial_splits + {g : ℂ → ℂ} {delta : ℕ → ℝ} (hg : IsLaguerrePolya g) (hg0 : g ≠ 0) + (hdelta : ∀ k, iteratedDeriv k g 0 = (delta k : ℂ)) : + RiemannHypothesis ↔ ∀ d, (jensenProductPolynomial d riemannXiCoeff delta).Splits := by + rw [riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta, + ← isLaguerrePolya_mul_iff_of_orderLE_one orderLE_riemannXiTheta + differentiable_riemannXiTheta riemannXiTheta_zero_ne_zero riemannXiTheta_conj hg hg0] + exact isLaguerrePolya_mul_iff_jensenProductPolynomial_splits + differentiable_riemannXiTheta hg.differentiable + (fun k => (ofReal_riemannXiCoeff k).symm) hdelta + +/-- The full family of shifted Jensen products for any fixed nonzero +Laguerre--Pólya auxiliary characterizes RH. -/ +theorem riemannHypothesis_iff_jensenProductPolynomial_shift_splits + {g : ℂ → ℂ} {delta : ℕ → ℝ} (hg : IsLaguerrePolya g) (hg0 : g ≠ 0) + (hdelta : ∀ k, iteratedDeriv k g 0 = (delta k : ℂ)) : + RiemannHypothesis ↔ ∀ d n, + (jensenProductPolynomial d (fun k => riemannXiCoeff (n + k)) delta).Splits := by + constructor + · exact fun h => jensenProductPolynomial_riemannXiCoeff_splits h hg hdelta + · intro h + apply (riemannHypothesis_iff_jensenProductPolynomial_splits hg hg0 hdelta).mpr + simpa using fun d => h d 0 + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/TotalPositivity.lean b/RealRooted/RiemannHypothesis/TotalPositivity.lean new file mode 100644 index 000000000..58f9091aa --- /dev/null +++ b/RealRooted/RiemannHypothesis/TotalPositivity.lean @@ -0,0 +1,51 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +import RealRooted.RiemannHypothesis +import RealRooted.RiemannHypothesis.MultiplierSequence +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivity + +/-! +# Total positivity of xi Taylor coefficients under RH + +For every derivative shift `n`, RH implies that the ordinary Taylor sequence +`γ(n + k) / k!` is Pólya-frequency. Thus every minor of its Toeplitz matrix is +nonnegative. This differs from the multiplier-sequence property of `γ` itself. + +The unshifted implication is the forward part of the RH criterion recalled in +O. M. Katkova, *Multiple positivity and the Riemann zeta-function*, +https://arxiv.org/abs/math/0505174. The converse is not asserted here. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- Every derivative of the square-variable xi function is Type-I +Laguerre--Pólya under RH. -/ +theorem isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta + (hRH : RiemannHypothesis) (n : ℕ) : + IsLaguerrePolyaTypeI (iteratedDeriv n riemannXiTheta) := by + have hf := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n + have hgamma (k : ℕ) : iteratedDeriv k (iteratedDeriv n riemannXiTheta) 0 = + (riemannXiCoeff (n + k) : ℂ) := by + simpa only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm] + using (ofReal_riemannXiCoeff (n + k)).symm + rw [eq_complexExpGeneratingFunction_of_iteratedDeriv hf.differentiable hgamma] + exact IsPFMultiplierSequence.isLaguerrePolyaTypeI_complexExpGeneratingFunction + (isPFMultiplierSequence_riemannXiCoeff_shift hRH n) + +/-- Under RH all Toeplitz minors of every factorial-normalized shifted xi +coefficient sequence are nonnegative. -/ +theorem isPolyaFreqSeq_riemannXiCoeff_div_factorial (hRH : RiemannHypothesis) (n : ℕ) : + IsPolyaFreqSeq (fun k => riemannXiCoeff (n + k) / k.factorial) := by + simpa only [riemannXiCoeff, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm] using + (isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH n).isPolyaFreqSeq + +end RealRooted diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index b65590d93..345128970 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2431 + "max_modules": 2439 }, "RealRooted.Production": { - "max_modules": 2359 + "max_modules": 2367 }, "RealRooted.Tactic.Examples": { "max_modules": 844 From 165af657aa5f61cb1d3b7d68872fe403bb67bf7c 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 14:38:25 +0000 Subject: [PATCH 03/56] feat: characterize RH by total positivity of xi coefficients --- .../TotalPositivityConverse.lean | 138 ++++++++++++++++++ .../TotalPositivityCriterion.lean | 43 ++++++ 2 files changed, 181 insertions(+) create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityConverse.lean create mode 100644 RealRooted/RiemannHypothesis/TotalPositivityCriterion.lean diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityConverse.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityConverse.lean new file mode 100644 index 000000000..3b62e1ad6 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityConverse.lean @@ -0,0 +1,138 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivity +import RealRooted.EdreiThoma.Converse +import RealRooted.AissenSchoenbergWhitney +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.CanonicalProduct +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import Mathlib.Analysis.Complex.TaylorSeries + +/-! +# Entire Pólya-frequency generating functions + +An entire function whose ordinary Taylor coefficients form a Pólya-frequency +sequence belongs to the positive Type-I Laguerre--Pólya class, provided its +constant coefficient is positive. The Edrei representation has no denominator +factors: a positive denominator parameter would give a positive real pole, +whereas the numerator is nonzero there. + +This is the positive-constant case of Theorem C in O. M. Katkova, +*Multiple positivity and the Riemann zeta-function*, arXiv:math/0505174. +The Taylor coefficients must be real; taking only their real parts does not +suffice for the converse. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- An entire identity with an Edrei numerator excludes positive denominator parameters. -/ +private theorem eq_zero_of_mul_prod_sub_eq_exp_mul_prod + {f : ℂ → ℂ} {γ : ℝ} {α β : ℕ → ℝ} + (hα : ∀ i, 0 ≤ α i) (hβ : ∀ i, 0 ≤ β i) (sα : Summable α) + (h : ∀ z, f z * (∏' i, (1 - (β i : ℂ) * z)) = + Complex.exp (γ * z) * ∏' i, (1 + (α i : ℂ) * z)) : + ∀ i, β i = 0 := by + intro i + by_contra hi + let r : ℝ := (β i)⁻¹ + have hr : 0 ≤ r := inv_nonneg.mpr (hβ i) + have hB : (∏' j, (1 - (β j : ℂ) * (r : ℂ))) = 0 := by + apply tprod_of_exists_eq_zero + refine ⟨i, ?_⟩ + simp [r, hi] + have hA : (∏' j, (1 + (α j : ℂ) * (r : ℂ))) ≠ 0 := by + apply tprod_one_add_ne_zero_of_summable + · intro j + have : 0 < 1 + α j * r := add_pos_of_pos_of_nonneg zero_lt_one (mul_nonneg (hα j) hr) + exact_mod_cast this.ne' + · simpa only [norm_mul, norm_real, Real.norm_eq_abs, abs_of_nonneg hr, + abs_of_nonneg (hα _)] using sα.mul_right r + have hz := h (r : ℂ) + rw [hB, mul_zero] at hz + exact (mul_ne_zero (Complex.exp_ne_zero _) hA) hz.symm + +/-- The normalized Edrei germ of an entire function extends to a Type-I product. -/ +private theorem exists_eq_exp_mul_prod_of_normalized + {a : ℕ → ℝ} {f : ℂ → ℂ} (ha : IsPolyaFreqSeq a) (ha0 : a 0 = 1) + (hf : Differentiable ℂ f) + (hs : ∀ᶠ z in 𝓝 (0 : ℂ), HasSum (fun n => (a n : ℂ) * z ^ n) (f z)) : + ∃ (γ : ℝ) (α : ℕ → ℝ), 0 ≤ γ ∧ (∀ i, 0 ≤ α i) ∧ Summable α ∧ + f = fun z => Complex.exp (γ * z) * ∏' i, (1 + (α i : ℂ) * z) := by + obtain ⟨γ, α, β, hγ, hα, hβ, sα, sβ, hrep⟩ := + EdreiThoma.exists_hasSum_edreiFunction ha ha0 + let E : ℂ → ℂ := fun z => Complex.exp (γ * z) * ∏' i, (1 + (α i : ℂ) * z) + let B : ℂ → ℂ := fun z => ∏' i, (1 - (β i : ℂ) * z) + have hE : IsLaguerrePolya E := by + simpa [E] using + (isLaguerrePolyaTypeI_product zero_le_one 0 hγ hα sα).toLaguerrePolya + have hB : Differentiable ℂ B := by + have hplus : IsLaguerrePolya (fun z : ℂ => ∏' i, (1 + (β i : ℂ) * z)) := by + simpa using + (isLaguerrePolyaTypeI_product zero_le_one 0 (σ := 0) le_rfl hβ sβ).toLaguerrePolya + simpa [B, Function.comp_def, sub_eq_add_neg] using + hplus.differentiable.comp differentiable_neg + have hB0 : B 0 ≠ 0 := by simp [B] + have hBne : ∀ᶠ z in 𝓝 (0 : ℂ), B z ≠ 0 := + hB.continuous.continuousAt.eventually_ne hB0 + have hev : (fun z => f z * B z) =ᶠ[𝓝 0] E := by + filter_upwards [hs, hrep, hBne] with z hs hz hBz + have heq : f z = E z / B z := by + simpa [Complex.EdreiThoma.edreiFunction, E, B] using hs.unique hz + exact (eq_div_iff hBz).mp heq + have hid : (fun z => f z * B z) = E := + ((hf.mul hB).differentiableOn.analyticOnNhd isOpen_univ).eq_of_eventuallyEq + hE.analyticOnNhd hev + have hβ0 : ∀ i, β i = 0 := + eq_zero_of_mul_prod_sub_eq_exp_mul_prod hα hβ sα (congrFun hid) + refine ⟨γ, α, hγ, hα, sα, ?_⟩ + simpa [B, E, hβ0] using hid + +/-- An entire function with a real PF generating-series germ and positive constant +coefficient is Type-I Laguerre--Pólya. -/ +theorem IsPolyaFreqSeq.isLaguerrePolyaTypeI_of_hasSum + {a : ℕ → ℝ} {f : ℂ → ℂ} (ha : IsPolyaFreqSeq a) (ha0 : 0 < a 0) + (hf : Differentiable ℂ f) + (hs : ∀ᶠ z in 𝓝 (0 : ℂ), HasSum (fun n => (a n : ℂ) * z ^ n) (f z)) : + IsLaguerrePolyaTypeI f := by + let b : ℕ → ℝ := fun n => (a 0)⁻¹ * a n + let g : ℂ → ℂ := fun z => (a 0 : ℂ)⁻¹ * f z + have hb : IsPolyaFreqSeq b := ha.const_mul_sequence _ (inv_nonneg.mpr ha0.le) + have hb0 : b 0 = 1 := by simp [b, ha0.ne'] + have hg : Differentiable ℂ g := hf.const_mul _ + have hgs : ∀ᶠ z in 𝓝 (0 : ℂ), HasSum (fun n => (b n : ℂ) * z ^ n) (g z) := by + filter_upwards [hs] with z hz + simpa [b, g, mul_assoc] using hz.mul_left (a 0 : ℂ)⁻¹ + obtain ⟨γ, α, hγ, hα, sα, heq⟩ := exists_eq_exp_mul_prod_of_normalized hb hb0 hg hgs + have heqf : f = fun z => (a 0 : ℂ) * z ^ 0 * Complex.exp (γ * z) * + ∏' i, (1 + (α i : ℂ) * z) := by + funext z + have h := congrFun heq z + have h0 : (a 0 : ℂ) ≠ 0 := by exact_mod_cast ha0.ne' + simpa [g, h0, mul_assoc] using congrArg (fun w : ℂ => (a 0 : ℂ) * w) h + rw [heqf] + exact isLaguerrePolyaTypeI_product ha0.le 0 hγ hα sα + +/-- For an entire function with real Taylor data and positive constant coefficient, +Type-I Laguerre--Pólya membership is equivalent to total positivity of the ordinary +Taylor coefficient sequence. -/ +theorem isLaguerrePolyaTypeI_iff_isPolyaFreqSeq + {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hreal : ∀ k, iteratedDeriv k f 0 = ((iteratedDeriv k f 0).re : ℂ)) + (h0 : 0 < (f 0).re) : + IsLaguerrePolyaTypeI f ↔ + IsPolyaFreqSeq (fun k => (iteratedDeriv k f 0).re / k.factorial) := by + refine ⟨IsLaguerrePolyaTypeI.isPolyaFreqSeq, fun h => ?_⟩ + apply h.isLaguerrePolyaTypeI_of_hasSum (by simpa using h0) hf + apply Eventually.of_forall + intro z + convert hasSum_taylorSeries_of_entire hf 0 z using 1 + funext k + rw [hreal k] + simp [smul_eq_mul, div_eq_mul_inv, mul_comm, mul_left_comm] + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/TotalPositivityCriterion.lean b/RealRooted/RiemannHypothesis/TotalPositivityCriterion.lean new file mode 100644 index 000000000..1d059d227 --- /dev/null +++ b/RealRooted/RiemannHypothesis/TotalPositivityCriterion.lean @@ -0,0 +1,43 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.AissenSchoenbergWhitneyBase +import RealRooted.RiemannHypothesis +import RealRooted.RiemannHypothesis.TotalPositivity +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivityConverse + +/-! +# The Riemann hypothesis and total positivity + +Mathlib's Riemann hypothesis is equivalent to total positivity of the ordinary +Taylor coefficients `γ(k) / k!` of the square-variable xi function. This is the +RH criterion following Theorem C in O. M. Katkova, *Multiple positivity and the +Riemann zeta-function*, arXiv:math/0505174. +-/ + +public section + +namespace RealRooted + +/-- RH is equivalent to the Pólya-frequency property of the ordinary xi Taylor +coefficients. The factorial converts exponential Taylor data to ordinary coefficients. -/ +theorem riemannHypothesis_iff_isPolyaFreqSeq_riemannXiCoeff : + RiemannHypothesis ↔ IsPolyaFreqSeq (fun k => riemannXiCoeff k / k.factorial) := by + refine ⟨fun h => ?_, fun h => ?_⟩ + · simpa using isPolyaFreqSeq_riemannXiCoeff_div_factorial h 0 + · have htype : IsLaguerrePolyaTypeI riemannXiTheta := + (isLaguerrePolyaTypeI_iff_isPolyaFreqSeq differentiable_riemannXiTheta + (fun k => (ofReal_riemannXiCoeff k).symm) + (by simpa [riemannXiCoeff] using riemannXiCoeff_pos 0)).mpr h + exact riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mpr htype.toLaguerrePolya + +/-- Equivalently, every derivative shift has a Pólya-frequency ordinary Taylor sequence. -/ +theorem riemannHypothesis_iff_isPolyaFreqSeq_riemannXiCoeff_shift : + RiemannHypothesis ↔ + ∀ n, IsPolyaFreqSeq (fun k => riemannXiCoeff (n + k) / k.factorial) := by + refine ⟨isPolyaFreqSeq_riemannXiCoeff_div_factorial, fun h => ?_⟩ + apply riemannHypothesis_iff_isPolyaFreqSeq_riemannXiCoeff.mpr + simpa using h 0 + +end RealRooted From 12171e3550f007521a92c41a7854dc68bdf3ece8 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 14:46:09 +0000 Subject: [PATCH 04/56] feat: prove the full Laguerre Jensen criterion for RH --- RealRooted.lean | 8 + RealRooted/Laguerre/NegativeParameters.lean | 38 ++++ .../Polynomial/Laguerre/Differential.lean | 21 +++ .../MultiplierSequence/JensenConvolution.lean | 93 +++++++++ .../MultiplierSequence/JensenLaguerre.lean | 82 ++++++++ .../JensenLaguerreBasis.lean | 176 ++++++++++++++++++ .../JensenLaguerreLimit.lean | 103 ++++++++++ .../MultiplierSequence/JensenProduct.lean | 12 ++ RealRooted/Production.lean | 8 + RealRooted/RiemannHypothesis/Laguerre.lean | 56 ++++++ scripts/import_architecture.json | 4 +- 11 files changed, 599 insertions(+), 2 deletions(-) create mode 100644 RealRooted/Laguerre/NegativeParameters.lean create mode 100644 RealRooted/MultiplierSequence/JensenConvolution.lean create mode 100644 RealRooted/MultiplierSequence/JensenLaguerre.lean create mode 100644 RealRooted/MultiplierSequence/JensenLaguerreBasis.lean create mode 100644 RealRooted/MultiplierSequence/JensenLaguerreLimit.lean create mode 100644 RealRooted/RiemannHypothesis/Laguerre.lean diff --git a/RealRooted.lean b/RealRooted.lean index 4606f6a4d..1101d8c37 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2449,3 +2449,11 @@ public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositi public import RealRooted.RiemannHypothesis.DifferentialOperator public import RealRooted.RiemannHypothesis.JensenProduct public import RealRooted.RiemannHypothesis.TotalPositivity +public import RealRooted.Laguerre.NegativeParameters +public import RealRooted.MultiplierSequence.JensenConvolution +public import RealRooted.MultiplierSequence.JensenLaguerre +public import RealRooted.MultiplierSequence.JensenLaguerreBasis +public import RealRooted.MultiplierSequence.JensenLaguerreLimit +public import RealRooted.RiemannHypothesis.Laguerre +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivityConverse +public import RealRooted.RiemannHypothesis.TotalPositivityCriterion diff --git a/RealRooted/Laguerre/NegativeParameters.lean b/RealRooted/Laguerre/NegativeParameters.lean new file mode 100644 index 000000000..164e810bf --- /dev/null +++ b/RealRooted/Laguerre/NegativeParameters.lean @@ -0,0 +1,38 @@ +module + +public import RealRooted.Mathlib.RingTheory.Polynomial.Laguerre.Basic +public import Mathlib.Basic.Real.Basic +public import Mathlib.Algebra.Polynomial.Splits +import RealRooted.Mathlib.RingTheory.Polynomial.Laguerre.Differential +import RealRooted.Laguerre.Roots +import RealRooted.ObreschkoffConverse.Forward + +/-! +# Real Laguerre roots beyond the orthogonality range + +Every generalized Laguerre polynomial splits for parameters at least `-2`. +The parameter-shift identity expresses it as a linear combination of an +interlacing pair in the classical range. This includes both endpoints and +allows mixed-sign roots when the parameter lies strictly between `-2` and `-1`. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Generalized Laguerre polynomials split throughout the extended range +`-2 ≤ α`, including the degenerate parameter endpoints. -/ +theorem generalizedLaguerre_splits_of_neg_two_le (n : ℕ) {α : ℝ} + (hα : -2 ≤ α) : (generalizedLaguerre n α).Splits := by + cases n with + | zero => simp + | succ n => + rw [generalizedLaguerre_succ_eq_sub] + have hpair := generalizedLaguerre_strictInterl_succ n + (show -1 ≤ α + 1 by linarith) + simpa only [map_neg, map_one, one_mul, neg_mul, sub_eq_add_neg, add_comm] using + (allComboRealRooted_of_strictInterl hpair) (-(n + 1 : ℝ)) 1 + +end RealRooted diff --git a/RealRooted/Mathlib/RingTheory/Polynomial/Laguerre/Differential.lean b/RealRooted/Mathlib/RingTheory/Polynomial/Laguerre/Differential.lean index 5965f24c3..c6777669f 100644 --- a/RealRooted/Mathlib/RingTheory/Polynomial/Laguerre/Differential.lean +++ b/RealRooted/Mathlib/RingTheory/Polynomial/Laguerre/Differential.lean @@ -329,4 +329,25 @@ theorem derivative_generalizedLaguerre (n : ℕ) (α : R) : coeff_generalizedLaguerre, ite_eq_right hk] simp +/-- Raising the Laguerre parameter by one adds the polynomial derivative. -/ +theorem generalizedLaguerre_add_one (n : ℕ) (α : R) : + generalizedLaguerre n (α + 1) = + generalizedLaguerre n α + (generalizedLaguerre n α).derivative := by + induction n with + | zero => simp + | succ n ih => + simp only [generalizedLaguerre_succ, laguerreRaisingStep, + ih, derivative_mul, derivative_X, derivative_C, derivative_one, + one_mul, add_zero, map_add, map_one] + ring + +/-- Lowering the Laguerre parameter gives a difference of consecutive degrees. -/ +theorem generalizedLaguerre_succ_eq_sub {S : Type*} [CommRing S] (n : ℕ) (α : S) : + generalizedLaguerre (n + 1) α = + generalizedLaguerre (n + 1) (α + 1) - + C (n + 1 : S) * generalizedLaguerre n (α + 1) := by + have h := generalizedLaguerre_add_one (n + 1) α + rw [derivative_generalizedLaguerre] at h + exact (eq_sub_iff_add_eq).mpr h.symm + end Polynomial diff --git a/RealRooted/MultiplierSequence/JensenConvolution.lean b/RealRooted/MultiplierSequence/JensenConvolution.lean new file mode 100644 index 000000000..9e06335b6 --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenConvolution.lean @@ -0,0 +1,93 @@ +module + +public import RealRooted.MultiplierSequence.JensenProduct +public import RealRooted.FiniteFreeAdditive +import RealRooted.FiniteFreeAdditive.Preservation +import RealRooted.Mathlib.Algebra.Polynomial.Reverse + +/-! +# Finite Jensen products and additive convolution + +Binomial convolution of Taylor data corresponds to finite-free additive +convolution after reflection. Consequently the splitting of the two Jensen +polynomials at a fixed degree already implies splitting of their Jensen product. +No entire-function or nonvanishing assumption is needed. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- The kernel cancels exactly against Jensen binomial normalizations. -/ +private theorem finiteFreeAdditiveConvolutionGamma_mul_choose_mul_choose + (d k i : ℕ) (hi : i ≤ k) (hk : k ≤ d) : + finiteFreeAdditiveConvolutionGamma d i (k - i) * + (d.choose i : ℝ) * (d.choose (k - i) : ℝ) = + (d.choose k : ℝ) * (k.choose i : ℝ) := by + have hid : i ≤ d := hi.trans hk + have hkid : k - i ≤ d := (Nat.sub_le k i).trans hk + have hi0 : (d.choose i : ℝ) ≠ 0 := by + exact_mod_cast (Nat.choose_pos hid).ne' + have hki0 : (d.choose (k - i) : ℝ) ≠ 0 := by + exact_mod_cast (Nat.choose_pos hkid).ne' + rw [finiteFreeAdditiveConvolutionGamma_eq_choose_ratio d i (k - i) + (by lia), Nat.add_sub_of_le hi, Nat.choose_symm hi] + field_simp [hi0, hki0] + +/-- A Jensen product is a reflected finite-free additive convolution. +No degree-exactness or nonzero assumption is needed. -/ +theorem jensenProductPolynomial_eq_reflect_convolution + (d : ℕ) (gamma delta : ℕ → ℝ) : + jensenProductPolynomial d gamma delta = + reflect d (finiteFreeAdditiveConvolution d + (reflect d (jensenPolynomial d gamma)) + (reflect d (jensenPolynomial d delta))) := by + symm + ext k + by_cases hk : k ≤ d + · rw [coeff_reflect, revAt_le hk, + coeff_finiteFreeAdditiveConvolution_of_le _ _ _ (Nat.sub_le d k), + Nat.sub_sub_self hk, coeff_jensenProductPolynomial, ite_eq_left hk] + unfold finiteFreeAdditiveConvolutionCoeff binomialConvolution + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro i hi + have hik : i ≤ k := Nat.lt_succ_iff.mp (Finset.mem_range.mp hi) + have hid : i ≤ d := hik.trans hk + have hkid : k - i ≤ d := (Nat.sub_le k i).trans hk + rw [coeff_reflect, revAt_le (Nat.sub_le d i), Nat.sub_sub_self hid, + coeff_reflect, revAt_le (Nat.sub_le d (k - i)), Nat.sub_sub_self hkid, + coeff_jensenPolynomial, ite_eq_left hid, coeff_jensenPolynomial, ite_eq_left hkid] + calc + _ = (finiteFreeAdditiveConvolutionGamma d i (k - i) * + (d.choose i : ℝ) * (d.choose (k - i) : ℝ)) * + gamma i * delta (k - i) := by ring + _ = (d.choose k : ℝ) * + ((k.choose i : ℝ) * gamma i * delta (k - i)) := by + rw [finiteFreeAdditiveConvolutionGamma_mul_choose_mul_choose d k i hik hk] + ring + · rw [coeff_reflect, revAt_eq_self_of_lt (Nat.lt_of_not_ge hk), + coeff_finiteFreeAdditiveConvolution_of_gt _ _ _ (Nat.lt_of_not_ge hk), + coeff_jensenProductPolynomial, ite_eq_right hk] + +/-- Finite product transfer: splitting of the two degree-`d` Jensen polynomials +implies splitting of their degree-`d` Jensen product. -/ +theorem jensenProductPolynomial_splits + (d : ℕ) {gamma delta : ℕ → ℝ} + (hgamma : (jensenPolynomial d gamma).Splits) + (hdelta : (jensenPolynomial d delta).Splits) : + (jensenProductPolynomial d gamma delta).Splits := by + rw [jensenProductPolynomial_eq_reflect_convolution] + have hgd := natDegree_jensenPolynomial_le d gamma + have hdd := natDegree_jensenPolynomial_le d delta + have hgdr : (reflect d (jensenPolynomial d gamma)).natDegree ≤ d := + natDegree_reflect_le.trans (max_le le_rfl hgd) + have hddr : (reflect d (jensenPolynomial d delta)).natDegree ≤ d := + natDegree_reflect_le.trans (max_le le_rfl hdd) + apply (splits_reflect_iff (natDegree_finiteFreeAdditiveConvolution_le d _ _)).mpr + exact splits_finiteFreeAdditiveConvolution d + ((splits_reflect_iff hgd).mpr hgamma) ((splits_reflect_iff hdd).mpr hdelta) hgdr hddr + +end RealRooted diff --git a/RealRooted/MultiplierSequence/JensenLaguerre.lean b/RealRooted/MultiplierSequence/JensenLaguerre.lean new file mode 100644 index 000000000..1b26c3040 --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenLaguerre.lean @@ -0,0 +1,82 @@ +module + +public import RealRooted.MultiplierSequence.JensenProduct +public import RealRooted.Mathlib.RingTheory.Polynomial.Laguerre.Basic +import RealRooted.MultiplierSequence.JensenConvolution +import RealRooted.Laguerre.NegativeParameters +import RealRooted.Mathlib.Algebra.Polynomial.Degree.Lemmas + +/-! +# Laguerre versions of Jensen polynomials + +The degree-dependent Laguerre auxiliary gives the factorial normalization +`d! Q` of O'Sullivan's Laguerre Jensen polynomial. Its construction uses rising +factorials and remains defined at the parameters `-1` and `-2`, where formulas +using quotients of Gamma functions require separate treatment. + +Splitting of the input Jensen polynomial at a fixed degree suffices for +splitting of every Laguerre transform at parameters at least `-2`. +-/ + +@[expose] public section + +open Polynomial + +namespace RealRooted + +/-- Degree-dependent exponential Taylor data for the factorial-normalized +Laguerre auxiliary. -/ +noncomputable def laguerreJensenCoeff (d : ℕ) (alpha : ℝ) (k : ℕ) : ℝ := + (-1 : ℝ) ^ k * (ascPochhammer ℝ (d - k)).eval (alpha + k + 1) + +/-- The factorial-normalized Laguerre Jensen family, using rising factorials +so that the endpoint parameters require no division. -/ +noncomputable def laguerreJensenPolynomial (d : ℕ) (gamma : ℕ → ℝ) (alpha : ℝ) : ℝ[X] := + jensenProductPolynomial d gamma (laguerreJensenCoeff d alpha) + +/-- The Laguerre auxiliary's Jensen polynomial is the classical-sign +Laguerre polynomial in factorial normalization. -/ +theorem jensenPolynomial_laguerreJensenCoeff (d : ℕ) (alpha : ℝ) : + jensenPolynomial d (laguerreJensenCoeff d alpha) = + (generalizedLaguerre d alpha).comp (-X) := by + ext k + rw [coeff_jensenPolynomial, coeff_comp_neg_X, coeff_generalizedLaguerre] + by_cases hk : k ≤ d + · simp only [ite_eq_left hk, laguerreJensenCoeff] + ring + · simp [hk] + +/-- The coefficient formula indexed by degree loss. Only the zero-loss term +has degree `d` in the Laguerre parameter. -/ +theorem coeff_laguerreJensenPolynomial (d k : ℕ) (gamma : ℕ → ℝ) (alpha : ℝ) : + (laguerreJensenPolynomial d gamma alpha).coeff k = + if k ≤ d then (d.choose k : ℝ) * + ∑ r ∈ Finset.range (k + 1), + (k.choose r : ℝ) * (-1 : ℝ) ^ r * gamma (k - r) * + (ascPochhammer ℝ (d - r)).eval (alpha + r + 1) + else 0 := by + rw [laguerreJensenPolynomial, coeff_jensenProductPolynomial, + binomialConvolution_comm, binomialConvolution] + split_ifs + · congr 1 + apply Finset.sum_congr rfl + intro r hr + dsimp [laguerreJensenCoeff] + ring + · rfl + +/-- The Laguerre Jensen degree bound holds even at degenerate parameters. -/ +theorem natDegree_laguerreJensenPolynomial_le (d : ℕ) (gamma : ℕ → ℝ) (alpha : ℝ) : + (laguerreJensenPolynomial d gamma alpha).natDegree ≤ d := + natDegree_jensenProductPolynomial_le d _ _ + +/-- A splitting Jensen polynomial gives splitting Laguerre Jensen polynomials +throughout the extended parameter range. -/ +theorem laguerreJensenPolynomial_splits {d : ℕ} {gamma : ℕ → ℝ} {alpha : ℝ} + (hgamma : (jensenPolynomial d gamma).Splits) (halpha : -2 ≤ alpha) : + (laguerreJensenPolynomial d gamma alpha).Splits := by + apply jensenProductPolynomial_splits d hgamma + rw [jensenPolynomial_laguerreJensenCoeff] + exact (generalizedLaguerre_splits_of_neg_two_le d halpha).comp_neg_X + +end RealRooted diff --git a/RealRooted/MultiplierSequence/JensenLaguerreBasis.lean b/RealRooted/MultiplierSequence/JensenLaguerreBasis.lean new file mode 100644 index 000000000..7891eafd6 --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenLaguerreBasis.lean @@ -0,0 +1,176 @@ +module + +public import RealRooted.MultiplierSequence.JensenLaguerre +public import Mathlib.RingTheory.Binomial +import RealRooted.Mathlib.Algebra.Polynomial.Degree.Lemmas + +/-! +# Classical Laguerre basis for Jensen transforms + +The rising-factorial transform is exactly `d!` times the Laguerre family in +O'Sullivan, *Zeros of Jensen polynomials and asymptotics for the Riemann xi +function*, equation (3.8) and Theorem 3.9, https://arxiv.org/abs/2007.13582. +These algebraic identities hold for every real parameter, including `-1` and `-2`. +-/ + +public section + +open Polynomial +open scoped BigOperators + +namespace RealRooted + +noncomputable section + +private theorem descFactorial_mul_choose_eq_pochhammer + (d j : ℕ) (hjd : j ≤ d) (alpha : ℝ) : + (d.descFactorial j : ℝ) * Ring.choose ((d : ℝ) + alpha) j = + (d.choose j : ℝ) * + (ascPochhammer ℝ j).eval (alpha + (d - j : ℕ) + 1) := by + have harg : (d : ℝ) + alpha - j + 1 = alpha + (d - j : ℕ) + 1 := by + rw [Nat.cast_sub hjd] + ring + have hfac : (j.factorial : ℝ) ≠ 0 := by positivity + rw [Nat.descFactorial_eq_factorial_mul_choose, Nat.cast_mul, + Ring.choose_eq_smul, descPochhammer_smeval_eq_ascPochhammer, + ascPochhammer_smeval_eq_eval, smul_eq_mul, harg] + field_simp [hfac] + +private theorem laguerre_classical_coefficient_factor + (d k j : ℕ) (hjk : j ≤ k) (hkd : k ≤ d) (alpha : ℝ) : + (d.descFactorial j : ℝ) * Ring.choose ((d : ℝ) + alpha) j * + ((d - j).choose (k - j) : ℝ) * + (ascPochhammer ℝ (d - k)).eval (alpha + (k - j : ℕ) + 1) = + (d.choose k : ℝ) * (k.choose j : ℝ) * + (ascPochhammer ℝ (d - (k - j))).eval (alpha + (k - j : ℕ) + 1) := by + have hjd : j ≤ d := hjk.trans hkd + rw [descFactorial_mul_choose_eq_pochhammer d j hjd alpha] + have hchoose : + (d.choose j : ℝ) * ((d - j).choose (k - j) : ℝ) = + (d.choose k : ℝ) * (k.choose j : ℝ) := by + exact_mod_cast (Nat.choose_mul (n := d) (k := k) (s := j) hjk).symm + have hlength : d - k + j = d - (k - j) := by lia + have hindices : k - j + (d - k) = d - j := by lia + have hindicesR := congrArg (fun n : ℕ => (n : ℝ)) hindices + push_cast at hindicesR + have hshift : + (alpha + (k - j : ℕ) + 1) + (d - k : ℕ) = + alpha + (d - j : ℕ) + 1 := by linarith + have hpoch : + (ascPochhammer ℝ (d - k)).eval (alpha + (k - j : ℕ) + 1) * + (ascPochhammer ℝ j).eval (alpha + (d - j : ℕ) + 1) = + (ascPochhammer ℝ (d - (k - j))).eval (alpha + (k - j : ℕ) + 1) := by + have h := congrArg (fun p : ℝ[X] => p.eval (alpha + (k - j : ℕ) + 1)) + (ascPochhammer_mul (S := ℝ) (d - k) j) + simpa only [eval_mul, eval_comp, eval_add, eval_X, eval_natCast, + hshift, hlength] using h + calc + _ = ((d.choose j : ℝ) * ((d - j).choose (k - j) : ℝ)) * + ((ascPochhammer ℝ (d - k)).eval (alpha + (k - j : ℕ) + 1) * + (ascPochhammer ℝ j).eval (alpha + (d - j : ℕ) + 1)) := by ring + _ = _ := by rw [hchoose, hpoch] + +private theorem coeff_laguerreJensenPolynomial_by_input + (d k : ℕ) (gamma : ℕ → ℝ) (alpha : ℝ) (hk : k ≤ d) : + (laguerreJensenPolynomial d gamma alpha).coeff k = + (d.choose k : ℝ) * + ∑ j ∈ Finset.range (k + 1), + (k.choose j : ℝ) * gamma j * (-1 : ℝ) ^ (k - j) * + (ascPochhammer ℝ (d - (k - j))).eval (alpha + (k - j : ℕ) + 1) := by + rw [laguerreJensenPolynomial, coeff_jensenProductPolynomial, + ite_eq_left hk, binomialConvolution] + congr 1 + apply Finset.sum_congr rfl + intro j hj + dsimp [laguerreJensenCoeff] + ring + +/-- The Gamma-free Laguerre Jensen family expanded in the classical-sign +Laguerre basis. This identity holds for every real parameter, including -1 and -2. -/ +theorem laguerreJensenPolynomial_eq_laguerre_sum + (d : ℕ) (gamma : ℕ → ℝ) (alpha : ℝ) : + laguerreJensenPolynomial d gamma alpha = + ∑ j ∈ Finset.range (d + 1), + C ((d.descFactorial j : ℝ) * Ring.choose ((d : ℝ) + alpha) j * gamma j) * + (X ^ j * (generalizedLaguerre (d - j) alpha).comp (-X)) := by + let B (j : ℕ) : ℝ[X] := + C ((d.descFactorial j : ℝ) * Ring.choose ((d : ℝ) + alpha) j * gamma j) * + (X ^ j * (generalizedLaguerre (d - j) alpha).comp (-X)) + ext k + change (laguerreJensenPolynomial d gamma alpha).coeff k = + (∑ j ∈ Finset.range (d + 1), B j).coeff k + rw [finsetSum_coeff] + by_cases hk : k ≤ d + · rw [coeff_laguerreJensenPolynomial_by_input d k gamma alpha hk, Finset.mul_sum] + symm + calc + ∑ j ∈ Finset.range (d + 1), (B j).coeff k = + ∑ j ∈ Finset.range (k + 1), (B j).coeff k := by + symm + apply Finset.sum_subset (Finset.range_mono (Nat.succ_le_succ hk)) + intro j hjd hjk + have hkj : k < j := by + simp only [Finset.mem_range, not_lt] at hjk + lia + simp only [B, coeff_C_mul, coeff_X_pow_mul', + ite_eq_right (Nat.not_le.mpr hkj), mul_zero] + _ = ∑ j ∈ Finset.range (k + 1), + (d.choose k : ℝ) * + ((k.choose j : ℝ) * gamma j * (-1 : ℝ) ^ (k - j) * + (ascPochhammer ℝ (d - (k - j))).eval + (alpha + (k - j : ℕ) + 1)) := by + apply Finset.sum_congr rfl + intro j hj + have hjk : j ≤ k := Nat.lt_succ_iff.mp (Finset.mem_range.mp hj) + have hsub : k - j ≤ d - j := by lia + have hlength : d - j - (k - j) = d - k := by lia + simp only [B, coeff_C_mul, coeff_X_pow_mul', ite_eq_left hjk, + coeff_comp_neg_X, coeff_generalizedLaguerre, ite_eq_left hsub, hlength] + calc + _ = ((d.descFactorial j : ℝ) * Ring.choose ((d : ℝ) + alpha) j * + ((d - j).choose (k - j) : ℝ) * + (ascPochhammer ℝ (d - k)).eval (alpha + (k - j : ℕ) + 1)) * + gamma j * (-1 : ℝ) ^ (k - j) := by ring + _ = _ := by + rw [laguerre_classical_coefficient_factor d k j hjk hk alpha] + ring + · rw [coeff_laguerreJensenPolynomial, ite_eq_right hk] + symm + apply Finset.sum_eq_zero + intro j hj + have hjd : j ≤ d := Nat.lt_succ_iff.mp (Finset.mem_range.mp hj) + have hdk : d < k := Nat.lt_of_not_ge hk + have hjk : j ≤ k := by lia + have hsub : ¬ k - j ≤ d - j := by lia + simp only [B, coeff_C_mul, coeff_X_pow_mul', ite_eq_left hjk, + coeff_comp_neg_X, coeff_generalizedLaguerre, ite_eq_right hsub, + zero_mul, mul_zero] + +/-- Written with the standard Laguerre normalization, the polynomial is d! Q. +Here `C (m!⁻¹) * (generalizedLaguerre m alpha).comp (-X)` denotes L_m^alpha(X). -/ +theorem laguerreJensenPolynomial_eq_factorial_mul + (d : ℕ) (gamma : ℕ → ℝ) (alpha : ℝ) : + laguerreJensenPolynomial d gamma alpha = + C (d.factorial : ℝ) * + ∑ j ∈ Finset.range (d + 1), + C (Ring.choose ((d : ℝ) + alpha) j * gamma j) * + (X ^ j * (C (((d - j).factorial : ℝ)⁻¹) * + (generalizedLaguerre (d - j) alpha).comp (-X))) := by + rw [laguerreJensenPolynomial_eq_laguerre_sum, Finset.mul_sum] + apply Finset.sum_congr rfl + intro j hj + have hjd : j ≤ d := Nat.lt_succ_iff.mp (Finset.mem_range.mp hj) + have hf : (((d - j).factorial : ℕ) : ℝ) ≠ 0 := by positivity + have hfac := congrArg (fun n : ℕ => (n : ℝ)) (Nat.factorial_mul_descFactorial hjd) + push_cast at hfac + have hdesc : (d.descFactorial j : ℝ) = + (d.factorial : ℝ) * (((d - j).factorial : ℝ)⁻¹) := by + field_simp [hf] + nlinarith [hfac] + rw [hdesc] + simp only [map_mul] + ring + +end + +end RealRooted diff --git a/RealRooted/MultiplierSequence/JensenLaguerreLimit.lean b/RealRooted/MultiplierSequence/JensenLaguerreLimit.lean new file mode 100644 index 000000000..3fd7ddb91 --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenLaguerreLimit.lean @@ -0,0 +1,103 @@ +module + +public import RealRooted.MultiplierSequence.JensenLaguerre +import Mathlib.Topology.Algebra.Order.Polynomial +import RealRooted.Mathlib.Analysis.Complex.Polynomial.ClosedRoots.Real +import RealRooted.PFPolynomial.Closure + +/-! +# The Laguerre Jensen criterion + +Dividing the factorial-normalized Laguerre transform by the parameter to the +degree gives the original Jensen polynomial in the limit. Closedness of real +splitting proves the converse to finite Laguerre transfer. No sign or +nonvanishing hypothesis on the coefficient sequence is required. +-/ + +public section + +open Polynomial Filter Topology + +namespace RealRooted + +/-- Only the term with no degree loss survives normalization at infinity. -/ +private theorem tendsto_laguerrePochhammer_div_pow (d r : ℕ) (hr : r ≤ d) : + Tendsto (fun alpha : ℝ => + (ascPochhammer ℝ (d - r)).eval (alpha + r + 1) / alpha ^ d) + atTop (𝓝 (if r = 0 then 1 else 0)) := by + let p : ℝ[X] := (ascPochhammer ℝ (d - r)).comp (X + C ((r : ℝ) + 1)) + have hp : p.Monic := (monic_ascPochhammer (S := ℝ) (d - r)).comp + (monic_X_add_C _) (by rw [natDegree_X_add_C]; exact one_ne_zero) + have hdeg : p.natDegree = d - r := by + simp only [p, natDegree_comp, ascPochhammer_natDegree, natDegree_X_add_C, mul_one] + by_cases hr0 : r = 0 + · subst r + have hlim := p.tendsTo_atTop_div_nhds_leadingCoeff + simp only [hdeg, Nat.sub_zero, hp.leadingCoeff] at hlim + simpa [p, eval_comp, add_assoc] using hlim + · have hlt : p.degree < (X ^ d : ℝ[X]).degree := by + rw [degree_eq_natDegree hp.ne_zero, hdeg, degree_X_pow] + exact_mod_cast (Nat.sub_lt (by lia) (Nat.pos_of_ne_zero hr0)) + simpa [p, hr0, eval_comp, add_assoc] using + Polynomial.div_tendsto_atTop_zero_of_degree_lt hlt + +/-- The normalized Laguerre coefficients converge to the Jensen coefficients +as the Laguerre parameter tends to positive infinity. -/ +theorem tendsto_coeff_laguerreJensenPolynomial_div (d k : ℕ) (gamma : ℕ → ℝ) : + Tendsto (fun alpha : ℝ => + (laguerreJensenPolynomial d gamma alpha).coeff k / alpha ^ d) + atTop (𝓝 ((jensenPolynomial d gamma).coeff k)) := by + by_cases hk : k ≤ d + · have hsum := tendsto_finsetSum (Finset.range (k + 1)) (fun r hr => + (tendsto_laguerrePochhammer_div_pow d r + ((Nat.lt_succ_iff.mp (Finset.mem_range.mp hr)).trans hk)).const_mul + ((k.choose r : ℝ) * (-1 : ℝ) ^ r * gamma (k - r))) + simpa [coeff_laguerreJensenPolynomial, coeff_jensenPolynomial, hk, + mul_div_assoc, Finset.sum_div] using hsum.const_mul (d.choose k : ℝ) + · simp only [coeff_laguerreJensenPolynomial, coeff_jensenPolynomial, ite_eq_right hk, + zero_div] + exact tendsto_const_nhds + +/-- It is enough to test the Laguerre family at nonnegative integer parameters +to recover splitting of the original Jensen polynomial. -/ +theorem jensenPolynomial_splits_of_laguerreJensenPolynomial + {d : ℕ} {gamma : ℕ → ℝ} + (h : ∀ n : ℕ, (laguerreJensenPolynomial d gamma n).Splits) : + (jensenPolynomial d gamma).Splits := by + let q : ℕ → ℝ[X] := fun n => + C (((n : ℝ) ^ d)⁻¹) * laguerreJensenPolynomial d gamma n + have hdeg (n : ℕ) : (q n).natDegree ≤ d := + (natDegree_C_mul_le _ _).trans (natDegree_laguerreJensenPolynomial_le d gamma n) + have hsplit (n : ℕ) : q n = 0 ∨ (q n).Splits := .inr ((h n).C_mul _) + have hcoeff (k : ℕ) : Tendsto (fun n => (q n).coeff k) atTop + (𝓝 ((jensenPolynomial d gamma).coeff k)) := by + simpa [q, coeff_C_mul, div_eq_mul_inv, mul_comm, Function.comp_def] using + (tendsto_coeff_laguerreJensenPolynomial_div d k gamma).comp + tendsto_natCast_atTop_atTop + have heval (z : ℂ) : Tendsto (fun n => ((q n).map Complex.ofRealHom).eval z) + atTop (𝓝 (((jensenPolynomial d gamma).map Complex.ofRealHom).eval z)) := by + refine Polynomial.tendsto_eval_of_coeff_tendsto_of_natDegree_le + (N := d) (fun n => by simpa using hdeg n) + (by simpa using natDegree_jensenPolynomial_le d gamma) ?_ z + intro k + simpa [Function.comp_def] using (Complex.continuous_ofReal.tendsto _).comp (hcoeff k) + rcases Polynomial.eq_zero_or_splits_of_tendsto_eval_of_natDegree_le + hdeg hsplit heval with hzero | hreal + · rw [hzero] + exact Splits.zero + · exact hreal + +/-- A finite Jensen polynomial splits exactly when all its Laguerre transforms +split throughout the extended parameter range. -/ +theorem jensenPolynomial_splits_iff_laguerreJensenPolynomial + (d : ℕ) (gamma : ℕ → ℝ) : + (jensenPolynomial d gamma).Splits ↔ + ∀ alpha : ℝ, -2 ≤ alpha → (laguerreJensenPolynomial d gamma alpha).Splits := by + constructor + · intro h alpha halpha + exact laguerreJensenPolynomial_splits h halpha + · intro h + exact jensenPolynomial_splits_of_laguerreJensenPolynomial + (fun n => h n (le_trans (by norm_num) (Nat.cast_nonneg n))) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/JensenProduct.lean b/RealRooted/MultiplierSequence/JensenProduct.lean index acde0439b..9d99f622a 100644 --- a/RealRooted/MultiplierSequence/JensenProduct.lean +++ b/RealRooted/MultiplierSequence/JensenProduct.lean @@ -33,6 +33,18 @@ noncomputable def jensenProductPolynomial (d : ℕ) (gamma delta : ℕ → ℝ) binomialConvolution gamma delta 0 = gamma 0 * delta 0 := by simp [binomialConvolution] +/-- Binomial convolution is symmetric in its two coefficient sequences. -/ +theorem binomialConvolution_comm (gamma delta : ℕ → ℝ) (n : ℕ) : + binomialConvolution gamma delta n = binomialConvolution delta gamma n := by + unfold binomialConvolution + rw [← Finset.sum_range_reflect + (fun k => (n.choose k : ℝ) * gamma k * delta (n - k)) (n + 1)] + apply Finset.sum_congr rfl + intro k hk + have hkn : k ≤ n := Nat.lt_succ_iff.mp (Finset.mem_range.mp hk) + simp only [Nat.add_sub_cancel, Nat.sub_sub_self hkn, Nat.choose_symm hkn] + ring + /-- Jensen product coefficients in binomial normalization. -/ @[simp] theorem coeff_jensenProductPolynomial (d : ℕ) (gamma delta : ℕ → ℝ) (k : ℕ) : (jensenProductPolynomial d gamma delta).coeff k = diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index 624d2891b..c409647b1 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2374,6 +2374,14 @@ public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositi public import RealRooted.RiemannHypothesis.DifferentialOperator public import RealRooted.RiemannHypothesis.JensenProduct public import RealRooted.RiemannHypothesis.TotalPositivity +public import RealRooted.Laguerre.NegativeParameters +public import RealRooted.MultiplierSequence.JensenConvolution +public import RealRooted.MultiplierSequence.JensenLaguerre +public import RealRooted.MultiplierSequence.JensenLaguerreBasis +public import RealRooted.MultiplierSequence.JensenLaguerreLimit +public import RealRooted.RiemannHypothesis.Laguerre +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivityConverse +public import RealRooted.RiemannHypothesis.TotalPositivityCriterion /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/Laguerre.lean b/RealRooted/RiemannHypothesis/Laguerre.lean new file mode 100644 index 000000000..31cd9e8b6 --- /dev/null +++ b/RealRooted/RiemannHypothesis/Laguerre.lean @@ -0,0 +1,56 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.MultiplierSequence.JensenLaguerre +import RealRooted.RiemannHypothesis +import RealRooted.MultiplierSequence.JensenLaguerreLimit + +/-! +# Laguerre Jensen criteria for the Riemann hypothesis + +Mathlib's RH is equivalent to splitting of all Laguerre transforms of the +normalized xi coefficients, for every parameter at least `-2`. The unshifted +family suffices. The rising-factorial normalization includes both exceptional +parameters `-1` and `-2` without Gamma quotients. + +## References + +* Cormac O'Sullivan, *Zeros of Jensen polynomials and asymptotics for the Riemann + xi function*, Theorem 3.9, https://arxiv.org/abs/2007.13582. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Under Mathlib's RH, every shifted xi Laguerre Jensen polynomial splits +throughout the extended parameter range. -/ +theorem laguerreJensenPolynomial_riemannXiCoeff_splits + (hRH : RiemannHypothesis) (d n : ℕ) {alpha : ℝ} (halpha : -2 ≤ alpha) : + (laguerreJensenPolynomial d (fun k => riemannXiCoeff (n + k)) alpha).Splits := + laguerreJensenPolynomial_splits (riemannXiJensenPolynomial_splits hRH d n) halpha + +/-- The unshifted Laguerre Jensen family already characterizes Mathlib's RH. -/ +theorem riemannHypothesis_iff_laguerreJensenPolynomial_splits : + RiemannHypothesis ↔ ∀ d (alpha : ℝ), -2 ≤ alpha → + (laguerreJensenPolynomial d riemannXiCoeff alpha).Splits := by + rw [riemannHypothesis_iff_riemannXiJensenPolynomial_zero_splits] + simp only [riemannXiJensenPolynomial, Nat.zero_add, + jensenPolynomial_splits_iff_laguerreJensenPolynomial] + +/-- All degrees, shifts, and parameters in the extended Laguerre range give +an equivalent polynomial criterion for Mathlib's RH. -/ +theorem riemannHypothesis_iff_laguerreJensenPolynomial_shift_splits : + RiemannHypothesis ↔ ∀ d n (alpha : ℝ), -2 ≤ alpha → + (laguerreJensenPolynomial d (fun k => riemannXiCoeff (n + k)) alpha).Splits := by + constructor + · intro h d n alpha halpha + exact laguerreJensenPolynomial_riemannXiCoeff_splits h d n halpha + · intro h + apply riemannHypothesis_iff_laguerreJensenPolynomial_splits.mpr + intro d alpha halpha + simpa only [Nat.zero_add] using h d 0 alpha halpha + +end RealRooted diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index 345128970..7faa28ab0 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2439 + "max_modules": 2447 }, "RealRooted.Production": { - "max_modules": 2367 + "max_modules": 2375 }, "RealRooted.Tactic.Examples": { "max_modules": 844 From 5ac5c3434e2122d8e906d46c5db7ec29d16a6408 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 14:44:52 +0000 Subject: [PATCH 05/56] feat: include zero prefixes in the entire PF characterization --- .../TotalPositivityZeroPrefix.lean | 98 +++++++++++++++++++ .../LaguerrePolya/TypeIClosure.lean | 49 ++++++++++ 2 files changed, 147 insertions(+) create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityZeroPrefix.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIClosure.lean diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityZeroPrefix.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityZeroPrefix.lean new file mode 100644 index 000000000..5f66c8eba --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityZeroPrefix.lean @@ -0,0 +1,98 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivityConverse +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeIClosure +import RealRooted.AissenSchoenbergWhitney +import Mathlib.Analysis.Calculus.DSlope +import Mathlib.Analysis.Analytic.OfScalars +import Mathlib.Analysis.Complex.TaylorSeries + +/-! +# Entire Pólya-frequency series with initial zeros + +Every entire function with a real PF generating-series germ belongs to the +positive Type-I Laguerre--Pólya class. Initial zero coefficients are removed +using the analytic divided difference at zero and restored as factors of `z`. +The identically zero function is included. + +Together with the forward coefficient theorem this proves Theorem C in +O. M. Katkova, *Multiple positivity and the Riemann zeta-function*, +arXiv:math/0505174, without a nonzero constant-coefficient restriction. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- A power-series germ can be divided by its initial zero coefficient while +retaining an entire function. -/ +private theorem isLaguerrePolyaTypeI_of_nonzero_coefficient + (n : ℕ) {a : ℕ → ℝ} {f : ℂ → ℂ} (ha : IsPolyaFreqSeq a) (han : a n ≠ 0) + (hf : Differentiable ℂ f) + (hs : ∀ᶠ z in 𝓝 (0 : ℂ), HasSum (fun k => (a k : ℂ) * z ^ k) (f z)) : + IsLaguerrePolyaTypeI f := by + induction n generalizing a f with + | zero => + exact ha.isLaguerrePolyaTypeI_of_hasSum ((ha.nonneg 0).lt_of_ne' han) hf hs + | succ n ih => + by_cases ha0 : a 0 = 0 + · have hp : HasFPowerSeriesAt f + (FormalMultilinearSeries.ofScalars ℂ (fun k => (a k : ℂ))) 0 := by + simpa [hasFPowerSeriesAt_iff, smul_eq_mul, mul_comm] using hs + have hf0 : f 0 = 0 := by + simpa [FormalMultilinearSeries.ofScalars, ha0] using (hp.coeff_zero 1).symm + have hd : Differentiable ℂ (dslope f 0) := + fun z => ((hf.analyticAt z).dslope 0).differentiableAt + have hds : ∀ᶠ z in 𝓝 (0 : ℂ), + HasSum (fun k => (a (k + 1) : ℂ) * z ^ k) (dslope f 0 z) := by + simpa [hasFPowerSeriesAt_iff, FormalMultilinearSeries.coeff_fslope, + smul_eq_mul, mul_comm] using hp.dslope_fslope + have htype := ih (ha.tail_of_zero ha0) han hd hds + have hid : IsLaguerrePolyaTypeI (fun z : ℂ => z) := by + simpa using (isPFPolynomial_X_pow 1).isLaguerrePolyaTypeI + convert hid.mul htype using 1 + funext z + simpa [smul_eq_mul, hf0] using (sub_smul_dslope f 0 z).symm + · exact ha.isLaguerrePolyaTypeI_of_hasSum ((ha.nonneg 0).lt_of_ne' ha0) hf hs + +/-- An entire function with a real PF generating-series germ belongs to the +positive Type-I Laguerre--Pólya class, including initial zeros and the zero function. -/ +theorem IsPolyaFreqSeq.isLaguerrePolyaTypeI_of_entire + {a : ℕ → ℝ} {f : ℂ → ℂ} (ha : IsPolyaFreqSeq a) (hf : Differentiable ℂ f) + (hs : ∀ᶠ z in 𝓝 (0 : ℂ), HasSum (fun k => (a k : ℂ) * z ^ k) (f z)) : + IsLaguerrePolyaTypeI f := by + by_cases hnonzero : ∃ n, a n ≠ 0 + · obtain ⟨n, hn⟩ := hnonzero + exact isLaguerrePolyaTypeI_of_nonzero_coefficient n ha hn hf hs + · have ha0 : ∀ n, a n = 0 := by simpa using hnonzero + have heq : f =ᶠ[𝓝 0] 0 := by + filter_upwards [hs] with z hz + simpa [ha0] using hz.tsum_eq.symm + have hfzero : f = 0 := + (hf.differentiableOn.analyticOnNhd isOpen_univ).eq_of_eventuallyEq + analyticOnNhd_const heq + simp [hfzero] + +/-- An entire function with real Taylor data is positive Type-I Laguerre--Pólya +exactly when its ordinary Taylor coefficients form a Pólya-frequency sequence. +No nonvanishing or positivity assumption at the origin is required. -/ +theorem isLaguerrePolyaTypeI_iff_isPolyaFreqSeq_of_entire + {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hreal : ∀ k, iteratedDeriv k f 0 = ((iteratedDeriv k f 0).re : ℂ)) : + IsLaguerrePolyaTypeI f ↔ + IsPolyaFreqSeq (fun k => (iteratedDeriv k f 0).re / k.factorial) := by + refine ⟨IsLaguerrePolyaTypeI.isPolyaFreqSeq, fun h => ?_⟩ + apply h.isLaguerrePolyaTypeI_of_entire hf + apply Eventually.of_forall + intro z + convert hasSum_taylorSeries_of_entire hf 0 z using 1 + funext k + rw [hreal k] + simp [smul_eq_mul, div_eq_mul_inv, mul_comm, mul_left_comm] + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIClosure.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIClosure.lean new file mode 100644 index 000000000..3e477fa59 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIClosure.lean @@ -0,0 +1,49 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +import RealRooted.PFPolynomial + +/-! +# Type-I Laguerre--Pólya products + +PF polynomials belong to the positive Type-I class, including the zero polynomial. +The class is closed under multiplication, so factors at the origin can be restored +after deleting initial zero Taylor coefficients. +-/ + +public section + +open Polynomial Filter Topology + +namespace RealRooted + +/-- Every PF polynomial defines a Type-I Laguerre--Pólya function. -/ +theorem IsPFPolynomial.isLaguerrePolyaTypeI {p : ℝ[X]} (hp : IsPFPolynomial p) : + IsLaguerrePolyaTypeI (fun z : ℂ => (p.map Complex.ofRealHom).eval z) := by + refine ⟨fun _ => p, fun _ => hp, ?_⟩ + intro u hu x + refine ⟨Set.univ, univ_mem, ?_⟩ + filter_upwards [] with n y + intro _ + exact refl_mem_uniformity hu + +/-- The zero function belongs to the positive Type-I Laguerre--Pólya class. -/ +@[simp] +theorem IsLaguerrePolyaTypeI.zero : IsLaguerrePolyaTypeI 0 := by + simpa [Pi.zero_def] using IsPFPolynomial.zero.isLaguerrePolyaTypeI + +/-- The positive Type-I Laguerre--Pólya class is closed under products. -/ +theorem IsLaguerrePolyaTypeI.mul {f g : ℂ → ℂ} + (hf : IsLaguerrePolyaTypeI f) (hg : IsLaguerrePolyaTypeI g) : + IsLaguerrePolyaTypeI (f * g) := by + obtain ⟨p, hp, hptend⟩ := hf + obtain ⟨q, hq, hqtend⟩ := hg + refine ⟨fun n => p n * q n, fun n => (hp n).mul (hq n), ?_⟩ + have hmul := hptend.mul₀ hqtend + (hptend.continuous <| Filter.Frequently.of_forall fun n => + Polynomial.continuous ((p n).map Complex.ofRealHom)) + (hqtend.continuous <| Filter.Frequently.of_forall fun n => + Polynomial.continuous ((q n).map Complex.ofRealHom)) + simpa only [Pi.mul_def, Polynomial.map_mul, Polynomial.eval_mul] using hmul + +end RealRooted From c64e02d1c6dc486b1a23119e83827d99eff22c81 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 14:48:37 +0000 Subject: [PATCH 06/56] feat: characterize RH by generalized Laguerre inequalities --- RealRooted/LaguerreInequalities/Analytic.lean | 59 +++++++++ .../DerivativeFormula.lean | 120 ++++++++++++++++++ .../GeneratingPolynomial.lean | 64 ++++++++++ .../LaguerreInequalities/RealZeros.lean | 117 +++++++++++++++++ .../LaguerrePolya/GeneralizedInequality.lean | 57 +++++++++ .../GeneralizedLaguerre.lean | 89 +++++++++++++ 6 files changed, 506 insertions(+) create mode 100644 RealRooted/LaguerreInequalities/Analytic.lean create mode 100644 RealRooted/LaguerreInequalities/DerivativeFormula.lean create mode 100644 RealRooted/LaguerreInequalities/GeneratingPolynomial.lean create mode 100644 RealRooted/LaguerreInequalities/RealZeros.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GeneralizedInequality.lean create mode 100644 RealRooted/RiemannHypothesis/GeneralizedLaguerre.lean diff --git a/RealRooted/LaguerreInequalities/Analytic.lean b/RealRooted/LaguerreInequalities/Analytic.lean new file mode 100644 index 000000000..b6571a9aa --- /dev/null +++ b/RealRooted/LaguerreInequalities/Analytic.lean @@ -0,0 +1,59 @@ +module + +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import Mathlib.Analysis.Complex.TaylorSeries +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Analytic generalized Laguerre coefficients + +The coefficient of `t^(2n)` in `f(x + i t) f(x - i t)` is the generalized +Laguerre coefficient of order `n`. For a real entire function the product is +even and agrees with the squared modulus on the real axis. +-/ + +@[expose] public section + +open Complex +open scoped ComplexConjugate + +noncomputable section + +namespace RealRooted + +/-- The product of the two opposite imaginary translates of `f` at `x`. -/ +def laguerreProduct (f : ℂ → ℂ) (x : ℝ) (z : ℂ) : ℂ := + f (x + z * I) * f (x - z * I) + +/-- The generalized Laguerre coefficient: the coefficient of `z^(2n)` in the +Taylor expansion of `laguerreProduct f x` at zero. -/ +def laguerreCoefficient (f : ℂ → ℂ) (x : ℝ) (n : ℕ) : ℝ := + (iteratedDeriv (2 * n) (laguerreProduct f x) 0).re / (2 * n).factorial + +/-- The Laguerre product of an entire function is entire. -/ +theorem differentiable_laguerreProduct {f : ℂ → ℂ} (hf : Differentiable ℂ f) (x : ℝ) : + Differentiable ℂ (laguerreProduct f x) := by + exact (hf.comp (by fun_prop)).mul (hf.comp (by fun_prop)) + +/-- The Laguerre product is even. -/ +@[simp] +theorem laguerreProduct_neg (f : ℂ → ℂ) (x : ℝ) (z : ℂ) : + laguerreProduct f x (-z) = laguerreProduct f x z := by + simp [laguerreProduct, sub_eq_add_neg, mul_comm] + +/-- Conjugation symmetry is inherited by the Laguerre product. -/ +theorem laguerreProduct_conj {f : ℂ → ℂ} + (hf : ∀ z, f (conj z) = conj (f z)) (x : ℝ) (z : ℂ) : + laguerreProduct f x (conj z) = conj (laguerreProduct f x z) := by + rw [laguerreProduct, laguerreProduct, map_mul, ← hf, ← hf] + simp [mul_comm, sub_eq_add_neg] + +/-- On the real axis the Laguerre product is the squared modulus. -/ +theorem laguerreProduct_ofReal {f : ℂ → ℂ} + (hf : ∀ z, f (conj z) = conj (f z)) (x y : ℝ) : + laguerreProduct f x y = (‖f (x + (y : ℂ) * I)‖ ^ 2 : ℝ) := by + have h : (x : ℂ) - y * I = conj ((x : ℂ) + y * I) := by simp [sub_eq_add_neg] + rw [laguerreProduct, h, hf, mul_conj, normSq_eq_norm_sq] + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/DerivativeFormula.lean b/RealRooted/LaguerreInequalities/DerivativeFormula.lean new file mode 100644 index 000000000..0c263a23c --- /dev/null +++ b/RealRooted/LaguerreInequalities/DerivativeFormula.lean @@ -0,0 +1,120 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas +import Mathlib.Analysis.Complex.TaylorSeries + +/-! +# Derivative formula for generalized Laguerre coefficients + +The even Taylor coefficient of the opposite imaginary translates is the +alternating binomial sum of derivatives in the generalized Laguerre inequalities. +See Cardon, *Extended Laguerre inequalities and a criterion for real zeros*, +Theorem 1.1, https://arxiv.org/abs/0911.1122. +-/ + +public section + +open Complex +open scoped ComplexConjugate + +namespace RealRooted + +private theorem iteratedDeriv_affine_zero {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (a b : ℂ) (n : ℕ) : + iteratedDeriv n (fun z => f (a + z * b)) 0 = b ^ n * iteratedDeriv n f a := by + have h := congrFun (iteratedDeriv_comp_const_mul + ((hf.comp (by fun_prop)).contDiff : ContDiff ℂ n (fun z => f (a + z))) b) 0 + change iteratedDeriv n (fun z => f (a + b * z)) 0 = + b ^ n * iteratedDeriv n (fun z => f (a + z)) (b * 0) at h + rw [iteratedDeriv_comp_const_add] at h + simpa only [mul_zero, add_zero, mul_comm] using h + +private theorem imaginary_phase {n j : ℕ} (hj : j ≤ 2 * n) : + I ^ j * (-I) ^ (2 * n - j) = (-1 : ℂ) ^ (j + n) := by + have h : I ^ j = (-1 : ℂ) ^ j * (-I) ^ j := by + rw [← mul_pow] + simp + rw [h, mul_assoc, ← pow_add, Nat.add_sub_of_le hj] + simp [pow_mul, pow_add] + +private theorem iteratedDeriv_laguerreProduct_even {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (x : ℝ) (n : ℕ) : + iteratedDeriv (2 * n) (laguerreProduct f x) 0 = + ∑ j ∈ Finset.range (2 * n + 1), + (-1 : ℂ) ^ (j + n) * (2 * n).choose j * + iteratedDeriv j f x * iteratedDeriv (2 * n - j) f x := by + have hminus : (fun z : ℂ => f ((x : ℂ) - z * I)) = + (fun z => f ((x : ℂ) + z * (-I))) := by + ext z + congr 1 + ring + change iteratedDeriv (2 * n) (fun z => f ((x : ℂ) + z * I) * + f ((x : ℂ) - z * I)) 0 = _ + have hp : ContDiffAt ℂ (2 * n) (fun z => f ((x : ℂ) + z * I)) 0 := + (hf.comp (by fun_prop)).contDiff.contDiffAt + have hm : ContDiffAt ℂ (2 * n) (fun z => f ((x : ℂ) - z * I)) 0 := + (hf.comp (by fun_prop)).contDiff.contDiffAt + rw [iteratedDeriv_fun_mul hp hm] + apply Finset.sum_congr rfl + intro j hj + rw [hminus, iteratedDeriv_affine_zero hf, iteratedDeriv_affine_zero hf] + have hphase := imaginary_phase (Nat.le_of_lt_succ (Finset.mem_range.mp hj)) + calc + _ = (I ^ j * (-I) ^ (2 * n - j)) * (2 * n).choose j * + iteratedDeriv j f x * iteratedDeriv (2 * n - j) f x := by ring + _ = _ := by rw [hphase] + +/-- The alternating binomial derivative formula for the generalized Laguerre +coefficient of a real entire function. -/ +theorem laguerreCoefficient_eq_sum {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (x : ℝ) (n : ℕ) : + laguerreCoefficient f x n = + (∑ j ∈ Finset.range (2 * n + 1), + (-1 : ℝ) ^ (j + n) * (2 * n).choose j * + (iteratedDeriv j f x).re * (iteratedDeriv (2 * n - j) f x).re) / + (2 * n).factorial := by + have hreal (k : ℕ) : ((iteratedDeriv k f x).re : ℂ) = iteratedDeriv k f x := by + apply conj_eq_iff_re.mp + simpa using (iteratedDeriv_conj hc k (x : ℂ)).symm + rw [laguerreCoefficient, iteratedDeriv_laguerreProduct_even hf] + congr 1 + change Complex.reCLM (∑ j ∈ Finset.range (2 * n + 1), _) = _ + rw [map_sum] + apply Finset.sum_congr rfl + intro j _ + rw [← hreal j, ← hreal (2 * n - j)] + norm_cast + +/-- The order-zero generalized Laguerre coefficient is the square of the +value on the real axis. -/ +theorem laguerreCoefficient_zero {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (x : ℝ) : + laguerreCoefficient f x 0 = (f x).re ^ 2 := by + rw [laguerreCoefficient_eq_sum hf hc] + simp [pow_two] + +/-- The order-one generalized coefficient has the classical Laguerre +normalization `f'² - f f''`. -/ +theorem laguerreCoefficient_one {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (x : ℝ) : + laguerreCoefficient f x 1 = + (iteratedDeriv 1 f x).re ^ 2 - (f x).re * (iteratedDeriv 2 f x).re := by + rw [laguerreCoefficient_eq_sum hf hc] + norm_num [Finset.sum_range_succ, iteratedDeriv_zero] + ring + +/-- The order-two generalized coefficient agrees with the second Laguerre +form, including its factor `1 / 12`. -/ +theorem laguerreCoefficient_two {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (x : ℝ) : + laguerreCoefficient f x 2 = + (3 * (iteratedDeriv 2 f x).re ^ 2 - + 4 * (iteratedDeriv 1 f x).re * (iteratedDeriv 3 f x).re + + (f x).re * (iteratedDeriv 4 f x).re) / 12 := by + rw [laguerreCoefficient_eq_sum hf hc] + norm_num [Finset.sum_range_succ, iteratedDeriv_zero, Nat.choose_succ_succ] + ring + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/GeneratingPolynomial.lean b/RealRooted/LaguerreInequalities/GeneratingPolynomial.lean new file mode 100644 index 000000000..255789905 --- /dev/null +++ b/RealRooted/LaguerreInequalities/GeneratingPolynomial.lean @@ -0,0 +1,64 @@ +module + +public import RealRooted.PFPolynomial +import Mathlib.Analysis.Complex.Polynomial.Basic +import Mathlib.Algebra.Polynomial.Expand + +/-! +# The generating polynomial of the generalized Laguerre forms + +For a real splitting polynomial `p`, the product `p(x + i t) p(x - i t)` is an +even polynomial in `t`. Its polynomial in `t²` has roots `-(x - r)²`, where `r` +ranges over the roots of `p`, with multiplicity. In particular it is a PF polynomial. +-/ + +@[expose] public section + +open Polynomial Complex + +noncomputable section + +namespace RealRooted + +/-- The polynomial whose coefficients are the generalized Laguerre forms of a +real splitting polynomial at `x`. -/ +def laguerreGeneratingPolynomial (p : ℝ[X]) (x : ℝ) : ℝ[X] := + C (p.leadingCoeff ^ 2) * + (p.roots.map fun r => X + C ((x - r) ^ 2)).prod + +/-- The generating polynomial of the generalized Laguerre forms is PF, including +the zero-polynomial case. -/ +theorem isPFPolynomial_laguerreGeneratingPolynomial (p : ℝ[X]) (x : ℝ) : + IsPFPolynomial (laguerreGeneratingPolynomial p x) := by + apply (IsPFPolynomial.of_C_nonneg (sq_nonneg p.leadingCoeff)).mul + induction p.roots using Multiset.induction_on with + | empty => simpa using IsPFPolynomial.one + | cons r s ih => + simpa using (isPFPolynomial_X_add_C (sq_nonneg (x - r))).mul ih + +private theorem eval_prod_squared_factors (s : Multiset ℝ) (x : ℝ) (z : ℂ) : + (((s.map fun r => (X + C ((x - r) ^ 2) : ℝ[X])).prod).map ofRealHom).eval (z ^ 2) = + (((s.map fun r => (X - C r : ℝ[X])).prod).map ofRealHom).eval (x + z * I) * + (((s.map fun r => (X - C r : ℝ[X])).prod).map ofRealHom).eval (x - z * I) := by + induction s using Multiset.induction_on with + | empty => simp + | cons r s ih => + simp only [Multiset.map_cons, Multiset.prod_cons, Polynomial.map_mul, eval_mul, + Polynomial.map_add, Polynomial.map_sub, map_X, map_C, eval_add, eval_sub, eval_X, + eval_C, ofRealHom_eq_coe] + rw [ih] + push_cast + ring_nf + simp [I_sq] + +/-- The square substitution of the generating polynomial is the product along +the two imaginary directions. -/ +theorem eval_laguerreGeneratingPolynomial {p : ℝ[X]} (hp : p.Splits) (x : ℝ) (z : ℂ) : + ((laguerreGeneratingPolynomial p x).map ofRealHom).eval (z ^ 2) = + (p.map ofRealHom).eval (x + z * I) * (p.map ofRealHom).eval (x - z * I) := by + conv_rhs => rw [hp.eq_prod_roots] + simp only [laguerreGeneratingPolynomial, Polynomial.map_mul, map_C, eval_mul, eval_C, + ofRealHom_eq_coe, ofReal_pow, eval_prod_squared_factors] + ring + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/RealZeros.lean b/RealRooted/LaguerreInequalities/RealZeros.lean new file mode 100644 index 000000000..bb1ad6092 --- /dev/null +++ b/RealRooted/LaguerreInequalities/RealZeros.lean @@ -0,0 +1,117 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas +import Mathlib.Analysis.Complex.TaylorSeries +import Mathlib.Analysis.Analytic.IsolatedZeros +import Mathlib.Topology.Algebra.InfiniteSum.Order + +/-! +# Real zeros from generalized Laguerre inequalities + +For a nonzero real entire function, nonnegative generalized Laguerre coefficients +at every real point force every zero to be real. The argument uses the entire +Taylor series of the product of opposite imaginary translates. It does not +require a growth assumption. +-/ + +public section + +open Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- Odd derivatives of the even Laguerre product vanish at the origin. -/ +theorem iteratedDeriv_laguerreProduct_odd (f : ℂ → ℂ) (x : ℝ) {n : ℕ} (hn : Odd n) : + iteratedDeriv n (laguerreProduct f x) 0 = 0 := by + have heven : (fun z => laguerreProduct f x (-z)) = laguerreProduct f x := by + ext z + exact laguerreProduct_neg f x z + have h := iteratedDeriv_comp_neg n (laguerreProduct f x) 0 + rw [heven, neg_zero, hn.neg_one_pow, neg_one_smul] at h + linear_combination h / 2 + +private theorem laguerre_taylor_nonneg {f : ℂ → ℂ} (x : ℝ) + (h : ∀ n, 0 ≤ laguerreCoefficient f x n) (n : ℕ) : + 0 ≤ (iteratedDeriv n (laguerreProduct f x) 0).re / n.factorial := by + rcases Nat.even_or_odd n with hn | hn + · obtain ⟨k, rfl⟩ := hn + simpa only [laguerreCoefficient, two_mul] using h k + · rw [iteratedDeriv_laguerreProduct_odd f x hn] + simp + +private theorem hasSum_laguerreProduct {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (x y : ℝ) : + HasSum (fun n => (iteratedDeriv n (laguerreProduct f x) 0).re / n.factorial * y ^ n) + (laguerreProduct f x y).re := by + have h := Complex.hasSum_re + (Complex.hasSum_taylorSeries_of_entire (differentiable_laguerreProduct hf x) 0 (y : ℂ)) + convert h using 1 + ext n + simp only [sub_zero, smul_eq_mul] + rw [← Complex.div_natCast_re, ← Complex.re_mul_ofReal] + congr 1 + push_cast + ring + +private theorem laguerreProduct_eq_zero_of_pos_zero {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) (x : ℝ) + (h : ∀ n, 0 ≤ laguerreCoefficient f x n) {r : ℝ} (hr : 0 < r) + (hz : laguerreProduct f x r = 0) (z : ℂ) : laguerreProduct f x z = 0 := by + have hs := hasSum_laguerreProduct hf x r + rw [hz, zero_re] at hs + have hderiv (n : ℕ) : iteratedDeriv n (laguerreProduct f x) 0 = 0 := by + have hn : 0 ≤ (iteratedDeriv n (laguerreProduct f x) 0).re / n.factorial := + laguerre_taylor_nonneg x h n + have hle := le_hasSum hs n (fun j _ => + mul_nonneg (laguerre_taylor_nonneg x h j) (pow_nonneg hr.le j)) + have heq := le_antisymm hle (mul_nonneg hn (pow_nonneg hr.le n)) + have hcoeff := (mul_eq_zero.mp heq).resolve_right (pow_ne_zero n hr.ne') + have hre := (div_eq_zero_iff.mp hcoeff).resolve_right + (show (n.factorial : ℝ) ≠ 0 by positivity) + rw [← ofReal_re_iteratedDeriv_zero (laguerreProduct_conj hc x) n, hre, ofReal_zero] + rw [← Complex.taylorSeries_eq_of_entire' 0 z (differentiable_laguerreProduct hf x)] + simp [hderiv] + +private theorem eq_zero_of_laguerreProduct_eq_zero {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (x : ℝ) (h : ∀ z, laguerreProduct f x z = 0) : f = 0 := by + have hplus : Differentiable ℂ (fun z => f ((x : ℂ) + z * I)) := hf.comp (by fun_prop) + have hminus : Differentiable ℂ (fun z => f ((x : ℂ) - z * I)) := hf.comp (by fun_prop) + have hp : AnalyticOnNhd ℂ (fun z => f ((x : ℂ) + z * I)) Set.univ := + fun z _ => hplus.analyticAt z + have hm : AnalyticOnNhd ℂ (fun z => f ((x : ℂ) - z * I)) Set.univ := + fun z _ => hminus.analyticAt z + rcases hp.eq_zero_or_eq_zero_of_mul_eq_zero hm (fun z _ => h z) + isPreconnected_univ with hp | hm + · funext z + change f z = 0 + have heq : (x : ℂ) + ((z - x) * (-I)) * I = z := by + ring_nf + simp [I_sq] + simpa only [heq] using hp ((z - x) * (-I)) (Set.mem_univ _) + · funext z + change f z = 0 + have heq : (x : ℂ) - ((z - x) * I) * I = z := by + ring_nf + simp [I_sq] + simpa only [heq] using hm ((z - x) * I) (Set.mem_univ _) + +/-- Generalized Laguerre inequalities at all real points force all zeros of a +nonzero real entire function to be real, without a growth hypothesis. -/ +theorem im_eq_zero_of_laguerreCoefficient_nonneg {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) (hne : f ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) {z : ℂ} (hz : f z = 0) : z.im = 0 := by + by_contra him + have hzero : laguerreProduct f z.re (z.im : ℂ) = 0 := by + rw [laguerreProduct, re_add_im, hz, zero_mul] + have habs : laguerreProduct f z.re (|z.im| : ℝ) = 0 := by + rcases le_total 0 z.im with hpos | hneg + · simpa only [abs_of_nonneg hpos] using hzero + · simpa only [abs_of_nonpos hneg, ofReal_neg, laguerreProduct_neg] using hzero + apply hne + exact eq_zero_of_laguerreProduct_eq_zero hf z.re + (laguerreProduct_eq_zero_of_pos_zero hf hc z.re (h z.re) (abs_pos.mpr him) habs) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GeneralizedInequality.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GeneralizedInequality.lean new file mode 100644 index 000000000..bc333f805 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GeneralizedInequality.lean @@ -0,0 +1,57 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.LaguerreInequalities.Analytic +import RealRooted.LaguerreInequalities.GeneratingPolynomial +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff +import RealRooted.PFPolynomial.Closure +import Mathlib.Algebra.Polynomial.Expand + +/-! +# Total positivity of the generalized Laguerre coefficients + +For a Laguerre--Pólya function `f` and real `x`, the sequence of generalized +Laguerre coefficients is Pólya-frequency. This strengthens the generalized +Laguerre inequalities to nonnegativity of every Toeplitz minor. +-/ + +public section + +open Complex Filter Polynomial Topology + +namespace RealRooted + +/-- At each real point, the generalized Laguerre coefficients of a +Laguerre--Pólya function form a Pólya-frequency sequence. -/ +theorem IsLaguerrePolya.isPolyaFreqSeq_laguerreCoefficient {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (x : ℝ) : IsPolyaFreqSeq (laguerreCoefficient f x) := by + have hc := hf.differentiable.continuous + obtain ⟨p, hp, hlim⟩ := hf + have hs (n : ℕ) : (p n).Splits := (hp n).elim (fun h => h ▸ Splits.zero) id + have hplus := hlim.comp (fun z : ℂ => (x : ℂ) + z * I) (by fun_prop) + have hminus := hlim.comp (fun z : ℂ => (x : ℂ) - z * I) (by fun_prop) + have hprod := hplus.mul₀ hminus (hc.comp (by fun_prop)) (hc.comp (by fun_prop)) + have hexpand : TendstoLocallyUniformly + (fun n z => ((expand ℝ 2 (laguerreGeneratingPolynomial (p n) x)).map ofRealHom).eval z) + (laguerreProduct f x) atTop := by + convert hprod using 1 + · ext n z + simp only [Pi.mul_apply, Function.comp_apply, expand_eq_comp_X_pow, + Polynomial.map_comp, Polynomial.map_pow, map_X, eval_comp, eval_pow, eval_X, + eval_laguerreGeneratingPolynomial (hs n)] + · rfl + apply IsPolyaFreqSeq.of_tendsto + (fun n => (isPFPolynomial_laguerreGeneratingPolynomial (p n) x).to_sequence) + intro k + simpa only [coeff_expand_mul' (by norm_num : 0 < 2), Complex.div_natCast_re, + laguerreCoefficient] using + Polynomial.tendsto_coeff_of_tendstoLocallyUniformly hexpand (2 * k) + +/-- Every generalized Laguerre coefficient of a Laguerre--Pólya function is +nonnegative on the real axis. -/ +theorem IsLaguerrePolya.laguerreCoefficient_nonneg {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (x : ℝ) (n : ℕ) : 0 ≤ laguerreCoefficient f x n := + (hf.isPolyaFreqSeq_laguerreCoefficient x).nonneg n + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/GeneralizedLaguerre.lean b/RealRooted/RiemannHypothesis/GeneralizedLaguerre.lean new file mode 100644 index 000000000..1d861a148 --- /dev/null +++ b/RealRooted/RiemannHypothesis/GeneralizedLaguerre.lean @@ -0,0 +1,89 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.AissenSchoenbergWhitneyBase +public import RealRooted.LaguerreInequalities.Analytic +import RealRooted.RiemannHypothesis +import RealRooted.LaguerreInequalities.DerivativeFormula +import RealRooted.LaguerreInequalities.RealZeros +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative + +/-! +# Generalized Laguerre criteria for the Riemann hypothesis + +Mathlib's RH is equivalent to all generalized Laguerre inequalities for the +square-variable xi function. Under RH, at every real point and every derivative +shift, these coefficients form a Pólya-frequency sequence. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- RH gives total positivity of the generalized Laguerre coefficients of +every derivative of the square-variable xi function. -/ +theorem isPolyaFreqSeq_laguerreCoefficient_riemannXiTheta + (hRH : RiemannHypothesis) (n : ℕ) (x : ℝ) : + IsPolyaFreqSeq (laguerreCoefficient (iteratedDeriv n riemannXiTheta) x) := by + have hf := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n + exact hf.isPolyaFreqSeq_laguerreCoefficient x + +/-- Under RH every generalized Laguerre inequality holds at every real point +for every derivative of the square-variable xi function. -/ +theorem laguerreCoefficient_riemannXiTheta_nonneg + (hRH : RiemannHypothesis) (n k : ℕ) (x : ℝ) : + 0 ≤ laguerreCoefficient (iteratedDeriv n riemannXiTheta) x k := + (isPolyaFreqSeq_laguerreCoefficient_riemannXiTheta hRH n x).nonneg k + +/-- All generalized Laguerre inequalities for the square-variable xi function +are equivalent to Mathlib's Riemann hypothesis. -/ +theorem riemannHypothesis_iff_laguerreCoefficient_nonneg : + RiemannHypothesis ↔ ∀ x k, 0 ≤ laguerreCoefficient riemannXiTheta x k := by + constructor + · intro h x k + simpa only [iteratedDeriv_zero] using laguerreCoefficient_riemannXiTheta_nonneg h 0 k x + · intro h + apply riemannHypothesis_iff_riemannXiTheta_zeros.mpr + exact fun _ hz => im_eq_zero_of_laguerreCoefficient_nonneg + differentiable_riemannXiTheta riemannXiTheta_conj + (fun hzero => riemannXiTheta_zero_ne_zero (congrFun hzero 0)) h hz + +/-- The derivative-shifted generalized Laguerre inequalities give the same +criterion for Mathlib's Riemann hypothesis. -/ +theorem riemannHypothesis_iff_laguerreCoefficient_shift_nonneg : + RiemannHypothesis ↔ + ∀ n x k, 0 ≤ laguerreCoefficient (iteratedDeriv n riemannXiTheta) x k := by + constructor + · exact fun h n x k => laguerreCoefficient_riemannXiTheta_nonneg h n k x + · intro h + exact riemannHypothesis_iff_laguerreCoefficient_nonneg.mpr (by simpa using h 0) + +/-- Total positivity of the generalized Laguerre coefficients at all real +points is another criterion for Mathlib's Riemann hypothesis. -/ +theorem riemannHypothesis_iff_isPolyaFreqSeq_laguerreCoefficient : + RiemannHypothesis ↔ ∀ x, IsPolyaFreqSeq (laguerreCoefficient riemannXiTheta x) := by + constructor + · intro h x + simpa only [iteratedDeriv_zero] using + isPolyaFreqSeq_laguerreCoefficient_riemannXiTheta h 0 x + · intro h + exact riemannHypothesis_iff_laguerreCoefficient_nonneg.mpr fun x k => (h x).nonneg k + +/-- The generalized Laguerre inequalities at zero give alternating binomial +inequalities for every shift of the normalized xi coefficients. -/ +theorem riemannXiCoeff_generalized_laguerre_nonneg + (hRH : RiemannHypothesis) (n k : ℕ) : + 0 ≤ (∑ j ∈ Finset.range (2 * k + 1), + (-1 : ℝ) ^ (j + k) * (2 * k).choose j * + riemannXiCoeff (n + j) * riemannXiCoeff (n + (2 * k - j))) / (2 * k).factorial := by + have hf := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n + have h := laguerreCoefficient_riemannXiTheta_nonneg hRH n k 0 + rw [laguerreCoefficient_eq_sum hf.differentiable hf.conj] at h + simpa only [riemannXiCoeff, ofReal_zero, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm] using h + +end RealRooted From 8ea34ad3e4528d5c4e4f029ede1b667deb8fad85 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 14:53:54 +0000 Subject: [PATCH 07/56] feat: prove fixed-shift xi criteria and derivative propagation --- .../Complex/GrowthOrder/Derivative.lean | 75 ++++++++++++++++++ .../LSeries/RiemannXi/Derivative.lean | 37 +++++++++ .../RiemannHypothesis/DerivativeCriteria.lean | 76 +++++++++++++++++++ 3 files changed, 188 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Complex/GrowthOrder/Derivative.lean create mode 100644 RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Derivative.lean create mode 100644 RealRooted/RiemannHypothesis/DerivativeCriteria.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/Derivative.lean b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/Derivative.lean new file mode 100644 index 000000000..86bb1598d --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/Derivative.lean @@ -0,0 +1,75 @@ +/- +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 TauCeti.Analysis.Complex.GrowthOrder + +/-! +# Growth order of derivatives + +Every iterated derivative of an entire function has at most the same growth order. +Cauchy's estimate on a unit circle transfers an exponential power bound to the +derivative. A slight increase in the exponent absorbs the change of radius. +-/ + +public section + +open Complex Filter Asymptotics Bornology Metric Topology + +namespace TauCeti.OrderLE + +/-- Iterated differentiation does not increase the growth order of an entire function. -/ +theorem iteratedDeriv {f : ℂ → ℂ} {A : ℝ} (h : TauCeti.OrderLE f A) + (hf : Differentiable ℂ f) (n : ℕ) : TauCeti.OrderLE (iteratedDeriv n f) A := by + rcases lt_or_ge A 0 with hA | hA + · have heq : f = fun _ => f 0 := funext fun z => h.isConst hf hA z 0 + rw [heq] + convert TauCeti.orderLE_const (if n = 0 then f 0 else 0) A using 1 + funext z + exact iteratedDeriv_const + · rw [TauCeti.orderLE_def] + intro B hB + let q : ℝ := (A + B) / 2 + have hAq : A < q := by dsimp [q]; linarith + have hqB : q < B := by dsimp [q]; linarith + have hq : 0 ≤ q := hA.trans hAq.le + obtain ⟨C, hC, hbound⟩ := (h.isBigO hAq).exists_pos + obtain ⟨R, -, hR⟩ := Filter.hasBasis_cobounded_norm.eventually_iff.mp hbound.bound + refine (IsBigO.of_bound ((n.factorial : ℝ) * C) ?_).trans + (TauCeti.isBigO_exp_mul_norm_rpow ((2 : ℝ) ^ q) hqB) + filter_upwards [eventually_cobounded_le_norm (max 1 (R + 1))] with z hz + have hz1 : 1 ≤ ‖z‖ := (le_max_left _ _).trans hz + have hzR : R + 1 ≤ ‖z‖ := (le_max_right _ _).trans hz + have hcircle : ∀ w ∈ sphere z 1, + ‖f w‖ ≤ C * Real.exp ((2 : ℝ) ^ q * ‖z‖ ^ q) := by + intro w hw + have hwz : ‖w - z‖ = 1 := mem_sphere_iff_norm.mp hw + have hupper : ‖w‖ ≤ 2 * ‖z‖ := by + have htri := norm_add_le (w - z) z + rw [sub_add_cancel, hwz] at htri + linarith + have hlower : R ≤ ‖w‖ := by + have htri := norm_add_le (z - w) w + rw [sub_add_cancel, norm_sub_rev, hwz] at htri + linarith + calc + ‖f w‖ ≤ C * Real.exp (‖w‖ ^ q) := by + simpa only [Real.norm_eq_abs, Real.abs_exp] using hR hlower + _ ≤ C * Real.exp ((2 : ℝ) ^ q * ‖z‖ ^ q) := by + apply mul_le_mul_of_nonneg_left _ hC.le + apply Real.exp_le_exp.mpr + calc + ‖w‖ ^ q ≤ (2 * ‖z‖) ^ q := Real.rpow_le_rpow (norm_nonneg _) hupper hq + _ = (2 : ℝ) ^ q * ‖z‖ ^ q := Real.mul_rpow (by positivity) (norm_nonneg _) + simpa only [Real.norm_eq_abs, Real.abs_exp, one_pow, div_one, mul_assoc] using + norm_iteratedDeriv_le_of_forall_mem_sphere_norm_le n zero_lt_one hf.diffContOnCl hcircle + +/-- Differentiation does not increase the growth order of an entire function. -/ +theorem deriv {f : ℂ → ℂ} {A : ℝ} (h : TauCeti.OrderLE f A) + (hf : Differentiable ℂ f) : TauCeti.OrderLE (deriv f) A := by + simpa using h.iteratedDeriv hf 1 + +end TauCeti.OrderLE diff --git a/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Derivative.lean b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Derivative.lean new file mode 100644 index 000000000..eec475042 --- /dev/null +++ b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Derivative.lean @@ -0,0 +1,37 @@ +/- +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.Theta +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity + +/-! +# Derivatives of the square-variable xi function + +Every derivative of `riemannXiTheta` is entire, has order at most one, and is +nonzero at the origin. These unconditional facts allow the real-zero criterion +for the Laguerre--Pólya class to be applied at any fixed derivative index. +-/ + +public section + +/-- Every iterated derivative of the square-variable xi function is entire. -/ +theorem differentiable_iteratedDeriv_riemannXiTheta (n : ℕ) : + Differentiable ℂ (iteratedDeriv n riemannXiTheta) := + (differentiable_riemannXiTheta.contDiff (n := ⊤)).differentiable_iteratedDeriv n (by simp) + +/-- Every iterated derivative of the square-variable xi function has order at most one. -/ +theorem orderLE_iteratedDeriv_riemannXiTheta (n : ℕ) : + TauCeti.OrderLE (iteratedDeriv n riemannXiTheta) 1 := + orderLE_riemannXiTheta.iteratedDeriv differentiable_riemannXiTheta n + +/-- Positivity of the xi Taylor data excludes vanishing at zero for every derivative. -/ +theorem iteratedDeriv_riemannXiTheta_zero_ne_zero (n : ℕ) : + iteratedDeriv n riemannXiTheta 0 ≠ 0 := by + rw [← ofReal_riemannXiCoeff] + exact_mod_cast (riemannXiCoeff_pos n).ne' diff --git a/RealRooted/RiemannHypothesis/DerivativeCriteria.lean b/RealRooted/RiemannHypothesis/DerivativeCriteria.lean new file mode 100644 index 000000000..17c493da3 --- /dev/null +++ b/RealRooted/RiemannHypothesis/DerivativeCriteria.lean @@ -0,0 +1,76 @@ +module + +public import RealRooted.RiemannHypothesis +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Hadamard +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros + +/-! +# Real zeros at a fixed xi derivative index + +For each fixed `n`, every zero of `Θ⁽ⁿ⁾` is real exactly when all Jensen +polynomials `J_(d,n)` split. Real zeros at index `n` imply real zeros at every +later derivative index. These are Corollaries 3.2 and 3.3 of Cormac O'Sullivan, +*Zeros of Jensen polynomials and asymptotics for the Riemann xi function*, +https://arxiv.org/abs/2007.13582. + +The growth and nonvanishing hypotheses are established unconditionally for +every derivative. A single positive derivative index is not asserted to +characterize RH. +-/ + +public section + +open Complex Polynomial +open scoped ComplexConjugate + +namespace RealRooted + +/-- For each fixed derivative index, real zeros characterize Laguerre--Pólya membership. -/ +theorem isLaguerrePolya_iteratedDeriv_riemannXiTheta_iff (n : ℕ) : + IsLaguerrePolya (iteratedDeriv n riemannXiTheta) ↔ + ∀ z : ℂ, iteratedDeriv n riemannXiTheta z = 0 → z.im = 0 := by + constructor + · intro h z hz + exact h.im_eq_zero_of_eq_zero + (fun hzero => iteratedDeriv_riemannXiTheta_zero_ne_zero n (congrFun hzero 0)) hz + · exact isLaguerrePolya_of_orderLE_one (orderLE_iteratedDeriv_riemannXiTheta n) + (differentiable_iteratedDeriv_riemannXiTheta n) + (iteratedDeriv_riemannXiTheta_zero_ne_zero n) + (iteratedDeriv_conj riemannXiTheta_conj n) + +/-- O'Sullivan's Corollary 3.2: real zeros at a fixed derivative index are +equivalent to splitting of every Jensen polynomial at that same shift. -/ +theorem riemannXiTheta_iteratedDeriv_zeros_iff_splits (n : ℕ) : + (∀ z : ℂ, iteratedDeriv n riemannXiTheta z = 0 → z.im = 0) ↔ + ∀ d, (riemannXiJensenPolynomial d n).Splits := by + rw [← isLaguerrePolya_iteratedDeriv_riemannXiTheta_iff] + apply isLaguerrePolya_iff_jensenPolynomial_splits + (differentiable_iteratedDeriv_riemannXiTheta n) + intro k + simpa only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm] using + (ofReal_riemannXiCoeff (n + k)).symm + +/-- The fixed-shift criterion only needs the positive degrees, as stated in the paper. -/ +theorem riemannXiTheta_iteratedDeriv_zeros_iff_pos_splits (n : ℕ) : + (∀ z : ℂ, iteratedDeriv n riemannXiTheta z = 0 → z.im = 0) ↔ + ∀ d, 0 < d → (riemannXiJensenPolynomial d n).Splits := by + rw [riemannXiTheta_iteratedDeriv_zeros_iff_splits] + refine ⟨fun h d _ => h d, fun h d => ?_⟩ + rcases Nat.eq_zero_or_pos d with rfl | hd + · simp [riemannXiJensenPolynomial, jensenPolynomial_zero] + · exact h d hd + +/-- O'Sullivan's Corollary 3.3: real zeros at one derivative index propagate +to every later index. The statement also includes the equal-index boundary. -/ +theorem riemannXiTheta_iteratedDeriv_zeros_mono {n m : ℕ} (hnm : n ≤ m) + (h : ∀ z : ℂ, iteratedDeriv n riemannXiTheta z = 0 → z.im = 0) : + ∀ z : ℂ, iteratedDeriv m riemannXiTheta z = 0 → z.im = 0 := by + apply (isLaguerrePolya_iteratedDeriv_riemannXiTheta_iff m).mp + have hLP := (isLaguerrePolya_iteratedDeriv_riemannXiTheta_iff n).mpr h + simpa only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, + Nat.sub_add_cancel hnm] using hLP.iterate_deriv (m - n) + +end RealRooted From 49ebeab46776ffe3bedff6da1523dce4f675e726 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 15:03:02 +0000 Subject: [PATCH 08/56] feat: sharpen xi growth and expand Jensen products --- RealRooted.lean | 12 +++ .../LSeries/RiemannXi/Derivative.lean | 7 +- .../NumberTheory/LSeries/RiemannXi/Theta.lean | 25 +++--- .../JensenProductExpansion.lean | 86 +++++++++++++++++++ RealRooted/Production.lean | 12 +++ scripts/import_architecture.json | 4 +- scripts/mathlib_shims.json | 66 +++++++++----- 7 files changed, 174 insertions(+), 38 deletions(-) create mode 100644 RealRooted/MultiplierSequence/JensenProductExpansion.lean diff --git a/RealRooted.lean b/RealRooted.lean index 1101d8c37..17a498609 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2457,3 +2457,15 @@ public import RealRooted.MultiplierSequence.JensenLaguerreLimit public import RealRooted.RiemannHypothesis.Laguerre public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivityConverse public import RealRooted.RiemannHypothesis.TotalPositivityCriterion +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeIClosure +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivityZeroPrefix +public import RealRooted.LaguerreInequalities.Analytic +public import RealRooted.LaguerreInequalities.DerivativeFormula +public import RealRooted.LaguerreInequalities.GeneratingPolynomial +public import RealRooted.LaguerreInequalities.RealZeros +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality +public import RealRooted.RiemannHypothesis.GeneralizedLaguerre +public import RealRooted.MultiplierSequence.JensenProductExpansion +public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative +public import RealRooted.RiemannHypothesis.DerivativeCriteria diff --git a/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Derivative.lean b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Derivative.lean index eec475042..aec3fe127 100644 --- a/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Derivative.lean +++ b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Derivative.lean @@ -13,7 +13,7 @@ import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity /-! # Derivatives of the square-variable xi function -Every derivative of `riemannXiTheta` is entire, has order at most one, and is +Every derivative of `riemannXiTheta` is entire, has order at most one half, and is nonzero at the origin. These unconditional facts allow the real-zero criterion for the Laguerre--Pólya class to be applied at any fixed derivative index. -/ @@ -25,6 +25,11 @@ theorem differentiable_iteratedDeriv_riemannXiTheta (n : ℕ) : Differentiable ℂ (iteratedDeriv n riemannXiTheta) := (differentiable_riemannXiTheta.contDiff (n := ⊤)).differentiable_iteratedDeriv n (by simp) +/-- Every iterated derivative of the square-variable xi function has order at most one half. -/ +theorem orderLE_half_iteratedDeriv_riemannXiTheta (n : ℕ) : + TauCeti.OrderLE (iteratedDeriv n riemannXiTheta) (1 / 2) := + orderLE_half_riemannXiTheta.iteratedDeriv differentiable_riemannXiTheta n + /-- Every iterated derivative of the square-variable xi function has order at most one. -/ theorem orderLE_iteratedDeriv_riemannXiTheta (n : ℕ) : TauCeti.OrderLE (iteratedDeriv n riemannXiTheta) 1 := diff --git a/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Theta.lean b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Theta.lean index 2a2e8bc73..6c066a71b 100644 --- a/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Theta.lean +++ b/RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Theta.lean @@ -133,9 +133,8 @@ private theorem orderLE_riemannXi : TauCeti.OrderLE riemannXi 1 := by simp only [riemannXi] ring -/-- The square-variable xi function has order at most one, sufficient for Hadamard's -genus-one factorization. Its sharper classical order is one half. -/ -theorem orderLE_riemannXiTheta : TauCeti.OrderLE riemannXiTheta 1 := by +/-- The square-variable xi function has growth order at most one half. -/ +theorem orderLE_half_riemannXiTheta : TauCeti.OrderLE riemannXiTheta (1 / 2) := by let root : ℂ → ℂ := fun z => z ^ (2⁻¹ : ℂ) have hsq (z : ℂ) : ‖root z‖ ^ 2 = ‖z‖ := by rw [← norm_pow] @@ -153,7 +152,7 @@ theorem orderLE_riemannXiTheta : TauCeti.OrderLE riemannXiTheta 1 := by have hg := orderLE_riemannXi.comp_mul_add 1 (1 / 2) rw [TauCeti.orderLE_def] intro A hA - have h := (hg.isBigO hA).comp_tendsto ht + have h := (hg.isBigO (show 1 < 2 * A by linarith)).comp_tendsto ht change (fun z => riemannXiTheta z) =O[cobounded ℂ] (fun z => Real.exp (‖z‖ ^ A)) have heq : (fun z => riemannXiTheta z) = (fun s => riemannXi (1 * s + 1 / 2)) ∘ root := by @@ -161,11 +160,13 @@ theorem orderLE_riemannXiTheta : TauCeti.OrderLE riemannXiTheta 1 := by simp [riemannXiTheta, TauCeti.descendPow_apply, root, add_comm] rw [heq] refine h.trans (IsBigO.of_bound 1 ?_) - filter_upwards [eventually_cobounded_le_norm 1] with z hz - have hroot : ‖root z‖ ≤ ‖z‖ := by - have := hsq z - have := norm_nonneg (root z) - have hge : 1 ≤ ‖root z‖ := by nlinarith - nlinarith - simp only [Function.comp_apply, Real.norm_eq_abs, Real.abs_exp, one_mul, Real.exp_le_exp] - exact Real.rpow_le_rpow (norm_nonneg _) hroot (by linarith) + apply Eventually.of_forall + intro z + have hpow : ‖root z‖ ^ (2 * A) = ‖z‖ ^ A := by + rw [Real.rpow_mul (norm_nonneg _), Real.rpow_two, hsq] + simp only [Function.comp_apply, Real.norm_eq_abs, Real.abs_exp, one_mul, hpow, le_refl] + +/-- The square-variable xi function satisfies the order-one bound used by +the genus-one Hadamard factorization criterion. -/ +theorem orderLE_riemannXiTheta : TauCeti.OrderLE riemannXiTheta 1 := + orderLE_half_riemannXiTheta.mono (by norm_num) diff --git a/RealRooted/MultiplierSequence/JensenProductExpansion.lean b/RealRooted/MultiplierSequence/JensenProductExpansion.lean new file mode 100644 index 000000000..e110266b9 --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenProductExpansion.lean @@ -0,0 +1,86 @@ +module + +public import RealRooted.MultiplierSequence.JensenProduct +import RealRooted.Mathlib.Algebra.Polynomial.Reverse +import RealRooted.Mathlib.Algebra.Polynomial.Chow + +/-! +# Ordinary and reciprocal Jensen product expansions + +The binomial convolution of Taylor sequences has an expansion in the Jensen +polynomials of either factor. Reflection gives the reciprocal expansion in +O'Sullivan, *Zeros of Jensen polynomials and asymptotics for the Riemann xi +function*, Proposition 3.4, https://arxiv.org/abs/2007.13582. +These finite identities require no analyticity or nonvanishing assumptions. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- The ordinary Jensen product expanded in the Jensen polynomials of the +second sequence. -/ +theorem jensenProductPolynomial_eq_sum (d : ℕ) (gamma delta : ℕ → ℝ) : + jensenProductPolynomial d gamma delta = + ∑ j ∈ Finset.range (d + 1), C ((d.choose j : ℝ) * gamma j) * + (X ^ j * jensenPolynomial (d - j) delta) := by + let B (j : ℕ) : ℝ[X] := C ((d.choose j : ℝ) * gamma j) * + (X ^ j * jensenPolynomial (d - j) delta) + ext k + change (jensenProductPolynomial d gamma delta).coeff k = + (∑ j ∈ Finset.range (d + 1), B j).coeff k + rw [finsetSum_coeff] + by_cases hk : k ≤ d + · rw [coeff_jensenProductPolynomial, ite_eq_left hk, binomialConvolution, Finset.mul_sum] + symm + calc + ∑ j ∈ Finset.range (d + 1), (B j).coeff k = + ∑ j ∈ Finset.range (k + 1), (B j).coeff k := by + symm + apply Finset.sum_subset (Finset.range_mono (Nat.succ_le_succ hk)) + intro j hjd hjk + have hkj : k < j := by + simp only [Finset.mem_range, not_lt] at hjk + lia + simp only [B, coeff_C_mul, coeff_X_pow_mul', + ite_eq_right (Nat.not_le.mpr hkj), mul_zero] + _ = ∑ j ∈ Finset.range (k + 1), + (d.choose k : ℝ) * ((k.choose j : ℝ) * gamma j * delta (k - j)) := by + apply Finset.sum_congr rfl + intro j hj + have hjk : j ≤ k := Nat.lt_succ_iff.mp (Finset.mem_range.mp hj) + have hsub : k - j ≤ d - j := Nat.sub_le_sub_right hk j + simp only [B, coeff_C_mul, coeff_X_pow_mul', ite_eq_left hjk, + coeff_jensenPolynomial, ite_eq_left hsub] + have hchoose : (d.choose j : ℝ) * ((d - j).choose (k - j) : ℝ) = + (d.choose k : ℝ) * (k.choose j : ℝ) := by + exact_mod_cast (Nat.choose_mul (n := d) (k := k) (s := j) hjk).symm + linear_combination gamma j * delta (k - j) * hchoose + · rw [coeff_jensenProductPolynomial, ite_eq_right hk] + symm + apply Finset.sum_eq_zero + intro j hj + have hjd : j ≤ d := Nat.lt_succ_iff.mp (Finset.mem_range.mp hj) + have hjk : j ≤ k := by lia + have hsub : ¬ k - j ≤ d - j := by lia + simp only [B, coeff_C_mul, coeff_X_pow_mul', ite_eq_left hjk, + coeff_jensenPolynomial, ite_eq_right hsub, mul_zero] + +/-- The reciprocal Jensen product expanded in reciprocal Jensen polynomials +of the second sequence. Degree loss and zero polynomials are included. -/ +theorem reflect_jensenProductPolynomial_eq_sum (d : ℕ) (gamma delta : ℕ → ℝ) : + reflect d (jensenProductPolynomial d gamma delta) = + ∑ j ∈ Finset.range (d + 1), C ((d.choose j : ℝ) * gamma j) * + reflect (d - j) (jensenPolynomial (d - j) delta) := by + rw [jensenProductPolynomial_eq_sum, reflect_finset_sum_C_mul] + apply Finset.sum_congr rfl + intro j hj + congr 1 + have hjd : j ≤ d := Nat.lt_succ_iff.mp (Finset.mem_range.mp hj) + simpa only [Nat.sub_add_cancel hjd] using + reflect_X_pow_mul (jensenPolynomial (d - j) delta) j + (natDegree_jensenPolynomial_le (d - j) delta) + +end RealRooted diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index c409647b1..f5f7daec0 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2382,6 +2382,18 @@ public import RealRooted.MultiplierSequence.JensenLaguerreLimit public import RealRooted.RiemannHypothesis.Laguerre public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivityConverse public import RealRooted.RiemannHypothesis.TotalPositivityCriterion +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeIClosure +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivityZeroPrefix +public import RealRooted.LaguerreInequalities.Analytic +public import RealRooted.LaguerreInequalities.DerivativeFormula +public import RealRooted.LaguerreInequalities.GeneratingPolynomial +public import RealRooted.LaguerreInequalities.RealZeros +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality +public import RealRooted.RiemannHypothesis.GeneralizedLaguerre +public import RealRooted.MultiplierSequence.JensenProductExpansion +public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative +public import RealRooted.RiemannHypothesis.DerivativeCriteria /-! # RealRooted production umbrella diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index 7faa28ab0..c2814bca8 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2447 + "max_modules": 2459 }, "RealRooted.Production": { - "max_modules": 2375 + "max_modules": 2387 }, "RealRooted.Tactic.Examples": { "max_modules": 844 diff --git a/scripts/mathlib_shims.json b/scripts/mathlib_shims.json index a9f62b3e0..acfa62531 100644 --- a/scripts/mathlib_shims.json +++ b/scripts/mathlib_shims.json @@ -125,7 +125,7 @@ "sources": [ "RealRooted/Mathlib/Data/List/Interleave.lean" ], - "note": "mathlib4#39870 (Yaël Dillies; merged, in Mathlib v4.35.0): List interleaving API. The shim now keeps only `Interleaves.map`, `Interleaves.map_of_mem` and one deprecated alias." + "note": "mathlib4#39870 (Ya\u00ebl Dillies; merged, in Mathlib v4.35.0): List interleaving API. The shim now keeps only `Interleaves.map`, `Interleaves.map_of_mem` and one deprecated alias." }, { "sources": [ @@ -979,7 +979,7 @@ "modules": [ "Mathlib.Analysis.Complex.LimitsOfZeros" ], - "note": "Speculative target module (Beraha–Kahane–Weiss reverse direction, #2071); no upstream PR or attribution has been recorded yet.", + "note": "Speculative target module (Beraha\u2013Kahane\u2013Weiss reverse direction, #2071); no upstream PR or attribution has been recorded yet.", "speculative": true }, { @@ -2967,7 +2967,7 @@ "modules": [ "Mathlib.RingTheory.Polynomial.Laguerre.FiniteCombinations" ], - "note": "Speculative target module (Durán 2025, Theorem 1.3, case K = 1; #2069); no upstream PR or attribution has been recorded yet.", + "note": "Speculative target module (Dur\u00e1n 2025, Theorem 1.3, case K = 1; #2069); no upstream PR or attribution has been recorded yet.", "speculative": true }, { @@ -3267,7 +3267,7 @@ "modules": [ "Mathlib.LinearAlgebra.Matrix.Determinant.Hessenberg" ], - "note": "General matrix lemmas supporting the positive-power Brändén–Leite extension (#2441).", + "note": "General matrix lemmas supporting the positive-power Br\u00e4nd\u00e9n\u2013Leite extension (#2441).", "speculative": true }, { @@ -3287,7 +3287,7 @@ "modules": [ "Mathlib.LinearAlgebra.Matrix.Charpoly.DeterminantPencil" ], - "note": "General algebra and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General algebra and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3297,7 +3297,7 @@ "modules": [ "Mathlib.LinearAlgebra.Matrix.Checkerboard" ], - "note": "General formal-series and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3307,7 +3307,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.BinomialDerivative" ], - "note": "General formal-series and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3317,7 +3317,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.BinomialPositive" ], - "note": "General formal-series and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3327,7 +3327,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.NegativePowerRecurrence" ], - "note": "General formal-series and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3337,7 +3337,7 @@ "modules": [ "Mathlib.Algebra.Polynomial.LinearFactors" ], - "note": "General formal-series, polynomial, and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series, polynomial, and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3347,7 +3347,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.AffineSubstitution" ], - "note": "General formal-series, polynomial, and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series, polynomial, and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3357,7 +3357,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.BinomialAffineExpansion" ], - "note": "General formal-series, polynomial, and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series, polynomial, and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3367,7 +3367,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.BivariateBinomial" ], - "note": "General formal-series, polynomial, and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series, polynomial, and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3377,7 +3377,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.NegativePowerCoefficients" ], - "note": "General formal-series, polynomial, and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series, polynomial, and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3387,7 +3387,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.NegativePowerMul" ], - "note": "General formal-series, polynomial, and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series, polynomial, and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3397,7 +3397,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.NegativePowerPositive" ], - "note": "General formal-series, polynomial, and matrix lemmas for positive-power Brändén–Leite (#2441).", + "note": "General formal-series, polynomial, and matrix lemmas for positive-power Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3407,7 +3407,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.NegativePowerDegree" ], - "note": "General positive-power coefficient and recurrence lemmas for Brändén–Leite (#2441).", + "note": "General positive-power coefficient and recurrence lemmas for Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3417,7 +3417,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.BinomialLogLimit" ], - "note": "Formal logarithmic limits and inverse identities for generalized Brändén–Leite (#2441).", + "note": "Formal logarithmic limits and inverse identities for generalized Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3427,7 +3427,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.FiniteSubstitution" ], - "note": "Formal logarithmic limits and inverse identities for generalized Brändén–Leite (#2441).", + "note": "Formal logarithmic limits and inverse identities for generalized Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3437,7 +3437,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.NegativePowerLogLimit" ], - "note": "Formal logarithmic limits and inverse identities for generalized Brändén–Leite (#2441).", + "note": "Formal logarithmic limits and inverse identities for generalized Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3447,7 +3447,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.NegativePowerOne" ], - "note": "Formal logarithmic limits and inverse identities for generalized Brändén–Leite (#2441).", + "note": "Formal logarithmic limits and inverse identities for generalized Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3457,7 +3457,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.LogarithmMul" ], - "note": "Logarithmic coefficient identities and positivity for generalized Brändén–Leite (#2441).", + "note": "Logarithmic coefficient identities and positivity for generalized Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3467,7 +3467,7 @@ "modules": [ "Mathlib.RingTheory.PowerSeries.LogarithmPositive" ], - "note": "Logarithmic coefficient identities and positivity for generalized Brändén–Leite (#2441).", + "note": "Logarithmic coefficient identities and positivity for generalized Br\u00e4nd\u00e9n\u2013Leite (#2441).", "speculative": true }, { @@ -3789,6 +3789,26 @@ ], "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/Complex/GrowthOrder/Derivative.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.GrowthOrder.Derivative" + ], + "note": "Iterated derivatives preserve the growth order of entire functions, using Cauchy estimates and Tau Ceti growth definitions; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/NumberTheory/LSeries/RiemannXi/Derivative.lean" + ], + "modules": [ + "Mathlib.NumberTheory.LSeries.RiemannXi.Derivative" + ], + "note": "Entire xi derivatives retain growth bounds and are nonzero at the origin; no upstream PR yet.", + "speculative": true } ] } From 4c37c11ee33762894c212fa905fae0efe8a80de8 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 15:00:03 +0000 Subject: [PATCH 09/56] feat: prove simple roots of RH Hermite polynomials --- RealRooted/BasisTransform/Hermite.lean | 106 ++++++++++ RealRooted/Hermite/FiniteTransfer.lean | 187 ++++++++++++++++++ .../RiemannHypothesis/HermiteSimple.lean | 73 +++++++ 3 files changed, 366 insertions(+) create mode 100644 RealRooted/BasisTransform/Hermite.lean create mode 100644 RealRooted/Hermite/FiniteTransfer.lean create mode 100644 RealRooted/RiemannHypothesis/HermiteSimple.lean diff --git a/RealRooted/BasisTransform/Hermite.lean b/RealRooted/BasisTransform/Hermite.lean new file mode 100644 index 000000000..84b99b5ea --- /dev/null +++ b/RealRooted/BasisTransform/Hermite.lean @@ -0,0 +1,106 @@ +module + +public import RealRooted.SimpleRoots +public import RealRooted.Mathlib.Algebra.Polynomial.BasisTransform +import RealRooted.MaWang.StrictStep +import RealRooted.Mathlib.Algebra.Polynomial.Derivative + +/-! +# Simple roots under Hermite basis transforms + +A basis whose raising operator is an affine multiplier minus a positive +constant times differentiation sends every nonzero real-rooted polynomial to +a polynomial with simple real roots. Repeated roots of the input are allowed. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- A negative constant derivative coefficient makes each affine factor step strict. -/ +private theorem affine_derivative_step {f : ℝ[X]} {a b c : ℝ} + (ha : 0 < a) (hc : 0 < c) (hf : IsSimpleRealRooted f) + (hpos : HasPosLeadingCoeff f) : + IsSimpleRealRooted ((C a * X + C b) * f + C (-c) * f.derivative) ∧ + HasPosLeadingCoeff ((C a * X + C b) * f + C (-c) * f.derivative) := by + let F := (C a * X + C b) * f + C (-c) * f.derivative + have htop : a * f.leadingCoeff ≠ 0 := ne_of_gt (mul_pos ha hpos) + have hdeg := natDegree_and_leadingCoeff_quadratic_derivative_add_linear_mul_add + f (C (-c) * f.derivative) 0 0 b a + ((natDegree_C_mul_le _ _).trans ((natDegree_derivative_le f).trans (Nat.sub_le _ _))) + (by simpa using htop) + have hdegree : F.natDegree = f.natDegree + 1 := by + simpa [F, add_comm] using hdeg.1 + have hFpos : HasPosLeadingCoeff F := by + have hlead : F.leadingCoeff = a * f.leadingCoeff := by + simpa [F, add_comm] using hdeg.2 + change 0 < F.leadingCoeff + rw [hlead] + exact mul_pos ha hpos + refine ⟨?_, hFpos⟩ + by_cases hzero : f.natDegree = 0 + · have hsmall : F.natDegree ≤ 1 := by lia + have hFne : F ≠ 0 := leadingCoeff_ne_zero.mp (ne_of_gt hFpos) + exact ⟨hFne, Splits.of_natDegree_le_one hsmall, + hasSimpleRoots_of_natDegree_le_one hFne hsmall⟩ + · have hstep := MaWang.strictInterl_and_hasSimpleRoots_of_eval_neg + hf.2.1 hpos hFpos hzero hdegree hf.2.2 (show F = _ by rfl) + (fun r _ => by simpa using neg_neg_of_pos hc) + exact ⟨hstep.2.ne_zero, hstep.1.2.1.2, hstep.2⟩ + +/-- Induction over the real linear factors preserves positive leading coefficient. -/ +private theorem basisTransform_prod_simple {B : ℕ → ℝ[X]} {a b c : ℝ} + (hzero : B 0 = 1) (ha : 0 < a) (hc : 0 < c) + (hrec : ∀ n, B (n + 1) = (C a * X + C b) * B n + C (-c) * (B n).derivative) + (s : Multiset ℝ) : + IsSimpleRealRooted (basisTransform B (s.map (fun r => X - C r)).prod) ∧ + HasPosLeadingCoeff (basisTransform B (s.map (fun r => X - C r)).prod) := by + induction s using Multiset.induction_on with + | empty => + simp only [Multiset.map_zero, Multiset.prod_zero] + have heq : basisTransform B 1 = 1 := by + simpa [hzero] using basisTransform_C B 1 + rw [heq] + exact ⟨⟨one_ne_zero, Splits.one, + hasSimpleRoots_of_natDegree_le_one one_ne_zero (by simp)⟩, by simp [HasPosLeadingCoeff]⟩ + | @cons r s ih => + simp only [Multiset.map_cons, Multiset.prod_cons] + have heq := basisTransform_mul_X_add_C_of_succ_derivative B + (C a * X + C b) (C (-c)) hrec (-r) (s.map (fun r => X - C r)).prod + rw [map_neg, ← sub_eq_add_neg] at heq + rw [heq] + have hlinear : C a * X + C b + -C r = C a * X + C (b - r) := by + simp [sub_eq_add_neg, add_assoc] + rw [hlinear] + exact affine_derivative_step ha hc ih.1 ih.2 + +/-- A positive affine raising operator with a negative derivative term makes +the roots of every nonzero split input simple. -/ +theorem isSimpleRealRooted_basisTransform_of_raising + {B : ℕ → ℝ[X]} {a b c : ℝ} (hzero : B 0 = 1) (ha : 0 < a) (hc : 0 < c) + (hrec : ∀ n, B (n + 1) = (C a * X + C b) * B n + C (-c) * (B n).derivative) + {p : ℝ[X]} (hp : p.Splits) (hp0 : p ≠ 0) : + IsSimpleRealRooted (basisTransform B p) := by + have hprod := (basisTransform_prod_simple hzero ha hc hrec p.roots).1 + have hlc : p.leadingCoeff ≠ 0 := leadingCoeff_ne_zero.mpr hp0 + have heq : basisTransform B p = + C p.leadingCoeff * basisTransform B (p.roots.map (fun r => X - C r)).prod := by + conv_lhs => rw [hp.eq_prod_roots] + exact linearMap_C_mul (basisTransformₗ B) _ _ + rw [heq] + exact ⟨mul_ne_zero (C_ne_zero.mpr hlc) hprod.1, hprod.2.1.C_mul _, + hprod.2.2.C_mul hlc⟩ + +/-- The same raising operator preserves splitting, including the zero input. -/ +theorem splits_basisTransform_of_raising + {B : ℕ → ℝ[X]} {a b c : ℝ} (hzero : B 0 = 1) (ha : 0 < a) (hc : 0 < c) + (hrec : ∀ n, B (n + 1) = (C a * X + C b) * B n + C (-c) * (B n).derivative) + {p : ℝ[X]} (hp : p.Splits) : + (basisTransform B p).Splits := by + by_cases hp0 : p = 0 + · simp [hp0] + · exact (isSimpleRealRooted_basisTransform_of_raising hzero ha hc hrec hp hp0).2.1 + +end RealRooted diff --git a/RealRooted/Hermite/FiniteTransfer.lean b/RealRooted/Hermite/FiniteTransfer.lean new file mode 100644 index 000000000..1ea67c11a --- /dev/null +++ b/RealRooted/Hermite/FiniteTransfer.lean @@ -0,0 +1,187 @@ +module + +public import RealRooted.Hermite.Jensen +public import RealRooted.SimpleRoots +public import RealRooted.Mathlib.Algebra.Polynomial.BasisTransform +import RealRooted.BasisTransform.Hermite +import RealRooted.Mathlib.Algebra.Polynomial.Reverse +import RealRooted.Mathlib.Algebra.Polynomial.Chow +import RealRooted.Mathlib.Algebra.Polynomial.Derivative + +/-! +# Finite Jensen-to-Hermite transfer + +At each fixed degree, splitting of a Jensen polynomial implies splitting of +its Hermite version. A nonzero input gives simple real roots, even if the +Jensen polynomial has repeated roots. No entire-function hypothesis is needed. +The splitting implications are Corollaries 3.7 and 3.8 of Cormac O'Sullivan, +*Zeros of Jensen polynomials and asymptotics for the Riemann xi function*, +https://arxiv.org/abs/2007.13582. The simple-root statements strengthen them. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Differentiation lowers the physicists' Hermite index with factor `2n`. -/ +theorem derivative_hermitePhysicists (n : ℕ) : + (hermitePhysicists (n + 1)).derivative = C (2 * (n + 1 : ℝ)) * hermitePhysicists n := by + induction n using Nat.twoStepInduction with + | zero => simp [map_ofNat] + | one => simp [hermitePhysicists_add_two, map_ofNat]; ring + | more n ih ih' => + rw [show n + 2 + 1 = (n + 1) + 2 by lia, hermitePhysicists_add_two] + simp only [derivative_sub, derivative_mul, derivative_ofNat, derivative_X, + derivative_C, zero_mul, mul_one, zero_add] + rw [show n + 1 + 1 = n + 2 by lia, ih', ih] + rw [hermitePhysicists_add_two] + simp only [map_mul, map_add, map_natCast, map_ofNat, map_one] + push_cast + ring + +/-- The physicists' Hermite raising operator is `2X - d/dX`. -/ +theorem hermitePhysicists_succ_derivative (n : ℕ) : + hermitePhysicists (n + 1) = + (C 2 * X + C 0) * hermitePhysicists n + C (-1) * (hermitePhysicists n).derivative := by + cases n with + | zero => simp [map_ofNat] + | succ n => + rw [derivative_hermitePhysicists, hermitePhysicists_add_two] + simp [map_ofNat, sub_eq_add_neg] + +/-- The raising recurrence determines both degree and leading coefficient. -/ +private theorem hermitePhysicists_degree_and_leadingCoeff (n : ℕ) : + (hermitePhysicists n).natDegree = n ∧ (hermitePhysicists n).leadingCoeff = 2 ^ n := by + induction n with + | zero => simp + | succ n ih => + have h := natDegree_and_leadingCoeff_quadratic_derivative_add_linear_mul_add + (hermitePhysicists n) (C (-1) * (hermitePhysicists n).derivative) 0 0 0 2 + ((natDegree_C_mul_le _ _).trans + ((natDegree_derivative_le _).trans (Nat.sub_le _ _))) + (by simp [ih.2]) + have heq : C 2 * X * hermitePhysicists n + + C (-1) * (hermitePhysicists n).derivative = hermitePhysicists (n + 1) := by + rw [hermitePhysicists_succ_derivative] + simp + simp only [map_zero, zero_mul, zero_add, heq] at h + simpa [ih.1, ih.2, pow_succ, mul_comm] using h + +/-- The physicists' Hermite polynomial has its index as degree. -/ +theorem natDegree_hermitePhysicists (n : ℕ) : + (hermitePhysicists n).natDegree = n := + (hermitePhysicists_degree_and_leadingCoeff n).1 + +/-- The physicists' Hermite normalization has leading coefficient `2^n`. -/ +theorem leadingCoeff_hermitePhysicists (n : ℕ) : + (hermitePhysicists n).leadingCoeff = 2 ^ n := + (hermitePhysicists_degree_and_leadingCoeff n).2 + +/-- The Hermite convolution never exceeds its specified degree. -/ +theorem natDegree_hermiteJensenPolynomial_le (d : ℕ) (gamma : ℕ → ℝ) : + (hermiteJensenPolynomial d gamma).natDegree ≤ d := by + apply natDegree_sum_le_of_forall_le + intro k _ + exact (natDegree_C_mul_le _ _).trans + ((natDegree_hermitePhysicists (d - k)).le.trans (Nat.sub_le _ _)) + +/-- The top coefficient depends on `gamma 0`, rather than on `gamma d`. -/ +theorem coeff_hermiteJensenPolynomial_self (d : ℕ) (gamma : ℕ → ℝ) : + (hermiteJensenPolynomial d gamma).coeff d = gamma 0 * 2 ^ d := by + classical + rw [hermiteJensenPolynomial, finsetSum_coeff, Finset.sum_eq_single 0] + · simp only [coeff_C_mul, Nat.choose_zero_right, Nat.cast_one, one_mul, Nat.sub_zero] + have hcoeff := coeff_natDegree (p := hermitePhysicists d) + rw [natDegree_hermitePhysicists, leadingCoeff_hermitePhysicists] at hcoeff + rw [hcoeff] + · intro k hmem hk + have hkd : k ≤ d := Nat.lt_succ_iff.mp (Finset.mem_range.mp hmem) + rw [coeff_C_mul, coeff_eq_zero_of_natDegree_lt, mul_zero] + rw [natDegree_hermitePhysicists] + lia + · simp + +/-- A nonzero zeroth coefficient makes the Hermite convolution degree exact. -/ +theorem natDegree_hermiteJensenPolynomial {d : ℕ} {gamma : ℕ → ℝ} + (hgamma : gamma 0 ≠ 0) : (hermiteJensenPolynomial d gamma).natDegree = d := + natDegree_eq_of_le_of_coeff_ne_zero (natDegree_hermiteJensenPolynomial_le d gamma) + (by rw [coeff_hermiteJensenPolynomial_self]; exact mul_ne_zero hgamma (by positivity)) + +/-- The leading coefficient of a degree-exact Hermite convolution. -/ +theorem leadingCoeff_hermiteJensenPolynomial {d : ℕ} {gamma : ℕ → ℝ} + (hgamma : gamma 0 ≠ 0) : + (hermiteJensenPolynomial d gamma).leadingCoeff = gamma 0 * 2 ^ d := by + rw [← coeff_natDegree, natDegree_hermiteJensenPolynomial hgamma, + coeff_hermiteJensenPolynomial_self] + +/-- Replacing monomials by physicists' Hermite polynomials strictly +regularizes every nonzero real-rooted polynomial. -/ +theorem isSimpleRealRooted_hermiteBasisTransform {p : ℝ[X]} + (hp : p.Splits) (hp0 : p ≠ 0) : + IsSimpleRealRooted (basisTransform hermitePhysicists p) := + isSimpleRealRooted_basisTransform_of_raising hermitePhysicists_zero + (by norm_num) (by norm_num) hermitePhysicists_succ_derivative hp hp0 + +/-- Replacing monomials by physicists' Hermite polynomials preserves +real-rootedness, including zero. -/ +theorem splits_hermiteBasisTransform {p : ℝ[X]} (hp : p.Splits) : + (basisTransform hermitePhysicists p).Splits := + splits_basisTransform_of_raising hermitePhysicists_zero + (by norm_num) (by norm_num) hermitePhysicists_succ_derivative hp + +/-- The Hermite basis transform preserves the degree of every nonzero input, +without a real-rootedness assumption. -/ +theorem natDegree_hermiteBasisTransform {p : ℝ[X]} (hp : p ≠ 0) : + (basisTransform hermitePhysicists p).natDegree = p.natDegree := + basisTransform_natDegree_eq natDegree_hermitePhysicists + (fun n => leadingCoeff_ne_zero.mp (by rw [leadingCoeff_hermitePhysicists]; positivity)) hp + +/-- The finite Hermite convolution is the Hermite basis transform of the +degree-reflected Jensen polynomial. -/ +theorem hermiteJensenPolynomial_eq_basisTransform (d : ℕ) (gamma : ℕ → ℝ) : + hermiteJensenPolynomial d gamma = + basisTransform hermitePhysicists (reflect d (jensenPolynomial d gamma)) := by + classical + simp only [jensenPolynomial, ← C_mul_X_pow_eq_monomial, reflect_finset_sum_C_mul, + reflect_monomial, basisTransform_finset_sum, basisTransform_C_mul_X_pow, + hermiteJensenPolynomial] + apply Finset.sum_congr rfl + intro k hk + rw [revAt_le (by simpa using hk)] + +/-- O'Sullivan's finite-degree implication requires only the corresponding +Jensen polynomial to split. -/ +theorem hermiteJensenPolynomial_splits_of_jensenPolynomial_splits + {d : ℕ} {gamma : ℕ → ℝ} (hp : (jensenPolynomial d gamma).Splits) : + (hermiteJensenPolynomial d gamma).Splits := by + rw [hermiteJensenPolynomial_eq_basisTransform] + exact splits_hermiteBasisTransform + ((splits_reflect_iff (natDegree_jensenPolynomial_le d gamma)).mpr hp) + +/-- A nonzero split Jensen polynomial yields a Hermite polynomial with simple +real roots. No simplicity hypothesis is imposed on the Jensen polynomial. -/ +theorem isSimpleRealRooted_hermiteJensenPolynomial + {d : ℕ} {gamma : ℕ → ℝ} (hp : (jensenPolynomial d gamma).Splits) + (hp0 : jensenPolynomial d gamma ≠ 0) : + IsSimpleRealRooted (hermiteJensenPolynomial d gamma) := by + rw [hermiteJensenPolynomial_eq_basisTransform] + exact isSimpleRealRooted_hermiteBasisTransform + ((splits_reflect_iff (natDegree_jensenPolynomial_le d gamma)).mpr hp) + (fun h => hp0 (reflect_eq_zero_iff.mp h)) + +/-- Nonvanishing of the zeroth Taylor coefficient supplies the nonzero +hypothesis in the finite Hermite simplicity theorem. -/ +theorem isSimpleRealRooted_hermiteJensenPolynomial_of_coeff_zero + {d : ℕ} {gamma : ℕ → ℝ} (hp : (jensenPolynomial d gamma).Splits) + (hgamma : gamma 0 ≠ 0) : + IsSimpleRealRooted (hermiteJensenPolynomial d gamma) := by + apply isSimpleRealRooted_hermiteJensenPolynomial hp + intro hz + have h := congrArg (fun p : ℝ[X] => p.coeff 0) hz + simp only [coeff_jensenPolynomial, Nat.zero_le, ite_true, Nat.choose_zero_right, + Nat.cast_one, one_mul, coeff_zero] at h + exact hgamma h + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/HermiteSimple.lean b/RealRooted/RiemannHypothesis/HermiteSimple.lean new file mode 100644 index 000000000..62efa412c --- /dev/null +++ b/RealRooted/RiemannHypothesis/HermiteSimple.lean @@ -0,0 +1,73 @@ +module + +public import RealRooted.RiemannHypothesis.Hermite +public import RealRooted.SimpleRoots +import RealRooted.RiemannHypothesis +import RealRooted.Hermite.FiniteTransfer +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity + +/-! +# Simple roots of the xi Hermite Jensen polynomials + +Under Mathlib's Riemann hypothesis, every xi Hermite Jensen polynomial has +simple real roots. This strengthens splitting of the finite polynomial family; +it makes no simplicity assertion about the zeros of the Riemann xi function. +-/ + +public section + +namespace RealRooted + +/-- Every xi Hermite Jensen polynomial has its specified degree, independently of RH. -/ +theorem natDegree_riemannXiHermitePolynomial (d n : ℕ) : + (riemannXiHermitePolynomial d n).natDegree = d := by + apply natDegree_hermiteJensenPolynomial + simpa using (riemannXiCoeff_pos n).ne' + +/-- The xi Hermite Jensen normalization has a strictly positive leading coefficient. -/ +theorem leadingCoeff_riemannXiHermitePolynomial (d n : ℕ) : + (riemannXiHermitePolynomial d n).leadingCoeff = riemannXiCoeff n * 2 ^ d := by + simpa [riemannXiHermitePolynomial] using leadingCoeff_hermiteJensenPolynomial (d := d) + (gamma := fun k => riemannXiCoeff (n + k)) (by simpa using (riemannXiCoeff_pos n).ne') + +/-- The leading coefficient is positive for all degrees and shifts without RH. -/ +theorem leadingCoeff_riemannXiHermitePolynomial_pos (d n : ℕ) : + 0 < (riemannXiHermitePolynomial d n).leadingCoeff := by + rw [leadingCoeff_riemannXiHermitePolynomial] + exact mul_pos (riemannXiCoeff_pos n) (by positivity) + +/-- No xi Hermite Jensen polynomial is the zero polynomial. -/ +theorem riemannXiHermitePolynomial_ne_zero (d n : ℕ) : + riemannXiHermitePolynomial d n ≠ 0 := + Polynomial.leadingCoeff_ne_zero.mp (leadingCoeff_riemannXiHermitePolynomial_pos d n).ne' + +/-- RH implies simple real roots for every degree and shift of the normalized +xi Hermite Jensen polynomials. Constants are included. -/ +theorem isSimpleRealRooted_riemannXiHermitePolynomial + (hRH : RiemannHypothesis) (d n : ℕ) : + IsSimpleRealRooted (riemannXiHermitePolynomial d n) := by + apply isSimpleRealRooted_hermiteJensenPolynomial_of_coeff_zero + (riemannXiJensenPolynomial_splits hRH d n) + simpa using (riemannXiCoeff_pos n).ne' + +/-- RH is equivalent to simple real-rootedness of the unshifted xi Hermite +Jensen family. -/ +theorem riemannHypothesis_iff_simple_hermite_zero : + RiemannHypothesis ↔ ∀ d, IsSimpleRealRooted (riemannXiHermitePolynomial d 0) := by + constructor + · intro h d + exact isSimpleRealRooted_riemannXiHermitePolynomial h d 0 + · intro h + exact riemannHypothesis_iff_riemannXiHermitePolynomial_zero_splits.mpr + (fun d => (h d).2.1) + +/-- RH is equivalent to simple real-rootedness of the xi Hermite Jensen +polynomials in every degree and shift. -/ +theorem riemannHypothesis_iff_simple_hermite : + RiemannHypothesis ↔ ∀ d n, IsSimpleRealRooted (riemannXiHermitePolynomial d n) := by + constructor + · exact isSimpleRealRooted_riemannXiHermitePolynomial + · intro h + exact riemannHypothesis_iff_simple_hermite_zero.mpr (fun d => h d 0) + +end RealRooted From 8680937584739a0e0fb275a8327dfb088ce051b2 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 15:19:48 +0000 Subject: [PATCH 10/56] feat: prove iterated xi coefficient log-concavity --- RealRooted.lean | 6 + RealRooted/BrandenLC/Sequence.lean | 165 ++++++++++++++++++ .../LaguerrePolya/GeneralizedInequality.lean | 21 ++- .../LaguerrePolya/LogConcavity.lean | 54 ++++++ RealRooted/Production.lean | 6 + .../RiemannHypothesis/LogConcavity.lean | 70 ++++++++ scripts/import_architecture.json | 4 +- 7 files changed, 318 insertions(+), 8 deletions(-) create mode 100644 RealRooted/BrandenLC/Sequence.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogConcavity.lean create mode 100644 RealRooted/RiemannHypothesis/LogConcavity.lean diff --git a/RealRooted.lean b/RealRooted.lean index 17a498609..4109062a4 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2469,3 +2469,9 @@ public import RealRooted.MultiplierSequence.JensenProductExpansion public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative public import RealRooted.RiemannHypothesis.DerivativeCriteria +public import RealRooted.BasisTransform.Hermite +public import RealRooted.Hermite.FiniteTransfer +public import RealRooted.RiemannHypothesis.HermiteSimple +public import RealRooted.BrandenLC.Sequence +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogConcavity +public import RealRooted.RiemannHypothesis.LogConcavity diff --git a/RealRooted/BrandenLC/Sequence.lean b/RealRooted/BrandenLC/Sequence.lean new file mode 100644 index 000000000..16ff489a9 --- /dev/null +++ b/RealRooted/BrandenLC/Sequence.lean @@ -0,0 +1,165 @@ +module + +public import RealRooted.BrandenLC +import RealRooted.PFPolynomial.Closure +import RealRooted.CoefficientShape + +/-! +# Iterated log-concavity for limits of PF polynomials + +Brändén's polynomial transform extends to coefficientwise limits of PF +polynomials. Every finite iterate remains a Pólya-frequency sequence. +The approximation hypothesis matters: an arbitrary infinite PF sequence is +not assumed to admit PF polynomial approximants. + +The finite preservation theorem is from P. Brändén, *Iterated sequences and the +geometry of zeros*, https://arxiv.org/abs/0909.1927. +-/ + +@[expose] public section + +open Polynomial Filter Topology + +namespace RealRooted + +/-- The log-concavity transform of a sequence, with the preceding entry at +index zero set to zero. -/ +def logConcavitySequence {R : Type*} [Ring R] (a : ℕ → R) (k : ℕ) : R := + a k ^ 2 - (if k = 0 then 0 else a (k - 1)) * a (k + 1) + +/-- The polynomial and sequence log-concavity transforms have identical +coefficients, including indices above the polynomial degree. -/ +theorem coeff_logConcavityTransform_eq (p : ℝ[X]) (k : ℕ) : + (Branden.logConcavityTransform p).coeff k = logConcavitySequence p.coeff k := by + rw [Branden.coeff_logConcavityTransform] + by_cases hk : k ≤ p.natDegree + · rw [ite_eq_left hk] + rfl + · rw [ite_eq_right hk] + have hzero := coeff_eq_zero_of_natDegree_lt (p := p) (Nat.lt_of_not_ge hk) + have hnext := coeff_eq_zero_of_natDegree_lt (p := p) + (lt_trans (Nat.lt_of_not_ge hk) (Nat.lt_succ_self k)) + simp [logConcavitySequence, hzero, hnext] + +/-- Polynomial iteration agrees coefficientwise with sequence iteration. -/ +theorem coeff_iterate_logConcavityTransform (p : ℝ[X]) (m k : ℕ) : + ((Branden.logConcavityTransform^[m]) p).coeff k = + ((logConcavitySequence^[m]) p.coeff) k := by + induction m generalizing k with + | zero => rfl + | succ m ih => + rw [Function.iterate_succ_apply', Function.iterate_succ_apply', + coeff_logConcavityTransform_eq] + simp only [logConcavitySequence, ih] + +/-- The log-concavity transform is continuous for coefficientwise convergence. -/ +theorem tendsto_logConcavitySequence {a : ℕ → ℕ → ℝ} {b : ℕ → ℝ} + (h : ∀ k, Tendsto (fun n => a n k) atTop (𝓝 (b k))) (k : ℕ) : + Tendsto (fun n => logConcavitySequence (a n) k) atTop + (𝓝 (logConcavitySequence b k)) := by + by_cases hk : k = 0 + · simpa only [logConcavitySequence, ite_eq_left hk, zero_mul, sub_zero] using (h k).pow 2 + · simpa only [logConcavitySequence, ite_eq_right hk] using + ((h k).pow 2).sub ((h (k - 1)).mul (h (k + 1))) + +/-- Every finite log-concavity iterate respects coefficientwise convergence. -/ +theorem tendsto_iterate_logConcavitySequence {a : ℕ → ℕ → ℝ} {b : ℕ → ℝ} + (h : ∀ k, Tendsto (fun n => a n k) atTop (𝓝 (b k))) (m k : ℕ) : + Tendsto (fun n => ((logConcavitySequence^[m]) (a n)) k) atTop + (𝓝 (((logConcavitySequence^[m]) b) k)) := by + induction m generalizing k with + | zero => exact h k + | succ m ih => + simp only [Function.iterate_succ_apply'] + exact tendsto_logConcavitySequence ih k + +/-- Every finite polynomial log-concavity iterate preserves the PF cone. -/ +theorem IsPFPolynomial.iterate_logConcavityTransform {p : ℝ[X]} + (hp : IsPFPolynomial p) (m : ℕ) : + IsPFPolynomial ((Branden.logConcavityTransform^[m]) p) := by + induction m with + | zero => exact hp + | succ m ih => + rw [Function.iterate_succ_apply'] + exact Branden.IsPFPolynomial.logConcavityTransform ih + +/-- All iterated log-concavity transforms of a coefficientwise PF polynomial +limit are PF sequences, so every Toeplitz minor of every iterate is nonnegative. -/ +theorem isPolyaFreqSeq_iterate_logConcavitySequence_of_limit + {p : ℕ → ℝ[X]} {a : ℕ → ℝ} (hp : ∀ n, IsPFPolynomial (p n)) + (hlim : ∀ k, Tendsto (fun n => (p n).coeff k) atTop (𝓝 (a k))) (m : ℕ) : + IsPolyaFreqSeq ((logConcavitySequence^[m]) a) := by + apply IsPolyaFreqSeq.of_tendsto (fun n => ((hp n).iterate_logConcavityTransform m).to_sequence) + intro k + simpa only [coeff_iterate_logConcavityTransform] using + tendsto_iterate_logConcavitySequence hlim m k + +/-- Newton's inequalities give a degree-independent lower bound for the +log-concavity transform of a PF polynomial. -/ +theorem logConcavitySequence_coeff_lower_bound {p : ℝ[X]} + (hp : IsPFPolynomial p) (k : ℕ) : + p.coeff k ^ 2 ≤ (k + 1 : ℝ) * logConcavitySequence p.coeff k := by + by_cases hk0 : k = 0 + · subst k + simp [logConcavitySequence] + have hkpos : 0 < k := Nat.pos_of_ne_zero hk0 + by_cases hkd : k < p.natDegree + · have hn := hasUltraLogConcaveCoeffs_of_eq_zero_or_splits (Or.inr hp.splits) k hkpos hkd + have hB : 0 ≤ p.coeff (k - 1) * p.coeff (k + 1) := + mul_nonneg (hp.hasNonnegCoeffs _) (hp.hasNonnegCoeffs _) + have hD : (0 : ℝ) < ((p.natDegree - k : ℕ) : ℝ) := by + exact_mod_cast Nat.sub_pos_of_lt hkd + have hdrop : p.coeff (k - 1) * p.coeff (k + 1) * + ((k + 1 : ℝ) * ((p.natDegree - k : ℕ) : ℝ)) ≤ + p.coeff k ^ 2 * ((k : ℝ) * ((p.natDegree - k : ℕ) : ℝ)) := by + calc + _ ≤ p.coeff (k - 1) * p.coeff (k + 1) * + ((k + 1 : ℝ) * (((p.natDegree - k : ℕ) : ℝ) + 1)) := by + gcongr + linarith + _ ≤ _ := by simpa only [Nat.cast_add, Nat.cast_one] using hn + have hbase : p.coeff (k - 1) * p.coeff (k + 1) * (k + 1 : ℝ) ≤ + p.coeff k ^ 2 * k := + (mul_le_mul_iff_left₀ hD).mp (by simpa only [mul_assoc] using hdrop) + simp only [logConcavitySequence, ite_eq_right hk0] + nlinarith + · have hnext : p.coeff (k + 1) = 0 := coeff_eq_zero_of_natDegree_lt (by lia) + simp only [logConcavitySequence, hnext, mul_zero, sub_zero] + nlinarith [sq_nonneg (p.coeff k), Nat.cast_nonneg (α := ℝ) k] + +/-- The degree-independent Newton lower bound passes to PF polynomial limits. -/ +theorem logConcavitySequence_lower_bound_of_limit + {p : ℕ → ℝ[X]} {a : ℕ → ℝ} (hp : ∀ n, IsPFPolynomial (p n)) + (hlim : ∀ k, Tendsto (fun n => (p n).coeff k) atTop (𝓝 (a k))) (k : ℕ) : + a k ^ 2 ≤ (k + 1 : ℝ) * logConcavitySequence a k := + le_of_tendsto_of_tendsto ((hlim k).pow 2) + ((tendsto_logConcavitySequence hlim k).const_mul (k + 1 : ℝ)) + (Filter.Eventually.of_forall fun n => logConcavitySequence_coeff_lower_bound (hp n) k) + +/-- A positive entry in a PF polynomial limit remains positive after the +log-concavity transform. -/ +theorem logConcavitySequence_pos_of_limit + {p : ℕ → ℝ[X]} {a : ℕ → ℝ} (hp : ∀ n, IsPFPolynomial (p n)) + (hlim : ∀ k, Tendsto (fun n => (p n).coeff k) atTop (𝓝 (a k))) {k : ℕ} + (ha : 0 < a k) : 0 < logConcavitySequence a k := by + have h := logConcavitySequence_lower_bound_of_limit hp hlim k + have hk : (0 : ℝ) < k + 1 := by positivity + nlinarith [sq_pos_of_pos ha] + +/-- A positive entry remains positive under every log-concavity iterate +for coefficientwise PF polynomial limits. -/ +theorem iterate_logConcavitySequence_pos_of_limit + {p : ℕ → ℝ[X]} {a : ℕ → ℝ} (hp : ∀ n, IsPFPolynomial (p n)) + (hlim : ∀ k, Tendsto (fun n => (p n).coeff k) atTop (𝓝 (a k))) + (m k : ℕ) (ha : 0 < a k) : 0 < ((logConcavitySequence^[m]) a) k := by + induction m with + | zero => exact ha + | succ m ih => + rw [Function.iterate_succ_apply'] + apply logConcavitySequence_pos_of_limit + (fun n => (hp n).iterate_logConcavityTransform m) ?_ ih + intro j + simpa only [coeff_iterate_logConcavityTransform] using + tendsto_iterate_logConcavitySequence hlim m j + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GeneralizedInequality.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GeneralizedInequality.lean index bc333f805..1f2e39563 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GeneralizedInequality.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GeneralizedInequality.lean @@ -22,10 +22,12 @@ open Complex Filter Polynomial Topology namespace RealRooted -/-- At each real point, the generalized Laguerre coefficients of a -Laguerre--Pólya function form a Pólya-frequency sequence. -/ -theorem IsLaguerrePolya.isPolyaFreqSeq_laguerreCoefficient {f : ℂ → ℂ} - (hf : IsLaguerrePolya f) (x : ℝ) : IsPolyaFreqSeq (laguerreCoefficient f x) := by +/-- At each real point, generalized Laguerre coefficients are coefficientwise +limits of PF polynomials. -/ +theorem IsLaguerrePolya.exists_pf_laguerreCoefficient_approx {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (x : ℝ) : + ∃ p : ℕ → ℝ[X], (∀ n, IsPFPolynomial (p n)) ∧ + ∀ k, Tendsto (fun n => (p n).coeff k) atTop (𝓝 (laguerreCoefficient f x k)) := by have hc := hf.differentiable.continuous obtain ⟨p, hp, hlim⟩ := hf have hs (n : ℕ) : (p n).Splits := (hp n).elim (fun h => h ▸ Splits.zero) id @@ -41,13 +43,20 @@ theorem IsLaguerrePolya.isPolyaFreqSeq_laguerreCoefficient {f : ℂ → ℂ} Polynomial.map_comp, Polynomial.map_pow, map_X, eval_comp, eval_pow, eval_X, eval_laguerreGeneratingPolynomial (hs n)] · rfl - apply IsPolyaFreqSeq.of_tendsto - (fun n => (isPFPolynomial_laguerreGeneratingPolynomial (p n) x).to_sequence) + refine ⟨fun n => laguerreGeneratingPolynomial (p n) x, + fun n => isPFPolynomial_laguerreGeneratingPolynomial (p n) x, ?_⟩ intro k simpa only [coeff_expand_mul' (by norm_num : 0 < 2), Complex.div_natCast_re, laguerreCoefficient] using Polynomial.tendsto_coeff_of_tendstoLocallyUniformly hexpand (2 * k) +/-- At each real point, the generalized Laguerre coefficients of a +Laguerre--Pólya function form a Pólya-frequency sequence. -/ +theorem IsLaguerrePolya.isPolyaFreqSeq_laguerreCoefficient {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (x : ℝ) : IsPolyaFreqSeq (laguerreCoefficient f x) := by + obtain ⟨p, hp, hlim⟩ := hf.exists_pf_laguerreCoefficient_approx x + exact IsPolyaFreqSeq.of_tendsto (fun n => (hp n).to_sequence) hlim + /-- Every generalized Laguerre coefficient of a Laguerre--Pólya function is nonnegative on the real axis. -/ theorem IsLaguerrePolya.laguerreCoefficient_nonneg {f : ℂ → ℂ} diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogConcavity.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogConcavity.lean new file mode 100644 index 000000000..a58ce839f --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogConcavity.lean @@ -0,0 +1,54 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import RealRooted.LaguerreInequalities.Analytic +public import RealRooted.BrandenLC.Sequence +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff + +/-! +# Iterated log-concavity of Laguerre--Pólya coefficients + +All iterated log-concavity transforms of the ordinary Taylor coefficients of a +positive Type-I function are PF sequences. The same holds for the generalized +Laguerre coefficients at each real point of any Laguerre--Pólya function. +These statements use PF polynomial approximation and Brändén's finite theorem. +-/ + +public section + +namespace RealRooted + +/-- Every log-concavity iterate of a positive Type-I function's ordinary +Taylor coefficients is a Pólya-frequency sequence. -/ +theorem IsLaguerrePolyaTypeI.isPolyaFreqSeq_iterate_logConcavity {f : ℂ → ℂ} + (hf : IsLaguerrePolyaTypeI f) (m : ℕ) : + IsPolyaFreqSeq ((logConcavitySequence^[m]) + (fun k => (iteratedDeriv k f 0).re / k.factorial)) := by + obtain ⟨p, hp, hlim⟩ := hf + apply isPolyaFreqSeq_iterate_logConcavitySequence_of_limit hp ?_ m + intro k + simpa only [Complex.div_natCast_re] using + Polynomial.tendsto_coeff_of_tendstoLocallyUniformly hlim k + +/-- A positive ordinary Taylor coefficient of a Type-I function remains +positive under every log-concavity iterate. -/ +theorem IsLaguerrePolyaTypeI.iterate_logConcavity_pos {f : ℂ → ℂ} + (hf : IsLaguerrePolyaTypeI f) (m k : ℕ) (hk : 0 < (iteratedDeriv k f 0).re) : + 0 < ((logConcavitySequence^[m]) + (fun j => (iteratedDeriv j f 0).re / j.factorial)) k := by + obtain ⟨p, hp, hlim⟩ := hf + apply iterate_logConcavitySequence_pos_of_limit hp ?_ m k (div_pos hk (by positivity)) + intro j + simpa only [Complex.div_natCast_re] using + Polynomial.tendsto_coeff_of_tendstoLocallyUniformly hlim j + +/-- Every log-concavity iterate of the generalized Laguerre coefficients of +an LP function is a PF sequence at every real point. -/ +theorem IsLaguerrePolya.isPolyaFreqSeq_iterate_laguerreCoefficient {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (x : ℝ) (m : ℕ) : + IsPolyaFreqSeq ((logConcavitySequence^[m]) (laguerreCoefficient f x)) := by + obtain ⟨p, hp, hlim⟩ := hf.exists_pf_laguerreCoefficient_approx x + exact isPolyaFreqSeq_iterate_logConcavitySequence_of_limit hp hlim m + +end RealRooted diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index f5f7daec0..889ef61df 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2394,6 +2394,12 @@ public import RealRooted.MultiplierSequence.JensenProductExpansion public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative public import RealRooted.RiemannHypothesis.DerivativeCriteria +public import RealRooted.BasisTransform.Hermite +public import RealRooted.Hermite.FiniteTransfer +public import RealRooted.RiemannHypothesis.HermiteSimple +public import RealRooted.BrandenLC.Sequence +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogConcavity +public import RealRooted.RiemannHypothesis.LogConcavity /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/LogConcavity.lean b/RealRooted/RiemannHypothesis/LogConcavity.lean new file mode 100644 index 000000000..c73f7cad4 --- /dev/null +++ b/RealRooted/RiemannHypothesis/LogConcavity.lean @@ -0,0 +1,70 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.LaguerreInequalities.Analytic +public import RealRooted.BrandenLC.Sequence +import RealRooted.RiemannHypothesis +import RealRooted.RiemannHypothesis.TotalPositivity +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogConcavity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen + +/-! +# Infinite log-concavity consequences of the Riemann hypothesis + +Under Mathlib's RH, every log-concavity iterate of each ordinary xi Taylor +sequence is PF. All entries and all Toeplitz minors of every iterate are +therefore nonnegative. The factorial normalization is essential: these are +ordinary coefficients `γ(n+k)/k!`, not the raw exponential Taylor data. + +The generalized Laguerre coefficients of every xi derivative have the same +iterated PF property at every real point. These consequences follow from +Brändén's finite preservation theorem and the checked LP approximation results. +-/ + +public section + +namespace RealRooted + +/-- RH implies the PF property after every log-concavity iterate of every +ordinary xi Taylor sequence. -/ +theorem isPolyaFreqSeq_iterate_logConcavity_riemannXiCoeff + (hRH : RiemannHypothesis) (n m : ℕ) : + IsPolyaFreqSeq ((logConcavitySequence^[m]) + (fun k => riemannXiCoeff (n + k) / k.factorial)) := by + have hf := isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH n + have h := hf.isPolyaFreqSeq_iterate_logConcavity m + simpa only [riemannXiCoeff, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm] using h + +/-- Every entry of every log-concavity iterate of the normalized ordinary +xi coefficients is nonnegative under RH. -/ +theorem iterate_logConcavity_riemannXiCoeff_nonneg + (hRH : RiemannHypothesis) (n m k : ℕ) : + 0 ≤ ((logConcavitySequence^[m]) + (fun j => riemannXiCoeff (n + j) / j.factorial)) k := + (isPolyaFreqSeq_iterate_logConcavity_riemannXiCoeff hRH n m).nonneg k + +/-- Under RH the ordinary xi coefficient sequences are strictly infinitely +log-concave: every entry of every iterate is positive. -/ +theorem iterate_logConcavity_riemannXiCoeff_pos + (hRH : RiemannHypothesis) (n m k : ℕ) : + 0 < ((logConcavitySequence^[m]) + (fun j => riemannXiCoeff (n + j) / j.factorial)) k := by + have hf := isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH n + have hk : 0 < (iteratedDeriv k (iteratedDeriv n riemannXiTheta) 0).re := by + simpa only [riemannXiCoeff, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm] using riemannXiCoeff_pos (n + k) + simpa only [riemannXiCoeff, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm] using hf.iterate_logConcavity_pos m k hk + +/-- RH gives iterated PF inequalities for the generalized Laguerre sequence +of every xi derivative at every real point. -/ +theorem isPolyaFreqSeq_iterate_laguerreCoefficient_riemannXiTheta + (hRH : RiemannHypothesis) (n m : ℕ) (x : ℝ) : + IsPolyaFreqSeq ((logConcavitySequence^[m]) + (laguerreCoefficient (iteratedDeriv n riemannXiTheta) x)) := by + have hf := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n + exact hf.isPolyaFreqSeq_iterate_laguerreCoefficient x m + +end RealRooted diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index c2814bca8..5a5bc1eed 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2459 + "max_modules": 2465 }, "RealRooted.Production": { - "max_modules": 2387 + "max_modules": 2393 }, "RealRooted.Tactic.Examples": { "max_modules": 844 From 4fb8fd7776bbfa1ffd4b4fa6e2596e3d2a1a1403 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 15:08:52 +0000 Subject: [PATCH 11/56] feat: add RH Hermite companions and interlacing --- RealRooted/Hermite/Appell.lean | 80 ++++++++ RealRooted/Hermite/Companions.lean | 180 ++++++++++++++++++ .../RiemannHypothesis/HermiteCompanions.lean | 90 +++++++++ .../RiemannHypothesis/HermiteInterlacing.lean | 43 +++++ 4 files changed, 393 insertions(+) create mode 100644 RealRooted/Hermite/Appell.lean create mode 100644 RealRooted/Hermite/Companions.lean create mode 100644 RealRooted/RiemannHypothesis/HermiteCompanions.lean create mode 100644 RealRooted/RiemannHypothesis/HermiteInterlacing.lean diff --git a/RealRooted/Hermite/Appell.lean b/RealRooted/Hermite/Appell.lean new file mode 100644 index 000000000..d5ab21201 --- /dev/null +++ b/RealRooted/Hermite/Appell.lean @@ -0,0 +1,80 @@ +module + +public import RealRooted.Hermite.FiniteTransfer +import RealRooted.Derivative.Interlacing + +/-! +# The Hermite Jensen Appell family + +For a fixed coefficient sequence, differentiation lowers the degree index +without shifting the coefficient sequence. This gives consecutive-degree +interlacing, and simple roots exclude shared roots between adjacent rows. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Hermite Jensen polynomials form an Appell family with derivative factor `2d`. -/ +theorem derivative_hermiteJensenPolynomial (d : ℕ) (gamma : ℕ → ℝ) : + (hermiteJensenPolynomial (d + 1) gamma).derivative = + C (2 * (d + 1 : ℝ)) * hermiteJensenPolynomial d gamma := by + classical + rw [hermiteJensenPolynomial, map_sum, Finset.sum_range_succ] + simp only [derivative_mul, derivative_C, zero_mul, zero_add, Nat.sub_self, + hermitePhysicists_zero, derivative_one, mul_zero, add_zero] + rw [hermiteJensenPolynomial, Finset.mul_sum] + apply Finset.sum_congr rfl + intro k hk + have hkd : k ≤ d := Nat.lt_succ_iff.mp (Finset.mem_range.mp hk) + have hsub : d + 1 - k = d - k + 1 := by lia + rw [hsub, derivative_hermitePhysicists] + have hchoose : ((d + 1).choose k : ℝ) * (d - k + 1 : ℕ) = + (d + 1 : ℝ) * (d.choose k : ℝ) := by + rw [← hsub] + exact_mod_cast (Nat.choose_mul_succ_eq d k).symm.trans (Nat.mul_comm _ _) + simp only [← mul_assoc, ← C_mul] + congr 2 + push_cast at hchoose + linear_combination 2 * gamma k * hchoose + +/-- Splitting of the upper Hermite row gives zero-aware interlacing with the preceding row. -/ +theorem hermiteJensenPolynomial_interl {d : ℕ} {gamma : ℕ → ℝ} + (hp : (hermiteJensenPolynomial (d + 1) gamma).Splits) : + Interl (hermiteJensenPolynomial d gamma) (hermiteJensenPolynomial (d + 1) gamma) := by + have hi : Interl (hermiteJensenPolynomial (d + 1) gamma).derivative + (hermiteJensenPolynomial (d + 1) gamma) := by + by_cases hd : (hermiteJensenPolynomial (d + 1) gamma).natDegree = 0 + · rw [derivative_eq_zero.mpr hd] + exact interl_zero_left _ + · exact (derivative_interlaces_of_natDegree_ne_zero hp hd).toStrictInterl.toInterl + have hscaled := hi.C_mul_left_of_nonneg (a := (2 * (d + 1 : ℝ))⁻¹) (by positivity) + simpa only [derivative_hermiteJensenPolynomial, ← mul_assoc, ← C_mul, + inv_mul_cancel₀ (by positivity : (2 * (d + 1 : ℝ)) ≠ 0), C_1, one_mul] using hscaled + +/-- Nonzero zeroth coefficient gives nonzero, consecutive-degree interlacing. -/ +theorem hermiteJensenPolynomial_strictInterl {d : ℕ} {gamma : ℕ → ℝ} + (hp : (hermiteJensenPolynomial (d + 1) gamma).Splits) (hgamma : gamma 0 ≠ 0) : + StrictInterl (hermiteJensenPolynomial d gamma) + (hermiteJensenPolynomial (d + 1) gamma) := by + have hdegree : (hermiteJensenPolynomial (d + 1) gamma).natDegree ≠ 0 := by + rw [natDegree_hermiteJensenPolynomial hgamma] + lia + have hi := (derivative_interlaces_of_natDegree_ne_zero hp hdegree).toStrictInterl + have hscaled := hi.C_mul_left (a := (2 * (d + 1 : ℝ))⁻¹) (by positivity) + simpa only [derivative_hermiteJensenPolynomial, ← mul_assoc, ← C_mul, + inv_mul_cancel₀ (by positivity : (2 * (d + 1 : ℝ)) ≠ 0), C_1, one_mul] using hscaled + +/-- A simple upper Hermite row shares no real root with its predecessor. -/ +theorem hermiteJensenPolynomial_no_common_root {d : ℕ} {gamma : ℕ → ℝ} + (hp : HasSimpleRoots (hermiteJensenPolynomial (d + 1) gamma)) (r : ℝ) : + ¬ ((hermiteJensenPolynomial d gamma).IsRoot r ∧ + (hermiteJensenPolynomial (d + 1) gamma).IsRoot r) := by + intro hr + apply hp.eval_derivative_ne_zero hr.2 + rw [derivative_hermiteJensenPolynomial, eval_mul] + rw [show (hermiteJensenPolynomial d gamma).eval r = 0 from hr.1, mul_zero] + +end RealRooted diff --git a/RealRooted/Hermite/Companions.lean b/RealRooted/Hermite/Companions.lean new file mode 100644 index 000000000..ebf893475 --- /dev/null +++ b/RealRooted/Hermite/Companions.lean @@ -0,0 +1,180 @@ +module + +public import RealRooted.Hermite.FiniteTransfer +public import Mathlib.RingTheory.Polynomial.Pochhammer +import RealRooted.MultiplierSequence.InvPochhammer +import RealRooted.MultiplierSequence.PolyaSchur +import RealRooted.Mathlib.Algebra.Polynomial.Reverse + +/-! +# Weighted Hermite companions + +A finite multiplier sequence can be applied to the reflected Jensen input +before the Hermite transform. This includes the reciprocal-factorial companion +following Corollary 3.8 of Cormac O'Sullivan, *Zeros of Jensen polynomials and +asymptotics for the Riemann xi function*, https://arxiv.org/abs/2007.13582. +Reciprocal rising factorials give a further parameterized family. +-/ + +@[expose] public section + +open Polynomial + +namespace RealRooted + +/-- A Hermite Jensen polynomial with a weight on the Hermite index. -/ +noncomputable def hermiteCompanion (d : ℕ) (gamma weight : ℕ → ℝ) : ℝ[X] := + hermiteJensenPolynomial d (fun k => gamma k * weight (d - k)) + +/-- The reciprocal-factorial Hermite companion. -/ +noncomputable def hermiteFactorialPolynomial (d : ℕ) (gamma : ℕ → ℝ) : ℝ[X] := + hermiteCompanion d gamma (fun k => (k.factorial : ℝ)⁻¹) + +/-- The reciprocal rising-factorial Hermite companion with parameter `a`. -/ +noncomputable def hermitePochhammerPolynomial (d : ℕ) (gamma : ℕ → ℝ) (a : ℝ) : ℝ[X] := + hermiteCompanion d gamma (fun k => ((ascPochhammer ℝ k).eval a)⁻¹) + +/-- The degree-zero companion is the product of the initial coefficients. -/ +@[simp] theorem hermiteCompanion_zero (gamma weight : ℕ → ℝ) : + hermiteCompanion 0 gamma weight = C (gamma 0 * weight 0) := by + simp [hermiteCompanion, hermiteJensenPolynomial] + +/-- Reflection turns a weight on the Hermite index into an ordinary diagonal operator. -/ +theorem reflect_jensenPolynomial_weight (d : ℕ) (gamma weight : ℕ → ℝ) : + reflect d (jensenPolynomial d (fun k => gamma k * weight (d - k))) = + diagonalOperator weight (reflect d (jensenPolynomial d gamma)) := by + ext k + simp only [coeff_diagonalOperator, coeff_reflect] + by_cases hk : k ≤ d + · rw [revAt_le hk] + simp [coeff_jensenPolynomial, Nat.sub_sub_self hk] + ring + · rw [revAt_eq_self_of_lt (lt_of_not_ge hk)] + simp [coeff_jensenPolynomial, hk] + +/-- A weighted companion is a diagonal operator followed by the Hermite transform. -/ +theorem hermiteCompanion_eq_basisTransform (d : ℕ) (gamma weight : ℕ → ℝ) : + hermiteCompanion d gamma weight = + basisTransform hermitePhysicists + (diagonalOperator weight (reflect d (jensenPolynomial d gamma))) := by + rw [hermiteCompanion, hermiteJensenPolynomial_eq_basisTransform, + reflect_jensenPolynomial_weight] + +/-- Finite multiplier weights preserve splitting of the Hermite companion, +including zero inputs and weights with zero entries. -/ +theorem hermiteCompanion_splits {d : ℕ} {gamma weight : ℕ → ℝ} + (hweight : IsFiniteMultiplierSequence d weight) + (hp : (jensenPolynomial d gamma).Splits) : + (hermiteCompanion d gamma weight).Splits := by + rw [hermiteCompanion_eq_basisTransform] + apply splits_hermiteBasisTransform + have hdeg : (reflect d (jensenPolynomial d gamma)).natDegree ≤ d := + natDegree_reflect_le.trans (max_eq_left (natDegree_jensenPolynomial_le d gamma)).le + rcases hweight hdeg (hp.reflect (natDegree_jensenPolynomial_le d gamma)) with hz | hs + · simp [hz] + · exact hs + +/-- A weighted companion is simple-real-rooted whenever its transformed +input is nonzero and the finite multiplier hypothesis holds. -/ +theorem isSimpleRealRooted_hermiteCompanion {d : ℕ} {gamma weight : ℕ → ℝ} + (hweight : IsFiniteMultiplierSequence d weight) + (hp : (jensenPolynomial d gamma).Splits) + (hne : diagonalOperator weight (reflect d (jensenPolynomial d gamma)) ≠ 0) : + IsSimpleRealRooted (hermiteCompanion d gamma weight) := by + rw [hermiteCompanion_eq_basisTransform] + apply isSimpleRealRooted_hermiteBasisTransform _ hne + have hdeg : (reflect d (jensenPolynomial d gamma)).natDegree ≤ d := + natDegree_reflect_le.trans (max_eq_left (natDegree_jensenPolynomial_le d gamma)).le + exact (hweight hdeg (hp.reflect (natDegree_jensenPolynomial_le d gamma))).resolve_left hne + +/-- Weights nonzero through the relevant degree cannot annihilate a nonzero input. -/ +theorem isSimpleRealRooted_hermiteCompanion_of_nonzero + {d : ℕ} {gamma weight : ℕ → ℝ} (hweight : IsFiniteMultiplierSequence d weight) + (hp : (jensenPolynomial d gamma).Splits) (hp0 : jensenPolynomial d gamma ≠ 0) + (hw0 : ∀ k ≤ d, weight k ≠ 0) : + IsSimpleRealRooted (hermiteCompanion d gamma weight) := by + apply isSimpleRealRooted_hermiteCompanion hweight hp + intro hz + apply hp0 + apply (reflect_eq_zero_iff (N := d)).mp + ext k + by_cases hk : k ≤ d + · have h := congrArg (fun p : ℝ[X] => p.coeff k) hz + simpa only [coeff_diagonalOperator, coeff_zero, mul_eq_zero, + hw0 k hk, false_or] using h + · have hdeg : (reflect d (jensenPolynomial d gamma)).natDegree ≤ d := + natDegree_reflect_le.trans (max_eq_left (natDegree_jensenPolynomial_le d gamma)).le + rw [coeff_eq_zero_of_natDegree_lt (hdeg.trans_lt (lt_of_not_ge hk)), coeff_zero] + +/-- Nonzero top weight and initial coefficient suffice for simple real roots; +other entries of the finite multiplier sequence may vanish. -/ +theorem isSimpleRealRooted_hermiteCompanion_of_coeff_zero + {d : ℕ} {gamma weight : ℕ → ℝ} (hweight : IsFiniteMultiplierSequence d weight) + (hp : (jensenPolynomial d gamma).Splits) (hgamma : gamma 0 ≠ 0) + (hw : weight d ≠ 0) : IsSimpleRealRooted (hermiteCompanion d gamma weight) := by + apply isSimpleRealRooted_hermiteCompanion hweight hp + intro hz + have h := congrArg (fun p : ℝ[X] => p.coeff d) hz + simp only [coeff_diagonalOperator, coeff_reflect, revAt_le le_rfl, Nat.sub_self, + coeff_jensenPolynomial, Nat.zero_le, ite_true, Nat.choose_zero_right, + Nat.cast_one, one_mul, coeff_zero] at h + exact mul_ne_zero hw hgamma h + +/-- Nonvanishing of the leading weighted coefficient makes the degree exact. -/ +theorem natDegree_hermiteCompanion {d : ℕ} {gamma weight : ℕ → ℝ} + (hgamma : gamma 0 ≠ 0) (hweight : weight d ≠ 0) : + (hermiteCompanion d gamma weight).natDegree = d := + natDegree_hermiteJensenPolynomial (by simpa using mul_ne_zero hgamma hweight) + +/-- The leading coefficient of a degree-exact weighted companion. -/ +theorem leadingCoeff_hermiteCompanion {d : ℕ} {gamma weight : ℕ → ℝ} + (hgamma : gamma 0 ≠ 0) (hweight : weight d ≠ 0) : + (hermiteCompanion d gamma weight).leadingCoeff = gamma 0 * weight d * 2 ^ d := by + simpa [hermiteCompanion] using leadingCoeff_hermiteJensenPolynomial (d := d) + (gamma := fun k => gamma k * weight (d - k)) (by simpa using mul_ne_zero hgamma hweight) + +/-- The factorial companion is exactly the finite sum with denominator `(d-k)!`. -/ +theorem hermiteFactorialPolynomial_eq_sum (d : ℕ) (gamma : ℕ → ℝ) : + hermiteFactorialPolynomial d gamma = + ∑ k ∈ Finset.range (d + 1), + C ((d.choose k : ℝ) * gamma k / (d - k).factorial) * hermitePhysicists (d - k) := by + simp only [hermiteFactorialPolynomial, hermiteCompanion, hermiteJensenPolynomial, + div_eq_mul_inv, mul_assoc] + +/-- Parameter one recovers the reciprocal-factorial companion. -/ +@[simp] theorem hermitePochhammerPolynomial_one (d : ℕ) (gamma : ℕ → ℝ) : + hermitePochhammerPolynomial d gamma 1 = hermiteFactorialPolynomial d gamma := by + simp [hermitePochhammerPolynomial, hermiteFactorialPolynomial, ascPochhammer_eval_one] + +/-- The reciprocal-factorial companion preserves splitting at a fixed degree. -/ +theorem hermiteFactorialPolynomial_splits {d : ℕ} {gamma : ℕ → ℝ} + (hp : (jensenPolynomial d gamma).Splits) : + (hermiteFactorialPolynomial d gamma).Splits := + hermiteCompanion_splits (isMultiplierSequence_inv_factorial.finite d) hp + +/-- A nonzero split Jensen input gives a factorial companion with simple real roots. -/ +theorem isSimpleRealRooted_hermiteFactorialPolynomial {d : ℕ} {gamma : ℕ → ℝ} + (hp : (jensenPolynomial d gamma).Splits) (hp0 : jensenPolynomial d gamma ≠ 0) : + IsSimpleRealRooted (hermiteFactorialPolynomial d gamma) := + isSimpleRealRooted_hermiteCompanion_of_nonzero + (isMultiplierSequence_inv_factorial.finite d) hp hp0 (fun k _ => by positivity) + +/-- Positive rising-factorial parameters give a finite splitting-preserving companion. -/ +theorem hermitePochhammerPolynomial_splits {d : ℕ} {gamma : ℕ → ℝ} {a : ℝ} + (ha : 0 < a) (hp : (jensenPolynomial d gamma).Splits) : + (hermitePochhammerPolynomial d gamma a).Splits := + hermiteCompanion_splits + ((isPFMultiplierSequence_iff_multiplierSequence_and_nonneg.mp + (isPFMultiplierSequence_inv_ascPochhammer ha)).1.finite d) hp + +/-- Positive rising-factorial parameters give simple roots for every nonzero split input. -/ +theorem isSimpleRealRooted_hermitePochhammerPolynomial {d : ℕ} {gamma : ℕ → ℝ} {a : ℝ} + (ha : 0 < a) (hp : (jensenPolynomial d gamma).Splits) + (hp0 : jensenPolynomial d gamma ≠ 0) : + IsSimpleRealRooted (hermitePochhammerPolynomial d gamma a) := + isSimpleRealRooted_hermiteCompanion_of_nonzero + ((isPFMultiplierSequence_iff_multiplierSequence_and_nonneg.mp + (isPFMultiplierSequence_inv_ascPochhammer ha)).1.finite d) hp hp0 + (fun k _ => inv_ne_zero (ascPochhammer_pos k a ha).ne') + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/HermiteCompanions.lean b/RealRooted/RiemannHypothesis/HermiteCompanions.lean new file mode 100644 index 000000000..81857a04c --- /dev/null +++ b/RealRooted/RiemannHypothesis/HermiteCompanions.lean @@ -0,0 +1,90 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.Hermite.Companions +import RealRooted.RiemannHypothesis +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity +import RealRooted.MultiplierSequence.InvPochhammer +import RealRooted.MultiplierSequence.PolyaSchur + +/-! +# Xi Hermite companions under RH + +Finite multiplier weights give further simple real-rooted Hermite families +under Mathlib's RH. The factorial family specializes the companion following +O'Sullivan's Corollary 3.8; positive Pochhammer parameters give a derived family. +-/ + +@[expose] public section + +open Polynomial + +namespace RealRooted + +/-- A weighted Hermite companion for a shift of the normalized xi coefficients. -/ +noncomputable def riemannXiHermiteCompanion (d n : ℕ) (weight : ℕ → ℝ) : ℝ[X] := + hermiteCompanion d (fun k => riemannXiCoeff (n + k)) weight + +/-- The factorial-weighted xi Hermite companion. -/ +noncomputable def riemannXiHermiteFactorial (d n : ℕ) : ℝ[X] := + hermiteFactorialPolynomial d (fun k => riemannXiCoeff (n + k)) + +/-- The rising-factorial-weighted xi Hermite companion. -/ +noncomputable def riemannXiHermitePochhammer (d n : ℕ) (a : ℝ) : ℝ[X] := + hermitePochhammerPolynomial d (fun k => riemannXiCoeff (n + k)) a + +/-- RH gives splitting for every finite multiplier weight, allowing vanishing entries. -/ +theorem riemannXiHermiteCompanion_splits (hRH : RiemannHypothesis) + (d n : ℕ) {weight : ℕ → ℝ} (hweight : IsFiniteMultiplierSequence d weight) : + (riemannXiHermiteCompanion d n weight).Splits := + hermiteCompanion_splits hweight (riemannXiJensenPolynomial_splits hRH d n) + +/-- A nonzero final weight makes an RH xi Hermite companion simple-real-rooted. -/ +theorem isSimpleRealRooted_riemannXiHermiteCompanion + (hRH : RiemannHypothesis) (d n : ℕ) {weight : ℕ → ℝ} + (hweight : IsFiniteMultiplierSequence d weight) (hw : weight d ≠ 0) : + IsSimpleRealRooted (riemannXiHermiteCompanion d n weight) := by + apply isSimpleRealRooted_hermiteCompanion_of_coeff_zero hweight + (riemannXiJensenPolynomial_splits hRH d n) _ hw + simpa using (riemannXiCoeff_pos n).ne' + +/-- Nonzero final weight gives exact degree independently of RH. -/ +theorem natDegree_riemannXiHermiteCompanion (d n : ℕ) {weight : ℕ → ℝ} + (hw : weight d ≠ 0) : (riemannXiHermiteCompanion d n weight).natDegree = d := by + apply natDegree_hermiteCompanion _ hw + simpa using (riemannXiCoeff_pos n).ne' + +/-- The leading coefficient is controlled by the final weight, independently of RH. -/ +theorem leadingCoeff_riemannXiHermiteCompanion (d n : ℕ) {weight : ℕ → ℝ} + (hw : weight d ≠ 0) : + (riemannXiHermiteCompanion d n weight).leadingCoeff = riemannXiCoeff n * weight d * 2 ^ d := by + simpa [riemannXiHermiteCompanion] using leadingCoeff_hermiteCompanion (d := d) + (gamma := fun k => riemannXiCoeff (n + k)) (by simpa using (riemannXiCoeff_pos n).ne') hw + +/-- RH implies simple real roots for every factorial-weighted xi Hermite companion. -/ +theorem isSimpleRealRooted_riemannXiHermiteFactorial + (hRH : RiemannHypothesis) (d n : ℕ) : + IsSimpleRealRooted (riemannXiHermiteFactorial d n) := + isSimpleRealRooted_riemannXiHermiteCompanion hRH d n + (isMultiplierSequence_inv_factorial.finite d) (by positivity) + +/-- Every factorial-weighted xi Hermite companion has exact degree without RH. -/ +theorem natDegree_riemannXiHermiteFactorial (d n : ℕ) : + (riemannXiHermiteFactorial d n).natDegree = d := + natDegree_riemannXiHermiteCompanion d n (by positivity) + +/-- RH gives simple roots for every positive Pochhammer parameter and every shift. -/ +theorem isSimpleRealRooted_riemannXiHermitePochhammer + (hRH : RiemannHypothesis) (d n : ℕ) {a : ℝ} (ha : 0 < a) : + IsSimpleRealRooted (riemannXiHermitePochhammer d n a) := + isSimpleRealRooted_riemannXiHermiteCompanion hRH d n + ((isPFMultiplierSequence_iff_multiplierSequence_and_nonneg.mp + (isPFMultiplierSequence_inv_ascPochhammer ha)).1.finite d) + (inv_ne_zero (ascPochhammer_pos d a ha).ne') + +/-- Positive Pochhammer parameters give exact degree independently of RH. -/ +theorem natDegree_riemannXiHermitePochhammer (d n : ℕ) {a : ℝ} (ha : 0 < a) : + (riemannXiHermitePochhammer d n a).natDegree = d := + natDegree_riemannXiHermiteCompanion d n (inv_ne_zero (ascPochhammer_pos d a ha).ne') + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/HermiteInterlacing.lean b/RealRooted/RiemannHypothesis/HermiteInterlacing.lean new file mode 100644 index 000000000..8434f6e90 --- /dev/null +++ b/RealRooted/RiemannHypothesis/HermiteInterlacing.lean @@ -0,0 +1,43 @@ +module + +public import RealRooted.RiemannHypothesis.HermiteSimple +import RealRooted.Hermite.Appell + +/-! +# Consecutive xi Hermite polynomials + +The Appell identity preserves the xi coefficient shift. Under RH, adjacent +degree rows interlace and share no root. The separate no-common-root assertion +is essential because the project's `StrictInterl` permits coincident roots. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Differentiation lowers the degree and leaves the xi coefficient shift fixed. -/ +theorem derivative_riemannXiHermitePolynomial (d n : ℕ) : + (riemannXiHermitePolynomial (d + 1) n).derivative = + C (2 * (d + 1 : ℝ)) * riemannXiHermitePolynomial d n := + derivative_hermiteJensenPolynomial d (fun k => riemannXiCoeff (n + k)) + +/-- Under RH, consecutive fixed-shift Hermite rows interlace, including the +constant-to-linear endpoint. -/ +theorem riemannXiHermitePolynomial_strictInterl + (hRH : RiemannHypothesis) (d n : ℕ) : + StrictInterl (riemannXiHermitePolynomial d n) (riemannXiHermitePolynomial (d + 1) n) := by + apply hermiteJensenPolynomial_strictInterl (riemannXiHermitePolynomial_splits hRH (d + 1) n) + have h0 := riemannXiHermitePolynomial_ne_zero 0 n + simpa [riemannXiHermitePolynomial, hermiteJensenPolynomial] using h0 + +/-- Adjacent fixed-shift Hermite rows have disjoint real zero sets under RH. -/ +theorem riemannXiHermitePolynomial_no_common_root + (hRH : RiemannHypothesis) (d n : ℕ) (r : ℝ) : + ¬ ((riemannXiHermitePolynomial d n).IsRoot r ∧ + (riemannXiHermitePolynomial (d + 1) n).IsRoot r) := + hermiteJensenPolynomial_no_common_root + (isSimpleRealRooted_riemannXiHermitePolynomial hRH (d + 1) n).2.2 r + +end RealRooted From e6d99e7166f0d0573d90755d21b02663a68e4420 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 15:15:17 +0000 Subject: [PATCH 12/56] feat: prove multiplicity descent for differential symbols --- RealRooted/Hermite/PoulainSimple.lean | 107 ++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 RealRooted/Hermite/PoulainSimple.lean diff --git a/RealRooted/Hermite/PoulainSimple.lean b/RealRooted/Hermite/PoulainSimple.lean new file mode 100644 index 000000000..f6f298db6 --- /dev/null +++ b/RealRooted/Hermite/PoulainSimple.lean @@ -0,0 +1,107 @@ +module + +public import RealRooted.Hermite.Poulain +public import RealRooted.SimpleRoots +public import RealRooted.IteratedDerivativeShift +import RealRooted.Hermite.PoulainSymbolInterlacing + +/-! +# Multiplicity descent for finite differential symbols + +A real-rooted symbol with nonzero constant coefficient preserves degree. +Every multiple output root gains one unit of multiplicity in the input for +each linear symbol factor. Consequently a symbol of degree at least `d - 1` +makes every nonzero real-rooted degree-`d` input simple-real-rooted. + +This is the finite-polynomial multiplicity argument underlying Lemma 4.2 of +Craven and Csordas, *Differential operators of infinite order and the +distribution of zeros of entire functions* (1994). The nonzero constant term +excludes annihilation and is explicit here. +-/ + +public section + +open Polynomial + +namespace RealRooted.HermitePoulain + +/-- A nonzero real symbol root gives an invertible scalar times a derivative shift. -/ +theorem applyAsDifferentialOperator_X_sub_C {r : ℝ} (hr : r ≠ 0) (p : ℝ[X]) : + applyAsDifferentialOperator (X - C r) p = C (-r) * tDeriv r⁻¹ p := by + rw [sub_eq_add_neg, ← map_neg, applyAsDifferentialOperator_X_add_C, tDeriv] + rw [mul_sub, ← mul_assoc, ← C_mul] + simp [hr] + ring + +/-- Products of nonzero real symbol factors preserve splitting and trace +multiple roots backward through every factor. -/ +private theorem root_product_operator_data (s : Multiset ℝ) + (hs : ∀ r ∈ s, r ≠ 0) {p : ℝ[X]} (hp0 : p ≠ 0) (hp : p.Splits) : + let F := applyAsDifferentialOperator (s.map (fun r => X - C r)).prod p + F ≠ 0 ∧ F.Splits ∧ ∀ x, 2 ≤ F.rootMultiplicity x → + p.rootMultiplicity x = F.rootMultiplicity x + s.card := by + induction s using Multiset.induction_on with + | empty => simp [hp0, hp] + | @cons r s ih => + have hr : r ≠ 0 := hs r (by simp) + have htail : ∀ u ∈ s, u ≠ 0 := fun u hu => hs u (Multiset.mem_cons_of_mem hu) + obtain ⟨hF0, hFs, hFm⟩ := ih htail + simp only [Multiset.map_cons, Multiset.prod_cons, applyAsDifferentialOperator_mul, + applyAsDifferentialOperator_X_sub_C hr] + refine ⟨mul_ne_zero (C_ne_zero.mpr (neg_ne_zero.mpr hr)) (tDeriv_ne_zero hF0), + (splits_tDeriv_all hFs).C_mul _, ?_⟩ + intro x hm + rw [rootMultiplicity_C_mul (neg_ne_zero.mpr hr)] at hm ⊢ + have hback := rootMultiplicity_eq_succ_of_tDeriv_ge_two_of_ne (inv_ne_zero hr) hFs hm + have hlarge : 2 ≤ + (applyAsDifferentialOperator (s.map (fun r => X - C r)).prod p).rootMultiplicity x := by + lia + have hprev := hFm x hlarge + simp only [Multiset.card_cons] + lia + +/-- A multiple root of a differential image gains the symbol degree in +multiplicity when traced back to the splitting input. -/ +theorem rootMultiplicity_operator_eq_add_natDegree {q p : ℝ[X]} + (hq : q.Splits) (hq0 : q.coeff 0 ≠ 0) (hp0 : p ≠ 0) (hp : p.Splits) + {x : ℝ} (hm : 2 ≤ (applyAsDifferentialOperator q p).rootMultiplicity x) : + p.rootMultiplicity x = (applyAsDifferentialOperator q p).rootMultiplicity x + q.natDegree := by + have hqne : q ≠ 0 := by intro hz; simp [hz] at hq0 + have hlc : q.leadingCoeff ≠ 0 := leadingCoeff_ne_zero.mpr hqne + have hroots : ∀ r ∈ q.roots, r ≠ 0 := by + intro r hr hz + subst r + apply hq0 + rw [coeff_zero_eq_eval_zero] + exact (mem_roots hqne).mp hr + have heq : applyAsDifferentialOperator q p = + C q.leadingCoeff * + applyAsDifferentialOperator (q.roots.map (fun r => X - C r)).prod p := by + conv_lhs => rw [hq.eq_prod_roots] + exact applyAsDifferentialOperator_C_mul _ _ _ + rw [heq, rootMultiplicity_C_mul hlc] at hm ⊢ + rw [hq.natDegree_eq_card_roots] + exact (root_product_operator_data q.roots hroots hp0 hp).2.2 x hm + +/-- A real-rooted symbol with nonzero constant term and sufficiently many +roots makes every nonzero split input simple-real-rooted. -/ +theorem isSimpleRealRooted_applyAsDifferentialOperator {q p : ℝ[X]} + (hq : q.Splits) (hq0 : q.coeff 0 ≠ 0) (hp0 : p ≠ 0) (hp : p.Splits) + (hdegree : p.natDegree - 1 ≤ q.natDegree) : + IsSimpleRealRooted (applyAsDifferentialOperator q p) := by + have hqne : q ≠ 0 := by intro hz; simp [hz] at hq0 + have hF0 : applyAsDifferentialOperator q p ≠ 0 := by + apply leadingCoeff_ne_zero.mp + rw [leadingCoeff_applyAsDifferentialOperator hq0 hp0] + exact mul_ne_zero hq0 (leadingCoeff_ne_zero.mpr hp0) + refine ⟨hF0, (applyAsDifferentialOperator_eq_zero_or_splits + ⟨hqne, hq⟩ ⟨hp0, hp⟩).resolve_left hF0, ?_⟩ + intro x hx + have hpos := (rootMultiplicity_pos hF0).mpr hx + by_contra hnot + have hm : 2 ≤ (applyAsDifferentialOperator q p).rootMultiplicity x := by lia + have hback := rootMultiplicity_operator_eq_add_natDegree hq hq0 hp0 hp hm + have hbound := rootMultiplicity_le_natDegree p x + lia + +end RealRooted.HermitePoulain From a0e7a297bc16c93e65eb96b383589db159881d75 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 15:07:49 +0000 Subject: [PATCH 13/56] feat: add a fixed-auxiliary Laguerre counterexample --- .../AuxiliaryCounterexample.lean | 126 ++++++++++++++++++ .../AuxiliaryQuartic.lean | 114 ++++++++++++++++ .../IteratedDeriv/CompPowCoefficient.lean | 36 +++++ 3 files changed, 276 insertions(+) create mode 100644 RealRooted/LaguerreInequalities/AuxiliaryCounterexample.lean create mode 100644 RealRooted/LaguerreInequalities/AuxiliaryQuartic.lean create mode 100644 RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/CompPowCoefficient.lean diff --git a/RealRooted/LaguerreInequalities/AuxiliaryCounterexample.lean b/RealRooted/LaguerreInequalities/AuxiliaryCounterexample.lean new file mode 100644 index 000000000..1fa2a21b1 --- /dev/null +++ b/RealRooted/LaguerreInequalities/AuxiliaryCounterexample.lean @@ -0,0 +1,126 @@ +module + +public import RealRooted.LaguerreInequalities.AuxiliaryQuartic +public import RealRooted.LaguerreInequalities.Analytic +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.CompPowCoefficient +import Mathlib.Analysis.Complex.TaylorSeries + +/-! +# A counterexample to the fixed-auxiliary converse without a growth hypothesis + +For `p = X^4 + 4` and `f(z) = exp (-z^4)`, every Taylor coefficient of +`∏ j, f(x + α_j t)` is nonnegative at every real `x`, although `f` is not +Laguerre--Pólya. The actual coefficients are calculated by complex differentiation. + +This is a newly derived counterexample to the fixed-auxiliary formulation of +Csordas--Vishnyakova, *The generalized Laguerre inequalities and functions in the +Laguerre--Pólya class* (2013), Conjecture 3.6, p.1649, +https://doi.org/10.2478/s11533-013-0269-x. +It does not contradict their Theorem 3.5 or Cardon's original Theorem 2.1: +those statements impose an additional genus/growth restriction. Nor does it +address a condition requiring positivity for every admissible auxiliary. +-/ + +@[expose] public section + +open Complex Polynomial +open scoped ComplexConjugate + +noncomputable section + +namespace RealRooted + +/-- The explicit real Taylor coefficients of the translated quartic product. -/ +def quarticTranslateCoefficient (x : ℝ) (n : ℕ) : ℝ := + if 4 ∣ n then Real.exp (-4 * x ^ 4) * 16 ^ (n / 4) / (n / 4).factorial else 0 + +private theorem iteratedDeriv_exp_quartic_zero (c : ℂ) (n : ℕ) : + iteratedDeriv n (fun z : ℂ => exp (c * z ^ 4)) 0 = + if 4 ∣ n then (n.factorial : ℂ) * (c ^ (n / 4) / (n / 4).factorial) else 0 := by + have ha : AnalyticAt ℂ (fun z : ℂ => exp (c * z)) 0 := by fun_prop + simpa only [iteratedDeriv_cexp_const_mul, mul_zero, exp_zero, mul_one] using + iteratedDeriv_comp_pow_zero_eq ha (by norm_num : 0 < 4) n + +/-- The explicit coefficients are the actual Taylor coefficients of the entire +translated product, including its zero coefficients. -/ +theorem iteratedDeriv_quarticTranslateProduct_zero (x : ℝ) (n : ℕ) : + iteratedDeriv n (quarticTranslateProduct x) 0 / (n.factorial : ℂ) = + (quarticTranslateCoefficient x n : ℂ) := by + have hp : quarticTranslateProduct x = fun t => exp (-4 * (x : ℂ) ^ 4) * + exp (16 * t ^ 4) := funext (quarticTranslateProduct_eq x) + have hx : exp (-4 * (x : ℂ) ^ 4) = (Real.exp (-4 * x ^ 4) : ℂ) := by + simp only [Complex.ofReal_exp, ofReal_mul, ofReal_neg, ofReal_ofNat, ofReal_pow] + rw [hp, iteratedDeriv_const_mul_field, iteratedDeriv_exp_quartic_zero, hx] + have hn : (n.factorial : ℂ) ≠ 0 := Nat.cast_ne_zero.mpr n.factorial_ne_zero + by_cases h : 4 ∣ n + · simp only [h, ite_eq_left, quarticTranslateCoefficient, ofReal_div, ofReal_mul, + ofReal_pow, ofReal_ofNat, ofReal_natCast] + field_simp + · simp [h, quarticTranslateCoefficient] + +/-- Every coefficient of the translated quartic product is nonnegative for every +real center, exactly as required by the fixed-auxiliary converse. -/ +theorem quarticTranslateCoefficient_nonneg (x : ℝ) (n : ℕ) : + 0 ≤ quarticTranslateCoefficient x n := by + unfold quarticTranslateCoefficient + split_ifs <;> positivity + +/-- The nonnegative coefficients give a convergent Taylor expansion at every +complex value of the translation parameter. -/ +theorem hasSum_quarticTranslateCoefficient (x : ℝ) (t : ℂ) : + HasSum (fun n => (quarticTranslateCoefficient x n : ℂ) * t ^ n) + (quarticTranslateProduct x t) := by + convert Complex.hasSum_taylorSeries_of_entire + (differentiable_quarticTranslateProduct x) 0 t using 1 + ext n + rw [← iteratedDeriv_quarticTranslateProduct_zero] + simp only [sub_zero, smul_eq_mul, div_eq_mul_inv] + ring + +/-- The standard second generalized Laguerre coefficient of `exp (-z^4)` +is negative at the origin. -/ +theorem laguerreCoefficient_quarticDecay_two : laguerreCoefficient quarticDecay 0 2 = -2 := by + have hp : laguerreProduct quarticDecay 0 = fun z : ℂ => exp (-2 * z ^ 4) := by + funext z + simp only [laguerreProduct, quarticDecay, ofReal_zero, zero_add, zero_sub, + ← Complex.exp_add] + congr 1 + calc + _ = -2 * z ^ 4 * I ^ 4 := by ring + _ = _ := by rw [Complex.I_pow_four]; ring + rw [laguerreCoefficient, hp, iteratedDeriv_exp_quartic_zero] + norm_num + +/-- The quartic exponential is outside the Laguerre--Pólya class, even though +it is real entire, zero-free, and passes every quartic-auxiliary inequality. -/ +theorem not_isLaguerrePolya_quarticDecay : ¬ IsLaguerrePolya quarticDecay := by + intro h + have hn := h.laguerreCoefficient_nonneg 0 2 + rw [laguerreCoefficient_quarticDecay_two] at hn + norm_num at hn + +/-- A fully quantified counterexample to the fixed-auxiliary converse for an +arbitrary nonzero real entire function. The auxiliary is monic, even, has +nonnegative real coefficients and a nonreal zero; every actual Taylor coefficient +of its translated product is a nonnegative real number. -/ +theorem exists_auxiliary_nonneg_not_isLaguerrePolya : + ∃ (p : ℝ[X]) (α : Fin 4 → ℂ) (f : ℂ → ℂ), + p.Monic ∧ HasNonnegCoeffs p ∧ p.comp (-X) = p ∧ + p.map ofRealHom = ∏ j : Fin 4, (X + C (α j)) ∧ + (∃ z : ℂ, (p.map ofRealHom).eval z = 0 ∧ z.im ≠ 0) ∧ + Differentiable ℂ f ∧ (∀ z, f (conj z) = conj (f z)) ∧ (∀ z, f z ≠ 0) ∧ + (∀ (x : ℝ) (k : ℕ), ∃ a : ℝ, 0 ≤ a ∧ + iteratedDeriv k (fun t : ℂ => ∏ j : Fin 4, f (x + α j * t)) 0 / + (k.factorial : ℂ) = (a : ℂ)) ∧ ¬ IsLaguerrePolya f := by + refine ⟨quarticAuxiliary, quarticSlope, quarticDecay, monic_quarticAuxiliary, + hasNonnegCoeffs_quarticAuxiliary, quarticAuxiliary_comp_neg_X, + map_quarticAuxiliary, ⟨1 + I, quarticAuxiliary_nonreal_zero⟩, + differentiable_quarticDecay, quarticDecay_conj, quarticDecay_ne_zero, ?_, + not_isLaguerrePolya_quarticDecay⟩ + intro x k + exact ⟨quarticTranslateCoefficient x k, quarticTranslateCoefficient_nonneg x k, + iteratedDeriv_quarticTranslateProduct_zero x k⟩ + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/AuxiliaryQuartic.lean b/RealRooted/LaguerreInequalities/AuxiliaryQuartic.lean new file mode 100644 index 000000000..0333940e7 --- /dev/null +++ b/RealRooted/LaguerreInequalities/AuxiliaryQuartic.lean @@ -0,0 +1,114 @@ +module + +public import RealRooted.Basic.Coefficients +public import Mathlib.Analysis.Complex.Exponential +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.Analysis.Calculus.FDeriv.Defs +import Mathlib.Analysis.SpecialFunctions.ExpDeriv + +/-! +# A quartic auxiliary polynomial and its translated exponential product + +The even monic polynomial `X^4 + 4` has nonnegative coefficients and nonreal +zeros. Its four slopes cancel the first three mixed powers in the translated +product of `exp (-z^4)`. These are the algebraic ingredients of the counterexample +in `LaguerreInequalities.AuxiliaryCounterexample`. +-/ + +@[expose] public section + +open Complex Polynomial +open scoped ComplexConjugate + +noncomputable section + +namespace RealRooted + +/-- The even quartic auxiliary polynomial `X^4 + 4`. -/ +def quarticAuxiliary : ℝ[X] := X ^ 4 + C 4 + +/-- The four slopes in the factorization of `X^4 + 4`. -/ +def quarticSlope : Fin 4 → ℂ := ![1 + I, 1 - I, -1 + I, -1 - I] + +/-- A real entire zero-free function outside the Laguerre--Pólya class. -/ +def quarticDecay (z : ℂ) : ℂ := exp (-(z ^ 4)) + +/-- The translated product associated to the four quartic slopes. -/ +def quarticTranslateProduct (x t : ℂ) : ℂ := + ∏ j : Fin 4, quarticDecay (x + quarticSlope j * t) + +/-- All coefficients of the quartic auxiliary polynomial are nonnegative. -/ +theorem hasNonnegCoeffs_quarticAuxiliary : HasNonnegCoeffs quarticAuxiliary := + (hasNonnegCoeffs_X.pow 4).add (hasNonnegCoeffs_C (by norm_num)) + +/-- The quartic auxiliary is even as a polynomial, not merely on the real axis. -/ +theorem quarticAuxiliary_comp_neg_X : quarticAuxiliary.comp (-X) = quarticAuxiliary := by + simp only [quarticAuxiliary, add_comp, pow_comp, X_comp, C_comp] + ring + +/-- The quartic auxiliary is monic. -/ +theorem monic_quarticAuxiliary : quarticAuxiliary.Monic := by + exact monic_X_pow_add_C 4 (by norm_num) + +private theorem four_linear_factors {R : Type*} [CommRing R] (z i : R) + (hi : i ^ 2 = -1) : + (z + (1 + i)) * (z + (1 - i)) * (z + (-1 + i)) * (z + (-1 - i)) = + z ^ 4 + 4 := by + calc + _ = z ^ 4 - 2 * z ^ 2 * i ^ 2 - 2 * z ^ 2 + (i ^ 2) ^ 2 - 2 * i ^ 2 + 1 := by + ring + _ = _ := by rw [hi]; ring + +/-- The displayed slopes give the complete monic factorization over the complex numbers. -/ +theorem map_quarticAuxiliary : + quarticAuxiliary.map ofRealHom = ∏ j : Fin 4, (X + C (quarticSlope j)) := by + rw [Fin.prod_univ_four] + simp only [quarticAuxiliary, Polynomial.map_add, Polynomial.map_pow, map_X, + quarticSlope, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val, + map_ofNat] + convert (four_linear_factors (X : ℂ[X]) (C I) ?_).symm using 1 <;> + simp [map_add, map_sub, map_neg, map_one, ← map_pow] + +/-- The auxiliary polynomial has a nonreal zero, as required in Cardon's criterion. -/ +theorem quarticAuxiliary_nonreal_zero : + (quarticAuxiliary.map ofRealHom).eval (1 + I) = 0 ∧ (1 + I).im ≠ 0 := by + constructor + · rw [map_quarticAuxiliary, Fin.prod_univ_four] + simp only [eval_mul, eval_add, eval_X, eval_C, quarticSlope, + Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val] + ring + · simp + +/-- The quartic exponential is entire. -/ +theorem differentiable_quarticDecay : Differentiable ℂ quarticDecay := by + unfold quarticDecay + fun_prop + +/-- The quartic exponential is real entire, expressed by conjugation symmetry. -/ +theorem quarticDecay_conj (z : ℂ) : quarticDecay (conj z) = conj (quarticDecay z) := by + simp [quarticDecay, ← Complex.exp_conj] + +/-- The quartic exponential has no zeros, so in particular is not the zero function. -/ +theorem quarticDecay_ne_zero (z : ℂ) : quarticDecay z ≠ 0 := Complex.exp_ne_zero _ + +/-- The four translated quartic exponentials have a particularly simple product. -/ +theorem quarticTranslateProduct_eq (x t : ℂ) : + quarticTranslateProduct x t = exp (-4 * x ^ 4) * exp (16 * t ^ 4) := by + simp only [quarticTranslateProduct, Fin.prod_univ_four, quarticSlope, + Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val, + quarticDecay, ← Complex.exp_add] + congr 1 + calc + _ = -4 * x ^ 4 - 24 * x ^ 2 * t ^ 2 * (1 + I ^ 2) - + 4 * t ^ 4 * (1 + 6 * I ^ 2 + (I ^ 2) ^ 2) := by ring + _ = _ := by rw [Complex.I_sq]; ring + +/-- The translated quartic product is entire in the translation parameter. -/ +theorem differentiable_quarticTranslateProduct (x : ℂ) : + Differentiable ℂ (quarticTranslateProduct x) := by + have h : quarticTranslateProduct x = fun t => + exp (-4 * x ^ 4) * exp (16 * t ^ 4) := funext (quarticTranslateProduct_eq x) + rw [h] + fun_prop + +end RealRooted diff --git a/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/CompPowCoefficient.lean b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/CompPowCoefficient.lean new file mode 100644 index 000000000..0817fdb2a --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/CompPowCoefficient.lean @@ -0,0 +1,36 @@ +/- +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 TauCeti.Analysis.Analytic.OfScalars + +/-! +# All Taylor coefficients after a power substitution + +Substitution of `z ^ m` inserts zero coefficients outside the multiples of `m`. +-/ + +public section + +/-- The complete Taylor coefficient formula for substitution of a positive power, +including the coefficients whose indices are not divisible by that power. -/ +theorem iteratedDeriv_comp_pow_zero_eq {𝕜 : Type*} [NontriviallyNormedField 𝕜] + [CompleteSpace 𝕜] [CharZero 𝕜] {f : 𝕜 → 𝕜} (hf : AnalyticAt 𝕜 f 0) + {m : ℕ} (hm : 0 < m) (n : ℕ) : + iteratedDeriv n (fun z => f (z ^ m)) 0 = + if m ∣ n then (n.factorial : 𝕜) * + (iteratedDeriv (n / m) f 0 / (n / m).factorial) else 0 := by + obtain ⟨r, hr⟩ := hf.hasFPowerSeriesAt + have hc := (hr.mono (lt_min hr.r_pos zero_lt_one) (min_le_left r 1)).comp_pow_ofScalars + (min_le_right r 1) hm + have h := hc.factorial_smul (1 : 𝕜) n + simp only [FormalMultilinearSeries.apply_eq_prod_smul_coeff, Finset.prod_const, + Finset.card_univ, Fintype.card_fin, one_pow, one_smul, + FormalMultilinearSeries.coeff_ofScalars, nsmul_eq_mul] at h + rw [← iteratedDeriv_eq_iteratedFDeriv] at h + rw [← h] + split_ifs <;> simp From 2dfeebcf0db975e9ddcc1169638fb0c1276e14c9 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 15:28:30 +0000 Subject: [PATCH 14/56] feat: integrate Hermite companions and auxiliary criteria --- RealRooted.lean | 8 ++++++++ RealRooted/Hermite/Appell.lean | 4 +++- RealRooted/Hermite/Companions.lean | 5 ++++- RealRooted/Hermite/PoulainSimple.lean | 2 +- RealRooted/Production.lean | 9 +++++++++ RealRooted/RiemannHypothesis/HermiteInterlacing.lean | 3 ++- scripts/import_architecture.json | 4 ++-- scripts/mathlib_shims.json | 10 ++++++++++ 8 files changed, 39 insertions(+), 6 deletions(-) diff --git a/RealRooted.lean b/RealRooted.lean index 4109062a4..e3c2bf826 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2475,3 +2475,11 @@ public import RealRooted.RiemannHypothesis.HermiteSimple public import RealRooted.BrandenLC.Sequence public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogConcavity public import RealRooted.RiemannHypothesis.LogConcavity +public import RealRooted.Hermite.Companions +public import RealRooted.Hermite.Appell +public import RealRooted.RiemannHypothesis.HermiteCompanions +public import RealRooted.RiemannHypothesis.HermiteInterlacing +public import RealRooted.Hermite.PoulainSimple +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.CompPowCoefficient +public import RealRooted.LaguerreInequalities.AuxiliaryQuartic +public import RealRooted.LaguerreInequalities.AuxiliaryCounterexample diff --git a/RealRooted/Hermite/Appell.lean b/RealRooted/Hermite/Appell.lean index d5ab21201..801477c5c 100644 --- a/RealRooted/Hermite/Appell.lean +++ b/RealRooted/Hermite/Appell.lean @@ -1,6 +1,8 @@ module -public import RealRooted.Hermite.FiniteTransfer +public import RealRooted.Hermite.Jensen +public import RealRooted.SimpleRoots +import RealRooted.Hermite.FiniteTransfer import RealRooted.Derivative.Interlacing /-! diff --git a/RealRooted/Hermite/Companions.lean b/RealRooted/Hermite/Companions.lean index ebf893475..e445f95e3 100644 --- a/RealRooted/Hermite/Companions.lean +++ b/RealRooted/Hermite/Companions.lean @@ -1,7 +1,10 @@ module -public import RealRooted.Hermite.FiniteTransfer +public import RealRooted.Mathlib.Algebra.Polynomial.BasisTransform +public import RealRooted.Hermite.Jensen +public import RealRooted.SimpleRoots public import Mathlib.RingTheory.Polynomial.Pochhammer +import RealRooted.Hermite.FiniteTransfer import RealRooted.MultiplierSequence.InvPochhammer import RealRooted.MultiplierSequence.PolyaSchur import RealRooted.Mathlib.Algebra.Polynomial.Reverse diff --git a/RealRooted/Hermite/PoulainSimple.lean b/RealRooted/Hermite/PoulainSimple.lean index f6f298db6..462b165c3 100644 --- a/RealRooted/Hermite/PoulainSimple.lean +++ b/RealRooted/Hermite/PoulainSimple.lean @@ -1,7 +1,7 @@ module public import RealRooted.Hermite.Poulain -public import RealRooted.SimpleRoots +import RealRooted.SimpleRoots public import RealRooted.IteratedDerivativeShift import RealRooted.Hermite.PoulainSymbolInterlacing diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index 889ef61df..a3c96a41c 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2401,6 +2401,15 @@ public import RealRooted.BrandenLC.Sequence public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogConcavity public import RealRooted.RiemannHypothesis.LogConcavity +public import RealRooted.Hermite.Companions +public import RealRooted.Hermite.Appell +public import RealRooted.RiemannHypothesis.HermiteCompanions +public import RealRooted.RiemannHypothesis.HermiteInterlacing +public import RealRooted.Hermite.PoulainSimple +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.CompPowCoefficient +public import RealRooted.LaguerreInequalities.AuxiliaryQuartic +public import RealRooted.LaguerreInequalities.AuxiliaryCounterexample + /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/HermiteInterlacing.lean b/RealRooted/RiemannHypothesis/HermiteInterlacing.lean index 8434f6e90..cc07faa2c 100644 --- a/RealRooted/RiemannHypothesis/HermiteInterlacing.lean +++ b/RealRooted/RiemannHypothesis/HermiteInterlacing.lean @@ -1,6 +1,7 @@ module -public import RealRooted.RiemannHypothesis.HermiteSimple +public import RealRooted.RiemannHypothesis.Hermite +import RealRooted.RiemannHypothesis.HermiteSimple import RealRooted.Hermite.Appell /-! diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index 5a5bc1eed..487e99f10 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2465 + "max_modules": 2473 }, "RealRooted.Production": { - "max_modules": 2393 + "max_modules": 2401 }, "RealRooted.Tactic.Examples": { "max_modules": 844 diff --git a/scripts/mathlib_shims.json b/scripts/mathlib_shims.json index acfa62531..4a758fa09 100644 --- a/scripts/mathlib_shims.json +++ b/scripts/mathlib_shims.json @@ -3809,6 +3809,16 @@ ], "note": "Entire xi derivatives retain growth bounds and are nonzero at the origin; no upstream PR yet.", "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/CompPowCoefficient.lean" + ], + "modules": [ + "Mathlib.Analysis.Calculus.IteratedDeriv.CompPowCoefficient" + ], + "note": "All Taylor coefficients under a positive power substitution, including nondivisible indices.", + "speculative": true } ] } From fc16870a9340b548c096b6c36c6f3fc37f095f9f 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 15:25:13 +0000 Subject: [PATCH 15/56] feat: prove simple roots of ordinary RH Jensen polynomials --- .../LaguerrePolya/JensenSimple.lean | 89 ++++++++++++ .../LaguerrePolya/OperatorProduct.lean | 124 ++++++++++++++++ .../LaguerrePolya/PolynomialFactors.lean | 135 ++++++++++++++++++ .../RiemannHypothesis/JensenSimple.lean | 83 +++++++++++ 4 files changed, 431 insertions(+) create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorProduct.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PolynomialFactors.lean create mode 100644 RealRooted/RiemannHypothesis/JensenSimple.lean diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean new file mode 100644 index 000000000..030f934be --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean @@ -0,0 +1,89 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import RealRooted.SimpleRoots +public import TauCeti.Analysis.Complex.GrowthOrder +import RealRooted.Hermite.PoulainSimple +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PolynomialFactors +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Algebra.Polynomial.Reverse +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Simple Jensen roots below order one + +A nonpolynomial Laguerre–Pólya symbol of order below one and nonzero at zero +strictly regularizes every nonzero real-rooted polynomial. Its Jensen +polynomials consequently have simple roots. This is a growth-restricted +instance of the corrected Craven–Csordas (1994) Proposition 4.1 argument. +-/ + +public section + +open Polynomial Complex RealRooted.HermitePoulain + +namespace RealRooted + +/-- A nonpolynomial LP symbol of order below one strictly regularizes every +nonzero real-rooted polynomial through its Taylor differential operator. -/ +theorem IsLaguerrePolya.simple_taylorDifferentialOperator {f : ℂ → ℂ} {rho : ℝ} + (hf : IsLaguerrePolya f) (horder : TauCeti.OrderLE f rho) (hrho : rho < 1) + (hf0 : f 0 ≠ 0) (hnp : ∀ q : ℂ[X], f ≠ fun z => q.eval z) + {p : ℝ[X]} (hp0 : p ≠ 0) (hp : p.Splits) : + IsSimpleRealRooted (taylorDifferentialOperator f p) := by + have hfn : f ≠ 0 := fun h => hf0 (by simp [h]) + obtain ⟨q, g, hq, hq0, hdegree, hg, hg0, hfactor⟩ := + exists_polynomial_factor_of_order_lt_one horder hrho hf.differentiable hf0 hf.conj + (fun z hz => hf.im_eq_zero_of_eq_zero hfn hz) hnp (p.natDegree - 1) + have hgre : (g 0).re ≠ 0 := by + intro hz + have hreal := ofReal_re_iteratedDeriv_zero hg.conj 0 + simp only [iteratedDeriv_zero, hz, ofReal_zero] at hreal + exact hg0 hreal.symm + rw [show f = (fun z => (q.map ofRealHom).eval z * g z) from funext hfactor, + taylorDifferentialOperator_polynomial_mul hg.differentiable] + apply isSimpleRealRooted_applyAsDifferentialOperator hq hq0 + (taylorDifferentialOperator_ne_zero hgre hp0) (hg.taylorDifferentialOperator_splits hp) + rwa [natDegree_taylorDifferentialOperator hgre hp0] + +/-- Simple roots of a degree-reflection transfer back when the original has +nonzero constant coefficient, even if the reflection bound exceeds its degree. -/ +private theorem simple_of_reflect {p : ℝ[X]} {d : ℕ} + (hp0 : p.coeff 0 ≠ 0) (hp : p.Splits) (hd : p.natDegree ≤ d) + (hsimple : HasSimpleRoots (reflect d p)) : HasSimpleRoots p := by + have hpne : p ≠ 0 := by intro hz; simp [hz] at hp0 + have hrev : p.reverse ≠ 0 := fun h => hpne (reverse_eq_zero.mp h) + have hroots := hsimple.roots_nodup + rw [reflect_eq_X_pow_mul_reverse p hd, + roots_mul (mul_ne_zero (pow_ne_zero _ X_ne_zero) hrev)] at hroots + have hnodup := (Multiset.nodup_add.mp hroots).2.1 + rw [roots_reverse_eq_map_inv hp hp0] at hnodup + exact HasSimpleRoots.of_roots_nodup hpne + ((Multiset.nodup_map_iff_of_injective inv_injective).mp hnodup) + +/-- Every Jensen polynomial of a nonpolynomial LP symbol of order below one +and nonzero initial coefficient has simple real roots. The final coefficient +may vanish, so no exact-degree hypothesis is imposed. -/ +theorem IsLaguerrePolya.simple_jensenPolynomial {f : ℂ → ℂ} {rho : ℝ} + (hf : IsLaguerrePolya f) (horder : TauCeti.OrderLE f rho) (hrho : rho < 1) + (hf0 : f 0 ≠ 0) (hnp : ∀ q : ℂ[X], f ≠ fun z => q.eval z) (d : ℕ) : + IsSimpleRealRooted (jensenPolynomial d (fun k => (iteratedDeriv k f 0).re)) := by + have hsimple := hf.simple_taylorDifferentialOperator horder hrho hf0 hnp + (pow_ne_zero d X_ne_zero) (Splits.X.pow d) + rw [taylorDifferentialOperator_X_pow] at hsimple + have hconst : (jensenPolynomial d (fun k => (iteratedDeriv k f 0).re)).coeff 0 ≠ 0 := by + simp only [coeff_jensenPolynomial, Nat.zero_le, ite_true, Nat.choose_zero_right, + Nat.cast_one, one_mul, iteratedDeriv_zero] + intro hz + have hreal := ofReal_re_iteratedDeriv_zero hf.conj 0 + simp only [iteratedDeriv_zero, hz, ofReal_zero] at hreal + exact hf0 hreal.symm + refine ⟨?_, hf.jensenPolynomial_splits d, + simple_of_reflect hconst (hf.jensenPolynomial_splits d) + (natDegree_jensenPolynomial_le d _) hsimple.2.2⟩ + intro hz + exact hconst (by simp [hz]) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorProduct.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorProduct.lean new file mode 100644 index 000000000..329cc0c48 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorProduct.lean @@ -0,0 +1,124 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +public import RealRooted.Hermite.Poulain +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas +import Mathlib.Analysis.Complex.Polynomial.Basic + +/-! +# Polynomial factors of Taylor differential operators + +Multiplication of an entire symbol by a real polynomial corresponds to +composition with its finite constant-coefficient differential operator. +-/ + +public section + +open Polynomial Complex RealRooted.HermitePoulain + +namespace RealRooted + +/-- Taylor differential operators are additive in entire symbols. -/ +theorem taylorDifferentialOperator_add {f g : ℂ → ℂ} + (hf : Differentiable ℂ f) (hg : Differentiable ℂ g) (p : ℝ[X]) : + taylorDifferentialOperator (fun z => f z + g z) p = + taylorDifferentialOperator f p + taylorDifferentialOperator g p := by + have hd (k : ℕ) : iteratedDeriv k (fun z => f z + g z) 0 = + iteratedDeriv k f 0 + iteratedDeriv k g 0 := + iteratedDeriv_fun_add hf.contDiff.contDiffAt hg.contDiff.contDiffAt + simp only [taylorDifferentialOperator, hd, add_div, Complex.add_re, map_add, + add_mul, Finset.sum_add_distrib] + +/-- A real scalar on the symbol becomes the same scalar on the polynomial output. -/ +theorem taylorDifferentialOperator_real_mul (a : ℝ) (f : ℂ → ℂ) (p : ℝ[X]) : + taylorDifferentialOperator (fun z => (a : ℂ) * f z) p = + C a * taylorDifferentialOperator f p := by + simp only [taylorDifferentialOperator, iteratedDeriv_const_mul_field, + mul_div_assoc, re_ofReal_mul, map_mul, Finset.mul_sum, mul_assoc] + +/-- Multiplication of the symbol by its variable shifts its Taylor coefficients. -/ +private theorem iteratedDeriv_mul_id_zero {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (k : ℕ) : + iteratedDeriv (k + 1) (fun z => z * f z) 0 = (k + 1 : ℂ) * iteratedDeriv k f 0 := by + rw [iteratedDeriv_fun_mul (by fun_prop) hf.contDiff.contDiffAt] + simp [iteratedDeriv_fun_id_zero, mul_ite, ite_mul] + +/-- Multiplication of an entire symbol by its variable differentiates the output. -/ +theorem taylorDifferentialOperator_id_mul {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (p : ℝ[X]) : + taylorDifferentialOperator (fun z => z * f z) p = + (taylorDifferentialOperator f p).derivative := by + classical + have hcoef (k : ℕ) : + iteratedDeriv (k + 1) (fun z => z * f z) 0 / (k + 1).factorial = + iteratedDeriv k f 0 / k.factorial := by + rw [iteratedDeriv_mul_id_zero hf, Nat.factorial_succ] + push_cast + field_simp + rw [taylorDifferentialOperator, Finset.sum_range_succ', taylorDifferentialOperator, + map_sum, Finset.sum_range_succ] + simp only [iteratedDeriv_zero, zero_mul, zero_div, zero_re, map_zero, + zero_mul, add_zero, hcoef, derivative_C_mul, ← Function.iterate_succ_apply'] + rw [iterate_derivative_eq_zero (Nat.lt_succ_self p.natDegree)] + simp + +/-- Polynomial factors of an entire symbol act by composition of differential operators. -/ +theorem taylorDifferentialOperator_polynomial_mul {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (q p : ℝ[X]) : + taylorDifferentialOperator (fun z => (q.map ofRealHom).eval z * f z) p = + applyAsDifferentialOperator q (taylorDifferentialOperator f p) := by + induction q using Polynomial.induction_on with + | C a => + simpa [applyAsDifferentialOperator_C] using taylorDifferentialOperator_real_mul a f p + | add q r ihq ihr => + have heq : (fun z => ((q + r).map ofRealHom).eval z * f z) = + fun z => (q.map ofRealHom).eval z * f z + (r.map ofRealHom).eval z * f z := by + funext z + simp [Polynomial.map_add, eval_add, add_mul] + rw [heq, taylorDifferentialOperator_add (by fun_prop) (by fun_prop), ihq, ihr, + applyAsDifferentialOperator_add] + | monomial n a ih => + rw [show C a * X ^ (n + 1) = X * (C a * X ^ n) by ring, + applyAsDifferentialOperator_X_mul] + have heq : (fun z => ((X * (C a * X ^ n)).map ofRealHom).eval z * f z) = + fun z => z * (((C a * X ^ n).map ofRealHom).eval z * f z) := by + funext z + simp [Polynomial.map_mul, eval_mul, mul_assoc] + rw [heq, taylorDifferentialOperator_id_mul (by fun_prop), ih] + +/-- A Taylor differential operator cannot increase the input degree. -/ +theorem natDegree_taylorDifferentialOperator_le (f : ℂ → ℂ) (p : ℝ[X]) : + (taylorDifferentialOperator f p).natDegree ≤ p.natDegree := by + apply natDegree_sum_le_of_forall_le + intro k _ + exact (natDegree_C_mul_le _ _).trans + ((natDegree_iterate_derivative p k).trans (Nat.sub_le _ _)) + +/-- Only the constant Taylor coefficient contributes to the top input degree. -/ +theorem coeff_taylorDifferentialOperator_natDegree (f : ℂ → ℂ) (p : ℝ[X]) : + (taylorDifferentialOperator f p).coeff p.natDegree = (f 0).re * p.leadingCoeff := by + rw [taylorDifferentialOperator, finsetSum_coeff, Finset.sum_eq_single 0] + · simp [coeff_natDegree] + · intro k _ hk + rw [coeff_C_mul, coeff_iterate_derivative, + coeff_eq_zero_of_natDegree_lt (Nat.lt_add_of_pos_right (Nat.pos_of_ne_zero hk))] + simp + · simp + +/-- A nonzero real constant Taylor coefficient prevents annihilation of any nonzero input. -/ +theorem taylorDifferentialOperator_ne_zero {f : ℂ → ℂ} {p : ℝ[X]} + (hf : (f 0).re ≠ 0) (hp : p ≠ 0) : taylorDifferentialOperator f p ≠ 0 := by + intro hz + have h := congrArg (fun q : ℝ[X] => q.coeff p.natDegree) hz + rw [coeff_taylorDifferentialOperator_natDegree, coeff_zero] at h + exact mul_ne_zero hf (leadingCoeff_ne_zero.mpr hp) h + +/-- A nonzero real constant Taylor coefficient preserves the exact input degree. -/ +theorem natDegree_taylorDifferentialOperator {f : ℂ → ℂ} {p : ℝ[X]} + (hf : (f 0).re ≠ 0) (hp : p ≠ 0) : + (taylorDifferentialOperator f p).natDegree = p.natDegree := + natDegree_eq_of_le_of_coeff_ne_zero (natDegree_taylorDifferentialOperator_le f p) + (by rw [coeff_taylorDifferentialOperator_natDegree]; + exact mul_ne_zero hf (leadingCoeff_ne_zero.mpr hp)) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PolynomialFactors.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PolynomialFactors.lean new file mode 100644 index 000000000..37f3e8a70 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PolynomialFactors.lean @@ -0,0 +1,135 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import TauCeti.Analysis.Complex.GrowthOrder +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Hadamard +import TauCeti.Analysis.Complex.GrowthOrder.Exponential +import TauCeti.Analysis.Complex.GrowthOrder.Zero.Factorization + +/-! +# Large polynomial factors of real entire functions + +A nonpolynomial real entire function of order below one and having only real +zeros has real-rooted polynomial factors of arbitrarily large degree. Removing +these factors leaves a Laguerre–Pólya cofactor. Nonvanishing at the origin keeps +the factors and cofactor nonzero there. +-/ + +public section + +open Complex Polynomial +open scoped ComplexConjugate + +namespace RealRooted + +/-- A zero-free entire function of order below one is constant, hence polynomial. -/ +private theorem exists_zero_of_nonpolynomial {f : ℂ → ℂ} {rho : ℝ} + (horder : TauCeti.OrderLE f rho) (hrho : rho < 1) (hf : Differentiable ℂ f) + (hnp : ∀ p : ℂ[X], f ≠ fun z => p.eval z) : ∃ z, f z = 0 := by + by_contra hno + have hnz : ∀ z, f z ≠ 0 := by simpa using hno + obtain ⟨p, hp, heq⟩ := horder.exists_eq_cexp_polynomial_eval_of_forall_ne_zero hf hnz + have hdegree : p.natDegree = 0 := by + rw [Nat.floor_eq_zero.mpr hrho] at hp + exact Nat.eq_zero_of_le_zero hp + apply hnp (C (exp (p.coeff 0))) + funext z + have h := heq z + rw [eq_C_of_natDegree_eq_zero hdegree, eval_C] at h + simpa only [eval_C] using h + +/-- Conjugation symmetry descends through a power of a real linear factor. -/ +private theorem conj_of_real_factor {f g : ℂ → ℂ} {r : ℝ} {m : ℕ} + (hg : Continuous g) (hf : ∀ z, f (conj z) = conj (f z)) + (hfactor : ∀ z, f z = (z - r) ^ m * g z) : + ∀ z, g (conj z) = conj (g z) := by + have heq : (fun z => g (conj z)) = fun z => conj (g z) := by + apply Continuous.ext_on (dense_compl_singleton (r : ℂ)) + (hg.comp continuous_conj) (continuous_conj.comp hg) + intro z hz + have hzr : z ≠ (r : ℂ) := by simpa using hz + have hconjne : conj z - (r : ℂ) ≠ 0 := by + intro hzero + have h := congrArg conj (sub_eq_zero.mp hzero) + exact hzr (by simpa using h) + have h := hf z + rw [hfactor, hfactor] at h + simp only [map_mul, map_pow, map_sub, conj_ofReal] at h + exact mul_left_cancel₀ (pow_ne_zero _ hconjne) h + exact fun z => congrFun heq z + +/-- Remove a full real zero while preserving all hypotheses needed for further extraction. -/ +private theorem exists_real_root_factor {f : ℂ → ℂ} {rho : ℝ} + (horder : TauCeti.OrderLE f rho) (hrho : rho < 1) (hf : Differentiable ℂ f) + (hf0 : f 0 ≠ 0) (hconj : ∀ z, f (conj z) = conj (f z)) + (hzeros : ∀ z, f z = 0 → z.im = 0) + (hnp : ∀ p : ℂ[X], f ≠ fun z => p.eval z) : + ∃ (r : ℝ) (m : ℕ) (g : ℂ → ℂ), r ≠ 0 ∧ 0 < m ∧ + Differentiable ℂ g ∧ g 0 ≠ 0 ∧ TauCeti.OrderLE g rho ∧ + (∀ z, g (conj z) = conj (g z)) ∧ (∀ z, g z = 0 → z.im = 0) ∧ + (∀ p : ℂ[X], g ≠ fun z => p.eval z) ∧ ∀ z, f z = (z - r) ^ m * g z := by + obtain ⟨z, hz⟩ := exists_zero_of_nonpolynomial horder hrho hf hnp + have hreal : (z.re : ℂ) = z := by + apply Complex.ext <;> simp [hzeros z hz] + have hr0 : z.re ≠ 0 := by + intro hr + have : z = 0 := by rw [← hreal, hr]; simp + exact hf0 (this ▸ hz) + obtain ⟨g, hg, hgroot, hgorder, hfactor⟩ := + horder.exists_eq_sub_pow_mul hf ⟨0, hf0⟩ (z.re : ℂ) + let m := analyticOrderNatAt f (z.re : ℂ) + have hm : 0 < m := by + by_contra h + have hm0 : m = 0 := by lia + have he := hfactor (z.re : ℂ) + change f (z.re : ℂ) = _ ^ m * _ at he + rw [hm0, pow_zero, one_mul, hreal, hz] at he + apply hgroot + rw [hreal] + exact he.symm + have hg0 : g 0 ≠ 0 := by + intro hzero + exact hf0 (by rw [hfactor, hzero, mul_zero]) + refine ⟨z.re, m, g, hr0, hm, hg, hg0, hgorder, + conj_of_real_factor hg.continuous hconj hfactor, ?_, ?_, hfactor⟩ + · intro w hw + exact hzeros w (by rw [hfactor, hw, mul_zero]) + · intro p hp + apply hnp ((X - C (z.re : ℂ)) ^ m * p) + funext w + rw [hfactor, hp] + simp [m] + +/-- A nonpolynomial real entire function of order below one with only real +zeros has arbitrarily large real-rooted polynomial factors and LP cofactors. -/ +theorem exists_polynomial_factor_of_order_lt_one {f : ℂ → ℂ} {rho : ℝ} + (horder : TauCeti.OrderLE f rho) (hrho : rho < 1) (hf : Differentiable ℂ f) + (hf0 : f 0 ≠ 0) (hconj : ∀ z, f (conj z) = conj (f z)) + (hzeros : ∀ z, f z = 0 → z.im = 0) + (hnp : ∀ p : ℂ[X], f ≠ fun z => p.eval z) (N : ℕ) : + ∃ (q : ℝ[X]) (g : ℂ → ℂ), q.Splits ∧ q.coeff 0 ≠ 0 ∧ N ≤ q.natDegree ∧ + IsLaguerrePolya g ∧ g 0 ≠ 0 ∧ ∀ z, f z = (q.map ofRealHom).eval z * g z := by + induction N generalizing f with + | zero => + refine ⟨1, f, Splits.one, by simp, Nat.zero_le _, + isLaguerrePolya_of_orderLE_one (horder.mono hrho.le) hf hf0 hconj hzeros, hf0, ?_⟩ + intro z + simp + | succ N ih => + obtain ⟨r, m, g, hr, hm, hg, hg0, hgorder, hgconj, hgzeros, hgnp, hfactor⟩ := + exists_real_root_factor horder hrho hf hf0 hconj hzeros hnp + obtain ⟨q, t, hq, hq0, hdegree, ht, ht0, hgt⟩ := + ih hgorder hg hg0 hgconj hgzeros hgnp + have hqne : q ≠ 0 := by intro hz; simp [hz] at hq0 + refine ⟨(X - C r) ^ m * q, t, ((Splits.X_sub_C r).pow m).mul hq, ?_, ?_, ht, ht0, ?_⟩ + · rw [coeff_zero_eq_eval_zero, eval_mul, eval_pow, eval_sub, eval_X, eval_C, + zero_sub, ← coeff_zero_eq_eval_zero] + exact mul_ne_zero (pow_ne_zero _ (neg_ne_zero.mpr hr)) hq0 + · rw [natDegree_mul (pow_ne_zero _ (X_sub_C_ne_zero r)) hqne, + natDegree_pow, natDegree_X_sub_C, mul_one] + lia + · intro z + rw [hfactor, hgt] + simp [Polynomial.map_mul, Polynomial.map_pow, Polynomial.map_sub, mul_assoc] + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/JensenSimple.lean b/RealRooted/RiemannHypothesis/JensenSimple.lean new file mode 100644 index 000000000..0c821c646 --- /dev/null +++ b/RealRooted/RiemannHypothesis/JensenSimple.lean @@ -0,0 +1,83 @@ +module + +public import RealRooted.RiemannHypothesis +public import RealRooted.SimpleRoots +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.JensenSimple +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import RealRooted.RiemannHypothesis.Inequalities + +/-! +# Simple roots of the ordinary xi Jensen polynomials + +Under Mathlib's RH, every ordinary normalized xi Jensen polynomial has simple +real roots. The argument uses the order-one-half bound for every derivative of +`riemannXiTheta`, unconditional nonpolynomiality, and finite differential-symbol +multiplicity descent. It asserts nothing about simplicity of xi's own zeros. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- Every derivative of the square-variable xi function is nonpolynomial, +because all its subsequent Taylor derivatives at zero are nonzero. -/ +theorem iteratedDeriv_riemannXiTheta_ne_polynomial (n : ℕ) (p : ℂ[X]) : + iteratedDeriv n riemannXiTheta ≠ fun z => p.eval z := by + intro hp + have h := congrArg (fun f : ℂ → ℂ => iteratedDeriv (p.natDegree + 1) f 0) hp + rw [Polynomial.iteratedDeriv_fun_eval, + iterate_derivative_eq_zero (Nat.lt_succ_self p.natDegree)] at h + simp only [eval_zero] at h + have heq : iteratedDeriv (p.natDegree + 1) (iteratedDeriv n riemannXiTheta) 0 = + iteratedDeriv (n + (p.natDegree + 1)) riemannXiTheta 0 := by + simp only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm] + rw [heq] at h + exact iteratedDeriv_riemannXiTheta_zero_ne_zero _ h + +/-- RH implies simple real roots for every ordinary xi Jensen polynomial, +in all degrees and all coefficient shifts, including constants. -/ +theorem isSimpleRealRooted_riemannXiJensenPolynomial + (hRH : RiemannHypothesis) (d n : ℕ) : + IsSimpleRealRooted (riemannXiJensenPolynomial d n) := by + have hf := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n + have hs := hf.simple_jensenPolynomial + (orderLE_half_riemannXiTheta.iteratedDeriv differentiable_riemannXiTheta n) + (by norm_num) (iteratedDeriv_riemannXiTheta_zero_ne_zero n) + (iteratedDeriv_riemannXiTheta_ne_polynomial n) d + simpa only [riemannXiJensenPolynomial, riemannXiCoeff, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm] using hs + +/-- Consecutive derivative-related xi Jensen rows have no common real root under RH. -/ +theorem riemannXiJensenPolynomial_shift_no_common_root + (hRH : RiemannHypothesis) (d n : ℕ) (r : ℝ) : + ¬ ((riemannXiJensenPolynomial d (n + 1)).IsRoot r ∧ + (riemannXiJensenPolynomial (d + 1) n).IsRoot r) := by + intro hr + have hs := (isSimpleRealRooted_riemannXiJensenPolynomial hRH (d + 1) n).2.2 + apply hs.eval_derivative_ne_zero hr.2 + rw [derivative_riemannXiJensenPolynomial, eval_mul, + show (riemannXiJensenPolynomial d (n + 1)).eval r = 0 from hr.1, mul_zero] + +/-- The unshifted ordinary Jensen family is simple-real-rooted exactly under RH. -/ +theorem riemannHypothesis_iff_simple_jensen_zero : + RiemannHypothesis ↔ ∀ d, IsSimpleRealRooted (riemannXiJensenPolynomial d 0) := by + constructor + · intro h d + exact isSimpleRealRooted_riemannXiJensenPolynomial h d 0 + · intro h + exact riemannHypothesis_iff_riemannXiJensenPolynomial_zero_splits.mpr + (fun d => (h d).2.1) + +/-- RH is equivalent to simple real-rootedness in every ordinary Jensen degree and shift. -/ +theorem riemannHypothesis_iff_simple_jensen : + RiemannHypothesis ↔ ∀ d n, IsSimpleRealRooted (riemannXiJensenPolynomial d n) := by + constructor + · exact isSimpleRealRooted_riemannXiJensenPolynomial + · intro h + exact riemannHypothesis_iff_simple_jensen_zero.mpr (fun d => h d 0) + +end RealRooted From 3c125a40850e4ba6a0879d87b527e72c4ed0e12c 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 15:21:26 +0000 Subject: [PATCH 16/56] feat: derive a supported Nevanlinna measure from Laguerre inequalities --- .../LaguerreInequalities/LogDerivative.lean | 113 ++++++++++++++++++ .../LaguerreInequalities/MeasureSupport.lean | 55 +++++++++ .../LaguerreInequalities/Nevanlinna.lean | 38 ++++++ .../Analysis/Calculus/LogDeriv/Star.lean | 37 ++++++ .../Analysis/Complex/Pick/Support.lean | 65 ++++++++++ 5 files changed, 308 insertions(+) create mode 100644 RealRooted/LaguerreInequalities/LogDerivative.lean create mode 100644 RealRooted/LaguerreInequalities/MeasureSupport.lean create mode 100644 RealRooted/LaguerreInequalities/Nevanlinna.lean create mode 100644 RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Star.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/Pick/Support.lean diff --git a/RealRooted/LaguerreInequalities/LogDerivative.lean b/RealRooted/LaguerreInequalities/LogDerivative.lean new file mode 100644 index 000000000..4463ed65b --- /dev/null +++ b/RealRooted/LaguerreInequalities/LogDerivative.lean @@ -0,0 +1,113 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +public import Mathlib.Analysis.Calculus.LogDeriv +public import Mathlib.Analysis.Complex.UpperHalfPlane.Basic +import RealRooted.LaguerreInequalities.RealZeros +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import Mathlib.Analysis.Complex.TaylorSeries + +/-! +# The Pick property from generalized Laguerre inequalities + +Nonnegative generalized Laguerre coefficients force the squared vertical modulus +to have nonnegative derivative in the upper half-plane. Consequently the negative +logarithmic derivative has nonnegative imaginary part. For a nonzero real entire +function it is holomorphic there, since the inequalities also force all zeros to +be real. No growth restriction is imposed. +-/ + +public section + +open Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- Every ordinary Taylor derivative of the Laguerre product has nonnegative real +part when all generalized Laguerre coefficients are nonnegative. Odd derivatives +vanish, and even derivatives are positive factorial multiples of those coefficients. -/ +theorem iteratedDeriv_laguerreProduct_re_nonneg {f : ℂ → ℂ} (x : ℝ) + (h : ∀ n, 0 ≤ laguerreCoefficient f x n) (n : ℕ) : + 0 ≤ (iteratedDeriv n (laguerreProduct f x) 0).re := by + rcases Nat.even_or_odd n with hn | hn + · obtain ⟨k, rfl⟩ := hn + have hk := h k + rw [laguerreCoefficient, two_mul] at hk + simpa only [zero_mul] using (le_div_iff₀ (by positivity)).mp hk + · rw [iteratedDeriv_laguerreProduct_odd f x hn] + simp + +/-- The vertical Laguerre product has nonnegative real derivative on the +nonnegative real axis, by its entire Taylor expansion. -/ +theorem re_deriv_laguerreProduct_nonneg {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (x : ℝ) (h : ∀ n, 0 ≤ laguerreCoefficient f x n) {y : ℝ} (hy : 0 ≤ y) : + 0 ≤ (deriv (laguerreProduct f x) y).re := by + have hd := (differentiable_laguerreProduct hf x).deriv + have hs := Complex.hasSum_re (Complex.hasSum_taylorSeries_of_entire hd 0 (y : ℂ)) + rw [← hs.tsum_eq] + apply tsum_nonneg + intro n + have hn := iteratedDeriv_laguerreProduct_re_nonneg x h (n + 1) + rw [iteratedDeriv_succ'] at hn + simp only [sub_zero, smul_eq_mul] + simp only [← Complex.ofReal_natCast, ← ofReal_inv, ← ofReal_pow, mul_re, + ofReal_re, ofReal_im, zero_mul, sub_zero] + exact mul_nonneg (inv_nonneg.mpr (Nat.cast_nonneg _)) (mul_nonneg (pow_nonneg hy n) hn) + +/-- The derivative of the vertical squared modulus is minus twice the imaginary +part of the derivative times the conjugate value. -/ +theorem re_deriv_laguerreProduct_eq {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (x y : ℝ) : + (deriv (laguerreProduct f x) y).re = + -2 * (deriv f ((x : ℂ) + y * I) * conj (f ((x : ℂ) + y * I))).im := by + have hp : HasDerivAt (fun z : ℂ => (x : ℂ) + z * I) I (y : ℂ) := by + simpa using ((hasDerivAt_id (y : ℂ)).mul_const I).const_add (x : ℂ) + have hm : HasDerivAt (fun z : ℂ => (x : ℂ) - z * I) (-I) (y : ℂ) := by + simpa using ((hasDerivAt_id (y : ℂ)).mul_const I).const_sub (x : ℂ) + have hd := ((hf _).hasDerivAt.comp (y : ℂ) hp).mul + ((hf _).hasDerivAt.comp (y : ℂ) hm) + have heq : (x : ℂ) - y * I = conj ((x : ℂ) + y * I) := by + simp [sub_eq_add_neg] + have hc' : deriv f (conj ((x : ℂ) + y * I)) = + conj (deriv f ((x : ℂ) + y * I)) := by + simpa only [iteratedDeriv_one] using iteratedDeriv_conj hc 1 ((x : ℂ) + y * I) + rw [show deriv (laguerreProduct f x) (y : ℂ) = _ from hd.deriv] + simp only [Function.comp_apply] + rw [heq, hc, hc'] + simp only [add_re, mul_re, mul_im, conj_re, conj_im, I_re, I_im, neg_re, neg_im] + ring + +/-- All generalized Laguerre inequalities imply the closed Pick inequality for +the negative logarithmic derivative. This includes real-axis zeros because the +logarithmic derivative uses totalized division there. -/ +theorem im_neg_logDeriv_nonneg_of_laguerreCoefficient_nonneg {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) {z : ℂ} (hz : 0 ≤ z.im) : + 0 ≤ (-logDeriv f z).im := by + have hd := re_deriv_laguerreProduct_nonneg hf z.re (h z.re) hz + rw [re_deriv_laguerreProduct_eq hf hc, re_add_im] at hd + rw [logDeriv_apply, neg_im, div_im, ← sub_div, ← neg_div] + apply div_nonneg _ (normSq_nonneg _) + simp only [mul_im, conj_re, conj_im] at hd + linarith + +/-- Under the generalized Laguerre inequalities, the negative logarithmic +derivative of a real entire function is holomorphic on the upper half-plane. +For the zero function the totalized logarithmic derivative is identically zero. -/ +theorem differentiableOn_neg_logDeriv_of_laguerreCoefficient_nonneg {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + DifferentiableOn ℂ (fun z => -logDeriv f z) UpperHalfPlane.upperHalfPlaneSet := by + by_cases hne : f = 0 + · subst f + simpa only [logDeriv_apply, deriv_zero, Pi.zero_apply, zero_div, neg_zero] using + (differentiable_const (0 : ℂ)).differentiableOn + intro z hz + have hfz : f z ≠ 0 := by + intro heq + have him := im_eq_zero_of_laguerreCoefficient_nonneg hf hc hne h heq + exact (ne_of_gt hz) him + exact ((hf.deriv z).div (hf z) hfz).neg.differentiableWithinAt + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/MeasureSupport.lean b/RealRooted/LaguerreInequalities/MeasureSupport.lean new file mode 100644 index 000000000..7aead91d4 --- /dev/null +++ b/RealRooted/LaguerreInequalities/MeasureSupport.lean @@ -0,0 +1,55 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +public import TauCeti.Analysis.Complex.Pick.Nevanlinna +public import Mathlib.MeasureTheory.Measure.Support +import RealRooted.LaguerreInequalities.Nevanlinna +import RealRooted.Mathlib.Analysis.Complex.Pick.Support +import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Star + +/-! +# Nevanlinna measures carried by real zeros + +The measure representing a real entire function's negative logarithmic derivative +is supported on its real zeros. In particular, all generalized Laguerre +inequalities provide such a finite measure without assuming a growth bound. +-/ + +public section + +open Complex MeasureTheory +open scoped ComplexConjugate + +namespace RealRooted + +/-- A finite Nevanlinna measure for the negative logarithmic derivative of a real +entire function is supported on its real zeros. -/ +theorem support_nevanlinna_neg_logDeriv_subset_zeros {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) + {ρ : Measure ℝ} [IsFiniteMeasure ρ] {b c : ℝ} + (hrep : ∀ z ∈ UpperHalfPlane.upperHalfPlaneSet, + -logDeriv f z = (b : ℂ) * z + ∫ x, TauCeti.nevanlinnaKernel z x ∂ρ + c) : + ρ.support ⊆ {x : ℝ | f x = 0} := by + apply TauCeti.support_subset_of_nevanlinna_of_analyticAt hrep + · intro r hr + exact ((hf.deriv.analyticAt r).div (hf.analyticAt r) hr).neg + · intro x + simp only [neg_im, logDeriv_ofReal_im hc, neg_zero] + +/-- Generalized Laguerre inequalities give a finite Nevanlinna representation +whose measure is carried by the actual real zero set of the function. -/ +theorem exists_nevanlinna_supported_on_zeros {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + ∃ (ρ : Measure ℝ) (b : ℝ), IsFiniteMeasure ρ ∧ 0 ≤ b ∧ + (∀ z ∈ UpperHalfPlane.upperHalfPlaneSet, + -logDeriv f z = (b : ℂ) * z + ∫ x, TauCeti.nevanlinnaKernel z x ∂ρ + + (-logDeriv f I).re) ∧ ρ.support ⊆ {x : ℝ | f x = 0} ∧ + ∀ᵐ (x : ℝ) ∂ρ, f x = 0 := by + obtain ⟨ρ, b, hρ, hb, hrep⟩ := + exists_nevanlinna_neg_logDeriv_of_laguerreCoefficient_nonneg hf hc h + let _ := hρ + have hs := support_nevanlinna_neg_logDeriv_subset_zeros hf hc hrep + exact ⟨ρ, b, hρ, hb, hrep, hs, Filter.mem_of_superset ρ.support_mem_ae hs⟩ + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/Nevanlinna.lean b/RealRooted/LaguerreInequalities/Nevanlinna.lean new file mode 100644 index 000000000..1b136f856 --- /dev/null +++ b/RealRooted/LaguerreInequalities/Nevanlinna.lean @@ -0,0 +1,38 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +public import TauCeti.Analysis.Complex.Pick.Nevanlinna +import RealRooted.LaguerreInequalities.LogDerivative + +/-! +# Nevanlinna representation from generalized Laguerre inequalities + +Every real entire function satisfying all generalized Laguerre inequalities has +a negative logarithmic derivative with a finite Nevanlinna representing measure. +This is an intermediate step toward the unrestricted converse in +Csordas--Vishnyakova (2013), Theorem 2.3. No order, genus, strict Pick inequality, +or nonvanishing value at the origin is assumed. +-/ + +public section + +open Complex MeasureTheory +open scoped ComplexConjugate + +namespace RealRooted + +/-- All generalized Laguerre inequalities give a finite Nevanlinna representation +of the negative logarithmic derivative. The closed Pick inequality allows zero +measure and zero linear coefficient, including constant and exponential cases. -/ +theorem exists_nevanlinna_neg_logDeriv_of_laguerreCoefficient_nonneg {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + ∃ (ρ : Measure ℝ) (b : ℝ), IsFiniteMeasure ρ ∧ 0 ≤ b ∧ + ∀ z ∈ UpperHalfPlane.upperHalfPlaneSet, + -logDeriv f z = (b : ℂ) * z + ∫ x, TauCeti.nevanlinnaKernel z x ∂ρ + + (-logDeriv f I).re := + TauCeti.exists_isFiniteMeasure_eq_nevanlinnaKernel_add + (differentiableOn_neg_logDeriv_of_laguerreCoefficient_nonneg hf hc h) + (fun _ hz => im_neg_logDeriv_nonneg_of_laguerreCoefficient_nonneg hf hc h hz.le) + +end RealRooted diff --git a/RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Star.lean b/RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Star.lean new file mode 100644 index 000000000..201dc843e --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Star.lean @@ -0,0 +1,37 @@ +/- +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.LogDeriv +public import Mathlib.Analysis.Complex.Basic +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Conjugation of logarithmic derivatives +-/ + +public section + +open scoped ComplexConjugate + +namespace Complex + +/-- The logarithmic derivative of a conjugation-compatible function respects +conjugation, including points where the value or derivative is zero. -/ +theorem logDeriv_conj {f : ℂ → ℂ} (hf : ∀ z, f (conj z) = conj (f z)) (z : ℂ) : + logDeriv f (conj z) = conj (logDeriv f z) := by + rw [logDeriv_apply, logDeriv_apply, map_div₀, hf] + congr 1 + simpa only [iteratedDeriv_one] using iteratedDeriv_conj hf 1 z + +/-- The logarithmic derivative of a conjugation-compatible function is real +on the real axis, with totalized division at zeros. -/ +theorem logDeriv_ofReal_im {f : ℂ → ℂ} (hf : ∀ z, f (conj z) = conj (f z)) (x : ℝ) : + (logDeriv f x).im = 0 := by + apply conj_eq_iff_im.mp + simpa using (logDeriv_conj hf (x : ℂ)).symm + +end Complex diff --git a/RealRooted/Mathlib/Analysis/Complex/Pick/Support.lean b/RealRooted/Mathlib/Analysis/Complex/Pick/Support.lean new file mode 100644 index 000000000..5dc5766e1 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/Pick/Support.lean @@ -0,0 +1,65 @@ +/- +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 TauCeti.Analysis.Complex.Pick.Nevanlinna +public import Mathlib.MeasureTheory.Measure.Support +import TauCeti.Analysis.Complex.Pick.Boundary + +/-! +# Support of Nevanlinna measures at real singularities + +Analytic continuation across a real boundary point, with real boundary values, +excludes that point from the support of the representing measure. +-/ + +public section + +open Complex Filter MeasureTheory Set Topology + +namespace TauCeti + +/-- A Nevanlinna measure has no support at a point where the represented function +extends analytically and is real on the real axis. -/ +theorem notMem_support_of_nevanlinna_of_analyticAt {F : ℂ → ℂ} {μ : Measure ℝ} + [IsFiniteMeasure μ] {b c r : ℝ} + (hrep : ∀ z ∈ UpperHalfPlane.upperHalfPlaneSet, + F z = (b : ℂ) * z + ∫ x, nevanlinnaKernel z x ∂μ + c) + (hF : AnalyticAt ℂ F (r : ℂ)) (hreal : ∀ x : ℝ, (F x).im = 0) : + r ∉ μ.support := by + obtain ⟨ε, hε, hball⟩ := hF.exists_ball_analyticOnNhd + have hδ : 0 < ε / 4 := by positivity + have hsub : (Icc (r - ε / 4) (r + ε / 4) ×ℂ Icc 0 (ε / 4) : Set ℂ) ⊆ + Metric.ball (r : ℂ) ε := by + intro z hz + rw [Metric.mem_ball, dist_eq] + apply lt_of_le_of_lt (norm_le_abs_re_add_abs_im _) + simp only [sub_re, ofReal_re, sub_im, ofReal_im, sub_zero] + have hx : |z.re - r| ≤ ε / 4 := abs_le.mpr ⟨by linarith [hz.1.1], + by linarith [hz.1.2]⟩ + rw [abs_of_nonneg hz.2.1] + linarith [hz.2.2] + have hcont : ContinuousOn (fun z => (F z).im) + (Icc (r - ε / 4) (r + ε / 4) ×ℂ Icc 0 (ε / 4)) := by + exact continuous_im.comp_continuousOn (hball.continuousOn.mono hsub) + have hzero := measure_Icc_eq_zero_of_eq_nevanlinnaKernel_add hrep + (by linarith : r - ε / 4 < r + ε / 4) hδ hcont (fun x _ => hreal x) + exact Measure.notMem_support_iff_exists.mpr + ⟨Icc (r - ε / 4) (r + ε / 4), Icc_mem_nhds (by linarith) (by linarith), hzero⟩ + +/-- The support of a Nevanlinna measure lies in any real exceptional set outside +which the represented function extends analytically with real boundary values. -/ +theorem support_subset_of_nevanlinna_of_analyticAt {F : ℂ → ℂ} {μ : Measure ℝ} + [IsFiniteMeasure μ] {b c : ℝ} {s : Set ℝ} + (hrep : ∀ z ∈ UpperHalfPlane.upperHalfPlaneSet, + F z = (b : ℂ) * z + ∫ x, nevanlinnaKernel z x ∂μ + c) + (hF : ∀ r ∉ s, AnalyticAt ℂ F (r : ℂ)) (hreal : ∀ x : ℝ, (F x).im = 0) : + μ.support ⊆ s := by + intro r hr + by_contra hrs + exact notMem_support_of_nevanlinna_of_analyticAt hrep (hF r hrs) hreal hr + +end TauCeti From 84dc921066046dec0d38260761e9e62c627de8fe 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 15:25:16 +0000 Subject: [PATCH 17/56] feat: recover atoms from Nevanlinna boundary limits --- .../Mathlib/Analysis/Complex/Pick/Atoms.lean | 133 ++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Complex/Pick/Atoms.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/Pick/Atoms.lean b/RealRooted/Mathlib/Analysis/Complex/Pick/Atoms.lean new file mode 100644 index 000000000..fc4f3c33f --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/Pick/Atoms.lean @@ -0,0 +1,133 @@ +/- +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 TauCeti.Analysis.Complex.Pick.Nevanlinna +import Mathlib.MeasureTheory.Integral.DominatedConvergence + +/-! +# Atoms of a Nevanlinna measure + +The vertical boundary limit of the imaginary part of a Nevanlinna integral +recovers the mass at a real point. Only finiteness of the measure is required; +its support may be arbitrary. +-/ + +public section + +open Complex Filter MeasureTheory Set Topology + +namespace TauCeti + +/-- The scaled imaginary kernel in real coordinates. -/ +private theorem mul_im_nevanlinnaKernel (r y x : ℝ) : + y * (nevanlinnaKernel ((r : ℂ) + (y : ℂ) * I) x).im = + y ^ 2 * (1 + x ^ 2) / ((x - r) ^ 2 + y ^ 2) := by + rw [nevanlinnaKernel_im] + simp only [add_im, ofReal_im, mul_im, ofReal_re, I_im, I_re, mul_one, mul_zero, + add_zero, zero_add, normSq_apply, sub_re, add_re, mul_re, zero_sub, sub_im] + ring + +/-- A constant bound for the scaled imaginary kernel near the real axis. -/ +private theorem norm_mul_im_nevanlinnaKernel_le (r x : ℝ) {y : ℝ} + (hy : 0 < y) (hy1 : y ≤ 1) : + ‖y * (nevanlinnaKernel ((r : ℂ) + (y : ℂ) * I) x).im‖ ≤ 4 + 2 * r ^ 2 := by + rw [mul_im_nevanlinnaKernel, Real.norm_of_nonneg (by positivity), + div_le_iff₀ (by positivity : 0 < (x - r) ^ 2 + y ^ 2)] + have hy2 : y ^ 2 ≤ 1 := by nlinarith + have hx2 : x ^ 2 ≤ 2 * (x - r) ^ 2 + 2 * r ^ 2 := by nlinarith [sq_nonneg (x - 2 * r)] + have hmul := mul_le_mul_of_nonneg_left hx2 (sq_nonneg y) + have hdrop := mul_le_mul_of_nonneg_left hy2 (sq_nonneg (x - r)) + nlinarith [mul_nonneg (sq_nonneg r) (sq_nonneg (x - r)), sq_nonneg (x - r)] + +/-- Away from its boundary point the scaled imaginary kernel tends to zero. -/ +private theorem tendsto_mul_im_nevanlinnaKernel (r x : ℝ) : + Tendsto (fun y : ℝ => y * (nevanlinnaKernel ((r : ℂ) + (y : ℂ) * I) x).im) + (𝓝[>] (0 : ℝ)) (𝓝 (if x = r then 1 + r ^ 2 else 0)) := by + simp only [mul_im_nevanlinnaKernel] + by_cases hx : x = r + · subst x + simp only [ite_true] + apply tendsto_const_nhds.congr' + filter_upwards [self_mem_nhdsWithin] with y hy + have hy0 : y ≠ 0 := ne_of_gt hy + simp [hy0] + · simp only [ite_eq_right hx] + have hden : (x - r) ^ 2 + (0 : ℝ) ^ 2 ≠ 0 := by + simpa using pow_ne_zero 2 (sub_ne_zero.mpr hx) + have h := (((tendsto_id : Tendsto (fun y : ℝ => y) (𝓝[>] (0 : ℝ)) + (𝓝[>] (0 : ℝ))).mono_right nhdsWithin_le_nhds).pow 2).mul_const (1 + x ^ 2) + have hd := (tendsto_const_nhds (x := (x - r) ^ 2)).add + (((tendsto_id : Tendsto (fun y : ℝ => y) (𝓝[>] (0 : ℝ)) + (𝓝[>] (0 : ℝ))).mono_right nhdsWithin_le_nhds).pow 2) + convert h.div hd hden using 1 + · ext y + rfl + · simp + +/-- The vertical imaginary-part boundary limit of a finite Nevanlinna integral +recovers its atom at the boundary point. -/ +theorem tendsto_mul_im_nevanlinna (mu : Measure ℝ) [IsFiniteMeasure mu] (r : ℝ) : + Tendsto (fun y : ℝ => y * + (∫ x, nevanlinnaKernel ((r : ℂ) + (y : ℂ) * I) x ∂mu).im) + (𝓝[>] (0 : ℝ)) (𝓝 ((1 + r ^ 2) * mu.real {r})) := by + have hlim := tendsto_integral_filter_of_norm_le_const + (μ := mu) (l := 𝓝[>] (0 : ℝ)) (F := fun y x : ℝ => y * + (nevanlinnaKernel ((r : ℂ) + (y : ℂ) * I) x).im) + (f := fun x : ℝ => if x = r then 1 + r ^ 2 else 0) ?_ ?_ ?_ + · have heq : (∫ x : ℝ, (if x = r then 1 + r ^ 2 else 0) ∂mu) = + (1 + r ^ 2) * mu.real {r} := by + have heqfun : (fun x : ℝ => if x = r then 1 + r ^ 2 else 0) = + Set.indicator {r} (fun _ : ℝ => 1 + r ^ 2) := by + ext x + by_cases hx : x = r + · simp [hx] + · simp [Set.indicator, hx] + rw [heqfun, integral_indicator (measurableSet_singleton r)] + simp [mul_comm, Measure.real] + rw [heq] at hlim + apply hlim.congr' + filter_upwards [self_mem_nhdsWithin] with y hy + have hmem : (r : ℂ) + (y : ℂ) * I ∈ UpperHalfPlane.upperHalfPlaneSet := by + simpa [UpperHalfPlane.upperHalfPlaneSet] using hy + have hint := integrable_nevanlinnaKernel hmem mu + rw [integral_const_mul] + congr 1 + simpa using Complex.imCLM.integral_comp_comm hint + · filter_upwards [self_mem_nhdsWithin] with y hy + have him : ((r : ℂ) + (y : ℂ) * I).im ≠ 0 := by simpa using ne_of_gt hy + exact (continuous_const.mul + (Complex.continuous_im.comp (continuous_nevanlinnaKernel him))).aestronglyMeasurable + · refine ⟨4 + 2 * r ^ 2, ?_⟩ + filter_upwards [self_mem_nhdsWithin, + nhdsWithin_le_nhds (eventually_lt_nhds (by norm_num : (0 : ℝ) < 1))] with y hy hy1 + exact Filter.Eventually.of_forall fun x => norm_mul_im_nevanlinnaKernel_le r x hy hy1.le + · exact Filter.Eventually.of_forall fun x => tendsto_mul_im_nevanlinnaKernel r x + +/-- A real affine term does not change the atom recovered from a Nevanlinna +representation. No sign condition on the linear coefficient is needed. -/ +theorem tendsto_mul_im_of_eq_nevanlinnaKernel_add + {F : ℂ → ℂ} (mu : Measure ℝ) [IsFiniteMeasure mu] (b c r : ℝ) + (hrep : ∀ z ∈ UpperHalfPlane.upperHalfPlaneSet, + F z = (b : ℂ) * z + ∫ x, nevanlinnaKernel z x ∂mu + c) : + Tendsto (fun y : ℝ => y * (F ((r : ℂ) + (y : ℂ) * I)).im) + (𝓝[>] (0 : ℝ)) (𝓝 ((1 + r ^ 2) * mu.real {r})) := by + have hid : Tendsto (fun y : ℝ => y) (𝓝[>] (0 : ℝ)) (𝓝 (0 : ℝ)) := + tendsto_id.mono_right nhdsWithin_le_nhds + have hlin : Tendsto (fun y : ℝ => b * y ^ 2) (𝓝[>] (0 : ℝ)) (𝓝 (0 : ℝ)) := by + simpa using (hid.pow 2).const_mul b + have h := hlin.add (tendsto_mul_im_nevanlinna mu r) + simp only [zero_add] at h + apply h.congr' + filter_upwards [self_mem_nhdsWithin] with y hy + have hmem : (r : ℂ) + (y : ℂ) * I ∈ UpperHalfPlane.upperHalfPlaneSet := by + simpa [UpperHalfPlane.upperHalfPlaneSet] using hy + rw [hrep _ hmem] + simp only [add_im, mul_im, ofReal_re, ofReal_im, mul_zero, zero_mul, zero_add, + add_zero, I_im, mul_one, I_re] + ring + +end TauCeti From 486a5a1dbf3e57174d587cb9ded2148d44accf02 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 15:40:26 +0000 Subject: [PATCH 18/56] feat: prove raw xi Turan inequalities and positive LP criteria --- RealRooted.lean | 14 +++ RealRooted/LaguerreInequalities/Turan.lean | 100 ++++++++++++++++++ .../Mathlib/Analysis/Complex/Pick/Atoms.lean | 1 - .../Complex/PolynomialLimitCoeff.lean | 24 ++++- .../LaguerrePolya/JensenSimple.lean | 3 +- .../LaguerrePolya/OperatorProduct.lean | 2 - .../PolyaSchur/LaguerrePolya/Turan.lean | 62 +++++++++++ .../LaguerrePolya/TypeIClosure.lean | 19 +++- .../LaguerrePolya/TypeICriterion.lean | 49 +++++++++ RealRooted/Production.lean | 14 +++ .../RiemannHypothesis/JensenSimple.lean | 1 + RealRooted/RiemannHypothesis/Turan.lean | 66 ++++++++++++ scripts/import_architecture.json | 4 +- scripts/mathlib_shims.json | 30 ++++++ 14 files changed, 380 insertions(+), 9 deletions(-) create mode 100644 RealRooted/LaguerreInequalities/Turan.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Turan.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeICriterion.lean create mode 100644 RealRooted/RiemannHypothesis/Turan.lean diff --git a/RealRooted.lean b/RealRooted.lean index e3c2bf826..85044f60d 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2483,3 +2483,17 @@ public import RealRooted.Hermite.PoulainSimple public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.CompPowCoefficient public import RealRooted.LaguerreInequalities.AuxiliaryQuartic public import RealRooted.LaguerreInequalities.AuxiliaryCounterexample +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PolynomialFactors +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.JensenSimple +public import RealRooted.RiemannHypothesis.JensenSimple +public import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Star +public import RealRooted.Mathlib.Analysis.Complex.Pick.Support +public import RealRooted.LaguerreInequalities.LogDerivative +public import RealRooted.LaguerreInequalities.Nevanlinna +public import RealRooted.LaguerreInequalities.MeasureSupport +public import RealRooted.Mathlib.Analysis.Complex.Pick.Atoms +public import RealRooted.LaguerreInequalities.Turan +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Turan +public import RealRooted.RiemannHypothesis.Turan +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeICriterion diff --git a/RealRooted/LaguerreInequalities/Turan.lean b/RealRooted/LaguerreInequalities/Turan.lean new file mode 100644 index 000000000..c001387f6 --- /dev/null +++ b/RealRooted/LaguerreInequalities/Turan.lean @@ -0,0 +1,100 @@ +module + +public import RealRooted.Wronskian.PolarLaguerre +import RealRooted.LaguerreInequalities.Forms + +/-! +# Cubic and second iterated Turán inequalities + +The raw derivative inequalities of Craven and Csordas, *Iterated Laguerre +and Turán inequalities*, Proposition 3.4 and Corollary 3.6 of the author +manuscript, https://math.hawaii.edu/~tom/mathfiles/iteratedLT.pdf. +Division-free factor recurrences include roots and constant polynomials. +-/ + +@[expose] public section + +open Polynomial + +namespace RealRooted + +/-- The numerator of the second derivative of the logarithmic derivative. -/ +noncomputable def cubicDerivativeForm (p : ℝ[X]) : ℝ[X] := + 2 * p.derivative ^ 3 - 3 * p * p.derivative * p.derivative.derivative + + p ^ 2 * p.derivative.derivative.derivative + +/-- The second Turán iterate of the raw polynomial derivative sequence at index two. -/ +noncomputable def secondTuranForm (p : ℝ[X]) : ℝ[X] := + laguerreForm p.derivative ^ 2 - + laguerreForm p * laguerreForm p.derivative.derivative + +/-- The negative third Hankel determinant of five successive derivatives. -/ +private noncomputable def turanQuotient (p : ℝ[X]) : ℝ[X] := + p.derivative.derivative ^ 3 - + 2 * p.derivative * p.derivative.derivative * p.derivative.derivative.derivative + + p * p.derivative.derivative.derivative ^ 2 + + p.derivative ^ 2 * p.derivative.derivative.derivative.derivative - + p * p.derivative.derivative * p.derivative.derivative.derivative.derivative + +/-- Adjoining a linear factor gives a positive recurrence for the cubic form. -/ +theorem cubicDerivativeForm_X_sub_C_mul (r : ℝ) (p : ℝ[X]) : + cubicDerivativeForm ((X - C r) * p) = + (X - C r) ^ 3 * cubicDerivativeForm p + 2 * p ^ 3 := by + simp only [cubicDerivativeForm, map_add, map_sub, derivative_mul, derivative_X, + derivative_C, map_zero, derivative_one] + ring + +/-- The quotient recurrence involves only the cubic and second Laguerre forms. -/ +private theorem turanQuotient_X_sub_C_mul (r : ℝ) (p : ℝ[X]) : + turanQuotient ((X - C r) * p) = (X - C r) ^ 3 * turanQuotient p + + 12 * (X - C r) * p * secondLaguerreForm p + 4 * cubicDerivativeForm p := by + simp only [turanQuotient, cubicDerivativeForm, secondLaguerreForm, map_add, map_sub, + derivative_mul, derivative_X, derivative_C, map_zero, derivative_one] + have h12 : (C (1 / 12 : ℝ)) * 12 = 1 := by + rw [← C_ofNat, ← C_mul] + simp + linear_combination -(X - C r) * p * + (3 * p.derivative.derivative ^ 2 - + 4 * p.derivative * p.derivative.derivative.derivative + + p * p.derivative.derivative.derivative.derivative) * h12 + +/-- The second Turán iterate factors without division, including when `p''` vanishes. -/ +private theorem secondTuranForm_eq_mul (p : ℝ[X]) : + secondTuranForm p = p.derivative.derivative * turanQuotient p := by + simp only [secondTuranForm, laguerreForm, turanQuotient] + ring + +/-- Simultaneous positivity of the cubic form and the third Hankel expression. -/ +private theorem forms_nonneg {p : ℝ[X]} (hp : IsPFPolynomial p) {x : ℝ} (hx : 0 ≤ x) : + 0 ≤ (cubicDerivativeForm p).eval x ∧ 0 ≤ (turanQuotient p).eval x := by + induction hdegree : p.natDegree using Nat.strong_induction_on generalizing p with + | ind degree ih => + by_cases hz : degree = 0 + · have hC : p = C (p.coeff 0) := + Polynomial.eq_C_of_natDegree_eq_zero (by simpa [hdegree] using hz) + rw [hC] + simp [cubicDerivativeForm, turanQuotient] + · have hd : 0 < p.natDegree := by rw [hdegree]; exact Nat.pos_of_ne_zero hz + obtain ⟨r, q, hr, hpq, hq, hqd⟩ := hp.exists_X_sub_C_factor_of_pos_natDegree hd + obtain ⟨hc, ht⟩ := ih q.natDegree (by simpa [hdegree] using hqd) hq rfl + have hval := hq.hasNonnegCoeffs.eval_nonneg hx + have hshift : 0 ≤ x - r := sub_nonneg.mpr (hr.trans hx) + have hL := secondLaguerreForm_eval_nonneg hq.splits x + rw [hpq, cubicDerivativeForm_X_sub_C_mul, turanQuotient_X_sub_C_mul] + simp only [eval_add, eval_mul, eval_pow, eval_sub, eval_X, eval_C, eval_ofNat] + constructor <;> positivity + +/-- The cubic derivative form of a PF polynomial is nonnegative on the nonnegative axis. -/ +theorem IsPFPolynomial.cubicDerivativeForm_eval_nonneg {p : ℝ[X]} + (hp : IsPFPolynomial p) {x : ℝ} (hx : 0 ≤ x) : + 0 ≤ (cubicDerivativeForm p).eval x := (forms_nonneg hp hx).1 + +/-- Every PF polynomial satisfies the second raw derivative Turán inequality. -/ +theorem IsPFPolynomial.secondTuranForm_eval_nonneg {p : ℝ[X]} + (hp : IsPFPolynomial p) {x : ℝ} (hx : 0 ≤ x) : + 0 ≤ (secondTuranForm p).eval x := by + rw [secondTuranForm_eq_mul, eval_mul] + exact mul_nonneg (hp.derivative.derivative.hasNonnegCoeffs.eval_nonneg hx) + (forms_nonneg hp hx).2 + +end RealRooted diff --git a/RealRooted/Mathlib/Analysis/Complex/Pick/Atoms.lean b/RealRooted/Mathlib/Analysis/Complex/Pick/Atoms.lean index fc4f3c33f..1bc068850 100644 --- a/RealRooted/Mathlib/Analysis/Complex/Pick/Atoms.lean +++ b/RealRooted/Mathlib/Analysis/Complex/Pick/Atoms.lean @@ -6,7 +6,6 @@ Authors: The RealRooted contributors module public import TauCeti.Analysis.Complex.Pick.Nevanlinna -import Mathlib.MeasureTheory.Integral.DominatedConvergence /-! # Atoms of a Nevanlinna measure diff --git a/RealRooted/Mathlib/Analysis/Complex/PolynomialLimitCoeff.lean b/RealRooted/Mathlib/Analysis/Complex/PolynomialLimitCoeff.lean index b6fb29904..5bc6493e5 100644 --- a/RealRooted/Mathlib/Analysis/Complex/PolynomialLimitCoeff.lean +++ b/RealRooted/Mathlib/Analysis/Complex/PolynomialLimitCoeff.lean @@ -6,9 +6,9 @@ Authors: Per Alexandersson module import Mathlib.Analysis.Complex.LocallyUniformLimit -public import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas import Mathlib.Analysis.Calculus.Deriv.Polynomial -public import Mathlib.Analysis.Complex.Basic +import Mathlib.Analysis.Complex.Basic public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs public import Mathlib.Analysis.InnerProductSpace.Basic public import Mathlib.Algebra.Polynomial.Derivative @@ -62,6 +62,26 @@ theorem TendstoLocallyUniformly.iteratedDeriv {F : ℕ → ℂ → ℂ} {f : ℂ namespace Polynomial +/-- Locally uniform convergence of real polynomials on the complex plane implies +pointwise convergence of every formal derivative at every real point. -/ +theorem tendsto_eval_iterate_derivative_of_tendstoLocallyUniformly + {p : ℕ → ℝ[X]} {f : ℂ → ℂ} + (hf : TendstoLocallyUniformly + (fun n (z : ℂ) => ((p n).map Complex.ofRealHom).eval z) f atTop) (k : ℕ) (x : ℝ) : + Tendsto (fun n => (derivative^[k] (p n)).eval x) atTop + (𝓝 (iteratedDeriv k f x).re) := by + have hd : ∀ n, Differentiable ℂ fun z : ℂ => ((p n).map Complex.ofRealHom).eval z := + fun n => ((p n).map Complex.ofRealHom).differentiable + have h := (tendstoLocallyUniformlyOn_univ.mpr (hf.iteratedDeriv hd k)).tendsto_at + (Set.mem_univ (x : ℂ)) + simp only [iteratedDeriv_fun_eval, iterate_derivative_map] at h + have hre := Complex.continuous_re.tendsto _ |>.comp h + have he (q : ℝ[X]) : ((q.map Complex.ofRealHom).eval (x : ℂ)).re = q.eval x := by + change ((q.map Complex.ofRealHom).eval (Complex.ofRealHom x)).re = _ + rw [eval_map_apply] + rfl + simpa only [Function.comp_def, he] using hre + /-- If real polynomials converge locally uniformly on `ℂ` to `f`, then their `k`-th coefficients converge (in `ℂ`) to the `k`-th Taylor coefficient of `f` at `0`. -/ theorem tendsto_coeff_ofReal_of_tendstoLocallyUniformly {p : ℕ → ℝ[X]} {f : ℂ → ℂ} diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean index 030f934be..998c06a73 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean @@ -1,6 +1,7 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen public import RealRooted.SimpleRoots public import TauCeti.Analysis.Complex.GrowthOrder import RealRooted.Hermite.PoulainSimple diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorProduct.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorProduct.lean index 329cc0c48..1ea9cc3c9 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorProduct.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorProduct.lean @@ -2,8 +2,6 @@ module public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator public import RealRooted.Hermite.Poulain -import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas -import Mathlib.Analysis.Complex.Polynomial.Basic /-! # Polynomial factors of Taylor differential operators diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Turan.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Turan.lean new file mode 100644 index 000000000..57db019db --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Turan.lean @@ -0,0 +1,62 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.LaguerreInequalities.Turan +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff + +/-! +# Raw derivative Turán inequalities for positive Type-I functions + +The cubic and second iterated inequalities pass from PF polynomials to their +locally uniform entire limits. These are the raw derivatives of the function, +without factorial division. See Craven and Csordas, *Iterated Laguerre and +Turán inequalities*, Theorem 3.5 and Corollary 3.6 of the author manuscript, +https://math.hawaii.edu/~tom/mathfiles/iteratedLT.pdf. +-/ + +public section + +open Polynomial Filter Topology + +namespace RealRooted + +/-- The cubic derivative inequality holds on the nonnegative axis for every +positive Type-I function, including zeros and constants. -/ +theorem IsLaguerrePolyaTypeI.cubic_derivative_nonneg {f : ℂ → ℂ} + (hf : IsLaguerrePolyaTypeI f) {x : ℝ} (hx : 0 ≤ x) : + 0 ≤ 2 * (iteratedDeriv 1 f x).re ^ 3 - + 3 * (f x).re * (iteratedDeriv 1 f x).re * (iteratedDeriv 2 f x).re + + (f x).re ^ 2 * (iteratedDeriv 3 f x).re := by + obtain ⟨p, hp, hlim⟩ := hf + have h := Polynomial.tendsto_eval_iterate_derivative_of_tendstoLocallyUniformly hlim + have hc := (((h 1 x).pow 3).const_mul 2).sub + ((((h 0 x).mul (h 1 x)).mul (h 2 x)).const_mul 3) + have ht := hc.add (((h 0 x).pow 2).mul (h 3 x)) + apply ge_of_tendsto (by simpa only [iteratedDeriv_zero, mul_assoc] using ht) + filter_upwards [] with n + simpa only [cubicDerivativeForm, eval_add, eval_sub, eval_mul, eval_pow, eval_ofNat, + Function.iterate_succ_apply', Function.iterate_zero_apply, mul_assoc] using + (hp n).cubicDerivativeForm_eval_nonneg hx + +/-- The second Turán iterate of the raw derivative sequence is nonnegative +on the nonnegative axis for every positive Type-I function. -/ +theorem IsLaguerrePolyaTypeI.second_turan_nonneg {f : ℂ → ℂ} + (hf : IsLaguerrePolyaTypeI f) {x : ℝ} (hx : 0 ≤ x) : + 0 ≤ ((iteratedDeriv 2 f x).re ^ 2 - + (iteratedDeriv 1 f x).re * (iteratedDeriv 3 f x).re) ^ 2 - + ((iteratedDeriv 1 f x).re ^ 2 - (f x).re * (iteratedDeriv 2 f x).re) * + ((iteratedDeriv 3 f x).re ^ 2 - + (iteratedDeriv 2 f x).re * (iteratedDeriv 4 f x).re) := by + obtain ⟨p, hp, hlim⟩ := hf + have h := Polynomial.tendsto_eval_iterate_derivative_of_tendstoLocallyUniformly hlim + have h1 := ((h 1 x).pow 2).sub ((h 0 x).mul (h 2 x)) + have h2 := ((h 2 x).pow 2).sub ((h 1 x).mul (h 3 x)) + have h3 := ((h 3 x).pow 2).sub ((h 2 x).mul (h 4 x)) + apply ge_of_tendsto (by simpa only [iteratedDeriv_zero] using (h2.pow 2).sub (h1.mul h3)) + filter_upwards [] with n + simpa only [secondTuranForm, laguerreForm, eval_sub, eval_mul, eval_pow, + Function.iterate_succ_apply', Function.iterate_zero_apply] using + (hp n).secondTuranForm_eval_nonneg hx + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIClosure.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIClosure.lean index 3e477fa59..547064565 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIClosure.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIClosure.lean @@ -1,7 +1,8 @@ module public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI -import RealRooted.PFPolynomial +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff /-! # Type-I Laguerre--Pólya products @@ -17,6 +18,22 @@ open Polynomial Filter Topology namespace RealRooted +/-- Differentiation preserves the positive Type-I class, including zero outputs. -/ +theorem IsLaguerrePolyaTypeI.deriv {f : ℂ → ℂ} (hf : IsLaguerrePolyaTypeI f) : + IsLaguerrePolyaTypeI (deriv f) := by + obtain ⟨p, hp, hlim⟩ := hf + refine ⟨fun n => (p n).derivative, fun n => (hp n).derivative, ?_⟩ + have h := hlim.iteratedDeriv (fun n => ((p n).map Complex.ofRealHom).differentiable) 1 + simpa only [Polynomial.iteratedDeriv_fun_eval, Polynomial.iterate_derivative_map, + Function.iterate_one, iteratedDeriv_one] using h + +/-- Every derivative of a positive Type-I function remains positive Type-I. -/ +theorem IsLaguerrePolyaTypeI.iterate_deriv {f : ℂ → ℂ} + (hf : IsLaguerrePolyaTypeI f) (n : ℕ) : IsLaguerrePolyaTypeI (iteratedDeriv n f) := by + induction n with + | zero => simpa using hf + | succ n ih => simpa [iteratedDeriv_succ] using ih.deriv + /-- Every PF polynomial defines a Type-I Laguerre--Pólya function. -/ theorem IsPFPolynomial.isLaguerrePolyaTypeI {p : ℝ[X]} (hp : IsPFPolynomial p) : IsLaguerrePolyaTypeI (fun z : ℂ => (p.map Complex.ofRealHom).eval z) := by diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeICriterion.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeICriterion.lean new file mode 100644 index 000000000..29a1f6549 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeICriterion.lean @@ -0,0 +1,49 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivity +import RealRooted.MultiplierSequence.PolyaSchur +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# The positive Laguerre--Pólya subclass + +The PF polynomial approximation definition of positive Type-I functions is +equivalent to membership in the Laguerre--Pólya class with nonnegative Taylor +data. This is the class denoted LP+ by Craven and Csordas. Zero is included. +-/ + +public section + +namespace RealRooted + +/-- An LP function with nonnegative Taylor data has PF polynomial approximants. -/ +theorem IsLaguerrePolya.isLaguerrePolyaTypeI_of_nonneg {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hpos : ∀ k, 0 ≤ (iteratedDeriv k f 0).re) : + IsLaguerrePolyaTypeI f := by + have hpf : IsPFMultiplierSequence (fun k => (iteratedDeriv k f 0).re) := by + apply isPFMultiplierSequence_iff_jensenPolynomial_isPF.mpr + intro d + exact IsPFPolynomial.of_realRooted_nonneg (hasNonnegCoeffs_jensenPolynomial hpos) + (hf.jensenPolynomial_splits d) + have hreal (k : ℕ) : iteratedDeriv k f 0 = ((iteratedDeriv k f 0).re : ℂ) := + (Complex.ofReal_re_iteratedDeriv_zero hf.conj k).symm + rw [eq_complexExpGeneratingFunction_of_iteratedDeriv hf.differentiable hreal] + exact hpf.isLaguerrePolyaTypeI_complexExpGeneratingFunction + +/-- Positive Type-I means LP membership together with nonnegative Taylor data. -/ +theorem isLaguerrePolyaTypeI_iff_isLaguerrePolya_nonneg {f : ℂ → ℂ} : + IsLaguerrePolyaTypeI f ↔ + IsLaguerrePolya f ∧ ∀ k, 0 ≤ (iteratedDeriv k f 0).re := by + constructor + · intro hf + refine ⟨hf.toLaguerrePolya, fun k => ?_⟩ + have h := hf.isPolyaFreqSeq.nonneg k + simpa only [zero_mul] using (le_div_iff₀ (by positivity)).mp h + · rintro ⟨hf, hp⟩ + exact hf.isLaguerrePolyaTypeI_of_nonneg hp + +end RealRooted diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index a3c96a41c..2ed58e4b6 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2409,6 +2409,20 @@ public import RealRooted.Hermite.PoulainSimple public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.CompPowCoefficient public import RealRooted.LaguerreInequalities.AuxiliaryQuartic public import RealRooted.LaguerreInequalities.AuxiliaryCounterexample +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PolynomialFactors +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.JensenSimple +public import RealRooted.RiemannHypothesis.JensenSimple +public import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Star +public import RealRooted.Mathlib.Analysis.Complex.Pick.Support +public import RealRooted.LaguerreInequalities.LogDerivative +public import RealRooted.LaguerreInequalities.Nevanlinna +public import RealRooted.LaguerreInequalities.MeasureSupport +public import RealRooted.Mathlib.Analysis.Complex.Pick.Atoms +public import RealRooted.LaguerreInequalities.Turan +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Turan +public import RealRooted.RiemannHypothesis.Turan +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeICriterion /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/JensenSimple.lean b/RealRooted/RiemannHypothesis/JensenSimple.lean index 0c821c646..9b5645911 100644 --- a/RealRooted/RiemannHypothesis/JensenSimple.lean +++ b/RealRooted/RiemannHypothesis/JensenSimple.lean @@ -3,6 +3,7 @@ module public import RealRooted.RiemannHypothesis public import RealRooted.SimpleRoots import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.JensenSimple +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative diff --git a/RealRooted/RiemannHypothesis/Turan.lean b/RealRooted/RiemannHypothesis/Turan.lean new file mode 100644 index 000000000..af327e1cc --- /dev/null +++ b/RealRooted/RiemannHypothesis/Turan.lean @@ -0,0 +1,66 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.BrandenLC.Sequence +import RealRooted.RiemannHypothesis.TotalPositivity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Turan + +/-! +# Raw xi derivative inequalities under RH + +Craven--Csordas's cubic and second iterated Turán inequalities apply to every +derivative of the normalized xi function under Mathlib's RH. The coefficient +statements use raw `riemannXiCoeff` values, without factorial division. +They do not assert arbitrary iteration of the raw coefficient sequence. +-/ + +public section + +namespace RealRooted + +/-- Every xi derivative satisfies the cubic derivative inequality under RH +at every nonnegative real argument. -/ +theorem cubic_iteratedDeriv_riemannXiTheta_nonneg + (hRH : RiemannHypothesis) (n : ℕ) {x : ℝ} (hx : 0 ≤ x) : + 0 ≤ 2 * (iteratedDeriv (n + 1) riemannXiTheta x).re ^ 3 - + 3 * (iteratedDeriv n riemannXiTheta x).re * + (iteratedDeriv (n + 1) riemannXiTheta x).re * + (iteratedDeriv (n + 2) riemannXiTheta x).re + + (iteratedDeriv n riemannXiTheta x).re ^ 2 * + (iteratedDeriv (n + 3) riemannXiTheta x).re := by + simpa only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm] using + (isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH n).cubic_derivative_nonneg hx + +/-- RH gives a cubic inequality between four consecutive raw xi coefficients. -/ +theorem cubic_riemannXiCoeff_nonneg (hRH : RiemannHypothesis) (n : ℕ) : + 0 ≤ 2 * riemannXiCoeff (n + 1) ^ 3 - + 3 * riemannXiCoeff n * riemannXiCoeff (n + 1) * riemannXiCoeff (n + 2) + + riemannXiCoeff n ^ 2 * riemannXiCoeff (n + 3) := + cubic_iteratedDeriv_riemannXiTheta_nonneg hRH n le_rfl + +/-- Every xi derivative satisfies the second raw Turán inequality under RH +at every nonnegative real argument. -/ +theorem second_turan_iteratedDeriv_riemannXiTheta_nonneg + (hRH : RiemannHypothesis) (n : ℕ) {x : ℝ} (hx : 0 ≤ x) : + 0 ≤ ((iteratedDeriv (n + 2) riemannXiTheta x).re ^ 2 - + (iteratedDeriv (n + 1) riemannXiTheta x).re * + (iteratedDeriv (n + 3) riemannXiTheta x).re) ^ 2 - + ((iteratedDeriv (n + 1) riemannXiTheta x).re ^ 2 - + (iteratedDeriv n riemannXiTheta x).re * + (iteratedDeriv (n + 2) riemannXiTheta x).re) * + ((iteratedDeriv (n + 3) riemannXiTheta x).re ^ 2 - + (iteratedDeriv (n + 2) riemannXiTheta x).re * + (iteratedDeriv (n + 4) riemannXiTheta x).re) := by + simpa only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm] using + (isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH n).second_turan_nonneg hx + +/-- The second log-concavity iterate of the raw xi coefficients is +nonnegative at every index at least two under RH. -/ +theorem iterate_logConcavity_riemannXiCoeff_two_nonneg + (hRH : RiemannHypothesis) (n : ℕ) : + 0 ≤ ((logConcavitySequence^[2]) riemannXiCoeff) (n + 2) := by + have h := second_turan_iteratedDeriv_riemannXiTheta_nonneg hRH n (x := 0) le_rfl + simpa [Function.iterate_succ_apply', logConcavitySequence, Nat.add_sub_assoc, + Nat.add_assoc, riemannXiCoeff] using h + +end RealRooted diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index 487e99f10..3a0cdd400 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2473 + "max_modules": 2487 }, "RealRooted.Production": { - "max_modules": 2401 + "max_modules": 2415 }, "RealRooted.Tactic.Examples": { "max_modules": 844 diff --git a/scripts/mathlib_shims.json b/scripts/mathlib_shims.json index 4a758fa09..c2082dbb6 100644 --- a/scripts/mathlib_shims.json +++ b/scripts/mathlib_shims.json @@ -3819,6 +3819,36 @@ ], "note": "All Taylor coefficients under a positive power substitution, including nondivisible indices.", "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Star.lean" + ], + "modules": [ + "Mathlib.Analysis.Calculus.LogDeriv.Star" + ], + "note": "Conjugation symmetry and real-axis values of logarithmic derivatives.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/Pick/Support.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.Pick.Support" + ], + "note": "Support of finite Nevanlinna measures is localized at real singularities.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/Pick/Atoms.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.Pick.Atoms" + ], + "note": "Vertical imaginary-part boundary limits recover the atoms of a finite Nevanlinna measure.", + "speculative": true } ] } From 1803b04c3c769e0b9a5e12e7e2a74334cd35acc9 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 15:39:05 +0000 Subject: [PATCH 19/56] feat: recover summable zero multiplicities from Laguerre inequalities --- .../AtomMultiplicity.lean | 58 ++++++++++++ .../AtomicRepresentation.lean | 89 +++++++++++++++++++ .../LaguerreInequalities/InverseSquare.lean | 66 ++++++++++++++ .../Analysis/Analytic/CountableZeros.lean | 45 ++++++++++ .../Analysis/Calculus/LogDeriv/Residue.lean | 78 ++++++++++++++++ .../Normed/Field/WeightedInverse.lean | 64 +++++++++++++ .../Integral/Bochner/Countable.lean | 63 +++++++++++++ 7 files changed, 463 insertions(+) create mode 100644 RealRooted/LaguerreInequalities/AtomMultiplicity.lean create mode 100644 RealRooted/LaguerreInequalities/AtomicRepresentation.lean create mode 100644 RealRooted/LaguerreInequalities/InverseSquare.lean create mode 100644 RealRooted/Mathlib/Analysis/Analytic/CountableZeros.lean create mode 100644 RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Residue.lean create mode 100644 RealRooted/Mathlib/Analysis/Normed/Field/WeightedInverse.lean create mode 100644 RealRooted/Mathlib/MeasureTheory/Integral/Bochner/Countable.lean diff --git a/RealRooted/LaguerreInequalities/AtomMultiplicity.lean b/RealRooted/LaguerreInequalities/AtomMultiplicity.lean new file mode 100644 index 000000000..ef0205c2e --- /dev/null +++ b/RealRooted/LaguerreInequalities/AtomMultiplicity.lean @@ -0,0 +1,58 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +public import TauCeti.Analysis.Complex.Pick.Nevanlinna +public import Mathlib.Analysis.Analytic.Order +import RealRooted.LaguerreInequalities.AtomicRepresentation +import RealRooted.LaguerreInequalities.MeasureSupport +import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Residue +import RealRooted.Mathlib.Analysis.Complex.Pick.Atoms + +/-! +# Nevanlinna atom masses are zero multiplicities + +The residue limit of the logarithmic derivative and the boundary limit of the +Nevanlinna integral identify every atom with the analytic zero multiplicity +divided by `1 + r^2`. In particular, the finite measure gives a summable weighted +sequence of zero multiplicities, without assuming an entire growth bound. +-/ + +public section + +open Complex Filter MeasureTheory Set Topology +open scoped ComplexConjugate + +namespace RealRooted + +/-- Every singleton mass of a finite Nevanlinna measure representing a nonzero +entire function's negative logarithmic derivative is its zero multiplicity +divided by `1 + r^2`. The formula also holds at points that are not zeros. -/ +theorem measureReal_singleton_eq_analyticOrderNatAt_div {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hne : f ≠ 0) {ρ : Measure ℝ} [IsFiniteMeasure ρ] + {b c : ℝ} (hrep : ∀ z ∈ UpperHalfPlane.upperHalfPlaneSet, + -logDeriv f z = (b : ℂ) * z + ∫ x, TauCeti.nevanlinnaKernel z x ∂ρ + c) + (r : ℝ) : ρ.real {r} = (analyticOrderNatAt f (r : ℂ) : ℝ) / (1 + r ^ 2) := by + obtain ⟨w, hw⟩ := Function.ne_iff.mp hne + have ha : AnalyticOnNhd ℂ f univ := fun z _ => hf.analyticAt z + have hfin := ha.analyticOrderAt_ne_top_of_isPreconnected isPreconnected_univ + (x := w) (y := (r : ℂ)) (mem_univ _) (mem_univ _) + (by rw [(hf.analyticAt w).analyticOrderAt_eq_zero.mpr hw]; simp) + have heq := tendsto_nhds_unique + (TauCeti.tendsto_mul_im_of_eq_nevanlinnaKernel_add ρ b c r hrep) + ((hf.analyticAt r).tendsto_mul_im_neg_logDeriv hfin) + apply (eq_div_iff (by positivity : (1 + r ^ 2 : ℝ) ≠ 0)).mpr + simpa only [mul_comm] using heq + +/-- Generalized Laguerre inequalities imply summability of the zero multiplicities +weighted by `1 / (1 + r^2)`, with every real zero counted to its actual order. -/ +theorem summable_analyticOrderNatAt_div_one_add_sq {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) (hne : f ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + Summable (fun r : {x : ℝ | f x = 0} => + (analyticOrderNatAt f (r : ℂ) : ℝ) / (1 + (r : ℝ) ^ 2)) := by + obtain ⟨ρ, b, hρ, _, hrep, hs, _⟩ := exists_nevanlinna_supported_on_zeros hf hc h + let _ := hρ + have heq := measureReal_singleton_eq_analyticOrderNatAt_div hf hne hrep + simpa only [heq] using (hasSum_measureReal_real_zeros hf hne hs).summable + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/AtomicRepresentation.lean b/RealRooted/LaguerreInequalities/AtomicRepresentation.lean new file mode 100644 index 000000000..59bed99de --- /dev/null +++ b/RealRooted/LaguerreInequalities/AtomicRepresentation.lean @@ -0,0 +1,89 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +public import TauCeti.Analysis.Complex.Pick.Nevanlinna +public import Mathlib.MeasureTheory.Measure.Support +import RealRooted.LaguerreInequalities.MeasureSupport +import RealRooted.Mathlib.Analysis.Analytic.CountableZeros +import RealRooted.Mathlib.MeasureTheory.Integral.Bochner.Countable + +/-! +# Atomic Nevanlinna sums over real zeros + +A nonzero entire function has countably many real zeros. A finite measure carried +by those zeros is therefore atomic, and its Nevanlinna integral is an absolutely +convergent sum. These statements do not yet identify atom masses with zero +multiplicities. +-/ + +public section + +open Complex MeasureTheory Set +open scoped ComplexConjugate + +namespace RealRooted + +/-- The masses of a finite measure supported on the real zeros of a nonzero +entire function sum to its total mass. -/ +theorem hasSum_measureReal_real_zeros {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hne : f ≠ 0) {ρ : Measure ℝ} [IsFiniteMeasure ρ] + (hs : ρ.support ⊆ {x : ℝ | f x = 0}) : + HasSum (fun r : {x : ℝ | f x = 0} => ρ.real {(r : ℝ)}) (ρ.real univ) := by + have hμ : ∀ᵐ (x : ℝ) ∂ρ, x ∈ {r : ℝ | f r = 0} := + Filter.mem_of_superset ρ.support_mem_ae hs + simpa only [smul_eq_mul, mul_one, integral_const] using + hasSum_integral_of_ae_mem_countable (hf.countable_real_zeroSet hne) hμ + (integrable_const (1 : ℝ)) + +/-- The Nevanlinna integral of a measure supported on a nonzero entire function's +real zeros is its convergent atomic sum over those zeros. -/ +theorem hasSum_nevanlinnaKernel_real_zeros {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hne : f ≠ 0) {ρ : Measure ℝ} [IsFiniteMeasure ρ] + (hs : ρ.support ⊆ {x : ℝ | f x = 0}) {z : ℂ} + (hz : z ∈ UpperHalfPlane.upperHalfPlaneSet) : + HasSum (fun r : {x : ℝ | f x = 0} => + (ρ.real {(r : ℝ)} : ℂ) * TauCeti.nevanlinnaKernel z r) + (∫ x, TauCeti.nevanlinnaKernel z x ∂ρ) := by + have hμ : ∀ᵐ (x : ℝ) ∂ρ, x ∈ {r : ℝ | f r = 0} := + Filter.mem_of_superset ρ.support_mem_ae hs + simpa only [Complex.real_smul] using + hasSum_integral_of_ae_mem_countable (hf.countable_real_zeroSet hne) hμ + (TauCeti.integrable_nevanlinnaKernel hz ρ) + +/-- The atomic Nevanlinna sum over real zeros converges absolutely. -/ +theorem summable_norm_nevanlinnaKernel_real_zeros {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hne : f ≠ 0) {ρ : Measure ℝ} [IsFiniteMeasure ρ] + (hs : ρ.support ⊆ {x : ℝ | f x = 0}) {z : ℂ} + (hz : z ∈ UpperHalfPlane.upperHalfPlaneSet) : + Summable (fun r : {x : ℝ | f x = 0} => + ρ.real {(r : ℝ)} * ‖TauCeti.nevanlinnaKernel z r‖) := by + have hμ : ∀ᵐ (x : ℝ) ∂ρ, x ∈ {r : ℝ | f r = 0} := + Filter.mem_of_superset ρ.support_mem_ae hs + simpa only [smul_eq_mul] using + (hasSum_integral_of_ae_mem_countable (hf.countable_real_zeroSet hne) hμ + (TauCeti.integrable_nevanlinnaKernel hz ρ).norm).summable + +/-- All generalized Laguerre inequalities give an absolutely convergent atomic +Nevanlinna representation over the actual real zeros, without a growth assumption. -/ +theorem exists_atomic_nevanlinna_neg_logDeriv {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) (hne : f ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + ∃ (ρ : Measure ℝ) (b : ℝ), IsFiniteMeasure ρ ∧ 0 ≤ b ∧ + ρ.support ⊆ {x : ℝ | f x = 0} ∧ + HasSum (fun r : {x : ℝ | f x = 0} => ρ.real {(r : ℝ)}) (ρ.real univ) ∧ + ∀ z ∈ UpperHalfPlane.upperHalfPlaneSet, + HasSum (fun r : {x : ℝ | f x = 0} => + (ρ.real {(r : ℝ)} : ℂ) * TauCeti.nevanlinnaKernel z r) + (-logDeriv f z - (b : ℂ) * z - (-logDeriv f I).re) ∧ + Summable (fun r : {x : ℝ | f x = 0} => + ρ.real {(r : ℝ)} * ‖TauCeti.nevanlinnaKernel z r‖) := by + obtain ⟨ρ, b, hρ, hb, hrep, hs, _⟩ := exists_nevanlinna_supported_on_zeros hf hc h + let _ := hρ + refine ⟨ρ, b, hρ, hb, hs, hasSum_measureReal_real_zeros hf hne hs, ?_⟩ + intro z hz + refine ⟨?_, summable_norm_nevanlinnaKernel_real_zeros hf hne hs hz⟩ + convert hasSum_nevanlinnaKernel_real_zeros hf hne hs hz using 1 + rw [hrep z hz] + ring + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/InverseSquare.lean b/RealRooted/LaguerreInequalities/InverseSquare.lean new file mode 100644 index 000000000..995e0daf0 --- /dev/null +++ b/RealRooted/LaguerreInequalities/InverseSquare.lean @@ -0,0 +1,66 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +public import Mathlib.Analysis.Analytic.Order +import RealRooted.LaguerreInequalities.AtomMultiplicity +import RealRooted.Mathlib.Analysis.Normed.Field.WeightedInverse + +/-! +# Inverse-square summability from generalized Laguerre inequalities + +A nonzero value at the origin separates every real zero from zero. The finite +Nevanlinna measure then supplies the inverse-square summability needed for the +genus-one canonical product, as well as its convergent real linear correction. +-/ + +public section + +open Complex Filter Metric Set Topology +open scoped ComplexConjugate + +namespace RealRooted + +private theorem exists_pos_le_abs_real_zero {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hf0 : f 0 ≠ 0) : ∃ δ : ℝ, 0 < δ ∧ ∀ r : ℝ, f r = 0 → δ ≤ |r| := by + obtain ⟨δ, hδ, hs⟩ := Metric.mem_nhds_iff.mp + (hf.continuous.continuousAt.eventually_ne hf0) + refine ⟨δ, hδ, fun r hr => le_of_not_gt fun hlt => ?_⟩ + have hmem : (r : ℂ) ∈ ball 0 δ := by + simpa only [mem_ball, dist_zero_right, Complex.norm_real, Real.norm_eq_abs] using hlt + exact hs hmem hr + +/-- Every real zero has inverse-square summable multiplicity when all generalized +Laguerre inequalities hold and the origin is not a zero. -/ +theorem summable_analyticOrderNatAt_div_sq {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (hf0 : f 0 ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + Summable (fun r : {x : ℝ | f x = 0} => + (analyticOrderNatAt f (r : ℂ) : ℝ) / (r : ℝ) ^ 2) := by + have hne : f ≠ 0 := fun hzero => hf0 (congrFun hzero 0) + obtain ⟨δ, hδ, hr⟩ := exists_pos_le_abs_real_zero hf hf0 + exact (summable_analyticOrderNatAt_div_one_add_sq hf hc hne h).div_sq_of_abs_ge + (fun _ => Nat.cast_nonneg _) hδ (fun r => hr r r.property) + +/-- The natural-multiplicity canonical product satisfies the exact complex norm +summability hypothesis of the genus-one convergence theorems. -/ +theorem summable_analyticOrderNatAt_mul_norm_inv_sq {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) (hf0 : f 0 ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + Summable (fun r : {x : ℝ | f x = 0} => + (analyticOrderNatAt f (r : ℂ) : ℝ) * ‖(r : ℂ)⁻¹‖ ^ 2) := by + simpa only [norm_inv, Complex.norm_real, Real.norm_eq_abs, ← abs_inv, sq_abs, ← inv_pow, + div_eq_mul_inv] using summable_analyticOrderNatAt_div_sq hf hc hf0 h + +/-- The real linear correction in the genus-one Nevanlinna normalization is an +absolutely convergent series. -/ +theorem summable_analyticOrderNatAt_div_mul_one_add_sq {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) (hf0 : f 0 ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + Summable (fun r : {x : ℝ | f x = 0} => + (analyticOrderNatAt f (r : ℂ) : ℝ) / ((r : ℝ) * (1 + (r : ℝ) ^ 2))) := by + have hne : f ≠ 0 := fun hzero => hf0 (congrFun hzero 0) + obtain ⟨δ, hδ, hr⟩ := exists_pos_le_abs_real_zero hf hf0 + exact (summable_analyticOrderNatAt_div_one_add_sq hf hc hne h).div_mul_one_add_sq_of_abs_ge + (fun _ => Nat.cast_nonneg _) hδ (fun r => hr r r.property) + +end RealRooted diff --git a/RealRooted/Mathlib/Analysis/Analytic/CountableZeros.lean b/RealRooted/Mathlib/Analysis/Analytic/CountableZeros.lean new file mode 100644 index 000000000..44cef3dd1 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Analytic/CountableZeros.lean @@ -0,0 +1,45 @@ +/- +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.Analytic.Basic +public import Mathlib.Analysis.Calculus.FDeriv.Defs +public import Mathlib.Analysis.Complex.Basic +import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Countability of analytic zero sets + +The isolated-zero principle and the Lindelöf property show that the zeros of a +nonzero analytic function on a preconnected set are countable. +-/ + +public section + +open Set + +/-- The zeros of a function analytic on a preconnected set are countable unless +the function vanishes throughout that set. -/ +theorem AnalyticOnNhd.countable_zeroSet {𝕜 E : Type*} [NontriviallyNormedField 𝕜] + [HereditarilyLindelofSpace 𝕜] [NormedAddCommGroup E] [NormedSpace 𝕜 E] + {f : 𝕜 → E} {U : Set 𝕜} (hf : AnalyticOnNhd 𝕜 f U) (hU : IsPreconnected U) + (hne : ¬ EqOn f 0 U) : {z ∈ U | f z = 0}.Countable := by + have hz := (hf.eqOn_zero_or_eventually_ne_zero_of_preconnected hU).resolve_left hne + have hd : IsDiscrete ({z | f z = 0} ∩ U) := isDiscrete_of_codiscreteWithin hz + have hc := (HereditarilyLindelofSpace.isLindelof _).countable_of_isDiscrete hd + simpa only [inter_def, mem_ofPred_eq, and_comm] using hc + +/-- A nonzero entire complex function has a countable zero set. -/ +theorem Differentiable.countable_zeroSet {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hne : f ≠ 0) : {z | f z = 0}.Countable := by + have ha : AnalyticOnNhd ℂ f univ := fun z _ => hf.analyticAt z + have hn : ¬ EqOn f 0 univ := fun h => hne (funext fun z => h (mem_univ z)) + simpa only [mem_univ, true_and] using ha.countable_zeroSet isPreconnected_univ hn + +/-- The real zeros of a nonzero entire complex function form a countable set. -/ +theorem Differentiable.countable_real_zeroSet {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hne : f ≠ 0) : {x : ℝ | f x = 0}.Countable := + (hf.countable_zeroSet hne).preimage Complex.ofReal_injective diff --git a/RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Residue.lean b/RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Residue.lean new file mode 100644 index 000000000..72925ac9a --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Residue.lean @@ -0,0 +1,78 @@ +/- +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.Meromorphic.Order +public import Mathlib.Analysis.Complex.Basic +import TauCeti.Analysis.Contour.Argument.Principle + +/-! +# Logarithmic derivative limits at zeros and poles + +The residue of the logarithmic derivative is the meromorphic order. Along a +vertical approach to a real zero, the scaled imaginary part of the negative +logarithmic derivative tends to the zero multiplicity. +-/ + +public section + +open Complex Filter Set Topology + +/-- Multiplying the logarithmic derivative by the displacement removes its simple +pole and gives the meromorphic order as the limiting value. -/ +theorem MeromorphicAt.tendsto_sub_mul_logDeriv {f : ℂ → ℂ} {c : ℂ} {n : ℤ} + (hf : MeromorphicAt f c) (hn : meromorphicOrderAt f c = (n : WithTop ℤ)) : + Tendsto (fun z => (z - c) * _root_.logDeriv f z) (𝓝[≠] c) (𝓝 (n : ℂ)) := by + obtain ⟨g, hg, hgn, heq⟩ := TauCeti.Contour.logDeriv_eventuallyEq_principalPart hf hn + have hcont := (hg.logDeriv hgn).continuousAt + have hlim : Tendsto (fun z => (n : ℂ) + (z - c) * _root_.logDeriv g z) + (𝓝[≠] c) (𝓝 (n : ℂ)) := by + simpa only [id_eq, sub_self, zero_mul, add_zero] using tendsto_const_nhds.add + (((tendsto_id.sub_const c).mono_left nhdsWithin_le_nhds).mul + (hcont.tendsto.mono_left nhdsWithin_le_nhds)) + apply hlim.congr' + filter_upwards [heq, self_mem_nhdsWithin] with z hz hzc + rw [hz] + have hne : z - c ≠ 0 := sub_ne_zero.mpr hzc + field_simp + +/-- At a real point of finite meromorphic order, the scaled imaginary part of the +negative logarithmic derivative along the upper vertical ray tends to that order. -/ +theorem MeromorphicAt.tendsto_mul_im_neg_logDeriv {f : ℂ → ℂ} {r : ℝ} {n : ℤ} + (hf : MeromorphicAt f (r : ℂ)) + (hn : meromorphicOrderAt f (r : ℂ) = (n : WithTop ℤ)) : + Tendsto (fun y : ℝ => y * (-_root_.logDeriv f ((r : ℂ) + (y : ℂ) * I)).im) + (𝓝[>] (0 : ℝ)) (𝓝 (n : ℝ)) := by + have hp : Tendsto (fun y : ℝ => (r : ℂ) + (y : ℂ) * I) + (𝓝[>] (0 : ℝ)) (𝓝[≠] (r : ℂ)) := by + refine tendsto_nhdsWithin_iff.mpr ⟨?_, ?_⟩ + · have hcont : Continuous (fun y : ℝ => (r : ℂ) + (y : ℂ) * I) := by fun_prop + simpa using (hcont.tendsto 0).mono_left nhdsWithin_le_nhds + · filter_upwards [self_mem_nhdsWithin] with y hy + intro heq + have him := congrArg Complex.im heq + simp only [add_im, ofReal_im, mul_im, ofReal_re, I_im, I_re, + mul_one, mul_zero, zero_add, add_zero] at him + exact (ne_of_gt hy) him + have h := (hf.tendsto_sub_mul_logDeriv hn).comp hp + have hr := Complex.continuous_re.continuousAt.tendsto.comp h + convert hr using 1 + · ext y + simp only [Function.comp_apply, add_sub_cancel_left, mul_re, mul_im, + ofReal_re, ofReal_im, I_re, I_im, neg_im] + ring + +/-- The upper vertical logarithmic-derivative limit at an analytic point of +finite vanishing order is its natural zero multiplicity, including multiplicity zero. -/ +theorem AnalyticAt.tendsto_mul_im_neg_logDeriv {f : ℂ → ℂ} {r : ℝ} + (hf : AnalyticAt ℂ f (r : ℂ)) (hfin : analyticOrderAt f (r : ℂ) ≠ ⊤) : + Tendsto (fun y : ℝ => y * (-_root_.logDeriv f ((r : ℂ) + (y : ℂ) * I)).im) + (𝓝[>] (0 : ℝ)) (𝓝 (analyticOrderNatAt f (r : ℂ) : ℝ)) := by + have hn : meromorphicOrderAt f (r : ℂ) = + ((analyticOrderNatAt f (r : ℂ) : ℤ) : WithTop ℤ) := by + rw [hf.meromorphicOrderAt_eq, ← Nat.cast_analyticOrderNatAt hfin] + simp + simpa only [Int.cast_natCast] using hf.meromorphicAt.tendsto_mul_im_neg_logDeriv hn diff --git a/RealRooted/Mathlib/Analysis/Normed/Field/WeightedInverse.lean b/RealRooted/Mathlib/Analysis/Normed/Field/WeightedInverse.lean new file mode 100644 index 000000000..e1ef83e89 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Normed/Field/WeightedInverse.lean @@ -0,0 +1,64 @@ +/- +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.Topology.Algebra.InfiniteSum.Defs +public import Mathlib.Topology.MetricSpace.Pseudo.Defs +import Mathlib.Analysis.Normed.Group.InfiniteSum + +/-! +# Weighted inverse sums away from zero + +When the real parameters stay away from zero, summability with the bounded +weight `1 / (1 + r^2)` implies inverse-square summability and convergence of the +linear correction used in genus-one canonical products. +-/ + +public section + +/-- Away from zero, a summable sequence of nonnegative weights divided by +`1 + r^2` remains summable when divided by `r^2`. -/ +theorem Summable.div_sq_of_abs_ge {ι : Type*} {a r : ι → ℝ} {δ : ℝ} + (hs : Summable (fun i => a i / (1 + r i ^ 2))) (ha : ∀ i, 0 ≤ a i) + (hδ : 0 < δ) (hr : ∀ i, δ ≤ |r i|) : + Summable (fun i => a i / r i ^ 2) := by + apply Summable.of_nonneg_of_le (fun i => div_nonneg (ha i) (sq_nonneg _)) + (f := fun i => (1 + 1 / δ ^ 2) * (a i / (1 + r i ^ 2))) + · intro i + have hsq : δ ^ 2 ≤ r i ^ 2 := by + simpa only [sq_abs] using pow_le_pow_left₀ hδ.le (hr i) 2 + have hδsq : 0 < δ ^ 2 := sq_pos_of_pos hδ + have hrsq : 0 < r i ^ 2 := hδsq.trans_le hsq + have hp : 1 + r i ^ 2 ≠ 0 := by positivity + have hratio : (1 + r i ^ 2) / r i ^ 2 ≤ 1 + 1 / δ ^ 2 := by + rw [add_div, div_self hrsq.ne'] + linarith [one_div_le_one_div_of_le hδsq hsq] + calc + a i / r i ^ 2 = (a i / (1 + r i ^ 2)) * ((1 + r i ^ 2) / r i ^ 2) := by + field_simp + _ ≤ (a i / (1 + r i ^ 2)) * (1 + 1 / δ ^ 2) := + mul_le_mul_of_nonneg_left hratio (div_nonneg (ha i) (by positivity)) + _ = _ := mul_comm _ _ + · exact hs.mul_left _ + +/-- The signed linear correction in a genus-one product converges when its real +parameters stay away from zero and the corresponding finite-measure weights sum. -/ +theorem Summable.div_mul_one_add_sq_of_abs_ge {ι : Type*} {a r : ι → ℝ} {δ : ℝ} + (hs : Summable (fun i => a i / (1 + r i ^ 2))) (ha : ∀ i, 0 ≤ a i) + (hδ : 0 < δ) (hr : ∀ i, δ ≤ |r i|) : + Summable (fun i => a i / (r i * (1 + r i ^ 2))) := by + apply (hs.mul_left (1 / δ)).of_norm_bounded + intro i + have habs : 0 < |r i| := hδ.trans_le (hr i) + have hp : 0 < 1 + r i ^ 2 := by positivity + rw [Real.norm_eq_abs, abs_div, abs_of_nonneg (ha i), abs_mul, abs_of_pos hp] + calc + a i / (|r i| * (1 + r i ^ 2)) = + (a i / (1 + r i ^ 2)) * (1 / |r i|) := by field_simp + _ ≤ (a i / (1 + r i ^ 2)) * (1 / δ) := + mul_le_mul_of_nonneg_left (one_div_le_one_div_of_le hδ (hr i)) + (div_nonneg (ha i) hp.le) + _ = _ := mul_comm _ _ diff --git a/RealRooted/Mathlib/MeasureTheory/Integral/Bochner/Countable.lean b/RealRooted/Mathlib/MeasureTheory/Integral/Bochner/Countable.lean new file mode 100644 index 000000000..52f9b211a --- /dev/null +++ b/RealRooted/Mathlib/MeasureTheory/Integral/Bochner/Countable.lean @@ -0,0 +1,63 @@ +/- +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.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.MeasureTheory.Integral.IntegrableOn +import Mathlib.MeasureTheory.Integral.Bochner.SumMeasure + +/-! +# Integrals on countable sets as convergent atomic sums + +These strengthen the countable-integral formulas to `HasSum`, so summability of +the atomic series is retained in subsequent arguments. +-/ + +public section + +namespace MeasureTheory + +variable {X E : Type*} [MeasurableSpace X] [MeasurableSingletonClass X] + [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] + {μ : Measure X} {f : X → E} + +/-- The integral on a countable space is the sum of the weighted values at its +atoms, with convergence included. -/ +theorem hasSum_integral_countable [Countable X] (hf : Integrable f μ) : + HasSum (fun x => μ.real {x} • f x) (∫ x, f x ∂μ) := by + have hf' : Integrable f (Measure.sum fun x => μ {x} • Measure.dirac x) := by + rwa [Measure.sum_smul_dirac] + simpa only [integral_smul_measure, integral_dirac, Measure.sum_smul_dirac, + measureReal_def] using hasSum_integral_measure hf' + +/-- An integral over a countable set is the convergent sum over its atoms. -/ +theorem hasSum_setIntegral_countable (f : X → E) {s : Set X} (hs : s.Countable) + (hf : IntegrableOn f s μ) : + HasSum (fun x : s => μ.real {(x : X)} • f x) (∫ x in s, f x ∂μ) := by + have hi : Countable s := Set.countable_coe_iff.mpr hs + have hf' : Integrable (fun x : s => f x) (Measure.comap Subtype.val μ) := by + rw [IntegrableOn, ← map_comap_subtype_coe, integrable_map_measure] at hf + · exact hf + · exact hf.aestronglyMeasurable + · exact Measurable.aemeasurable measurable_subtype_coe + · exact hs.measurableSet + convert hasSum_integral_countable hf' using 1 + · ext x + rw [measureReal_def, measureReal_def, Measure.comap_apply Subtype.val + Subtype.coe_injective (fun t ht => MeasurableSet.subtype_image hs.measurableSet ht) + _ (MeasurableSet.singleton x)] + simp + · exact (integral_subtype_comap hs.measurableSet f).symm + +/-- A measure carried by a countable set integrates by a convergent sum of its +atomic weights times the values of the integrand. -/ +theorem hasSum_integral_of_ae_mem_countable {s : Set X} (hs : s.Countable) + (hμ : ∀ᵐ x ∂μ, x ∈ s) (hf : Integrable f μ) : + HasSum (fun x : s => μ.real {(x : X)} • f x) (∫ x, f x ∂μ) := by + simpa only [Measure.restrict_eq_self_of_ae_mem hμ] using + hasSum_setIntegral_countable f hs hf.integrableOn + +end MeasureTheory From 4183f9e2392831f20e85a22fdf6b645d5d16c367 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 15:38:58 +0000 Subject: [PATCH 20/56] feat: prove unrestricted LP root division and strict Jensen cases --- RealRooted/Hermite/PoulainJensenSimple.lean | 84 +++++++++++++ .../LaguerrePolya/InfiniteZeros.lean | 67 +++++++++++ .../LaguerrePolya/RootDivision.lean | 110 ++++++++++++++++++ .../LaguerrePolya/StrictOperator.lean | 69 +++++++++++ RealRooted/SimpleRoots/Reflection.lean | 59 ++++++++++ 5 files changed, 389 insertions(+) create mode 100644 RealRooted/Hermite/PoulainJensenSimple.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteZeros.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/RootDivision.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/StrictOperator.lean create mode 100644 RealRooted/SimpleRoots/Reflection.lean diff --git a/RealRooted/Hermite/PoulainJensenSimple.lean b/RealRooted/Hermite/PoulainJensenSimple.lean new file mode 100644 index 000000000..9b38902ed --- /dev/null +++ b/RealRooted/Hermite/PoulainJensenSimple.lean @@ -0,0 +1,84 @@ +module + +public import RealRooted.Hermite.Poulain +public import RealRooted.SimpleRoots +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.Hermite.PoulainSimple +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Closure +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct +import RealRooted.SimpleRoots.Reflection +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff + +/-! +# Simple Jensen roots for polynomial symbols + +A real-rooted polynomial symbol nonzero at zero has simple Jensen roots in +every degree, including bounds exceeding its own degree. The reflected +differential image may have a multiple zero at the origin; reflection removes +it. This is the polynomial case of Craven–Csordas (1994), Proposition 4.1(1). +It does not assert strictness for arbitrary polynomial inputs. +-/ + +public section + +open Polynomial Complex RealRooted.HermitePoulain + +namespace RealRooted + +/-- The Taylor differential operator of a polynomial symbol agrees with the +finite Hermite–Poulain operator. -/ +theorem taylorDifferentialOperator_polynomial (q p : ℝ[X]) : + taylorDifferentialOperator (fun z => (q.map ofRealHom).eval z) p = + applyAsDifferentialOperator q p := by + rw [taylorDifferentialOperator, applyAsDifferentialOperator_eq_sum_range_right] + apply Finset.sum_congr rfl + intro k _ + have hk : (k.factorial : ℂ) ≠ 0 := by exact_mod_cast k.factorial_ne_zero + simp [iteratedDeriv_fun_eval, eval_zero_iterate_derivative, + mul_div_cancel_left₀ _ hk] + +/-- The differential image of a pure power has no multiple nonzero root +when the real-rooted symbol is nonzero at zero. -/ +theorem simpleExcept_zero_operator_X_pow {q : ℝ[X]} + (hq : q.Splits) (hq0 : q.coeff 0 ≠ 0) (d : ℕ) : + HasSimpleRootsExcept (applyAsDifferentialOperator q (X ^ d)) 0 := by + have hF0 : applyAsDifferentialOperator q (X ^ d) ≠ 0 := by + rw [← taylorDifferentialOperator_polynomial] + apply taylorDifferentialOperator_ne_zero _ (pow_ne_zero d X_ne_zero) + simpa [coeff_zero_eq_eval_zero] using hq0 + intro r hr0 hr + have hpos := (rootMultiplicity_pos hF0).mpr hr + by_contra hnot + have hm : 2 ≤ (applyAsDifferentialOperator q (X ^ d)).rootMultiplicity r := by lia + have hback := rootMultiplicity_operator_eq_add_natDegree hq hq0 + (pow_ne_zero d X_ne_zero) (Splits.X.pow d) hm + have hmult : (X ^ d : ℝ[X]).rootMultiplicity r = 0 := by + apply rootMultiplicity_eq_zero + simpa only [IsRoot.def, eval_pow, eval_X] using pow_ne_zero d hr0 + lia + +/-- Every Jensen polynomial of a real-rooted polynomial symbol with nonzero +constant coefficient has simple real roots, without a degree restriction. -/ +theorem simple_jensenPolynomial_polynomial {q : ℝ[X]} + (hq : q.Splits) (hq0 : q.coeff 0 ≠ 0) (d : ℕ) : + IsSimpleRealRooted (jensenPolynomial d (fun k => (k.factorial : ℝ) * q.coeff k)) := by + have hLP : IsLaguerrePolya (fun z => (q.map ofRealHom).eval z) := by + apply IsLaguerrePolya.of_forall_approx + intro R ε hε + exact ⟨q, Or.inr hq, fun _ _ => by simpa using hε⟩ + have hgamma : (fun k => (iteratedDeriv k (fun z => (q.map ofRealHom).eval z) 0).re) = + (fun k => (k.factorial : ℝ) * q.coeff k) := by + funext k + simp [iteratedDeriv_fun_eval, eval_zero_iterate_derivative] + have hsplit := hLP.jensenPolynomial_splits d + rw [hgamma] at hsplit + have hsimple := simpleExcept_zero_operator_X_pow hq hq0 d + rw [← taylorDifferentialOperator_polynomial, taylorDifferentialOperator_X_pow, + hgamma] at hsimple + have hconst : (jensenPolynomial d (fun k => (k.factorial : ℝ) * q.coeff k)).coeff 0 ≠ 0 := by + simpa [coeff_jensenPolynomial] using hq0 + refine ⟨?_, hsplit, hsimple.of_reflect hconst hsplit (natDegree_jensenPolynomial_le d _)⟩ + intro hz + exact hconst (by simp [hz]) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteZeros.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteZeros.lean new file mode 100644 index 000000000..e18af0f0e --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteZeros.lean @@ -0,0 +1,67 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.RootDivision + +/-! +# Polynomial factors from infinitely many LP zeros + +An LP function with infinitely many distinct real zeros admits real-rooted +polynomial factors of every prescribed degree, with LP cofactors. No growth +bound or canonical-product representation is required. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- Removing one real zero leaves infinitely many others and a nonzero value at zero. -/ +private theorem exists_sub_mul_of_infinite_zeros {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hf0 : f 0 ≠ 0) + (hinf : Set.Infinite {r : ℝ | f r = 0}) : + ∃ (r : ℝ) (g : ℂ → ℂ), r ≠ 0 ∧ IsLaguerrePolya g ∧ g 0 ≠ 0 ∧ + Set.Infinite {u : ℝ | g u = 0} ∧ ∀ z, f z = (z - r) * g z := by + obtain ⟨r, hr⟩ := hinf.nonempty + have hr0 : r ≠ 0 := by intro hz; subst r; exact hf0 (by simpa using hr) + let g := dslope f (r : ℂ) + have hfactor (z : ℂ) : f z = (z - r) * g z := by + simpa only [smul_eq_mul] using (sub_smul_dslope_of_zero hr z).symm + have hg0 : g 0 ≠ 0 := by + intro hzero + exact hf0 (by rw [hfactor, hzero, mul_zero]) + refine ⟨r, g, hr0, hf.dslope_of_eq_zero hr, hg0, ?_, hfactor⟩ + apply (hinf.sdiff (Set.finite_singleton r)).mono + intro u hu + have hur : u ≠ r := by simpa using hu.2 + have hne : (u : ℂ) - r ≠ 0 := sub_ne_zero.mpr (by exact_mod_cast hur) + have hprod : ((u : ℂ) - r) * g u = 0 := by rw [← hfactor]; exact hu.1 + exact (mul_eq_zero.mp hprod).resolve_left hne + +/-- Infinitely many real LP zeros supply polynomial factors of any exact +degree, with LP cofactors and both factors nonzero at the origin. -/ +theorem IsLaguerrePolya.exists_polynomial_factor_of_infinite_zeros {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hf0 : f 0 ≠ 0) + (hinf : Set.Infinite {r : ℝ | f r = 0}) (N : ℕ) : + ∃ (q : ℝ[X]) (g : ℂ → ℂ), q.Splits ∧ q.coeff 0 ≠ 0 ∧ q.natDegree = N ∧ + IsLaguerrePolya g ∧ g 0 ≠ 0 ∧ ∀ z, f z = (q.map ofRealHom).eval z * g z := by + induction N generalizing f with + | zero => + exact ⟨1, f, Splits.one, by simp, by simp, hf, hf0, by simp⟩ + | succ N ih => + obtain ⟨r, g, hr, hg, hg0, hginf, hfactor⟩ := + exists_sub_mul_of_infinite_zeros hf hf0 hinf + obtain ⟨q, t, hq, hq0, hdegree, ht, ht0, hgt⟩ := ih hg hg0 hginf + have hqne : q ≠ 0 := by intro hz; simp [hz] at hq0 + refine ⟨(X - C r) * q, t, (Splits.X_sub_C r).mul hq, ?_, ?_, ht, ht0, ?_⟩ + · rw [coeff_zero_eq_eval_zero, eval_mul, eval_sub, eval_X, eval_C, + zero_sub, ← coeff_zero_eq_eval_zero] + exact mul_ne_zero (neg_ne_zero.mpr hr) hq0 + · rw [natDegree_mul (X_sub_C_ne_zero r) hqne, natDegree_X_sub_C, hdegree] + lia + · intro z + rw [hfactor, hgt] + simp [Polynomial.map_mul, Polynomial.map_sub, mul_assoc] + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/RootDivision.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/RootDivision.lean new file mode 100644 index 000000000..8a2252842 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/RootDivision.lean @@ -0,0 +1,110 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import Mathlib.Analysis.Calculus.DSlope +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import Mathlib.Analysis.Complex.RemovableSingularity + +/-! +# Removing real factors from Laguerre–Pólya functions + +Division by an actual real zero preserves the Laguerre–Pólya class, without +any order-of-growth restriction. The proof removes the corresponding factor +from each Jensen polynomial, rather than assuming a canonical product. +-/ + +public section + +open Polynomial Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- Conjugation symmetry descends through multiplication by the variable. -/ +private theorem conj_of_id_mul {g : ℂ → ℂ} (hg : Continuous g) + (hconj : ∀ z, conj z * g (conj z) = conj (z * g z)) : + ∀ z, g (conj z) = conj (g z) := by + have heq : (fun z => g (conj z)) = fun z => conj (g z) := by + apply Continuous.ext_on (dense_compl_singleton (0 : ℂ)) + (hg.comp continuous_conj) (continuous_conj.comp hg) + intro z hz + have hz0 : z ≠ 0 := by simpa using hz + have hc := hconj z + rw [map_mul] at hc + have hcz : conj z ≠ 0 := by simpa using hz0 + exact mul_left_cancel₀ hcz hc + exact fun z => congrFun heq z + +/-- The Jensen polynomial of `z g(z)` is a scalar times `X` times the +preceding-degree Jensen polynomial of `g`. -/ +theorem jensenPolynomial_id_mul {g : ℂ → ℂ} (hg : Differentiable ℂ g) (d : ℕ) : + jensenPolynomial (d + 1) (fun k => (iteratedDeriv k (fun z => z * g z) 0).re) = + C (d + 1 : ℝ) * (X * jensenPolynomial d (fun k => (iteratedDeriv k g 0).re)) := by + have hder (k : ℕ) : + iteratedDeriv (k + 1) (fun z => z * g z) 0 = (k + 1 : ℂ) * iteratedDeriv k g 0 := by + rw [iteratedDeriv_fun_mul (by fun_prop) hg.contDiff.contDiffAt] + simp [iteratedDeriv_fun_id_zero, mul_ite, ite_mul] + ext k + cases k with + | zero => simp + | succ k => + simp only [coeff_jensenPolynomial, coeff_C_mul, coeff_X_mul, hder] + by_cases hk : k ≤ d + · rw [ite_eq_left (by lia), ite_eq_left hk] + have hchoose : ((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 + simp only [mul_re, add_re, natCast_re, one_re, add_im, natCast_im, one_im, + add_zero, zero_mul, sub_zero] + linear_combination (iteratedDeriv k g 0).re * hchoose + · rw [ite_eq_right (by lia), ite_eq_right hk, mul_zero] + +/-- Removing a variable factor from an entire LP function preserves the class. -/ +theorem IsLaguerrePolya.of_id_mul {g : ℂ → ℂ} + (h : IsLaguerrePolya (fun z => z * g z)) (hg : Differentiable ℂ g) : + IsLaguerrePolya g := by + have hconj := conj_of_id_mul hg.continuous h.conj + apply (isLaguerrePolya_iff_jensenPolynomial_splits hg + (fun k => (ofReal_re_iteratedDeriv_zero hconj k).symm)).mpr + intro d + have hs := h.jensenPolynomial_splits (d + 1) + rw [jensenPolynomial_id_mul hg] at hs + have hc : (C (d + 1 : ℝ) : ℝ[X]) ≠ 0 := C_ne_zero.mpr (by positivity) + exact splits_X_mul.mp ((splits_mul_iff_right hc (Splits.C _)).mp hs) + +/-- Removing any real linear factor from an entire LP function preserves the class. -/ +theorem IsLaguerrePolya.of_sub_mul {g : ℂ → ℂ} (r : ℝ) + (h : IsLaguerrePolya (fun z => (z - r) * g z)) (hg : Differentiable ℂ g) : + IsLaguerrePolya g := by + have hs : IsLaguerrePolya (fun z => z * g (z + r)) := by + simpa using h.comp_affine_real 1 r + have hdiv := hs.of_id_mul (hg.comp (by fun_prop)) + simpa using hdiv.comp_affine_real 1 (-r) + +/-- Any power of a real linear factor can be removed from an entire LP function. -/ +theorem IsLaguerrePolya.of_sub_pow_mul {g : ℂ → ℂ} (r : ℝ) (m : ℕ) + (h : IsLaguerrePolya (fun z => (z - r) ^ m * g z)) (hg : Differentiable ℂ g) : + IsLaguerrePolya g := by + induction m with + | zero => simpa using h + | succ m ih => + have hs : IsLaguerrePolya (fun z => (z - r) * ((z - r) ^ m * g z)) := by + convert h using 1 + funext z + ring + exact ih (hs.of_sub_mul r (by fun_prop)) + +/-- Dividing by an actual real zero, with the removable value filled by the +derivative, preserves LP without any growth hypothesis. -/ +theorem IsLaguerrePolya.dslope_of_eq_zero {f : ℂ → ℂ} (hf : IsLaguerrePolya f) + {r : ℝ} (hr : f r = 0) : IsLaguerrePolya (dslope f (r : ℂ)) := by + have hd : Differentiable ℂ (dslope f (r : ℂ)) := + differentiableOn_univ.mp ((differentiableOn_dslope (by simp)).mpr + hf.differentiable.differentiableOn) + apply IsLaguerrePolya.of_sub_mul r _ hd + convert hf using 1 + funext z + simpa only [smul_eq_mul] using sub_smul_dslope_of_zero hr z + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/StrictOperator.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/StrictOperator.lean new file mode 100644 index 000000000..f78913385 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/StrictOperator.lean @@ -0,0 +1,69 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import RealRooted.SimpleRoots +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteZeros +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Hermite.PoulainSimple +import RealRooted.SimpleRoots.Reflection +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Strict differential operators from infinitely many LP zeros + +Infinitely many real zeros provide arbitrarily long finite differential +factors. Multiplicity descent then makes every nonzero real-rooted polynomial +input simple. This proves the infinite-zero case of the strict operator +argument of Craven–Csordas (1994), without a growth assumption. +-/ + +public section + +open Polynomial Complex RealRooted.HermitePoulain + +namespace RealRooted + +/-- An LP symbol with infinitely many distinct real zeros and nonzero value +at zero makes every nonzero real-rooted polynomial input simple-real-rooted. -/ +theorem IsLaguerrePolya.simple_operator_of_infinite_zeros {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hf0 : f 0 ≠ 0) + (hinf : Set.Infinite {r : ℝ | f r = 0}) + {p : ℝ[X]} (hp0 : p ≠ 0) (hp : p.Splits) : + IsSimpleRealRooted (taylorDifferentialOperator f p) := by + obtain ⟨q, g, hq, hq0, hdegree, hg, hg0, hfactor⟩ := + hf.exists_polynomial_factor_of_infinite_zeros hf0 hinf (p.natDegree - 1) + have hgre : (g 0).re ≠ 0 := by + intro hz + have hreal := ofReal_re_iteratedDeriv_zero hg.conj 0 + simp only [iteratedDeriv_zero, hz, ofReal_zero] at hreal + exact hg0 hreal.symm + rw [show f = (fun z => (q.map ofRealHom).eval z * g z) from funext hfactor, + taylorDifferentialOperator_polynomial_mul hg.differentiable] + apply isSimpleRealRooted_applyAsDifferentialOperator hq hq0 + (taylorDifferentialOperator_ne_zero hgre hp0) (hg.taylorDifferentialOperator_splits hp) + rw [natDegree_taylorDifferentialOperator hgre hp0, hdegree] + +/-- All Jensen polynomials of an LP symbol with infinitely many distinct +real zeros are simple when its initial coefficient is nonzero. -/ +theorem IsLaguerrePolya.simple_jensen_of_infinite_zeros {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hf0 : f 0 ≠ 0) + (hinf : Set.Infinite {r : ℝ | f r = 0}) (d : ℕ) : + IsSimpleRealRooted (jensenPolynomial d (fun k => (iteratedDeriv k f 0).re)) := by + have hsimple := hf.simple_operator_of_infinite_zeros hf0 hinf + (pow_ne_zero d X_ne_zero) (Splits.X.pow d) + rw [taylorDifferentialOperator_X_pow] at hsimple + have hconst : (jensenPolynomial d (fun k => (iteratedDeriv k f 0).re)).coeff 0 ≠ 0 := by + simp only [coeff_jensenPolynomial, Nat.zero_le, ite_true, Nat.choose_zero_right, + Nat.cast_one, one_mul, iteratedDeriv_zero] + intro hz + have hreal := ofReal_re_iteratedDeriv_zero hf.conj 0 + simp only [iteratedDeriv_zero, hz, ofReal_zero] at hreal + exact hf0 hreal.symm + refine ⟨?_, hf.jensenPolynomial_splits d, + hsimple.2.2.of_reflect hconst (hf.jensenPolynomial_splits d) + (natDegree_jensenPolynomial_le d _)⟩ + intro hz + exact hconst (by simp [hz]) + +end RealRooted diff --git a/RealRooted/SimpleRoots/Reflection.lean b/RealRooted/SimpleRoots/Reflection.lean new file mode 100644 index 000000000..61660614e --- /dev/null +++ b/RealRooted/SimpleRoots/Reflection.lean @@ -0,0 +1,59 @@ +module + +public import RealRooted.SimpleRoots +public import Mathlib.Algebra.Polynomial.Reverse +import RealRooted.Mathlib.Algebra.Polynomial.Reverse + +/-! +# Simple roots under degree reflection + +Reflection can add a multiple zero when the degree bound exceeds the actual +degree. Simplicity away from that zero is sufficient to recover simplicity of +the original polynomial when its constant coefficient is nonzero. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Simplicity away from zero after reflection implies simplicity before +reflection, provided the original polynomial has nonzero constant coefficient. -/ +theorem HasSimpleRootsExcept.of_reflect {p : ℝ[X]} {d : ℕ} + (hsimple : HasSimpleRootsExcept (reflect d p) 0) + (hp0 : p.coeff 0 ≠ 0) (hp : p.Splits) (hd : p.natDegree ≤ d) : + HasSimpleRoots p := by + have hpne : p ≠ 0 := by intro hz; simp [hz] at hp0 + have hrevne : p.reverse ≠ 0 := fun h => hpne (reverse_eq_zero.mp h) + have hprod : X ^ (d - p.natDegree) * p.reverse ≠ 0 := + mul_ne_zero (pow_ne_zero _ X_ne_zero) hrevne + apply HasSimpleRoots.of_roots_nodup hpne + apply (Multiset.nodup_map_iff_of_injective inv_injective).mp + rw [← roots_reverse_eq_map_inv hp hp0, Multiset.nodup_iff_count_le_one] + intro r + rw [count_roots] + by_cases hr : p.reverse.IsRoot r + · have hr0 : r ≠ 0 := by + intro hz + subst r + apply leadingCoeff_ne_zero.mpr hpne + simpa only [IsRoot.def, ← coeff_zero_eq_eval_zero, coeff_zero_reverse] using hr + have hroot : (reflect d p).IsRoot r := by + rw [reflect_eq_X_pow_mul_reverse p hd, IsRoot.def, eval_mul, hr.eq_zero, mul_zero] + have hmult := hsimple r hr0 hroot + rw [reflect_eq_X_pow_mul_reverse p hd, rootMultiplicity_mul hprod, + rootMultiplicity_eq_zero (p := X ^ (d - p.natDegree)) + (by simpa only [IsRoot.def, eval_pow, eval_X] using pow_ne_zero (d - p.natDegree) hr0), + zero_add] at hmult + exact hmult.le + · simp [rootMultiplicity_eq_zero hr] + +/-- Simple reflected roots transfer back even when the reflection bound is not exact. -/ +theorem HasSimpleRoots.of_reflect {p : ℝ[X]} {d : ℕ} + (hsimple : HasSimpleRoots (reflect d p)) + (hp0 : p.coeff 0 ≠ 0) (hp : p.Splits) (hd : p.natDegree ≤ d) : + HasSimpleRoots p := + (hsimple.hasSimpleRootsExcept 0).of_reflect hp0 hp hd + +end RealRooted From 559d30c3d803ccb3bc395d0b92dae0f9c2520987 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 15:53:03 +0000 Subject: [PATCH 21/56] feat: integrate atomic Laguerre representations and strict Jensen criteria --- RealRooted.lean | 12 ++++++ RealRooted/Hermite/PoulainJensenSimple.lean | 3 +- .../LaguerrePolya/JensenSimple.lean | 21 ++-------- .../LaguerrePolya/RootDivision.lean | 4 +- .../LaguerrePolya/StrictOperator.lean | 3 +- RealRooted/Production.lean | 12 ++++++ RealRooted/SimpleRoots/Reflection.lean | 2 +- scripts/import_architecture.json | 4 +- scripts/mathlib_shims.json | 40 +++++++++++++++++++ 9 files changed, 77 insertions(+), 24 deletions(-) diff --git a/RealRooted.lean b/RealRooted.lean index 85044f60d..f65ae6294 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2497,3 +2497,15 @@ public import RealRooted.LaguerreInequalities.Turan public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Turan public import RealRooted.RiemannHypothesis.Turan public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeICriterion +public import RealRooted.LaguerreInequalities.AtomMultiplicity +public import RealRooted.LaguerreInequalities.AtomicRepresentation +public import RealRooted.LaguerreInequalities.InverseSquare +public import RealRooted.Mathlib.Analysis.Analytic.CountableZeros +public import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Residue +public import RealRooted.Mathlib.Analysis.Normed.Field.WeightedInverse +public import RealRooted.Mathlib.MeasureTheory.Integral.Bochner.Countable +public import RealRooted.Hermite.PoulainJensenSimple +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteZeros +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.RootDivision +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.StrictOperator +public import RealRooted.SimpleRoots.Reflection diff --git a/RealRooted/Hermite/PoulainJensenSimple.lean b/RealRooted/Hermite/PoulainJensenSimple.lean index 9b38902ed..e96c3409b 100644 --- a/RealRooted/Hermite/PoulainJensenSimple.lean +++ b/RealRooted/Hermite/PoulainJensenSimple.lean @@ -2,7 +2,8 @@ module public import RealRooted.Hermite.Poulain public import RealRooted.SimpleRoots -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen import RealRooted.Hermite.PoulainSimple import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Closure import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean index 998c06a73..7eb76a199 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSimple.lean @@ -9,7 +9,7 @@ import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PolynomialFactors import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative -import RealRooted.Mathlib.Algebra.Polynomial.Reverse +import RealRooted.SimpleRoots.Reflection import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star /-! @@ -49,21 +49,6 @@ theorem IsLaguerrePolya.simple_taylorDifferentialOperator {f : ℂ → ℂ} {rho (taylorDifferentialOperator_ne_zero hgre hp0) (hg.taylorDifferentialOperator_splits hp) rwa [natDegree_taylorDifferentialOperator hgre hp0] -/-- Simple roots of a degree-reflection transfer back when the original has -nonzero constant coefficient, even if the reflection bound exceeds its degree. -/ -private theorem simple_of_reflect {p : ℝ[X]} {d : ℕ} - (hp0 : p.coeff 0 ≠ 0) (hp : p.Splits) (hd : p.natDegree ≤ d) - (hsimple : HasSimpleRoots (reflect d p)) : HasSimpleRoots p := by - have hpne : p ≠ 0 := by intro hz; simp [hz] at hp0 - have hrev : p.reverse ≠ 0 := fun h => hpne (reverse_eq_zero.mp h) - have hroots := hsimple.roots_nodup - rw [reflect_eq_X_pow_mul_reverse p hd, - roots_mul (mul_ne_zero (pow_ne_zero _ X_ne_zero) hrev)] at hroots - have hnodup := (Multiset.nodup_add.mp hroots).2.1 - rw [roots_reverse_eq_map_inv hp hp0] at hnodup - exact HasSimpleRoots.of_roots_nodup hpne - ((Multiset.nodup_map_iff_of_injective inv_injective).mp hnodup) - /-- Every Jensen polynomial of a nonpolynomial LP symbol of order below one and nonzero initial coefficient has simple real roots. The final coefficient may vanish, so no exact-degree hypothesis is imposed. -/ @@ -82,8 +67,8 @@ theorem IsLaguerrePolya.simple_jensenPolynomial {f : ℂ → ℂ} {rho : ℝ} simp only [iteratedDeriv_zero, hz, ofReal_zero] at hreal exact hf0 hreal.symm refine ⟨?_, hf.jensenPolynomial_splits d, - simple_of_reflect hconst (hf.jensenPolynomial_splits d) - (natDegree_jensenPolynomial_le d _) hsimple.2.2⟩ + hsimple.2.2.of_reflect hconst (hf.jensenPolynomial_splits d) + (natDegree_jensenPolynomial_le d _)⟩ intro hz exact hconst (by simp [hz]) diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/RootDivision.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/RootDivision.lean index 8a2252842..bb9d2517b 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/RootDivision.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/RootDivision.lean @@ -1,7 +1,9 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs public import Mathlib.Analysis.Calculus.DSlope +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star import Mathlib.Analysis.Complex.RemovableSingularity diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/StrictOperator.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/StrictOperator.lean index f78913385..50b12d9c1 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/StrictOperator.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/StrictOperator.lean @@ -1,6 +1,7 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen public import RealRooted.SimpleRoots import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteZeros import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index 2ed58e4b6..6de88d95e 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2423,6 +2423,18 @@ public import RealRooted.LaguerreInequalities.Turan public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Turan public import RealRooted.RiemannHypothesis.Turan public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeICriterion +public import RealRooted.LaguerreInequalities.AtomMultiplicity +public import RealRooted.LaguerreInequalities.AtomicRepresentation +public import RealRooted.LaguerreInequalities.InverseSquare +public import RealRooted.Mathlib.Analysis.Analytic.CountableZeros +public import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Residue +public import RealRooted.Mathlib.Analysis.Normed.Field.WeightedInverse +public import RealRooted.Mathlib.MeasureTheory.Integral.Bochner.Countable +public import RealRooted.Hermite.PoulainJensenSimple +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteZeros +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.RootDivision +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.StrictOperator +public import RealRooted.SimpleRoots.Reflection /-! # RealRooted production umbrella diff --git a/RealRooted/SimpleRoots/Reflection.lean b/RealRooted/SimpleRoots/Reflection.lean index 61660614e..7337a44c2 100644 --- a/RealRooted/SimpleRoots/Reflection.lean +++ b/RealRooted/SimpleRoots/Reflection.lean @@ -1,7 +1,7 @@ module public import RealRooted.SimpleRoots -public import Mathlib.Algebra.Polynomial.Reverse +import Mathlib.Algebra.Polynomial.Reverse import RealRooted.Mathlib.Algebra.Polynomial.Reverse /-! diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index 3a0cdd400..a064743b1 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2487 + "max_modules": 2499 }, "RealRooted.Production": { - "max_modules": 2415 + "max_modules": 2427 }, "RealRooted.Tactic.Examples": { "max_modules": 844 diff --git a/scripts/mathlib_shims.json b/scripts/mathlib_shims.json index c2082dbb6..9e645add8 100644 --- a/scripts/mathlib_shims.json +++ b/scripts/mathlib_shims.json @@ -3849,6 +3849,46 @@ ], "note": "Vertical imaginary-part boundary limits recover the atoms of a finite Nevanlinna measure.", "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Analytic/CountableZeros.lean" + ], + "modules": [ + "Mathlib.Analysis.Analytic.CountableZeros" + ], + "note": "Analytic zeros, logarithmic residues, or convergent atomic-sum infrastructure for canonical products.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Residue.lean" + ], + "modules": [ + "Mathlib.Analysis.Calculus.LogDeriv.Residue" + ], + "note": "Analytic zeros, logarithmic residues, or convergent atomic-sum infrastructure for canonical products.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Normed/Field/WeightedInverse.lean" + ], + "modules": [ + "Mathlib.Analysis.Normed.Field.WeightedInverse" + ], + "note": "Analytic zeros, logarithmic residues, or convergent atomic-sum infrastructure for canonical products.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/MeasureTheory/Integral/Bochner/Countable.lean" + ], + "modules": [ + "Mathlib.MeasureTheory.Integral.Bochner.Countable" + ], + "note": "Analytic zeros, logarithmic residues, or convergent atomic-sum infrastructure for canonical products.", + "speculative": true } ] } From ea71e143d872f6ba5e06363d8c62fa0abbb73265 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 15:50:10 +0000 Subject: [PATCH 22/56] feat: classify zero-free Laguerre functions and indexed products --- RealRooted/LaguerreInequalities/ZeroFree.lean | 77 +++++++++++++++ .../Analysis/Calculus/LogDeriv/Identity.lean | 44 +++++++++ .../LaguerrePolya/IndexedProduct.lean | 97 +++++++++++++++++++ 3 files changed, 218 insertions(+) create mode 100644 RealRooted/LaguerreInequalities/ZeroFree.lean create mode 100644 RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Identity.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/IndexedProduct.lean diff --git a/RealRooted/LaguerreInequalities/ZeroFree.lean b/RealRooted/LaguerreInequalities/ZeroFree.lean new file mode 100644 index 000000000..11679d347 --- /dev/null +++ b/RealRooted/LaguerreInequalities/ZeroFree.lean @@ -0,0 +1,77 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Complex.Exponential +import RealRooted.LaguerreInequalities.MeasureSupport +import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Identity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality +import Mathlib.Analysis.Complex.Convex + +/-! +# Zero-free functions satisfying all generalized Laguerre inequalities + +The supported Nevanlinna measure vanishes when the entire function has no zeros. +Its negative logarithmic derivative is then affine, and the function is a real +exponential times a Gaussian, including constant and ordinary exponential cases. +No order or genus hypothesis is needed. +-/ + +public section + +open Complex MeasureTheory Set +open scoped ComplexConjugate + +namespace RealRooted + +/-- A zero-free real entire function satisfying all generalized Laguerre +inequalities is a constant times a real exponential and a nonnegative Gaussian. -/ +theorem exists_exp_quadratic_of_laguerreCoefficient_nonneg {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) (hn : ∀ z, f z ≠ 0) : + ∃ a b : ℝ, 0 ≤ b ∧ ∀ z : ℂ, + f z = f 0 * exp ((a : ℂ) * z - (b : ℂ) * z ^ 2 / 2) := by + obtain ⟨ρ, b, hρ, hb, hrep, hs, _⟩ := exists_nevanlinna_supported_on_zeros hf hc h + let _ := hρ + have hempty : ρ.support = ∅ := by + ext r + exact ⟨fun hr => (hn r (hs hr)).elim, fun hr => hr.elim⟩ + have hρzero : ρ = 0 := Measure.support_eq_empty_iff.mp hempty + let a : ℝ := -(-logDeriv f I).re + let g : ℂ → ℂ := fun z => exp ((a : ℂ) * z - (b : ℂ) * z ^ 2 / 2) + have hg : Differentiable ℂ g := by dsimp [g]; fun_prop + have hglog (z : ℂ) : logDeriv g z = (a : ℂ) - (b : ℂ) * z := by + have hp : HasDerivAt (fun w : ℂ => (a : ℂ) * w - (b : ℂ) * w ^ 2 / 2) + ((a : ℂ) - (b : ℂ) * z) z := by + convert ((hasDerivAt_id z).const_mul (a : ℂ)).sub + ((((hasDerivAt_id z).pow 2).const_mul (b : ℂ)).div_const 2) using 1 + · ext w + simp only [Pi.sub_apply, Pi.pow_apply, id_eq] + · simp only [id_eq, mul_one] + ring + rw [logDeriv_apply, show deriv g z = _ from hp.cexp.deriv] + exact mul_div_cancel_left₀ _ (exp_ne_zero _) + refine ⟨a, b, hb, ?_⟩ + apply hf.eq_mul_of_logDeriv_eqOn hg UpperHalfPlane.isOpen_upperHalfPlaneSet + (convex_halfSpace_im_gt 0).isPreconnected ⟨I, by simp⟩ + (fun z _ => hn z) (fun z _ => exp_ne_zero _) + · intro z hz + rw [hglog] + have hzrep := hrep z hz + rw [hρzero, integral_zero_measure, add_zero] at hzrep + dsimp only [a] + push_cast + linear_combination -hzrep + · simp only [g, mul_zero, zero_pow (by norm_num : 2 ≠ 0), zero_div, sub_zero, exp_zero] + +/-- Every zero-free Laguerre--Pólya function is a constant times a real +exponential and a Gaussian with nonnegative coefficient. -/ +theorem IsLaguerrePolya.exists_exp_quadratic_of_forall_ne_zero {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hn : ∀ z, f z ≠ 0) : + ∃ a b : ℝ, 0 ≤ b ∧ ∀ z : ℂ, + f z = f 0 * exp ((a : ℂ) * z - (b : ℂ) * z ^ 2 / 2) := + exists_exp_quadratic_of_laguerreCoefficient_nonneg hf.differentiable hf.conj + hf.laguerreCoefficient_nonneg hn + +end RealRooted diff --git a/RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Identity.lean b/RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Identity.lean new file mode 100644 index 000000000..5a958ecbf --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Identity.lean @@ -0,0 +1,44 @@ +/- +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.LogDeriv +public import Mathlib.Analysis.Complex.Basic +import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Entire functions determined by a logarithmic derivative + +Equality of logarithmic derivatives on one nonempty open connected region fixes +an entire function up to a constant. Normalization at zero fixes that constant. +-/ + +public section + +open Filter Set Topology + +/-- Two entire functions with equal logarithmic derivatives on a nonempty open +preconnected set, and nonzero values on that set, differ globally by a constant. +If the second function is one at zero, that constant is the first function's value at zero. -/ +theorem Differentiable.eq_mul_of_logDeriv_eqOn {f g : ℂ → ℂ} + (hf : Differentiable ℂ f) (hg : Differentiable ℂ g) {s : Set ℂ} + (hs : IsOpen s) (hconn : IsPreconnected s) (hne : s.Nonempty) + (hfn : ∀ z ∈ s, f z ≠ 0) (hgn : ∀ z ∈ s, g z ≠ 0) + (hlog : EqOn (_root_.logDeriv f) (_root_.logDeriv g) s) (hg0 : g 0 = 1) : + ∀ z, f z = f 0 * g z := by + obtain ⟨a, _, heq⟩ := (logDeriv_eqOn_iff hf.differentiableOn hg.differentiableOn + hs hconn hgn hfn).mp hlog + obtain ⟨w, hw⟩ := hne + have hfa : AnalyticOnNhd ℂ f univ := fun z _ => hf.analyticAt z + have hga : AnalyticOnNhd ℂ (fun z => a * g z) univ := + fun z _ => ((differentiable_const a).mul hg).analyticAt z + have he : f = fun z => a * g z := by + apply hfa.eq_of_eventuallyEq hga + filter_upwards [hs.mem_nhds hw] with z hz + simpa only [Pi.smul_apply, smul_eq_mul] using heq hz + have ha : a = f 0 := by simpa only [hg0, mul_one] using (congrFun he 0).symm + intro z + simpa only [ha] using congrFun he z diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/IndexedProduct.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/IndexedProduct.lean new file mode 100644 index 000000000..65588159e --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/IndexedProduct.lean @@ -0,0 +1,97 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import TauCeti.Analysis.Complex.CanonicalProduct.ElementaryFactor +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Closure +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Examples +import TauCeti.Analysis.Complex.CanonicalProduct.Convergence + +/-! +# Genus-one canonical products in the Laguerre--Pólya class + +Real elementary factors and their natural powers belong to the class. Locally +uniform products preserve membership, so square-summable real slopes give +Laguerre--Pólya canonical products without an entire growth hypothesis. +-/ + +public section + +open Complex Polynomial Filter Metric Topology + +namespace RealRooted + +/-- A real polynomial that splits over the reals belongs to the Laguerre--Pólya class. -/ +theorem isLaguerrePolya_eval_map {p : ℝ[X]} (hp : p.Splits) : + IsLaguerrePolya (fun z => (p.map ofRealHom).eval z) := by + apply IsLaguerrePolya.of_forall_approx + intro R ε hε + exact ⟨p, Or.inr hp, fun _ _ => by simpa using hε⟩ + +/-- The constant function one belongs to the Laguerre--Pólya class. -/ +theorem IsLaguerrePolya.one : IsLaguerrePolya (fun _ : ℂ => 1) := by + simpa using isLaguerrePolya_eval_map (p := 1) Splits.one + +/-- Natural powers preserve the Laguerre--Pólya class. -/ +theorem IsLaguerrePolya.pow {f : ℂ → ℂ} (hf : IsLaguerrePolya f) (n : ℕ) : + IsLaguerrePolya (fun z => f z ^ n) := by + induction n with + | zero => simpa using IsLaguerrePolya.one + | succ n ih => simpa only [pow_succ, Pi.mul_def] using ih.mul hf + +/-- Finite products preserve the Laguerre--Pólya class. -/ +theorem IsLaguerrePolya.finsetProd {ι : Type*} (s : Finset ι) (f : ι → ℂ → ℂ) + (hf : ∀ i ∈ s, IsLaguerrePolya (f i)) : + IsLaguerrePolya (fun z => ∏ i ∈ s, f i z) := by + classical + induction s using Finset.induction_on with + | empty => simpa using IsLaguerrePolya.one + | @insert i s hi ih => + simpa [Finset.prod_insert hi, Pi.mul_def] using (hf i (by simp)).mul + (ih fun j hj => hf j (by simp [hj])) + +/-- A locally uniformly convergent product of Laguerre--Pólya functions belongs +to the class. The index type need not be countable. -/ +theorem IsLaguerrePolya.of_hasProdLocallyUniformly {ι : Type*} {g : ι → ℂ → ℂ} + {f : ℂ → ℂ} (hg : ∀ i, IsLaguerrePolya (g i)) + (hprod : HasProdLocallyUniformlyOn g f Set.univ) : IsLaguerrePolya f := by + classical + apply IsLaguerrePolya.of_forall_approx + intro R ε hε + have hlim := tendstoLocallyUniformlyOn_univ.mp + (hasProdLocallyUniformlyOn_iff_tendstoLocallyUniformlyOn.mp hprod) + have hU := tendstoLocallyUniformly_iff_forall_isCompact.mp hlim _ + (isCompact_closedBall (0 : ℂ) R) + rw [Metric.tendstoUniformlyOn_iff] at hU + obtain ⟨s, hs⟩ := (hU (ε / 2) (half_pos hε)).exists + obtain ⟨p, hp, hpd⟩ := (IsLaguerrePolya.finsetProd s g (fun i _ => hg i)).exists_approx + R (half_pos hε) + refine ⟨p, hp, fun z hz => ?_⟩ + calc + dist (f z) ((p.map ofRealHom).eval z) ≤ dist (f z) (∏ i ∈ s, g i z) + + dist (∏ i ∈ s, g i z) ((p.map ofRealHom).eval z) := dist_triangle _ _ _ + _ < ε / 2 + ε / 2 := add_lt_add (hs z (mem_closedBall_zero_iff.mpr hz)) (hpd z hz) + _ = ε := add_halves ε + +/-- The real genus-one elementary factor belongs to the Laguerre--Pólya class. -/ +theorem isLaguerrePolya_weierstrassFactor_one (a : ℝ) : + IsLaguerrePolya (fun z => weierstrassFactor 1 ((a : ℂ) * z)) := by + have hlin : IsLaguerrePolya (fun z : ℂ => 1 - (a : ℂ) * z) := by + have hp : (1 - C a * X : ℝ[X]).Splits := + Splits.of_natDegree_le_one ((natDegree_sub_le _ _).trans + (max_le (by simp) ((natDegree_C_mul_le _ _).trans (by simp)))) + simpa using isLaguerrePolya_eval_map hp + simpa only [weierstrassFactor_one_left, Pi.mul_def, ofReal_zero, add_zero] using + hlin.mul (isLaguerrePolya_exp.comp_affine_real a 0) + +/-- Square-summable real genus-one factors, with their natural multiplicities, +form a Laguerre--Pólya function. This includes finite and empty products. -/ +theorem isLaguerrePolya_tprod_weierstrassFactor_one_pow {ι : Type*} + (a : ι → ℝ) (m : ι → ℕ) (hs : Summable (fun i => (m i : ℝ) * a i ^ 2)) : + IsLaguerrePolya (fun z => ∏' i, weierstrassFactor 1 ((a i : ℂ) * z) ^ m i) := by + have hsum : Summable (fun i => (m i : ℝ) * ‖(a i : ℂ)‖ ^ 2) := by + simpa only [Complex.norm_real, Real.norm_eq_abs, sq_abs] using hs + exact IsLaguerrePolya.of_hasProdLocallyUniformly + (fun i => (isLaguerrePolya_weierstrassFactor_one (a i)).pow (m i)) + (hasProdLocallyUniformlyOn_weierstrassFactor_one_pow _ _ hsum) + +end RealRooted From 3b3d1bd03f965e2c0e78188ead3aca6778d51617 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 15:48:23 +0000 Subject: [PATCH 23/56] feat: prove Gaussian strictness and finite LP zero extraction --- RealRooted/Hermite/GaussianOperator.lean | 152 ++++++++++++++++++ RealRooted/Hermite/PolynomialGaussian.lean | 56 +++++++ .../PolyaSchur/LaguerrePolya/FiniteZeros.lean | 113 +++++++++++++ .../LaguerrePolya/OperatorLinear.lean | 62 +++++++ 4 files changed, 383 insertions(+) create mode 100644 RealRooted/Hermite/GaussianOperator.lean create mode 100644 RealRooted/Hermite/PolynomialGaussian.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FiniteZeros.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorLinear.lean diff --git a/RealRooted/Hermite/GaussianOperator.lean b/RealRooted/Hermite/GaussianOperator.lean new file mode 100644 index 000000000..fdd33bf24 --- /dev/null +++ b/RealRooted/Hermite/GaussianOperator.lean @@ -0,0 +1,152 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +public import RealRooted.Hermite.Homogeneous +public import RealRooted.SimpleRoots +public import RealRooted.Mathlib.Algebra.Polynomial.BasisTransform +import RealRooted.Hermite.GeneratingFunction +import RealRooted.BasisTransform.Hermite +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorLinear +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen + +/-! +# Strict Gaussian differential operators on polynomials + +The symbol `exp(a z + s z²)` acts through the homogeneous Hermite basis +`Hₙ(X+a,s)`. For `s < 0`, its affine raising operator has a strictly negative +derivative term, so every nonzero real-rooted polynomial input acquires simple +real roots. This is a finite-input theorem; no infinite heat series is used. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- Differentiating the translated homogeneous Hermite basis lowers its index. -/ +theorem derivative_hermiteHomogeneous_affine (a s : ℝ) (n : ℕ) : + (hermiteHomogeneous (X + C a) (C s) (n + 1)).derivative = + C (n + 1 : ℝ) * hermiteHomogeneous (X + C a) (C s) n := by + induction n using Nat.twoStepInduction with + | zero => simp + | one => simp [hermiteHomogeneous_add_two]; ring + | more n ih ih' => + rw [hermiteHomogeneous_add_two] + simp only [derivative_add, derivative_mul, derivative_X, derivative_C, add_zero, + one_mul, derivative_ofNat, derivative_natCast, zero_mul, mul_zero, + zero_add, ih, ih'] + rw [hermiteHomogeneous_add_two] + push_cast + simp only [map_add, map_natCast, map_ofNat, map_one] + ring + +/-- Coefficients of translated homogeneous Hermite polynomials are binomial +multiples of their values at the translation parameter. -/ +theorem coeff_hermiteHomogeneous_affine (a s : ℝ) (n k : ℕ) : + (hermiteHomogeneous (X + C a) (C s) n).coeff k = + (n.choose k : ℝ) * hermiteHomogeneous a s (n - k) := by + induction n generalizing k with + | zero => cases k <;> simp [coeff_one] + | succ n ih => + cases k with + | zero => + rw [Nat.choose_zero_right, Nat.cast_one, one_mul, Nat.sub_zero, + coeff_zero_eq_eval_zero] + have hm := map_hermiteHomogeneous (evalRingHom (0 : ℝ)) + (X + C a) (C s) (n + 1) + change (hermiteHomogeneous (X + C a) (C s) (n + 1)).eval 0 = + hermiteHomogeneous ((X + C a).eval 0) ((C s).eval 0) (n + 1) at hm + simpa only [eval_add, eval_X, eval_C, zero_add] using hm + | succ k => + have hd := congrArg (fun p : ℝ[X] => p.coeff k) + (derivative_hermiteHomogeneous_affine a s n) + simp only [coeff_derivative, coeff_C_mul, ih] at hd + have hc : (n + 1 : ℝ) * (n.choose k : ℝ) = + ((n + 1).choose (k + 1) : ℝ) * (k + 1 : ℝ) := by + exact_mod_cast Nat.add_one_mul_choose_eq n k + have hk : (k + 1 : ℝ) ≠ 0 := by positivity + simp only [Nat.succ_sub_succ_eq_sub] + apply mul_right_cancel₀ hk + linear_combination hd + hermiteHomogeneous a s (n - k) * hc + +/-- The translated homogeneous Hermite basis satisfies the Gaussian raising relation. -/ +theorem hermiteHomogeneous_affine_raising (a s : ℝ) (n : ℕ) : + hermiteHomogeneous (X + C a) (C s) (n + 1) = + (X + C a) * hermiteHomogeneous (X + C a) (C s) n + + C (2 * s) * (hermiteHomogeneous (X + C a) (C s) n).derivative := by + cases n with + | zero => simp + | succ n => + rw [derivative_hermiteHomogeneous_affine, hermiteHomogeneous_add_two] + push_cast + simp only [map_add, map_mul, map_natCast, map_ofNat, map_one] + ring + +/-- A quadratic exponential sends a power of the variable to the corresponding +translated homogeneous Hermite polynomial. -/ +theorem taylor_exp_quadratic_X_pow (a s : ℝ) (n : ℕ) : + taylorDifferentialOperator (fun z => exp ((a : ℂ) * z + (s : ℂ) * z ^ 2)) (X ^ n) = + hermiteHomogeneous (X + C a) (C s) n := by + rw [taylorDifferentialOperator_X_pow] + have hdata (k : ℕ) : + (iteratedDeriv k (fun z => exp ((a : ℂ) * z + (s : ℂ) * z ^ 2)) 0).re = + hermiteHomogeneous a s k := by + rw [iteratedDeriv_exp_quadratic_zero] + have hm : ((hermiteHomogeneous a s k : ℝ) : ℂ) = + hermiteHomogeneous (a : ℂ) (s : ℂ) k := + map_hermiteHomogeneous ofRealHom a s k + rw [← hm] + rfl + ext k + rw [coeff_reflect, coeff_hermiteHomogeneous_affine] + by_cases hk : k ≤ n + · rw [revAt_le hk, coeff_jensenPolynomial, ite_eq_left (Nat.sub_le _ _), hdata, + Nat.choose_symm hk] + · rw [revAt_eq_self_of_lt (lt_of_not_ge hk), coeff_jensenPolynomial, + ite_eq_right hk, Nat.choose_eq_zero_of_lt (lt_of_not_ge hk), Nat.cast_zero, zero_mul] + +/-- The finite Taylor operator of a quadratic exponential is its Hermite basis transform. -/ +theorem taylor_exp_quadratic_eq_basisTransform (a s : ℝ) (p : ℝ[X]) : + taylorDifferentialOperator (fun z => exp ((a : ℂ) * z + (s : ℂ) * z ^ 2)) p = + basisTransform (fun n => hermiteHomogeneous (X + C a) (C s) n) p := by + rw [taylorDifferentialOperator_eq_basisTransform] + simp only [taylor_exp_quadratic_X_pow] + +/-- A linear exponential symbol acts by real translation of the input. -/ +theorem taylor_exp_linear_eq_comp (a : ℝ) (p : ℝ[X]) : + taylorDifferentialOperator (fun z => exp ((a : ℂ) * z)) p = p.comp (X + C a) := by + have heq := taylor_exp_quadratic_eq_basisTransform a 0 p + simp only [ofReal_zero, zero_mul, add_zero, map_zero, + hermiteHomogeneous_zero_right] at heq + rw [heq] + clear heq + induction p using Polynomial.induction_on' with + | add p q hp hq => rw [basisTransform_add, add_comp, hp, hq] + | monomial n c => simp [basisTransform_monomial, monomial_comp] + +/-- A strictly negative Gaussian parameter makes every nonzero real-rooted +polynomial input simple-real-rooted. -/ +theorem simple_taylor_exp_quadratic (a : ℝ) {s : ℝ} (hs : s < 0) + {p : ℝ[X]} (hp0 : p ≠ 0) (hp : p.Splits) : + IsSimpleRealRooted + (taylorDifferentialOperator (fun z => exp ((a : ℂ) * z + (s : ℂ) * z ^ 2)) p) := by + rw [taylor_exp_quadratic_eq_basisTransform] + apply isSimpleRealRooted_basisTransform_of_raising (a := 1) (b := a) (c := -2 * s) + (by simp) (by norm_num) (by nlinarith) _ hp hp0 + intro n + simpa using hermiteHomogeneous_affine_raising a s n + +/-- Nonpositive Gaussian parameters preserve splitting, including zero +inputs and the translation boundary at parameter zero. -/ +theorem splits_taylor_exp_quadratic (a : ℝ) {s : ℝ} (hs : s ≤ 0) + {p : ℝ[X]} (hp : p.Splits) : + (taylorDifferentialOperator (fun z => exp ((a : ℂ) * z + (s : ℂ) * z ^ 2)) p).Splits := by + rcases hs.lt_or_eq with hs | rfl + · by_cases hp0 : p = 0 + · simp [hp0, taylorDifferentialOperator] + · exact (simple_taylor_exp_quadratic a hs hp0 hp).2.1 + · simpa only [ofReal_zero, zero_mul, add_zero, taylor_exp_linear_eq_comp] + using hp.comp_X_add_C a + +end RealRooted diff --git a/RealRooted/Hermite/PolynomialGaussian.lean b/RealRooted/Hermite/PolynomialGaussian.lean new file mode 100644 index 000000000..2b40a50bc --- /dev/null +++ b/RealRooted/Hermite/PolynomialGaussian.lean @@ -0,0 +1,56 @@ +module + +public import RealRooted.Hermite.Poulain +public import RealRooted.SimpleRoots +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +import RealRooted.Hermite.PoulainSimple +import RealRooted.Hermite.GaussianOperator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct + +/-! +# Strict polynomial–Gaussian differential symbols + +A finite real-rooted differential symbol nonzero at zero preserves simple +real roots. Combining this with strict Gaussian regularization handles +symbols `q(z) exp(a z + s z²)` with `s < 0` and `q(0) ≠ 0`. +-/ + +public section + +open Polynomial Complex RealRooted.HermitePoulain + +namespace RealRooted + +/-- Finite real-rooted differential factors nonzero at zero preserve simple +real-rootedness, regardless of their degree. -/ +theorem simple_operator_of_simple_input {q p : ℝ[X]} + (hq : q.Splits) (hq0 : q.coeff 0 ≠ 0) (hp : IsSimpleRealRooted p) : + IsSimpleRealRooted (applyAsDifferentialOperator q p) := by + have hqne : q ≠ 0 := by intro hz; simp [hz] at hq0 + have hF0 : applyAsDifferentialOperator q p ≠ 0 := by + intro hz + have htop := congrArg (fun u : ℝ[X] => u.coeff p.natDegree) hz + rw [coeff_applyAsDifferentialOperator_natDegree, coeff_zero, coeff_natDegree] at htop + exact mul_ne_zero hq0 (leadingCoeff_ne_zero.mpr hp.1) htop + refine ⟨hF0, (applyAsDifferentialOperator_eq_zero_or_splits + ⟨hqne, hq⟩ ⟨hp.1, hp.2.1⟩).resolve_left hF0, ?_⟩ + intro r hr + have hpos := (rootMultiplicity_pos hF0).mpr hr + by_contra hnot + have hm : 2 ≤ (applyAsDifferentialOperator q p).rootMultiplicity r := by lia + have hback := rootMultiplicity_operator_eq_add_natDegree hq hq0 hp.1 hp.2.1 hm + have hroot : p.IsRoot r := (rootMultiplicity_pos hp.1).mp (by lia) + rw [hp.2.2 r hroot] at hback + lia + +/-- A real-rooted polynomial times a strictly negative Gaussian symbol +strictly regularizes every nonzero real-rooted polynomial input. -/ +theorem simple_taylor_polynomial_gaussian {q p : ℝ[X]} + (hq : q.Splits) (hq0 : q.coeff 0 ≠ 0) (a : ℝ) {s : ℝ} (hs : s < 0) + (hp0 : p ≠ 0) (hp : p.Splits) : + IsSimpleRealRooted (taylorDifferentialOperator + (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z + (s : ℂ) * z ^ 2)) p) := by + rw [taylorDifferentialOperator_polynomial_mul (by fun_prop)] + exact simple_operator_of_simple_input hq hq0 (simple_taylor_exp_quadratic a hs hp0 hp) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FiniteZeros.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FiniteZeros.lean new file mode 100644 index 000000000..52aad8444 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FiniteZeros.lean @@ -0,0 +1,113 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.RootDivision +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros +import TauCeti.Analysis.Analytic.ExtractZeros + +/-! +# Removing all zeros of an LP function with finitely many zeros + +An LP function nonzero at the origin and with finitely many distinct real +zeros is a real-rooted polynomial times a zero-free LP function. Each zero is +removed with its full analytic multiplicity. No growth bound is imposed. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- Removing a full analytic zero leaves an entire LP cofactor nonzero there. -/ +private theorem extract_full_real_zero {f : ℂ → ℂ} (hf : IsLaguerrePolya f) + (hf0 : f 0 ≠ 0) (r : ℝ) : + ∃ (m : ℕ) (g : ℂ → ℂ), IsLaguerrePolya g ∧ g 0 ≠ 0 ∧ g r ≠ 0 ∧ + ∀ z, f z = (z - r) ^ m * g z := by + have ha : AnalyticOnNhd ℂ f Set.univ := hf.analyticOnNhd + have hfinite : analyticOrderAt f (r : ℂ) ≠ ⊤ := + ha.analyticOrderAt_ne_top_of_isPreconnected isPreconnected_univ + (Set.mem_univ (0 : ℂ)) (Set.mem_univ (r : ℂ)) + (by simp [analyticOrderAt_eq_zero.mpr (.inr hf0)]) + let m := analyticOrderNatAt f (r : ℂ) + obtain ⟨g, hg, hfg⟩ := ha.exists_eq_prod_pow_smul {(r : ℂ)} (fun _ => m) + (by simpa [m] using (Nat.cast_analyticOrderNatAt hfinite).le) + have hfactor (z : ℂ) : f z = (z - r) ^ m * g z := by simpa using hfg z + have hga : AnalyticAt ℂ g (r : ℂ) := hg _ (Set.mem_univ _) + have heq : f = (· - (r : ℂ)) ^ m * g := by + funext z + simpa only [Pi.mul_apply, Pi.pow_apply] using hfactor z + have horder : (m : ℕ∞) + analyticOrderAt g (r : ℂ) = m := by + calc + _ = analyticOrderAt ((· - (r : ℂ)) ^ m * g) (r : ℂ) := by + rw [analyticOrderAt_mul (by fun_prop) hga, analyticOrderAt_centeredMonomial] + _ = analyticOrderAt f (r : ℂ) := by rw [← heq] + _ = (m : ℕ∞) := by simpa [m] using (Nat.cast_analyticOrderNatAt hfinite).symm + have hgr : g r ≠ 0 := hga.analyticOrderAt_eq_zero.mp + (ENat.add_right_injective_of_ne_top (ENat.natCast_ne_top m) + (horder.trans (add_zero _).symm)) + have hg0 : g 0 ≠ 0 := by + intro hz + exact hf0 (by rw [hfactor, hz, mul_zero]) + have hLP : IsLaguerrePolya (fun z => (z - r) ^ m * g z) := by + rw [show (fun z => (z - r) ^ m * g z) = f from (funext hfactor).symm] + exact hf + exact ⟨m, g, hLP.of_sub_pow_mul r m (differentiableOn_univ.mp hg.differentiableOn), + hg0, hgr, hfactor⟩ + +/-- Finite zero-set containment suffices for complete extraction. -/ +private theorem exists_factor_of_zero_set_subset (s : Finset ℝ) {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hf0 : f 0 ≠ 0) + (hzeros : ∀ r : ℝ, f r = 0 → r ∈ s) : + ∃ (q : ℝ[X]) (g : ℂ → ℂ), q.Splits ∧ q.coeff 0 ≠ 0 ∧ IsLaguerrePolya g ∧ + (∀ z, g z ≠ 0) ∧ ∀ z, f z = (q.map ofRealHom).eval z * g z := by + classical + induction s using Finset.induction_on generalizing f with + | empty => + refine ⟨1, f, Splits.one, by simp, hf, ?_, by simp⟩ + intro z hz + have hfn : f ≠ 0 := fun h => hf0 (by simp [h]) + have him := hf.im_eq_zero_of_eq_zero hfn hz + have hreal : (z.re : ℂ) = z := by apply Complex.ext <;> simp [him] + have hr := hzeros z.re (by rwa [hreal]) + exact Finset.notMem_empty _ hr + | @insert r s hrs ih => + by_cases hr : f r = 0 + · have hr0 : r ≠ 0 := by intro hz; subst r; exact hf0 (by simpa using hr) + obtain ⟨m, g, hg, hg0, hgr, hfactor⟩ := extract_full_real_zero hf hf0 r + have hsubset : ∀ u : ℝ, g u = 0 → u ∈ s := by + intro u hu + have hfu : f u = 0 := by rw [hfactor, hu, mul_zero] + rcases Finset.mem_insert.mp (hzeros u hfu) with hur | hus + · subst u + exact (hgr hu).elim + · exact hus + obtain ⟨q, t, hq, hq0, ht, htnz, hgt⟩ := ih hg hg0 hsubset + refine ⟨(X - C r) ^ m * q, t, ((Splits.X_sub_C r).pow m).mul hq, + ?_, ht, htnz, ?_⟩ + · rw [coeff_zero_eq_eval_zero, eval_mul, eval_pow, eval_sub, eval_X, eval_C, + zero_sub, ← coeff_zero_eq_eval_zero] + exact mul_ne_zero (pow_ne_zero _ (neg_ne_zero.mpr hr0)) hq0 + · intro z + rw [hfactor, hgt] + simp [Polynomial.map_mul, Polynomial.map_pow, Polynomial.map_sub, mul_assoc] + · apply ih hf hf0 + intro u hu + rcases Finset.mem_insert.mp (hzeros u hu) with hur | hus + · subst u + exact (hr hu).elim + · exact hus + +/-- An LP function with finitely many distinct real zeros and nonzero initial +value is a real-rooted polynomial times a zero-free LP function. -/ +theorem IsLaguerrePolya.exists_polynomial_factor_of_finite_zeros {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hf0 : f 0 ≠ 0) + (hfin : Set.Finite {r : ℝ | f r = 0}) : + ∃ (q : ℝ[X]) (g : ℂ → ℂ), q.Splits ∧ q.coeff 0 ≠ 0 ∧ IsLaguerrePolya g ∧ + (∀ z, g z ≠ 0) ∧ ∀ z, f z = (q.map ofRealHom).eval z * g z := by + classical + exact exists_factor_of_zero_set_subset hfin.toFinset hf hf0 + (fun r hr => hfin.mem_toFinset.mpr hr) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorLinear.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorLinear.lean new file mode 100644 index 000000000..228f83f99 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/OperatorLinear.lean @@ -0,0 +1,62 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +public import RealRooted.Mathlib.Algebra.Polynomial.BasisTransform + +/-! +# Linearity of Taylor differential operators in the input + +Taylor differential sums may be truncated at any common degree bound. This +gives input linearity and identifies each such operator with the basis +transform specified by its images of powers of the variable. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- The differential sum can be extended to any upper bound on the input degree. -/ +theorem taylorDifferentialOperator_eq_sum {f : ℂ → ℂ} {p : ℝ[X]} {N : ℕ} + (hp : p.natDegree ≤ N) : + taylorDifferentialOperator f p = ∑ k ∈ Finset.range (N + 1), + C ((iteratedDeriv k f 0 / k.factorial).re) * (derivative^[k]) p := by + unfold taylorDifferentialOperator + apply Finset.sum_subset (Finset.range_subset_range.mpr (by lia)) + intro k _ hk + have hpk : p.natDegree < k := by simpa using hk + rw [iterate_derivative_eq_zero hpk, mul_zero] + +/-- Taylor differential operators are additive in their polynomial input. -/ +theorem taylorDifferentialOperator_add_input (f : ℂ → ℂ) (p q : ℝ[X]) : + taylorDifferentialOperator f (p + q) = + taylorDifferentialOperator f p + taylorDifferentialOperator f q := by + let N := max p.natDegree q.natDegree + rw [taylorDifferentialOperator_eq_sum (natDegree_add_le p q), + taylorDifferentialOperator_eq_sum (N := N) (le_max_left _ _), + taylorDifferentialOperator_eq_sum (N := N) (le_max_right _ _)] + simp only [← pow_apply_eq_iterate, map_add, mul_add, Finset.sum_add_distrib, N] + +/-- Taylor differential operators commute with multiplication of the input by a constant. -/ +theorem taylorDifferentialOperator_C_mul_input (f : ℂ → ℂ) (a : ℝ) (p : ℝ[X]) : + taylorDifferentialOperator f (C a * p) = C a * taylorDifferentialOperator f p := by + rw [taylorDifferentialOperator_eq_sum (natDegree_C_mul_le a p), + taylorDifferentialOperator, Finset.mul_sum] + apply Finset.sum_congr rfl + intro k _ + rw [iterate_derivative_C_mul] + ring + +/-- A Taylor differential operator is the basis transform given by its monomial images. -/ +theorem taylorDifferentialOperator_eq_basisTransform (f : ℂ → ℂ) (p : ℝ[X]) : + taylorDifferentialOperator f p = + basisTransform (fun n => taylorDifferentialOperator f (X ^ n)) p := by + induction p using Polynomial.induction_on' with + | add p q hp hq => + rw [taylorDifferentialOperator_add_input, basisTransform_add, hp, hq] + | monomial n a => + rw [← C_mul_X_pow_eq_monomial, taylorDifferentialOperator_C_mul_input, + basisTransform_C_mul_X_pow] + +end RealRooted From be1ac721a6ae649e45ad8d915031621f52becca3 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 15:52:35 +0000 Subject: [PATCH 24/56] feat: prove full LP strictness and simple Jensen criterion --- .../LaguerrePolya/FiniteGaussian.lean | 47 +++++++ .../PolyaSchur/LaguerrePolya/Strictness.lean | 121 ++++++++++++++++++ 2 files changed, 168 insertions(+) create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FiniteGaussian.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Strictness.lean diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FiniteGaussian.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FiniteGaussian.lean new file mode 100644 index 000000000..c6ef0c0e3 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FiniteGaussian.lean @@ -0,0 +1,47 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Complex.Exponential +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FiniteZeros +import RealRooted.LaguerreInequalities.ZeroFree +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Finite-zero LP functions are polynomial–Gaussian products + +Removing all finitely many zeros leaves a zero-free LP function. Its +Nevanlinna representation has zero measure, hence it is a real exponential +times a Gaussian. The real nonzero scalar is absorbed into the polynomial. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- Every LP function nonzero at zero with finitely many distinct real +zeros is a split polynomial times a real exponential and a Gaussian. -/ +theorem IsLaguerrePolya.exists_polynomial_gaussian_of_finite_zeros {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hf0 : f 0 ≠ 0) + (hfin : Set.Finite {r : ℝ | f r = 0}) : + ∃ (q : ℝ[X]) (a b : ℝ), q.Splits ∧ q.coeff 0 ≠ 0 ∧ 0 ≤ b ∧ ∀ z, + f z = (q.map ofRealHom).eval z * exp ((a : ℂ) * z - (b : ℂ) * z ^ 2 / 2) := by + obtain ⟨q, g, hq, hq0, hg, hgnz, hfactor⟩ := + hf.exists_polynomial_factor_of_finite_zeros hf0 hfin + obtain ⟨a, b, hb, hgexp⟩ := hg.exists_exp_quadratic_of_forall_ne_zero hgnz + have hreal : ((g 0).re : ℂ) = g 0 := by + simpa only [iteratedDeriv_zero] using ofReal_re_iteratedDeriv_zero hg.conj 0 + have hgre : (g 0).re ≠ 0 := by + intro hz + apply hgnz 0 + rw [← hreal, hz, ofReal_zero] + refine ⟨C (g 0).re * q, a, b, hq.C_mul _, ?_, hb, ?_⟩ + · rw [coeff_C_mul] + exact mul_ne_zero hgre hq0 + · intro z + rw [hfactor, hgexp] + simp only [Polynomial.map_mul, map_C, eval_mul, eval_C, ofRealHom_eq_coe, hreal] + ring + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Strictness.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Strictness.lean new file mode 100644 index 000000000..71347c784 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Strictness.lean @@ -0,0 +1,121 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import RealRooted.SimpleRoots +public import Mathlib.Analysis.Complex.Exponential +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.StrictOperator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FiniteGaussian +import RealRooted.Hermite.PolynomialGaussian +import RealRooted.Hermite.PoulainJensenSimple +import RealRooted.SimpleRoots.Reflection +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Strict LP differential operators and simple Jensen roots + +This proves the polynomial-input strict operator theorem and the simple-root +assertion of corrected Craven–Csordas (1994), Proposition 4.1(1), with no +growth restriction. Infinite-zero symbols are handled by multiplicity descent; +finite-zero symbols are polynomial–Gaussian products. + +The exclusions differ: arbitrary-input strictness excludes all polynomial +times exponential symbols, including polynomials. Jensen simplicity excludes +only nonconstant exponential factors; polynomial symbols are included. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- A polynomial–Gaussian factorization with positive Gaussian coefficient +gives a strict operator on nonzero real-rooted polynomial inputs. -/ +private theorem simple_of_polynomial_gaussian {f : ℂ → ℂ} {q p : ℝ[X]} {a b : ℝ} + (hq : q.Splits) (hq0 : q.coeff 0 ≠ 0) (hb : 0 < b) + (hfactor : ∀ z, f z = (q.map ofRealHom).eval z * + exp ((a : ℂ) * z - (b : ℂ) * z ^ 2 / 2)) + (hp0 : p ≠ 0) (hp : p.Splits) : IsSimpleRealRooted (taylorDifferentialOperator f p) := by + have heq : f = fun z => (q.map ofRealHom).eval z * + exp ((a : ℂ) * z + ((-b / 2 : ℝ) : ℂ) * z ^ 2) := by + funext z + rw [hfactor] + congr 2 + push_cast + ring + rw [heq] + exact simple_taylor_polynomial_gaussian hq hq0 a (by linarith) hp0 hp + +/-- An LP symbol nonzero at zero strictly regularizes all nonzero split +polynomial inputs unless it is a polynomial times a real exponential. -/ +theorem IsLaguerrePolya.simple_operator_of_not_exp_polynomial {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hf0 : f 0 ≠ 0) + (hne : ∀ (q : ℝ[X]) (a : ℝ), f ≠ fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) + {p : ℝ[X]} (hp0 : p ≠ 0) (hp : p.Splits) : + IsSimpleRealRooted (taylorDifferentialOperator f p) := by + rcases Set.finite_or_infinite {r : ℝ | f r = 0} with hfin | hinf + · obtain ⟨q, a, b, hq, hq0, hb, hfactor⟩ := + hf.exists_polynomial_gaussian_of_finite_zeros hf0 hfin + have hbpos : 0 < b := by + by_contra hnot + have hb0 : b = 0 := by linarith + apply hne q a + funext z + simpa [hb0] using hfactor z + exact simple_of_polynomial_gaussian hq hq0 hbpos hfactor hp0 hp + · exact hf.simple_operator_of_infinite_zeros hf0 hinf hp0 hp + +/-- Simplicity of the monomial differential image transfers to the Jensen +polynomial even when its final Taylor coefficient vanishes. -/ +private theorem simple_jensen_of_power_image {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hf0 : f 0 ≠ 0) (d : ℕ) + (hsimple : IsSimpleRealRooted (taylorDifferentialOperator f (X ^ d))) : + IsSimpleRealRooted (jensenPolynomial d (fun k => (iteratedDeriv k f 0).re)) := by + rw [taylorDifferentialOperator_X_pow] at hsimple + have hconst : (jensenPolynomial d (fun k => (iteratedDeriv k f 0).re)).coeff 0 ≠ 0 := by + simp only [coeff_jensenPolynomial, Nat.zero_le, ite_true, Nat.choose_zero_right, + Nat.cast_one, one_mul, iteratedDeriv_zero] + intro hz + have hreal := ofReal_re_iteratedDeriv_zero hf.conj 0 + simp only [iteratedDeriv_zero, hz, ofReal_zero] at hreal + exact hf0 hreal.symm + refine ⟨?_, hf.jensenPolynomial_splits d, + hsimple.2.2.of_reflect hconst (hf.jensenPolynomial_splits d) + (natDegree_jensenPolynomial_le d _)⟩ + intro hz + exact hconst (by simp [hz]) + +/-- Corrected Craven–Csordas Proposition 4.1(1), simple-root assertion: +all Jensen polynomials of an LP symbol nonzero at zero are simple unless +the symbol is a polynomial times an exponential of nonzero real slope. -/ +theorem IsLaguerrePolya.simple_jensen_of_not_exp_polynomial {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hf0 : f 0 ≠ 0) + (hne : ∀ (q : ℝ[X]) (a : ℝ), a ≠ 0 → + f ≠ fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) (d : ℕ) : + IsSimpleRealRooted (jensenPolynomial d (fun k => (iteratedDeriv k f 0).re)) := by + rcases Set.finite_or_infinite {r : ℝ | f r = 0} with hfin | hinf + · obtain ⟨q, a, b, hq, hq0, hb, hfactor⟩ := + hf.exists_polynomial_gaussian_of_finite_zeros hf0 hfin + rcases hb.eq_or_lt with hb0 | hbpos + · have ha : a = 0 := by + by_contra ha + apply hne q a ha + funext z + simpa [← hb0] using hfactor z + have heq : f = fun z => (q.map ofRealHom).eval z := by + funext z + simpa [← hb0, ha] using hfactor z + rw [heq] + have hdata : (fun k => (iteratedDeriv k (fun z => (q.map ofRealHom).eval z) 0).re) = + (fun k => (k.factorial : ℝ) * q.coeff k) := by + funext k + simp [iteratedDeriv_fun_eval, eval_zero_iterate_derivative] + rw [hdata] + exact simple_jensenPolynomial_polynomial hq hq0 d + · exact simple_jensen_of_power_image hf hf0 d + (simple_of_polynomial_gaussian hq hq0 hbpos hfactor + (pow_ne_zero d X_ne_zero) (Splits.X.pow d)) + · exact hf.simple_jensen_of_infinite_zeros hf0 hinf d + +end RealRooted From 8ec75750ba3223b053583ec75d0f58c73b8d1c9e 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 15:56:59 +0000 Subject: [PATCH 25/56] feat: prove the unrestricted generalized Laguerre criterion --- .../CanonicalLogDerivative.lean | 78 +++++++++++++++++ .../CanonicalProduct.lean | 85 +++++++++++++++++++ .../CanonicalRepresentation.lean | 83 ++++++++++++++++++ .../Characterization.lean | 63 ++++++++++++++ .../LaguerreInequalities/Translation.lean | 32 +++++++ 5 files changed, 341 insertions(+) create mode 100644 RealRooted/LaguerreInequalities/CanonicalLogDerivative.lean create mode 100644 RealRooted/LaguerreInequalities/CanonicalProduct.lean create mode 100644 RealRooted/LaguerreInequalities/CanonicalRepresentation.lean create mode 100644 RealRooted/LaguerreInequalities/Characterization.lean create mode 100644 RealRooted/LaguerreInequalities/Translation.lean diff --git a/RealRooted/LaguerreInequalities/CanonicalLogDerivative.lean b/RealRooted/LaguerreInequalities/CanonicalLogDerivative.lean new file mode 100644 index 000000000..16535e9fb --- /dev/null +++ b/RealRooted/LaguerreInequalities/CanonicalLogDerivative.lean @@ -0,0 +1,78 @@ +module + +public import RealRooted.LaguerreInequalities.CanonicalProduct +public import Mathlib.Analysis.Complex.UpperHalfPlane.Basic +import RealRooted.LaguerreInequalities.AtomMultiplicity +import RealRooted.LaguerreInequalities.AtomicRepresentation +import RealRooted.LaguerreInequalities.MeasureSupport +import RealRooted.LaguerreInequalities.InverseSquare +import TauCeti.Analysis.Complex.CanonicalProduct.LogDeriv + +/-! +# Reconstructing the logarithmic derivative from real zeros + +The atomic Nevanlinna integral is the logarithmic derivative of the genus-one +product, up to its convergent real linear correction. The remaining term is +affine, with a nonpositive real slope. +-/ + +public section + +open Complex MeasureTheory +open scoped ComplexConjugate + +namespace RealRooted + +private theorem weighted_nevanlinnaKernel_eq {r : ℝ} (hr : r ≠ 0) {z : ℂ} + (hz : z ≠ (r : ℂ)) (m : ℕ) : + (((m : ℝ) / (1 + r ^ 2) : ℝ) : ℂ) * TauCeti.nevanlinnaKernel z r = + -(m : ℂ) * logDerivWeierstrassFactorOneMul (r : ℂ)⁻¹ z + + (((m : ℝ) / (r * (1 + r ^ 2)) : ℝ) : ℂ) := by + have hrC : (r : ℂ) ≠ 0 := ofReal_ne_zero.mpr hr + have hden : (1 + (r : ℂ) ^ 2) ≠ 0 := by + exact_mod_cast (show 1 + r ^ 2 ≠ 0 by positivity) + rw [TauCeti.nevanlinnaKernel_def, logDerivWeierstrassFactorOneMul_inv hrC hz] + push_cast + field_simp [hrC, hden, sub_ne_zero.mpr hz, sub_ne_zero.mpr hz.symm] + ring + +/-- All generalized Laguerre inequalities determine the logarithmic derivative +from its real-zero canonical product and an affine term with nonpositive slope. -/ +theorem exists_logDeriv_eq_realZeroProduct {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (hf0 : f 0 ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + ∃ a b : ℝ, 0 ≤ b ∧ ∀ z ∈ UpperHalfPlane.upperHalfPlaneSet, + logDeriv f z = (a : ℂ) - (b : ℂ) * z + logDeriv (realZeroProduct f) z := by + have hne : f ≠ 0 := fun hzero => hf0 (congrFun hzero 0) + obtain ⟨ρ, b, hρ, hb, hrep, hs, _⟩ := exists_nevanlinna_supported_on_zeros hf hc h + let _ := hρ + let t : ℝ := ∑' r : {x : ℝ | f x = 0}, + (analyticOrderNatAt f (r : ℂ) : ℝ) / ((r : ℝ) * (1 + (r : ℝ) ^ 2)) + have ht : HasSum (fun r : {x : ℝ | f x = 0} => + (((analyticOrderNatAt f (r : ℂ) : ℝ) / + ((r : ℝ) * (1 + (r : ℝ) ^ 2)) : ℝ) : ℂ)) (t : ℂ) := + Complex.hasSum_ofReal.mpr + (summable_analyticOrderNatAt_div_mul_one_add_sq hf hc hf0 h).hasSum + refine ⟨-t - (-logDeriv f I).re, b, hb, fun z hz => ?_⟩ + have hzpos : 0 < z.im := hz + have hp := (summable_norm_natCast_mul_logDerivWeierstrassFactorOneMul _ _ + (summable_analyticOrderNatAt_mul_norm_inv_sq hf hc hf0 h) z).of_norm.hasSum + rw [← logDeriv_realZeroProduct hf hc hf0 h hzpos] at hp + have hsum := hp.neg.add ht + have hkernel := hasSum_nevanlinnaKernel_real_zeros hf hne hs hz + have hatom := measureReal_singleton_eq_analyticOrderNatAt_div hf hne hrep + have heq : (∫ x, TauCeti.nevanlinnaKernel z x ∂ρ) = + -logDeriv (realZeroProduct f) z + (t : ℂ) := by + apply HasSum.unique hkernel + convert hsum using 1 + ext r + rw [hatom] + have hr : (r : ℝ) ≠ 0 := fun hzero => hf0 (by simpa [hzero] using r.property) + have hzr : z ≠ (r : ℂ) := fun heq => by simp [heq] at hzpos + simpa only [neg_mul] using weighted_nevanlinnaKernel_eq hr hzr (analyticOrderNatAt f r) + have hre := hrep z hz + rw [heq] at hre + push_cast + linear_combination -hre + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/CanonicalProduct.lean b/RealRooted/LaguerreInequalities/CanonicalProduct.lean new file mode 100644 index 000000000..eb4c55424 --- /dev/null +++ b/RealRooted/LaguerreInequalities/CanonicalProduct.lean @@ -0,0 +1,85 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import TauCeti.Analysis.Complex.CanonicalProduct.ElementaryFactor +import RealRooted.LaguerreInequalities.InverseSquare +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IndexedProduct +import TauCeti.Analysis.Complex.CanonicalProduct.LogDeriv + +/-! +# The genus-one product over actual real zeros + +The generalized Laguerre inequalities supply the convergence hypothesis for the +canonical product, with the actual analytic multiplicity at each real zero. +When the origin is not a zero, the product has exactly those real zeros. +-/ + +public section + +open Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- The genus-one product over the real zeros away from the origin, counted with +analytic multiplicity. A zero at the origin contributes the constant factor one. -/ +@[expose] noncomputable def realZeroProduct (f : ℂ → ℂ) (z : ℂ) : ℂ := + ∏' r : {x : ℝ | f x = 0}, weierstrassFactor 1 ((r : ℂ)⁻¹ * z) ^ + analyticOrderNatAt f (r : ℂ) + +/-- The canonical product has value one at the origin. -/ +@[simp] theorem realZeroProduct_zero (f : ℂ → ℂ) : realZeroProduct f 0 = 1 := by + simp [realZeroProduct] + +/-- All generalized Laguerre inequalities make the real-zero product an entire function. -/ +theorem differentiable_realZeroProduct {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (hf0 : f 0 ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + Differentiable ℂ (realZeroProduct f) := + differentiable_tprod_weierstrassFactor_one_pow _ _ + (summable_analyticOrderNatAt_mul_norm_inv_sq hf hc hf0 h) + +/-- The real-zero product has no zeros in the upper half-plane. -/ +theorem realZeroProduct_ne_zero_of_im_pos {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (hf0 : f 0 ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) {z : ℂ} (hz : 0 < z.im) : + realZeroProduct f z ≠ 0 := by + rw [realZeroProduct, ne_eq, tprod_weierstrassFactor_one_pow_eq_zero_iff _ _ + (summable_analyticOrderNatAt_mul_norm_inv_sq hf hc hf0 h)] + rintro ⟨r, _, hr⟩ + have hr0 : (r : ℂ) ≠ 0 := fun hzero => + hf0 (by simpa only [hzero] using (show f (r : ℂ) = 0 from r.property)) + have heq : z = (r : ℂ) := ((inv_mul_eq_one₀ hr0).mp hr).symm + simp only [heq, ofReal_im, lt_self_iff_false] at hz + +/-- The logarithmic derivative of the real-zero product is its paired rational series. -/ +theorem logDeriv_realZeroProduct {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (hf0 : f 0 ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) {z : ℂ} (hz : 0 < z.im) : + logDeriv (realZeroProduct f) z = ∑' r : {x : ℝ | f x = 0}, + (analyticOrderNatAt f (r : ℂ) : ℂ) * + logDerivWeierstrassFactorOneMul (r : ℂ)⁻¹ z := by + apply logDeriv_tprod_weierstrassFactor_one_pow _ _ + (summable_analyticOrderNatAt_mul_norm_inv_sq hf hc hf0 h) + intro r _ heq + have hr0 : (r : ℂ) ≠ 0 := fun hzero => + hf0 (by simpa only [hzero] using (show f (r : ℂ) = 0 from r.property)) + have hzr : z = (r : ℂ) := ((inv_mul_eq_one₀ hr0).mp heq).symm + simp only [hzr, ofReal_im, lt_self_iff_false] at hz + +/-- The real-zero canonical product is in the Laguerre--Pólya class, without an +order hypothesis on the original function. -/ +theorem isLaguerrePolya_realZeroProduct {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (hf0 : f 0 ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + IsLaguerrePolya (realZeroProduct f) := by + have hs : Summable (fun r : {x : ℝ | f x = 0} => + (analyticOrderNatAt f (r : ℂ) : ℝ) * ((r : ℝ)⁻¹) ^ 2) := by + simpa only [inv_pow, div_eq_mul_inv] using + summable_analyticOrderNatAt_div_sq hf hc hf0 h + unfold realZeroProduct + simpa only [ofReal_inv] using + isLaguerrePolya_tprod_weierstrassFactor_one_pow _ _ hs + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/CanonicalRepresentation.lean b/RealRooted/LaguerreInequalities/CanonicalRepresentation.lean new file mode 100644 index 000000000..75ed08fae --- /dev/null +++ b/RealRooted/LaguerreInequalities/CanonicalRepresentation.lean @@ -0,0 +1,83 @@ +module + +public import RealRooted.LaguerreInequalities.CanonicalProduct +import RealRooted.LaguerreInequalities.CanonicalLogDerivative +import RealRooted.LaguerreInequalities.RealZeros +import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Identity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlow +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Examples +import TauCeti.Analysis.SpecialFunctions.Complex.Exp.LogDeriv + +/-! +# Canonical representation from generalized Laguerre inequalities + +At a nonzero origin value, all generalized Laguerre inequalities reconstruct the +entire function as its actual real-zero genus-one product times a real Gaussian +exponential. In particular, they imply membership in the Laguerre--Pólya class +without an order or genus hypothesis. +-/ + +public section + +open Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- All generalized Laguerre inequalities give the real genus-one canonical +representation, with a nonnegative Gaussian coefficient, when zero is not a root. -/ +theorem exists_eq_exp_mul_realZeroProduct {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (hc : ∀ z, f (conj z) = conj (f z)) (hf0 : f 0 ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : + ∃ a b : ℝ, 0 ≤ b ∧ ∀ z : ℂ, + f z = f 0 * exp ((a : ℂ) * z - (b : ℂ) * z ^ 2 / 2) * realZeroProduct f z := by + obtain ⟨a, b, hb, hlog⟩ := exists_logDeriv_eq_realZeroProduct hf hc hf0 h + have hP := differentiable_realZeroProduct hf hc hf0 h + let g : ℂ → ℂ := fun z => exp ((a : ℂ) * z - (b : ℂ) * z ^ 2 / 2) * + realZeroProduct f z + have hg : Differentiable ℂ g := by + exact (Differentiable.cexp (by fun_prop)).mul hP + have hgn (z : ℂ) (hz : z ∈ UpperHalfPlane.upperHalfPlaneSet) : g z ≠ 0 := + mul_ne_zero (exp_ne_zero _) (realZeroProduct_ne_zero_of_im_pos hf hc hf0 h hz) + have hfn (z : ℂ) (hz : z ∈ UpperHalfPlane.upperHalfPlaneSet) : f z ≠ 0 := by + intro hzero + have him := im_eq_zero_of_laguerreCoefficient_nonneg hf hc + (fun heq => hf0 (congrFun heq 0)) h hzero + exact (ne_of_gt hz) him + have hglog (z : ℂ) (hz : z ∈ UpperHalfPlane.upperHalfPlaneSet) : + logDeriv g z = (a : ℂ) - (b : ℂ) * z + logDeriv (realZeroProduct f) z := by + rw [show g = _ from rfl, TauCeti.logDeriv_cexp_mul + (realZeroProduct_ne_zero_of_im_pos hf hc hf0 h hz) (hP z) (by fun_prop)] + congr 1 + rw [deriv_fun_sub (by fun_prop) (by fun_prop), deriv_div_const, + deriv_const_mul_id, deriv_const_mul _ (by fun_prop), deriv_pow_field] + norm_num + ring + have heq := hf.eq_mul_of_logDeriv_eqOn hg UpperHalfPlane.isOpen_upperHalfPlaneSet + (convex_halfSpace_im_gt 0).isPreconnected ⟨I, by simp⟩ hfn hgn + (fun z hz => (hlog z hz).trans (hglog z hz).symm) + (by simp [g]) + exact ⟨a, b, hb, fun z => by simpa only [g, ← mul_assoc] using heq z⟩ + +/-- At a nonzero origin value, all generalized Laguerre inequalities imply +membership in the Laguerre--Pólya class without a growth assumption. -/ +theorem isLaguerrePolya_of_laguerreCoefficient_nonneg_of_ne_zero {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) (hf0 : f 0 ≠ 0) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : IsLaguerrePolya f := by + obtain ⟨a, b, hb, heq⟩ := exists_eq_exp_mul_realZeroProduct hf hc hf0 h + have hzero : ((f 0).re : ℂ) = f 0 := by + apply conj_eq_iff_re.mp + simpa using (hc 0).symm + have hlin : IsLaguerrePolya (fun z : ℂ => exp ((a : ℂ) * z)) := by + simpa using isLaguerrePolya_exp.comp_affine_real a 0 + have hgauss := isLaguerrePolya_exp_neg_mul_sq (div_nonneg hb (by norm_num : (0 : ℝ) ≤ 2)) + have hp := ((hlin.mul hgauss).const_mul_real (f 0).re).mul + (isLaguerrePolya_realZeroProduct hf hc hf0 h) + convert hp using 1 + funext z + rw [heq z] + simp only [Pi.mul_apply, hzero, ← exp_add, ofReal_div, ofReal_ofNat] + congr 3 + ring + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/Characterization.lean b/RealRooted/LaguerreInequalities/Characterization.lean new file mode 100644 index 000000000..bcc26e1cc --- /dev/null +++ b/RealRooted/LaguerreInequalities/Characterization.lean @@ -0,0 +1,63 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.LaguerreInequalities.CanonicalRepresentation +import RealRooted.LaguerreInequalities.Translation +import RealRooted.Mathlib.Analysis.Analytic.CountableZeros +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality + +/-! +# The unrestricted generalized Laguerre criterion + +For a real entire function, nonnegativity of every generalized Laguerre +coefficient at every real point is equivalent to membership in the +Laguerre--Pólya class. No growth, order, or genus hypothesis is imposed, and the +identically zero function is included. + +This is the zero-aware form of Csordas--Vishnyakova (2013), Theorem 2.3. The +converse uses a finite Nevanlinna measure and its atomic canonical product. +-/ + +public section + +open Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- All generalized Laguerre inequalities characterize the Laguerre--Pólya +class among real entire functions, including the identically zero function. +This is the converse in Csordas--Vishnyakova (2013), Theorem 2.3, without a +growth or genus assumption. -/ +theorem isLaguerrePolya_of_laguerreCoefficient_nonneg {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) + (h : ∀ x n, 0 ≤ laguerreCoefficient f x n) : IsLaguerrePolya f := by + by_cases hne : f = 0 + · rw [hne] + exact IsLaguerrePolya.zero + have hpoint : ∃ a : ℝ, f a ≠ 0 := by + by_contra! hzero + have heq : {x : ℝ | f x = 0} = Set.univ := Set.eq_univ_of_forall hzero + exact Set.not_countable_univ (heq ▸ hf.countable_real_zeroSet hne) + obtain ⟨a, ha⟩ := hpoint + have hshift : IsLaguerrePolya (fun z : ℂ => f (z + a)) := by + apply isLaguerrePolya_of_laguerreCoefficient_nonneg_of_ne_zero + (f := fun z => f (z + a)) (hf.comp (by fun_prop)) + · intro z + simpa only [map_add, conj_ofReal] using hc (z + a) + · simpa only [zero_add] using ha + · intro x n + rw [laguerreCoefficient_comp_add_real] + exact h (x + a) n + simpa only [ofReal_one, one_mul, ofReal_neg, neg_add_cancel_right] using + hshift.comp_affine_real 1 (-a) + +/-- A real entire function is Laguerre--Pólya if and only if every generalized +Laguerre coefficient is nonnegative, with no order or genus restriction. -/ +theorem isLaguerrePolya_iff_laguerreCoefficient_nonneg {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (hc : ∀ z, f (conj z) = conj (f z)) : + IsLaguerrePolya f ↔ ∀ x n, 0 ≤ laguerreCoefficient f x n := + ⟨fun h => h.laguerreCoefficient_nonneg, isLaguerrePolya_of_laguerreCoefficient_nonneg hf hc⟩ + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/Translation.lean b/RealRooted/LaguerreInequalities/Translation.lean new file mode 100644 index 000000000..3efdee5e4 --- /dev/null +++ b/RealRooted/LaguerreInequalities/Translation.lean @@ -0,0 +1,32 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic + +/-! +# Real translations of generalized Laguerre inequalities + +Translation of the entire function by a real number simply translates the real +point at which its generalized Laguerre coefficient is evaluated. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- Translating a function by a real number translates its Laguerre product's base point. -/ +theorem laguerreProduct_comp_add_real (f : ℂ → ℂ) (a x : ℝ) (z : ℂ) : + laguerreProduct (fun w => f (w + a)) x z = laguerreProduct f (x + a) z := by + unfold laguerreProduct + push_cast + congr 2 <;> ring + +/-- Translating a function by a real number translates each generalized Laguerre coefficient. -/ +theorem laguerreCoefficient_comp_add_real (f : ℂ → ℂ) (a x : ℝ) (n : ℕ) : + laguerreCoefficient (fun w => f (w + a)) x n = laguerreCoefficient f (x + a) n := by + have heq : laguerreProduct (fun w => f (w + a)) x = laguerreProduct f (x + a) := + funext (laguerreProduct_comp_add_real f a x) + simp only [laguerreCoefficient, heq] + +end RealRooted From 75ca20d6296bdc199ec9b814de604458cc833978 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 16:09:04 +0000 Subject: [PATCH 26/56] feat: complete generalized Laguerre criterion and add xi moment inequalities --- RealRooted.lean | 17 ++ .../LaguerrePolya/AppellMoments.lean | 151 ++++++++++++++++++ .../PolyaSchur/LaguerrePolya/Strictness.lean | 3 +- RealRooted/Production.lean | 18 +++ .../RiemannHypothesis/IntegerSamples.lean | 29 ++++ RealRooted/RiemannHypothesis/Moments.lean | 59 +++++++ scripts/import_architecture.json | 4 +- scripts/mathlib_shims.json | 10 ++ 8 files changed, 288 insertions(+), 3 deletions(-) create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/AppellMoments.lean create mode 100644 RealRooted/RiemannHypothesis/IntegerSamples.lean create mode 100644 RealRooted/RiemannHypothesis/Moments.lean diff --git a/RealRooted.lean b/RealRooted.lean index f65ae6294..9ef5305eb 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2509,3 +2509,20 @@ public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteZer public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.RootDivision public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.StrictOperator public import RealRooted.SimpleRoots.Reflection +public import RealRooted.Hermite.GaussianOperator +public import RealRooted.Hermite.PolynomialGaussian +public import RealRooted.LaguerreInequalities.CanonicalLogDerivative +public import RealRooted.LaguerreInequalities.CanonicalProduct +public import RealRooted.LaguerreInequalities.CanonicalRepresentation +public import RealRooted.LaguerreInequalities.Characterization +public import RealRooted.LaguerreInequalities.Translation +public import RealRooted.LaguerreInequalities.ZeroFree +public import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Identity +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.AppellMoments +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FiniteGaussian +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FiniteZeros +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IndexedProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorLinear +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Strictness +public import RealRooted.RiemannHypothesis.IntegerSamples +public import RealRooted.RiemannHypothesis.Moments diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/AppellMoments.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/AppellMoments.lean new file mode 100644 index 000000000..028d5411c --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/AppellMoments.lean @@ -0,0 +1,151 @@ +module + +public import RealRooted.BasisTransform.LimitingAppellMoments +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlow +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.CompPowCoefficient + +/-! +# Hankel positivity of logarithmic coefficients of Type-I entire functions + +The normalized ordinary Taylor coefficients give real-rooted limiting Appell +rows through the substitution `f(-z²)`. Newton sums of these rows yield positive +semidefinite Hankel matrices of the signed logarithmic coefficients, including +both matrices in the Stieltjes moment criterion. + +These are the Hankel positivity consequences of the forward direction of +A. D. Sokal, *When does a hypergeometric function pFq belong to the +Laguerre–Pólya class LP+?*, Appendix A, Proposition 6, +https://doi.org/10.1016/j.jmaa.2022.126432. A representing measure and the converse +criterion require additional arguments. +-/ + +public section + +open Polynomial Finset Complex + +namespace RealRooted + +private theorem taylor_comp_neg_sq (f : ℂ → ℂ) (hf : Differentiable ℂ f) (k : ℕ) : + (iteratedDeriv k (fun z => f (-z ^ 2)) 0 / k.factorial).re = + if 2 ∣ k then (-1 : ℝ) ^ (k / 2) * + ((iteratedDeriv (k / 2) f 0).re / (k / 2).factorial) else 0 := by + have ha : AnalyticAt ℂ (fun z => f (-z)) 0 := + (hf.comp (by fun_prop : Differentiable ℂ (fun z : ℂ => -z))).analyticAt 0 + have h := iteratedDeriv_comp_pow_zero_eq ha (by norm_num : 0 < 2) k + change iteratedDeriv k (fun z => f (-(z ^ 2))) 0 = _ at h + rw [h, iteratedDeriv_comp_neg] + have hk : (k.factorial : ℂ) ≠ 0 := Nat.cast_ne_zero.mpr k.factorial_ne_zero + by_cases hd : 2 ∣ k + · simp only [ite_eq_left hd, neg_zero, smul_eq_mul] + rw [mul_div_cancel_left₀ _ hk] + have hs : (-1 : ℂ) ^ (k / 2) = Complex.ofReal ((-1 : ℝ) ^ (k / 2)) := by simp + rw [hs] + simp only [mul_div_assoc, mul_re, ofReal_re, ofReal_im, zero_mul, sub_zero, + div_natCast_re] + · simp [hd] + +private theorem sum_even_range {M : Type*} [AddCommMonoid M] + (F : ℕ → M) (N : ℕ) : + (∑ k ∈ range (N + 1), if 2 ∣ k then F k else 0) = + ∑ j ∈ range (N / 2 + 1), F (2 * j) := by + classical + rw [← sum_filter] + symm + apply sum_bij (fun j _ => 2 * j) + · intro j hj + simp only [mem_filter, mem_range] + have hj' := mem_range.mp hj + constructor + · lia + · exact dvd_mul_right 2 j + · intro a ha b hb hab + lia + · intro k hk + obtain ⟨hkr, hkd⟩ := mem_filter.mp hk + refine ⟨k / 2, mem_range.mpr ?_, ?_⟩ + · have hle := mem_range.mp hkr + lia + · exact Nat.mul_div_cancel' hkd + · intro j hj + rfl + +/-- The even square-substitution operator produces the limiting Appell row. -/ +theorem taylorDifferentialOperator_comp_neg_sq_X_pow + {f : ℂ → ℂ} (hf : Differentiable ℂ f) (N : ℕ) : + taylorDifferentialOperator (fun z => f (-z ^ 2)) (X ^ N) = + limitingAppellPolynomial (fun j => (iteratedDeriv j f 0).re / j.factorial) N := by + rw [taylorDifferentialOperator, natDegree_X_pow] + simp only [taylor_comp_neg_sq f hf, apply_ite C, map_zero, ite_mul, zero_mul] + rw [sum_even_range] + ext k + rw [finsetSum_coeff, coeff_limitingAppellPolynomial] + apply sum_congr rfl + intro j hj + rw [Nat.mul_div_cancel_left j (by norm_num : 0 < 2), + iterate_derivative_X_pow_eq_C_mul] + simp only [← mul_assoc, ← C_mul] + rw [coeff_C_mul_X_pow] + split_ifs <;> simp_all + ring + +/-- Scalar multiplication of the coefficient sequence scales each Appell row. -/ +private theorem limitingAppellPolynomial_const_mul (c : ℝ) (d : ℕ → ℝ) (N : ℕ) : + limitingAppellPolynomial (fun j => c * d j) N = + C c * limitingAppellPolynomial d N := by + ext k + simp only [coeff_C_mul, coeff_limitingAppellPolynomial] + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro j hj + split_ifs <;> ring + +/-- Type-I entire functions give real-rooted limiting Appell rows. -/ +theorem IsLaguerrePolyaTypeI.splits_limitingAppellPolynomial + {f : ℂ → ℂ} (hf : IsLaguerrePolyaTypeI f) (N : ℕ) : + (limitingAppellPolynomial + (fun j => (iteratedDeriv j f 0).re / j.factorial) N).Splits := by + have hg : IsLaguerrePolya (fun z => f (-z ^ 2)) := by + simpa using hf.isLaguerrePolya_comp_neg_mul_sq (by norm_num : (0 : ℝ) ≤ 1) + rw [← taylorDifferentialOperator_comp_neg_sq_X_pow hf.toLaguerrePolya.differentiable] + exact hg.taylorDifferentialOperator_splits ((Splits.X).pow N) + +/-- Normalizing the constant term preserves the splitting of the Appell rows. -/ +private theorem splits_normalized_limitingAppellPolynomial + {f : ℂ → ℂ} (hf : IsLaguerrePolyaTypeI f) (N : ℕ) : + (limitingAppellPolynomial + (fun j => (iteratedDeriv j f 0).re / (j.factorial * (f 0).re)) N).Splits := by + have heq : (fun j => (iteratedDeriv j f 0).re / (j.factorial * (f 0).re)) = + fun j => (f 0).re⁻¹ * ((iteratedDeriv j f 0).re / j.factorial) := by + funext j + simp only [div_eq_mul_inv, mul_inv_rev] + ring + rw [heq, limitingAppellPolynomial_const_mul] + exact (Splits.C _).mul (hf.splits_limitingAppellPolynomial N) + +/-- Every shifted Hankel matrix of the normalized Newton moments is positive +semidefinite for a Type-I entire function with nonzero constant term. -/ +theorem IsLaguerrePolyaTypeI.posSemidef_limitingAppellMoment + {f : ℂ → ℂ} (hf : IsLaguerrePolyaTypeI f) (h0 : (f 0).re ≠ 0) (n r : ℕ) : + Matrix.PosSemidef (fun i j : Fin n => + limitingAppellMoment + (fun k => (iteratedDeriv k f 0).re / (k.factorial * (f 0).re)) + (i.val + j.val + (r + 1))) := + RealRooted.posSemidef_limitingAppellMoment (by simp [h0]) + (splits_normalized_limitingAppellPolynomial hf) n r + +/-- Every shifted Hankel matrix of the normalized signed logarithmic +coefficients is positive semidefinite. -/ +theorem IsLaguerrePolyaTypeI.posSemidef_signed_coeff_logOf + {f : ℂ → ℂ} (hf : IsLaguerrePolyaTypeI f) (h0 : (f 0).re ≠ 0) (n r : ℕ) : + Matrix.PosSemidef (fun i j : Fin n => + let k := i.val + j.val + (r + 1) + (-1 : ℝ) ^ (k + 1) * k * PowerSeries.coeff k (PowerSeries.logOf + (PowerSeries.mk + (fun j => (iteratedDeriv j f 0).re / (j.factorial * (f 0).re))))) := + posSemidef_signed_coeff_logOf_limitingAppell (by simp [h0]) + (splits_normalized_limitingAppellPolynomial hf) n r + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Strictness.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Strictness.lean index 71347c784..ac291a4f1 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Strictness.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Strictness.lean @@ -1,6 +1,7 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen public import RealRooted.SimpleRoots public import Mathlib.Analysis.Complex.Exponential import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.StrictOperator diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index 6de88d95e..9beeee846 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2436,6 +2436,24 @@ public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.RootDivisio public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.StrictOperator public import RealRooted.SimpleRoots.Reflection +public import RealRooted.Hermite.GaussianOperator +public import RealRooted.Hermite.PolynomialGaussian +public import RealRooted.LaguerreInequalities.CanonicalLogDerivative +public import RealRooted.LaguerreInequalities.CanonicalProduct +public import RealRooted.LaguerreInequalities.CanonicalRepresentation +public import RealRooted.LaguerreInequalities.Characterization +public import RealRooted.LaguerreInequalities.Translation +public import RealRooted.LaguerreInequalities.ZeroFree +public import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Identity +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.AppellMoments +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FiniteGaussian +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FiniteZeros +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IndexedProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorLinear +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Strictness +public import RealRooted.RiemannHypothesis.IntegerSamples +public import RealRooted.RiemannHypothesis.Moments + /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/IntegerSamples.lean b/RealRooted/RiemannHypothesis/IntegerSamples.lean new file mode 100644 index 000000000..d8bf7939c --- /dev/null +++ b/RealRooted/RiemannHypothesis/IntegerSamples.lean @@ -0,0 +1,29 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta +public import RealRooted.MultiplierSequence.Infinite +import RealRooted.RiemannHypothesis.TotalPositivity +import RealRooted.MultiplierSequence.Laguerre + +/-! +# Integer sample values of xi derivatives as multiplier sequences + +Laguerre's sample-value theorem applies to every Type-I xi derivative under RH. +The sequence consists of values at nonnegative integers, rather than Taylor +coefficients at the origin. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- Under RH the values of each xi derivative at nonnegative integers form +a PF multiplier sequence. -/ +theorem isPFMultiplierSequence_iteratedDeriv_riemannXiTheta_natCast + (hRH : RiemannHypothesis) (n : ℕ) : + IsPFMultiplierSequence (fun k => (iteratedDeriv n riemannXiTheta k).re) := + (isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH n).isPFMultiplierSequence_eval_natCast + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/Moments.lean b/RealRooted/RiemannHypothesis/Moments.lean new file mode 100644 index 000000000..366b2ccd8 --- /dev/null +++ b/RealRooted/RiemannHypothesis/Moments.lean @@ -0,0 +1,59 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.BasisTransform.LimitingAppellMoments +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity +import RealRooted.RiemannHypothesis.TotalPositivity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.AppellMoments + +/-! +# Hankel positivity of logarithmic xi coefficients under RH + +For every derivative shift, normalize the square-variable xi function to one +at the origin. Under RH the Newton moments of its ordinary Taylor coefficients +have positive semidefinite Hankel matrices at every positive shift. Equivalently, +these are the signed coefficients of its formal logarithmic derivative. + +This specializes the forward Hankel positivity assertion associated with +Sokal's logarithmic-derivative criterion (Appendix A, Proposition 6), +https://doi.org/10.1016/j.jmaa.2022.126432. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- Under RH every shifted Hankel matrix of the normalized xi Newton moments +is positive semidefinite, for every derivative shift. -/ +theorem posSemidef_riemannXiCoeff_limitingAppellMoment + (hRH : RiemannHypothesis) (s n r : ℕ) : + Matrix.PosSemidef (fun i j : Fin n => + limitingAppellMoment + (fun k => riemannXiCoeff (s + k) / (k.factorial * riemannXiCoeff s)) + (i.val + j.val + (r + 1))) := by + have hf := isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH s + have h0 : (iteratedDeriv s riemannXiTheta 0).re ≠ 0 := + (riemannXiCoeff_pos s).ne' + simpa only [riemannXiCoeff, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm] using + hf.posSemidef_limitingAppellMoment h0 n r + +/-- Under RH the signed logarithmic coefficients of each normalized xi +derivative have positive semidefinite Hankel matrices at all positive shifts. -/ +theorem posSemidef_riemannXiCoeff_logOf + (hRH : RiemannHypothesis) (s n r : ℕ) : + Matrix.PosSemidef (fun i j : Fin n => + let k := i.val + j.val + (r + 1) + (-1 : ℝ) ^ (k + 1) * k * PowerSeries.coeff k (PowerSeries.logOf + (PowerSeries.mk + (fun j => riemannXiCoeff (s + j) / (j.factorial * riemannXiCoeff s))))) := by + have hf := isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH s + have h0 : (iteratedDeriv s riemannXiTheta 0).re ≠ 0 := + (riemannXiCoeff_pos s).ne' + simpa only [riemannXiCoeff, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm] using + hf.posSemidef_signed_coeff_logOf h0 n r + +end RealRooted diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index a064743b1..cc59e259a 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2499 + "max_modules": 2516 }, "RealRooted.Production": { - "max_modules": 2427 + "max_modules": 2444 }, "RealRooted.Tactic.Examples": { "max_modules": 844 diff --git a/scripts/mathlib_shims.json b/scripts/mathlib_shims.json index 9e645add8..1015af174 100644 --- a/scripts/mathlib_shims.json +++ b/scripts/mathlib_shims.json @@ -3889,6 +3889,16 @@ ], "note": "Analytic zeros, logarithmic residues, or convergent atomic-sum infrastructure for canonical products.", "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Calculus/LogDeriv/Identity.lean" + ], + "modules": [ + "Mathlib.Analysis.Calculus.LogDeriv.Identity" + ], + "note": "Entire functions with equal logarithmic derivatives on a nonempty open preconnected set differ by their normalization constant. No upstream PR yet.", + "speculative": true } ] } From 3b1f8d1992d11f6cb638a66ea28132a33c9d95fe 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 16:00:53 +0000 Subject: [PATCH 27/56] feat: classify exceptional exponential Jensen factors and multiplicities --- .../Hermite/ExponentialJensenFactor.lean | 97 +++++++++++++++++++ .../ExponentialJensenMultiplicity.lean | 90 +++++++++++++++++ RealRooted/Hermite/PoulainExponential.lean | 72 ++++++++++++++ 3 files changed, 259 insertions(+) create mode 100644 RealRooted/Hermite/ExponentialJensenFactor.lean create mode 100644 RealRooted/Hermite/ExponentialJensenMultiplicity.lean create mode 100644 RealRooted/Hermite/PoulainExponential.lean diff --git a/RealRooted/Hermite/ExponentialJensenFactor.lean b/RealRooted/Hermite/ExponentialJensenFactor.lean new file mode 100644 index 000000000..051290bef --- /dev/null +++ b/RealRooted/Hermite/ExponentialJensenFactor.lean @@ -0,0 +1,97 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import Mathlib.Analysis.Complex.Exponential +import RealRooted.Hermite.PoulainExponential +import RealRooted.Mathlib.Algebra.Polynomial.Reverse + +/-! +# The exceptional exponential factor of Jensen polynomials + +For a polynomial symbol times `exp(a z)`, the Jensen polynomial of degree +bound `d ≥ deg q` has the factor `(1 + a X)^(d-deg q)` and an explicit residual +sum. The identity is algebraic: no real-rootedness or nonzero constant term +is needed. It is the factor formula in Craven–Csordas (1994), Proposition 4.1(2). +-/ + +public section + +open Polynomial Complex RealRooted.HermitePoulain + +namespace RealRooted + +/-- Translation commutes with every iterated formal derivative. -/ +private theorem iterate_derivative_comp_translate (p : ℝ[X]) (a : ℝ) (k : ℕ) : + (derivative^[k]) (p.comp (X + C a)) = ((derivative^[k]) p).comp (X + C a) := by + induction k with + | zero => rfl + | succ k ih => + rw [Function.iterate_succ_apply', ih, derivative_comp, derivative_X_add_C, + one_mul, Function.iterate_succ_apply'] + +/-- Reflection distributes over finite polynomial sums. -/ +private theorem reflect_finset_sum {ι : Type*} (s : Finset ι) (p : ι → ℝ[X]) (d : ℕ) : + reflect d (∑ k ∈ s, p k) = ∑ k ∈ s, reflect d (p k) := by + classical + induction s using Finset.induction_on with + | empty => simp + | @insert k s hk ih => simp only [Finset.sum_insert hk, reflect_add, ih] + +/-- Exact-degree reflection reverses each translated linear factor. -/ +private theorem reflect_translate_power (a : ℝ) (m : ℕ) : + reflect m ((X + C a) ^ m) = (1 + C a * X) ^ m := by + induction m with + | zero => simp + | succ m ih => + rw [pow_succ, reflect_mul _ _ (by simp) (by simp), ih] + simp [pow_succ] + +/-- A larger reflection bound contributes the extra power of the variable. -/ +private theorem reflect_translate_power_of_le (a : ℝ) {m d : ℕ} (hm : m ≤ d) : + reflect d ((X + C a) ^ m) = X ^ (d - m) * (1 + C a * X) ^ m := by + have he : d = (d - m) + m := by lia + rw [he] + conv_lhs => rw [← one_mul ((X + C a) ^ m)] + rw [reflect_mul _ _ (by simp) (by simp), reflect_one, reflect_translate_power] + congr 2 + lia + +/-- Reflecting the finite differential sum gives the unfactored Jensen expansion. -/ +private theorem jensen_polynomial_exp_sum (q : ℝ[X]) (a : ℝ) (d : ℕ) + (hd : q.natDegree ≤ d) : + jensenPolynomial d (fun k => + (iteratedDeriv k (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) 0).re) = + ∑ k ∈ Finset.range (q.natDegree + 1), + C (q.coeff k * (d.descFactorial k : ℝ)) * (X ^ k * (1 + C a * X) ^ (d - k)) := by + have h := taylor_polynomial_exp_eq_operator q (X ^ d) a + rw [taylorDifferentialOperator_X_pow] at h + have heq := congrArg (reflect d) h + rw [reflect_reflect, applyAsDifferentialOperator, reflect_finset_sum] at heq + rw [heq] + apply Finset.sum_congr rfl + intro k hk + have hkd : k ≤ d := (Nat.le_of_lt_succ (Finset.mem_range.mp hk)).trans hd + rw [iterate_derivative_comp_translate, iterate_derivative_X_pow_eq_C_mul, + mul_comp, C_comp, pow_comp, X_comp, ← mul_assoc, ← C_mul, + reflect_C_mul, reflect_translate_power_of_le a (Nat.sub_le _ _), + Nat.sub_sub_self hkd] + +/-- Exact exceptional factor formula for polynomial–exponential Jensen +polynomials. The descending factorial is `d! / (d-k)!` in this degree range. -/ +theorem jensen_polynomial_exp_factor (q : ℝ[X]) (a : ℝ) (d : ℕ) + (hd : q.natDegree ≤ d) : + jensenPolynomial d (fun k => + (iteratedDeriv k (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) 0).re) = + (1 + C a * X) ^ (d - q.natDegree) * + ∑ k ∈ Finset.range (q.natDegree + 1), + C (q.coeff k * (d.descFactorial k : ℝ)) * + (X ^ k * (1 + C a * X) ^ (q.natDegree - k)) := by + rw [jensen_polynomial_exp_sum q a d hd, Finset.mul_sum] + apply Finset.sum_congr rfl + intro k hk + have hkm : k ≤ q.natDegree := Nat.le_of_lt_succ (Finset.mem_range.mp hk) + have he : d - k = (d - q.natDegree) + (q.natDegree - k) := by lia + rw [he, pow_add] + ring + +end RealRooted diff --git a/RealRooted/Hermite/ExponentialJensenMultiplicity.lean b/RealRooted/Hermite/ExponentialJensenMultiplicity.lean new file mode 100644 index 000000000..46369e014 --- /dev/null +++ b/RealRooted/Hermite/ExponentialJensenMultiplicity.lean @@ -0,0 +1,90 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import RealRooted.SimpleRoots +public import Mathlib.Analysis.Complex.Exponential +import RealRooted.Hermite.ExponentialJensenFactor +import RealRooted.Hermite.PoulainExponential + +/-! +# Exact multiplicity of the exceptional Jensen zero + +The explicit exponential factor has exactly the predicted multiplicity: +the residual sum does not vanish at `-1/a`. For a real-rooted polynomial +symbol nonzero at zero, this gives the exact simple-root degree range, +including the endpoint one degree beyond the symbol degree. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- At the exceptional point, only the leading-coefficient summand survives. -/ +private theorem eval_exponential_jensen_residual (q : ℝ[X]) {a : ℝ} (ha : a ≠ 0) (d : ℕ) : + (∑ k ∈ Finset.range (q.natDegree + 1), + C (q.coeff k * (d.descFactorial k : ℝ)) * + (X ^ k * (1 + C a * X) ^ (q.natDegree - k))).eval (-a⁻¹) = + q.leadingCoeff * (d.descFactorial q.natDegree : ℝ) * (-a⁻¹) ^ q.natDegree := by + have hz : 1 + a * (-a⁻¹) = 0 := by simp [ha] + rw [eval_finsetSum, Finset.sum_eq_single q.natDegree] + · simp only [eval_mul, eval_C, eval_pow, eval_X, + Nat.sub_self, pow_zero, mul_one, coeff_natDegree] + · intro k hk hkm + have hlt : k < q.natDegree := by + have := Finset.mem_range.mp hk + lia + have hn : q.natDegree - k ≠ 0 := by lia + simp only [eval_mul, eval_C, eval_pow, eval_X, eval_add, eval_one, + hz, zero_pow hn, mul_zero] + · simp + +/-- The exceptional Jensen zero has exactly multiplicity `d - deg q`. +Neither real-rootedness nor a nonzero constant coefficient is required here. -/ +theorem rootMultiplicity_jensen_polynomial_exp {q : ℝ[X]} (hq0 : q ≠ 0) + {a : ℝ} (ha : a ≠ 0) (d : ℕ) (hd : q.natDegree ≤ d) : + (jensenPolynomial d (fun k => + (iteratedDeriv k + (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) 0).re)).rootMultiplicity + (-a⁻¹) = d - q.natDegree := by + let R : ℝ[X] := ∑ k ∈ Finset.range (q.natDegree + 1), + C (q.coeff k * (d.descFactorial k : ℝ)) * + (X ^ k * (1 + C a * X) ^ (q.natDegree - k)) + have hRval : R.eval (-a⁻¹) ≠ 0 := by + rw [show R.eval (-a⁻¹) = _ from eval_exponential_jensen_residual q ha d] + exact mul_ne_zero (mul_ne_zero (leadingCoeff_ne_zero.mpr hq0) + (by exact_mod_cast (Nat.descFactorial_pos.mpr hd).ne')) + (pow_ne_zero _ (neg_ne_zero.mpr (inv_ne_zero ha))) + have hR : R ≠ 0 := by intro hz; exact hRval (by simp [hz]) + have hlinear : (1 + C a * X : ℝ[X]) = C a * (X - C (-a⁻¹)) := by + rw [mul_sub, ← C_mul] + simp [ha, add_comm] + rw [jensen_polynomial_exp_factor q a d hd] + change ((1 + C a * X) ^ (d - q.natDegree) * R).rootMultiplicity (-a⁻¹) = _ + rw [hlinear, mul_pow, ← C_pow, mul_assoc, + rootMultiplicity_C_mul (pow_ne_zero _ ha), mul_comm _ R, + rootMultiplicity_mul_X_sub_C_pow hR, rootMultiplicity_eq_zero hRval, zero_add] + +/-- For a nonzero real exponential slope, the simple-root degree range is +exactly `d ≤ deg q + 1`, strengthening the range stated in Proposition 4.1(2). -/ +theorem simple_jensen_polynomial_exp_iff_degree {q : ℝ[X]} + (hq : q.Splits) (hq0 : q.coeff 0 ≠ 0) {a : ℝ} (ha : a ≠ 0) (d : ℕ) : + IsSimpleRealRooted (jensenPolynomial d (fun k => + (iteratedDeriv k (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) 0).re)) ↔ + d ≤ q.natDegree + 1 := by + constructor + · intro hs + by_contra hnot + have hd : q.natDegree ≤ d := by lia + have hqne : q ≠ 0 := by intro hz; simp [hz] at hq0 + have hm := rootMultiplicity_jensen_polynomial_exp hqne ha d hd + have hroot : (jensenPolynomial d (fun k => + (iteratedDeriv k (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) 0).re)).IsRoot + (-a⁻¹) := (rootMultiplicity_pos hs.1).mp (by rw [hm]; lia) + have hsimp := hs.2.2 _ hroot + lia + · intro hd + exact simple_jensen_polynomial_exp_of_degree hq hq0 a d (by lia) + +end RealRooted diff --git a/RealRooted/Hermite/PoulainExponential.lean b/RealRooted/Hermite/PoulainExponential.lean new file mode 100644 index 000000000..7fe0bfe9c --- /dev/null +++ b/RealRooted/Hermite/PoulainExponential.lean @@ -0,0 +1,72 @@ +module + +public import RealRooted.Hermite.Poulain +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import RealRooted.SimpleRoots +public import Mathlib.Analysis.Complex.Exponential +import RealRooted.Hermite.PoulainSimple +import RealRooted.Hermite.GaussianOperator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct +import RealRooted.SimpleRoots.Reflection +import RealRooted.Mathlib.Algebra.Polynomial.Reverse + +/-! +# Exponential–polynomial differential symbols + +Multiplication by a real exponential translates the polynomial input before +applying the finite symbol. This gives the simple-root degree range for the +exceptional symbols in Craven–Csordas (1994), Proposition 4.1(2). In fact the +finite multiplicity theorem also includes degree `deg q + 1`. +-/ + +public section + +open Polynomial Complex RealRooted.HermitePoulain + +namespace RealRooted + +/-- An exponential factor translates the input to a finite differential operator. -/ +theorem taylor_polynomial_exp_eq_operator (q p : ℝ[X]) (a : ℝ) : + taylorDifferentialOperator + (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) p = + applyAsDifferentialOperator q (p.comp (X + C a)) := by + rw [taylorDifferentialOperator_polynomial_mul (by fun_prop), taylor_exp_linear_eq_comp] + +/-- In the finite degree range, a polynomial–exponential symbol strictly +regularizes every nonzero split polynomial input. -/ +theorem simple_taylor_polynomial_exp_of_degree {q p : ℝ[X]} + (hq : q.Splits) (hq0 : q.coeff 0 ≠ 0) (a : ℝ) + (hp0 : p ≠ 0) (hp : p.Splits) (hd : p.natDegree - 1 ≤ q.natDegree) : + IsSimpleRealRooted (taylorDifferentialOperator + (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) p) := by + rw [taylor_polynomial_exp_eq_operator] + have hpcomp : p.comp (X + C a) ≠ 0 := by + intro hz + have h := congrArg (fun v : ℝ[X] => v.comp (X - C a)) hz + exact hp0 (by simpa [comp_assoc] using h) + apply isSimpleRealRooted_applyAsDifferentialOperator hq hq0 hpcomp (hp.comp_X_add_C a) + simpa [natDegree_comp] using hd + +/-- The Jensen polynomials of a real-rooted polynomial times a real +exponential have simple roots through degree `deg q + 1`. This contains the +degree range stated in Craven–Csordas Proposition 4.1(2). -/ +theorem simple_jensen_polynomial_exp_of_degree {q : ℝ[X]} + (hq : q.Splits) (hq0 : q.coeff 0 ≠ 0) (a : ℝ) (d : ℕ) + (hd : d - 1 ≤ q.natDegree) : + IsSimpleRealRooted (jensenPolynomial d (fun k => + (iteratedDeriv k (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) 0).re)) := by + have hsimple := simple_taylor_polynomial_exp_of_degree hq hq0 a + (pow_ne_zero d X_ne_zero) (Splits.X.pow d) (by simpa using hd) + rw [taylorDifferentialOperator_X_pow] at hsimple + have hsplit := (splits_reflect_iff (natDegree_jensenPolynomial_le d _)).mp hsimple.2.1 + have hconst : (jensenPolynomial d (fun k => + (iteratedDeriv k (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) 0).re)).coeff 0 + ≠ 0 := by + simp only [coeff_jensenPolynomial, Nat.zero_le, ite_true, Nat.choose_zero_right, + Nat.cast_one, one_mul, iteratedDeriv_zero] + simpa [← coeff_zero_eq_eval_zero] using hq0 + refine ⟨?_, hsplit, hsimple.2.2.of_reflect hconst hsplit (natDegree_jensenPolynomial_le d _)⟩ + intro hz + exact hconst (by simp [hz]) + +end RealRooted From 444f7eb272b7ab4e92cdd14fdfb25fd860ec450e 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 16:10:29 +0000 Subject: [PATCH 28/56] feat: prove Jensen separation and audit the sign hypothesis --- .../JensenPositiveInterlacing.lean | 63 +++++++ .../MultiplierSequence/JensenSeparation.lean | 87 ++++++++++ .../LaguerrePolya/JensenSignBoundary.lean | 161 ++++++++++++++++++ .../RiemannHypothesis/JensenInterlacing.lean | 47 +++++ 4 files changed, 358 insertions(+) create mode 100644 RealRooted/MultiplierSequence/JensenPositiveInterlacing.lean create mode 100644 RealRooted/MultiplierSequence/JensenSeparation.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSignBoundary.lean create mode 100644 RealRooted/RiemannHypothesis/JensenInterlacing.lean diff --git a/RealRooted/MultiplierSequence/JensenPositiveInterlacing.lean b/RealRooted/MultiplierSequence/JensenPositiveInterlacing.lean new file mode 100644 index 000000000..d59708649 --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenPositiveInterlacing.lean @@ -0,0 +1,63 @@ +module + +public import RealRooted.MultiplierSequence.Infinite +public import RealRooted.SimpleRoots +import RealRooted.MultiplierSequence.JensenSeparation +import RealRooted.MultiplierSequence.JensenDerivative +import RealRooted.MultiplierSequence.ProperPosition +import RealRooted.LinearPowerFamily + +/-! +# Consecutive Jensen interlacing for positive multiplier sequences + +Strictly positive multiplier coefficients give adjacent Jensen rows with +exact degrees and directed interlacing. This is a sufficient sign hypothesis +for the interlacing consequence of same-sign root separation. Signs of the +zeros of an arbitrary LP symbol alone are not sufficient when Gaussian +factors are allowed. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Positive multiplier sequences give directed interlacing of consecutive +Jensen degrees with no coefficient shift. -/ +theorem strictInterl_jensenPolynomial_succ_of_pos {gamma : ℕ → ℝ} + (hgamma : IsMultiplierSequence gamma) (hpos : ∀ k, 0 < gamma k) (d : ℕ) : + StrictInterl (jensenPolynomial d gamma) (jensenPolynomial (d + 1) gamma) := by + have hpower : StrictInterl ((X + 1 : ℝ[X]) ^ d) ((X + 1) ^ (d + 1)) := by + simpa only [C_1] using strictInterl_X_add_C_pow_succ 1 d + rw [jensenPolynomial_eq_diagonalOperator_X_add_one_pow, + jensenPolynomial_eq_diagonalOperator_X_add_one_pow] + exact hgamma.strictInterl_diagonalOperator_of_pos hpos hpower + +/-- Positive multiplier coefficients make consecutive Jensen degrees differ +by one, so the directed relation is ordinary root-list interlacing. -/ +theorem interlaces_jensenPolynomial_succ_of_pos {gamma : ℕ → ℝ} + (hgamma : IsMultiplierSequence gamma) (hpos : ∀ k, 0 < gamma k) (d : ℕ) : + Interlaces (jensenPolynomial d gamma) (jensenPolynomial (d + 1) gamma) := by + apply (strictInterl_jensenPolynomial_succ_of_pos hgamma hpos d).toInterlaces + rw [natDegree_jensenPolynomial (hpos d).ne', natDegree_jensenPolynomial (hpos (d + 1)).ne'] + +/-- A simple Jensen row with nonzero initial coefficient has no real root +in common with the preceding unshifted row. -/ +theorem jensenPolynomial_succ_no_common_root {gamma : ℕ → ℝ} (hzero : gamma 0 ≠ 0) + (d : ℕ) (hsimple : HasSimpleRoots (jensenPolynomial (d + 1) gamma)) (r : ℝ) : + ¬ ((jensenPolynomial d gamma).IsRoot r ∧ (jensenPolynomial (d + 1) gamma).IsRoot r) := by + intro hr + have hr0 : r ≠ 0 := by + intro hz + subst r + apply hzero + simpa only [IsRoot.def, ← coeff_zero_eq_eval_zero, coeff_jensenPolynomial, + Nat.zero_le, ite_true, Nat.choose_zero_right, Nat.cast_one, one_mul] using hr.2 + have heuler := congrArg (fun p : ℝ[X] => p.eval r) (jensenPolynomial_euler d gamma) + simp only [eval_mul, eval_C, eval_add, eval_X, hr.1.eq_zero, hr.2.eq_zero, + mul_zero, zero_add] at heuler + exact hsimple.eval_derivative_ne_zero hr.2 + ((mul_eq_zero.mp heuler.symm).resolve_left hr0) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/JensenSeparation.lean b/RealRooted/MultiplierSequence/JensenSeparation.lean new file mode 100644 index 000000000..e89bd7fbc --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenSeparation.lean @@ -0,0 +1,87 @@ +module + +public import RealRooted.MultiplierSequence +import RealRooted.Mathlib.Algebra.Polynomial.Derivative +import Mathlib.Analysis.Calculus.LocalExtr.Rolle +import Mathlib.Analysis.Calculus.Deriv.Polynomial +import Mathlib.Analysis.Calculus.Deriv.Pow + +/-! +# Same-sign separation of consecutive Jensen polynomials + +The Euler identity relates adjacent degree parameters with no shift in the +coefficient sequence. Rolle's theorem applied to `Jₙ(x)/xⁿ` shows that any +two same-sign real zeros of `Jₙ` enclose a zero of `Jₙ₋₁`. This needs no +Laguerre–Pólya or real-rootedness assumption. +-/ + +public section + +open Polynomial Set + +namespace RealRooted + +/-- The binomial coefficient already vanishes outside the Jensen degree bound. -/ +private theorem coeff_jensen_eq_choose (d k : ℕ) (gamma : ℕ → ℝ) : + (jensenPolynomial d gamma).coeff k = (d.choose k : ℝ) * gamma k := by + by_cases hk : k ≤ d + · simp [coeff_jensenPolynomial, hk] + · simp [coeff_jensenPolynomial, hk, Nat.choose_eq_zero_of_lt (lt_of_not_ge hk)] + +/-- Adjacent unshifted Jensen polynomials satisfy the Euler derivative identity. -/ +theorem jensenPolynomial_euler (d : ℕ) (gamma : ℕ → ℝ) : + C (d + 1 : ℝ) * jensenPolynomial (d + 1) gamma = + C (d + 1 : ℝ) * jensenPolynomial d gamma + + X * (jensenPolynomial (d + 1) gamma).derivative := by + ext k + simp only [coeff_C_mul, coeff_add, coeff_X_mul_derivative, coeff_jensen_eq_choose] + by_cases hk : k ≤ d + 1 + · have hc := congrArg (fun n : ℕ => (n : ℝ)) (Nat.choose_mul_succ_eq d k) + push_cast [Nat.cast_sub hk] at hc + linear_combination -gamma k * hc + · rw [Nat.choose_eq_zero_of_lt (by lia : d + 1 < k), + Nat.choose_eq_zero_of_lt (by lia : d < k)] + simp + +/-- The closed interval between two numbers of the same sign avoids zero. -/ +private theorem ne_zero_on_same_sign_interval {s t x : ℝ} + (hsign : 0 < s * t) (hx : x ∈ Icc s t) : x ≠ 0 := by + rcases mul_pos_iff.mp hsign with hpos | hneg + · linarith [hx.1, hpos.1] + · linarith [hx.2, hneg.2] + +/-- Any two same-sign roots of a Jensen polynomial enclose a root of the +preceding unshifted Jensen polynomial. They need not be consecutive or simple. -/ +theorem jensenPolynomial_same_sign_separation (d : ℕ) (gamma : ℕ → ℝ) + {s t : ℝ} (hst : s < t) (hsign : 0 < s * t) + (hs : (jensenPolynomial (d + 1) gamma).IsRoot s) + (ht : (jensenPolynomial (d + 1) gamma).IsRoot t) : + ∃ x ∈ Ioo s t, (jensenPolynomial d gamma).IsRoot x := by + let p := jensenPolynomial (d + 1) gamma + have hne (x : ℝ) (hx : x ∈ Icc s t) : x ≠ 0 := + ne_zero_on_same_sign_interval hsign hx + have hc : ContinuousOn (fun x => p.eval x / x ^ (d + 1)) (Icc s t) := + p.continuous.continuousOn.div (continuous_id.pow _).continuousOn + (fun x hx => pow_ne_zero _ (hne x hx)) + have he : p.eval s / s ^ (d + 1) = p.eval t / t ^ (d + 1) := by + rw [hs.eq_zero, ht.eq_zero, zero_div, zero_div] + obtain ⟨x, hx, hd⟩ := exists_hasDerivAt_eq_zero hst hc he + (fun x hx => (p.hasDerivAt x).div ((hasDerivAt_id x).pow (d + 1)) + (pow_ne_zero _ (hne x ⟨hx.1.le, hx.2.le⟩))) + have hx0 : x ≠ 0 := hne x ⟨hx.1.le, hx.2.le⟩ + have hnum : p.derivative.eval x * x ^ (d + 1) - + p.eval x * ((d + 1 : ℝ) * x ^ d) = 0 := by + simpa [pow_ne_zero _ hx0] using hd + have hmul : x ^ d * (x * p.derivative.eval x - (d + 1 : ℝ) * p.eval x) = 0 := by + rw [pow_succ] at hnum + linear_combination hnum + have hcore := (mul_eq_zero.mp hmul).resolve_left (pow_ne_zero _ hx0) + have heuler := congrArg (fun q : ℝ[X] => q.eval x) (jensenPolynomial_euler d gamma) + simp only [eval_mul, eval_C, eval_add, eval_X] at heuler + have hprev : (d + 1 : ℝ) * (jensenPolynomial d gamma).eval x = 0 := by + change (d + 1 : ℝ) * p.eval x = + (d + 1 : ℝ) * (jensenPolynomial d gamma).eval x + x * p.derivative.eval x at heuler + linear_combination -heuler - hcore + exact ⟨x, hx, (mul_eq_zero.mp hprev).resolve_left (by positivity)⟩ + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSignBoundary.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSignBoundary.lean new file mode 100644 index 000000000..120507e7a --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSignBoundary.lean @@ -0,0 +1,161 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.SimpleRoots +public import Mathlib.Analysis.Complex.Exponential +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Closure +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlow +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorProduct +import RealRooted.Hermite.GaussianOperator +import RealRooted.Hermite.PolynomialGaussian +import RealRooted.Hermite.ExponentialJensenMultiplicity +import RealRooted.SimpleRoots.Reflection +import RealRooted.Mathlib.Algebra.Polynomial.Reverse + +/-! +# A boundary in the Jensen interlacing sign hypothesis + +Craven–Csordas (1994), Proposition 4.1(1), ends: "if φ(x) ∈ L-P and all zeros +have the same sign, then the zeros of gn and gn−1 are interlacing." +Read as a hypothesis on zeros of the symbol alone, this is false when a +Gaussian factor is allowed. The checked example `(z+1) exp(-z²)` has sole +zero `-1`, belongs to LP, and is outside the excluded nonzero-slope +polynomial–exponential case. Yet its first two Jensen rows are `1+X` and +`1+2X-2X²`, which do not interlace. Positivity hypotheses on multiplier +coefficients provide the corrected sufficient condition in `JensenPositiveInterlacing`. +-/ + +@[expose] public section + +open Polynomial Complex RealRooted.HermitePoulain + +namespace RealRooted + +/-- A Gaussian times one negative-root linear factor. -/ +noncomputable def oneZeroGaussian (z : ℂ) : ℂ := (z + 1) * exp (-z ^ 2) + +/-- The example is an LP function with exactly the one negative real zero. -/ +private theorem oneZeroGaussian_data : + IsLaguerrePolya oneZeroGaussian ∧ oneZeroGaussian 0 = 1 ∧ + ∀ z, oneZeroGaussian z = 0 ↔ z = -1 := by + have hlin : IsLaguerrePolya (fun z : ℂ => z + 1) := by + apply IsLaguerrePolya.of_forall_approx + intro R ε hε + refine ⟨X + C 1, Or.inr (Splits.X_add_C 1), ?_⟩ + intro z _ + simpa using hε + refine ⟨?_, by simp [oneZeroGaussian], ?_⟩ + · change IsLaguerrePolya (fun z => (z + 1) * exp (-z ^ 2)) + simpa only [Pi.mul_def, ofReal_one, neg_one_mul] using + hlin.mul (isLaguerrePolya_exp_neg_mul_sq (a := 1) (by norm_num)) + · intro z + simp [oneZeroGaussian, exp_ne_zero, add_eq_zero_iff_eq_neg] + +/-- The Gaussian raising formula gives all monomial differential images. -/ +private theorem oneZeroGaussian_operator_power (d : ℕ) : + taylorDifferentialOperator oneZeroGaussian (X ^ d) = + (hermiteHomogeneous X (C (-1 : ℝ)) d).derivative + + hermiteHomogeneous X (C (-1 : ℝ)) d := by + have h := taylorDifferentialOperator_polynomial_mul + (f := fun z => exp (((0 : ℝ) : ℂ) * z + ((-1 : ℝ) : ℂ) * z ^ 2)) + (by fun_prop) (X + C 1) (X ^ d) + rw [taylor_exp_quadratic_X_pow 0 (-1), applyAsDifferentialOperator_X_add_C] at h + change taylorDifferentialOperator (fun z => (z + 1) * exp (-z ^ 2)) (X ^ d) = _ + simpa using h + +/-- Both low-degree Jensen rows can be evaluated exactly. -/ +private theorem oneZeroGaussian_jensen_low : + jensenPolynomial 1 (fun k => (iteratedDeriv k oneZeroGaussian 0).re) = X + 1 ∧ + jensenPolynomial 2 (fun k => (iteratedDeriv k oneZeroGaussian 0).re) = + 1 + C 2 * X - C 2 * X ^ 2 := by + constructor + · have h := congrArg (reflect 1) (oneZeroGaussian_operator_power 1) + rw [taylorDifferentialOperator_X_pow, reflect_reflect] at h + simpa [reflect_add] using h + · have hbase : taylorDifferentialOperator oneZeroGaussian (X ^ 2) = + C 2 * X + (X ^ 2 - C 2) := by + rw [oneZeroGaussian_operator_power] + norm_num [hermiteHomogeneous_add_two, C_ofNat] + ring + have h := congrArg (reflect 2) hbase + rw [taylorDifferentialOperator_X_pow, reflect_reflect] at h + norm_num [reflect_add, reflect_sub, reflect_X, revAt_eq_ite] at h + convert h using 1 + ring + +/-- The root `-1` of the linear row is below every root of the quadratic row. -/ +private theorem not_interlaces_oneZeroGaussian_rows : + ¬ Interlaces (X + 1 : ℝ[X]) (1 + C 2 * X - C 2 * X ^ 2) := by + intro h + obtain ⟨rs, ss, _, _, hrs, hss, hi⟩ := h.2.2.2 + have hssone : ss = [-1] := by + apply Multiset.coe_eq_singleton.mp + simpa only [← C_1, roots_X_add_C] using hss + subst ss + cases rs with + | nil => simp [ListInterlaces] at hi + | cons r rs => + cases rs with + | nil => simp [ListInterlaces] at hi + | cons t rs => + have hr : (1 + C 2 * X - C 2 * X ^ 2 : ℝ[X]).IsRoot r := by + apply isRoot_of_mem_roots + rw [← hrs] + simp + have hrle : r ≤ -1 := hi.1 + have he : 1 + 2 * r - 2 * r ^ 2 = 0 := by simpa [IsRoot.def] using hr + nlinarith [sq_nonneg r] + +/-- Gaussian regularization makes all Jensen rows simple, independently of +the false sign implication being tested. -/ +private theorem oneZeroGaussian_simple (d : ℕ) : + IsSimpleRealRooted (jensenPolynomial d (fun k => (iteratedDeriv k oneZeroGaussian 0).re)) := by + have hF := simple_taylor_polynomial_gaussian (q := X + C 1) (Splits.X_add_C 1) + (by simp) 0 (s := -1) (by norm_num) (pow_ne_zero d X_ne_zero) (Splits.X.pow d) + have hsimple : IsSimpleRealRooted (taylorDifferentialOperator oneZeroGaussian (X ^ d)) := by + change IsSimpleRealRooted + (taylorDifferentialOperator (fun z => (z + 1) * exp (-z ^ 2)) (X ^ d)) + simpa using hF + rw [taylorDifferentialOperator_X_pow] at hsimple + have hsplit := (splits_reflect_iff (natDegree_jensenPolynomial_le d _)).mp hsimple.2.1 + have hconst : + (jensenPolynomial d (fun k => (iteratedDeriv k oneZeroGaussian 0).re)).coeff 0 ≠ 0 := by + simp [coeff_jensenPolynomial, oneZeroGaussian] + refine ⟨?_, hsplit, hsimple.2.2.of_reflect hconst hsplit (natDegree_jensenPolynomial_le d _)⟩ + intro hz + exact hconst (by simp [hz]) + +/-- The example is outside the exceptional polynomial–exponential class. -/ +private theorem oneZeroGaussian_not_exp_polynomial (q : ℝ[X]) {a : ℝ} (ha : a ≠ 0) : + oneZeroGaussian ≠ fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z) := by + intro heq + have hq : q ≠ 0 := by + intro hz + have h := congrFun heq 0 + simp [oneZeroGaussian, hz] at h + have hs := oneZeroGaussian_simple (q.natDegree + 2) + rw [heq] at hs + have hm := rootMultiplicity_jensen_polynomial_exp hq ha (q.natDegree + 2) (by lia) + have hr := (rootMultiplicity_pos hs.1).mp (show 0 < + (jensenPolynomial (q.natDegree + 2) (fun k => + (iteratedDeriv k + (fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) 0).re)).rootMultiplicity + (-a⁻¹) from by rw [hm]; lia) + have hsimple := hs.2.2 _ hr + lia + +/-- Same-sign zeros of the symbol alone do not imply consecutive Jensen +interlacing, even under the other hypotheses of the simple-Jensen theorem. -/ +theorem oneZeroGaussian_counterexample : + IsLaguerrePolya oneZeroGaussian ∧ oneZeroGaussian 0 = 1 ∧ + (∀ z, oneZeroGaussian z = 0 ↔ z = -1) ∧ + (∀ (q : ℝ[X]) (a : ℝ), a ≠ 0 → + oneZeroGaussian ≠ fun z => (q.map ofRealHom).eval z * exp ((a : ℂ) * z)) ∧ + ¬ Interlaces (jensenPolynomial 1 (fun k => (iteratedDeriv k oneZeroGaussian 0).re)) + (jensenPolynomial 2 (fun k => (iteratedDeriv k oneZeroGaussian 0).re)) := by + refine ⟨oneZeroGaussian_data.1, oneZeroGaussian_data.2.1, oneZeroGaussian_data.2.2, + fun q _ ha => oneZeroGaussian_not_exp_polynomial q ha, ?_⟩ + rw [oneZeroGaussian_jensen_low.1, oneZeroGaussian_jensen_low.2] + exact not_interlaces_oneZeroGaussian_rows + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/JensenInterlacing.lean b/RealRooted/RiemannHypothesis/JensenInterlacing.lean new file mode 100644 index 000000000..aefcf5adc --- /dev/null +++ b/RealRooted/RiemannHypothesis/JensenInterlacing.lean @@ -0,0 +1,47 @@ +module + +public import RealRooted.RiemannHypothesis +import RealRooted.RiemannHypothesis.MultiplierSequence +import RealRooted.RiemannHypothesis.JensenSimple +import RealRooted.MultiplierSequence.JensenPositiveInterlacing +import RealRooted.MultiplierSequence.PolyaSchur +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity + +/-! +# Strict separation of consecutive xi Jensen degrees + +Under RH, positive xi multiplier coefficients give interlacing at each fixed +coefficient shift. Simplicity and the Jensen Euler identity exclude common +roots, so the root inequalities are strict. These are unshifted adjacent +degrees, distinct from the derivative relation that also changes the shift. +-/ + +public section + +namespace RealRooted + +/-- Under RH, consecutive xi Jensen degrees at a fixed shift are in directed interlacing. -/ +theorem strictInterl_riemannXiJensenPolynomial_succ + (hRH : RiemannHypothesis) (d n : ℕ) : + StrictInterl (riemannXiJensenPolynomial d n) (riemannXiJensenPolynomial (d + 1) n) := by + exact strictInterl_jensenPolynomial_succ_of_pos + (isPFMultiplierSequence_iff_multiplierSequence_and_nonneg.mp + (isPFMultiplierSequence_riemannXiCoeff_shift hRH n)).1 + (fun k => riemannXiCoeff_pos (n + k)) d + +/-- Consecutive xi Jensen degrees at a fixed shift have interleaving real root lists under RH. -/ +theorem interlaces_riemannXiJensenPolynomial_succ + (hRH : RiemannHypothesis) (d n : ℕ) : + Interlaces (riemannXiJensenPolynomial d n) (riemannXiJensenPolynomial (d + 1) n) := by + apply (strictInterl_riemannXiJensenPolynomial_succ hRH d n).toInterlaces + simp only [natDegree_riemannXiJensenPolynomial] + +/-- RH excludes a common root in consecutive xi Jensen degrees at a fixed shift. -/ +theorem riemannXiJensenPolynomial_succ_no_common_root + (hRH : RiemannHypothesis) (d n : ℕ) (r : ℝ) : + ¬ ((riemannXiJensenPolynomial d n).IsRoot r ∧ + (riemannXiJensenPolynomial (d + 1) n).IsRoot r) := by + exact jensenPolynomial_succ_no_common_root (by simpa using (riemannXiCoeff_pos n).ne') d + (isSimpleRealRooted_riemannXiJensenPolynomial hRH (d + 1) n).2.2 r + +end RealRooted From 3d890f45a08201e305f7da17d8dda697b6f7adf6 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 16:11:22 +0000 Subject: [PATCH 29/56] feat: prove the genus one star auxiliary Jensen criterion --- .../Complex/CanonicalProduct/GenusOne.lean | 98 ++++++++++++++++ .../PolyaSchur/LaguerrePolya/GenusOne.lean | 111 ++++++++++++++++++ .../LaguerrePolya/GenusOneProduct.lean | 108 +++++++++++++++++ 3 files changed, 317 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Complex/CanonicalProduct/GenusOne.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GenusOne.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GenusOneProduct.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/CanonicalProduct/GenusOne.lean b/RealRooted/Mathlib/Analysis/Complex/CanonicalProduct/GenusOne.lean new file mode 100644 index 000000000..52d199773 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/CanonicalProduct/GenusOne.lean @@ -0,0 +1,98 @@ +/- +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 TauCeti.Analysis.Complex.CanonicalProduct.ElementaryFactor +import TauCeti.Analysis.Complex.CanonicalProduct.Convergence + +/-! +# Entire functions of genus one star + +Pólya's genus `1*` consists of a nonnegative Gaussian times an entire function of +genus at most one. The canonical-product definition below allows arbitrary +complex zeros and a complex linear exponential; it does not impose real zeros +or membership in the Laguerre--Pólya class. Repeated slopes encode multiplicities, +and zero slopes allow finite products. The origin multiplicity is recorded +separately. As in the classical definition of genus, the zero function is excluded. + +This class includes genus-one functions of order strictly between one and two. +-/ + +public section + +open Set +open scoped ComplexConjugate + +namespace Complex + +/-- A Gaussian times an entire canonical product of genus at most one, with a +nonnegative real Gaussian parameter. This is Pólya's genus `1*`. -/ +@[expose] def HasGenusOneStar (f : ℂ → ℂ) : Prop := + ∃ (c b : ℂ) (a : ℝ) (m : ℕ) (u : ℕ → ℂ), c ≠ 0 ∧ 0 ≤ a ∧ + Summable (fun n => ‖u n‖ ^ 2) ∧ ∀ z, + f z = c * z ^ m * exp (-(a : ℂ) * z ^ 2 + b * z) * + ∏' n, weierstrassFactor 1 (u n * z) + +/-- Functions of genus one star are entire. -/ +theorem HasGenusOneStar.differentiable {f : ℂ → ℂ} (hf : HasGenusOneStar f) : + Differentiable ℂ f := by + obtain ⟨c, b, a, m, u, _, _, hu, heq⟩ := hf + have hP := differentiable_tprod_weierstrassFactor_one u hu + rw [show f = _ from funext heq] + exact ((Differentiable.mul (by fun_prop) (by fun_prop)).mul hP) + +/-- A genus-one-star function is not identically zero, even when it vanishes at the origin. -/ +theorem HasGenusOneStar.ne_zero {f : ℂ → ℂ} (hf : HasGenusOneStar f) : f ≠ 0 := by + obtain ⟨c, b, a, m, u, hc, _, hu, heq⟩ := hf + let g : ℂ → ℂ := fun z => c * exp (-(a : ℂ) * z ^ 2 + b * z) * + ∏' n, weierstrassFactor 1 (u n * z) + have hg : Differentiable ℂ g := + (Differentiable.mul (by fun_prop) (by fun_prop)).mul + (differentiable_tprod_weierstrassFactor_one u hu) + have hp : AnalyticOnNhd ℂ (fun z : ℂ => z ^ m) univ := by fun_prop + intro hzero + have hprod (z : ℂ) (_ : z ∈ univ) : z ^ m * g z = 0 := by + have hz := heq z + rw [hzero, Pi.zero_apply] at hz + dsimp only [g] + linear_combination -hz + rcases hp.eq_zero_or_eq_zero_of_mul_eq_zero (fun z _ => hg.analyticAt z) + hprod isPreconnected_univ with hp0 | hg0 + · simpa using hp0 1 (mem_univ _) + · apply hc + simpa [g] using hg0 0 (mem_univ _) + +/-- Multiplication by a nonnegative Gaussian preserves genus one star. -/ +theorem HasGenusOneStar.mul_exp_neg_mul_sq {f : ℂ → ℂ} (hf : HasGenusOneStar f) + {d : ℝ} (hd : 0 ≤ d) : HasGenusOneStar (fun z => f z * exp (-(d : ℂ) * z ^ 2)) := by + obtain ⟨c, b, a, m, u, hc, ha, hu, heq⟩ := hf + refine ⟨c, b, a + d, m, u, hc, add_nonneg ha hd, hu, fun z => ?_⟩ + dsimp only + rw [heq] + have hexp : exp (-(a : ℂ) * z ^ 2 + b * z) * exp (-(d : ℂ) * z ^ 2) = + exp (-(↑(a + d) : ℂ) * z ^ 2 + b * z) := by + rw [← exp_add] + congr 1 + push_cast + ring + linear_combination c * z ^ m * (∏' n, weierstrassFactor 1 (u n * z)) * hexp + +/-- Conjugation symmetry descends through any power of the variable in a continuous cofactor. -/ +theorem conj_of_pow_mul {g : ℂ → ℂ} (hg : Continuous g) (m : ℕ) + (hc : ∀ z, (conj z) ^ m * g (conj z) = conj (z ^ m * g z)) : + ∀ z, g (conj z) = conj (g z) := by + have heq : (fun z => g (conj z)) = fun z => conj (g z) := by + apply Continuous.ext_on (dense_compl_singleton (0 : ℂ)) + (hg.comp continuous_conj) (continuous_conj.comp hg) + intro z hz + have hz0 : z ≠ 0 := by simpa using hz + have hcz : conj z ≠ 0 := by simpa using hz0 + have h := hc z + rw [map_mul, map_pow] at h + exact mul_left_cancel₀ (pow_ne_zero m hcz) h + exact fun z => congrFun heq z + +end Complex diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GenusOne.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GenusOne.lean new file mode 100644 index 000000000..b038e9f99 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GenusOne.lean @@ -0,0 +1,111 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.Mathlib.Analysis.Complex.CanonicalProduct.GenusOne +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IndexedProduct +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlow +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Examples +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Star +import TauCeti.Analysis.Complex.CanonicalProduct.LogDeriv +import TauCeti.Analysis.SpecialFunctions.Complex.Exp.LogDeriv + +/-! +# Real zeros of genus-one-star functions + +A real entire function of genus `1*` is Laguerre--Pólya when all its zeros are +real. The proof starts with the complex canonical representation, recovers real +slopes from its zeros, and recovers the real constant and linear coefficients +after cancelling the origin power. No nonzero origin value is assumed. +-/ + +public section + +open Complex Polynomial +open scoped ComplexConjugate + +namespace RealRooted + +private theorem im_slope_eq_zero {f : ℂ → ℂ} {c b : ℂ} {a : ℝ} {m : ℕ} + {u : ℕ → ℂ} (hu : Summable (fun n => ‖u n‖ ^ 2)) + (heq : ∀ z, f z = c * z ^ m * exp (-(a : ℂ) * z ^ 2 + b * z) * + ∏' n, weierstrassFactor 1 (u n * z)) + (hz : ∀ z, f z = 0 → z.im = 0) (n : ℕ) : (u n).im = 0 := by + by_cases hn : u n = 0 + · simp [hn] + have hr : f (u n)⁻¹ = 0 := by + rw [heq, (tprod_weierstrassFactor_one_eq_zero_iff u hu _).mpr + ⟨n, mul_inv_cancel₀ hn⟩, mul_zero] + have hc := conj_eq_iff_im.mpr (hz _ hr) + rw [map_inv₀, inv_inj] at hc + exact conj_eq_iff_im.mp hc + +private theorem real_canonical_cofactor {c b : ℂ} {a : ℝ} {u : ℕ → ℂ} + (hc : c ≠ 0) (hu : Summable (fun n => ‖u n‖ ^ 2)) + (hconj : ∀ z, (c * (exp (-(a : ℂ) * (conj z) ^ 2 + b * conj z) * + ∏' n, weierstrassFactor 1 (u n * conj z))) = + conj (c * (exp (-(a : ℂ) * z ^ 2 + b * z) * + ∏' n, weierstrassFactor 1 (u n * z)))) : c.im = 0 ∧ b.im = 0 := by + have hcReal : c.im = 0 := by + apply conj_eq_iff_im.mp + simpa using (hconj 0).symm + have hsum : Summable (fun n => ((1 : ℕ) : ℝ) * ‖u n‖ ^ 2) := by simpa using hu + have hPlog : logDeriv (fun z => ∏' n, weierstrassFactor 1 (u n * z)) 0 = 0 := by + have hh := logDeriv_tprod_weierstrassFactor_one_pow u (fun _ => 1) hsum + (z := 0) (by simp) + simpa [logDerivWeierstrassFactorOneMul_def] using hh + have hbReal := logDeriv_ofReal_im + (f := fun z => c * (exp (-(a : ℂ) * z ^ 2 + b * z) * + ∏' n, weierstrassFactor 1 (u n * z))) hconj 0 + simp only [ofReal_zero] at hbReal + rw [logDeriv_const_mul _ _ hc, TauCeti.logDeriv_cexp_mul (by simp) + (differentiable_tprod_weierstrassFactor_one u hu 0) (by fun_prop), hPlog, + add_zero, deriv_fun_add (by fun_prop) (by fun_prop), + deriv_const_mul _ (by fun_prop), deriv_pow_field, deriv_const_mul_id] at hbReal + simpa using And.intro hcReal hbReal + +/-- A real function of genus one star with only real zeros belongs to the +Laguerre--Pólya class, allowing any multiplicity at the origin. -/ +theorem isLaguerrePolya_of_hasGenusOneStar {f : ℂ → ℂ} + (hf : HasGenusOneStar f) (hc : ∀ z, f (conj z) = conj (f z)) + (hz : ∀ z, f z = 0 → z.im = 0) : IsLaguerrePolya f := by + obtain ⟨c, b, a, m, u, hc0, ha, hu, heq⟩ := hf + have huReal (n : ℕ) : ((u n).re : ℂ) = u n := + conj_eq_iff_re.mp (conj_eq_iff_im.mpr (im_slope_eq_zero hu heq hz n)) + let P : ℂ → ℂ := fun z => ∏' n, weierstrassFactor 1 (u n * z) + have hP : IsLaguerrePolya P := by + have hs : Summable (fun n => ((1 : ℕ) : ℝ) * (u n).re ^ 2) := by + convert hu using 1 + funext n + rw [Nat.cast_one, one_mul, ← huReal n] + simp only [ofReal_re, Complex.norm_real, Real.norm_eq_abs, sq_abs] + simpa only [pow_one, huReal] using + isLaguerrePolya_tprod_weierstrassFactor_one_pow (fun n => (u n).re) (fun _ => 1) hs + let g : ℂ → ℂ := fun z => c * (exp (-(a : ℂ) * z ^ 2 + b * z) * P z) + have hg : Differentiable ℂ g := by + exact (differentiable_const c).mul ((Differentiable.cexp (by fun_prop)).mul hP.differentiable) + have heqf (z : ℂ) : f z = z ^ m * g z := by + rw [heq] + dsimp only [g, P] + ring + have hgc : ∀ z, g (conj z) = conj (g z) := by + apply conj_of_pow_mul hg.continuous m + intro z + rw [← heqf, ← heqf, hc] + obtain ⟨hcr, hbr⟩ := real_canonical_cofactor hc0 hu hgc + have hcReal : (c.re : ℂ) = c := conj_eq_iff_re.mp (conj_eq_iff_im.mpr hcr) + have hbReal : (b.re : ℂ) = b := conj_eq_iff_re.mp (conj_eq_iff_im.mpr hbr) + have hlin : IsLaguerrePolya (fun z : ℂ => exp (b * z)) := by + simpa only [ofReal_zero, add_zero, hbReal] using + isLaguerrePolya_exp.comp_affine_real b.re 0 + have hid : IsLaguerrePolya (fun z : ℂ => z) := by + simpa using isLaguerrePolya_eval_map (p := X) Splits.X + have hresult := (((hid.pow m).mul ((isLaguerrePolya_exp_neg_mul_sq ha).mul hlin)).mul + hP).const_mul_real c.re + convert hresult using 1 + funext z + rw [heq] + simp only [Pi.mul_apply, hcReal, ← exp_add, P] + ring + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GenusOneProduct.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GenusOneProduct.lean new file mode 100644 index 000000000..11609f66a --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GenusOneProduct.lean @@ -0,0 +1,108 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.Mathlib.Analysis.Complex.CanonicalProduct.GenusOne +public import RealRooted.MultiplierSequence.JensenProduct +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GenusOne +import RealRooted.MultiplierSequence.JensenProductExpansion +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.JensenProduct +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros +import RealRooted.Mathlib.Algebra.Polynomial.Reverse + +/-! +# The full genus-one-star auxiliary Jensen criterion + +O'Sullivan (2021), Theorem 3.5: a real function of genus `1*` has only real zeros +if and only if the Jensen polynomials of its product with a fixed nonzero +Laguerre--Pólya function split. Both factors may vanish at the origin. The +ordinary and reciprocal polynomial sums are given explicitly, including degree +loss in the auxiliary. Degree zero is harmless and included in the indexed form. +-/ + +public section + +open Complex Polynomial +open scoped ComplexConjugate + +namespace RealRooted + +/-- A nonzero Laguerre--Pólya auxiliary detects real zeros of every real +genus-one-star function, with no restriction on either origin multiplicity. -/ +theorem real_zeros_iff_isLaguerrePolya_mul {f g : ℂ → ℂ} + (hf : HasGenusOneStar f) (hc : ∀ z, f (conj z) = conj (f z)) + (hg : IsLaguerrePolya g) (hg0 : g ≠ 0) : + (∀ z, f z = 0 → z.im = 0) ↔ IsLaguerrePolya (f * g) := by + constructor + · exact fun hz => (isLaguerrePolya_of_hasGenusOneStar hf hc hz).mul hg + · intro hfg + have hfg0 : f * g ≠ 0 := by + intro hzero + have hfa : AnalyticOnNhd ℂ f Set.univ := fun z _ => hf.differentiable.analyticAt z + rcases hfa.eq_zero_or_eq_zero_of_mul_eq_zero hg.analyticOnNhd + (fun z _ => congrFun hzero z) isPreconnected_univ with h | h + · exact hf.ne_zero (funext fun z => h z (Set.mem_univ _)) + · exact hg0 (funext fun z => h z (Set.mem_univ _)) + exact fun z hz => hfg.im_eq_zero_of_eq_zero hfg0 (by simp [Pi.mul_apply, hz]) + +/-- Multiplication by a fixed nonzero Laguerre--Pólya function detects class +membership for every real function of genus one star. -/ +theorem isLaguerrePolya_mul_iff_of_hasGenusOneStar {f g : ℂ → ℂ} + (hf : HasGenusOneStar f) (hc : ∀ z, f (conj z) = conj (f z)) + (hg : IsLaguerrePolya g) (hg0 : g ≠ 0) : + IsLaguerrePolya (f * g) ↔ IsLaguerrePolya f := by + refine ⟨fun h => isLaguerrePolya_of_hasGenusOneStar hf hc + ((real_zeros_iff_isLaguerrePolya_mul hf hc hg hg0).mpr h), fun h => h.mul hg⟩ + +/-- The Jensen-product criterion for real zeros in the full genus-one-star class. -/ +theorem real_zeros_iff_jensenProductPolynomial_splits {f g : ℂ → ℂ} + {gamma delta : ℕ → ℝ} (hf : HasGenusOneStar f) + (hc : ∀ z, f (conj z) = conj (f z)) (hg : IsLaguerrePolya g) (hg0 : g ≠ 0) + (hgamma : ∀ k, iteratedDeriv k f 0 = (gamma k : ℂ)) + (hdelta : ∀ k, iteratedDeriv k g 0 = (delta k : ℂ)) : + (∀ z, f z = 0 → z.im = 0) ↔ + ∀ d, (jensenProductPolynomial d gamma delta).Splits := + (real_zeros_iff_isLaguerrePolya_mul hf hc hg hg0).trans + (isLaguerrePolya_mul_iff_jensenProductPolynomial_splits + hf.differentiable hg.differentiable hgamma hdelta) + +private theorem forall_jensenProduct_splits_iff (gamma delta : ℕ → ℝ) : + (∀ d, (jensenProductPolynomial d gamma delta).Splits) ↔ + ∀ d, d ≠ 0 → (jensenProductPolynomial d gamma delta).Splits := by + refine ⟨fun h d _ => h d, fun h d => ?_⟩ + by_cases hd : d = 0 + · subst d + exact Splits.of_natDegree_le_one ((natDegree_jensenProductPolynomial_le 0 _ _).trans + (by norm_num)) + · exact h d hd + +/-- O'Sullivan's Theorem 3.5 in ordinary Jensen-sum form, valid for a fixed +nonzero auxiliary even when its constant coefficient vanishes. -/ +theorem real_zeros_iff_jensen_sum_splits {f g : ℂ → ℂ} + {gamma delta : ℕ → ℝ} (hf : HasGenusOneStar f) + (hc : ∀ z, f (conj z) = conj (f z)) (hg : IsLaguerrePolya g) (hg0 : g ≠ 0) + (hgamma : ∀ k, iteratedDeriv k f 0 = (gamma k : ℂ)) + (hdelta : ∀ k, iteratedDeriv k g 0 = (delta k : ℂ)) : + (∀ z, f z = 0 → z.im = 0) ↔ ∀ d, d ≠ 0 → + (∑ j ∈ Finset.range (d + 1), C ((d.choose j : ℝ) * gamma j) * + (X ^ j * jensenPolynomial (d - j) delta)).Splits := by + simpa only [← jensenProductPolynomial_eq_sum] using + (real_zeros_iff_jensenProductPolynomial_splits hf hc hg hg0 hgamma hdelta).trans + (forall_jensenProduct_splits_iff gamma delta) + +/-- O'Sullivan's Theorem 3.5 in reciprocal Jensen-sum form, retaining all zero +coefficients and origin factors. -/ +theorem real_zeros_iff_reciprocal_jensen_sum_splits {f g : ℂ → ℂ} + {gamma delta : ℕ → ℝ} (hf : HasGenusOneStar f) + (hc : ∀ z, f (conj z) = conj (f z)) (hg : IsLaguerrePolya g) (hg0 : g ≠ 0) + (hgamma : ∀ k, iteratedDeriv k f 0 = (gamma k : ℂ)) + (hdelta : ∀ k, iteratedDeriv k g 0 = (delta k : ℂ)) : + (∀ z, f z = 0 → z.im = 0) ↔ ∀ d, d ≠ 0 → + (∑ j ∈ Finset.range (d + 1), C ((d.choose j : ℝ) * gamma j) * + reflect (d - j) (jensenPolynomial (d - j) delta)).Splits := by + simp only [← reflect_jensenProductPolynomial_eq_sum, + splits_reflect_iff (natDegree_jensenProductPolynomial_le _ _ _)] + exact (real_zeros_iff_jensenProductPolynomial_splits hf hc hg hg0 hgamma hdelta).trans + (forall_jensenProduct_splits_iff gamma delta) + +end RealRooted From a67d6ec52aba13ecc770238075d36ca91c006b72 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 16:12:39 +0000 Subject: [PATCH 30/56] feat: derive signed xi difference obstruction under RH --- .../Analysis/Complex/ForwardDifference.lean | 105 ++++++++++++++++++ .../LaguerrePolya/ForwardDifference.lean | 69 ++++++++++++ .../RiemannHypothesis/ForwardDifference.lean | 45 ++++++++ 3 files changed, 219 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Complex/ForwardDifference.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/ForwardDifference.lean create mode 100644 RealRooted/RiemannHypothesis/ForwardDifference.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/ForwardDifference.lean b/RealRooted/Mathlib/Analysis/Complex/ForwardDifference.lean new file mode 100644 index 000000000..8c7e30ea3 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/ForwardDifference.lean @@ -0,0 +1,105 @@ +/- +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.Algebra.Group.ForwardDiff +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.Analysis.Complex.Exponential +import Mathlib.Analysis.Complex.TaylorSeries + +/-! +# Forward differences of Taylor derivatives + +Multiplication by `exp(-z)` takes the Taylor derivatives at zero to their +forward differences. A negative real zero of an entire function with positive +real part at zero forces a negative signed forward difference of some positive +order. This conclusion uses no growth or zero-location hypothesis elsewhere. +-/ + +public section + +open Complex Finset + +namespace Complex + +/-- Multiplication by the negative exponential takes Taylor derivatives to +forward differences with unit step. -/ +theorem iteratedDeriv_mul_exp_neg_zero {f : ℂ → ℂ} (hf : Differentiable ℂ f) (n : ℕ) : + iteratedDeriv n (fun z => f z * exp (-z)) 0 = + ((fwdDiff 1)^[n] (fun k => iteratedDeriv k f 0)) 0 := by + rw [iteratedDeriv_fun_mul hf.contDiff.contDiffAt (by fun_prop), + fwdDiff_iter_eq_sum_shift] + apply sum_congr rfl + intro k hk + have he : (fun z : ℂ => exp (-z)) = fun z => exp ((-1 : ℂ) * z) := by + simp + rw [he, iteratedDeriv_cexp_const_mul] + simp only [mul_zero, exp_zero, mul_one, nsmul_eq_mul, mul_one, zero_add, zsmul_eq_mul, + Int.cast_mul, Int.cast_pow, Int.cast_neg, Int.cast_one, Int.cast_natCast, Nat.cast_id] + ring + +/-- The real parts of Taylor derivatives obey the same forward-difference formula. -/ +theorem re_iteratedDeriv_mul_exp_neg_zero {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (n : ℕ) : + (iteratedDeriv n (fun z => f z * exp (-z)) 0).re = + ((fwdDiff 1)^[n] (fun k => (iteratedDeriv k f 0).re)) 0 := by + rw [iteratedDeriv_mul_exp_neg_zero hf, fwdDiff_iter_eq_sum_shift, + fwdDiff_iter_eq_sum_shift] + simp only [Complex.re_sum] + apply sum_congr rfl + intro k hk + exact map_zsmul reAddGroupHom _ _ + +end Complex + +/-- Nonnegative real parts of the nonconstant Taylor derivatives bound an +entire function's real part below along the nonnegative real axis. -/ +theorem Differentiable.re_apply_le_of_iteratedDeriv_nonneg {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (h : ∀ n ≠ 0, 0 ≤ (iteratedDeriv n f 0).re) + {x : ℝ} (hx : 0 ≤ x) : (f 0).re ≤ (f x).re := by + have hs : HasSum (fun n : ℕ => (n.factorial : ℝ)⁻¹ * x ^ n * + (iteratedDeriv n f 0).re) (f x).re := by + convert Complex.hasSum_re (hasSum_taylorSeries_of_entire hf 0 (x : ℂ)) using 1 + funext n + simp only [sub_zero, smul_eq_mul] + rw [← ofReal_natCast, ← ofReal_inv, ← ofReal_pow, ← mul_assoc, ← ofReal_mul] + simp only [mul_re, ofReal_re, ofReal_im, zero_mul, sub_zero] + have hb := sum_le_hasSum ({0} : Finset ℕ) (fun n hn => + mul_nonneg (mul_nonneg (by positivity) (pow_nonneg hx n)) + (h n (by simpa using hn))) hs + simpa using hb + +namespace Complex + +/-- A negative real zero forces a negative signed forward difference of some +positive order in the Taylor derivatives at zero. No growth bound is required. -/ +theorem exists_signed_fwdDiff_iter_neg_of_neg_zero {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (h0 : 0 < (f 0).re) {x : ℝ} + (hx : x < 0) (hzero : f x = 0) : + ∃ n : ℕ, n ≠ 0 ∧ + (-1 : ℝ) ^ n * ((fwdDiff 1)^[n] (fun k => (iteratedDeriv k f 0).re)) 0 < 0 := by + by_contra! hn + let g : ℂ → ℂ := fun z => f (-z) * exp z + have hg : Differentiable ℂ g := (hf.comp differentiable_neg).mul differentiable_exp + have hderiv (n : ℕ) (hne : n ≠ 0) : 0 ≤ (iteratedDeriv n g 0).re := by + have heq : g = fun z => (fun w => f w * exp (-w)) (-z) := by + funext z + simp [g] + rw [heq] + rw [iteratedDeriv_comp_neg n (fun w => f w * exp (-w)) 0] + simp only [neg_zero, smul_eq_mul] + rw [show (-1 : ℂ) ^ n = (((-1 : ℝ) ^ n : ℝ) : ℂ) by simp, + mul_re, ofReal_re, ofReal_im, zero_mul, sub_zero, + re_iteratedDeriv_mul_exp_neg_zero hf] + exact hn n hne + have hb := hg.re_apply_le_of_iteratedDeriv_nonneg hderiv (neg_nonneg.mpr hx.le) + have hz : g (-x) = 0 := by simp [g, hzero] + have hc : g 0 = f 0 := by simp [g] + rw [ofReal_neg, hz, hc, zero_re] at hb + exact (not_le_of_gt h0) hb + +end Complex diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/ForwardDifference.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/ForwardDifference.lean new file mode 100644 index 000000000..52067064b --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/ForwardDifference.lean @@ -0,0 +1,69 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import TauCeti.Analysis.Complex.GrowthOrder +import RealRooted.Mathlib.Analysis.Complex.ForwardDifference +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeICriterion +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PolynomialFactors +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative + +/-! +# Signed forward differences for Type-I functions below order one + +A nonpolynomial positive Type-I function of order below one has a negative real +zero. Consequently its Taylor derivatives have a negative signed forward +difference of some positive order. This is a derived consequence of the Taylor +expansion and the zero-free growth theorem. It concerns all orders at a fixed +shift, and does not contradict eventual positivity in the shift at each fixed +order. +-/ + +public section + +open Complex Polynomial + +namespace RealRooted + +/-- A nonpolynomial positive Type-I function of order below one and with a +positive value at zero has a negative real zero. -/ +theorem IsLaguerrePolyaTypeI.exists_neg_real_zero_of_order_lt_one + {f : ℂ → ℂ} {rho : ℝ} (hf : IsLaguerrePolyaTypeI f) + (horder : TauCeti.OrderLE f rho) (hrho : rho < 1) (h0 : 0 < (f 0).re) + (hnp : ∀ q : ℂ[X], f ≠ fun z => q.eval z) : + ∃ x : ℝ, x < 0 ∧ f x = 0 := by + have hf0 : f 0 ≠ 0 := by intro hz; simp [hz] at h0 + have hfn : f ≠ 0 := fun hz => hf0 (by simp [hz]) + have hlp := hf.toLaguerrePolya + obtain ⟨q, g, hq, _, hdegree, _, _, hfactor⟩ := + exists_polynomial_factor_of_order_lt_one horder hrho hlp.differentiable hf0 hlp.conj + (fun z hz => hlp.im_eq_zero_of_eq_zero hfn hz) hnp 1 + have hqdegree : q.natDegree ≠ 0 := Nat.ne_of_gt hdegree + obtain ⟨x, hx⟩ := hq.exists_eval_eq_zero (degree_ne_of_natDegree_ne hqdegree) + have hroot : f x = 0 := by + rw [hfactor] + have heq : (q.map ofRealHom).eval (x : ℂ) = 0 := by + rw [show (x : ℂ) = ofRealHom x from rfl, eval_map, eval₂_at_apply] + simp [hx] + rw [heq, zero_mul] + refine ⟨x, ?_, hroot⟩ + by_contra! hxnonneg + have hpos := (isLaguerrePolyaTypeI_iff_isLaguerrePolya_nonneg.mp hf).2 + have hb := hlp.differentiable.re_apply_le_of_iteratedDeriv_nonneg + (fun n _ => hpos n) hxnonneg + rw [hroot, zero_re] at hb + exact (not_le_of_gt h0) hb + +/-- A nonpolynomial positive Type-I function of order below one has a negative +signed forward difference of some positive order in its Taylor derivatives. -/ +theorem IsLaguerrePolyaTypeI.exists_signed_fwdDiff_iter_neg + {f : ℂ → ℂ} {rho : ℝ} (hf : IsLaguerrePolyaTypeI f) + (horder : TauCeti.OrderLE f rho) (hrho : rho < 1) (h0 : 0 < (f 0).re) + (hnp : ∀ q : ℂ[X], f ≠ fun z => q.eval z) : + ∃ n : ℕ, n ≠ 0 ∧ + (-1 : ℝ) ^ n * ((fwdDiff 1)^[n] (fun k => (iteratedDeriv k f 0).re)) 0 < 0 := by + obtain ⟨x, hx, hroot⟩ := hf.exists_neg_real_zero_of_order_lt_one horder hrho h0 hnp + exact Complex.exists_signed_fwdDiff_iter_neg_of_neg_zero + hf.toLaguerrePolya.differentiable h0 hx hroot + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/ForwardDifference.lean b/RealRooted/RiemannHypothesis/ForwardDifference.lean new file mode 100644 index 000000000..0057dc0d5 --- /dev/null +++ b/RealRooted/RiemannHypothesis/ForwardDifference.lean @@ -0,0 +1,45 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import Mathlib.Algebra.Group.ForwardDiff +import RealRooted.RiemannHypothesis.TotalPositivity +import RealRooted.RiemannHypothesis.JensenSimple +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.ForwardDifference +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity + +/-! +# Negative signed forward differences of xi coefficients under RH + +For every fixed derivative shift, RH forces a negative signed forward difference +of some positive order. The proof uses the negative real zeros of that xi +derivative and the Taylor series after multiplication by `exp(-z)`. + +This is a derived consequence. Its quantifiers differ from eventual positivity +in the shift for each fixed difference order. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- Under RH, at every coefficient shift some positive-order signed forward +difference of the normalized xi coefficients is strictly negative. -/ +theorem exists_signed_fwdDiff_iter_riemannXiCoeff_neg + (hRH : RiemannHypothesis) (s : ℕ) : + ∃ r : ℕ, r ≠ 0 ∧ (-1 : ℝ) ^ r * ((fwdDiff 1)^[r] riemannXiCoeff) s < 0 := by + have hf := isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH s + obtain ⟨r, hr, hneg⟩ := hf.exists_signed_fwdDiff_iter_neg + (orderLE_half_riemannXiTheta.iteratedDeriv differentiable_riemannXiTheta s) + (by norm_num) (riemannXiCoeff_pos s) (iteratedDeriv_riemannXiTheta_ne_polynomial s) + refine ⟨r, hr, ?_⟩ + have heq : (fun k => (iteratedDeriv k (iteratedDeriv s riemannXiTheta) 0).re) = + fun k => riemannXiCoeff (k + s) := by + funext k + simp only [riemannXiCoeff, iteratedDeriv_eq_iterate, ← Function.iterate_add_apply] + rw [heq, fwdDiff_iter_comp_add, zero_add] at hneg + exact hneg + +end RealRooted From 85836076697157bba634739b4206e4d9f92a24b2 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 16:20:52 +0000 Subject: [PATCH 31/56] feat: classify strict Laguerre equality and differential multiplicity --- RealRooted/LaguerreInequalities/Strict.lean | 203 ++++++++++++++++++ .../LaguerrePolya/DerivativeMultiplicity.lean | 86 ++++++++ 2 files changed, 289 insertions(+) create mode 100644 RealRooted/LaguerreInequalities/Strict.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DerivativeMultiplicity.lean diff --git a/RealRooted/LaguerreInequalities/Strict.lean b/RealRooted/LaguerreInequalities/Strict.lean new file mode 100644 index 000000000..15f08fe6d --- /dev/null +++ b/RealRooted/LaguerreInequalities/Strict.lean @@ -0,0 +1,203 @@ +module + +public import RealRooted.LaguerreInequalities.Analytic +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Complex.Exponential +import RealRooted.LaguerreInequalities.DerivativeFormula +import RealRooted.LaguerreInequalities.ZeroFree +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.RootDivision +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import RealRooted.Hermite.GeneratingFunction + +/-! +# Equality in the first Laguerre inequality + +Removing an actual real zero contributes a positive square to the first +Laguerre form. Consequently equality at a nonzero value excludes all zeros. +The zero-free LP classification then identifies the remaining exponential +exception in the Craven–Csordas multiplicity argument. +-/ + +public section + +open Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- A real linear factor contributes the square of the cofactor value to +the first Laguerre coefficient. -/ +theorem laguerreCoefficient_one_linear_mul {g : ℂ → ℂ} (hg : IsLaguerrePolya g) + (r x : ℝ) : + laguerreCoefficient (fun z => (z - r) * g z) x 1 = + (g x).re ^ 2 + (x - r) ^ 2 * laguerreCoefficient g x 1 := by + let f := fun z : ℂ => (z - r) * g z + have hd (z : ℂ) : HasDerivAt f (g z + (z - r) * _root_.deriv g z) z := by + simpa only [one_mul] using ((hasDerivAt_id' z).sub_const (r : ℂ)).fun_mul + (hg.differentiable z).hasDerivAt + have hder : _root_.deriv f = fun z => g z + (z - r) * _root_.deriv g z := + funext fun z => (hd z).deriv + have hder2 (z : ℂ) : _root_.deriv (_root_.deriv f) z = + 2 * _root_.deriv g z + (z - r) * _root_.deriv (_root_.deriv g) z := by + rw [hder] + rw [((hg.differentiable z).hasDerivAt.fun_add + (((hasDerivAt_id' z).sub_const (r : ℂ)).fun_mul + (hg.deriv.differentiable z).hasDerivAt)).deriv] + ring + have hfd : Differentiable ℂ f := fun z => (hd z).differentiableAt + have hfc : ∀ z, f (conj z) = conj (f z) := by + intro z + change (conj z - r) * g (conj z) = conj ((z - r) * g z) + rw [show g (conj z) = conj (g z) from hg.conj z, map_mul, map_sub, conj_ofReal] + have h1 : (iteratedDeriv 1 f x).re = (g x).re + (x - r) * (_root_.deriv g x).re := by + rw [iteratedDeriv_one, hder] + simp + have h2 : (iteratedDeriv 2 f x).re = + 2 * (_root_.deriv g x).re + (x - r) * (_root_.deriv (_root_.deriv g) x).re := by + rw [show (2 : ℕ) = 1 + 1 from rfl, iteratedDeriv_succ, iteratedDeriv_one, hder2] + simp + change laguerreCoefficient f x 1 = _ + rw [laguerreCoefficient_one hfd hfc, h1, h2, + laguerreCoefficient_one hg.differentiable hg.conj] + simp only [f, mul_re, sub_re, ofReal_re, sub_im, ofReal_im, sub_self, zero_mul, + sub_zero, show (2 : ℕ) = 1 + 1 from rfl, iteratedDeriv_succ, iteratedDeriv_zero] + ring + +/-- Equality in the first Laguerre inequality at a nonzero value forces +an LP function to be zero-free. -/ +theorem IsLaguerrePolya.zero_free_of_laguerre_one_eq_zero {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) {x : ℝ} (hfx : f x ≠ 0) + (heq : laguerreCoefficient f x 1 = 0) : ∀ z, f z ≠ 0 := by + intro z hz + have hfn : f ≠ 0 := fun h => hfx (by simp [h]) + have him := hf.im_eq_zero_of_eq_zero hfn hz + have hreal : (z.re : ℂ) = z := by apply Complex.ext <;> simp [him] + have hr : f (z.re : ℂ) = 0 := by rwa [hreal] + let g := dslope f (z.re : ℂ) + have hg : IsLaguerrePolya g := hf.dslope_of_eq_zero hr + have hfactor (w : ℂ) : f w = (w - z.re) * g w := by + simpa only [smul_eq_mul] using (sub_smul_dslope_of_zero hr w).symm + have hgx : g x ≠ 0 := by + intro hzero + exact hfx (by rw [hfactor, hzero, mul_zero]) + have hgre : (g x).re ≠ 0 := by + intro hzero + have hc : ((g x).re : ℂ) = g x := by + apply conj_eq_iff_re.mp + simpa using (hg.conj (x : ℂ)).symm + exact hgx (by rw [← hc, hzero, ofReal_zero]) + rw [show f = (fun w => (w - z.re) * g w) from funext hfactor, + laguerreCoefficient_one_linear_mul hg] at heq + have hnonneg := mul_nonneg (sq_nonneg (x - z.re)) (hg.laguerreCoefficient_nonneg x 1) + have hpos := sq_pos_of_ne_zero hgre + linarith + +/-- The first Laguerre coefficient of a real quadratic exponential is the +negative doubled quadratic parameter times the square of its value. -/ +theorem laguerreCoefficient_one_exp_quadratic (c a s x : ℝ) : + laguerreCoefficient (fun z => (c : ℂ) * exp ((a : ℂ) * z + (s : ℂ) * z ^ 2)) x 1 = + -2 * s * (((c : ℂ) * exp ((a : ℂ) * x + (s : ℂ) * (x : ℂ) ^ 2)).re) ^ 2 := by + let f := fun z : ℂ => (c : ℂ) * exp ((a : ℂ) * z + (s : ℂ) * z ^ 2) + have hfd : Differentiable ℂ f := by dsimp [f]; fun_prop + have hfc : ∀ z, f (conj z) = conj (f z) := by + intro z + simp only [f, map_mul, map_add, map_pow, conj_ofReal, ← exp_conj] + have he : (a : ℂ) + 2 * (s : ℂ) * (x : ℂ) = ((a + 2 * s * x : ℝ) : ℂ) := by + push_cast + ring + have hraw (n : ℕ) : iteratedDeriv n f x = + f x * ((hermiteHomogeneous (a + 2 * s * x) s n : ℝ) : ℂ) := by + dsimp [f] + rw [iteratedDeriv_const_mul_field, iteratedDeriv_exp_quadratic, he] + have hmap : ((hermiteHomogeneous (a + 2 * s * x) s n : ℝ) : ℂ) = + hermiteHomogeneous ((a + 2 * s * x : ℝ) : ℂ) (s : ℂ) n := + map_hermiteHomogeneous ofRealHom (a + 2 * s * x) s n + rw [hmap] + ring + have hre (n : ℕ) : (iteratedDeriv n f x).re = + (f x).re * hermiteHomogeneous (a + 2 * s * x) s n := by + simpa using congrArg Complex.re (hraw n) + change laguerreCoefficient f x 1 = -2 * s * (f x).re ^ 2 + rw [laguerreCoefficient_one hfd hfc, hre 1, hre 2] + norm_num [hermiteHomogeneous_add_two] + ring + +/-- Equality in the first Laguerre form away from a zero characterizes the +ordinary exponential exception among LP functions. -/ +theorem IsLaguerrePolya.eq_exp_of_laguerre_one_eq_zero {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) {x : ℝ} (hfx : f x ≠ 0) + (heq : laguerreCoefficient f x 1 = 0) : + ∃ a : ℝ, ∀ z, f z = f 0 * exp ((a : ℂ) * z) := by + obtain ⟨a, b, hb, hfactor⟩ := hf.exists_exp_quadratic_of_forall_ne_zero + (hf.zero_free_of_laguerre_one_eq_zero hfx heq) + have hf0real : ((f 0).re : ℂ) = f 0 := by + simpa only [iteratedDeriv_zero] using ofReal_re_iteratedDeriv_zero hf.conj 0 + have hfre : (f x).re ≠ 0 := by + intro hz + have hreal : ((f x).re : ℂ) = f x := by + apply conj_eq_iff_re.mp + simpa using (hf.conj (x : ℂ)).symm + exact hfx (by rw [← hreal, hz, ofReal_zero]) + have hexfun : f = fun z => ((f 0).re : ℂ) * + exp ((a : ℂ) * z + ((-b / 2 : ℝ) : ℂ) * z ^ 2) := by + funext z + rw [hfactor, hf0real] + congr 2 + push_cast + ring + have hl : laguerreCoefficient f x 1 = b * (f x).re ^ 2 := by + conv_lhs => rw [hexfun, laguerreCoefficient_one_exp_quadratic] + have hx := congrFun hexfun (x : ℂ) + rw [← hx] + ring + have hb0 : b = 0 := by + rw [hl] at heq + exact (mul_eq_zero.mp heq).resolve_right (pow_ne_zero _ hfre) + refine ⟨a, fun z => ?_⟩ + simpa [hb0] using hfactor z + +/-- A nonexponential LP function has strictly positive first Laguerre +coefficient wherever its value is nonzero. -/ +theorem IsLaguerrePolya.laguerre_one_pos_of_ne_exp {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) + (hne : ∀ a : ℝ, f ≠ fun z => f 0 * exp ((a : ℂ) * z)) + {x : ℝ} (hfx : f x ≠ 0) : 0 < laguerreCoefficient f x 1 := by + apply lt_of_le_of_ne (hf.laguerreCoefficient_nonneg x 1) + intro heq + obtain ⟨a, ha⟩ := hf.eq_exp_of_laguerre_one_eq_zero hfx heq.symm + exact hne a (funext ha) + +/-- Equality in the first Laguerre inequality occurs exactly at a multiple +zero, or for an ordinary real exponential. This includes the zero function. -/ +theorem IsLaguerrePolya.laguerre_one_eq_zero_iff {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (x : ℝ) : + laguerreCoefficient f x 1 = 0 ↔ + (f x = 0 ∧ _root_.deriv f x = 0) ∨ ∃ a : ℝ, ∀ z, f z = f 0 * exp ((a : ℂ) * z) := by + constructor + · intro heq + by_cases hfx : f x = 0 + · left + refine ⟨hfx, ?_⟩ + rw [laguerreCoefficient_one hf.differentiable hf.conj, hfx] at heq + have hre : (_root_.deriv f x).re = 0 := by simpa using heq + have hc : ((_root_.deriv f x).re : ℂ) = _root_.deriv f x := by + apply conj_eq_iff_re.mp + simpa using (hf.deriv.conj (x : ℂ)).symm + rw [← hc, hre, ofReal_zero] + · exact Or.inr (hf.eq_exp_of_laguerre_one_eq_zero hfx heq) + · rintro (⟨hfx, hdf⟩ | ⟨a, ha⟩) + · rw [laguerreCoefficient_one hf.differentiable hf.conj] + simp [hfx, hdf] + · have hc : ((f 0).re : ℂ) = f 0 := by + simpa only [iteratedDeriv_zero] using ofReal_re_iteratedDeriv_zero hf.conj 0 + have heq : f = fun z => ((f 0).re : ℂ) * + exp ((a : ℂ) * z + ((0 : ℝ) : ℂ) * z ^ 2) := by + funext z + simpa only [hc, ofReal_zero, zero_mul, add_zero] using ha z + rw [heq, laguerreCoefficient_one_exp_quadratic] + simp + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DerivativeMultiplicity.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DerivativeMultiplicity.lean new file mode 100644 index 000000000..b6f3655b3 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DerivativeMultiplicity.lean @@ -0,0 +1,86 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.LaguerreInequalities.Strict +import RealRooted.LaguerreInequalities.DerivativeFormula +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import Mathlib.Analysis.SpecialFunctions.ExpDeriv + +/-! +# Multiplicity descent for an entire LP derivative shift + +A multiple zero of the nonzero function `f' + a f` forces one higher order +of vanishing of `f`. The strict first Laguerre equality classification handles +the first two equations; triangular differentiation recovers every higher +derivative. The nonzero-output assumption excludes annihilated exponentials. +This is the entire-function step in Craven–Csordas (1994), Lemma 4.2. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- The derivative of an ordinary exponential multiple is its slope times itself. -/ +private theorem deriv_eq_slope_mul_of_eq_exp {f : ℂ → ℂ} {b : ℝ} + (heq : ∀ z, f z = f 0 * exp ((b : ℂ) * z)) (z : ℂ) : + _root_.deriv f z = (b : ℂ) * f z := by + have hd := (((hasDerivAt_id' z).const_mul (b : ℂ)).cexp).const_mul (f 0) + have hf : f = fun w => f 0 * exp ((b : ℂ) * w) := funext heq + conv_lhs => rw [hf] + rw [hd.deriv, heq z] + ring + +/-- A double zero of a nonzero real derivative shift of an LP function +forces its first three Taylor derivatives to vanish. -/ +theorem IsLaguerrePolya.vanishing_of_linear_double_zero {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (a : ℝ) + (hne : ∃ z, _root_.deriv f z + (a : ℂ) * f z ≠ 0) {x : ℝ} + (hzero : _root_.deriv f x + (a : ℂ) * f x = 0) + (hderiv : _root_.deriv (_root_.deriv f) x + (a : ℂ) * _root_.deriv f x = 0) : + f x = 0 ∧ _root_.deriv f x = 0 ∧ _root_.deriv (_root_.deriv f) x = 0 := by + have h0r := congrArg Complex.re hzero + have h1r := congrArg Complex.re hderiv + simp only [add_re, mul_re, ofReal_re, ofReal_im, zero_mul, sub_zero, zero_re] at h0r h1r + have hlag : laguerreCoefficient f x 1 = 0 := by + rw [laguerreCoefficient_one hf.differentiable hf.conj] + simp only [show (2 : ℕ) = 1 + 1 from rfl, iteratedDeriv_succ, iteratedDeriv_zero] + linear_combination (_root_.deriv f x).re * h0r - (f x).re * h1r + rcases (hf.laguerre_one_eq_zero_iff x).mp hlag with hmult | ⟨b, hb⟩ + · refine ⟨hmult.1, hmult.2, ?_⟩ + simpa only [hmult.2, mul_zero, add_zero] using hderiv + · have hdf := deriv_eq_slope_mul_of_eq_exp hb + have hconst : ((b : ℂ) + a) * f 0 = 0 := by + have hprod : (((b : ℂ) + a) * f 0) * exp ((b : ℂ) * x) = 0 := by + rw [hdf x, hb x] at hzero + linear_combination hzero + exact (mul_eq_zero.mp hprod).resolve_right (exp_ne_zero _) + obtain ⟨z, hz⟩ := hne + apply (hz ?_).elim + rw [hdf z, hb z] + calc + _ = (((b : ℂ) + a) * f 0) * exp ((b : ℂ) * z) := by ring + _ = 0 := by rw [hconst, zero_mul] + +/-- If the first `k ≥ 2` derivatives of a nonzero real derivative shift +vanish, the first `k+1` derivatives of the LP input vanish. -/ +theorem IsLaguerrePolya.vanishing_of_linear_differential {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (a : ℝ) + (hne : ∃ z, _root_.deriv f z + (a : ℂ) * f z ≠ 0) {x : ℝ} {k : ℕ} (hk : 2 ≤ k) + (hzero : ∀ j < k, iteratedDeriv (j + 1) f x + (a : ℂ) * iteratedDeriv j f x = 0) : + ∀ j < k + 1, iteratedDeriv j f x = 0 := by + have h0 : _root_.deriv f x + (a : ℂ) * f x = 0 := by simpa using hzero 0 (by lia) + have h1 : _root_.deriv (_root_.deriv f) x + (a : ℂ) * _root_.deriv f x = 0 := by + simpa only [iteratedDeriv_succ, iteratedDeriv_zero] using hzero 1 (by lia) + have hbase := (hf.vanishing_of_linear_double_zero a hne h0 h1).1 + intro j hj + induction j with + | zero => exact hbase + | succ j ih => + have hprev := ih (by lia) + have hnext := hzero j (by lia) + simpa only [hprev, mul_zero, add_zero] using hnext + +end RealRooted From 65a92c5c8e0bfe874caa0872f23a9a1db8a6cb6f 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 16:23:04 +0000 Subject: [PATCH 32/56] feat: extend polynomial differential operators to entire Laguerre Polya functions --- .../Calculus/IteratedDeriv/Polynomial.lean | 54 +++++++++++++++++++ .../Algebra/IsUniformGroup/FiniteSum.lean | 39 ++++++++++++++ .../LaguerrePolya/DifferentialApply.lean | 52 ++++++++++++++++++ 3 files changed, 145 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/Polynomial.lean create mode 100644 RealRooted/Mathlib/Topology/Algebra/IsUniformGroup/FiniteSum.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialApply.lean diff --git a/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/Polynomial.lean b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/Polynomial.lean new file mode 100644 index 000000000..c777647f4 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/Polynomial.lean @@ -0,0 +1,54 @@ +/- +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 +public import Mathlib.Algebra.Polynomial.Degree.Defs +public import Mathlib.Analysis.Complex.Basic +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff +import RealRooted.Mathlib.Topology.Algebra.IsUniformGroup.FiniteSum + +/-! +# Polynomial differential symbols on functions + +A polynomial acts on a function by the finite linear combination of its +iterated derivatives. For entire complex functions this operation commutes with +locally uniform limits. +-/ + +public section + +open Filter Topology + +namespace Polynomial + +/-- The finite differential operator with polynomial symbol `p`, applied to `f`. -/ +@[expose] noncomputable def differentialApply {𝕜 E : Type*} [NontriviallyNormedField 𝕜] + [NormedAddCommGroup E] [NormedSpace 𝕜 E] (p : 𝕜[X]) (f : 𝕜 → E) : 𝕜 → E := + fun z => ∑ k ∈ Finset.range (p.natDegree + 1), p.coeff k • iteratedDeriv k f z + +/-- The zero differential symbol acts as zero on every function. -/ +@[simp] theorem differentialApply_zero {𝕜 E : Type*} [NontriviallyNormedField 𝕜] + [NormedAddCommGroup E] [NormedSpace 𝕜 E] (f : 𝕜 → E) : + (0 : 𝕜[X]).differentialApply f = 0 := by + ext z + simp [differentialApply] + +/-- A polynomial differential operator commutes with locally uniform limits +of entire complex functions. -/ +theorem tendstoLocallyUniformly_differentialApply {F : ℕ → ℂ → ℂ} {f : ℂ → ℂ} + (p : ℂ[X]) (hF : TendstoLocallyUniformly F f atTop) + (hd : ∀ n, Differentiable ℂ (F n)) : + TendstoLocallyUniformly (fun n => p.differentialApply (F n)) + (p.differentialApply f) atTop := by + unfold differentialApply + apply TendstoLocallyUniformly.finset_sum + intro k _ + simpa only [Function.comp_def] using + (uniformContinuous_const_smul (p.coeff k : ℂ)).comp_tendstoLocallyUniformly + (hF.iteratedDeriv hd k) + +end Polynomial diff --git a/RealRooted/Mathlib/Topology/Algebra/IsUniformGroup/FiniteSum.lean b/RealRooted/Mathlib/Topology/Algebra/IsUniformGroup/FiniteSum.lean new file mode 100644 index 000000000..6f537bdf3 --- /dev/null +++ b/RealRooted/Mathlib/Topology/Algebra/IsUniformGroup/FiniteSum.lean @@ -0,0 +1,39 @@ +/- +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.Topology.UniformSpace.LocallyUniformConvergence +public import Mathlib.Topology.Algebra.IsUniformGroup.Defs +import Mathlib.Topology.Algebra.IsUniformGroup.Basic + +/-! +# Finite sums of locally uniformly convergent families +-/ + +public section + +open Filter + +/-- A constant family converges locally uniformly to that same function. -/ +theorem tendstoLocallyUniformly_const_family {ι X E : Type*} [TopologicalSpace X] + [UniformSpace E] (f : X → E) (l : Filter ι) : + TendstoLocallyUniformly (fun _ : ι => f) f l := by + intro u hu x + exact ⟨Set.univ, univ_mem, Eventually.of_forall fun _ _ _ => refl_mem_uniformity hu⟩ + +/-- Finite sums preserve locally uniform convergence. -/ +theorem TendstoLocallyUniformly.finset_sum {ι X E A : Type*} [TopologicalSpace X] + [AddCommGroup E] [UniformSpace E] [IsUniformAddGroup E] (s : Finset A) + {F : A → ι → X → E} {f : A → X → E} {l : Filter ι} + (h : ∀ a ∈ s, TendstoLocallyUniformly (F a) (f a) l) : + TendstoLocallyUniformly (fun n x => ∑ a ∈ s, F a n x) (fun x => ∑ a ∈ s, f a x) l := by + classical + induction s using Finset.induction_on with + | empty => simpa using tendstoLocallyUniformly_const_family (fun _ : X => (0 : E)) l + | @insert a s ha ih => + simpa only [Finset.sum_insert ha, Pi.add_def] using + (h a (Finset.mem_insert_self a s)).add + (ih fun b hb => h b (Finset.mem_insert_of_mem hb)) diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialApply.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialApply.lean new file mode 100644 index 000000000..40f1f04b3 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialApply.lean @@ -0,0 +1,52 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Polynomial +public import RealRooted.Hermite.Poulain +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff + +/-! +# Polynomial differential operators on entire Laguerre--Pólya functions + +A real-rooted polynomial symbol acts on an entire Laguerre--Pólya target by a +finite linear combination of derivatives. The result remains in the class, +including the zero output. This is the finite-symbol case of the infinite +differential-operator theorem quoted by O'Sullivan as Theorem 3.6. +-/ + +public section + +open Complex Polynomial Filter Topology + +namespace RealRooted + +/-- Evaluating the Hermite--Poulain polynomial operator agrees with applying the +same finite differential symbol to the complex polynomial function. -/ +theorem differentialApply_eval_map (q p : ℝ[X]) (z : ℂ) : + (q.map ofRealHom).differentialApply (fun w => (p.map ofRealHom).eval w) z = + ((HermitePoulain.applyAsDifferentialOperator q p).map ofRealHom).eval z := by + simp only [Polynomial.differentialApply, HermitePoulain.applyAsDifferentialOperator, + natDegree_map_eq_of_injective ofRealHom.injective, coeff_map, iteratedDeriv_fun_eval, + iterate_derivative_map, smul_eq_mul, Polynomial.map_sum, Polynomial.map_mul, + Polynomial.map_C, Polynomial.eval_finsetSum, Polynomial.eval_mul, Polynomial.eval_C] + +/-- Every real-rooted polynomial differential symbol preserves the entire +Laguerre--Pólya class. Both a zero symbol and a zero output are allowed. -/ +theorem IsLaguerrePolya.differentialApply {f : ℂ → ℂ} (hf : IsLaguerrePolya f) + {q : ℝ[X]} (hq : q.Splits) : IsLaguerrePolya ((q.map ofRealHom).differentialApply f) := by + by_cases hq0 : q = 0 + · simp only [hq0, Polynomial.map_zero, Polynomial.differentialApply_zero] + exact IsLaguerrePolya.zero + obtain ⟨p, hp, ht⟩ := hf + refine ⟨fun n => HermitePoulain.applyAsDifferentialOperator q (p n), fun n => ?_, ?_⟩ + · by_cases hp0 : p n = 0 + · exact Or.inl (by simp [hp0]) + · exact HermitePoulain.applyAsDifferentialOperator_eq_zero_or_splits ⟨hq0, hq⟩ + ⟨hp0, (hp n).resolve_left hp0⟩ + · have hlim := Polynomial.tendstoLocallyUniformly_differentialApply + (q.map ofRealHom) ht (fun n => (p n).map ofRealHom |>.differentiable) + convert hlim using 1 + ext n z + exact (differentialApply_eval_map q (p n) z).symm + +end RealRooted From 805220dfa8ccd9c8b5000035241df4d07353f32d 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 16:28:49 +0000 Subject: [PATCH 33/56] feat: prove entire differential multiplicity descent --- .../IteratedDeriv/PolynomialAlgebra.lean | 124 ++++++++++++++++ .../DifferentialMultiplicity.lean | 140 ++++++++++++++++++ 2 files changed, 264 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialAlgebra.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialMultiplicity.lean diff --git a/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialAlgebra.lean b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialAlgebra.lean new file mode 100644 index 000000000..aaf9b0f24 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialAlgebra.lean @@ -0,0 +1,124 @@ +module + +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Polynomial +import Mathlib.Algebra.Polynomial.Degree.Support +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas +import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Algebra of polynomial differential operators + +Polynomial symbols compose by multiplication on entire complex functions. +Linear factors act as derivative shifts, and every finite differential symbol +commutes with every iterated derivative. +-/ + +public section + +namespace Polynomial + +/-- A finite differential operator may be summed over the support of its symbol. -/ +theorem differentialApply_eq_sum (p : ℂ[X]) (f : ℂ → ℂ) (z : ℂ) : + p.differentialApply f z = p.sum (fun k a => a * iteratedDeriv k f z) := by + rw [sum_over_range _ (fun _ => zero_mul _)] + simp only [differentialApply, smul_eq_mul] + +/-- Differential symbols add pointwise. -/ +theorem differentialApply_add (p q : ℂ[X]) (f : ℂ → ℂ) : + (p + q).differentialApply f = p.differentialApply f + q.differentialApply f := by + ext z + simp only [Pi.add_apply, differentialApply_eq_sum] + exact sum_add_index p q _ (fun _ => zero_mul _) (fun _ _ _ => add_mul _ _ _) + +/-- A monomial symbol is a scalar multiple of one iterated derivative. -/ +@[simp] theorem differentialApply_monomial (n : ℕ) (a : ℂ) (f : ℂ → ℂ) : + (monomial n a).differentialApply f = fun z => a * iteratedDeriv n f z := by + ext z + rw [differentialApply_eq_sum] + exact sum_monomial_index a (fun k b => b * iteratedDeriv k f z) (zero_mul _) + +/-- A constant symbol acts by multiplication by that constant. -/ +@[simp] theorem differentialApply_C (a : ℂ) (f : ℂ → ℂ) : + (C a).differentialApply f = fun z => a * f z := by + simpa only [monomial_zero_left, iteratedDeriv_zero] using + differentialApply_monomial 0 a f + +/-- The variable symbol acts by differentiation. -/ +@[simp] theorem differentialApply_X (f : ℂ → ℂ) : + (X : ℂ[X]).differentialApply f = deriv f := by + simpa only [monomial_one_one_eq_X, iteratedDeriv_one, one_mul] using + differentialApply_monomial 1 1 f + +/-- The unit symbol acts as the identity. -/ +@[simp] theorem differentialApply_one (f : ℂ → ℂ) : + (1 : ℂ[X]).differentialApply f = f := by + simpa only [C_1, one_mul] using differentialApply_C 1 f + +/-- A finite differential operator sends the zero function to zero. -/ +@[simp] theorem differentialApply_zero_input (p : ℂ[X]) : + p.differentialApply (0 : ℂ → ℂ) = 0 := by + ext z + simp [differentialApply] + +/-- A polynomial differential operator sends entire functions to entire functions. -/ +theorem differentiable_differentialApply (p : ℂ[X]) {f : ℂ → ℂ} + (hf : Differentiable ℂ f) : Differentiable ℂ (p.differentialApply f) := by + unfold differentialApply + apply Differentiable.fun_sum + intro k _ + exact ((hf.contDiff (n := ⊤)).differentiable_iteratedDeriv k + (WithTop.coe_lt_top _)).const_smul (p.coeff k) + +/-- Multiplication of symbols composes their actions on entire functions. -/ +theorem differentialApply_mul (p q : ℂ[X]) {f : ℂ → ℂ} + (hf : Differentiable ℂ f) : + (p * q).differentialApply f = p.differentialApply (q.differentialApply f) := by + induction p using Polynomial.induction_on' with + | add p r hp hr => + rw [add_mul, differentialApply_add, hp, hr, differentialApply_add] + | monomial n a => + induction q using Polynomial.induction_on' with + | add q r hq hr => + rw [mul_add, differentialApply_add, hq, hr, differentialApply_add, + differentialApply_monomial, differentialApply_monomial, + differentialApply_monomial] + ext z + rw [iteratedDeriv_add + ((q.differentiable_differentialApply hf).contDiff.contDiffAt) + ((r.differentiable_differentialApply hf).contDiff.contDiffAt)] + simp only [Pi.add_apply, mul_add] + | monomial m b => + rw [monomial_mul_monomial, differentialApply_monomial, + differentialApply_monomial, differentialApply_monomial] + ext z + rw [iteratedDeriv_const_mul_field] + simp only [iteratedDeriv_eq_iterate, Function.iterate_add_apply, mul_assoc] + +/-- Multiplying the symbol by `X + C a` takes a derivative shift of its output. -/ +theorem differentialApply_mul_X_add_C (p : ℂ[X]) (a : ℂ) {f : ℂ → ℂ} + (hf : Differentiable ℂ f) : + (p * (X + C a)).differentialApply f = + fun z => deriv (p.differentialApply f) z + a * p.differentialApply f z := by + rw [mul_comm, differentialApply_mul _ _ hf, differentialApply_add, + differentialApply_X, differentialApply_C] + rfl + +/-- Every finite differential symbol commutes with every iterated derivative. -/ +theorem iteratedDeriv_differentialApply (p : ℂ[X]) {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (n : ℕ) : + iteratedDeriv n (p.differentialApply f) = p.differentialApply (iteratedDeriv n f) := by + have hleft := differentialApply_mul (monomial n 1) p hf + have hright := differentialApply_mul p (monomial n 1) hf + rw [mul_comm] at hleft + simpa only [differentialApply_monomial, one_mul] using hleft.symm.trans hright + +/-- A derivative shift commutes with all iterated derivatives. -/ +theorem iteratedDeriv_linear_differential {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (a : ℂ) (n : ℕ) : + iteratedDeriv n (fun z => deriv f z + a * f z) = + fun z => iteratedDeriv (n + 1) f z + a * iteratedDeriv n f z := by + have h := iteratedDeriv_differentialApply (X + C a) hf n + simpa only [differentialApply_add, differentialApply_X, differentialApply_C, + ← iteratedDeriv_succ, Pi.add_def] using h + +end Polynomial diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialMultiplicity.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialMultiplicity.lean new file mode 100644 index 000000000..deae0d789 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialMultiplicity.lean @@ -0,0 +1,140 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DifferentialApply +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialAlgebra +public import Mathlib.Analysis.Analytic.Order +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DerivativeMultiplicity +import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas + +/-! +# Entire-target multiplicity for real-rooted differential symbols + +A multiple zero of a nonzero finite real-rooted differential image of an LP +function forces the input to vanish to the output order plus the symbol degree. +Translation gives the exponential-polynomial case of Craven–Csordas (1994), +Lemma 4.2. No growth restriction or nonzero constant coefficient is needed. +The nonzero-output premise is essential for annihilated exponential inputs. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- Multiplicity descent through every factor of a real root multiset. -/ +private theorem vanishing_differential_root_product {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (s : Multiset ℝ) {x : ℝ} {k : ℕ} (hk : 2 ≤ k) + (hne : ∃ z, (((s.map (fun r => X - C r)).prod).map ofRealHom).differentialApply f z ≠ 0) + (hzero : ∀ j < k, iteratedDeriv (𝕜 := ℂ) (F := ℂ) j + ((((s.map (fun r => X - C r)).prod).map ofRealHom).differentialApply f) x = 0) : + ∀ j < k + s.card, iteratedDeriv j f x = 0 := by + induction s using Multiset.induction_on generalizing k with + | empty => simpa using hzero + | @cons r s ih => + let q : ℝ[X] := (s.map (fun r => X - C r)).prod + let g : ℂ → ℂ := (q.map ofRealHom).differentialApply f + have hq : q.Splits := Splits.multisetProd (by simp [Splits.X_sub_C]) + have hg : IsLaguerrePolya g := hf.differentialApply hq + have heq : + ((((r ::ₘ s).map (fun u => X - C u)).prod).map ofRealHom).differentialApply f = + fun z => _root_.deriv g z + ((-r : ℝ) : ℂ) * g z := by + simp only [Multiset.map_cons, Multiset.prod_cons, Polynomial.map_mul, + Polynomial.map_sub, Polynomial.map_X, Polynomial.map_C, ofRealHom_eq_coe] + rw [sub_eq_add_neg, ← C_neg, differentialApply_mul _ _ hf.differentiable, + differentialApply_add, differentialApply_X, differentialApply_C] + simp only [ofReal_neg] + rfl + rw [heq] at hne hzero + have hg0 : ∃ z, g z ≠ 0 := by + by_contra h + have hz : g = 0 := by ext z; simpa using not_exists.mp h z + simp [hz] at hne + have hback := hg.vanishing_of_linear_differential (-r) hne hk (by + intro j hj + simpa only [iteratedDeriv_linear_differential hg.differentiable] using hzero j hj) + have hprev := ih (by lia : 2 ≤ k + 1) hg0 hback + intro j hj + exact hprev j (by simpa only [Multiset.card_cons, Nat.add_assoc, Nat.add_comm 1] using hj) + +/-- A zero of order at least `k ≥ 2` of a nonzero real-rooted finite + differential image forces order at least `k + degree(q)` in the LP input. -/ +theorem IsLaguerrePolya.vanishing_of_differentialApply {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) {q : ℝ[X]} (hq : q.Splits) + (hne : ∃ z, (q.map ofRealHom).differentialApply f z ≠ 0) {x : ℝ} {k : ℕ} + (hk : 2 ≤ k) + (hzero : ∀ j < k, iteratedDeriv j ((q.map ofRealHom).differentialApply f) x = 0) : + ∀ j < k + q.natDegree, iteratedDeriv j f x = 0 := by + have hq0 : q ≠ 0 := by + intro hz + simp [hz] at hne + have hlc : (q.leadingCoeff : ℂ) ≠ 0 := + ofReal_ne_zero.mpr (leadingCoeff_ne_zero.mpr hq0) + let g := (((q.roots.map (fun r => X - C r)).prod).map ofRealHom).differentialApply f + have heq : (q.map ofRealHom).differentialApply f = + fun z => (q.leadingCoeff : ℂ) * g z := by + conv_lhs => rw [hq.eq_prod_roots] + rw [Polynomial.map_mul, Polynomial.map_C, differentialApply_mul _ _ hf.differentiable, + differentialApply_C] + rfl + have hg0 : ∃ z, g z ≠ 0 := by + obtain ⟨z, hz⟩ := hne + refine ⟨z, ?_⟩ + rw [heq] at hz + exact (mul_ne_zero_iff.mp hz).2 + have hgvan : ∀ j < k, iteratedDeriv j g x = 0 := by + intro j hj + have h := hzero j hj + rw [heq, iteratedDeriv_const_mul_field] at h + exact (mul_eq_zero.mp h).resolve_left hlc + rw [hq.natDegree_eq_card_roots] + exact vanishing_differential_root_product hf q.roots hk hg0 hgvan + +/-- Translating a finite differential image traces a multiple zero back to the +translated input point. This is the exponential-polynomial differential-symbol +case of Craven–Csordas (1994), Lemma 4.2, with arbitrary multiple-zero order. -/ +theorem IsLaguerrePolya.vanishing_of_differentialApply_translate {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) {q : ℝ[X]} (hq : q.Splits) (a : ℝ) + (hne : ∃ z, (q.map ofRealHom).differentialApply f z ≠ 0) {x : ℝ} {k : ℕ} + (hk : 2 ≤ k) + (hzero : ∀ j < k, iteratedDeriv (𝕜 := ℂ) (F := ℂ) j + (fun z => (q.map ofRealHom).differentialApply f (z + a)) x = 0) : + ∀ j < k + q.natDegree, iteratedDeriv j f (x + a : ℝ) = 0 := by + apply hf.vanishing_of_differentialApply hq hne hk + intro j hj + simpa only [iteratedDeriv_comp_add_const, ofReal_add] using hzero j hj + +/-- Analytic-order form of multiplicity descent for a nonzero finite +real-rooted differential image of an LP function. -/ +theorem IsLaguerrePolya.le_analyticOrderAt_of_differentialApply {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) {q : ℝ[X]} (hq : q.Splits) + (hne : ∃ z, (q.map ofRealHom).differentialApply f z ≠ 0) {x : ℝ} {k : ℕ} + (hk : 2 ≤ k) + (horder : (k : ℕ∞) ≤ analyticOrderAt ((q.map ofRealHom).differentialApply f) (x : ℂ)) : + ((k + q.natDegree : ℕ) : ℕ∞) ≤ analyticOrderAt f (x : ℂ) := by + rw [natCast_le_analyticOrderAt_iff_iteratedDeriv_eq_zero + (hf.differentiable.analyticAt _)] + apply hf.vanishing_of_differentialApply hq hne hk + exact (natCast_le_analyticOrderAt_iff_iteratedDeriv_eq_zero + ((hf.differentialApply hq).differentiable.analyticAt _)).mp horder + +/-- A finite real-rooted differential image has a simple zero whenever the +input has a nonvanishing derivative below the symbol degree plus two there. -/ +theorem IsLaguerrePolya.deriv_differentialApply_ne_zero_of_jet {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) {q : ℝ[X]} (hq : q.Splits) + (hne : ∃ z, (q.map ofRealHom).differentialApply f z ≠ 0) {x : ℝ} + (hjet : ∃ j < q.natDegree + 2, iteratedDeriv j f x ≠ 0) + (hzero : (q.map ofRealHom).differentialApply f x = 0) : + _root_.deriv ((q.map ofRealHom).differentialApply f) x ≠ 0 := by + intro hd + have hvan := hf.vanishing_of_differentialApply hq hne (k := 2) (by lia) (by + intro j hj + have hjcases : j = 0 ∨ j = 1 := by lia + rcases hjcases with rfl | rfl + · simpa only [iteratedDeriv_zero] using hzero + · simpa only [iteratedDeriv_one] using hd) + obtain ⟨j, hj, hne⟩ := hjet + exact hne (hvan j (by lia)) + +end RealRooted From 64c954589d8fe21ea1cf0243404d535a40990281 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 16:29:55 +0000 Subject: [PATCH 34/56] feat: derive entire Laguerre Polya convergence from formal Jensen splitting --- .../MultiplierSequence/JensenLimit.lean | 38 +++++++ .../LaguerrePolya/CoefficientLimit.lean | 46 ++++++++ .../LaguerrePolya/FormalJensen.lean | 100 ++++++++++++++++++ 3 files changed, 184 insertions(+) create mode 100644 RealRooted/MultiplierSequence/JensenLimit.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/CoefficientLimit.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FormalJensen.lean diff --git a/RealRooted/MultiplierSequence/JensenLimit.lean b/RealRooted/MultiplierSequence/JensenLimit.lean new file mode 100644 index 000000000..b06d223d2 --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenLimit.lean @@ -0,0 +1,38 @@ +module + +public import RealRooted.MultiplierSequence +public import Mathlib.Topology.MetricSpace.Pseudo.Defs +import RealRooted.Mathlib.Analysis.Complex.Polynomial.ClosedRoots.Real + +/-! +# Coefficientwise limits of splitting Jensen polynomials +-/ + +public section + +open Polynomial Complex Filter Topology + +namespace RealRooted + +/-- Splitting of a fixed-degree Jensen polynomial is closed under pointwise +limits of its defining real sequence. -/ +theorem jensenPolynomial_splits_of_tendsto {a : ℕ → ℕ → ℝ} {b : ℕ → ℝ} + (d : ℕ) (ha : ∀ n, (jensenPolynomial d (a n)).Splits) + (hlim : ∀ k, Tendsto (fun n => a n k) atTop (𝓝 (b k))) : + (jensenPolynomial d b).Splits := by + have heval (z : ℂ) : + Tendsto (fun n => ((jensenPolynomial d (a n)).map ofRealHom).eval z) atTop + (𝓝 (((jensenPolynomial d b).map ofRealHom).eval z)) := by + simp only [jensenPolynomial, Polynomial.map_sum, Polynomial.map_monomial, + Polynomial.eval_finsetSum, Polynomial.eval_monomial, ofRealHom_eq_coe, + ofReal_mul, ofReal_natCast] + exact tendsto_finsetSum _ fun k _ => + (tendsto_const_nhds.mul (hlim k).ofReal).mul_const (z ^ k) + rcases Polynomial.eq_zero_or_splits_of_tendsto_eval_of_natDegree_le + (N := d) (fun n => natDegree_jensenPolynomial_le d (a n)) + (fun n => Or.inr (ha n)) heval with hz | hs + · rw [hz] + exact Splits.zero + · exact hs + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/CoefficientLimit.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/CoefficientLimit.lean new file mode 100644 index 000000000..f80fc6a31 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/CoefficientLimit.lean @@ -0,0 +1,46 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FormalJensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IndexedProduct +import RealRooted.MultiplierSequence.JensenLimit +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff + +/-! +# Formal coefficient limits of real-rooted polynomials + +A coefficientwise limit of real splitting polynomials defines an entire +Laguerre--Pólya function. No bound on the degrees or prior convergence radius is +required; zero and initial zero coefficients are allowed. This is the +coefficient-limit theorem used in Pólya's 1915 differential-operator argument. +-/ + +public section + +open Polynomial Complex Filter Topology + +namespace RealRooted + +/-- The Jensen polynomials of the exponential Taylor data of a splitting real +polynomial also split. -/ +theorem jensenPolynomial_factorial_coeff_splits {p : ℝ[X]} (hp : p.Splits) (d : ℕ) : + (jensenPolynomial d (fun k => (k.factorial : ℝ) * p.coeff k)).Splits := by + have hs := (isLaguerrePolya_eval_map hp).jensenPolynomial_splits d + simpa only [iteratedDeriv_fun_eval, eval_zero_iterate_derivative, coeff_map, + ofRealHom_eq_coe, mul_re, natCast_re, ofReal_re, natCast_im, ofReal_im, + mul_zero, sub_zero] using hs + +/-- A coefficientwise limit of real splitting polynomials defines an entire +Laguerre--Pólya function, without a degree bound or a convergence assumption. -/ +theorem isLaguerrePolya_of_tendsto_coeff {p : ℕ → ℝ[X]} {a : ℕ → ℝ} + (hp : ∀ n, (p n).Splits) + (ha : ∀ k, Tendsto (fun n => (p n).coeff k) atTop (𝓝 (a k))) : + IsLaguerrePolya (complexExpGeneratingFunction (fun k => (k.factorial : ℝ) * a k)) := by + apply isLaguerrePolya_of_jensenPolynomial_splits + intro d + exact jensenPolynomial_splits_of_tendsto d + (fun n => jensenPolynomial_factorial_coeff_splits (hp n) d) + (fun k => (ha k).const_mul (k.factorial : ℝ)) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FormalJensen.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FormalJensen.lean new file mode 100644 index 000000000..86752acfd --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/FormalJensen.lean @@ -0,0 +1,100 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.BorceaBranden.Transcendental.UniformSzasz +import RealRooted.Mathlib.Analysis.Complex.Polynomial.CoeffEstimates +import RealRooted.HermiteBiehler.Basic +import RealRooted.Mathlib.Analysis.SpecialFunctions.Choose + +/-! +# Entire convergence from formal Jensen hyperbolicity + +If all Jensen polynomials of a real sequence split, its exponential generating +series converges everywhere and belongs to the Laguerre--Pólya class. No prior +analytic convergence assumption is needed. The proof uses the Szász bound on +rescaled Jensen polynomials, including sequences with an arbitrary zero prefix. +-/ + +public section + +open Polynomial Complex Filter Topology + +namespace RealRooted + +private theorem summable_of_jensenPolynomial_splits (gamma : ℕ → ℝ) + (h : ∀ n, (jensenPolynomial n gamma).Splits) (R : ℝ) (hR : 0 ≤ R) : + Summable (fun k => ‖gamma k‖ * R ^ k / k.factorial) := by + let p : ℕ → ℝ[X] := fun n => rescaledJensenPolynomial n gamma + have hp (n : ℕ) : (p n).Splits := by + dsimp [p] + rw [rescaledJensenPolynomial_eq_jensenPolynomial_comp] + exact (h n).comp_of_natDegree_le_one ((natDegree_C_mul_le _ _).trans (by simp)) + let f : ℕ → MvPolynomial Unit ℂ := fun n => + (MvPolynomial.uniqueAlgEquiv ℂ Unit).symm ((p n).map ofRealHom) + let a : (Unit →₀ ℕ) → ℂ := fun e => (gamma (e ()) / (e ()).factorial : ℝ) + let κ : ℕ → (Unit →₀ ℕ) → ℝ := fun n e => + (n.choose (e ()) : ℝ) * ((n : ℝ)⁻¹) ^ e () * (e ()).factorial + have hcoef (n : ℕ) (e : Unit →₀ ℕ) : (f n).coeff e = (κ n e : ℂ) * a e := by + simp only [f, MvPolynomial.coeff_uniqueAlgEquiv_symm, coeff_map, p, + coeff_rescaledJensenPolynomial, κ, a] + by_cases he : e () ≤ n + · rw [ite_eq_left he] + simp only [ofRealHom_eq_coe] + push_cast + have hfac : (((e ()).factorial : ℕ) : ℂ) ≠ 0 := by + exact_mod_cast Nat.factorial_ne_zero (e ()) + field_simp [hfac] + · rw [ite_eq_right he, Nat.choose_eq_zero_of_lt (lt_of_not_ge he)] + simp + have hκ (e : Unit →₀ ℕ) : Tendsto (fun n => κ n e) atTop (𝓝 1) := by + have ht := (Nat.tendsto_choose_mul_inv_pow_atTop (e ())).mul_const + ((e ()).factorial : ℝ) + simpa [κ, div_eq_mul_inv, Nat.factorial_ne_zero] using ht + have hst (n : ℕ) : MvUpperHalfPlaneStable (f n) ∨ f n = 0 := by + by_cases hn : p n = 0 + · right + simp [f, hn] + · left + intro z hz + change MvPolynomial.eval₂ (RingHom.id ℂ) z (f n) ≠ 0 + rw [show f n = (MvPolynomial.uniqueAlgEquiv ℂ Unit).symm + ((p n).map ofRealHom) from rfl] + rw [MvPolynomial.eval₂_uniqueAlgEquiv_symm] + exact isUpperHalfPlaneStable_complexify_of_splits (hp n) hn (z ()) (hz ()) + obtain ⟨B, C, n₀, hbound⟩ := + BorceaBranden.exists_norm_eval_le_exp_sq a κ f hcoef hκ hst + have hlimit (e : Unit →₀ ℕ) : + Tendsto (fun n => (f (n + n₀)).coeff e) atTop (𝓝 (a e)) := by + simp only [hcoef] + have ht := ((hκ e).comp (tendsto_add_atTop_nat n₀)).ofReal.mul_const (a e) + simpa using ht + obtain ⟨hsum, _⟩ := MvPolynomial.tendstoLocallyUniformly_of_bounded_of_coeff_tendsto + (fun n => f (n + n₀)) a + (fun r hr => ⟨B * Real.exp (C * r ^ 2), + fun n z hz => hbound (n + n₀) (Nat.le_add_left _ _) r hr.le z hz⟩) hlimit + have hs := (hsum (fun _ : Unit => (R : ℂ))).comp_injective + (Finsupp.single_injective ()) + simpa [a, Function.comp_def, norm_mul, norm_pow, abs_of_nonneg hR, norm_div, + mul_div_assoc, div_mul_eq_mul_div] using hs + +/-- Formal Jensen hyperbolicity forces absolute convergence of the exponential +generating series at every nonnegative radius, even with an initial zero prefix. -/ +theorem summable_norm_div_factorial_of_jensenPolynomial_splits (gamma : ℕ → ℝ) + (h : ∀ n, (jensenPolynomial n gamma).Splits) (R : ℝ) (hR : 0 ≤ R) : + Summable (fun k => ‖gamma k‖ * R ^ k / k.factorial) := + summable_of_jensenPolynomial_splits gamma h R hR + +/-- All real Jensen polynomials splitting already implies that the formal +exponential generating function is an entire Laguerre--Pólya function. -/ +theorem isLaguerrePolya_of_jensenPolynomial_splits (gamma : ℕ → ℝ) + (h : ∀ n, (jensenPolynomial n gamma).Splits) : + IsLaguerrePolya (complexExpGeneratingFunction gamma) := by + rw [complexExpGeneratingFunction_eq_tsum] + refine ⟨fun n => rescaledJensenPolynomial n gamma, fun n => Or.inr ?_, + tendstoLocallyUniformly_eval_complex_rescaledJensenPolynomial_of_summable gamma + (summable_of_jensenPolynomial_splits gamma h)⟩ + dsimp only + rw [rescaledJensenPolynomial_eq_jensenPolynomial_comp] + exact (h n).comp_of_natDegree_le_one ((natDegree_C_mul_le _ _).trans (by simp)) + +end RealRooted From c1255a17818dfe3a18468c618b233c965df7fb48 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 16:39:28 +0000 Subject: [PATCH 35/56] feat: integrate generalized Jensen criteria and analytic moment positivity --- RealRooted.lean | 26 ++++ .../Hermite/ExponentialJensenFactor.lean | 10 +- .../ExponentialJensenMultiplicity.lean | 7 +- RealRooted/Hermite/PoulainExponential.lean | 5 +- .../Analysis/Analytic/TaylorSeries.lean | 133 ++++++++++++++++++ .../IteratedDeriv/PolynomialAlgebra.lean | 7 +- .../MultiplierSequence/JensenSeparation.lean | 3 - .../LaguerrePolya/DerivativeMultiplicity.lean | 1 - .../DifferentialMultiplicity.lean | 11 +- .../LaguerrePolya/JensenSignBoundary.lean | 8 +- .../LaguerrePolya/LogDerivativeMoments.lean | 59 ++++++++ .../TotalPositivityConverse.lean | 24 +++- .../LaguerrePolya/TypeIFactorization.lean | 54 +++++++ RealRooted/Production.lean | 28 ++++ RealRooted/RiemannHypothesis/Moments.lean | 13 ++ scripts/import_architecture.json | 4 +- scripts/mathlib_shims.json | 60 ++++++++ 17 files changed, 431 insertions(+), 22 deletions(-) create mode 100644 RealRooted/Mathlib/Analysis/Analytic/TaylorSeries.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMoments.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIFactorization.lean diff --git a/RealRooted.lean b/RealRooted.lean index 9ef5305eb..fb02116f1 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2526,3 +2526,29 @@ public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.OperatorLin public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Strictness public import RealRooted.RiemannHypothesis.IntegerSamples public import RealRooted.RiemannHypothesis.Moments +public import RealRooted.Hermite.ExponentialJensenFactor +public import RealRooted.Hermite.ExponentialJensenMultiplicity +public import RealRooted.Hermite.PoulainExponential +public import RealRooted.LaguerreInequalities.Strict +public import RealRooted.Mathlib.Analysis.Analytic.TaylorSeries +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Polynomial +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialAlgebra +public import RealRooted.Mathlib.Analysis.Complex.CanonicalProduct.GenusOne +public import RealRooted.Mathlib.Analysis.Complex.ForwardDifference +public import RealRooted.Mathlib.Topology.Algebra.IsUniformGroup.FiniteSum +public import RealRooted.MultiplierSequence.JensenPositiveInterlacing +public import RealRooted.MultiplierSequence.JensenSeparation +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DerivativeMultiplicity +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DifferentialApply +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DifferentialMultiplicity +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.ForwardDifference +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GenusOne +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GenusOneProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.JensenSignBoundary +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogDerivativeMoments +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeIFactorization +public import RealRooted.RiemannHypothesis.ForwardDifference +public import RealRooted.RiemannHypothesis.JensenInterlacing +public import RealRooted.MultiplierSequence.JensenLimit +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.CoefficientLimit +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FormalJensen diff --git a/RealRooted/Hermite/ExponentialJensenFactor.lean b/RealRooted/Hermite/ExponentialJensenFactor.lean index 051290bef..465d01188 100644 --- a/RealRooted/Hermite/ExponentialJensenFactor.lean +++ b/RealRooted/Hermite/ExponentialJensenFactor.lean @@ -1,9 +1,15 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs + +public import Mathlib.Analysis.CStarAlgebra.Classes + +public import RealRooted.MultiplierSequence + +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen + public import Mathlib.Analysis.Complex.Exponential import RealRooted.Hermite.PoulainExponential -import RealRooted.Mathlib.Algebra.Polynomial.Reverse /-! # The exceptional exponential factor of Jensen polynomials diff --git a/RealRooted/Hermite/ExponentialJensenMultiplicity.lean b/RealRooted/Hermite/ExponentialJensenMultiplicity.lean index 46369e014..f18b52f50 100644 --- a/RealRooted/Hermite/ExponentialJensenMultiplicity.lean +++ b/RealRooted/Hermite/ExponentialJensenMultiplicity.lean @@ -1,6 +1,11 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs + +public import Mathlib.Analysis.CStarAlgebra.Classes + +public import RealRooted.MultiplierSequence + public import RealRooted.SimpleRoots public import Mathlib.Analysis.Complex.Exponential import RealRooted.Hermite.ExponentialJensenFactor diff --git a/RealRooted/Hermite/PoulainExponential.lean b/RealRooted/Hermite/PoulainExponential.lean index 7fe0bfe9c..1b745fc6a 100644 --- a/RealRooted/Hermite/PoulainExponential.lean +++ b/RealRooted/Hermite/PoulainExponential.lean @@ -1,7 +1,10 @@ module +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator + +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen + public import RealRooted.Hermite.Poulain -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen public import RealRooted.SimpleRoots public import Mathlib.Analysis.Complex.Exponential import RealRooted.Hermite.PoulainSimple diff --git a/RealRooted/Mathlib/Analysis/Analytic/TaylorSeries.lean b/RealRooted/Mathlib/Analysis/Analytic/TaylorSeries.lean new file mode 100644 index 000000000..ec9a5ad48 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Analytic/TaylorSeries.lean @@ -0,0 +1,133 @@ +/- +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 TauCeti.Analysis.Analytic.TaylorSeries +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +public import Mathlib.Analysis.Calculus.LogDeriv +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.RingTheory.PowerSeries.Log +import RealRooted.Mathlib.RingTheory.PowerSeries.LogarithmMul + +/-! +# Taylor series and logarithmic derivatives + +The one-variable Taylor series from Tau Ceti has coefficients given by normalized +iterated derivatives. It commutes with differentiation and sends an analytic +logarithmic derivative to the derivative of the normalized formal logarithm. +The function needs to be analytic only at the chosen point, where it is nonzero. +-/ + +public section + +open Filter Topology + +variable {𝕜 : Type*} [NontriviallyNormedField 𝕜] [CompleteSpace 𝕜] [CharZero 𝕜] + {f : 𝕜 → 𝕜} {a : 𝕜} + +/-- Taylor coefficients of an analytic function are normalized derivatives. -/ +theorem AnalyticAt.coeff_taylorSeries_eq_iteratedDeriv (hf : AnalyticAt 𝕜 f a) (n : ℕ) : + PowerSeries.coeff n (TauCeti.taylorSeries f a) = iteratedDeriv n f a / n.factorial := by + rw [hf.hasFPowerSeriesAt.coeff_taylorSeries] + exact FormalMultilinearSeries.coeff_ofScalars + +/-- Taylor series commute with differentiation at analytic points. -/ +theorem AnalyticAt.taylorSeries_deriv (hf : AnalyticAt 𝕜 f a) : + TauCeti.taylorSeries (deriv f) a = PowerSeries.derivative (TauCeti.taylorSeries f a) := by + ext n + rw [hf.deriv.coeff_taylorSeries_eq_iteratedDeriv, + PowerSeries.coeff_derivative, hf.coeff_taylorSeries_eq_iteratedDeriv, + ← iteratedDeriv_succ', Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, Nat.cast_one] + have hfac : (n.factorial : 𝕜) ≠ 0 := Nat.cast_ne_zero.mpr n.factorial_ne_zero + have hn : (n + 1 : 𝕜) ≠ 0 := Nat.cast_add_one_ne_zero n + field_simp + +/-- The analytic logarithmic derivative satisfies the formal product identity. -/ +theorem AnalyticAt.taylorSeries_mul_logDeriv (hf : AnalyticAt 𝕜 f a) (h0 : f a ≠ 0) : + TauCeti.taylorSeries f a * TauCeti.taylorSeries (logDeriv f) a = + PowerSeries.derivative (TauCeti.taylorSeries f a) := by + have hg : AnalyticAt 𝕜 (logDeriv f) a := hf.deriv.div hf h0 + have heq : f * logDeriv f =ᶠ[𝓝 a] deriv f := by + filter_upwards [hf.continuousAt.eventually_ne h0] with z hz + simp only [Pi.mul_apply, logDeriv_apply] + exact mul_div_cancel₀ _ hz + have h := TauCeti.taylorSeries_congr heq + rwa [TauCeti.taylorSeries_mul hf hg, hf.taylorSeries_deriv] at h + +/-- At a normalized analytic point, the derivative of the formal logarithm +is the Taylor series of the analytic logarithmic derivative. -/ +theorem AnalyticAt.derivative_logOf_taylorSeries [Algebra ℚ 𝕜] + (hf : AnalyticAt 𝕜 f a) (h0 : f a = 1) : + PowerSeries.derivative (PowerSeries.logOf (TauCeti.taylorSeries f a)) = + TauCeti.taylorSeries (logDeriv f) a := by + have hc : PowerSeries.constantCoeff (TauCeti.taylorSeries f a) = 1 := by + rw [← PowerSeries.coeff_zero_eq_constantCoeff_apply, + hf.coeff_taylorSeries_eq_iteratedDeriv] + simp [h0] + apply (PowerSeries.isUnit_iff_constantCoeff.mpr (show + IsUnit (PowerSeries.constantCoeff (TauCeti.taylorSeries f a)) by + rw [hc] + exact isUnit_one)).mul_left_cancel + rw [PowerSeries.mul_derivative_logOf _ hc] + exact (hf.taylorSeries_mul_logDeriv (by simp [h0])).symm + +/-- Normalizing an analytic function by its nonzero constant value does not +change its logarithmic derivative series. -/ +theorem AnalyticAt.derivative_logOf_normalized_taylorSeries [Algebra ℚ 𝕜] + (hf : AnalyticAt 𝕜 f a) (h0 : f a ≠ 0) : + PowerSeries.derivative (PowerSeries.logOf + (PowerSeries.C (f a)⁻¹ * TauCeti.taylorSeries f a)) = + TauCeti.taylorSeries (logDeriv f) a := by + have hg : AnalyticAt 𝕜 (fun z => (f a)⁻¹ * f z) a := analyticAt_const.mul hf + have h := hg.derivative_logOf_taylorSeries (by simp [h0]) + have heq : (fun z => (f a)⁻¹ * f z) = (fun _ => (f a)⁻¹) * f := rfl + rw [heq, TauCeti.taylorSeries_mul analyticAt_const hf, TauCeti.taylorSeries_const] at h + have hlog : logDeriv ((fun _ => (f a)⁻¹) * f) = logDeriv f := by + funext z + exact logDeriv_const_mul (f := f) z _ (inv_ne_zero h0) + rwa [hlog] at h + +/-- Taylor coefficients of an analytic logarithmic derivative equal the +coefficients obtained by differentiating the normalized formal logarithm. -/ +theorem AnalyticAt.iteratedDeriv_logDeriv_eq_coeff_logOf [Algebra ℚ 𝕜] + (hf : AnalyticAt 𝕜 f a) (h0 : f a ≠ 0) (n : ℕ) : + iteratedDeriv n (logDeriv f) a / n.factorial = + PowerSeries.coeff (n + 1) (PowerSeries.logOf + (PowerSeries.C (f a)⁻¹ * TauCeti.taylorSeries f a)) * (n + 1) := by + have hg : AnalyticAt 𝕜 (logDeriv f) a := hf.deriv.div hf h0 + have h := congrArg (PowerSeries.coeff n) (hf.derivative_logOf_normalized_taylorSeries h0) + rw [PowerSeries.coeff_derivative, hg.coeff_taylorSeries_eq_iteratedDeriv] at h + exact h.symm + +/-- For real Taylor data, the real analytic logarithmic derivative coefficients +are the coefficients of the normalized real formal logarithm's derivative. -/ +theorem AnalyticAt.re_iteratedDeriv_logDeriv_eq_coeff_logOf + {f : ℂ → ℂ} (hf : AnalyticAt ℂ f 0) (h0 : f 0 ≠ 0) + (hreal : ∀ k, Complex.ofReal (iteratedDeriv k f 0).re = iteratedDeriv k f 0) (n : ℕ) : + (iteratedDeriv n (logDeriv f) 0).re / n.factorial = + PowerSeries.coeff (n + 1) (PowerSeries.logOf (PowerSeries.mk + (fun k => (iteratedDeriv k f 0).re / (k.factorial * (f 0).re)))) * (n + 1) := by + have hreal0 : Complex.ofReal (f 0).re = f 0 := by simpa using hreal 0 + have h0re : (f 0).re ≠ 0 := by + intro hz + exact h0 (by rw [← hreal0, hz, Complex.ofReal_zero]) + let d : ℕ → ℝ := fun k => (iteratedDeriv k f 0).re / (k.factorial * (f 0).re) + have hd : PowerSeries.constantCoeff (PowerSeries.mk d) = 1 := by simp [d, h0re] + have hmap : PowerSeries.map Complex.ofRealHom (PowerSeries.mk d) = + PowerSeries.C (f 0)⁻¹ * TauCeti.taylorSeries f 0 := by + ext k + rw [PowerSeries.coeff_map, PowerSeries.coeff_mk, PowerSeries.coeff_C_mul, + hf.coeff_taylorSeries_eq_iteratedDeriv] + simp only [Complex.ofRealHom_eq_coe, d, Complex.ofReal_div, Complex.ofReal_mul, + Complex.ofReal_natCast, hreal, hreal0] + ring + have h := hf.iteratedDeriv_logDeriv_eq_coeff_logOf h0 n + rw [← hmap, ← PowerSeries.map_logOf Complex.ofRealHom _ hd, PowerSeries.coeff_map] at h + have hre := congrArg Complex.re h + simpa only [Complex.div_natCast_re, Complex.ofRealHom_eq_coe, Complex.mul_re, + Complex.ofReal_re, Complex.ofReal_im, Complex.add_re, Complex.natCast_re, + Complex.one_re, Complex.add_im, Complex.natCast_im, Complex.one_im, add_zero, + mul_zero, sub_zero] using hre diff --git a/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialAlgebra.lean b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialAlgebra.lean index aaf9b0f24..1827427cb 100644 --- a/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialAlgebra.lean +++ b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialAlgebra.lean @@ -1,8 +1,11 @@ +/- +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.Analysis.Calculus.IteratedDeriv.Polynomial -import Mathlib.Algebra.Polynomial.Degree.Support -import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas import Mathlib.Analysis.Complex.CauchyIntegral /-! diff --git a/RealRooted/MultiplierSequence/JensenSeparation.lean b/RealRooted/MultiplierSequence/JensenSeparation.lean index e89bd7fbc..82f8e442a 100644 --- a/RealRooted/MultiplierSequence/JensenSeparation.lean +++ b/RealRooted/MultiplierSequence/JensenSeparation.lean @@ -2,9 +2,6 @@ module public import RealRooted.MultiplierSequence import RealRooted.Mathlib.Algebra.Polynomial.Derivative -import Mathlib.Analysis.Calculus.LocalExtr.Rolle -import Mathlib.Analysis.Calculus.Deriv.Polynomial -import Mathlib.Analysis.Calculus.Deriv.Pow /-! # Same-sign separation of consecutive Jensen polynomials diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DerivativeMultiplicity.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DerivativeMultiplicity.lean index b6f3655b3..8c5078b50 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DerivativeMultiplicity.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DerivativeMultiplicity.lean @@ -5,7 +5,6 @@ public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs import RealRooted.LaguerreInequalities.Strict import RealRooted.LaguerreInequalities.DerivativeFormula import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative -import Mathlib.Analysis.SpecialFunctions.ExpDeriv /-! # Multiplicity descent for an entire LP derivative shift diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialMultiplicity.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialMultiplicity.lean index deae0d789..ca4bd5102 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialMultiplicity.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/DifferentialMultiplicity.lean @@ -1,11 +1,16 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DifferentialApply -public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialAlgebra +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya + +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Polynomial + +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialAlgebra + +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DifferentialApply + public import Mathlib.Analysis.Analytic.Order import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DerivativeMultiplicity -import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas /-! # Entire-target multiplicity for real-rooted differential symbols diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSignBoundary.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSignBoundary.lean index 120507e7a..c0ab8ab20 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSignBoundary.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/JensenSignBoundary.lean @@ -1,7 +1,11 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen -import RealRooted.SimpleRoots +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya + +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen + public import Mathlib.Analysis.Complex.Exponential import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Closure import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlow diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMoments.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMoments.lean new file mode 100644 index 000000000..648090aaa --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMoments.lean @@ -0,0 +1,59 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import Mathlib.LinearAlgebra.Matrix.PosDef +public import Mathlib.Analysis.Calculus.LogDeriv +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.AppellMoments +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Analytic.TaylorSeries +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Hankel positivity of analytic logarithmic-derivative coefficients + +The signed Taylor coefficients of `f'/f` have positive semidefinite shifted +Hankel matrices when `f` is Type-I Laguerre--Pólya and nonzero at zero. This is +the matrix positivity assertion in the forward direction of Sokal's +logarithmic-derivative criterion, Appendix A, Proposition 6, +https://doi.org/10.1016/j.jmaa.2022.126432. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- Every shifted Hankel matrix of the signed analytic logarithmic-derivative +Taylor coefficients of a Type-I function is positive semidefinite. -/ +theorem IsLaguerrePolyaTypeI.posSemidef_logDeriv + {f : ℂ → ℂ} (hf : IsLaguerrePolyaTypeI f) (h0 : f 0 ≠ 0) (n r : ℕ) : + Matrix.PosSemidef (fun i j : Fin n => + let k := i.val + j.val + r + (-1 : ℝ) ^ k * (iteratedDeriv k (logDeriv f) 0).re / k.factorial) := by + have hreal (k : ℕ) : Complex.ofReal (iteratedDeriv k f 0).re = iteratedDeriv k f 0 := + ofReal_re_iteratedDeriv_zero hf.toLaguerrePolya.conj k + have h0re : (f 0).re ≠ 0 := by + intro hz + have h := hreal 0 + simp only [iteratedDeriv_zero, hz, ofReal_zero] at h + exact h0 h.symm + have hm := hf.posSemidef_signed_coeff_logOf h0re n r + convert hm using 1 + apply Iff.of_eq + apply congrArg Matrix.PosSemidef + funext i j + dsimp only + let k := i.val + j.val + r + have heq := AnalyticAt.re_iteratedDeriv_logDeriv_eq_coeff_logOf + (hf.toLaguerrePolya.differentiable.analyticAt 0) h0 hreal k + change (-1 : ℝ) ^ k * (iteratedDeriv k (logDeriv f) 0).re / k.factorial = + (-1 : ℝ) ^ (k + 1 + 1) * ((k + 1 : ℕ) : ℝ) * PowerSeries.coeff (k + 1) + (PowerSeries.logOf (PowerSeries.mk + (fun j => (iteratedDeriv j f 0).re / (j.factorial * (f 0).re)))) + rw [Nat.cast_add, Nat.cast_one, mul_div_assoc, heq, + show k + 1 + 1 = k + 2 by lia, pow_add] + ring + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityConverse.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityConverse.lean index 3b62e1ad6..b60908e58 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityConverse.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TotalPositivityConverse.lean @@ -1,5 +1,7 @@ module +public import Mathlib.Analysis.Complex.Exponential + public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivity @@ -93,12 +95,14 @@ private theorem exists_eq_exp_mul_prod_of_normalized simpa [B, E, hβ0] using hid /-- An entire function with a real PF generating-series germ and positive constant -coefficient is Type-I Laguerre--Pólya. -/ -theorem IsPolyaFreqSeq.isLaguerrePolyaTypeI_of_hasSum +coefficient has a Type-I product representation with summable nonnegative slopes. -/ +theorem IsPolyaFreqSeq.exists_eq_const_mul_exp_mul_prod {a : ℕ → ℝ} {f : ℂ → ℂ} (ha : IsPolyaFreqSeq a) (ha0 : 0 < a 0) (hf : Differentiable ℂ f) (hs : ∀ᶠ z in 𝓝 (0 : ℂ), HasSum (fun n => (a n : ℂ) * z ^ n) (f z)) : - IsLaguerrePolyaTypeI f := by + ∃ (γ : ℝ) (α : ℕ → ℝ), 0 ≤ γ ∧ (∀ i, 0 ≤ α i) ∧ Summable α ∧ + f = fun z => (a 0 : ℂ) * Complex.exp (γ * z) * + ∏' i, (1 + (α i : ℂ) * z) := by let b : ℕ → ℝ := fun n => (a 0)⁻¹ * a n let g : ℂ → ℂ := fun z => (a 0 : ℂ)⁻¹ * f z have hb : IsPolyaFreqSeq b := ha.const_mul_sequence _ (inv_nonneg.mpr ha0.le) @@ -114,8 +118,18 @@ theorem IsPolyaFreqSeq.isLaguerrePolyaTypeI_of_hasSum have h := congrFun heq z have h0 : (a 0 : ℂ) ≠ 0 := by exact_mod_cast ha0.ne' simpa [g, h0, mul_assoc] using congrArg (fun w : ℂ => (a 0 : ℂ) * w) h - rw [heqf] - exact isLaguerrePolyaTypeI_product ha0.le 0 hγ hα sα + exact ⟨γ, α, hγ, hα, sα, by simpa only [pow_zero, mul_one] using heqf⟩ + +/-- An entire function with a real PF generating-series germ and positive constant +coefficient is Type-I Laguerre--Pólya. -/ +theorem IsPolyaFreqSeq.isLaguerrePolyaTypeI_of_hasSum + {a : ℕ → ℝ} {f : ℂ → ℂ} (ha : IsPolyaFreqSeq a) (ha0 : 0 < a 0) + (hf : Differentiable ℂ f) + (hs : ∀ᶠ z in 𝓝 (0 : ℂ), HasSum (fun n => (a n : ℂ) * z ^ n) (f z)) : + IsLaguerrePolyaTypeI f := by + obtain ⟨γ, α, hγ, hα, sα, heq⟩ := ha.exists_eq_const_mul_exp_mul_prod ha0 hf hs + rw [heq] + simpa only [pow_zero, mul_one] using isLaguerrePolyaTypeI_product ha0.le 0 hγ hα sα /-- For an entire function with real Taylor data and positive constant coefficient, Type-I Laguerre--Pólya membership is equivalent to total positivity of the ordinary diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIFactorization.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIFactorization.lean new file mode 100644 index 000000000..fa4530861 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeIFactorization.lean @@ -0,0 +1,54 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import Mathlib.Analysis.Complex.Exponential +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivityConverse +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TotalPositivity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import Mathlib.Analysis.Complex.TaylorSeries + +/-! +# Product representation of nonvanishing-at-zero Type-I functions + +The Edrei representation of the ordinary Taylor coefficients has no denominator +factors for an entire function. This recovers the classical Type-I product with +nonnegative exponential parameter and summable nonnegative linear slopes. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- A Type-I function nonzero at zero is its initial value times a nonnegative +real exponential and a convergent product of nonnegative linear factors. -/ +theorem IsLaguerrePolyaTypeI.exists_eq_exp_mul_prod {f : ℂ → ℂ} + (hf : IsLaguerrePolyaTypeI f) (h0 : f 0 ≠ 0) : + ∃ (γ : ℝ) (α : ℕ → ℝ), 0 ≤ γ ∧ (∀ i, 0 ≤ α i) ∧ Summable α ∧ + f = fun z => f 0 * Complex.exp (γ * z) * ∏' i, (1 + (α i : ℂ) * z) := by + have hreal (k : ℕ) : ((iteratedDeriv k f 0).re : ℂ) = iteratedDeriv k f 0 := + ofReal_re_iteratedDeriv_zero hf.toLaguerrePolya.conj k + have hreal0 : ((f 0).re : ℂ) = f 0 := by simpa using hreal 0 + have h0re : (f 0).re ≠ 0 := by + intro hz + have h := hreal 0 + simp only [iteratedDeriv_zero, hz, ofReal_zero] at h + exact h0 h.symm + have hpos : 0 < (f 0).re := lt_of_le_of_ne + (by simpa using hf.isPolyaFreqSeq.nonneg 0) (Ne.symm h0re) + have hsum : ∀ᶠ z in 𝓝 (0 : ℂ), HasSum + (fun k => (((iteratedDeriv k f 0).re / k.factorial : ℝ) : ℂ) * z ^ k) (f z) := by + apply Eventually.of_forall + intro z + convert hasSum_taylorSeries_of_entire hf.toLaguerrePolya.differentiable 0 z using 1 + funext k + rw [ofReal_div, ofReal_natCast, hreal] + simp [smul_eq_mul, div_eq_mul_inv, mul_comm, mul_left_comm] + obtain ⟨γ, α, hγ, hα, hs, heq⟩ := hf.isPolyaFreqSeq.exists_eq_const_mul_exp_mul_prod + (by simpa using hpos) hf.toLaguerrePolya.differentiable hsum + refine ⟨γ, α, hγ, hα, hs, ?_⟩ + simpa only [iteratedDeriv_zero, Nat.factorial_zero, Nat.cast_one, div_one, hreal0] using heq + +end RealRooted diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index 9beeee846..a3d10d600 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2454,6 +2454,34 @@ public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Strictness public import RealRooted.RiemannHypothesis.IntegerSamples public import RealRooted.RiemannHypothesis.Moments +public import RealRooted.Hermite.ExponentialJensenFactor +public import RealRooted.Hermite.ExponentialJensenMultiplicity +public import RealRooted.Hermite.PoulainExponential +public import RealRooted.LaguerreInequalities.Strict +public import RealRooted.Mathlib.Analysis.Analytic.TaylorSeries +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Polynomial +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialAlgebra +public import RealRooted.Mathlib.Analysis.Complex.CanonicalProduct.GenusOne +public import RealRooted.Mathlib.Analysis.Complex.ForwardDifference +public import RealRooted.Mathlib.Topology.Algebra.IsUniformGroup.FiniteSum +public import RealRooted.MultiplierSequence.JensenPositiveInterlacing +public import RealRooted.MultiplierSequence.JensenSeparation +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DerivativeMultiplicity +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DifferentialApply +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DifferentialMultiplicity +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.ForwardDifference +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GenusOne +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GenusOneProduct +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.JensenSignBoundary +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogDerivativeMoments +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeIFactorization +public import RealRooted.RiemannHypothesis.ForwardDifference +public import RealRooted.RiemannHypothesis.JensenInterlacing + +public import RealRooted.MultiplierSequence.JensenLimit +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.CoefficientLimit +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FormalJensen + /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/Moments.lean b/RealRooted/RiemannHypothesis/Moments.lean index 366b2ccd8..e21590955 100644 --- a/RealRooted/RiemannHypothesis/Moments.lean +++ b/RealRooted/RiemannHypothesis/Moments.lean @@ -4,6 +4,8 @@ public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients public import RealRooted.BasisTransform.LimitingAppellMoments import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity import RealRooted.RiemannHypothesis.TotalPositivity +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogDerivativeMoments import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.AppellMoments /-! @@ -56,4 +58,15 @@ theorem posSemidef_riemannXiCoeff_logOf ← Function.iterate_add_apply, Nat.add_comm] using hf.posSemidef_signed_coeff_logOf h0 n r +/-- Under RH every shifted Hankel matrix of the signed Taylor coefficients +of the logarithmic derivative of each xi derivative is positive semidefinite. -/ +theorem posSemidef_logDeriv_iteratedDeriv_riemannXiTheta + (hRH : RiemannHypothesis) (s n r : ℕ) : + Matrix.PosSemidef (fun i j : Fin n => + let k := i.val + j.val + r + (-1 : ℝ) ^ k * + (iteratedDeriv k (logDeriv (iteratedDeriv s riemannXiTheta)) 0).re / k.factorial) := + (isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH s).posSemidef_logDeriv + (iteratedDeriv_riemannXiTheta_zero_ne_zero s) n r + end RealRooted diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index cc59e259a..39bd6541e 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2516 + "max_modules": 2542 }, "RealRooted.Production": { - "max_modules": 2444 + "max_modules": 2470 }, "RealRooted.Tactic.Examples": { "max_modules": 844 diff --git a/scripts/mathlib_shims.json b/scripts/mathlib_shims.json index 1015af174..d479063d2 100644 --- a/scripts/mathlib_shims.json +++ b/scripts/mathlib_shims.json @@ -3899,6 +3899,66 @@ ], "note": "Entire functions with equal logarithmic derivatives on a nonempty open preconnected set differ by their normalization constant. No upstream PR yet.", "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Analytic/TaylorSeries.lean" + ], + "modules": [ + "Mathlib.Analysis.Analytic.TaylorSeries" + ], + "note": "Analytic Taylor series, derivatives and normalized formal logarithms; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/Polynomial.lean" + ], + "modules": [ + "Mathlib.Analysis.Calculus.IteratedDeriv.Polynomial" + ], + "note": "Finite polynomial differential operators and locally uniform convergence; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialAlgebra.lean" + ], + "modules": [ + "Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialAlgebra" + ], + "note": "Composition and derivative commutation for finite polynomial differential operators; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/CanonicalProduct/GenusOne.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.CanonicalProduct.GenusOne" + ], + "note": "Canonical-product genus one star and elementary closure properties; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/ForwardDifference.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.ForwardDifference" + ], + "note": "Taylor derivatives, exponential multiplication and signed forward differences; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Topology/Algebra/IsUniformGroup/FiniteSum.lean" + ], + "modules": [ + "Mathlib.Topology.Algebra.IsUniformGroup.FiniteSum" + ], + "note": "Finite sums of locally uniformly convergent families; no upstream PR yet.", + "speculative": true } ] } From b08825efbfa6778199735bfdc3bb65844e282599 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 16:34:04 +0000 Subject: [PATCH 36/56] feat: prove simple zeros for local Laguerre Polya heat flows --- .../LaguerrePolya/HeatFlowStrict.lean | 111 ++++++++++++++++++ .../LaguerrePolya/IteratedDerivative.lean | 25 ++++ 2 files changed, 136 insertions(+) create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatFlowStrict.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/IteratedDerivative.lean diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatFlowStrict.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatFlowStrict.lean new file mode 100644 index 000000000..1089f36b4 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatFlowStrict.lean @@ -0,0 +1,111 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +public import Mathlib.Analysis.Calculus.Deriv.Basic +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IteratedDerivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros +import RealRooted.LaguerreInequalities.DerivativeFormula +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import Mathlib.Analysis.Calculus.LocalExtr.Basic +import Mathlib.Analysis.Analytic.Order + +/-! +# Simple zeros along Laguerre--Pólya backward heat flows + +A local parameter family of LP functions satisfying the backward heat equation +for all spatial Taylor derivatives has only simple zeros at every nonzero +interior time slice. The proof is the local mechanism in Craven–Csordas (1994), +Theorem 3.10: a double zero makes the first Laguerre form a local minimum, but +its time derivative is the square of the second spatial derivative. Iteration +and analyticity exclude every finite or infinite multiplicity above one. + +The statements assume a flow and its parameter derivatives explicitly. They +do not assert convergence of an infinite heat-operator series on entire inputs. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- At a double zero, a nonnegative Laguerre form along a backward heat jet +forces the second jet to vanish. -/ +private theorem heat_jet_zero_of_local_nonneg {A B C : ℝ → ℝ} {t b c : ℝ} + (hA : HasDerivAt A (-C t) t) (hB : HasDerivAt B b t) (hC : HasDerivAt C c t) + (hn : ∀ᶠ s in 𝓝 t, 0 ≤ B s ^ 2 - A s * C s) (h0 : A t = 0) (h1 : B t = 0) : + C t = 0 := by + have hm : IsLocalMin (fun s => B s ^ 2 - A s * C s) t := by + filter_upwards [hn] with s hs + simpa only [h0, h1, zero_pow (by decide : 2 ≠ 0), zero_mul, sub_zero] using hs + have hd := (hB.pow 2).sub (hA.mul hC) + have heq := hm.hasDerivAt_eq_zero hd + simp only [h0, h1, zero_pow (by decide : 2 - 1 ≠ 0), mul_zero, zero_mul] at heq + nlinarith [sq_nonneg (C t)] + +/-- Every real zero in a nonzero interior slice of a local backward heat flow +of LP functions is simple. The heat equation is assumed for every spatial jet. -/ +theorem deriv_ne_zero_of_laguerrePolya_heat_flow {u : ℝ → ℂ → ℂ} {t x : ℝ} + (hLP : ∀ᶠ s in 𝓝 t, IsLaguerrePolya (u s)) (hne : ∃ z, u t z ≠ 0) + (hheat : ∀ n, HasDerivAt (fun s => (iteratedDeriv n (u s) (x : ℂ)).re) + (-(iteratedDeriv (n + 2) (u t) (x : ℂ)).re) t) + (hz : u t x = 0) : _root_.deriv (u t) x ≠ 0 := by + intro hd + have hf : IsLaguerrePolya (u t) := hLP.self_of_nhds + have hstep (n : ℕ) (h0 : (iteratedDeriv n (u t) (x : ℂ)).re = 0) + (h1 : (iteratedDeriv (n + 1) (u t) (x : ℂ)).re = 0) : + (iteratedDeriv (n + 2) (u t) (x : ℂ)).re = 0 := by + apply heat_jet_zero_of_local_nonneg (hheat n) (hheat (n + 1)) (hheat (n + 2)) _ h0 h1 + filter_upwards [hLP] with s hs + have hds := hs.iteratedDeriv n + have h := hds.laguerreCoefficient_nonneg x 1 + rw [laguerreCoefficient_one hds.differentiable hds.conj] at h + simpa only [show 2 = 1 + 1 from rfl, iteratedDeriv_succ, iteratedDeriv_zero, + Nat.add_assoc] using h + have hall_re : ∀ n, (iteratedDeriv n (u t) (x : ℂ)).re = 0 := by + intro n + induction n using Nat.twoStepInduction with + | zero => simp only [iteratedDeriv_zero, hz, zero_re] + | one => simp only [iteratedDeriv_one, hd, zero_re] + | more n hn hn1 => exact hstep n hn hn1 + have hall : ∀ n, iteratedDeriv n (u t) (x : ℂ) = 0 := by + intro n + have hr : ((iteratedDeriv n (u t) (x : ℂ)).re : ℂ) = + iteratedDeriv n (u t) (x : ℂ) := by + apply conj_eq_iff_re.mp + simpa using (iteratedDeriv_conj hf.conj n (x : ℂ)).symm + rw [← hr, hall_re n, ofReal_zero] + have htop : analyticOrderAt (u t) (x : ℂ) = ⊤ := by + apply ENat.eq_top_iff_forall_ge.mpr + intro n + exact (natCast_le_analyticOrderAt_iff_iteratedDeriv_eq_zero + (hf.differentiable.analyticAt _)).mpr (fun j _ => hall j) + obtain ⟨z, hz⟩ := hne + have hfinite := hf.analyticOnNhd.analyticOrderAt_ne_top_of_isPreconnected + isPreconnected_univ (Set.mem_univ z) (Set.mem_univ (x : ℂ)) + (by simp [analyticOrderAt_eq_zero.mpr (.inr hz)]) + exact hfinite htop + +/-- All complex zeros in a nonzero LP backward heat slice are simple. +Their reality follows from LP membership, so the heat equation is needed +only at real spatial points. -/ +theorem deriv_ne_zero_of_laguerrePolya_heat_flow_complex {u : ℝ → ℂ → ℂ} {t : ℝ} + (hLP : ∀ᶠ s in 𝓝 t, IsLaguerrePolya (u s)) (hne : ∃ z, u t z ≠ 0) + (hheat : ∀ x : ℝ, ∀ n, + HasDerivAt (fun s => (iteratedDeriv n (u s) (x : ℂ)).re) + (-(iteratedDeriv (n + 2) (u t) (x : ℂ)).re) t) + {z : ℂ} (hz : u t z = 0) : _root_.deriv (u t) z ≠ 0 := by + have hf : IsLaguerrePolya (u t) := hLP.self_of_nhds + have hf0 : u t ≠ 0 := by + intro heq + obtain ⟨w, hw⟩ := hne + exact hw (congrFun heq w) + have him := hf.im_eq_zero_of_eq_zero hf0 hz + have heq : (z.re : ℂ) = z := by apply Complex.ext <;> simp [him] + rw [← heq] at hz ⊢ + exact deriv_ne_zero_of_laguerrePolya_heat_flow hLP hne (hheat z.re) hz + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/IteratedDerivative.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/IteratedDerivative.lean new file mode 100644 index 000000000..736098eaf --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/IteratedDerivative.lean @@ -0,0 +1,25 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative + +/-! +# Iterated derivatives of Laguerre--Pólya functions + +Every finite complex derivative of a zero-aware Laguerre--Pólya function +remains in the class. +-/ + +public section + +namespace RealRooted + +/-- The Laguerre--Pólya class is closed under every iterated complex derivative. -/ +theorem IsLaguerrePolya.iteratedDeriv {f : ℂ → ℂ} (hf : IsLaguerrePolya f) (n : ℕ) : + IsLaguerrePolya (iteratedDeriv n f) := by + induction n with + | zero => simpa using hf + | succ n ih => rw [iteratedDeriv_succ]; exact ih.deriv + +end RealRooted From 38d9b804bf0869de42df4fd2841871b5c0e16706 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 16:43:14 +0000 Subject: [PATCH 37/56] feat: establish entire heat series convergence below order two --- .../Complex/GrowthOrder/Subquadratic.lean | 65 ++++++++++ .../Analysis/Complex/HeatOperator/Basic.lean | 91 +++++++++++++ .../Analysis/Complex/HeatOperator/Bounds.lean | 120 ++++++++++++++++++ 3 files changed, 276 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Complex/GrowthOrder/Subquadratic.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/HeatOperator/Basic.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/HeatOperator/Bounds.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/Subquadratic.lean b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/Subquadratic.lean new file mode 100644 index 000000000..1d2cb9d80 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/Subquadratic.lean @@ -0,0 +1,65 @@ +/- +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 TauCeti.Analysis.Complex.GrowthOrder +import Mathlib.Analysis.Normed.Group.Bounded + +/-! +# Arbitrarily small quadratic exponential bounds + +A continuous function of growth order strictly below two admits a global bound +by a constant times `exp (ε ‖z‖²)` for every positive `ε`. This is the quantitative +growth input for entire heat-operator convergence. +-/ + +public section + +open Complex Filter Asymptotics Bornology Metric Topology + +namespace TauCeti + +/-- An eventual Gaussian exponential bound for a continuous function can be +made global by increasing its constant. -/ +private theorem exists_global_quadratic_bound {f : ℂ → ℂ} (hf : Continuous f) + (h : f =O[cobounded ℂ] fun z => Real.exp (‖z‖ ^ 2)) : + ∃ C > 0, ∀ z, ‖f z‖ ≤ C * Real.exp (‖z‖ ^ 2) := by + obtain ⟨C, hC, hbound⟩ := h.exists_pos + obtain ⟨R, -, hR⟩ := Filter.hasBasis_cobounded_norm.eventually_iff.mp hbound.bound + obtain ⟨B, hB⟩ := (isCompact_closedBall (0 : ℂ) R).exists_bound_of_continuousOn hf.continuousOn + refine ⟨max C B, lt_of_lt_of_le hC (le_max_left _ _), fun z => ?_⟩ + by_cases hz : R ≤ ‖z‖ + · have hzbound : ‖f z‖ ≤ C * Real.exp (‖z‖ ^ 2) := by + simpa only [Real.norm_eq_abs, Real.abs_exp] using hR hz + exact hzbound.trans (mul_le_mul_of_nonneg_right (le_max_left _ _) (Real.exp_pos _).le) + · have hsmall : ‖f z‖ ≤ B := hB z (by simpa using (le_of_not_ge hz)) + exact hsmall.trans ((le_max_right C B).trans + (le_mul_of_one_le_right (le_max_left C B |>.trans' hC.le) + (Real.one_le_exp (sq_nonneg _)))) + +/-- Every continuous function of order below two has a global quadratic +exponential bound with arbitrarily small positive quadratic coefficient. -/ +theorem OrderLE.exists_norm_le_mul_exp_sq {f : ℂ → ℂ} {ρ : ℝ} + (h : OrderLE f ρ) (hf : Continuous f) (hρ : ρ < 2) {ε : ℝ} (hε : 0 < ε) : + ∃ C > 0, ∀ z, ‖f z‖ ≤ C * Real.exp (ε * ‖z‖ ^ 2) := by + let a : ℂ := (Real.sqrt ε : ℂ) + have ha : a ≠ 0 := ofReal_ne_zero.mpr (Real.sqrt_pos.mpr hε).ne' + have hg : Continuous (fun z : ℂ => f (a⁻¹ * z)) := hf.comp (by fun_prop) + have ho : OrderLE (fun z : ℂ => f (a⁻¹ * z)) ρ := by + simpa only [add_zero] using h.comp_mul_add a⁻¹ 0 + have hb : (fun z : ℂ => f (a⁻¹ * z)) =O[cobounded ℂ] + fun z => Real.exp (‖z‖ ^ 2) := by + simpa only [Real.rpow_two] using ho.isBigO hρ + obtain ⟨C, hC, hbound⟩ := exists_global_quadratic_bound hg hb + refine ⟨C, hC, fun z => ?_⟩ + have hz := hbound (a * z) + rw [← mul_assoc, inv_mul_cancel₀ ha, one_mul, norm_mul, mul_pow] at hz + have hnorm : ‖a‖ ^ 2 = ε := by + simp only [a, norm_real, Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _)] + exact Real.sq_sqrt hε.le + simpa only [hnorm] using hz + +end TauCeti diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Basic.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Basic.lean new file mode 100644 index 000000000..3fcea75ef --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Basic.lean @@ -0,0 +1,91 @@ +/- +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.Analysis.Complex.HeatOperator.Bounds +import Mathlib.Analysis.Normed.Group.FunctionSeries +import Mathlib.Topology.UniformSpace.UniformApproximation +import Mathlib.Analysis.Normed.Group.Constructions + +/-! +# Entire backward heat series + +For an entire function of growth order strictly below two, the series defining +`exp (-t D²)` converges absolutely for every complex time and spatial point, +and locally uniformly jointly in both variables. +-/ + +@[expose] public section + +open Filter Topology + +namespace Complex + +/-- The backward heat operator defined by its even-derivative series. -/ +noncomputable def heatOperator (t : ℂ) (f : ℂ → ℂ) (z : ℂ) : ℂ := + ∑' n : ℕ, (-t) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f z + +/-- The entire heat series converges absolutely at every complex time and point. -/ +theorem summable_norm_heatOperator {f : ℂ → ℂ} {ρ : ℝ} (hf : Differentiable ℂ f) + (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (t z : ℂ) : + Summable (fun n : ℕ => ‖(-t) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f z‖) := by + obtain ⟨M, _, hM⟩ := exists_heat_term_bound hf horder hρ (norm_nonneg t) (norm_nonneg z) + exact Summable.of_nonneg_of_le (fun _ => norm_nonneg _) + (fun n => hM n (-t) z (by simp) le_rfl) + ((summable_geometric_of_abs_lt_one (by norm_num : |(1 / 2 : ℝ)| < 1)).mul_left M) + +/-- Partial heat sums converge uniformly whenever complex time and space +are each restricted to a bounded disk. -/ +theorem tendstoUniformlyOn_heatOperator {f : ℂ → ℂ} {ρ : ℝ} (hf : Differentiable ℂ f) + (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) {T R : ℝ} (hT : 0 ≤ T) (hR : 0 ≤ R) : + TendstoUniformlyOn + (fun N (tz : ℂ × ℂ) => ∑ n ∈ Finset.range N, + (-tz.1) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f tz.2) + (fun tz => heatOperator tz.1 f tz.2) atTop {tz | ‖tz.1‖ ≤ T ∧ ‖tz.2‖ ≤ R} := by + obtain ⟨M, _, hM⟩ := exists_heat_term_bound hf horder hρ hT hR + exact tendstoUniformlyOn_tsum_nat + ((summable_geometric_of_abs_lt_one (by norm_num : |(1 / 2 : ℝ)| < 1)).mul_left M) + (fun n tz htz => hM n (-tz.1) tz.2 (by simpa using htz.1) htz.2) + +/-- The heat series converges locally uniformly jointly in complex time and space. -/ +theorem tendstoLocallyUniformly_heatOperator {f : ℂ → ℂ} {ρ : ℝ} (hf : Differentiable ℂ f) + (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) : + TendstoLocallyUniformly + (fun N (tz : ℂ × ℂ) => ∑ n ∈ Finset.range N, + (-tz.1) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f tz.2) + (fun tz => heatOperator tz.1 f tz.2) atTop := by + rw [tendstoLocallyUniformly_iff_forall_isCompact] + intro K hK + obtain ⟨B, hB, hbound⟩ := hK.isBounded.exists_pos_norm_le + apply (tendstoUniformlyOn_heatOperator hf horder hρ hB.le hB.le).mono + intro tz htz + exact ⟨(norm_fst_le tz).trans (hbound tz htz), (norm_snd_le tz).trans (hbound tz htz)⟩ + +/-- The heat sum is jointly continuous in complex time and space. -/ +theorem continuous_heatOperator {f : ℂ → ℂ} {ρ : ℝ} (hf : Differentiable ℂ f) + (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) : + Continuous (fun tz : ℂ × ℂ => heatOperator tz.1 f tz.2) := by + apply (tendstoLocallyUniformly_heatOperator hf horder hρ).continuous + apply Filter.Frequently.of_forall + intro N + apply continuous_finsetSum + intro n _ + have hd : Continuous (iteratedDeriv (2 * n) f) := + ((hf.contDiff (n := ⊤)).differentiable_iteratedDeriv _ (WithTop.coe_lt_top _)).continuous + exact ((continuous_fst.neg.pow n).div_const _).mul (hd.comp continuous_snd) + +/-- At time zero, the heat series recovers its input, with no growth assumption. -/ +@[simp] theorem heatOperator_zero (f : ℂ → ℂ) : heatOperator 0 f = f := by + ext z + rw [heatOperator, tsum_eq_single 0 (fun n hn => by simp [zero_pow hn])] + simp + +/-- The zero input has zero heat image at every time. -/ +@[simp] theorem heatOperator_zero_input (t : ℂ) : heatOperator t (0 : ℂ → ℂ) = 0 := by + ext z + simp [heatOperator] + +end Complex diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Bounds.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Bounds.lean new file mode 100644 index 000000000..e8a898f4c --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Bounds.lean @@ -0,0 +1,120 @@ +/- +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.Analysis.Complex.GrowthOrder.Subquadratic +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import Mathlib.Analysis.Complex.Liouville +import Mathlib.Data.Nat.Factorial.Basic + +/-! +# Bounds for entire heat-operator coefficients + +Cauchy's estimate on a circle of radius `sqrt ((n+1)/ε)` turns a small quadratic +exponential bound into a geometric bound for the even derivative divided by +`n!`. The constants are uniform on spatial disks. +-/ + +public section + +open Complex Metric + +namespace Complex + +/-- Even derivatives of an entire function with quadratic exponential growth +have a factorial-geometric bound suitable for the heat series. -/ +theorem norm_iteratedDeriv_even_le_of_exp_sq {f : ℂ → ℂ} (hf : Differentiable ℂ f) + {C ε : ℝ} (hC : 0 ≤ C) (hε : 0 < ε) + (hbound : ∀ z, ‖f z‖ ≤ C * Real.exp (ε * ‖z‖ ^ 2)) (n : ℕ) (z : ℂ) : + ‖iteratedDeriv (2 * n) f z‖ ≤ + n.factorial * (C * Real.exp (2 * ε * ‖z‖ ^ 2 + 2)) * (2 * ε * Real.exp 2) ^ n := by + let r := Real.sqrt (((n : ℝ) + 1) / ε) + have hr : 0 < r := Real.sqrt_pos.mpr (by positivity) + have hr2 : r ^ 2 = ((n : ℝ) + 1) / ε := Real.sq_sqrt (by positivity) + have hcircle : ∀ w ∈ sphere z r, + ‖f w‖ ≤ C * Real.exp (2 * ε * ‖z‖ ^ 2 + 2 * ((n : ℝ) + 1)) := by + intro w hw + have hwz : ‖w - z‖ = r := mem_sphere_iff_norm.mp hw + have htri := norm_add_le (w - z) z + rw [sub_add_cancel, hwz] at htri + have hsq : ‖w‖ ^ 2 ≤ 2 * ‖z‖ ^ 2 + 2 * r ^ 2 := by + nlinarith [sq_nonneg (r - ‖z‖), norm_nonneg w, norm_nonneg z, hr.le] + apply (hbound w).trans + apply mul_le_mul_of_nonneg_left _ hC + apply Real.exp_le_exp.mpr + have heq : ε * r ^ 2 = (n : ℝ) + 1 := by rw [hr2]; field_simp + nlinarith + have hcauchy := norm_iteratedDeriv_le_of_forall_mem_sphere_norm_le + (2 * n) hr hf.diffContOnCl hcircle + have hfac : ((2 * n).factorial : ℝ) ≤ n.factorial * (2 * ((n : ℝ) + 1)) ^ n := by + have hn := Nat.factorial_mul_descFactorial (n := 2 * n) (k := n) (by lia) + have hdesc := (Nat.descFactorial_le_pow (2 * n) n).trans + (Nat.pow_le_pow_left (by lia : 2 * n ≤ 2 * (n + 1)) n) + have hnat : (2 * n).factorial ≤ n.factorial * (2 * (n + 1)) ^ n := by + rw [← hn, show 2 * n - n = n by lia] + exact Nat.mul_le_mul_left n.factorial hdesc + exact_mod_cast hnat + have hrpow : r ^ (2 * n) = (((n : ℝ) + 1) / ε) ^ n := by rw [pow_mul, hr2] + have hratio : ((2 * n).factorial : ℝ) / r ^ (2 * n) ≤ n.factorial * (2 * ε) ^ n := by + calc + _ ≤ (n.factorial * (2 * ((n : ℝ) + 1)) ^ n) / r ^ (2 * n) := + div_le_div_of_nonneg_right hfac (by positivity) + _ = n.factorial * (2 * ε) ^ n := by + rw [hrpow, mul_div_assoc, ← div_pow] + congr 2 + field_simp + calc + _ ≤ ((2 * n).factorial : ℝ) / r ^ (2 * n) * + (C * Real.exp (2 * ε * ‖z‖ ^ 2 + 2 * ((n : ℝ) + 1))) := by + convert hcauchy using 1 + ring + _ ≤ (n.factorial * (2 * ε) ^ n) * + (C * Real.exp (2 * ε * ‖z‖ ^ 2 + 2 * ((n : ℝ) + 1))) := + mul_le_mul_of_nonneg_right hratio (mul_nonneg hC (Real.exp_pos _).le) + _ = _ := by + rw [show 2 * ε * ‖z‖ ^ 2 + 2 * ((n : ℝ) + 1) = + (2 * ε * ‖z‖ ^ 2 + 2) + (n : ℝ) * 2 by ring, + Real.exp_add, Real.exp_nat_mul, mul_pow] + ring + +/-- On every bounded set of complex time and space, the even derivative heat +series of an entire function of order below two has a common geometric majorant. -/ +theorem exists_heat_term_bound {f : ℂ → ℂ} {ρ : ℝ} (hf : Differentiable ℂ f) + (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) {T R : ℝ} (hT : 0 ≤ T) (hR : 0 ≤ R) : + ∃ M > 0, ∀ n : ℕ, ∀ t z : ℂ, ‖t‖ ≤ T → ‖z‖ ≤ R → + ‖t ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f z‖ ≤ M * (1 / 2 : ℝ) ^ n := by + let ε := 1 / (4 * Real.exp 2 * (T + 1)) + have hε : 0 < ε := by dsimp [ε]; positivity + obtain ⟨C, hC, hbound⟩ := horder.exists_norm_le_mul_exp_sq hf.continuous hρ hε + let M := C * Real.exp (2 * ε * R ^ 2 + 2) + have hM : 0 < M := mul_pos hC (Real.exp_pos _) + refine ⟨M, hM, fun n t z ht hz => ?_⟩ + have hspatial : C * Real.exp (2 * ε * ‖z‖ ^ 2 + 2) ≤ M := by + dsimp [M] + apply mul_le_mul_of_nonneg_left _ hC.le + apply Real.exp_le_exp.mpr + have hsq : ‖z‖ ^ 2 ≤ R ^ 2 := by nlinarith [norm_nonneg z] + nlinarith + have hd := norm_iteratedDeriv_even_le_of_exp_sq hf hC.le hε hbound n z + have hdb : ‖iteratedDeriv (2 * n) f z‖ ≤ n.factorial * M * (2 * ε * Real.exp 2) ^ n := + hd.trans (mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_left hspatial (by positivity)) (by positivity)) + have hratio : ‖t‖ * (2 * ε * Real.exp 2) ≤ 1 / 2 := by + calc + _ ≤ T * (2 * ε * Real.exp 2) := mul_le_mul_of_nonneg_right ht (by positivity) + _ = T / (2 * (T + 1)) := by dsimp [ε]; field_simp; ring + _ ≤ 1 / 2 := (div_le_iff₀ (by positivity)).mpr (by linarith) + have hn : (n.factorial : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr n.factorial_ne_zero + simp only [norm_mul, norm_div, norm_pow, norm_natCast] + calc + _ ≤ ‖t‖ ^ n / n.factorial * + (n.factorial * M * (2 * ε * Real.exp 2) ^ n) := + mul_le_mul_of_nonneg_left hdb (by positivity) + _ = M * (‖t‖ * (2 * ε * Real.exp 2)) ^ n := by rw [mul_pow]; field_simp; ring + _ ≤ M * (1 / 2 : ℝ) ^ n := + mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (by positivity) hratio n) hM.le + +end Complex From 073a55ed1e3e7b3e9e63e240487388c0690a4946 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 16:42:39 +0000 Subject: [PATCH 38/56] feat: prove the coefficientwise infinite differential operator theorem --- .../IteratedDeriv/PolynomialRange.lean | 32 +++++ .../SpecificLimits/DescFactorialWeights.lean | 58 +++++++++ .../Analysis/SpecificLimits/WeightedSum.lean | 118 ++++++++++++++++++ .../JensenDifferential.lean | 63 ++++++++++ .../InfiniteDifferentialCoefficients.lean | 72 +++++++++++ 5 files changed, 343 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialRange.lean create mode 100644 RealRooted/Mathlib/Analysis/SpecificLimits/DescFactorialWeights.lean create mode 100644 RealRooted/Mathlib/Analysis/SpecificLimits/WeightedSum.lean create mode 100644 RealRooted/MultiplierSequence/JensenDifferential.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialCoefficients.lean diff --git a/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialRange.lean b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialRange.lean new file mode 100644 index 000000000..608f0b4d2 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialRange.lean @@ -0,0 +1,32 @@ +/- +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.Analysis.Calculus.IteratedDeriv.Polynomial +import Mathlib.Algebra.Polynomial.Degree.Operations + +/-! +# Padding finite differential operators to a larger degree +-/ + +public section + +namespace Polynomial + +/-- A polynomial differential operator may be summed up to any degree bound +for its symbol. No differentiability hypothesis on the input is needed. -/ +theorem differentialApply_eq_sum_range {𝕜 E : Type*} [NontriviallyNormedField 𝕜] + [NormedAddCommGroup E] [NormedSpace 𝕜 E] (p : 𝕜[X]) (f : 𝕜 → E) {N : ℕ} + (hN : p.natDegree ≤ N) (z : 𝕜) : + p.differentialApply f z = + ∑ k ∈ Finset.range (N + 1), p.coeff k • iteratedDeriv k f z := by + unfold differentialApply + apply Finset.sum_subset (Finset.range_mono (Nat.add_le_add_right hN 1)) + intro k _ hk + rw [Finset.mem_range, not_lt] at hk + rw [coeff_eq_zero_of_natDegree_lt (by lia), zero_smul] + +end Polynomial diff --git a/RealRooted/Mathlib/Analysis/SpecificLimits/DescFactorialWeights.lean b/RealRooted/Mathlib/Analysis/SpecificLimits/DescFactorialWeights.lean new file mode 100644 index 000000000..08e0460e1 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/SpecificLimits/DescFactorialWeights.lean @@ -0,0 +1,58 @@ +/- +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.Normed.Module.Basic +import RealRooted.Mathlib.Analysis.SpecificLimits.WeightedSum +import RealRooted.Mathlib.Analysis.SpecialFunctions.Choose + +/-! +# Regularity of falling-factorial weights + +The finite Jensen weights `(n)_k / n^k` decrease with `k`, vanish past `n`, +and tend to one for each fixed `k`. They therefore preserve ordinary +conditionally convergent series. +-/ + +public section + +open Finset Filter Topology + +namespace Nat + +/-- The normalized falling factorial is decreasing in its lower index. The +convention at `n = 0` uses the usual zero inverse. -/ +theorem antitone_descFactorial_div_pow (n : ℕ) : + Antitone (fun k => (n.descFactorial k : ℝ) / (n : ℝ) ^ k) := by + apply antitone_nat_of_succ_le + intro k + by_cases hn : n = 0 + · subst n + cases k <;> simp + have hnpos : 0 < (n : ℝ) := by exact_mod_cast Nat.pos_of_ne_zero hn + rw [descFactorial_succ, Nat.cast_mul, pow_succ] + calc + ((n - k : ℕ) : ℝ) * n.descFactorial k / ((n : ℝ) ^ k * n) = + (((n - k : ℕ) : ℝ) / n) * ((n.descFactorial k : ℝ) / (n : ℝ) ^ k) := by ring + _ ≤ 1 * ((n.descFactorial k : ℝ) / (n : ℝ) ^ k) := by + apply mul_le_mul_of_nonneg_right _ (by positivity) + exact (div_le_one hnpos).mpr (by exact_mod_cast Nat.sub_le n k) + _ = _ := one_mul _ + +/-- Falling-factorial finite means preserve the sum of a conditionally +convergent ordinary series in a real normed vector space. -/ +theorem tendsto_sum_descFactorial_smul {E : Type*} [NormedAddCommGroup E] + [NormedSpace ℝ E] {u : ℕ → E} {a : E} + (hu : Tendsto (fun n => ∑ k ∈ range n, u k) atTop (𝓝 a)) : + Tendsto (fun n => ∑ k ∈ range (n + 1), + ((n.descFactorial k : ℝ) / (n : ℝ) ^ k) • u k) atTop (𝓝 a) := by + apply tendsto_weighted_series_of_antitone antitone_descFactorial_div_pow + (fun n => by simp) _ tendsto_descFactorial_div_pow_atTop hu + intro n + rw [descFactorial_eq_zero_iff_lt.mpr (Nat.lt_succ_self n)] + simp + +end Nat diff --git a/RealRooted/Mathlib/Analysis/SpecificLimits/WeightedSum.lean b/RealRooted/Mathlib/Analysis/SpecificLimits/WeightedSum.lean new file mode 100644 index 000000000..6bc390ce7 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/SpecificLimits/WeightedSum.lean @@ -0,0 +1,118 @@ +/- +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.Normed.Module.Basic +import Mathlib.Algebra.BigOperators.Module +import Mathlib.Algebra.Module.BigOperators + +/-! +# Regular finite weighted means + +Nonnegative finite weighted means preserve sequence limits when each fixed +weight tends to zero and the total mass tends to one. Summation by parts gives +a regularity theorem for decreasing weights on a convergent series. The +series hypothesis is convergence of ordinary partial sums, so conditional +convergence is allowed. +-/ + +public section + +open Finset Filter Topology + +private theorem tendsto_weighted_mean_zero {E : Type*} [NormedAddCommGroup E] + [NormedSpace ℝ E] {w : ℕ → ℕ → ℝ} {s : ℕ → E} {r : ℕ → ℕ} + (hr : Tendsto r atTop atTop) + (hw : ∀ n k, 0 ≤ w n k) (hb : ∀ n, ∑ k ∈ range (r n), w n k ≤ 1) + (hc : ∀ k, Tendsto (fun n => w n k) atTop (𝓝 0)) + (hs : Tendsto s atTop (𝓝 0)) : + Tendsto (fun n => ∑ k ∈ range (r n), w n k • s k) atTop (𝓝 0) := by + rw [Metric.tendsto_atTop] at hs ⊢ + intro ε hε + obtain ⟨N, hN⟩ := hs (ε / 2) (by positivity) + have hfinite : Tendsto (fun n => ∑ k ∈ range N, w n k * ‖s k‖) atTop (𝓝 0) := by + simpa using tendsto_finsetSum (range N) fun k _ => (hc k).mul_const ‖s k‖ + obtain ⟨M, hM⟩ := Metric.tendsto_atTop.mp hfinite (ε / 2) (by positivity) + obtain ⟨K, hK⟩ := eventually_atTop.mp (hr.eventually (eventually_ge_atTop N)) + refine ⟨max K M, fun n hn => ?_⟩ + have hNn : N ≤ r n := hK n ((le_max_left K M).trans hn) + have hMn : M ≤ n := (le_max_right K M).trans hn + have hprefix : ∑ k ∈ range N, w n k * ‖s k‖ < ε / 2 := by + exact lt_of_le_of_lt (le_abs_self _) (by simpa [Real.dist_eq] using hM n hMn) + have htail : ∑ k ∈ Ico N (r n), w n k * ‖s k‖ ≤ ε / 2 := by + calc + _ ≤ ∑ k ∈ Ico N (r n), w n k * (ε / 2) := by + apply sum_le_sum + intro k hk + apply mul_le_mul_of_nonneg_left _ (hw n k) + have hkbound : ‖s k‖ < ε / 2 := by + simpa only [dist_zero_right] using hN k (mem_Ico.mp hk).1 + exact hkbound.le + _ = (∑ k ∈ Ico N (r n), w n k) * (ε / 2) := (sum_mul _ _ _).symm + _ ≤ 1 * (ε / 2) := by + apply mul_le_mul_of_nonneg_right _ (by positivity) + refine le_trans (sum_le_sum_of_subset_of_nonneg ?_ ?_) (hb n) + · exact fun k hk => mem_range.mpr (mem_Ico.mp hk).2 + · exact fun k _ _ => hw n k + _ = ε / 2 := one_mul _ + rw [dist_zero_right] + calc + _ ≤ ∑ k ∈ range (r n), ‖w n k • s k‖ := norm_sum_le _ _ + _ = ∑ k ∈ range (r n), w n k * ‖s k‖ := by + apply sum_congr rfl + intro k _ + rw [norm_smul, Real.norm_of_nonneg (hw n k)] + _ = (∑ k ∈ range N, w n k * ‖s k‖) + + ∑ k ∈ Ico N (r n), w n k * ‖s k‖ := (sum_range_add_sum_Ico _ hNn).symm + _ < ε := by linarith + +/-- Finite nonnegative weighted means preserve limits when the rows have mass +at most one, their masses tend to one, and each fixed weight tends to zero. -/ +theorem tendsto_weighted_mean_of_tendsto {E : Type*} [NormedAddCommGroup E] + [NormedSpace ℝ E] {w : ℕ → ℕ → ℝ} {s : ℕ → E} {r : ℕ → ℕ} {a : E} + (hr : Tendsto r atTop atTop) + (hw : ∀ n k, 0 ≤ w n k) (hb : ∀ n, ∑ k ∈ range (r n), w n k ≤ 1) + (hc : ∀ k, Tendsto (fun n => w n k) atTop (𝓝 0)) + (hm : Tendsto (fun n => ∑ k ∈ range (r n), w n k) atTop (𝓝 1)) + (hs : Tendsto s atTop (𝓝 a)) : + Tendsto (fun n => ∑ k ∈ range (r n), w n k • s k) atTop (𝓝 a) := by + have hz := tendsto_weighted_mean_zero hr hw hb hc + (show Tendsto (fun n => s n - a) atTop (𝓝 0) by simpa using hs.sub_const a) + have ht := hz.add (hm.smul_const a) + simpa only [smul_sub, sum_sub_distrib, ← sum_smul, sub_add_cancel, one_smul, + zero_add] using ht + +/-- Finite decreasing weights tending pointwise to one preserve the sum of an +ordinary convergent series. The convergence may be conditional. -/ +theorem tendsto_weighted_series_of_antitone {E : Type*} [NormedAddCommGroup E] + [NormedSpace ℝ E] {κ : ℕ → ℕ → ℝ} {u : ℕ → E} {a : E} + (hκ : ∀ n, Antitone (κ n)) (hb : ∀ n, κ n 0 ≤ 1) + (hz : ∀ n, κ n (n + 1) = 0) + (hc : ∀ k, Tendsto (fun n => κ n k) atTop (𝓝 1)) + (hu : Tendsto (fun n => ∑ k ∈ range n, u k) atTop (𝓝 a)) : + Tendsto (fun n => ∑ k ∈ range (n + 1), κ n k • u k) atTop (𝓝 a) := by + let w : ℕ → ℕ → ℝ := fun n k => κ n k - κ n (k + 1) + have hm (n : ℕ) : ∑ k ∈ range (n + 1), w n k = κ n 0 := by + dsimp [w] + rw [sum_range_sub'] + simp [hz] + have ht := tendsto_weighted_mean_of_tendsto (r := fun n => n + 1) + (w := w) (s := fun k => ∑ i ∈ range (k + 1), u i) + (tendsto_add_atTop_nat 1) + (fun n k => sub_nonneg.mpr (hκ n (Nat.le_succ k))) + (fun n => by rw [hm]; exact hb n) + (fun k => by simpa [w] using (hc k).sub (hc (k + 1))) + (by simpa only [hm] using hc 0) + (hu.comp (tendsto_add_atTop_nat 1)) + convert ht using 1 + ext n + have hp := sum_range_by_parts (κ n) u (n + 2) + rw [show n + 2 - 1 = n + 1 by lia, sum_range_succ] at hp + simp only [hz n, zero_smul, add_zero, zero_sub] at hp + rw [hp, ← sum_neg_distrib] + apply sum_congr rfl + intro k _ + rw [← neg_smul, neg_sub] diff --git a/RealRooted/MultiplierSequence/JensenDifferential.lean b/RealRooted/MultiplierSequence/JensenDifferential.lean new file mode 100644 index 000000000..c44778a1d --- /dev/null +++ b/RealRooted/MultiplierSequence/JensenDifferential.lean @@ -0,0 +1,63 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.Analytic +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Polynomial +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialRange +import RealRooted.Mathlib.Analysis.SpecificLimits.DescFactorialWeights + +/-! +# Jensen approximations to infinite differential symbols + +Finite rescaled Jensen symbols give regular finite sums of the differential +series. Pointwise convergence of the ordinary series, including conditional +convergence, therefore identifies the pointwise limit of these finite operators. +-/ + +public section + +open Polynomial Complex Filter Topology + +namespace RealRooted + +/-- Rescaling does not increase the prescribed degree of a Jensen polynomial. -/ +theorem natDegree_rescaledJensenPolynomial_le (n : ℕ) (a : ℕ → ℝ) : + (rescaledJensenPolynomial n a).natDegree ≤ n := by + unfold rescaledJensenPolynomial + apply natDegree_sum_le_of_forall_le + intro k hk + exact (natDegree_monomial_le _).trans (Nat.le_of_lt_succ (Finset.mem_range.mp hk)) + +/-- A finite Jensen differential symbol is the falling-factorial weighted sum +of the corresponding formal infinite differential series. -/ +theorem differentialApply_rescaledJensenPolynomial (a : ℕ → ℝ) (f : ℂ → ℂ) + (n : ℕ) (z : ℂ) : + ((rescaledJensenPolynomial n a).map ofRealHom).differentialApply f z = + ∑ j ∈ Finset.range (n + 1), + ((n.descFactorial j : ℝ) / (n : ℝ) ^ j) • + ((a j : ℂ) * iteratedDeriv j f z / j.factorial) := by + rw [Polynomial.differentialApply_eq_sum_range _ _ + ((natDegree_map_le).trans (natDegree_rescaledJensenPolynomial_le n a))] + apply Finset.sum_congr rfl + intro j hj + have hjn : j ≤ n := Nat.le_of_lt_succ (Finset.mem_range.mp hj) + simp only [coeff_map, coeff_rescaledJensenPolynomial, ite_eq_left hjn, + ofRealHom_eq_coe, smul_eq_mul, Complex.real_smul, ofReal_mul, ofReal_pow, + ofReal_inv, ofReal_div, ofReal_natCast] + rw [Nat.descFactorial_eq_factorial_mul_choose, Nat.cast_mul] + have hfac : (j.factorial : ℂ) ≠ 0 := by exact_mod_cast Nat.factorial_ne_zero j + field_simp [hfac] + ring + +/-- Convergence of the ordinary differential series at a point implies +convergence of its finite Jensen-symbol approximations to the same value. -/ +theorem tendsto_differentialApply_rescaledJensenPolynomial (a : ℕ → ℝ) (f : ℂ → ℂ) + (z w : ℂ) + (h : Tendsto (fun n => ∑ j ∈ Finset.range n, + (a j : ℂ) * iteratedDeriv j f z / j.factorial) atTop (𝓝 w)) : + Tendsto (fun n => + ((rescaledJensenPolynomial n a).map ofRealHom).differentialApply f z) + atTop (𝓝 w) := by + simpa only [differentialApply_rescaledJensenPolynomial] using + Nat.tendsto_sum_descFactorial_smul h + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialCoefficients.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialCoefficients.lean new file mode 100644 index 000000000..acbcd6ce4 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialCoefficients.lean @@ -0,0 +1,72 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FormalJensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DifferentialApply +import RealRooted.MultiplierSequence.JensenLimit +import RealRooted.MultiplierSequence.JensenDifferential +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialAlgebra +import RealRooted.Mathlib.Analysis.SpecificLimits.DescFactorialWeights + +/-! +# Infinite differential operators with convergent coefficient series + +Pólya's 1915 Zusatz III states that applying a Laguerre--Pólya differential +symbol to a Laguerre--Pólya target defines an entire function in the same class +whenever each resulting Taylor coefficient series converges. The convergence +here is that of ordinary partial sums and may be conditional. This does not +replace the separate local-disk convergence hypothesis in Zusatz II. +-/ + +public section + +open Polynomial Complex Filter Topology + +namespace RealRooted + +private theorem iteratedDeriv_rescaledJensen_differential (a : ℕ → ℝ) {f : ℂ → ℂ} + (hf : Differentiable ℂ f) (n k : ℕ) : + (iteratedDeriv k ((rescaledJensenPolynomial n a).map ofRealHom |>.differentialApply f) 0).re = + ∑ j ∈ Finset.range (n + 1), + ((n.descFactorial j : ℝ) / (n : ℝ) ^ j) * + (a j * (iteratedDeriv (k + j) f 0).re / j.factorial) := by + rw [Polynomial.iteratedDeriv_differentialApply _ hf k, + differentialApply_rescaledJensenPolynomial, Complex.re_sum] + apply Finset.sum_congr rfl + intro j _ + simp only [Complex.real_smul, mul_re, ofReal_re, ofReal_im, zero_mul, sub_zero, + div_natCast_re, iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, + Nat.add_comm j k] + +/-- Pólya's coefficientwise infinite differential-operator theorem +(1915, Zusatz III, p. 243). Ordinary convergence of every resulting Taylor +coefficient series suffices, including a zero result or an initial zero prefix. -/ +theorem IsLaguerrePolya.infinite_differential_coefficients {φ ψ : ℂ → ℂ} + (hφ : IsLaguerrePolya φ) (hψ : IsLaguerrePolya ψ) {c : ℕ → ℝ} + (hc : ∀ k, Tendsto + (fun n => ∑ j ∈ Finset.range n, + (iteratedDeriv j φ 0).re * (iteratedDeriv (k + j) ψ 0).re / j.factorial) + atTop (𝓝 (c k))) : + IsLaguerrePolya (complexExpGeneratingFunction c) := by + let a : ℕ → ℝ := fun j => (iteratedDeriv j φ 0).re + let F : ℕ → ℂ → ℂ := fun n => + (rescaledJensenPolynomial n a).map ofRealHom |>.differentialApply ψ + have hF (n : ℕ) : IsLaguerrePolya (F n) := by + apply hψ.differentialApply + rw [rescaledJensenPolynomial_eq_jensenPolynomial_comp] + exact (hφ.jensenPolynomial_splits n).comp_of_natDegree_le_one + ((natDegree_C_mul_le _ _).trans (by simp)) + have hcoeff (k : ℕ) : + Tendsto (fun n => (iteratedDeriv k (F n) 0).re) atTop (𝓝 (c k)) := by + have ht := Nat.tendsto_sum_descFactorial_smul (hc k) + simpa only [F, iteratedDeriv_rescaledJensen_differential a hψ.differentiable, + smul_eq_mul, a] using ht + apply isLaguerrePolya_of_jensenPolynomial_splits + intro d + exact jensenPolynomial_splits_of_tendsto d + (fun n => (hF n).jensenPolynomial_splits d) hcoeff + +end RealRooted From 11470ec2c9478e10f7f0d6e499e3cb7edb23dee2 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 16:48:46 +0000 Subject: [PATCH 39/56] feat: bound positive root loss under Euler products --- RealRooted/EulerOperator/RootCounting.lean | 165 ++++++++++++++++++ .../Polynomial/Expand/PositiveRoots.lean | 93 ++++++++++ .../Calculus/LocalExtr/PolynomialEuler.lean | 131 ++++++++++++++ 3 files changed, 389 insertions(+) create mode 100644 RealRooted/EulerOperator/RootCounting.lean create mode 100644 RealRooted/Mathlib/Algebra/Polynomial/Expand/PositiveRoots.lean create mode 100644 RealRooted/Mathlib/Analysis/Calculus/LocalExtr/PolynomialEuler.lean diff --git a/RealRooted/EulerOperator/RootCounting.lean b/RealRooted/EulerOperator/RootCounting.lean new file mode 100644 index 000000000..649b8cb77 --- /dev/null +++ b/RealRooted/EulerOperator/RootCounting.lean @@ -0,0 +1,165 @@ +module + +public import RealRooted.EulerOperator +public import RealRooted.MultiplierSequence +import RealRooted.EulerOperator.Polar.RealParameter +import RealRooted.Mathlib.Analysis.Calculus.LocalExtr.PolynomialEuler +import RealRooted.Mathlib.Algebra.Polynomial.Degree.Lemmas + +/-! +# Products of polar Euler operators + +A finite product of the operators `a - X D` can lose at most one positive +root for each factor. On a reflected PF polynomial, factors whose parameter +exceeds the original degree lose no positive roots. This is the root-count +step in Pólya's arithmetic-section argument. +-/ + +@[expose] public section + +open Polynomial + +namespace RealRooted + +/-- The commuting product of the polar Euler operators with natural parameters +listed in a multiset. Repeated parameters are retained. -/ +noncomputable def polarThetaProduct (s : Multiset ℕ) (p : ℝ[X]) : ℝ[X] := + diagonalOperator (fun k => (s.map fun a : ℕ => (a : ℝ) - k).prod) p + +@[simp] theorem coeff_polarThetaProduct (s : Multiset ℕ) (p : ℝ[X]) (k : ℕ) : + (polarThetaProduct s p).coeff k = (s.map fun a : ℕ => (a : ℝ) - k).prod * p.coeff k := + coeff_diagonalOperator _ _ _ + +@[simp] theorem polarThetaProduct_zero (p : ℝ[X]) : polarThetaProduct 0 p = p := by + ext k + simp + +@[simp] theorem polarThetaProduct_cons (a : ℕ) (s : Multiset ℕ) (p : ℝ[X]) : + polarThetaProduct (a ::ₘ s) p = polarTheta a (polarThetaProduct s p) := by + ext k + simp [polarTheta, sub_mul, mul_assoc] + +theorem polarThetaProduct_add (s t : Multiset ℕ) (p : ℝ[X]) : + polarThetaProduct (s + t) p = polarThetaProduct s (polarThetaProduct t p) := by + ext k + simp [mul_assoc] + +theorem natDegree_polarThetaProduct_le (s : Multiset ℕ) (p : ℝ[X]) : + (polarThetaProduct s p).natDegree ≤ p.natDegree := + natDegree_diagonalOperator_le _ _ + +/-- A product of polar Euler operators preserves every coefficient whose +index is absent from its parameter multiset. -/ +theorem coeff_polarThetaProduct_ne_zero {s : Multiset ℕ} {p : ℝ[X]} {k : ℕ} + (hk : k ∉ s) (hp : p.coeff k ≠ 0) : (polarThetaProduct s p).coeff k ≠ 0 := by + classical + induction s using Multiset.induction with + | empty => simpa using hp + | cons a s ih => + rw [polarThetaProduct_cons] + simp only [polarTheta, coeff_sub, coeff_C_mul, coeff_theta, ← sub_mul] + apply mul_ne_zero _ (ih fun h => hk (Multiset.mem_cons_of_mem h)) + exact sub_ne_zero.mpr (by + intro h + have he : a = k := Nat.cast_inj.mp h + exact hk (he ▸ Multiset.mem_cons_self a s)) + +/-- When the leading index is not a parameter, no degree is lost. -/ +theorem natDegree_polarThetaProduct {s : Multiset ℕ} {p : ℝ[X]} + (hs : p.natDegree ∉ s) : (polarThetaProduct s p).natDegree = p.natDegree := by + by_cases hp : p = 0 + · simp [hp, polarThetaProduct] + apply natDegree_eq_of_le_of_coeff_ne_zero (natDegree_polarThetaProduct_le s p) + exact coeff_polarThetaProduct_ne_zero hs (leadingCoeff_ne_zero.mpr hp) + +/-- Parameters strictly beyond the degree preserve the PF property. -/ +theorem IsPFPolynomial.polarThetaProduct {p : ℝ[X]} (hp : IsPFPolynomial p) + {s : Multiset ℕ} (hs : ∀ a ∈ s, p.natDegree < a) : + IsPFPolynomial (polarThetaProduct s p) := by + induction s using Multiset.induction with + | empty => simpa using hp + | cons a s ih => + rw [polarThetaProduct_cons] + apply isPFPolynomial_C_mul_sub_theta + (n := p.natDegree) (by exact_mod_cast hs a (Multiset.mem_cons_self _ _)) + (ih fun b hb => hs b (Multiset.mem_cons_of_mem hb)) + (natDegree_polarThetaProduct_le s p) + +/-- Products with nonzero natural parameters lose at most their number of +positive roots. A nonzero constant coefficient rules out zero intermediate outputs. -/ +theorem card_pos_roots_le_polarThetaProduct_add_card {p : ℝ[X]} + (hp : p.coeff 0 ≠ 0) {s : Multiset ℕ} (hs : 0 ∉ s) : + (p.roots.filter (0 < ·)).card ≤ + ((polarThetaProduct s p).roots.filter (0 < ·)).card + s.card := by + classical + induction s using Multiset.induction with + | empty => simp + | cons a s ih => + have hs0 : 0 ∉ s := fun h => hs (Multiset.mem_cons_of_mem h) + have hq : polarThetaProduct (a ::ₘ s) p ≠ 0 := by + intro h + exact coeff_polarThetaProduct_ne_zero hs hp (by rw [h, coeff_zero]) + have heuler : X * (polarThetaProduct s p).derivative - + C (a : ℝ) * polarThetaProduct s p = -polarThetaProduct (a ::ₘ s) p := by + rw [polarThetaProduct_cons] + simp only [polarTheta, theta, neg_sub] + have hb := (polarThetaProduct s p).card_pos_roots_le_euler_sub_add_one a + (by rw [heuler]; exact neg_ne_zero.mpr hq) + rw [heuler, roots_neg] at hb + have hi := ih hs0 + simpa only [Multiset.card_cons, Nat.add_assoc, Nat.add_comm 1 s.card] + using hi.trans (Nat.add_le_add_right hb s.card) + +/-- Reflecting a PF polynomial with nonzero constant coefficient puts every +root strictly on the positive real axis. -/ +theorem IsPFPolynomial.card_pos_roots_comp_neg_X {p : ℝ[X]} (hp : IsPFPolynomial p) + (h0 : p.coeff 0 ≠ 0) : ((p.comp (-X)).roots.filter (0 < ·)).card = p.natDegree := by + classical + rw [roots_comp_neg_X, Multiset.filter_map] + have hf : p.roots.filter (fun x => 0 < -x) = p.roots := by + apply Multiset.filter_eq_self.mpr + intro x hx + have hx0 : x ≠ 0 := by + rintro rfl + exact h0 (by simpa only [← coeff_zero_eq_eval_zero] using (isRoot_of_mem_roots hx).eq_zero) + exact neg_pos.mpr (lt_of_le_of_ne (hp.roots_nonpos x hx) hx0) + simp only [Function.comp_def] at * + rw [hf, Multiset.card_map] + exact splits_iff_card_roots.mp hp.splits + +/-- Polar Euler products commute with reflection of their polynomial input. -/ +theorem polarThetaProduct_comp_neg_X (s : Multiset ℕ) (p : ℝ[X]) : + polarThetaProduct s (p.comp (-X)) = (polarThetaProduct s p).comp (-X) := by + ext k + simp only [coeff_polarThetaProduct, coeff_comp_neg_X] + ring + +/-- Only parameters at or below the original degree can reduce the positive +root count of a reflected PF polynomial. -/ +theorem IsPFPolynomial.natDegree_le_card_pos_roots_polarThetaProduct + {p : ℝ[X]} (hp : IsPFPolynomial p) (h0 : p.coeff 0 ≠ 0) + {s : Multiset ℕ} (hs : 0 ∉ s) : + p.natDegree ≤ ((RealRooted.polarThetaProduct s (p.comp (-X))).roots.filter (0 < ·)).card + + (s.filter (· ≤ p.natDegree)).card := by + classical + let small := s.filter (· ≤ p.natDegree) + let large := s.filter (fun a => ¬a ≤ p.natDegree) + have hsplit : s = small + large := (Multiset.filter_add_not _ s).symm + have hlarge : ∀ a ∈ large, p.natDegree < a := by + intro a ha + exact Nat.lt_of_not_ge (Multiset.mem_filter.mp ha).2 + have hl0 : 0 ∉ large := fun h => hs (Multiset.mem_filter.mp h).1 + have hp0 := coeff_polarThetaProduct_ne_zero hl0 h0 + have hpdegree : (RealRooted.polarThetaProduct large p).natDegree = p.natDegree := + natDegree_polarThetaProduct (fun h => (hlarge _ h).false) + have hcount := (hp.polarThetaProduct hlarge).card_pos_roots_comp_neg_X hp0 + have hbound := card_pos_roots_le_polarThetaProduct_add_card + (p := (RealRooted.polarThetaProduct large p).comp (-X)) + (by simpa only [coeff_comp_neg_X, pow_zero, mul_one] using hp0) + (s := small) (fun h => hs (Multiset.mem_filter.mp h).1) + rw [hcount, hpdegree] at hbound + nth_rw 1 [hsplit] + rw [polarThetaProduct_add, polarThetaProduct_comp_neg_X] + exact hbound + +end RealRooted diff --git a/RealRooted/Mathlib/Algebra/Polynomial/Expand/PositiveRoots.lean b/RealRooted/Mathlib/Algebra/Polynomial/Expand/PositiveRoots.lean new file mode 100644 index 000000000..f0b71a0ca --- /dev/null +++ b/RealRooted/Mathlib/Algebra/Polynomial/Expand/PositiveRoots.lean @@ -0,0 +1,93 @@ +/- +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.Algebra.Polynomial.Expand +public import Mathlib.Algebra.Polynomial.Splits +public import Mathlib.Basic.Real.Basic +import RealRooted.Mathlib.Analysis.Calculus.LocalExtr.PolynomialEuler +import RealRooted.Mathlib.Algebra.Polynomial.Derivative + +/-! +# Positive roots under power substitution + +Every real root of `p` contributes at most one positive root to `p(X^r)` +when `r` is positive, including multiplicities. Consequently, a sufficiently +large number of positive roots of a power substitution forces the source +polynomial to split. +-/ + +public section + +namespace Polynomial + +/-- A nonconstant binomial has at most one positive root, with multiplicity. -/ +theorem card_pos_roots_X_pow_sub_C_le_one (r : ℕ) (hr : r ≠ 0) (a : ℝ) : + (((X : ℝ[X]) ^ r - C a).roots.filter (0 < ·)).card ≤ 1 := by + classical + let p : ℝ[X] := X ^ r - C a + have hq : X * p.derivative - C ((0 : ℕ) : ℝ) * p ≠ 0 := by + intro h + have := congrArg (fun q : ℝ[X] => q.coeff r) h + simp [p, coeff_X_mul_derivative, hr] at this + have hnone : ((X * p.derivative - C ((0 : ℕ) : ℝ) * p).roots.filter (0 < ·)) = 0 := by + apply Multiset.eq_zero_of_forall_notMem + intro x hx + obtain ⟨hx, hpos⟩ := Multiset.mem_filter.mp hx + have he := (mem_roots hq).mp hx + have hn : (r : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hr + simp [p, IsRoot, derivative_pow, hpos.ne', hn] at he + have hbound := p.card_pos_roots_le_euler_sub_add_one 0 hq + simpa only [hnone, Multiset.card_zero, zero_add] using hbound + +/-- The roots of a power substitution which lie on the positive real axis +are at most as numerous as all real roots of its source polynomial. -/ +theorem card_pos_roots_expand_le_card_roots (p : ℝ[X]) {r : ℕ} (hr : r ≠ 0) : + ((expand ℝ r p).roots.filter (0 < ·)).card ≤ p.roots.card := by + classical + by_cases hp : p = 0 + · simp [hp] + obtain ⟨q, hfactor, _, hqroots⟩ := exists_prod_multiset_X_sub_C_mul p + have hq : q ≠ 0 := by + intro hzero + simp [hzero] at hfactor + exact hp hfactor.symm + have hcomp : expand ℝ r p ≠ 0 := (expand_ne_zero (Nat.pos_of_ne_zero hr)).mpr hp + have hqcomp : (expand ℝ r q).roots = 0 := by + apply Multiset.eq_zero_of_forall_notMem + intro x hx + have hroot : q.IsRoot (x ^ r) := by + simpa only [IsRoot, expand_eq_comp_X_pow, eval_comp, eval_pow, eval_X] + using isRoot_of_mem_roots hx + have hmem := (mem_roots hq).mpr hroot + simp only [hqroots, Multiset.notMem_zero] at hmem + have hfactorcomp : expand ℝ r p = + (p.roots.map fun a => X ^ r - C a).prod * expand ℝ r q := by + conv_lhs => rw [← hfactor] + rw [map_mul, map_multiset_prod, Multiset.map_map] + simp only [Function.comp_def, map_sub, expand_X, expand_C] + rw [hfactorcomp] at hcomp ⊢ + rw [roots_mul hcomp, hqcomp, add_zero, roots_multiset_prod] + · rw [Multiset.bind_map, Multiset.filter_bind] + generalize p.roots = s + induction s using Multiset.induction with + | empty => simp + | cons a s ih => + simpa only [Multiset.cons_bind, Multiset.card_add, Multiset.card_cons, + Function.comp_def, Nat.add_comm] using + Nat.add_le_add (card_pos_roots_X_pow_sub_C_le_one r hr a) ih + · simpa only [← Multiset.prod_eq_zero_iff] using left_ne_zero_of_mul hcomp + +/-- Positive roots of a power substitution force the source to split if +their number reaches the source degree. -/ +theorem splits_of_natDegree_le_card_pos_roots_expand {p : ℝ[X]} {r : ℕ} + (hr : r ≠ 0) + (h : p.natDegree ≤ ((expand ℝ r p).roots.filter (0 < ·)).card) : p.Splits := by + apply splits_iff_card_roots.mpr + exact Nat.le_antisymm (card_roots' p) + (h.trans (card_pos_roots_expand_le_card_roots p hr)) + +end Polynomial diff --git a/RealRooted/Mathlib/Analysis/Calculus/LocalExtr/PolynomialEuler.lean b/RealRooted/Mathlib/Analysis/Calculus/LocalExtr/PolynomialEuler.lean new file mode 100644 index 000000000..a068f7f48 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Calculus/LocalExtr/PolynomialEuler.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 The RealRooted contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Benjamin Davidson, Yury Kudryashov, The RealRooted contributors +-/ +module + +public import Mathlib.Algebra.Polynomial.Roots +public import Mathlib.Algebra.Polynomial.Derivative +public import Mathlib.Basic.Real.Basic +import Mathlib.Analysis.Calculus.LocalExtr.Rolle +import Mathlib.Analysis.Calculus.Deriv.Polynomial +import Mathlib.Analysis.Calculus.Deriv.Inv +import Mathlib.Topology.Algebra.Polynomial +import Mathlib.Tactic.TypeStar + +/-! +# Positive roots of an Euler differential operator + +The operator `p ↦ X * p.derivative - a * p` decreases the multiplicity of +each root by at most one. For a natural parameter, Rolle's theorem applied +to `p(x) / x^a` supplies a new positive root between two positive roots of +`p`. Together these facts show that at most one positive root is lost, +counting multiplicities, provided the output is nonzero. + +The counting argument follows Mathlib's proof of +`Polynomial.card_roots_le_derivative`. +-/ + +public section + +open Set + +namespace Polynomial + +/-- An Euler differential operator lowers root multiplicities by at most one +whenever its output is nonzero. -/ +theorem rootMultiplicity_sub_one_le_euler_sub + {R : Type*} [CommRing R] (p : R[X]) (a x : R) + (hq : X * p.derivative - C a * p ≠ 0) : + p.rootMultiplicity x - 1 ≤ (X * p.derivative - C a * p).rootMultiplicity x := by + rw [le_rootMultiplicity_iff hq] + have hp := p.pow_rootMultiplicity_dvd x + exact (dvd_mul_of_dvd_right (pow_sub_one_dvd_derivative_of_pow_dvd hp) X).sub + (dvd_mul_of_dvd_right ((pow_dvd_pow _ (Nat.sub_le _ _)).trans hp) (C a)) + +/-- Two positive roots enclose a root of the natural-parameter Euler operator. -/ +theorem exists_euler_sub_isRoot_between {p : ℝ[X]} (a : ℕ) {s t : ℝ} + (hspos : 0 < s) (hst : s < t) (hs : p.IsRoot s) (ht : p.IsRoot t) : + ∃ x ∈ Ioo s t, (X * p.derivative - C (a : ℝ) * p).IsRoot x := by + cases a with + | zero => + obtain ⟨x, hx, hd⟩ := exists_deriv_eq_zero hst p.continuousOn + (hs.eq_zero.trans ht.eq_zero.symm) + refine ⟨x, hx, ?_⟩ + simp [IsRoot, ← p.deriv, hd] + | succ a => + have hne (x : ℝ) (hx : x ∈ Icc s t) : x ≠ 0 := ne_of_gt (hspos.trans_le hx.1) + have hc : ContinuousOn (fun x => p.eval x / x ^ (a + 1)) (Icc s t) := + p.continuous.continuousOn.div (continuous_id.pow _).continuousOn + (fun x hx => pow_ne_zero _ (hne x hx)) + have he : p.eval s / s ^ (a + 1) = p.eval t / t ^ (a + 1) := by + rw [hs.eq_zero, ht.eq_zero, zero_div, zero_div] + obtain ⟨x, hx, hd⟩ := exists_hasDerivAt_eq_zero hst hc he + (fun x hx => (p.hasDerivAt x).div ((hasDerivAt_id x).pow (a + 1)) + (pow_ne_zero _ (hne x ⟨hx.1.le, hx.2.le⟩))) + have hx0 : x ≠ 0 := hne x ⟨hx.1.le, hx.2.le⟩ + have hnum : p.derivative.eval x * x ^ (a + 1) - + p.eval x * ((a + 1 : ℝ) * x ^ a) = 0 := by + simpa [pow_ne_zero _ hx0] using hd + have hmul : x ^ a * (x * p.derivative.eval x - (a + 1 : ℝ) * p.eval x) = 0 := by + rw [pow_succ] at hnum + linear_combination hnum + refine ⟨x, hx, ?_⟩ + simpa [IsRoot] using (mul_eq_zero.mp hmul).resolve_left (pow_ne_zero _ hx0) + +/-- Distinct positive roots of `p` require almost as many new positive roots +of a nonzero natural-parameter Euler differential operator. -/ +theorem card_pos_roots_toFinset_le_euler_sub_sdiff_add_one (p : ℝ[X]) (a : ℕ) + (hq : X * p.derivative - C (a : ℝ) * p ≠ 0) : + (p.roots.filter (0 < ·)).toFinset.card ≤ + (((X * p.derivative - C (a : ℝ) * p).roots.filter (0 < ·)).toFinset \ + (p.roots.filter (0 < ·)).toFinset).card + 1 := by + classical + have hp : p ≠ 0 := by rintro rfl; simp at hq + refine Finset.card_le_sdiff_of_interleaved fun s hs t ht hst _ => ?_ + simp only [Multiset.mem_toFinset, Multiset.mem_filter, mem_roots hp] at hs ht + obtain ⟨x, hx, hroot⟩ := exists_euler_sub_isRoot_between a hs.2 hst hs.1 ht.1 + refine ⟨x, ?_, hx⟩ + simp only [Multiset.mem_toFinset, Multiset.mem_filter, mem_roots hq] + exact ⟨hroot, hs.2.trans hx.1⟩ + +/-- A nonzero natural-parameter Euler differential operator loses at most one +positive root, with roots counted according to multiplicity. -/ +theorem card_pos_roots_le_euler_sub_add_one (p : ℝ[X]) (a : ℕ) + (hq : X * p.derivative - C (a : ℝ) * p ≠ 0) : + (p.roots.filter (0 < ·)).card ≤ + ((X * p.derivative - C (a : ℝ) * p).roots.filter (0 < ·)).card + 1 := by + classical + let s := p.roots.filter (0 < ·) + let t := (X * p.derivative - C (a : ℝ) * p).roots.filter (0 < ·) + have hcount (x : ℝ) : s.count x - 1 ≤ t.count x := by + by_cases hx : 0 < x + · simpa [s, t, hx] using p.rootMultiplicity_sub_one_le_euler_sub (a : ℝ) x hq + · simp [s, t, hx] + have hcard : s.toFinset.card ≤ (t.toFinset \ s.toFinset).card + 1 := + p.card_pos_roots_toFinset_le_euler_sub_sdiff_add_one a hq + change s.card ≤ t.card + 1 + calc + s.card = ∑ x ∈ s.toFinset, s.count x := (Multiset.toFinset_sum_count_eq _).symm + _ = ∑ x ∈ s.toFinset, (s.count x - 1 + 1) := + (Eq.symm <| Finset.sum_congr rfl fun _ hx => tsub_add_cancel_of_le <| + Nat.succ_le_iff.2 <| Multiset.count_pos.2 <| Multiset.mem_toFinset.1 hx) + _ = (∑ x ∈ s.toFinset, (s.count x - 1)) + s.toFinset.card := by + simp only [Finset.sum_add_distrib, Finset.sum_const, smul_eq_mul, mul_one] + _ ≤ (∑ x ∈ s.toFinset, t.count x) + ((t.toFinset \ s.toFinset).card + 1) := + add_le_add (Finset.sum_le_sum fun x _ => hcount x) hcard + _ ≤ (∑ x ∈ s.toFinset, t.count x) + ((∑ x ∈ t.toFinset \ s.toFinset, + t.count x) + 1) := by + simp only [Finset.card_eq_sum_ones] + gcongr with x hx + rw [Nat.succ_le_iff, Multiset.count_pos, ← Multiset.mem_toFinset] + exact (Finset.mem_sdiff.1 hx).1 + _ = t.card + 1 := by + rw [← add_assoc, ← Finset.sum_union Finset.disjoint_sdiff, + Finset.union_sdiff_self_eq_union, ← Multiset.toFinset_sum_count_eq, + ← Finset.sum_subset Finset.subset_union_right] + intro x _ hx + simpa only [Multiset.mem_toFinset, Multiset.count_eq_zero] using hx + +end Polynomial From 568a4ebecc21e98abd52436c9cc58260338996a0 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 16:52:26 +0000 Subject: [PATCH 40/56] feat: prove entire heat equations and nonzero outputs --- .../Complex/HeatOperator/Derivative.lean | 110 ++++++++++++++++++ .../Complex/HeatOperator/Nonzero.lean | 87 ++++++++++++++ .../Complex/HeatOperator/TimeDerivative.lean | 96 +++++++++++++++ 3 files changed, 293 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Complex/HeatOperator/Derivative.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/HeatOperator/Nonzero.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeDerivative.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Derivative.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Derivative.lean new file mode 100644 index 000000000..e2af1fd7e --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Derivative.lean @@ -0,0 +1,110 @@ +/- +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.Analysis.Complex.HeatOperator.Basic +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff +import Mathlib.Analysis.Complex.LocallyUniformLimit + +/-! +# Holomorphic heat sums and spatial derivatives + +For an entire input of order below two, the heat sum is entire separately in +time and space. Every spatial derivative commutes with the heat operator. +-/ + +public section + +open Filter Topology + +namespace Complex + +/-- At fixed complex time, the heat series converges locally uniformly in space. -/ +theorem tendstoLocallyUniformly_heatOperator_space {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (t : ℂ) : + TendstoLocallyUniformly + (fun N z => ∑ n ∈ Finset.range N, + (-t) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f z) + (heatOperator t f) atTop := by + simpa only [Function.comp_def] using + (tendstoLocallyUniformly_heatOperator hf horder hρ).comp (fun z => (t, z)) (by fun_prop) + +/-- At fixed spatial point, the heat series converges locally uniformly in time. -/ +theorem tendstoLocallyUniformly_heatOperator_time {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (z : ℂ) : + TendstoLocallyUniformly + (fun N t => ∑ n ∈ Finset.range N, + (-t) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f z) + (fun t => heatOperator t f z) atTop := by + simpa only [Function.comp_def] using + (tendstoLocallyUniformly_heatOperator hf horder hρ).comp (fun t => (t, z)) (by fun_prop) + +/-- Every finite heat sum is entire in space. -/ +private theorem differentiable_partial_heat {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (t : ℂ) (N : ℕ) : Differentiable ℂ + (fun z => ∑ n ∈ Finset.range N, + (-t) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f z) := by + apply Differentiable.fun_sum + intro n _ + exact ((hf.contDiff (n := ⊤)).differentiable_iteratedDeriv _ + (WithTop.coe_lt_top _)).const_mul _ + +/-- Every complex-time heat image is entire in space. -/ +theorem differentiable_heatOperator {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (t : ℂ) : + Differentiable ℂ (heatOperator t f) := by + apply differentiableOn_univ.mp + apply (tendstoLocallyUniformlyOn_univ.mpr + (tendstoLocallyUniformly_heatOperator_space hf horder hρ t)).differentiableOn + (Eventually.of_forall fun N => (differentiable_partial_heat hf t N).differentiableOn) + isOpen_univ + +/-- At every spatial point, the heat image is entire in complex time. -/ +theorem differentiable_heatOperator_time {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (z : ℂ) : + Differentiable ℂ (fun t => heatOperator t f z) := by + apply differentiableOn_univ.mp + apply (tendstoLocallyUniformlyOn_univ.mpr + (tendstoLocallyUniformly_heatOperator_time hf horder hρ z)).differentiableOn + (Eventually.of_forall fun N => ?_) isOpen_univ + apply Differentiable.differentiableOn + apply Differentiable.fun_sum + intro n _ + exact ((differentiable_id.neg.pow n).div_const _).mul_const _ + +/-- Spatial derivatives commute with finite heat sums. -/ +private theorem iteratedDeriv_partial_heat {f : ℂ → ℂ} (hf : Differentiable ℂ f) + (t : ℂ) (N k : ℕ) : + iteratedDeriv k (fun z => ∑ n ∈ Finset.range N, + (-t) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f z) = + fun z => ∑ n ∈ Finset.range N, + (-t) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) (iteratedDeriv k f) z := by + ext z + rw [iteratedDeriv_fun_sum (fun n _ => + (((hf.contDiff (n := ⊤)).differentiable_iteratedDeriv _ + (WithTop.coe_lt_top _)).const_mul _).contDiff.contDiffAt)] + apply Finset.sum_congr rfl + intro n _ + simp only [iteratedDeriv_const_mul_field, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm k] + +/-- Every spatial derivative commutes with the entire heat operator. -/ +theorem iteratedDeriv_heatOperator {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (t : ℂ) (k : ℕ) : + iteratedDeriv k (heatOperator t f) = heatOperator t (iteratedDeriv k f) := by + have hleft := (tendstoLocallyUniformly_heatOperator_space hf horder hρ t).iteratedDeriv + (differentiable_partial_heat hf t) k + simp only [iteratedDeriv_partial_heat hf] at hleft + have hdf := (hf.contDiff (n := ⊤)).differentiable_iteratedDeriv k (WithTop.coe_lt_top _) + have hright := tendstoLocallyUniformly_heatOperator_space hdf + (horder.iteratedDeriv hf k) hρ t + ext z + exact tendsto_nhds_unique + ((tendstoLocallyUniformlyOn_univ.mpr hleft).tendsto_at (Set.mem_univ z)) + ((tendstoLocallyUniformlyOn_univ.mpr hright).tendsto_at (Set.mem_univ z)) + +end Complex diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Nonzero.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Nonzero.lean new file mode 100644 index 000000000..94b4c2000 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Nonzero.lean @@ -0,0 +1,87 @@ +/- +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.Analysis.Complex.HeatOperator.TimeDerivative +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import Mathlib.Analysis.Analytic.Order + +/-! +# Nonvanishing of entire heat images + +Iterating the time heat equation identifies every time derivative with an even +spatial derivative. An identically zero time slice would therefore make all +time jets vanish. Entire dependence on time, together with the initial value, +excludes this for every nonzero entire input of order below two. +-/ + +public section + +namespace Complex + +/-- Iterated time differentiation of the heat sum is a signed even spatial + derivative of its input followed by the same heat operator. -/ +theorem iteratedDeriv_heatOperator_time {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (z : ℂ) (k : ℕ) : + iteratedDeriv k (fun t => heatOperator t f z) = + fun t => (-1 : ℂ) ^ k * heatOperator t (iteratedDeriv (2 * k) f) z := by + induction k with + | zero => simp + | succ k ih => + rw [iteratedDeriv_succ, ih] + ext t + rw [iteratedDeriv_one.symm, iteratedDeriv_const_mul_field, iteratedDeriv_one] + have hdf := (hf.contDiff (n := ⊤)).differentiable_iteratedDeriv (2 * k) + (WithTop.coe_lt_top _) + have ho := horder.iteratedDeriv hf (2 * k) + rw [(hasDerivAt_heatOperator_time hdf ho hρ t z).deriv, + iteratedDeriv_heatOperator hdf ho hρ] + have heq : iteratedDeriv 2 (iteratedDeriv (2 * k) f) = + iteratedDeriv (2 * (k + 1)) f := by + simp only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, + Nat.mul_add, Nat.mul_one, Nat.add_comm 2] + rw [heq, pow_succ] + ring + +/-- A complex-time heat image of a nonzero entire function of order below two +cannot vanish identically. -/ +theorem heatOperator_ne_zero {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) + (hne : f ≠ 0) (t : ℂ) : heatOperator t f ≠ 0 := by + intro hzero + obtain ⟨z, hz⟩ := Function.ne_iff.mp hne + have ha : AnalyticOnNhd ℂ (fun s => heatOperator s f z) Set.univ := + fun s _ => (differentiable_heatOperator_time hf horder hρ z).analyticAt s + have hall (k : ℕ) : iteratedDeriv k (fun s => heatOperator s f z) t = 0 := by + rw [iteratedDeriv_heatOperator_time hf horder hρ] + dsimp only + rw [← congrFun (iteratedDeriv_heatOperator hf horder hρ t (2 * k)) z, hzero] + simp + have htop : analyticOrderAt (fun s => heatOperator s f z) t = ⊤ := by + apply ENat.eq_top_iff_forall_ge.mpr + intro n + exact (natCast_le_analyticOrderAt_iff_iteratedDeriv_eq_zero (ha t trivial)).mpr + (fun j _ => hall j) + have hstart : heatOperator 0 f z ≠ 0 := by simpa using hz + have hbase : analyticOrderAt (fun s => heatOperator s f z) 0 = 0 := + analyticOrderAt_eq_zero.mpr (.inr hstart) + have hfinite := ha.analyticOrderAt_ne_top_of_isPreconnected isPreconnected_univ + (Set.mem_univ (0 : ℂ)) (Set.mem_univ t) (by simp [hbase]) + exact hfinite htop + +/-- The entire heat operator vanishes identically exactly for the zero input +on the class of entire functions of order below two. -/ +theorem heatOperator_eq_zero_iff {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (t : ℂ) : + heatOperator t f = 0 ↔ f = 0 := by + constructor + · intro h + by_contra hf0 + exact heatOperator_ne_zero hf horder hρ hf0 t h + · intro h + simp [h] + +end Complex diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeDerivative.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeDerivative.lean new file mode 100644 index 000000000..b97328f34 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeDerivative.lean @@ -0,0 +1,96 @@ +/- +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.Analysis.Complex.HeatOperator.Derivative +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff +import Mathlib.Analysis.Complex.RealDeriv + +/-! +# The backward heat equation for entire heat sums + +The entire even-derivative series satisfies the backward heat equation. +All spatial derivatives satisfy the same equation, including after restriction +to real time and taking real parts. +-/ + +public section + +open Filter Topology + +namespace Complex + +/-- Differentiating a finite heat sum in time removes its constant term and +shifts the spatial derivative order by two. -/ +private theorem hasDerivAt_partial_heat_succ (f : ℂ → ℂ) (z t : ℂ) (N : ℕ) : + HasDerivAt (fun s => ∑ n ∈ Finset.range (N + 1), + (-s) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f z) + (-(∑ n ∈ Finset.range N, + (-t) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) (iteratedDeriv 2 f) z)) t := by + have hterm (n : ℕ) : HasDerivAt + (fun s => (-s) ^ (n + 1) / ((n + 1).factorial : ℂ) * iteratedDeriv (2 * (n + 1)) f z) + (-((-t) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) (iteratedDeriv 2 f) z)) t := by + have hb : HasDerivAt (fun s : ℂ => -s) (-1) t := by + simpa only [Pi.neg_def, id_eq] using (hasDerivAt_id t).neg + have h := ((hb.fun_pow (n + 1)).div_const + ((n + 1).factorial : ℂ)).mul_const (iteratedDeriv (2 * (n + 1)) f z) + have heq : iteratedDeriv (2 * n) (iteratedDeriv 2 f) z = + iteratedDeriv (2 * (n + 1)) f z := by + simp only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.mul_add, Nat.mul_one] + convert h using 1 + rw [heq, Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, Nat.cast_one, Nat.add_sub_cancel] + have hn : (n.factorial : ℂ) ≠ 0 := Nat.cast_ne_zero.mpr n.factorial_ne_zero + have hs : (n : ℂ) + 1 ≠ 0 := by exact_mod_cast n.succ_ne_zero + field_simp + have hs := (HasDerivAt.fun_sum (u := Finset.range N) (fun n _ => hterm n)).add_const (f z) + convert hs using 1 + · ext s + rw [Finset.sum_range_succ'] + simp only [pow_zero, Nat.factorial_zero, Nat.cast_one, div_one, Nat.mul_zero, + iteratedDeriv_zero, one_mul] + · simp only [Finset.sum_neg_distrib] + +/-- The entire heat operator satisfies the backward heat equation at every +complex time and spatial point. -/ +theorem hasDerivAt_heatOperator_time {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (t z : ℂ) : + HasDerivAt (fun s => heatOperator s f z) (-(iteratedDeriv 2 (heatOperator t f) z)) t := by + have hd (N : ℕ) : Differentiable ℂ (fun s => ∑ n ∈ Finset.range N, + (-s) ^ n / (n.factorial : ℂ) * iteratedDeriv (2 * n) f z) := by + apply Differentiable.fun_sum + intro n _ + exact ((differentiable_id.neg.pow n).div_const _).mul_const _ + have hconv := (tendstoLocallyUniformly_heatOperator_time hf horder hρ z).iteratedDeriv hd 1 + have hleft := ((tendstoLocallyUniformlyOn_univ.mpr hconv).tendsto_at + (Set.mem_univ t)).comp (tendsto_add_atTop_nat 1) + simp only [Function.comp_def, iteratedDeriv_one, + (hasDerivAt_partial_heat_succ f z t _).deriv] at hleft + have hdf := (hf.contDiff (n := ⊤)).differentiable_iteratedDeriv 2 (WithTop.coe_lt_top _) + have hright := ((tendstoLocallyUniformlyOn_univ.mpr + (tendstoLocallyUniformly_heatOperator_time hdf (horder.iteratedDeriv hf 2) hρ z)).tendsto_at + (Set.mem_univ t)).neg + have heq := tendsto_nhds_unique hleft hright + convert (differentiable_heatOperator_time hf horder hρ z t).hasDerivAt using 1 + rw [heq, iteratedDeriv_heatOperator hf horder hρ] + +/-- Every real spatial Taylor jet of the entire heat flow satisfies the +backward heat equation in real time. -/ +theorem hasDerivAt_re_iteratedDeriv_heatOperator {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) + (t x : ℝ) (n : ℕ) : + HasDerivAt (fun s : ℝ => (iteratedDeriv n (heatOperator (s : ℂ) f) (x : ℂ)).re) + (-(iteratedDeriv (n + 2) (heatOperator (t : ℂ) f) (x : ℂ)).re) t := by + have hdf := (hf.contDiff (n := ⊤)).differentiable_iteratedDeriv n (WithTop.coe_lt_top _) + have h := hasDerivAt_heatOperator_time hdf (horder.iteratedDeriv hf n) hρ (t : ℂ) (x : ℂ) + have hr := h.real_of_complex + have heq (s : ℂ) : heatOperator s (iteratedDeriv n f) = iteratedDeriv n (heatOperator s f) := + (iteratedDeriv_heatOperator hf horder hρ s n).symm + simp only [heq] at hr + simpa only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, + Nat.add_comm 2, neg_re] using hr + +end Complex From 9e27d988b45449b153b51841e06a580507df2e61 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 16:54:23 +0000 Subject: [PATCH 41/56] feat: split finite arithmetic polar approximants --- .../EulerOperator/ArithmeticSections.lean | 103 ++++++++++++++++++ .../Algebra/Polynomial/Expand/Contract.lean | 42 +++++++ 2 files changed, 145 insertions(+) create mode 100644 RealRooted/EulerOperator/ArithmeticSections.lean create mode 100644 RealRooted/Mathlib/Algebra/Polynomial/Expand/Contract.lean diff --git a/RealRooted/EulerOperator/ArithmeticSections.lean b/RealRooted/EulerOperator/ArithmeticSections.lean new file mode 100644 index 000000000..4bf1b3329 --- /dev/null +++ b/RealRooted/EulerOperator/ArithmeticSections.lean @@ -0,0 +1,103 @@ +module + +public import RealRooted.EulerOperator.RootCounting +public import Mathlib.Algebra.Polynomial.Expand +import RealRooted.Mathlib.Algebra.Polynomial.Expand.PositiveRoots +import RealRooted.Mathlib.Algebra.Polynomial.Expand.Contract +import RealRooted.Mathlib.Algebra.Polynomial.Degree.Lemmas + +/-! +# Finite arithmetic-section approximants + +Applying polar Euler factors at the positive integers not divisible by a +stride annihilates the unwanted coefficients. The positive-root estimate +then proves that the compressed polynomial splits. This is the finite +root-counting stage of Pólya's arithmetic-section argument. +-/ + +@[expose] public section + +open Polynomial Finset + +namespace RealRooted + +/-- Positive integers through `N` which are not divisible by the stride. -/ +def arithmeticPolarParameters (r N : ℕ) : Multiset ℕ := + ((Ioc 0 N).filter fun a => ¬r ∣ a).val + +@[simp] theorem mem_arithmeticPolarParameters (r N a : ℕ) : + a ∈ arithmeticPolarParameters r N ↔ 0 < a ∧ a ≤ N ∧ ¬r ∣ a := by + simp [arithmeticPolarParameters, and_assoc] + +theorem zero_notMem_arithmeticPolarParameters (r N : ℕ) : + 0 ∉ arithmeticPolarParameters r N := by simp + +/-- Among the first `N` positive integers, precisely `N - N / r` are not +multiples of `r`. This also covers `r = 0`. -/ +theorem card_arithmeticPolarParameters (r N : ℕ) : + (arithmeticPolarParameters r N).card = N - N / r := by + have h := (Ioc 0 N).card_filter_add_card_filter_not (fun a => r ∣ a) + rw [Nat.Ioc_filter_dvd_card_eq_div] at h + simp only [Nat.card_Ioc, Nat.sub_zero] at h + change ((Ioc 0 N).filter fun a => ¬r ∣ a).card = N - N / r + lia + +/-- Truncating the arithmetic parameter multiset truncates its upper bound. -/ +theorem filter_arithmeticPolarParameters_le (r : ℕ) {m N : ℕ} (hm : m ≤ N) : + (arithmeticPolarParameters r N).filter (· ≤ m) = arithmeticPolarParameters r m := by + change (((Ioc 0 N).filter (fun a => ¬r ∣ a)).filter (· ≤ m)).val = + ((Ioc 0 m).filter (fun a => ¬r ∣ a)).val + congr 1 + ext a + simp only [mem_filter, mem_Ioc] + exact ⟨fun h => ⟨⟨h.1.1.1, h.2⟩, h.1.2⟩, + fun h => ⟨⟨⟨h.1.1, h.1.2.trans hm⟩, h.2⟩, h.1.2⟩⟩ + +/-- A parameter equal to the coefficient index annihilates that coefficient. -/ +theorem coeff_polarThetaProduct_eq_zero_of_mem {s : Multiset ℕ} {p : ℝ[X]} {k : ℕ} + (hk : k ∈ s) : (polarThetaProduct s p).coeff k = 0 := by + rw [coeff_polarThetaProduct] + have hz : (s.map fun a : ℕ => (a : ℝ) - k).prod = 0 := by + rw [Multiset.prod_eq_zero_iff, Multiset.mem_map] + exact ⟨k, hk, sub_self _⟩ + rw [hz, zero_mul] + +/-- Enough arithmetic polar factors leave only coefficient indices divisible +by the stride. -/ +theorem coeff_arithmetic_polarThetaProduct_eq_zero {p : ℝ[X]} (r : ℕ) {N : ℕ} + (hp : p.natDegree ≤ N) (k : ℕ) (hk : ¬r ∣ k) : + (polarThetaProduct (arithmeticPolarParameters r N) p).coeff k = 0 := by + by_cases hkn : k ≤ N + · apply coeff_polarThetaProduct_eq_zero_of_mem + exact (mem_arithmeticPolarParameters r N k).mpr + ⟨Nat.pos_of_ne_zero (fun h => hk (h ▸ dvd_zero r)), hkn, hk⟩ + · apply coeff_eq_zero_of_natDegree_lt + exact (natDegree_polarThetaProduct_le _ _).trans_lt (hp.trans_lt (Nat.lt_of_not_ge hkn)) + +/-- Compressing a reflected PF polynomial after applying the arithmetic +polar factors gives a polynomial which splits over the reals. -/ +theorem IsPFPolynomial.contract_arithmetic_polarThetaProduct_splits + {p : ℝ[X]} (hp : IsPFPolynomial p) (h0 : p.coeff 0 ≠ 0) + {r N : ℕ} (hr : r ≠ 0) (hN : p.natDegree ≤ N) : + (contract r (RealRooted.polarThetaProduct + (arithmeticPolarParameters r N) (p.comp (-X)))).Splits := by + let q := RealRooted.polarThetaProduct (arithmeticPolarParameters r N) (p.comp (-X)) + have he : expand ℝ r (contract r q) = q := + expand_contract_of_coeff_eq_zero hr + (coeff_arithmetic_polarThetaProduct_eq_zero r (by simpa using hN)) + have hbound := hp.natDegree_le_card_pos_roots_polarThetaProduct h0 + (zero_notMem_arithmeticPolarParameters r N) + rw [filter_arithmeticPolarParameters_le r hN, card_arithmeticPolarParameters] at hbound + have hdiv : p.natDegree / r ≤ p.natDegree := Nat.div_le_self _ _ + have hcount : p.natDegree / r ≤ (q.roots.filter (0 < ·)).card := by + change p.natDegree ≤ (q.roots.filter (0 < ·)).card + + (p.natDegree - p.natDegree / r) at hbound + lia + apply splits_of_natDegree_le_card_pos_roots_expand hr + rw [he] + exact (natDegree_contract_le_div q hr).trans + ((Nat.div_le_div_right (by + simpa [q] using natDegree_polarThetaProduct_le (arithmeticPolarParameters r N) + (p.comp (-X)))).trans hcount) + +end RealRooted diff --git a/RealRooted/Mathlib/Algebra/Polynomial/Expand/Contract.lean b/RealRooted/Mathlib/Algebra/Polynomial/Expand/Contract.lean new file mode 100644 index 000000000..e0d4da98a --- /dev/null +++ b/RealRooted/Mathlib/Algebra/Polynomial/Expand/Contract.lean @@ -0,0 +1,42 @@ +/- +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.Algebra.Polynomial.Expand +import Mathlib.Tactic.TypeStar + +/-! +# Polynomial contraction and support + +Contraction by a positive integer divides the degree bound by that integer. +It is inverse to expansion on polynomials supported at multiples of the stride. +-/ + +public section + +namespace Polynomial + +variable {R : Type*} [CommSemiring R] + +/-- Contraction by a nonzero stride divides the degree bound. -/ +theorem natDegree_contract_le_div (p : R[X]) {r : ℕ} (hr : r ≠ 0) : + (contract r p).natDegree ≤ p.natDegree / r := by + apply natDegree_le_iff_coeff_eq_zero.mpr + intro n hn + rw [coeff_contract hr] + exact coeff_eq_zero_of_natDegree_lt ((Nat.div_lt_iff_lt_mul (Nat.pos_of_ne_zero hr)).mp hn) + +/-- Expansion undoes contraction when all nonzero coefficients occur at +indices divisible by the stride. -/ +theorem expand_contract_of_coeff_eq_zero {p : R[X]} {r : ℕ} (hr : r ≠ 0) + (hp : ∀ n, ¬r ∣ n → p.coeff n = 0) : expand R r (contract r p) = p := by + ext n + rw [coeff_expand (Nat.pos_of_ne_zero hr)] + by_cases hn : r ∣ n + · simp only [hn, ↓reduceIte, coeff_contract hr, Nat.div_mul_cancel hn] + · simp [hn, hp n hn] + +end Polynomial From 3d2eff37f643e8f25c1ff6eb5e6c45ce33203d29 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 17:00:09 +0000 Subject: [PATCH 42/56] feat: prove simple real zeros for entire negative heat transforms --- RealRooted/Hermite/GaussianCoefficients.lean | 57 +++++++++++++++++++ RealRooted/Hermite/GaussianHeatOperator.lean | 53 +++++++++++++++++ .../Analysis/Complex/HeatOperator/Star.lean | 36 ++++++++++++ .../LaguerrePolya/HeatOperator.lean | 53 +++++++++++++++++ .../LaguerrePolya/HeatOperatorSimple.lean | 52 +++++++++++++++++ .../RiemannHypothesis/HeatOperator.lean | 41 +++++++++++++ 6 files changed, 292 insertions(+) create mode 100644 RealRooted/Hermite/GaussianCoefficients.lean create mode 100644 RealRooted/Hermite/GaussianHeatOperator.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/HeatOperator/Star.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperator.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorSimple.lean create mode 100644 RealRooted/RiemannHypothesis/HeatOperator.lean diff --git a/RealRooted/Hermite/GaussianCoefficients.lean b/RealRooted/Hermite/GaussianCoefficients.lean new file mode 100644 index 000000000..7a39380e4 --- /dev/null +++ b/RealRooted/Hermite/GaussianCoefficients.lean @@ -0,0 +1,57 @@ +module + +public import RealRooted.Hermite.GeneratingFunction +import Mathlib.Data.Nat.Factorial.Basic + +/-! +# Even and odd Taylor coefficients of a Gaussian + +At the origin, quadratic exponentials have zero odd derivatives and even +Taylor coefficients `s^n/n!`. The homogeneous Hermite recurrence proves the +identities directly, including the zero quadratic parameter. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- Odd homogeneous Hermite values vanish at the origin. -/ +theorem hermiteHomogeneous_zero_odd {R : Type*} [CommRing R] (s : R) (n : ℕ) : + hermiteHomogeneous 0 s (2 * n + 1) = 0 := by + induction n with + | zero => simp + | succ n ih => + rw [show 2 * (n + 1) + 1 = (2 * n + 1) + 2 by lia, + hermiteHomogeneous_add_two, ih] + simp + +/-- Even homogeneous Hermite values at the origin have the Gaussian factorial normalization. -/ +theorem hermiteHomogeneous_zero_even (s : ℂ) (n : ℕ) : + hermiteHomogeneous 0 s (2 * n) = (2 * n).factorial * s ^ n / n.factorial := by + induction n with + | zero => simp + | succ n ih => + rw [show 2 * (n + 1) = 2 * n + 2 by lia, hermiteHomogeneous_add_two, ih] + simp only [zero_mul, zero_add, Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, + Nat.cast_one, pow_succ] + have hn : (n.factorial : ℂ) ≠ 0 := Nat.cast_ne_zero.mpr n.factorial_ne_zero + have hs : (n : ℂ) + 1 ≠ 0 := by exact_mod_cast n.succ_ne_zero + field_simp + ring + +/-- Odd Taylor derivatives of a quadratic exponential vanish at zero. -/ +theorem iteratedDeriv_exp_mul_sq_zero_odd (s : ℂ) (n : ℕ) : + iteratedDeriv (2 * n + 1) (fun z => exp (s * z ^ 2)) 0 = 0 := by + simpa only [zero_mul, zero_add, hermiteHomogeneous_zero_odd] using + iteratedDeriv_exp_quadratic_zero 0 s (2 * n + 1) + +/-- The even Taylor derivatives of a quadratic exponential have the heat-series normalization. -/ +theorem iteratedDeriv_exp_mul_sq_zero_even (s : ℂ) (n : ℕ) : + iteratedDeriv (2 * n) (fun z => exp (s * z ^ 2)) 0 = + (2 * n).factorial * s ^ n / n.factorial := by + simpa only [zero_mul, zero_add, hermiteHomogeneous_zero_even] using + iteratedDeriv_exp_quadratic_zero 0 s (2 * n) + +end RealRooted diff --git a/RealRooted/Hermite/GaussianHeatOperator.lean b/RealRooted/Hermite/GaussianHeatOperator.lean new file mode 100644 index 000000000..acaa9c957 --- /dev/null +++ b/RealRooted/Hermite/GaussianHeatOperator.lean @@ -0,0 +1,53 @@ +module + +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Derivative +public import RealRooted.Hermite.GaussianCoefficients +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import Mathlib.Topology.Algebra.InfiniteSum.NatInt + +/-! +# Gaussian differential symbols and the heat sum + +The full differential-symbol coefficient series of `exp (-t z²)` is exactly +the even-derivative heat series, including after every spatial derivative. +This fixes the parity and factorial normalizations needed for infinite-symbol +Laguerre--Pólya preservation. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- The ordinary Gaussian differential-symbol series sums to the corresponding +Taylor derivative of the entire heat image. -/ +theorem hasSum_gaussian_differential {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (t : ℂ) (k : ℕ) : + HasSum (fun j : ℕ => iteratedDeriv j (fun z => exp (-t * z ^ 2)) 0 * + iteratedDeriv (k + j) f 0 / (j.factorial : ℂ)) + (iteratedDeriv k (heatOperator t f) 0) := by + let A : ℕ → ℂ := fun j => iteratedDeriv j (fun z => exp (-t * z ^ 2)) 0 * + iteratedDeriv (k + j) f 0 / (j.factorial : ℂ) + have hdf := (hf.contDiff (n := ⊤)).differentiable_iteratedDeriv k (WithTop.coe_lt_top _) + have he : HasSum (fun n : ℕ => (-t) ^ n / (n.factorial : ℂ) * + iteratedDeriv (2 * n) (iteratedDeriv k f) 0) (heatOperator t (iteratedDeriv k f) 0) := + (summable_norm_heatOperator hdf (horder.iteratedDeriv hf k) hρ t 0).of_norm.hasSum + have heven : HasSum (fun n => A (2 * n)) (heatOperator t (iteratedDeriv k f) 0) := by + apply he.congr + intro S + apply Finset.sum_congr rfl + intro n _ + dsimp only [A] + rw [iteratedDeriv_exp_mul_sq_zero_even] + simp only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm k] + have hfac : ((2 * n).factorial : ℂ) ≠ 0 := Nat.cast_ne_zero.mpr (2 * n).factorial_ne_zero + field_simp + have hodd : HasSum (fun n => A (2 * n + 1)) 0 := by + simp only [A, iteratedDeriv_exp_mul_sq_zero_odd, zero_mul, zero_div] + exact hasSum_zero + have h := heven.even_add_odd hodd + rw [add_zero, ← congrFun (iteratedDeriv_heatOperator hf horder hρ t k) 0] at h + exact h + +end RealRooted diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Star.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Star.lean new file mode 100644 index 000000000..6a22714ae --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Star.lean @@ -0,0 +1,36 @@ +/- +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.Analysis.Complex.HeatOperator.Basic +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Conjugation symmetry of the heat operator + +A function respecting complex conjugation retains that symmetry after real-time +heat evolution. The simultaneous time/space conjugation formula is valid even +without a convergence hypothesis, since conjugation commutes with total sums. +-/ + +public section + +open scoped ComplexConjugate + +namespace Complex + +/-- Simultaneous conjugation of time and space commutes with the heat operator +on a function that respects conjugation. -/ +theorem heatOperator_conj {f : ℂ → ℂ} (hf : ∀ z, f (conj z) = conj (f z)) (t z : ℂ) : + heatOperator (conj t) f (conj z) = conj (heatOperator t f z) := by + unfold heatOperator + rw [conj_tsum] + apply tsum_congr + intro n + rw [iteratedDeriv_conj hf] + simp only [map_mul, map_div₀, map_pow, map_neg, map_natCast] + +end Complex diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperator.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperator.lean new file mode 100644 index 000000000..39b949835 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperator.lean @@ -0,0 +1,53 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlow +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialCoefficients +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Hermite.GaussianHeatOperator +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Star +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Entire heat evolution preserves Laguerre--Pólya membership + +For every nonnegative real time, the convergent backward heat series of an +LP input of order below two remains LP. Gaussian parity identifies each +coefficient series, and Pólya's infinite differential-symbol theorem supplies +the closure result. Zero time and the identically zero input are included. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- The entire backward heat operator preserves the LP class at every +nonnegative real time for inputs of growth order strictly below two. -/ +theorem IsLaguerrePolya.heatOperator {f : ℂ → ℂ} (hf : IsLaguerrePolya f) + {ρ : ℝ} (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) {t : ℝ} (ht : 0 ≤ t) : + IsLaguerrePolya (Complex.heatOperator (t : ℂ) f) := by + have hφ := isLaguerrePolya_exp_neg_mul_sq ht + have hc : ∀ k, Tendsto (fun n => ∑ j ∈ Finset.range n, + (iteratedDeriv j (fun z => exp (-(t : ℂ) * z ^ 2)) 0).re * + (iteratedDeriv (k + j) f 0).re / j.factorial) atTop + (𝓝 ((iteratedDeriv k (Complex.heatOperator (t : ℂ) f) 0).re)) := by + intro k + have h := Complex.hasSum_re (hasSum_gaussian_differential hf.differentiable horder hρ t k) + have hreal (j : ℕ) : + (iteratedDeriv j (fun z => exp (-(t : ℂ) * z ^ 2)) 0).im = 0 := by + rw [← Complex.ofReal_re_iteratedDeriv_zero hφ.conj j] + simp + simpa only [div_natCast_re, mul_re, hreal, zero_mul, sub_zero] using h.tendsto_sum_nat + have hconj (z : ℂ) : Complex.heatOperator (t : ℂ) f (starRingEnd ℂ z) = + starRingEnd ℂ (Complex.heatOperator (t : ℂ) f z) := by + simpa only [conj_ofReal] using Complex.heatOperator_conj hf.conj (t : ℂ) z + rw [eq_complexExpGeneratingFunction_of_iteratedDeriv + (differentiable_heatOperator hf.differentiable horder hρ t) + (fun k => (Complex.ofReal_re_iteratedDeriv_zero hconj k).symm)] + exact hφ.infinite_differential_coefficients hf hc + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorSimple.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorSimple.lean new file mode 100644 index 000000000..689723133 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorSimple.lean @@ -0,0 +1,52 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlowStrict +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Nonzero + +/-! +# Simple real zeros under entire backward heat evolution + +Craven–Csordas (1994), Theorem 3.10: for a nonzero LP entire function of order +strictly below two, every positive backward heat time gives only simple real +zeros. The actual convergent heat series, its LP closure, its parameter heat +equations, and nonzero output have all been established before this application. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- Every zero of a positive-time entire heat image of a nonzero LP function +of order below two has nonzero derivative. -/ +theorem IsLaguerrePolya.deriv_heatOperator_ne_zero {f : ℂ → ℂ} (hf : IsLaguerrePolya f) + {ρ : ℝ} (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (hf0 : f ≠ 0) + {t : ℝ} (ht : 0 < t) {z : ℂ} (hz : Complex.heatOperator (t : ℂ) f z = 0) : + _root_.deriv (Complex.heatOperator (t : ℂ) f) z ≠ 0 := by + apply deriv_ne_zero_of_laguerrePolya_heat_flow_complex + (u := fun s => Complex.heatOperator (s : ℂ) f) _ _ _ hz + · filter_upwards [eventually_gt_nhds ht] with s hs + exact hf.heatOperator horder hρ hs.le + · simpa only [Pi.zero_apply] using + Function.ne_iff.mp (Complex.heatOperator_ne_zero hf.differentiable horder hρ hf0 t) + · intro x n + exact hasDerivAt_re_iteratedDeriv_heatOperator hf.differentiable horder hρ t x n + +/-- Craven–Csordas (1994), Theorem 3.10: positive backward heat evolution of a +nonzero LP input of order below two remains nonzero LP and has only simple real zeros. -/ +theorem IsLaguerrePolya.heatOperator_simple_zeros {f : ℂ → ℂ} (hf : IsLaguerrePolya f) + {ρ : ℝ} (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) (hf0 : f ≠ 0) + {t : ℝ} (ht : 0 < t) : + IsLaguerrePolya (Complex.heatOperator (t : ℂ) f) ∧ Complex.heatOperator (t : ℂ) f ≠ 0 ∧ + ∀ z, Complex.heatOperator (t : ℂ) f z = 0 → + z.im = 0 ∧ _root_.deriv (Complex.heatOperator (t : ℂ) f) z ≠ 0 := by + have hLP := hf.heatOperator horder hρ ht.le + have hn := Complex.heatOperator_ne_zero hf.differentiable horder hρ hf0 t + exact ⟨hLP, hn, fun _ hz => ⟨hLP.im_eq_zero_of_eq_zero hn hz, + hf.deriv_heatOperator_ne_zero horder hρ hf0 ht hz⟩⟩ + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/HeatOperator.lean b/RealRooted/RiemannHypothesis/HeatOperator.lean new file mode 100644 index 000000000..ecb62656a --- /dev/null +++ b/RealRooted/RiemannHypothesis/HeatOperator.lean @@ -0,0 +1,41 @@ +module + +public import RealRooted.RiemannHypothesis +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperatorSimple +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative + +/-! +# RH-conditional simple zeros of entire xi heat images + +Under Mathlib's RH, every derivative of the normalized square-variable xi +function has a nonzero LP backward heat image with only simple real zeros at +every positive time. This does not assert simplicity of the time-zero xi zeros. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- RH gives simple real zeros for every positive-time entire heat image of +every derivative of the normalized square-variable xi function. -/ +theorem heatOperator_riemannXiTheta_simple_zeros (hRH : RiemannHypothesis) (n : ℕ) + {t : ℝ} (ht : 0 < t) : + IsLaguerrePolya (heatOperator (t : ℂ) (iteratedDeriv n riemannXiTheta)) ∧ + heatOperator (t : ℂ) (iteratedDeriv n riemannXiTheta) ≠ 0 ∧ + ∀ z, heatOperator (t : ℂ) (iteratedDeriv n riemannXiTheta) z = 0 → + z.im = 0 ∧ _root_.deriv (heatOperator (t : ℂ) (iteratedDeriv n riemannXiTheta)) z ≠ 0 := by + have hf := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n + apply hf.heatOperator_simple_zeros + (orderLE_half_riemannXiTheta.iteratedDeriv differentiable_riemannXiTheta n) (by norm_num) + _ ht + intro hz + exact iteratedDeriv_riemannXiTheta_zero_ne_zero n (congrFun hz 0) + +end RealRooted From cce1a4e715d1b4ed02a4157ab863e8c9618ae94c 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 17:11:48 +0000 Subject: [PATCH 43/56] feat: add moment measures and entire heat-flow preservation --- RealRooted.lean | 29 +++ RealRooted/Hermite/GaussianCoefficients.lean | 10 +- RealRooted/Hermite/GaussianHeatOperator.lean | 6 +- .../Analysis/Complex/HeatOperator/Basic.lean | 4 +- .../Analysis/Complex/HeatOperator/Bounds.lean | 6 +- .../Complex/HeatOperator/Nonzero.lean | 6 +- .../Complex/HeatOperator/TimeDerivative.lean | 4 +- .../Analysis/Complex/LinearProduct.lean | 47 +++++ .../Integral/Bochner/PowerSum.lean | 108 ++++++++++++ .../LaguerrePolya/CanonicalProduct.lean | 29 +-- .../LaguerrePolya/HeatFlowStrict.lean | 4 +- .../LaguerrePolya/HeatOperator.lean | 2 + .../LaguerrePolya/HeatOperatorSimple.lean | 8 +- .../PolyaSchur/LaguerrePolya/Jensen.lean | 8 +- .../LaguerrePolya/LogDerivativeMeasure.lean | 58 ++++++ .../LaguerrePolya/PowerSumMoments.lean | 165 ++++++++++++++++++ RealRooted/Production.lean | 32 ++++ .../RiemannHypothesis/HeatOperator.lean | 4 +- .../RiemannHypothesis/MomentMeasure.lean | 38 ++++ scripts/import_architecture.json | 4 +- scripts/mathlib_shims.json | 150 ++++++++++++++++ 21 files changed, 680 insertions(+), 42 deletions(-) create mode 100644 RealRooted/Mathlib/Analysis/Complex/LinearProduct.lean create mode 100644 RealRooted/Mathlib/MeasureTheory/Integral/Bochner/PowerSum.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMeasure.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PowerSumMoments.lean create mode 100644 RealRooted/RiemannHypothesis/MomentMeasure.lean diff --git a/RealRooted.lean b/RealRooted.lean index fb02116f1..3d6d37bc4 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2552,3 +2552,32 @@ public import RealRooted.RiemannHypothesis.JensenInterlacing public import RealRooted.MultiplierSequence.JensenLimit public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.CoefficientLimit public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FormalJensen +public import RealRooted.EulerOperator.RootCounting +public import RealRooted.Mathlib.Algebra.Polynomial.Expand.PositiveRoots +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialRange +public import RealRooted.Mathlib.Analysis.Calculus.LocalExtr.PolynomialEuler +public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Subquadratic +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Bounds +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Derivative +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Nonzero +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.TimeDerivative +public import RealRooted.Mathlib.Analysis.Complex.LinearProduct +public import RealRooted.Mathlib.Analysis.SpecificLimits.DescFactorialWeights +public import RealRooted.Mathlib.Analysis.SpecificLimits.WeightedSum +public import RealRooted.Mathlib.MeasureTheory.Integral.Bochner.PowerSum +public import RealRooted.MultiplierSequence.JensenDifferential +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlowStrict +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialCoefficients +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IteratedDerivative +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogDerivativeMeasure +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PowerSumMoments +public import RealRooted.RiemannHypothesis.MomentMeasure +public import RealRooted.EulerOperator.ArithmeticSections +public import RealRooted.Mathlib.Algebra.Polynomial.Expand.Contract +public import RealRooted.Hermite.GaussianCoefficients +public import RealRooted.Hermite.GaussianHeatOperator +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Star +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperator +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperatorSimple +public import RealRooted.RiemannHypothesis.HeatOperator diff --git a/RealRooted/Hermite/GaussianCoefficients.lean b/RealRooted/Hermite/GaussianCoefficients.lean index 7a39380e4..c62861e8c 100644 --- a/RealRooted/Hermite/GaussianCoefficients.lean +++ b/RealRooted/Hermite/GaussianCoefficients.lean @@ -1,6 +1,14 @@ module -public import RealRooted.Hermite.GeneratingFunction +public import Mathlib.Analysis.Complex.Basic + +public import Mathlib.Analysis.Complex.Exponential + +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs + +public import RealRooted.Hermite.Homogeneous + +import RealRooted.Hermite.GeneratingFunction import Mathlib.Data.Nat.Factorial.Basic /-! diff --git a/RealRooted/Hermite/GaussianHeatOperator.lean b/RealRooted/Hermite/GaussianHeatOperator.lean index acaa9c957..806fb4bf1 100644 --- a/RealRooted/Hermite/GaussianHeatOperator.lean +++ b/RealRooted/Hermite/GaussianHeatOperator.lean @@ -1,7 +1,9 @@ module -public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Derivative -public import RealRooted.Hermite.GaussianCoefficients +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic + +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Derivative +import RealRooted.Hermite.GaussianCoefficients import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative import Mathlib.Topology.Algebra.InfiniteSum.NatInt diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Basic.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Basic.lean index 3fcea75ef..be685bf7c 100644 --- a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Basic.lean +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Basic.lean @@ -5,7 +5,9 @@ Authors: The RealRooted contributors -/ module -public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Bounds +public import TauCeti.Analysis.Complex.GrowthOrder + +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Bounds import Mathlib.Analysis.Normed.Group.FunctionSeries import Mathlib.Topology.UniformSpace.UniformApproximation import Mathlib.Analysis.Normed.Group.Constructions diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Bounds.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Bounds.lean index e8a898f4c..ae747a8e1 100644 --- a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Bounds.lean +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Bounds.lean @@ -5,8 +5,10 @@ Authors: The RealRooted contributors -/ module -public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Subquadratic -public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +public import TauCeti.Analysis.Complex.GrowthOrder + +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Subquadratic +import Mathlib.Analysis.Calculus.IteratedDeriv.Defs import Mathlib.Analysis.Complex.Liouville import Mathlib.Data.Nat.Factorial.Basic diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Nonzero.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Nonzero.lean index 94b4c2000..273e01a61 100644 --- a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Nonzero.lean +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Nonzero.lean @@ -5,7 +5,11 @@ Authors: The RealRooted contributors -/ module -public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.TimeDerivative +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Derivative + +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic + +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.TimeDerivative import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative import Mathlib.Analysis.Analytic.Order diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeDerivative.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeDerivative.lean index b97328f34..1b7fb4aaf 100644 --- a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeDerivative.lean +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeDerivative.lean @@ -5,7 +5,9 @@ Authors: The RealRooted contributors -/ module -public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Derivative +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic + +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Derivative import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff import Mathlib.Analysis.Complex.RealDeriv diff --git a/RealRooted/Mathlib/Analysis/Complex/LinearProduct.lean b/RealRooted/Mathlib/Analysis/Complex/LinearProduct.lean new file mode 100644 index 000000000..3e9ded4a1 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/LinearProduct.lean @@ -0,0 +1,47 @@ +/- +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.Complex.Basic +import Mathlib.Topology.UniformSpace.LocallyUniformConvergence +import Mathlib.Analysis.Normed.Module.MultipliableUniformlyOn +import Mathlib.Analysis.Normed.Module.FiniteDimension + +/-! +# Locally uniform convergence of linear products + +Summable real slopes define locally uniformly convergent products of linear +factors on the complex plane. +-/ + +public section + +open Filter Topology + +namespace Complex + +/-- Uniform convergence on every closed ball centred at `0` gives local uniform convergence. -/ +theorem tendstoLocallyUniformly_of_closedBall {F : ℕ → ℂ → ℂ} {f : ℂ → ℂ} + (h : ∀ R : ℝ, TendstoUniformlyOn F f atTop (Metric.closedBall 0 R)) : + TendstoLocallyUniformly F f atTop := by + intro u hu x + refine ⟨Metric.closedBall 0 (‖x‖ + 1), ?_, h (‖x‖ + 1) u hu⟩ + apply Metric.closedBall_mem_nhds_of_mem + simp + +/-- The partial products of `∏ₖ (1 + yₖ z)` converge locally uniformly when `∑ |yₖ| < ∞`. -/ +theorem tendstoLocallyUniformly_prod_one_add (y : ℕ → ℝ) (hy : Summable y) : + TendstoLocallyUniformly (fun n (z : ℂ) => ∏ k ∈ Finset.range n, (1 + (y k : ℂ) * z)) + (fun z => ∏' k, (1 + (y k : ℂ) * z)) atTop := by + refine tendstoLocallyUniformly_of_closedBall fun R => ?_ + refine (Summable.hasProdUniformlyOn_nat_one_add (f := fun k (z : ℂ) => (y k : ℂ) * z) + (isCompact_closedBall 0 R) (hy.norm.mul_right R) ?_ + (fun n => by fun_prop)).tendstoUniformlyOn_finsetRange + refine Eventually.of_forall fun n z hz => ?_ + rw [norm_mul, Complex.norm_real] + exact mul_le_mul_of_nonneg_left (by simpa using hz) (norm_nonneg _) + +end Complex diff --git a/RealRooted/Mathlib/MeasureTheory/Integral/Bochner/PowerSum.lean b/RealRooted/Mathlib/MeasureTheory/Integral/Bochner/PowerSum.lean new file mode 100644 index 000000000..dbf5b1a85 --- /dev/null +++ b/RealRooted/Mathlib/MeasureTheory/Integral/Bochner/PowerSum.lean @@ -0,0 +1,108 @@ +/- +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.MeasureTheory.Integral.Bochner.Basic + +import Mathlib.MeasureTheory.Integral.Bochner.SumMeasure +import Mathlib.Analysis.Asymptotics.Lemmas +import Mathlib.Analysis.Normed.Module.FiniteDimension + +/-! +# Positive atomic measures for power sums + +A summable nonnegative sequence supplies a finite positive measure with compact +support. Adding a mass at zero gives the measure occurring in logarithmic +derivative moment representations of Type-I entire functions. +-/ + +public section + +open Filter Topology MeasureTheory + +namespace MeasureTheory + +/-- Positive powers of a summable real sequence remain summable. -/ +private theorem summable_mul_self_pow {a : ℕ → ℝ} (ha : Summable a) (k : ℕ) : + Summable (fun i => a i * a i ^ k) := + ha.norm.mul_tendsto_const (ha.tendsto_cofinite_zero.pow k) + +/-- The discrete measure with mass `a i` at the nonnegative point `a i` +has finite moments whenever the sequence is summable. -/ +theorem integrable_pow_sum_smul_dirac {a : ℕ → ℝ} + (ha : ∀ i, 0 ≤ a i) (hs : Summable a) (k : ℕ) : + Integrable (fun x : ℝ => x ^ k) + (Measure.sum (fun i => ENNReal.ofReal (a i) • Measure.dirac (a i))) := by + apply integrable_sum_dirac (fun _ => ENNReal.ofReal_ne_top) + simpa only [ENNReal.toReal_ofReal (ha _), Real.norm_eq_abs, + abs_of_nonneg (pow_nonneg (ha _) _)] using summable_mul_self_pow hs k + +/-- The discrete measure weighted by a summable nonnegative sequence is finite. -/ +theorem isFiniteMeasure_sum_smul_dirac {a : ℕ → ℝ} + (ha : ∀ i, 0 ≤ a i) (hs : Summable a) : + IsFiniteMeasure (Measure.sum (fun i => ENNReal.ofReal (a i) • Measure.dirac (a i))) := by + exact (integrable_const_iff_isFiniteMeasure (by norm_num : (1 : ℝ) ≠ 0)).mp + (by simpa only [pow_zero] using integrable_pow_sum_smul_dirac ha hs 0) + +/-- The moments of the weighted atomic measure are the next power sums. -/ +theorem integral_pow_sum_smul_dirac {a : ℕ → ℝ} (ha : ∀ i, 0 ≤ a i) (k : ℕ) : + (∫ x : ℝ, x ^ k ∂Measure.sum + (fun i => ENNReal.ofReal (a i) • Measure.dirac (a i))) = + ∑' i, a i ^ (k + 1) := by + rw [integral_sum_dirac (fun _ => ENNReal.ofReal_ne_top)] + apply tsum_congr + intro i + simp only [ENNReal.toReal_ofReal (ha i), smul_eq_mul, pow_succ] + ring + +/-- All atoms lie in the compact interval from zero to the sum of their masses. -/ +theorem sum_smul_dirac_compl_Icc_eq_zero {a : ℕ → ℝ} + (ha : ∀ i, 0 ≤ a i) (hs : Summable a) : + (Measure.sum (fun i => ENNReal.ofReal (a i) • Measure.dirac (a i))) + (Set.Icc 0 (∑' i, a i))ᶜ = 0 := by + rw [Measure.sum_apply _ measurableSet_Icc.compl] + apply tsum_eq_zero_iff.mpr + intro i + have hi : a i ∈ Set.Icc 0 (∑' j, a j) := + ⟨ha i, hs.le_tsum i (fun j _ => ha j)⟩ + simp [Measure.dirac_apply', measurableSet_Icc, hi] + + +/-- Nonnegative summable atoms, with an optional mass at zero, give a compactly +supported positive measure with all moments equal to the corresponding power sums. -/ +theorem exists_measure_power_sum_moments {a : ℕ → ℝ} {gamma : ℝ} + (ha : ∀ i, 0 ≤ a i) (hs : Summable a) (hg : 0 ≤ gamma) : + ∃ mu : Measure ℝ, + mu = ENNReal.ofReal gamma • Measure.dirac 0 + + Measure.sum (fun i => ENNReal.ofReal (a i) • Measure.dirac (a i)) ∧ + IsFiniteMeasure mu ∧ mu (Set.Icc 0 (∑' i, a i))ᶜ = 0 ∧ + ∀ k : ℕ, Integrable (fun x : ℝ => x ^ k) mu ∧ + (∫ x : ℝ, x ^ k ∂mu) = gamma * 0 ^ k + ∑' i, a i ^ (k + 1) := by + let nu := Measure.sum (fun i => ENNReal.ofReal (a i) • Measure.dirac (a i)) + let mu : Measure ℝ := ENNReal.ofReal gamma • Measure.dirac 0 + nu + have hfirst (k : ℕ) : + Integrable (fun x : ℝ => x ^ k) (ENNReal.ofReal gamma • Measure.dirac 0) := + (integrable_dirac (by simp)).smul_measure ENNReal.ofReal_ne_top + have hsecond (k : ℕ) : Integrable (fun x : ℝ => x ^ k) nu := + integrable_pow_sum_smul_dirac ha hs k + have hint (k : ℕ) : Integrable (fun x : ℝ => x ^ k) mu := + (hfirst k).add_measure (hsecond k) + have hfinite : IsFiniteMeasure mu := + (integrable_const_iff_isFiniteMeasure (by norm_num : (1 : ℝ) ≠ 0)).mp + (by simpa only [pow_zero] using hint 0) + refine ⟨mu, rfl, hfinite, ?_, fun k => ⟨hint k, ?_⟩⟩ + · have hzero : (0 : ℝ) ∈ Set.Icc 0 (∑' i, a i) := ⟨le_rfl, tsum_nonneg ha⟩ + dsimp only [mu, nu] + rw [add_apply, sum_smul_dirac_compl_Icc_eq_zero ha hs, add_zero] + simp [Measure.dirac_apply', measurableSet_Icc, hzero] + · change (∫ x : ℝ, x ^ k ∂(ENNReal.ofReal gamma • Measure.dirac 0 + nu)) = _ + rw [integral_add_measure (hfirst k) (hsecond k), integral_smul_measure, integral_dirac, + ENNReal.toReal_ofReal hg] + rw [show (∫ x : ℝ, x ^ k ∂nu) = ∑' i, a i ^ (k + 1) from + integral_pow_sum_smul_dirac ha k] + rfl + +end MeasureTheory diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/CanonicalProduct.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/CanonicalProduct.lean index 723999a0c..76fd5f994 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/CanonicalProduct.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/CanonicalProduct.lean @@ -1,10 +1,12 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Complex.Exponential + +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI import RealRooted.RootContinuity -public import Mathlib.Analysis.SpecialFunctions.Complex.LogBounds -import Mathlib.Analysis.Normed.Module.MultipliableUniformlyOn +import Mathlib.Analysis.SpecialFunctions.Complex.LogBounds +import RealRooted.Mathlib.Analysis.Complex.LinearProduct /-! # Products in the Laguerre–Pólya class @@ -317,15 +319,6 @@ private lemma realRootedOrZero_approx (c : ℝ) (m : ℕ) {a : ℝ} (ha : 0 ≤ /-! ### The Type-I approximants -/ -/-- Uniform convergence on every closed ball centred at `0` gives local uniform convergence. -/ -private lemma tendstoLocallyUniformly_of_closedBall {F : ℕ → ℂ → ℂ} {f : ℂ → ℂ} - (h : ∀ R : ℝ, TendstoUniformlyOn F f atTop (Metric.closedBall 0 R)) : - TendstoLocallyUniformly F f atTop := by - intro u hu x - refine ⟨Metric.closedBall 0 (‖x‖ + 1), ?_, h (‖x‖ + 1) u hu⟩ - apply Metric.closedBall_mem_nhds_of_mem - simp - /-- `(1 + σ z / n) ^ n → exp (σ z)` uniformly on closed balls. -/ private lemma tendstoUniformlyOn_one_add_div_pow (σ R : ℝ) : TendstoUniformlyOn (fun (n : ℕ) (z : ℂ) => (1 + (σ : ℂ) * z / n) ^ n) @@ -357,18 +350,6 @@ private lemma tendstoUniformlyOn_one_add_div_pow (σ R : ℝ) : filter_upwards [hlarge] with n ⟨hn, hn2⟩ z hz exact (one_add_div_pow_eq_exp hn (by linarith [hbd z hz])).symm -/-- The partial products of `∏ₖ (1 + yₖ z)` converge locally uniformly when `∑ |yₖ| < ∞`. -/ -private lemma tendstoLocallyUniformly_prod_one_add (y : ℕ → ℝ) (hy : Summable y) : - TendstoLocallyUniformly (fun n (z : ℂ) => ∏ k ∈ Finset.range n, (1 + (y k : ℂ) * z)) - (fun z => ∏' k, (1 + (y k : ℂ) * z)) atTop := by - refine tendstoLocallyUniformly_of_closedBall fun R => ?_ - refine (Summable.hasProdUniformlyOn_nat_one_add (f := fun k (z : ℂ) => (y k : ℂ) * z) - (isCompact_closedBall 0 R) (hy.norm.mul_right R) ?_ - (fun n => by fun_prop)).tendstoUniformlyOn_finsetRange - refine Eventually.of_forall fun n z hz => ?_ - rw [norm_mul, Complex.norm_real] - exact mul_le_mul_of_nonneg_left (by simpa using hz) (norm_nonneg _) - /-- The Type-I approximants `c z ^ m (1 + σ z / n) ^ n ∏_{k < n} (1 + yₖ z)` converge locally uniformly to `c z ^ m e^(σ z) ∏ₖ (1 + yₖ z)`. -/ private lemma tendstoLocallyUniformly_typeIApprox (c : ℝ) (m : ℕ) (σ : ℝ) (y : ℕ → ℝ) diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatFlowStrict.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatFlowStrict.lean index 1089f36b4..4fe5e4b95 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatFlowStrict.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatFlowStrict.lean @@ -1,8 +1,10 @@ module +public import Mathlib.Topology.Algebra.Module.ModuleTopology + public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs -public import Mathlib.Analysis.Calculus.Deriv.Basic +import Mathlib.Analysis.Calculus.Deriv.Basic import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IteratedDerivative import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperator.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperator.lean index 39b949835..cc3da0ab6 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperator.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperator.lean @@ -1,5 +1,7 @@ module +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Derivative + public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlow diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorSimple.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorSimple.lean index 689723133..c5f7642a3 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorSimple.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorSimple.lean @@ -1,6 +1,12 @@ module -public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperator +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.TimeDerivative + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya + +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic + +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperator import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlowStrict import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Jensen.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Jensen.lean index c88e183fd..797645c51 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Jensen.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/Jensen.lean @@ -1,6 +1,6 @@ module -import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IteratedDerivative public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Operator import RealRooted.Mathlib.Algebra.Polynomial.Reverse import Mathlib.Analysis.Complex.TaylorSeries @@ -53,10 +53,8 @@ theorem IsLaguerrePolya.jensenPolynomial_splits {f : ℂ → ℂ} /-- Every derivative of a Laguerre–Pólya function belongs to the same class. -/ theorem IsLaguerrePolya.iterate_deriv {f : ℂ → ℂ} - (hf : IsLaguerrePolya f) (n : ℕ) : IsLaguerrePolya (iteratedDeriv n f) := by - induction n with - | zero => simpa using hf - | succ n ih => simpa [iteratedDeriv_succ] using ih.deriv + (hf : IsLaguerrePolya f) (n : ℕ) : IsLaguerrePolya (iteratedDeriv n f) := + hf.iteratedDeriv n /-- Jensen's theorem also applies to every shift of the Taylor data. -/ theorem IsLaguerrePolya.jensenPolynomial_shift_splits {f : ℂ → ℂ} diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMeasure.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMeasure.lean new file mode 100644 index 000000000..fff765573 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMeasure.lean @@ -0,0 +1,58 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.Analysis.Calculus.LogDeriv +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeIFactorization +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PowerSumMoments +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.MeasureTheory.Integral.Bochner.PowerSum +import RealRooted.Mathlib.Analysis.Calculus.LogDeriv.Star +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Positive measures for logarithmic derivatives of Type-I functions + +The signed Taylor coefficients of the analytic logarithmic derivative of a +Type-I entire function nonzero at zero are moments of a finite positive measure +with compact nonnegative support. The measure has exponential mass at zero and +mass equal to each linear slope at that slope. Repeated slopes count their +multiplicities. This proves the measure-existence direction of Sokal (2022), +Appendix A, Proposition 6, https://doi.org/10.1016/j.jmaa.2022.126432. + +The identity uses the actual complex coefficients, not only their real parts. +-/ + +public section + +open Complex MeasureTheory + +namespace RealRooted + +/-- The signed logarithmic-derivative Taylor coefficients of a Type-I entire +function are the moments of an explicit finite positive atomic measure. -/ +theorem IsLaguerrePolyaTypeI.exists_logDeriv_moment_measure + {f : ℂ → ℂ} (hf : IsLaguerrePolyaTypeI f) (h0 : f 0 ≠ 0) : + ∃ (gamma : ℝ) (a : ℕ → ℝ) (mu : Measure ℝ), + 0 ≤ gamma ∧ (∀ i, 0 ≤ a i) ∧ Summable a ∧ + mu = ENNReal.ofReal gamma • Measure.dirac 0 + + Measure.sum (fun i => ENNReal.ofReal (a i) • Measure.dirac (a i)) ∧ + IsFiniteMeasure mu ∧ mu (Set.Icc 0 (∑' i, a i))ᶜ = 0 ∧ + ∀ k : ℕ, Integrable (fun x : ℝ => x ^ k) mu ∧ + (-1 : ℂ) ^ k * iteratedDeriv k (logDeriv f) 0 / k.factorial = + ((∫ x : ℝ, x ^ k ∂mu : ℝ) : ℂ) := by + obtain ⟨gamma, a, hg, ha, hs, heq⟩ := hf.exists_eq_exp_mul_prod h0 + obtain ⟨mu, hmu, hfinite, hsupport, hmom⟩ := exists_measure_power_sum_moments ha hs hg + refine ⟨gamma, a, mu, hg, ha, hs, hmu, hfinite, hsupport, fun k => ⟨(hmom k).1, ?_⟩⟩ + have hpower := signed_logDeriv_exp_linear_product h0 gamma a hs k + rw [← heq] at hpower + have heqreal := hpower.trans (hmom k).2.symm + have hreal : ((iteratedDeriv k (logDeriv f) 0).re : ℂ) = + iteratedDeriv k (logDeriv f) 0 := + ofReal_re_iteratedDeriv_zero (logDeriv_conj hf.toLaguerrePolya.conj) k + have h := congrArg (fun r : ℝ => (r : ℂ)) heqreal + simpa only [ofReal_div, ofReal_mul, ofReal_pow, ofReal_neg, ofReal_one, + ofReal_natCast, hreal] using h + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PowerSumMoments.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PowerSumMoments.lean new file mode 100644 index 000000000..5286b18d2 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PowerSumMoments.lean @@ -0,0 +1,165 @@ +module + +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.Analysis.Complex.Exponential +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Calculus.LogDeriv +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Analytic.TaylorSeries +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import RealRooted.Mathlib.Analysis.Complex.LinearProduct +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff +import RealRooted.Mathlib.Algebra.Polynomial.LinearFactors +import RealRooted.Mathlib.RingTheory.PowerSeries.NewtonSums +import RealRooted.Mathlib.RingTheory.PowerSeries.LogarithmPositive +import Mathlib.Analysis.Asymptotics.Lemmas +import TauCeti.Analysis.SpecialFunctions.Complex.Exp.LogDeriv + +/-! +# Logarithmic derivative coefficients as power sums + +For a convergent linear product, the signed Taylor coefficients of its +logarithmic derivative are the power sums of the slopes. The proof passes +from finite products through coefficientwise continuity of the formal +logarithm, then identifies the analytic logarithmic derivative. +-/ + +public section + +open Complex Polynomial Filter Topology + +namespace RealRooted + +/-- Signed logarithmic coefficients of a finite linear product are power sums. -/ +private theorem signed_coeff_logOf_linear_product (s : Finset ℕ) (a : ℕ → ℝ) + {k : ℕ} (hk : k ≠ 0) : + (-1 : ℝ) ^ (k + 1) * k * PowerSeries.coeff k + (PowerSeries.logOf (∏ i ∈ s, (1 + PowerSeries.C (a i) * PowerSeries.X))) = + ∑ i ∈ s, a i ^ k := by + have h := PowerSeries.coeff_neg_logOf_prod_one_sub_C_mul_X s (fun i => -a i) hk + simp only [map_neg, neg_mul, sub_neg_eq_add] at h + have hsum : (∑ i ∈ s, (-a i) ^ k) = (-1 : ℝ) ^ k * ∑ i ∈ s, a i ^ k := by + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro i _ + exact neg_pow (a i) k + rw [hsum] at h + have hkR : (k : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hk + have heq := (eq_div_iff hkR).mp h + have hsign : (-1 : ℝ) ^ k * (-1) ^ k = 1 := by rw [← mul_pow]; norm_num + rw [pow_succ] + calc + _ = (-1 : ℝ) ^ k * + (-PowerSeries.coeff k (PowerSeries.logOf + (∏ i ∈ s, (1 + PowerSeries.C (a i) * PowerSeries.X))) * k) := by ring + _ = (-1 : ℝ) ^ k * ((-1 : ℝ) ^ k * ∑ i ∈ s, a i ^ k) := by rw [heq] + _ = _ := by rw [← mul_assoc, hsign, one_mul] + +/-- Real linear partial products converge as real polynomial approximants. -/ +private theorem tendsto_linear_polynomials (a : ℕ → ℝ) (hs : Summable a) : + TendstoLocallyUniformly (fun n z => + ((∏ i ∈ Finset.range n, (1 + C (a i) * X : ℝ[X])).map ofRealHom).eval z) + (fun z => ∏' i, (1 + (a i : ℂ) * z)) atTop := by + simpa only [Polynomial.map_prod, Polynomial.map_add, Polynomial.map_one, + Polynomial.map_mul, Polynomial.map_C, Polynomial.map_X, Polynomial.eval_prod, + Polynomial.eval_add, Polynomial.eval_one, Polynomial.eval_mul, + Polynomial.eval_C, Polynomial.eval_X, ofRealHom_eq_coe] using + Complex.tendstoLocallyUniformly_prod_one_add a hs + +/-- A summable real linear product is an LP function, without sign restrictions on the slopes. -/ +private theorem isLaguerrePolya_linear_product (a : ℕ → ℝ) (hs : Summable a) : + IsLaguerrePolya (fun z => ∏' i, (1 + (a i : ℂ) * z)) := + ⟨fun n => ∏ i ∈ Finset.range n, (1 + C (a i) * X), + fun n => Or.inr (splits_prod_one_add_C_mul_X (Finset.range n) a), + tendsto_linear_polynomials a hs⟩ + +/-- Formal logarithmic coefficients of an infinite linear product are power sums. -/ +private theorem signed_coeff_logOf_linear_tprod (a : ℕ → ℝ) (hs : Summable a) + (k : ℕ) : + (-1 : ℝ) ^ (k + 1 + 1) * ((k + 1 : ℕ) : ℝ) * PowerSeries.coeff (k + 1) + (PowerSeries.logOf (PowerSeries.mk (fun j => + (iteratedDeriv j (fun z => ∏' i, (1 + (a i : ℂ) * z)) 0).re / j.factorial))) = + ∑' i, a i ^ (k + 1) := by + let p : ℕ → ℝ[X] := fun n => ∏ i ∈ Finset.range n, (1 + C (a i) * X) + let b : PowerSeries ℝ := PowerSeries.mk (fun j => + (iteratedDeriv j (fun z => ∏' i, (1 + (a i : ℂ) * z)) 0).re / j.factorial) + have hp0 (n : ℕ) : PowerSeries.constantCoeff (p n : PowerSeries ℝ) = 1 := by + simp [p, coeff_zero_eq_eval_zero, eval_prod] + have hb0 : PowerSeries.constantCoeff b = 1 := by simp [b] + have hcoeff (j : ℕ) : Tendsto + (fun n => PowerSeries.coeff j (p n : PowerSeries ℝ)) atTop + (𝓝 (PowerSeries.coeff j b)) := by + simpa only [p, b, PowerSeries.coeff_mk, Polynomial.coeff_coe, div_natCast_re] using + Polynomial.tendsto_coeff_of_tendstoLocallyUniformly (tendsto_linear_polynomials a hs) j + have hlim := (PowerSeries.tendsto_coeff_logOf_of_coeff_tendsto hp0 hb0 hcoeff + (k + 1)).const_mul ((-1 : ℝ) ^ (k + 1 + 1) * ((k + 1 : ℕ) : ℝ)) + have hfinite (n : ℕ) : + (-1 : ℝ) ^ (k + 1 + 1) * ((k + 1 : ℕ) : ℝ) * + PowerSeries.coeff (k + 1) (PowerSeries.logOf (p n : PowerSeries ℝ)) = + ∑ i ∈ Finset.range n, a i ^ (k + 1) := by + dsimp only [p] + rw [coe_prod_one_add_C_mul_X] + exact signed_coeff_logOf_linear_product _ a (Nat.succ_ne_zero k) + simp_rw [hfinite] at hlim + have hsum : Summable (fun i => a i ^ (k + 1)) := by + simpa only [pow_succ, mul_comm] using + hs.norm.mul_tendsto_const (hs.tendsto_cofinite_zero.pow k) + exact tendsto_nhds_unique hlim hsum.hasSum.tendsto_sum_nat + +/-- The signed analytic logarithmic-derivative coefficients of a summable +real linear product are exactly its positive-index power sums. -/ +theorem signed_logDeriv_linear_product (a : ℕ → ℝ) (hs : Summable a) (k : ℕ) : + (-1 : ℝ) ^ k * + (iteratedDeriv k (logDeriv (fun z => ∏' i, (1 + (a i : ℂ) * z))) 0).re / + k.factorial = ∑' i, a i ^ (k + 1) := by + let f : ℂ → ℂ := fun z => ∏' i, (1 + (a i : ℂ) * z) + have hf := isLaguerrePolya_linear_product a hs + have hreal (j : ℕ) : ((iteratedDeriv j f 0).re : ℂ) = iteratedDeriv j f 0 := + ofReal_re_iteratedDeriv_zero hf.conj j + have h := AnalyticAt.re_iteratedDeriv_logDeriv_eq_coeff_logOf + (hf.differentiable.analyticAt 0) (by simp) hreal k + have hm := signed_coeff_logOf_linear_tprod a hs k + change (-1 : ℝ) ^ k * (iteratedDeriv k (logDeriv f) 0).re / k.factorial = _ + rw [mul_div_assoc, h] + simp only [mul_zero, add_zero, tprod_one, one_re, mul_one] + rw [Nat.cast_add, Nat.cast_one, + show k + 1 + 1 = k + 2 by lia, pow_add] at hm + convert hm using 1 + ring + + +/-- A nonzero constant and a real exponential add only the constant moment +to the signed logarithmic-derivative power sums. The constant may be complex. -/ +theorem signed_logDeriv_exp_linear_product {c : ℂ} (hc : c ≠ 0) + (gamma : ℝ) (a : ℕ → ℝ) (hs : Summable a) (k : ℕ) : + (-1 : ℝ) ^ k * (iteratedDeriv k (logDeriv (fun z => + c * exp ((gamma : ℂ) * z) * ∏' i, (1 + (a i : ℂ) * z))) 0).re / k.factorial = + gamma * 0 ^ k + ∑' i, a i ^ (k + 1) := by + let P : ℂ → ℂ := fun z => ∏' i, (1 + (a i : ℂ) * z) + have hd : Differentiable ℂ P := (isLaguerrePolya_linear_product a hs).differentiable + have hP0 : P 0 ≠ 0 := by simp [P] + have heq : logDeriv (fun z => c * exp ((gamma : ℂ) * z) * P z) =ᶠ[𝓝 0] + (fun z => (gamma : ℂ) + logDeriv P z) := by + filter_upwards [hd.continuous.continuousAt.eventually_ne hP0] with z hz + rw [show (fun w => c * exp ((gamma : ℂ) * w) * P w) = + (fun w => c * (exp ((gamma : ℂ) * w) * P w)) by funext w; ring] + rw [logDeriv_const_mul _ _ hc, + TauCeti.logDeriv_cexp_mul hz (hd z) (by fun_prop), deriv_const_mul_id] + have hder := heq.iteratedDeriv_eq k + have hm := signed_logDeriv_linear_product a hs k + change (-1 : ℝ) ^ k * + (iteratedDeriv k (logDeriv (fun z => c * exp ((gamma : ℂ) * z) * P z)) 0).re / + k.factorial = _ + rw [hder] + cases k with + | zero => + simp only [iteratedDeriv_zero, pow_zero, one_mul, Nat.factorial_zero, + Nat.cast_one, div_one, mul_one, add_re, ofReal_re] + simpa only [iteratedDeriv_zero, pow_zero, one_mul, Nat.factorial_zero, + Nat.cast_one, div_one, P] using congrArg (fun x : ℝ => gamma + x) hm + | succ k => + rw [iteratedDeriv_const_add (Nat.succ_pos k)] + simpa only [zero_pow (Nat.succ_ne_zero k), mul_zero, zero_add, P] using hm + +end RealRooted diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index a3d10d600..b031f7efa 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2482,6 +2482,38 @@ public import RealRooted.MultiplierSequence.JensenLimit public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.CoefficientLimit public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FormalJensen +public import RealRooted.EulerOperator.RootCounting +public import RealRooted.Mathlib.Algebra.Polynomial.Expand.PositiveRoots +public import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialRange +public import RealRooted.Mathlib.Analysis.Calculus.LocalExtr.PolynomialEuler +public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Subquadratic +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Bounds +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Derivative +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Nonzero +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.TimeDerivative +public import RealRooted.Mathlib.Analysis.Complex.LinearProduct +public import RealRooted.Mathlib.Analysis.SpecificLimits.DescFactorialWeights +public import RealRooted.Mathlib.Analysis.SpecificLimits.WeightedSum +public import RealRooted.Mathlib.MeasureTheory.Integral.Bochner.PowerSum +public import RealRooted.MultiplierSequence.JensenDifferential +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatFlowStrict +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialCoefficients +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IteratedDerivative +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogDerivativeMeasure +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PowerSumMoments +public import RealRooted.RiemannHypothesis.MomentMeasure + +public import RealRooted.EulerOperator.ArithmeticSections +public import RealRooted.Mathlib.Algebra.Polynomial.Expand.Contract + +public import RealRooted.Hermite.GaussianCoefficients +public import RealRooted.Hermite.GaussianHeatOperator +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Star +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperator +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperatorSimple +public import RealRooted.RiemannHypothesis.HeatOperator + /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/HeatOperator.lean b/RealRooted/RiemannHypothesis/HeatOperator.lean index ecb62656a..b18b64564 100644 --- a/RealRooted/RiemannHypothesis/HeatOperator.lean +++ b/RealRooted/RiemannHypothesis/HeatOperator.lean @@ -1,6 +1,8 @@ module -public import RealRooted.RiemannHypothesis +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta + +import RealRooted.RiemannHypothesis public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperatorSimple diff --git a/RealRooted/RiemannHypothesis/MomentMeasure.lean b/RealRooted/RiemannHypothesis/MomentMeasure.lean new file mode 100644 index 000000000..26e58f41e --- /dev/null +++ b/RealRooted/RiemannHypothesis/MomentMeasure.lean @@ -0,0 +1,38 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta + +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogDerivativeMeasure +import RealRooted.RiemannHypothesis.TotalPositivity +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative + +/-! +# Positive moment measures for xi logarithmic derivatives under RH + +Under RH, the signed logarithmic-derivative coefficients of every derivative +of the square-variable xi function have an explicit finite positive measure +with compact nonnegative support. +-/ + +public section + +open Complex MeasureTheory + +namespace RealRooted + +/-- Under RH, every xi derivative has a positive compactly supported moment +measure for the actual signed complex coefficients of its logarithmic derivative. -/ +theorem exists_logDeriv_riemannXiTheta_moment_measure + (hRH : RiemannHypothesis) (s : ℕ) : + ∃ (gamma : ℝ) (a : ℕ → ℝ) (mu : Measure ℝ), + 0 ≤ gamma ∧ (∀ i, 0 ≤ a i) ∧ Summable a ∧ + mu = ENNReal.ofReal gamma • Measure.dirac 0 + + Measure.sum (fun i => ENNReal.ofReal (a i) • Measure.dirac (a i)) ∧ + IsFiniteMeasure mu ∧ mu (Set.Icc 0 (∑' i, a i))ᶜ = 0 ∧ + ∀ k : ℕ, Integrable (fun x : ℝ => x ^ k) mu ∧ + (-1 : ℂ) ^ k * iteratedDeriv k (logDeriv (iteratedDeriv s riemannXiTheta)) 0 / + k.factorial = ((∫ x : ℝ, x ^ k ∂mu : ℝ) : ℂ) := + (isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH s).exists_logDeriv_moment_measure + (iteratedDeriv_riemannXiTheta_zero_ne_zero s) + +end RealRooted diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index 39bd6541e..ca89e8354 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2542 + "max_modules": 2571 }, "RealRooted.Production": { - "max_modules": 2470 + "max_modules": 2499 }, "RealRooted.Tactic.Examples": { "max_modules": 844 diff --git a/scripts/mathlib_shims.json b/scripts/mathlib_shims.json index d479063d2..e1a52a352 100644 --- a/scripts/mathlib_shims.json +++ b/scripts/mathlib_shims.json @@ -3959,6 +3959,156 @@ ], "note": "Finite sums of locally uniformly convergent families; no upstream PR yet.", "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Algebra/Polynomial/Expand/PositiveRoots.lean" + ], + "modules": [ + "Mathlib.Algebra.Polynomial.Expand.PositiveRoots" + ], + "note": "Positive-root counts under polynomial power substitutions; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Calculus/IteratedDeriv/PolynomialRange.lean" + ], + "modules": [ + "Mathlib.Analysis.Calculus.IteratedDeriv.PolynomialRange" + ], + "note": "Padded finite sums for polynomial differential symbols; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Calculus/LocalExtr/PolynomialEuler.lean" + ], + "modules": [ + "Mathlib.Analysis.Calculus.LocalExtr.PolynomialEuler" + ], + "note": "Euler differential operators, Rolle separation and multiplicity root counts; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/GrowthOrder/Subquadratic.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.GrowthOrder.Subquadratic" + ], + "note": "Global arbitrarily small Gaussian bounds for subquadratic growth; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/HeatOperator/Basic.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.HeatOperator.Basic" + ], + "note": "Entire backward heat-series convergence, differential identities and injectivity below order two; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/HeatOperator/Bounds.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.HeatOperator.Bounds" + ], + "note": "Entire backward heat-series convergence, differential identities and injectivity below order two; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/HeatOperator/Derivative.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.HeatOperator.Derivative" + ], + "note": "Entire backward heat-series convergence, differential identities and injectivity below order two; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/HeatOperator/Nonzero.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.HeatOperator.Nonzero" + ], + "note": "Entire backward heat-series convergence, differential identities and injectivity below order two; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeDerivative.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.HeatOperator.TimeDerivative" + ], + "note": "Entire backward heat-series convergence, differential identities and injectivity below order two; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/LinearProduct.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.LinearProduct" + ], + "note": "Locally uniform convergence of summable real linear products; extracted from the canonical product construction; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/SpecificLimits/DescFactorialWeights.lean" + ], + "modules": [ + "Mathlib.Analysis.SpecificLimits.DescFactorialWeights" + ], + "note": "Regularity of falling-factorial weights in Jensen approximations; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/SpecificLimits/WeightedSum.lean" + ], + "modules": [ + "Mathlib.Analysis.SpecificLimits.WeightedSum" + ], + "note": "Regular finite weighted means and conditionally convergent series; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/MeasureTheory/Integral/Bochner/PowerSum.lean" + ], + "modules": [ + "Mathlib.MeasureTheory.Integral.Bochner.PowerSum" + ], + "note": "Finite positive atomic measures, compact support and power-sum moments; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Algebra/Polynomial/Expand/Contract.lean" + ], + "modules": [ + "Mathlib.Algebra.Polynomial.Expand.Contract" + ], + "note": "Degree bounds and inversion under polynomial contraction; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/HeatOperator/Star.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.HeatOperator.Star" + ], + "note": "Conjugation symmetry of the entire heat operator; no upstream PR yet.", + "speculative": true } ] } From d5154671cfacb1b66aba13efa7ed8eb712406273 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 16:59:33 +0000 Subject: [PATCH 44/56] feat: control local limits of Laguerre Polya functions --- .../LocalProductLimit.lean | 67 +++++++++++++++++++ .../LaguerreInequalities/ModulusBound.lean | 67 +++++++++++++++++++ .../Complex/LocallyUniformIteratedDeriv.lean | 34 ++++++++++ .../Polynomial/CoefficientMajorant.lean | 38 +++++++++++ .../PolyaSchur/LaguerrePolya/LocalLimit.lean | 67 +++++++++++++++++++ 5 files changed, 273 insertions(+) create mode 100644 RealRooted/LaguerreInequalities/LocalProductLimit.lean create mode 100644 RealRooted/LaguerreInequalities/ModulusBound.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/LocallyUniformIteratedDeriv.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/Polynomial/CoefficientMajorant.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LocalLimit.lean diff --git a/RealRooted/LaguerreInequalities/LocalProductLimit.lean b/RealRooted/LaguerreInequalities/LocalProductLimit.lean new file mode 100644 index 000000000..d64f4b967 --- /dev/null +++ b/RealRooted/LaguerreInequalities/LocalProductLimit.lean @@ -0,0 +1,67 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.LaguerreInequalities.Analytic +public import TauCeti.Analysis.Normed.Group.LocallyBounded +import RealRooted.LaguerreInequalities.ModulusBound +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import TauCeti.Analysis.Complex.Conformal.Vitali +import Mathlib.Topology.MetricSpace.ProperSpace.Lemmas + +/-! +# Local normality of symmetric products + +Convergence of a Laguerre--Pólya sequence at one point above the real axis +bounds its symmetric products on a whole disk. Pointwise convergence on a +disk therefore gives locally uniform convergence of the symmetric products. +This assertion does not assume locally uniform convergence of the original +functions. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- Convergence at a single vertical endpoint locally bounds every symmetric +product centered at the corresponding real point. -/ +theorem isLocallyBoundedOn_laguerreProduct_of_tendsto {F : ℕ → ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) (x R : ℝ) {w : ℂ} + (hw : Tendsto (fun n => F n (x + (R : ℂ) * I)) atTop (𝓝 w)) : + TauCeti.IsLocallyBoundedOn (fun n => laguerreProduct (F n) x) (Metric.ball 0 R) := by + obtain ⟨C, _, hC⟩ := (Metric.isBounded_range_of_tendsto _ hw).exists_pos_norm_le + apply TauCeti.isLocallyBoundedOn_of_forall_norm_le (C := C ^ 2) + intro n z hz + have hzR : ‖z‖ < R := by simpa only [Metric.mem_ball, dist_zero_right] using hz + exact ((hF n).norm_laguerreProduct_le x hzR.le).trans + (pow_le_pow_left₀ (norm_nonneg _) (hC _ ⟨n, rfl⟩) 2) + +/-- Pointwise convergence of Laguerre--Pólya functions on a disk centered on +the real axis implies locally uniform convergence of their symmetric products. -/ +theorem tendstoLocallyUniformlyOn_laguerreProduct {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) (x : ℝ) {r : ℝ} (hr : 0 < r) + (hpoint : ∀ z ∈ Metric.ball (x : ℂ) r, + Tendsto (fun n => F n z) atTop (𝓝 (g z))) : + TendstoLocallyUniformlyOn (fun n => laguerreProduct (F n) x) + (laguerreProduct g x) atTop (Metric.ball 0 r) := by + have hb : TauCeti.IsLocallyBoundedOn (fun n => laguerreProduct (F n) x) + (Metric.ball 0 r) := by + rw [TauCeti.isLocallyBoundedOn_def] + intro K hKr hK + obtain ⟨R, hR, hKR⟩ := exists_pos_lt_subset_ball hr hK.isClosed hKr + have hend : (x : ℂ) + (R : ℂ) * I ∈ Metric.ball (x : ℂ) r := by + simpa [Metric.mem_ball, dist_eq_norm, norm_mul, abs_of_pos hR.1] using hR.2 + exact (TauCeti.isLocallyBoundedOn_def.mp + (isLocallyBoundedOn_laguerreProduct_of_tendsto hF x R (hpoint _ hend))) K hKR hK + apply TauCeti.tendstoLocallyUniformlyOn_of_isLocallyBoundedOn_of_forall_tendsto + Metric.isOpen_ball + (fun n => (differentiable_laguerreProduct (hF n).differentiable x).differentiableOn) hb + intro z hz + have hplus : (x : ℂ) + z * I ∈ Metric.ball (x : ℂ) r := by + simpa [Metric.mem_ball, dist_eq_norm, norm_mul] using hz + have hminus : (x : ℂ) - z * I ∈ Metric.ball (x : ℂ) r := by + simpa [Metric.mem_ball, dist_eq_norm, norm_mul, sub_eq_add_neg] using hz + exact (hpoint _ hplus).mul (hpoint _ hminus) + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/ModulusBound.lean b/RealRooted/LaguerreInequalities/ModulusBound.lean new file mode 100644 index 000000000..ae53ee456 --- /dev/null +++ b/RealRooted/LaguerreInequalities/ModulusBound.lean @@ -0,0 +1,67 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.LaguerreInequalities.Analytic +import RealRooted.LaguerreInequalities.GeneratingPolynomial +import RealRooted.Mathlib.Analysis.Complex.Polynomial.CoefficientMajorant +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IndexedProduct + +/-! +# Modulus bounds for symmetric products + +The product of opposite translates of a Laguerre--Pólya function is bounded on +a complex disk by its value at the imaginary endpoints of the diameter. +This follows from the nonnegative coefficients of the generalized Laguerre +generating polynomial and passage to locally uniform polynomial limits. +-/ + +public section + +open Complex Polynomial Filter Topology + +namespace RealRooted + +private theorem norm_laguerreProduct_polynomial_le {p : ℝ[X]} (hp : p.Splits) + (x : ℝ) {z : ℂ} {R : ℝ} (hz : ‖z‖ ≤ R) : + ‖laguerreProduct (fun w => (p.map ofRealHom).eval w) x z‖ ≤ + ‖(p.map ofRealHom).eval (x + (R : ℂ) * I)‖ ^ 2 := by + let q := laguerreGeneratingPolynomial p x + have hq : ∀ k, 0 ≤ q.coeff k := + (isPFPolynomial_laguerreGeneratingPolynomial p x).hasNonnegCoeffs + have hbound := Polynomial.norm_eval_map_le_of_coeff_nonneg hq + (z := z ^ 2) (R := R ^ 2) + (by simpa only [norm_pow] using pow_le_pow_left₀ (norm_nonneg z) hz 2) + have hqR : q.eval (R ^ 2) = ‖(p.map ofRealHom).eval (x + (R : ℂ) * I)‖ ^ 2 := by + apply ofReal_injective + rw [← ofRealHom_eq_coe, ← Polynomial.eval_map_apply] + change ((laguerreGeneratingPolynomial p x).map ofRealHom).eval (ofRealHom (R ^ 2)) = _ + rw [ofRealHom_eq_coe, ofReal_pow, eval_laguerreGeneratingPolynomial hp] + exact laguerreProduct_ofReal (f := fun w => (p.map ofRealHom).eval w) + (isLaguerrePolya_eval_map hp).conj x R + rw [hqR] at hbound + simpa only [q, eval_laguerreGeneratingPolynomial hp, laguerreProduct] using hbound + +/-- Symmetric products of Laguerre--Pólya functions have a radial majorant +provided by their squared modulus above the real axis. -/ +theorem IsLaguerrePolya.norm_laguerreProduct_le {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (x : ℝ) {z : ℂ} {R : ℝ} (hz : ‖z‖ ≤ R) : + ‖laguerreProduct f x z‖ ≤ ‖f (x + (R : ℂ) * I)‖ ^ 2 := by + obtain ⟨p, hp, ht⟩ := hf + have hpoint (w : ℂ) := ht.tendstoLocallyUniformlyOn.tendsto_at (Set.mem_univ w) + apply le_of_tendsto_of_tendsto' + (((hpoint (x + z * I)).mul (hpoint (x - z * I))).norm) + ((hpoint (x + (R : ℂ) * I)).norm.pow 2) + intro n + exact norm_laguerreProduct_polynomial_le + ((hp n).elim (fun h => h ▸ Splits.zero) id) x hz + +/-- The opposite-translate product is bounded on a disk by the value on its +imaginary diameter. The zero function is included. -/ +theorem IsLaguerrePolya.norm_mul_add_sub_le {f : ℂ → ℂ} (hf : IsLaguerrePolya f) + (x : ℝ) {z : ℂ} {R : ℝ} (hz : ‖z‖ ≤ R) : + ‖f (x + z) * f (x - z)‖ ≤ ‖f (x + (R : ℂ) * I)‖ ^ 2 := by + have h := hf.norm_laguerreProduct_le x (z := z * (-I)) (by simpa using hz) + have hi : z * (-I) * I = z := by simp [mul_assoc, neg_mul] + simpa only [laguerreProduct, hi] using h + +end RealRooted diff --git a/RealRooted/Mathlib/Analysis/Complex/LocallyUniformIteratedDeriv.lean b/RealRooted/Mathlib/Analysis/Complex/LocallyUniformIteratedDeriv.lean new file mode 100644 index 000000000..f3b77ef26 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/LocallyUniformIteratedDeriv.lean @@ -0,0 +1,34 @@ +/- +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 +public import Mathlib.Analysis.Complex.Basic +import Mathlib.Analysis.Complex.LocallyUniformLimit + +/-! +# Iterated derivatives of local limits of entire functions +-/ + +public section + +open Filter + +/-- Iterated derivatives of entire functions converge locally uniformly on +any open set on which the original functions converge locally uniformly. -/ +theorem TendstoLocallyUniformlyOn.iteratedDeriv_of_entire + {ι E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [CompleteSpace E] + {F : ι → ℂ → E} {f : ℂ → E} {l : Filter ι} {U : Set ℂ} + (h : TendstoLocallyUniformlyOn F f l U) + (hd : ∀ᶠ i in l, Differentiable ℂ (F i)) (hU : IsOpen U) (n : ℕ) : + TendstoLocallyUniformlyOn (fun i => iteratedDeriv n (F i)) (iteratedDeriv n f) l U := by + induction n with + | zero => simpa using h + | succ n ih => + simp only [iteratedDeriv_succ] + exact ih.deriv (hd.mono fun i hi => + ((hi.contDiff (n := ⊤)).differentiable_iteratedDeriv n + (WithTop.coe_lt_top _)).differentiableOn) hU diff --git a/RealRooted/Mathlib/Analysis/Complex/Polynomial/CoefficientMajorant.lean b/RealRooted/Mathlib/Analysis/Complex/Polynomial/CoefficientMajorant.lean new file mode 100644 index 000000000..59ba7c2af --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/Polynomial/CoefficientMajorant.lean @@ -0,0 +1,38 @@ +/- +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.Complex.Norm +public import Mathlib.Algebra.Polynomial.Eval.Defs +import Mathlib.Analysis.Complex.Basic + +/-! +# Nonnegative coefficient majorants on complex disks +-/ + +public section + +open Complex + +namespace Polynomial + +/-- A real polynomial with nonnegative coefficients is a radial majorant for +its own complexification on every closed disk. -/ +theorem norm_eval_map_le_of_coeff_nonneg {p : ℝ[X]} (hp : ∀ k, 0 ≤ p.coeff k) + {z : ℂ} {R : ℝ} (hz : ‖z‖ ≤ R) : + ‖(p.map ofRealHom).eval z‖ ≤ p.eval R := by + rw [Polynomial.eval_map, Polynomial.eval₂_eq_sum, Polynomial.eval_eq_sum, + Polynomial.sum_def, Polynomial.sum_def] + calc + _ ≤ ∑ k ∈ p.support, ‖ofRealHom (p.coeff k) * z ^ k‖ := norm_sum_le _ _ + _ ≤ ∑ k ∈ p.support, p.coeff k * R ^ k := by + apply Finset.sum_le_sum + intro k _ + simp only [norm_mul, ofRealHom_eq_coe, norm_real, Real.norm_of_nonneg (hp k), norm_pow] + exact mul_le_mul_of_nonneg_left + (pow_le_pow_left₀ (norm_nonneg z) hz k) (hp k) + +end Polynomial diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LocalLimit.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LocalLimit.lean new file mode 100644 index 000000000..3665aa69f --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LocalLimit.lean @@ -0,0 +1,67 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.FormalJensen +import RealRooted.MultiplierSequence.JensenLimit +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import RealRooted.Mathlib.Analysis.Complex.LocallyUniformIteratedDeriv +import Mathlib.Analysis.Complex.LocallyUniformLimit +import Mathlib.Analysis.Complex.TaylorSeries + +/-! +# Entire extension of local Laguerre--Pólya limits + +A locally uniform limit on a disk of entire Laguerre--Pólya functions extends +to an entire function in the same class. No nonzero value is required, and the +conclusion does not claim global convergence of the original sequence. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- Limits of all Taylor data of Laguerre--Pólya functions define an entire +function in the same class, without any assumed growth bound on those data. -/ +theorem isLaguerrePolya_of_tendsto_iteratedDeriv {F : ℕ → ℂ → ℂ} {c : ℕ → ℝ} + (hF : ∀ n, IsLaguerrePolya (F n)) + (hc : ∀ k, Tendsto (fun n => (iteratedDeriv k (F n) 0).re) atTop (𝓝 (c k))) : + IsLaguerrePolya (complexExpGeneratingFunction c) := by + apply isLaguerrePolya_of_jensenPolynomial_splits + intro d + exact jensenPolynomial_splits_of_tendsto d + (fun n => (hF n).jensenPolynomial_splits d) hc + +/-- A local uniform limit of entire Laguerre--Pólya functions on a nonempty +disk centered at zero has an entire Laguerre--Pólya extension. This includes +an identically zero local limit. -/ +theorem exists_isLaguerrePolya_eqOn_of_local_limit {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) {r : ℝ} (hr : 0 < r) + (hlim : TendstoLocallyUniformlyOn F g atTop (Metric.ball 0 r)) : + ∃ G : ℂ → ℂ, IsLaguerrePolya G ∧ Set.EqOn G g (Metric.ball 0 r) := by + have hd : ∀ᶠ n in atTop, Differentiable ℂ (F n) := + Eventually.of_forall fun n => (hF n).differentiable + have hzero : (0 : ℂ) ∈ Metric.ball 0 r := by simpa using hr + have hjet (k : ℕ) : Tendsto (fun n => iteratedDeriv k (F n) 0) atTop + (𝓝 (iteratedDeriv k g 0)) := + (hlim.iteratedDeriv_of_entire hd Metric.isOpen_ball k).tendsto_at hzero + have hjet_re (k : ℕ) := (Complex.continuous_re.tendsto _).comp (hjet k) + have hreal (k : ℕ) : ((iteratedDeriv k g 0).re : ℂ) = iteratedDeriv k g 0 := by + exact tendsto_nhds_unique (hjet_re k).ofReal + ((hjet k).congr fun n => (ofReal_re_iteratedDeriv_zero (hF n).conj k).symm) + let c : ℕ → ℝ := fun k => (iteratedDeriv k g 0).re + refine ⟨complexExpGeneratingFunction c, + isLaguerrePolya_of_tendsto_iteratedDeriv hF hjet_re, ?_⟩ + have hg := hlim.differentiableOn (hd.mono fun _ hi => hi.differentiableOn) Metric.isOpen_ball + intro z hz + rw [complexExpGeneratingFunction_eq_tsum, ← taylorSeries_eq_on_ball' hz hg] + apply tsum_congr + intro k + simp only [c, ofReal_div, ofReal_natCast, hreal, sub_zero] + ring + +end RealRooted From 755594eab16400389fd2a8b2991a09a76c4c2792 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 17:09:24 +0000 Subject: [PATCH 45/56] feat: separate vanishing and nonzero local Laguerre Polya limits --- .../LocalNonzeroLimit.lean | 58 ++++++++ .../LaguerreInequalities/LocalZeroLimit.lean | 129 ++++++++++++++++++ .../Analysis/Complex/LineIdentity.lean | 38 ++++++ .../UniformSpace/LocallyUniformAvoidance.lean | 44 ++++++ 4 files changed, 269 insertions(+) create mode 100644 RealRooted/LaguerreInequalities/LocalNonzeroLimit.lean create mode 100644 RealRooted/LaguerreInequalities/LocalZeroLimit.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/LineIdentity.lean create mode 100644 RealRooted/Mathlib/Topology/UniformSpace/LocallyUniformAvoidance.lean diff --git a/RealRooted/LaguerreInequalities/LocalNonzeroLimit.lean b/RealRooted/LaguerreInequalities/LocalNonzeroLimit.lean new file mode 100644 index 000000000..276bc85e4 --- /dev/null +++ b/RealRooted/LaguerreInequalities/LocalNonzeroLimit.lean @@ -0,0 +1,58 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.LaguerreInequalities.LocalProductLimit +import RealRooted.Mathlib.Topology.UniformSpace.LocallyUniformAvoidance +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import Mathlib.Analysis.Complex.LocallyUniformLimit + +/-! +# Nonzero local limits of Laguerre--Pólya functions + +A nonzero real value of a pointwise limit yields a common zero-free disk for +the approximants. Only their symmetric products are known to converge normally +at this stage. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +private theorem ne_zero_of_laguerreProduct_ne_zero {f : ℂ → ℂ} {x : ℝ} {z : ℂ} + (h : laguerreProduct f x ((z - (x : ℂ)) * (-I)) ≠ 0) : f z ≠ 0 := by + have heq : (x : ℂ) + ((z - (x : ℂ)) * (-I)) * I = z := by + rw [mul_assoc] + simp + rw [laguerreProduct, heq] at h + exact (mul_ne_zero_iff.mp h).1 + +/-- A pointwise limit of Laguerre--Pólya functions with a nonzero value at a +real center gives a zero-free disk for both the limit and every sufficiently +late approximant. -/ +theorem exists_ball_ne_zero_of_tendsto {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) (x : ℝ) {r : ℝ} (hr : 0 < r) + (hpoint : ∀ z ∈ Metric.ball (x : ℂ) r, + Tendsto (fun n => F n z) atTop (𝓝 (g z))) (hg : g x ≠ 0) : + ∃ δ > 0, (∀ z ∈ Metric.ball (x : ℂ) δ, g z ≠ 0) ∧ + ∀ᶠ n in atTop, ∀ z ∈ Metric.ball (x : ℂ) δ, F n z ≠ 0 := by + have hlim := tendstoLocallyUniformlyOn_laguerreProduct hF x hr hpoint + have hd := hlim.differentiableOn (Eventually.of_forall fun n => + (differentiable_laguerreProduct (hF n).differentiable x).differentiableOn) + Metric.isOpen_ball + have hz : (0 : ℂ) ∈ Metric.ball 0 r := by simpa using hr + have hc := (hd.differentiableAt (Metric.isOpen_ball.mem_nhds hz)).continuousAt + have hgprod : laguerreProduct g x 0 ≠ 0 := by simpa [laguerreProduct] using mul_ne_zero hg hg + obtain ⟨V, hV, havoid⟩ := hlim.exists_eventually_ne + (Metric.ball_mem_nhds (0 : ℂ) hr) hc hgprod + have hgood : {z | laguerreProduct g x z ≠ 0} ∈ 𝓝 (0 : ℂ) := hc.eventually_ne hgprod + obtain ⟨δ, hδ, hball⟩ := Metric.mem_nhds_iff.mp (inter_mem hV hgood) + have hmem {z : ℂ} (hzδ : z ∈ Metric.ball (x : ℂ) δ) : + (z - (x : ℂ)) * (-I) ∈ Metric.ball (0 : ℂ) δ := by + simpa [Metric.mem_ball, dist_eq_norm, norm_mul] using hzδ + refine ⟨δ, hδ, (fun z hzδ => ne_zero_of_laguerreProduct_ne_zero (hball (hmem hzδ)).2), ?_⟩ + filter_upwards [havoid] with n hn z hzδ + exact ne_zero_of_laguerreProduct_ne_zero (hn _ (hball (hmem hzδ)).1) + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/LocalZeroLimit.lean b/RealRooted/LaguerreInequalities/LocalZeroLimit.lean new file mode 100644 index 000000000..227828705 --- /dev/null +++ b/RealRooted/LaguerreInequalities/LocalZeroLimit.lean @@ -0,0 +1,129 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.LaguerreInequalities.Analytic +import RealRooted.LaguerreInequalities.LocalProductLimit +import RealRooted.Mathlib.Analysis.Complex.LineIdentity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import TauCeti.Analysis.Complex.Conformal.Vitali + +/-! +# Vanishing local limits of Laguerre--Pólya functions + +The zero case of the local limit problem can be detected on the real line. +Symmetric products allow analytic continuation of this vanishing even when +normal convergence of the original functions has not been established. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- If a pointwise disk limit of Laguerre--Pólya functions vanishes on the +real diameter, its symmetric products converge locally uniformly to zero. -/ +theorem tendstoLocallyUniformlyOn_laguerreProduct_zero {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) (x : ℝ) {r : ℝ} (hr : 0 < r) + (hpoint : ∀ z ∈ Metric.ball (x : ℂ) r, + Tendsto (fun n => F n z) atTop (𝓝 (g z))) + (hzero : ∀ y : ℝ, (y : ℂ) ∈ Metric.ball (x : ℂ) r → g y = 0) : + TendstoLocallyUniformlyOn (fun n => laguerreProduct (F n) x) + (fun _ => 0) atTop (Metric.ball 0 r) := by + have hlim := tendstoLocallyUniformlyOn_laguerreProduct hF x hr hpoint + have hd := hlim.differentiableOn (Eventually.of_forall fun n => + (differentiable_laguerreProduct (hF n).differentiable x).differentiableOn) + Metric.isOpen_ball + have hz : (0 : ℂ) ∈ Metric.ball 0 r := by simpa using hr + have heq := (hd.analyticOnNhd Metric.isOpen_ball).eqOn_zero_of_line_eq_zero + (convex_ball (0 : ℂ) r).isPreconnected hz I_ne_zero + (show ∀ᶠ t : ℝ in 𝓝 0, laguerreProduct g x (0 + (t : ℂ) * I) = 0 from by + have ht : ∀ᶠ t : ℝ in 𝓝 0, ((x - t : ℝ) : ℂ) ∈ Metric.ball (x : ℂ) r := + (show Continuous (fun t : ℝ => ((x - t : ℝ) : ℂ)) from by fun_prop).tendsto 0 + |>.eventually (Metric.isOpen_ball.mem_nhds (by simpa using hr)) + filter_upwards [ht] with t ht + simp only [laguerreProduct, zero_add, mul_assoc, I_mul_I, mul_neg_one] + rw [show (x : ℂ) + -(t : ℂ) = ((x - t : ℝ) : ℂ) by push_cast; ring, + hzero _ ht, zero_mul]) + exact hlim.congr_right heq + +/-- A convergent vertical endpoint propagates vanishing symmetric products +from a smaller disk to the full disk bounded by that endpoint. -/ +theorem tendstoLocallyUniformlyOn_laguerreProduct_zero_of_endpoint + {F : ℕ → ℂ → ℂ} (hF : ∀ n, IsLaguerrePolya (F n)) (x : ℝ) + {R δ : ℝ} (hδ : 0 < δ) (hδR : δ ≤ R) {w : ℂ} + (hw : Tendsto (fun n => F n (x + (R : ℂ) * I)) atTop (𝓝 w)) + (hlocal : TendstoLocallyUniformlyOn (fun n => laguerreProduct (F n) x) + (fun _ => 0) atTop (Metric.ball 0 δ)) : + TendstoLocallyUniformlyOn (fun n => laguerreProduct (F n) x) + (fun _ => 0) atTop (Metric.ball 0 R) := by + have hR : 0 < R := hδ.trans_le hδR + have hzδ : (0 : ℂ) ∈ Metric.ball 0 δ := by simpa using hδ + have hzR : (0 : ℂ) ∈ Metric.ball 0 R := by simpa using hR + obtain ⟨q, hq, hqzero, hlim⟩ := TauCeti.vitali_of_tendsto Metric.isOpen_ball + (convex_ball (0 : ℂ) R).isPreconnected + (fun n => (differentiable_laguerreProduct (hF n).differentiable x).differentiableOn) + (isLocallyBoundedOn_laguerreProduct_of_tendsto hF x R hw) + (Metric.ball_subset_ball hδR) hzR (Metric.isOpen_ball.preperfect _ hzδ) + (fun z hz => hlocal.tendsto_at hz) + have heq := (hq.analyticOnNhd Metric.isOpen_ball).eqOn_zero_of_preconnected_of_eventuallyEq_zero + (convex_ball (0 : ℂ) R).isPreconnected hzR + (Filter.eventually_of_mem (Metric.ball_mem_nhds (0 : ℂ) hδ) fun z hz => hqzero hz) + exact hlim.congr_right heq + +/-- A pointwise disk limit of Laguerre--Pólya functions which vanishes on the +real diameter vanishes on the whole disk. No local uniform convergence of +the original functions is assumed. -/ +theorem eqOn_zero_of_tendsto_of_real_eq_zero {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) {r : ℝ} + (hpoint : ∀ z ∈ Metric.ball (0 : ℂ) r, + Tendsto (fun n => F n z) atTop (𝓝 (g z))) + (hzero : ∀ y : ℝ, (y : ℂ) ∈ Metric.ball (0 : ℂ) r → g y = 0) : + Set.EqOn g 0 (Metric.ball 0 r) := by + intro z hz + have hzr : ‖z‖ < r := by simpa using hz + let δ := (r - ‖z‖) / 4 + let R := |z.im| + δ + have hδ : 0 < δ := by dsimp [δ]; linarith + have hδR : δ ≤ R := by dsimp [R]; linarith [abs_nonneg z.im] + have hnormx : ‖(z.re : ℂ)‖ ≤ ‖z‖ := by simpa using abs_re_le_norm z + have hsub : Metric.ball (z.re : ℂ) δ ⊆ Metric.ball (0 : ℂ) r := by + intro u hu + have huδ : ‖u - (z.re : ℂ)‖ < δ := by simpa [dist_eq_norm] using hu + have huNorm := norm_add_le (u - (z.re : ℂ)) (z.re : ℂ) + rw [sub_add_cancel] at huNorm + have : ‖u‖ < r := by dsimp [δ] at huδ; linarith + simpa using this + have hlocal := tendstoLocallyUniformlyOn_laguerreProduct_zero hF z.re hδ + (fun u hu => hpoint u (hsub hu)) (fun y hy => hzero y (hsub hy)) + have hnormabs : ‖(z.re : ℂ) + ((|z.im| : ℝ) : ℂ) * I‖ = ‖z‖ := by + rw [norm_eq_sqrt_sq_add_sq, norm_eq_sqrt_sq_add_sq z] + simp + have hend : (z.re : ℂ) + (R : ℂ) * I ∈ Metric.ball (0 : ℂ) r := by + have heq : (z.re : ℂ) + (R : ℂ) * I = + ((z.re : ℂ) + ((|z.im| : ℝ) : ℂ) * I) + (δ : ℂ) * I := by + dsimp [R] + push_cast + ring + have hn := norm_add_le ((z.re : ℂ) + ((|z.im| : ℝ) : ℂ) * I) ((δ : ℂ) * I) + rw [hnormabs] at hn + have hnδ : ‖(δ : ℂ) * I‖ = δ := by simp [abs_of_pos hδ] + rw [hnδ] at hn + rw [Metric.mem_ball, dist_zero_right, heq] + dsimp [δ] at hn + linarith + have hlim := tendstoLocallyUniformlyOn_laguerreProduct_zero_of_endpoint + hF z.re hδ hδR (hpoint _ hend) hlocal + have hymem : (z.im : ℂ) ∈ Metric.ball (0 : ℂ) R := by + simp only [Metric.mem_ball, dist_zero_right, norm_real, Real.norm_eq_abs] + dsimp [R] + linarith + have hnorm := ((hpoint z hz).norm.pow 2).ofReal + have hprod : Tendsto (fun n => laguerreProduct (F n) z.re z.im) atTop + (𝓝 ((‖g z‖ ^ 2 : ℝ) : ℂ)) := hnorm.congr fun n => by + rw [laguerreProduct_ofReal (hF n).conj, re_add_im] + have hnzero : ‖g z‖ ^ 2 = 0 := by + exact_mod_cast tendsto_nhds_unique hprod (hlim.tendsto_at hymem) + simpa using (sq_eq_zero_iff.mp hnzero) + +end RealRooted diff --git a/RealRooted/Mathlib/Analysis/Complex/LineIdentity.lean b/RealRooted/Mathlib/Analysis/Complex/LineIdentity.lean new file mode 100644 index 000000000..080102767 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/LineIdentity.lean @@ -0,0 +1,38 @@ +/- +Copyright (c) 2026 Per Alexandersson. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Per Alexandersson +-/ +module + +public import Mathlib.Analysis.Analytic.Basic +import Mathlib.Analysis.Analytic.IsolatedZeros +public import Mathlib.Analysis.Complex.Basic + +/-! +# The identity principle along a line + +Vanishing on a real line segment through an interior point determines an +analytic function on a connected domain. +-/ + +public section + +open Complex Filter Topology + +/-- An analytic function on a connected domain which vanishes along a line +near one point vanishes throughout the domain. -/ +theorem AnalyticOnNhd.eqOn_zero_of_line_eq_zero {E : Type*} + [NormedAddCommGroup E] [NormedSpace ℂ E] + {f : ℂ → E} {U : Set ℂ} {z₀ v : ℂ} + (hf : AnalyticOnNhd ℂ f U) (hU : IsPreconnected U) (hz₀ : z₀ ∈ U) + (hv : v ≠ 0) (hzero : ∀ᶠ t : ℝ in 𝓝 0, f (z₀ + (t : ℂ) * v) = 0) : + Set.EqOn f 0 U := by + have ht : Tendsto (fun t : ℝ => z₀ + (t : ℂ) * v) + (𝓝[≠] 0) (𝓝[≠] z₀) := by + have hcont : Continuous (fun t : ℝ => z₀ + (t : ℂ) * v) := by fun_prop + simpa only [ofReal_zero, zero_mul, add_zero] using + hcont.continuousWithinAt.tendsto_nhdsWithin (x := 0) (fun t ht => by + simpa [hv] using ht) + exact hf.eqOn_zero_of_preconnected_of_frequently_eq_zero hU hz₀ + (ht.frequently (hzero.filter_mono nhdsWithin_le_nhds).frequently) diff --git a/RealRooted/Mathlib/Topology/UniformSpace/LocallyUniformAvoidance.lean b/RealRooted/Mathlib/Topology/UniformSpace/LocallyUniformAvoidance.lean new file mode 100644 index 000000000..c2c8b47c1 --- /dev/null +++ b/RealRooted/Mathlib/Topology/UniformSpace/LocallyUniformAvoidance.lean @@ -0,0 +1,44 @@ +/- +Copyright (c) 2026 Per Alexandersson. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Per Alexandersson +-/ +module + +public import Mathlib.Topology.UniformSpace.LocallyUniformConvergence +public import Mathlib.Topology.MetricSpace.Defs + +/-! +# Local avoidance under locally uniform convergence + +A value avoided by the continuous limit at one point is eventually avoided +by the approximating functions on a common neighborhood of that point. +-/ + +public section + +open Filter Topology + +/-- A locally uniform limit continuous at `x` and different from `b` there +gives a common neighborhood on which the approximants eventually avoid `b`. -/ +theorem TendstoLocallyUniformlyOn.exists_eventually_ne + {α β ι : Type*} [TopologicalSpace α] [MetricSpace β] + {F : ι → α → β} {f : α → β} {l : Filter ι} {U : Set α} {x : α} {b : β} + (h : TendstoLocallyUniformlyOn F f l U) (hU : U ∈ 𝓝 x) + (hf : ContinuousAt f x) (hb : f x ≠ b) : + ∃ V ∈ 𝓝 x, ∀ᶠ n in l, ∀ y ∈ V, F n y ≠ b := by + have hd : 0 < dist (f x) b := dist_pos.mpr hb + obtain ⟨V, hV, hconv⟩ := h _ (Metric.dist_mem_uniformity (half_pos hd)) x + (mem_of_mem_nhds hU) + rw [nhdsWithin_eq_nhds.mpr hU] at hV + have hclose : {y | dist (f y) (f x) < dist (f x) b / 2} ∈ 𝓝 x := + hf.eventually (Metric.ball_mem_nhds _ (half_pos hd)) + refine ⟨V ∩ {y | dist (f y) (f x) < dist (f x) b / 2}, inter_mem hV hclose, ?_⟩ + filter_upwards [hconv] with n hn y hy hny + have h₁ := hn y hy.1 + change dist (f y) (F n y) < dist (f x) b / 2 at h₁ + rw [hny] at h₁ + have h₂ := dist_triangle (f x) (f y) b + rw [dist_comm (f x) (f y)] at h₂ + have h₃ : dist (f y) (f x) < dist (f x) b / 2 := hy.2 + linarith From 4d6898cefefe9269773c7bd235f2319342f2feb4 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 17:04:17 +0000 Subject: [PATCH 46/56] feat: prove composition and inverses for entire heat operators --- .../Complex/HeatOperator/Composition.lean | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Complex/HeatOperator/Composition.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Composition.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Composition.lean new file mode 100644 index 000000000..97551f436 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Composition.lean @@ -0,0 +1,69 @@ +/- +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.Analysis.Complex.HeatOperator.Basic +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Nonzero +import Mathlib.Analysis.Complex.TaylorSeries + +/-! +# Composition of entire heat operators + +The Taylor expansion in the time variable proves the heat composition law for +every pair of complex times. It also proves convergence of the outer heat +series without a separate growth estimate for the intermediate heat image. +Opposite times give inverse operators on entire inputs of order below two. +-/ + +public section + +namespace Complex + +/-- The heat series of an intermediate heat image sums to the heat image at +the sum of the two complex times. -/ +theorem hasSum_heatOperator_heatOperator {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) + (s t z : ℂ) : + HasSum (fun n : ℕ => (-s) ^ n / (n.factorial : ℂ) * + iteratedDeriv (2 * n) (heatOperator t f) z) (heatOperator (s + t) f z) := by + have h := hasSum_taylorSeries_of_entire + (differentiable_heatOperator_time hf horder hρ z) t (s + t) + convert h using 1 + ext n + rw [iteratedDeriv_heatOperator_time hf horder hρ, + iteratedDeriv_heatOperator hf horder hρ] + simp only [add_sub_cancel_right, smul_eq_mul] + rw [neg_eq_neg_one_mul, mul_pow] + ring + +/-- Complex heat times add under composition. -/ +theorem heatOperator_heatOperator {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) + (s t : ℂ) : heatOperator s (heatOperator t f) = heatOperator (s + t) f := by + ext z + exact (hasSum_heatOperator_heatOperator hf horder hρ s t z).tsum_eq + +/-- The heat image can be recovered at the opposite complex time. -/ +theorem heatOperator_neg_heatOperator {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) + (t : ℂ) : heatOperator (-t) (heatOperator t f) = f := by + rw [heatOperator_heatOperator hf horder hρ, neg_add_cancel, heatOperator_zero] + +/-- At any fixed complex time the heat operator distinguishes entire inputs +of order below two. The two order bounds may be different. -/ +theorem heatOperator_eq_iff {f g : ℂ → ℂ} {ρ σ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) + (hg : Differentiable ℂ g) (horderg : TauCeti.OrderLE g σ) (hσ : σ < 2) + (t : ℂ) : heatOperator t f = heatOperator t g ↔ f = g := by + constructor + · intro h + have heq := congrArg (heatOperator (-t)) h + simpa only [heatOperator_neg_heatOperator hf horder hρ, + heatOperator_neg_heatOperator hg horderg hσ] using heq + · rintro rfl + rfl + +end Complex From aa3d5c1759ca7d427b586105b2c2790def23d143 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 17:08:18 +0000 Subject: [PATCH 47/56] feat: characterize RH through arbitrarily small positive heat times --- .../Complex/HeatOperator/TimeLimit.lean | 41 ++++++++++++ .../LaguerrePolya/HeatOperatorCriterion.lean | 65 +++++++++++++++++++ .../HeatOperatorCriterion.lean | 52 +++++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeLimit.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorCriterion.lean create mode 100644 RealRooted/RiemannHypothesis/HeatOperatorCriterion.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeLimit.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeLimit.lean new file mode 100644 index 000000000..6ae2c0c2b --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeLimit.lean @@ -0,0 +1,41 @@ +/- +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.Analysis.Complex.HeatOperator.Basic +import Mathlib.Topology.UniformSpace.HeineCantor + +/-! +# Locally uniform continuity of heat images in time + +Convergence of complex times gives locally uniform convergence of the +corresponding spatial heat images. This follows from joint continuity and +compactness of each bounded spatial set. +-/ + +public section + +open Filter Topology + +namespace Complex + +/-- Convergent complex heat times give locally uniform convergence in space. -/ +theorem tendstoLocallyUniformly_heatOperator_of_tendsto {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) + {ι : Type*} {l : Filter ι} {t : ι → ℂ} {s : ℂ} (ht : Tendsto t l (𝓝 s)) : + TendstoLocallyUniformly (fun i => heatOperator (t i) f) (heatOperator s f) l := by + rw [tendstoLocallyUniformly_iff_forall_isCompact] + intro K hK + let : CompactSpace K := isCompact_iff_compactSpace.mp hK + rw [tendstoUniformlyOn_iff_tendstoUniformly_comp_coe] + have hc : Continuous (fun p : ℂ × K => heatOperator p.1 f p.2) := + (continuous_heatOperator hf horder hρ).comp + (continuous_fst.prodMk (continuous_subtype_val.comp continuous_snd)) + intro u hu + exact ht.eventually + (Continuous.tendstoUniformly (fun t (z : K) => heatOperator t f z) hc s u hu) + +end Complex diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorCriterion.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorCriterion.lean new file mode 100644 index 000000000..27fcd3569 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorCriterion.lean @@ -0,0 +1,65 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.TimeLimit +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperator +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Closure +import Mathlib.Analysis.SpecificLimits.Basic + +/-! +# Laguerre--Pólya criteria from small positive heat times + +An entire input of order below two is LP if and only if its backward heat +images are LP at arbitrarily small positive times. The reverse implication is +closure under locally uniform limits; it does not pass simplicity to time zero. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- LP heat images along any complex times tending to zero imply that the +original entire function is LP. -/ +theorem IsLaguerrePolya.of_heatOperator_tendsto {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) + {t : ℕ → ℂ} (ht : Tendsto t atTop (𝓝 0)) + (hLP : ∀ n, IsLaguerrePolya (heatOperator (t n) f)) : IsLaguerrePolya f := by + have h := tendstoLocallyUniformly_heatOperator_of_tendsto hf horder hρ ht + rw [heatOperator_zero] at h + exact IsLaguerrePolya.of_tendstoLocallyUniformly hLP h + +/-- An entire function of order below two is LP exactly when its heat images +are LP at arbitrarily small positive real times. -/ +theorem isLaguerrePolya_iff_heatOperator_near_zero {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) : + IsLaguerrePolya f ↔ ∀ ε : ℝ, 0 < ε → + ∃ t : ℝ, 0 < t ∧ t < ε ∧ IsLaguerrePolya (heatOperator (t : ℂ) f) := by + constructor + · intro hLP ε hε + exact ⟨ε / 2, half_pos hε, half_lt_self hε, + hLP.heatOperator horder hρ (half_pos hε).le⟩ + · intro h + choose t ht hbound hLP using fun n : ℕ => h (1 / ((n : ℝ) + 1)) (by positivity) + have hlim : Tendsto t atTop (𝓝 0) := + squeeze_zero (fun n => (ht n).le) (fun n => (hbound n).le) + tendsto_one_div_add_atTop_nhds_zero_nat + exact IsLaguerrePolya.of_heatOperator_tendsto hf horder hρ + (by simpa only [Function.comp_def, Complex.ofReal_zero] using + (Complex.continuous_ofReal.tendsto 0).comp hlim) hLP + +/-- An entire function of order below two is LP exactly when all of its +positive-time heat images are LP. -/ +theorem isLaguerrePolya_iff_heatOperator_pos {f : ℂ → ℂ} {ρ : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) : + IsLaguerrePolya f ↔ ∀ t : ℝ, 0 < t → IsLaguerrePolya (heatOperator (t : ℂ) f) := by + constructor + · exact fun hLP _ ht => hLP.heatOperator horder hρ ht.le + · intro h + apply (isLaguerrePolya_iff_heatOperator_near_zero hf horder hρ).mpr + intro ε hε + exact ⟨ε / 2, half_pos hε, half_lt_self hε, h (ε / 2) (half_pos hε)⟩ + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/HeatOperatorCriterion.lean b/RealRooted/RiemannHypothesis/HeatOperatorCriterion.lean new file mode 100644 index 000000000..d4a58ecf1 --- /dev/null +++ b/RealRooted/RiemannHypothesis/HeatOperatorCriterion.lean @@ -0,0 +1,52 @@ +module + +public import RealRooted.RiemannHypothesis +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperatorCriterion +import RealRooted.RiemannHypothesis.HeatOperator + +/-! +# RH criteria from positive-time xi heat images + +Mathlib's RH is equivalent to LP membership of the normalized square-variable +xi heat images at all positive times, or just at arbitrarily small positive +times. The criterion also admits all derivative shifts. These are consequences +of the existing RH equivalence and the general heat-limit criterion. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- RH is equivalent to LP membership of every positive-time heat image of +the normalized square-variable xi function. -/ +theorem riemannHypothesis_iff_heatOperator_pos : + RiemannHypothesis ↔ ∀ t : ℝ, 0 < t → + IsLaguerrePolya (heatOperator (t : ℂ) riemannXiTheta) := by + rw [riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta] + exact isLaguerrePolya_iff_heatOperator_pos differentiable_riemannXiTheta + orderLE_half_riemannXiTheta (by norm_num) + +/-- It suffices to test LP membership of xi heat images at arbitrarily small +positive times. No simplicity assertion is made at time zero. -/ +theorem riemannHypothesis_iff_heatOperator_near_zero : + RiemannHypothesis ↔ ∀ ε : ℝ, 0 < ε → ∃ t : ℝ, 0 < t ∧ t < ε ∧ + IsLaguerrePolya (heatOperator (t : ℂ) riemannXiTheta) := by + rw [riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta] + exact isLaguerrePolya_iff_heatOperator_near_zero differentiable_riemannXiTheta + orderLE_half_riemannXiTheta (by norm_num) + +/-- RH is equivalent to LP membership of all derivative shifts of the xi +heat images at every positive time. -/ +theorem riemannHypothesis_iff_iteratedDeriv_heatOperator_pos : + RiemannHypothesis ↔ ∀ n : ℕ, ∀ t : ℝ, 0 < t → + IsLaguerrePolya (heatOperator (t : ℂ) (iteratedDeriv n riemannXiTheta)) := by + constructor + · exact fun hRH n _ ht => (heatOperator_riemannXiTheta_simple_zeros hRH n ht).1 + · intro h + exact riemannHypothesis_iff_heatOperator_pos.mpr (by simpa using h 0) + +end RealRooted From 7ca1ae4751b612f2ab7142980b18f9fe379a3f55 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 17:15:55 +0000 Subject: [PATCH 48/56] feat: preserve arithmetic xi sections under RH --- .../ArithmeticNormalization.lean | 93 +++++++++++ .../EulerOperator/ArithmeticProduct.lean | 156 ++++++++++++++++++ .../Data/Nat/Factorial/ArithmeticProduct.lean | 57 +++++++ RealRooted/MultiplierSequence/Arithmetic.lean | 75 +++++++++ .../MultiplierSequence/ArithmeticSection.lean | 130 +++++++++++++++ .../PolyaSchur/LaguerrePolya/TypeI.lean | 6 +- RealRooted/RiemannHypothesis/Arithmetic.lean | 42 +++++ 7 files changed, 557 insertions(+), 2 deletions(-) create mode 100644 RealRooted/EulerOperator/ArithmeticNormalization.lean create mode 100644 RealRooted/EulerOperator/ArithmeticProduct.lean create mode 100644 RealRooted/Mathlib/Data/Nat/Factorial/ArithmeticProduct.lean create mode 100644 RealRooted/MultiplierSequence/Arithmetic.lean create mode 100644 RealRooted/MultiplierSequence/ArithmeticSection.lean create mode 100644 RealRooted/RiemannHypothesis/Arithmetic.lean diff --git a/RealRooted/EulerOperator/ArithmeticNormalization.lean b/RealRooted/EulerOperator/ArithmeticNormalization.lean new file mode 100644 index 000000000..6fd6e9b54 --- /dev/null +++ b/RealRooted/EulerOperator/ArithmeticNormalization.lean @@ -0,0 +1,93 @@ +module + +public import RealRooted.EulerOperator.ArithmeticProduct +public import Mathlib.Topology.MetricSpace.Pseudo.Defs +import RealRooted.Mathlib.Analysis.SpecialFunctions.Choose + +/-! +# Normalized arithmetic polar multipliers + +The scale `r^r M^(r-1)` removes the falling-factorial attenuation in the +finite arithmetic polar approximants. The resulting coefficients converge +to the factorial ratio needed for exponential generating sections. +-/ + +public section + +open Filter Topology + +namespace RealRooted + +/-- The scaling used in arithmetic sections has the required power identity. -/ +private theorem arithmetic_scale_pow {r : ℕ} (hr : r ≠ 0) (M k : ℕ) : + ((r : ℝ) ^ r * (M : ℝ) ^ (r - 1)) ^ k * (M : ℝ) ^ k = + ((r * M : ℕ) : ℝ) ^ (r * k) := by + have he : (r - 1) * k + k = r * k := by + calc + _ = (r - 1 + 1) * k := by ring + _ = _ := by rw [Nat.sub_add_cancel (Nat.pos_of_ne_zero hr)] + rw [mul_pow, ← pow_mul, ← pow_mul, mul_assoc, ← pow_add, he, Nat.cast_mul, mul_pow] + +/-- The two reflections in the arithmetic approximation cancel the signs +of its finite multiplier. -/ +private theorem arithmetic_sign_cancel {r : ℕ} (hr : r ≠ 0) (k : ℕ) : + (-1 : ℝ) ^ (r * k + k) * (-1) ^ (r * k - k) = 1 := by + have hk : k ≤ r * k := Nat.le_mul_of_pos_left k (Nat.pos_of_ne_zero hr) + rw [← pow_add, show r * k + k + (r * k - k) = r * k + r * k by lia, + pow_add, ← mul_pow] + norm_num + +/-- After reflection and scaling, the arithmetic multiplier is a ratio of +normalized descending factorials. -/ +theorem arithmeticPolarMultiplier_normalized {r M k : ℕ} + (hr : r ≠ 0) (hM : M ≠ 0) (hk : k ≤ M) : + (-1 : ℝ) ^ (r * k + k) * + (arithmeticPolarMultiplier r (r * M) (r * k) / + arithmeticPolarMultiplier r (r * M) 0) * + ((r : ℝ) ^ r * (M : ℝ) ^ (r - 1)) ^ k = + ((r * k).factorial : ℝ) / k.factorial * + (((M.descFactorial k : ℝ) / (M : ℝ) ^ k) / + (((r * M).descFactorial (r * k) : ℝ) / ((r * M : ℕ) : ℝ) ^ (r * k))) := by + rw [arithmeticPolarMultiplier_ratio hr hk] + have hsign := arithmetic_sign_cancel hr k + have hscale := arithmetic_scale_pow hr M k + have hrM : ((r * M : ℕ) : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr (Nat.mul_ne_zero hr hM) + have hMR : (M : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hM + have hdesc : ((r * M).descFactorial (r * k) : ℝ) ≠ 0 := by + exact_mod_cast (Nat.descFactorial_pos.mpr (Nat.mul_le_mul_left r hk)).ne' + have hkfac : (k.factorial : ℝ) ≠ 0 := by positivity + calc + _ = ((r * k).factorial : ℝ) / k.factorial * + M.descFactorial k / (r * M).descFactorial (r * k) * + ((r : ℝ) ^ r * (M : ℝ) ^ (r - 1)) ^ k := by + calc + _ = ((-1 : ℝ) ^ (r * k + k) * (-1) ^ (r * k - k)) * + (((r * k).factorial : ℝ) / k.factorial * + M.descFactorial k / (r * M).descFactorial (r * k) * + ((r : ℝ) ^ r * (M : ℝ) ^ (r - 1)) ^ k) := by ring + _ = _ := by rw [hsign, one_mul] + _ = _ := by + field_simp + rw [← hscale] + ring + +/-- For a fixed stride and coefficient index, the normalized arithmetic +multiplier tends to the exponential-section factorial ratio. -/ +theorem tendsto_arithmeticPolarMultiplier_normalized {r : ℕ} (hr : r ≠ 0) (k : ℕ) : + Tendsto (fun M : ℕ => (-1 : ℝ) ^ (r * k + k) * + (arithmeticPolarMultiplier r (r * M) (r * k) / + arithmeticPolarMultiplier r (r * M) 0) * + ((r : ℝ) ^ r * (M : ℝ) ^ (r - 1)) ^ k) + atTop (𝓝 (((r * k).factorial : ℝ) / k.factorial)) := by + have hm : Tendsto (fun M : ℕ => r * M) atTop atTop := + tendsto_atTop.mpr fun n => (eventually_ge_atTop n).mono fun M hM => + hM.trans (Nat.le_mul_of_pos_left M (Nat.pos_of_ne_zero hr)) + have hratio := (Nat.tendsto_descFactorial_div_pow_atTop k).div + ((Nat.tendsto_descFactorial_div_pow_atTop (r * k)).comp hm) (by norm_num) + have hlim := hratio.const_mul (((r * k).factorial : ℝ) / k.factorial) + simp only [div_self (by norm_num : (1 : ℝ) ≠ 0), mul_one] at hlim + apply hlim.congr' + filter_upwards [eventually_ge_atTop k, eventually_ge_atTop 1] with M hk hM + exact (arithmeticPolarMultiplier_normalized hr (by lia) hk).symm + +end RealRooted diff --git a/RealRooted/EulerOperator/ArithmeticProduct.lean b/RealRooted/EulerOperator/ArithmeticProduct.lean new file mode 100644 index 000000000..e3b6d10d3 --- /dev/null +++ b/RealRooted/EulerOperator/ArithmeticProduct.lean @@ -0,0 +1,156 @@ +module + +public import RealRooted.EulerOperator.ArithmeticSections +import RealRooted.Mathlib.Data.Nat.Factorial.ArithmeticProduct + +/-! +# Arithmetic polar multipliers without Gamma functions + +Finite products over integers not divisible by the stride describe the +arithmetic polar approximants. Reflection and translation evaluate these +products at multiples of the stride, without using Gamma functions at poles. +-/ + +@[expose] public section + +open Polynomial Finset + +namespace RealRooted + +/-- The multiplier obtained from the arithmetic polar parameters. -/ +noncomputable def arithmeticPolarMultiplier (r N k : ℕ) : ℝ := + ∏ a ∈ (Ioc 0 N).filter (fun a => ¬r ∣ a), ((a : ℝ) - k) + +theorem coeff_arithmetic_polarThetaProduct (r N k : ℕ) (p : ℝ[X]) : + (polarThetaProduct (arithmeticPolarParameters r N) p).coeff k = + arithmeticPolarMultiplier r N k * p.coeff k := by + rw [coeff_polarThetaProduct] + rfl + +/-- The constant multiplier is the factorial with the stride multiples removed. -/ +theorem arithmeticPolarMultiplier_zero_mul (r N : ℕ) : + arithmeticPolarMultiplier r N 0 * (r : ℝ) ^ (N / r) * (N / r).factorial = + N.factorial := by + simpa only [arithmeticPolarMultiplier, Nat.cast_zero, sub_zero, Nat.cast_mul, + Nat.cast_prod, Nat.cast_pow] using + congrArg (fun n : ℕ => (n : ℝ)) (Nat.prod_Ioc_not_dvd_mul_pow_mul_factorial r N) + +/-- The constant multiplier is positive, including at zero stride or cutoff. -/ +theorem arithmeticPolarMultiplier_zero_pos (r N : ℕ) : + 0 < arithmeticPolarMultiplier r N 0 := by + simp only [arithmeticPolarMultiplier, Nat.cast_zero, sub_zero] + exact prod_pos fun a ha => Nat.cast_pos.mpr (mem_Ioc.mp (mem_filter.mp ha).1).1 + +/-- Reflection in a multiple of the stride preserves its nonmultiple indices. -/ +private theorem sub_mem_nonmultiples {r L a : ℕ} (hL : r ∣ L) + (ha : a ∈ (Ioc 0 L).filter (fun a => ¬r ∣ a)) : + L - a ∈ (Ioc 0 L).filter (fun a => ¬r ∣ a) := by + obtain ⟨hai, had⟩ := mem_filter.mp ha + obtain ⟨ha0, haL⟩ := mem_Ioc.mp hai + have halt : a < L := lt_of_le_of_ne haL (fun h => had (h ▸ hL)) + exact mem_filter.mpr ⟨mem_Ioc.mpr ⟨Nat.sub_pos_of_lt halt, Nat.sub_le _ _⟩, + fun h => had ((Nat.dvd_sub_iff_right haL hL).mp h)⟩ + +/-- The multiplier at a multiple endpoint is its reflected constant value, +with one minus sign for each parameter. -/ +theorem arithmeticPolarMultiplier_self {r L : ℕ} (hL : r ∣ L) : + arithmeticPolarMultiplier r L L = + (-1 : ℝ) ^ (L - L / r) * arithmeticPolarMultiplier r L 0 := by + let s := (Ioc 0 L).filter (fun a => ¬r ∣ a) + have hprod : (∏ a ∈ s, ((L - a : ℕ) : ℝ)) = ∏ a ∈ s, (a : ℝ) := by + apply prod_bij (fun a _ => L - a) (fun _ ha => sub_mem_nonmultiples hL ha) + · intro a ha b hb he + have haL := (mem_Ioc.mp (mem_filter.mp ha).1).2 + have hbL := (mem_Ioc.mp (mem_filter.mp hb).1).2 + lia + · intro b hb + exact ⟨L - b, sub_mem_nonmultiples hL hb, + Nat.sub_sub_self (mem_Ioc.mp (mem_filter.mp hb).1).2⟩ + · intro a _ + rfl + have hcard : s.card = L - L / r := card_arithmeticPolarParameters r L + change (∏ a ∈ s, ((a : ℝ) - L)) = _ + calc + _ = ∏ a ∈ s, -((L - a : ℕ) : ℝ) := by + apply prod_congr rfl + intro a ha + rw [Nat.cast_sub (mem_Ioc.mp (mem_filter.mp ha).1).2] + ring + _ = (-1 : ℝ) ^ s.card * ∏ a ∈ s, ((L - a : ℕ) : ℝ) := prod_neg _ + _ = _ := by rw [hcard, hprod]; simp [arithmeticPolarMultiplier, s] + +/-- Translation by a multiple of the stride preserves the product on the +remaining interval. -/ +private theorem prod_nonmultiples_sub {r L N : ℕ} (hL : r ∣ L) : + (∏ a ∈ (Ioc L N).filter (fun a => ¬r ∣ a), ((a : ℝ) - L)) = + arithmeticPolarMultiplier r (N - L) 0 := by + simp only [arithmeticPolarMultiplier, Nat.cast_zero, sub_zero] + apply prod_bij (fun a _ => a - L) + · intro a ha + obtain ⟨hai, had⟩ := mem_filter.mp ha + obtain ⟨haL, haN⟩ := mem_Ioc.mp hai + exact mem_filter.mpr ⟨mem_Ioc.mpr ⟨Nat.sub_pos_of_lt haL, Nat.sub_le_sub_right haN L⟩, + fun h => had ((Nat.dvd_sub_iff_left haL.le hL).mp h)⟩ + · intro a ha b hb he + have haL := (mem_Ioc.mp (mem_filter.mp ha).1).1 + have hbL := (mem_Ioc.mp (mem_filter.mp hb).1).1 + lia + · intro b hb + obtain ⟨hbi, hbd⟩ := mem_filter.mp hb + obtain ⟨hb0, hbN⟩ := mem_Ioc.mp hbi + refine ⟨b + L, mem_filter.mpr ⟨mem_Ioc.mpr ⟨by lia, by lia⟩, ?_⟩, by lia⟩ + exact fun h => hbd ((Nat.dvd_add_iff_left hL).mpr h) + · intro a ha + rw [Nat.cast_sub (mem_Ioc.mp (mem_filter.mp ha).1).1.le] + +/-- Splitting a finite product at a multiple of the stride gives its exact +Gamma-free value there. -/ +theorem arithmeticPolarMultiplier_of_dvd {r L N : ℕ} (hL : r ∣ L) (hLN : L ≤ N) : + arithmeticPolarMultiplier r N L = (-1 : ℝ) ^ (L - L / r) * + arithmeticPolarMultiplier r L 0 * arithmeticPolarMultiplier r (N - L) 0 := by + unfold arithmeticPolarMultiplier + rw [prod_filter, ← prod_Ioc_consecutive _ (Nat.zero_le L) hLN, + ← prod_filter, ← prod_filter] + change arithmeticPolarMultiplier r L L * _ = _ + rw [arithmeticPolarMultiplier_self hL, prod_nonmultiples_sub hL] + rfl + +/-- At a stride-multiple cutoff, the constant multiplier has a factorial ratio +with nonzero denominator. -/ +theorem arithmeticPolarMultiplier_zero_mul_eq {r : ℕ} (hr : r ≠ 0) (M : ℕ) : + arithmeticPolarMultiplier r (r * M) 0 = + ((r * M).factorial : ℝ) / ((r : ℝ) ^ M * M.factorial) := by + have hrR : (r : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hr + rw [eq_div_iff (mul_ne_zero (pow_ne_zero _ hrR) (by positivity))] + simpa only [Nat.mul_div_cancel_left _ (Nat.pos_of_ne_zero hr), mul_assoc] using + arithmeticPolarMultiplier_zero_mul r (r * M) + +/-- The exact finite arithmetic multiplier ratio. Every factorial and +descending factorial in the denominator is nonzero under the stated bounds. -/ +theorem arithmeticPolarMultiplier_ratio {r M k : ℕ} (hr : r ≠ 0) (hk : k ≤ M) : + arithmeticPolarMultiplier r (r * M) (r * k) / arithmeticPolarMultiplier r (r * M) 0 = + (-1 : ℝ) ^ (r * k - k) * ((r * k).factorial : ℝ) / k.factorial * + M.descFactorial k / (r * M).descFactorial (r * k) := by + have hmul : r * k ≤ r * M := Nat.mul_le_mul_left r hk + rw [arithmeticPolarMultiplier_of_dvd (dvd_mul_right r k) hmul, + Nat.mul_div_cancel_left _ (Nat.pos_of_ne_zero hr), ← Nat.mul_sub_left_distrib, + arithmeticPolarMultiplier_zero_mul_eq hr, arithmeticPolarMultiplier_zero_mul_eq hr, + arithmeticPolarMultiplier_zero_mul_eq hr] + have hp : (r : ℝ) ^ M = (r : ℝ) ^ k * (r : ℝ) ^ (M - k) := by + rw [← pow_add, Nat.add_sub_of_le hk] + have hM : (M.factorial : ℝ) = ((M - k).factorial : ℝ) * M.descFactorial k := by + exact_mod_cast (Nat.factorial_mul_descFactorial hk).symm + have hRM : ((r * M).factorial : ℝ) = + ((r * (M - k)).factorial : ℝ) * (r * M).descFactorial (r * k) := by + rw [Nat.mul_sub_left_distrib] + exact_mod_cast (Nat.factorial_mul_descFactorial hmul).symm + have hrR : (r : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hr + have hdR : ((r * M).descFactorial (r * k) : ℝ) ≠ 0 := by + exact_mod_cast (Nat.descFactorial_pos.mpr hmul).ne' + have hkR : (k.factorial : ℝ) ≠ 0 := by positivity + have hsubR : ((M - k).factorial : ℝ) ≠ 0 := by positivity + have hrsubR : ((r * (M - k)).factorial : ℝ) ≠ 0 := by positivity + rw [hp, hM, hRM] + field_simp + +end RealRooted diff --git a/RealRooted/Mathlib/Data/Nat/Factorial/ArithmeticProduct.lean b/RealRooted/Mathlib/Data/Nat/Factorial/ArithmeticProduct.lean new file mode 100644 index 000000000..0bb0750e5 --- /dev/null +++ b/RealRooted/Mathlib/Data/Nat/Factorial/ArithmeticProduct.lean @@ -0,0 +1,57 @@ +/- +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.Order.Interval.Finset.Nat +public import Mathlib.Algebra.BigOperators.Group.Finset.Defs +import Mathlib.Algebra.BigOperators.Intervals +import Mathlib.Tactic.Ring.RingNF + +/-! +# Factorial products with multiples removed + +The product of the positive integers through `N` not divisible by `r` is +`N! / (r^(N/r) (N/r)!)`. The division-free identity also covers `r = 0`. +-/ + +public section + +open Finset + +namespace Nat + +/-- Separating the multiples of a stride from a factorial gives a product +identity without division. The stride may be zero. -/ +theorem prod_Ioc_not_dvd_mul_pow_mul_factorial (r N : ℕ) : + (∏ a ∈ (Ioc 0 N).filter (fun a => ¬r ∣ a), a) * r ^ (N / r) * (N / r).factorial = + N.factorial := by + induction N with + | zero => simp + | succ n ih => + have hprod : (∏ a ∈ (Ioc 0 (n + 1)).filter (fun a => ¬r ∣ a), a) = + (∏ a ∈ (Ioc 0 n).filter (fun a => ¬r ∣ a), a) * + (if r ∣ n + 1 then 1 else n + 1) := by + simp only [prod_filter] + rw [prod_Ioc_succ_top (Nat.zero_le _)] + simp only [ite_not] + rw [hprod] + by_cases hd : r ∣ n + 1 + · simp only [hd, ↓reduceIte, mul_one, succ_div_of_dvd hd, pow_succ, factorial_succ] + have hm : (n / r + 1) * r = n + 1 := by + rw [← succ_div_of_dvd hd, Nat.div_mul_cancel hd] + calc + _ = ((∏ a ∈ (Ioc 0 n).filter (fun a => ¬r ∣ a), a) * + r ^ (n / r) * (n / r).factorial) * ((n / r + 1) * r) := by ring + _ = n.factorial * (n + 1) := by rw [ih, hm] + _ = _ := by ring + · simp only [hd, ↓reduceIte, succ_div_of_not_dvd hd, factorial_succ] + calc + _ = ((∏ a ∈ (Ioc 0 n).filter (fun a => ¬r ∣ a), a) * + r ^ (n / r) * (n / r).factorial) * (n + 1) := by ring + _ = n.factorial * (n + 1) := by rw [ih] + _ = _ := by ring + +end Nat diff --git a/RealRooted/MultiplierSequence/Arithmetic.lean b/RealRooted/MultiplierSequence/Arithmetic.lean new file mode 100644 index 000000000..1185eba8e --- /dev/null +++ b/RealRooted/MultiplierSequence/Arithmetic.lean @@ -0,0 +1,75 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +import RealRooted.MultiplierSequence.ArithmeticSection +import RealRooted.MultiplierSequence.PolyaSchur.Factorial +import RealRooted.MultiplierSequence.PolyaSchur.Limit +import RealRooted.MultiplierSequence.PolyaSchur +import RealRooted.PFPolynomial.Closure + +/-! +# Arithmetic subsequences of positive multiplier sequences + +Pólya's arithmetic-section theorem preserves the Type-I Laguerre--Pólya +class. Equivalently, every arithmetic subsequence of a PF multiplier +sequence is again a PF multiplier sequence. Arbitrary starting indices are +allowed. A zero stride gives a constant sequence, hence an exponential. + +Reference: G. Pólya, *Über einen Satz von Laguerre*, JDMV 38 (1929), +161--168, §4(b). +-/ + +public section + +open Polynomial Filter Topology + +namespace RealRooted + +/-- The zero-start arithmetic subsequence of a PF multiplier sequence remains PF. -/ +private theorem isPFMultiplierSequence_mul {gamma : ℕ → ℝ} + (hgamma : IsPFMultiplierSequence gamma) (r : ℕ) : + IsPFMultiplierSequence (fun k => gamma (r * k)) := by + by_cases hr : r = 0 + · simpa [hr] using isPFMultiplierSequence_const_sequence (hgamma.nonneg 0) + let p : ℕ → ℝ[X] := fun n => exponentialSection r (rescaledJensenPolynomial (n + 1) gamma) + have hp (n : ℕ) : IsPFPolynomial (p n) := + (hgamma.isPFPolynomial_rescaledJensenPolynomial (n + 1)).exponentialSection r + apply isPFMultiplierSequence_of_tendsto + (gamma := fun n k => (k.factorial : ℝ) * (p n).coeff k) + (fun n => (hp n).isPFMultiplierSequence_factorial_mul_coeff) + intro k + have he (n : ℕ) : (k.factorial : ℝ) * (p n).coeff k = + ((r * k).factorial : ℝ) * (rescaledJensenPolynomial (n + 1) gamma).coeff (r * k) := by + dsimp only [p] + rw [coeff_exponentialSection hr] + field_simp + simp_rw [he] + have hl := ((tendsto_coeff_rescaledJensenPolynomial gamma (r * k)).comp + (tendsto_add_atTop_nat 1)).const_mul ((r * k).factorial : ℝ) + simpa only [Function.comp_def, + mul_div_cancel₀ _ (by positivity : ((r * k).factorial : ℝ) ≠ 0)] using hl + +/-- Every arithmetic subsequence of a PF multiplier sequence is again a PF +multiplier sequence. The zero stride gives the constant sequence at the start index. -/ +theorem IsPFMultiplierSequence.arithmetic {gamma : ℕ → ℝ} + (hgamma : IsPFMultiplierSequence gamma) (r s : ℕ) : + IsPFMultiplierSequence (fun k => gamma (s + r * k)) := by + simpa only [Nat.add_comm] using isPFMultiplierSequence_mul (hgamma.shift s) r + +/-- The exponential generating function of every arithmetic subsequence +belongs to the positive Type-I Laguerre--Pólya class. -/ +theorem IsPFMultiplierSequence.isLaguerrePolyaTypeI_arithmetic {gamma : ℕ → ℝ} + (hgamma : IsPFMultiplierSequence gamma) (r s : ℕ) : + IsLaguerrePolyaTypeI (complexExpGeneratingFunction (fun k => gamma (s + r * k))) := + (hgamma.arithmetic r s).isLaguerrePolyaTypeI_complexExpGeneratingFunction + +/-- The factorial-normalized coefficients of a PF multiplier sequence form +a Pólya-frequency sequence. -/ +theorem IsPFMultiplierSequence.isPolyaFreqSeq_div_factorial {gamma : ℕ → ℝ} + (hgamma : IsPFMultiplierSequence gamma) : + IsPolyaFreqSeq (fun k => gamma k / k.factorial) := + IsPolyaFreqSeq.of_tendsto + (fun n => (hgamma.isPFPolynomial_rescaledJensenPolynomial (n + 1)).to_sequence) + (fun k => (tendsto_coeff_rescaledJensenPolynomial gamma k).comp (tendsto_add_atTop_nat 1)) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/ArithmeticSection.lean b/RealRooted/MultiplierSequence/ArithmeticSection.lean new file mode 100644 index 000000000..ac615df99 --- /dev/null +++ b/RealRooted/MultiplierSequence/ArithmeticSection.lean @@ -0,0 +1,130 @@ +module + +public import RealRooted.EulerOperator.ArithmeticProduct +public import Mathlib.Topology.MetricSpace.Pseudo.Defs +import RealRooted.EulerOperator.ArithmeticNormalization +import RealRooted.Mathlib.Algebra.Polynomial.Degree.Lemmas +import RealRooted.PFPolynomial.Closure +import RealRooted.Mathlib.Topology.Algebra.Polynomial + +/-! +# Exponential generating sections of PF polynomials + +For a nonzero stride `r`, the exponential section takes the raw exponential +coefficients `b_n` to `b_(r*k)`. Finite polar Euler approximants converge +coefficientwise to this section and preserve its real nonpositive roots. +The zero-stride value of the polynomial operator is defined to be zero. +-/ + +@[expose] public section + +open Polynomial Filter Topology + +namespace RealRooted + +/-- The arithmetic section of exponential generating coefficients, with the +zero polynomial as the zero-stride convention. -/ +noncomputable def exponentialSection (r : ℕ) (p : ℝ[X]) : ℝ[X] := + if r = 0 then 0 else + diagonalOperator (fun k => ((r * k).factorial : ℝ) / k.factorial) (contract r p) + +/-- The normalized finite polar approximation to an exponential section. -/ +noncomputable def arithmeticSectionApprox (r M : ℕ) (p : ℝ[X]) : ℝ[X] := + C ((arithmeticPolarMultiplier r (r * M) 0)⁻¹) * + (contract r (polarThetaProduct (arithmeticPolarParameters r (r * M)) + (p.comp (-X)))).comp (C (-((r : ℝ) ^ r * (M : ℝ) ^ (r - 1))) * X) + +theorem coeff_exponentialSection {r : ℕ} (hr : r ≠ 0) (p : ℝ[X]) (k : ℕ) : + (exponentialSection r p).coeff k = + ((r * k).factorial : ℝ) / k.factorial * p.coeff (r * k) := by + simp [exponentialSection, hr, coeff_contract, Nat.mul_comm k r] + +theorem coeff_arithmeticSectionApprox {r : ℕ} (hr : r ≠ 0) (M : ℕ) (p : ℝ[X]) (k : ℕ) : + (arithmeticSectionApprox r M p).coeff k = p.coeff (r * k) * + ((-1 : ℝ) ^ (r * k + k) * + (arithmeticPolarMultiplier r (r * M) (r * k) / + arithmeticPolarMultiplier r (r * M) 0) * + ((r : ℝ) ^ r * (M : ℝ) ^ (r - 1)) ^ k) := by + simp only [arithmeticSectionApprox, coeff_C_mul, comp_C_mul_X_coeff, + coeff_contract hr, coeff_arithmetic_polarThetaProduct, coeff_comp_neg_X, + Nat.mul_comm k r] + rw [show (-((r : ℝ) ^ r * (M : ℝ) ^ (r - 1))) ^ k = + (-1 : ℝ) ^ k * ((r : ℝ) ^ r * (M : ℝ) ^ (r - 1)) ^ k from neg_pow _ _, pow_add] + ring + +/-- The finite approximants converge coefficientwise to the exponential section. -/ +theorem tendsto_coeff_arithmeticSectionApprox {r : ℕ} (hr : r ≠ 0) + (p : ℝ[X]) (k : ℕ) : + Tendsto (fun M => (arithmeticSectionApprox r M p).coeff k) atTop + (𝓝 ((exponentialSection r p).coeff k)) := by + simpa only [coeff_arithmeticSectionApprox hr, coeff_exponentialSection hr, mul_comm] + using (tendsto_arithmeticPolarMultiplier_normalized hr k).const_mul (p.coeff (r * k)) + +/-- Once the cutoff exceeds the input degree, the approximants have nonnegative coefficients. -/ +theorem HasNonnegCoeffs.arithmeticSectionApprox {p : ℝ[X]} (hp : HasNonnegCoeffs p) + {r M : ℕ} (hr : r ≠ 0) (hM : M ≠ 0) (hdeg : p.natDegree ≤ M) : + HasNonnegCoeffs (RealRooted.arithmeticSectionApprox r M p) := by + intro k + rw [coeff_arithmeticSectionApprox hr] + by_cases hk : k ≤ M + · rw [arithmeticPolarMultiplier_normalized hr hM hk] + exact mul_nonneg (hp _) (by positivity) + · have hpzero : p.coeff (r * k) = 0 := coeff_eq_zero_of_natDegree_lt + ((hdeg.trans_lt (Nat.lt_of_not_ge hk)).trans_le + (Nat.le_mul_of_pos_left k (Nat.pos_of_ne_zero hr))) + rw [hpzero, zero_mul] + +/-- Every sufficiently large finite arithmetic approximant of a PF polynomial +nonzero at zero is PF. -/ +theorem IsPFPolynomial.arithmeticSectionApprox {p : ℝ[X]} (hp : IsPFPolynomial p) + (h0 : p.coeff 0 ≠ 0) {r M : ℕ} (hr : r ≠ 0) (hM : M ≠ 0) + (hdeg : p.natDegree ≤ M) : + IsPFPolynomial (RealRooted.arithmeticSectionApprox r M p) := by + apply IsPFPolynomial.of_realRooted_nonneg + (hp.hasNonnegCoeffs.arithmeticSectionApprox hr hM hdeg) + exact ((hp.contract_arithmetic_polarThetaProduct_splits h0 hr + (hdeg.trans (Nat.le_mul_of_pos_left M (Nat.pos_of_ne_zero hr)))).comp_of_degree_le_one + (degree_C_mul_X_le _)).C_mul _ + +/-- Arithmetic sections of raw exponential coefficients preserve PF +polynomials with nonzero constant coefficient (Pólya, 1929, §4(b)). -/ +private theorem IsPFPolynomial.exponentialSection_of_coeff_zero_ne_zero {p : ℝ[X]} + (hp : IsPFPolynomial p) (h0 : p.coeff 0 ≠ 0) {r : ℕ} (hr : r ≠ 0) : + IsPFPolynomial (exponentialSection r p) := by + let M : ℕ → ℕ := fun n => n + p.natDegree + 1 + have hM : Tendsto M atTop atTop := tendsto_atTop.mpr fun k => + (eventually_ge_atTop k).mono fun n hn => by dsimp [M]; lia + apply IsPFPolynomial.of_coeff_tendsto + (p := fun n => RealRooted.arithmeticSectionApprox r (M n) p) + (fun n => hp.arithmeticSectionApprox h0 hr (by dsimp [M]; lia) (by dsimp [M]; lia)) + intro k + exact (tendsto_coeff_arithmeticSectionApprox hr p k).comp hM + +/-- Arithmetic subsequences of exponential generating coefficients preserve +PF polynomials (Pólya, 1929, §4(b)). Zero polynomials and roots at zero are +included; the zero-stride value uses the stated zero-polynomial convention. -/ +theorem IsPFPolynomial.exponentialSection {p : ℝ[X]} (hp : IsPFPolynomial p) (r : ℕ) : + IsPFPolynomial (RealRooted.exponentialSection r p) := by + by_cases hr : r = 0 + · simpa [RealRooted.exponentialSection, hr] using IsPFPolynomial.zero + by_cases hp0 : p = 0 + · simpa [RealRooted.exponentialSection, hr, hp0, contract] using IsPFPolynomial.zero + have hc : IsClosed {t : ℝ | IsPFPolynomial + (RealRooted.exponentialSection r (p.comp (X + C t)))} := + isClosed_isPFPolynomial _ fun k => by + simpa only [coeff_exponentialSection hr] using + (p.continuous_coeff_comp_X_add_C (r * k)).const_mul + (((r * k).factorial : ℝ) / k.factorial) + have hmem : Set.Ioi (0 : ℝ) ⊆ {t : ℝ | IsPFPolynomial + (RealRooted.exponentialSection r (p.comp (X + C t)))} := by + intro t ht + have hp' : IsPFPolynomial (p.comp (X + C t)) := by + simpa using hp.comp_C_mul_X_add_C (a := 1) (by norm_num) (le_of_lt ht) + apply hp'.exponentialSection_of_coeff_zero_ne_zero _ hr + rw [coeff_zero_eq_eval_zero, eval_comp] + simpa only [eval_add, eval_X, eval_C, zero_add] using + (eval_pos_of_hasNonnegCoeffs hp.hasNonnegCoeffs hp0 ht).ne' + have hlimit := closure_minimal hmem hc (show (0 : ℝ) ∈ closure (Set.Ioi 0) by simp) + simpa only [Set.mem_ofPred_eq, map_zero, add_zero, comp_X] using hlimit + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeI.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeI.lean index 324d7d630..bdc1f5011 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeI.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/TypeI.lean @@ -36,7 +36,9 @@ theorem IsLaguerrePolyaTypeI.toLaguerrePolya {f : ℂ → ℂ} rcases hf with ⟨p, hp, hlim⟩ exact ⟨p, fun n => (hp n).eq_zero_or_splits, hlim⟩ -private theorem IsPFMultiplierSequence.isPF_rescaledJensenPolynomial +/-- Every rescaled Jensen polynomial of a PF multiplier sequence is PF, +including degree zero. -/ +theorem IsPFMultiplierSequence.isPFPolynomial_rescaledJensenPolynomial {gamma : ℕ → ℝ} (hgamma : IsPFMultiplierSequence gamma) (n : ℕ) : IsPFPolynomial (rescaledJensenPolynomial n gamma) := by cases n with @@ -55,7 +57,7 @@ theorem IsPFMultiplierSequence.isLaguerrePolyaTypeI_complexExpGeneratingFunction {gamma : ℕ → ℝ} (hgamma : IsPFMultiplierSequence gamma) : IsLaguerrePolyaTypeI (complexExpGeneratingFunction gamma) := by refine ⟨fun n => rescaledJensenPolynomial n gamma, - fun n => hgamma.isPF_rescaledJensenPolynomial n, ?_⟩ + fun n => hgamma.isPFPolynomial_rescaledJensenPolynomial n, ?_⟩ exact tendstoLocallyUniformly_complexExpGeneratingFunction_of_summable gamma fun R hR => hgamma.summable_expGenerating_majorant R hR diff --git a/RealRooted/RiemannHypothesis/Arithmetic.lean b/RealRooted/RiemannHypothesis/Arithmetic.lean new file mode 100644 index 000000000..2f4e864c3 --- /dev/null +++ b/RealRooted/RiemannHypothesis/Arithmetic.lean @@ -0,0 +1,42 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +import RealRooted.RiemannHypothesis.MultiplierSequence +import RealRooted.MultiplierSequence.Arithmetic + +/-! +# Arithmetic xi multiplier sequences under RH + +Pólya's arithmetic-section theorem applied to the normalized xi coefficients +under RH gives new Type-I entire functions, multiplier sequences and totally +nonnegative Toeplitz matrices at every stride and starting index. +-/ + +public section + +namespace RealRooted + +/-- Under RH, every arithmetic subsequence of normalized xi coefficients is +a PF multiplier sequence. -/ +theorem isPFMultiplierSequence_riemannXiCoeff_arithmetic + (hRH : RiemannHypothesis) (r s : ℕ) : + IsPFMultiplierSequence (fun k => riemannXiCoeff (s + r * k)) := + (isPFMultiplierSequence_riemannXiCoeff hRH).arithmetic r s + +/-- Under RH, every arithmetic exponential section of the xi coefficients +is an entire positive Type-I Laguerre--Pólya function. -/ +theorem isLaguerrePolyaTypeI_riemannXiCoeff_arithmetic + (hRH : RiemannHypothesis) (r s : ℕ) : + IsLaguerrePolyaTypeI + (complexExpGeneratingFunction (fun k => riemannXiCoeff (s + r * k))) := + (isPFMultiplierSequence_riemannXiCoeff hRH).isLaguerrePolyaTypeI_arithmetic r s + +/-- Under RH, every factorial-normalized arithmetic xi sequence has all +Toeplitz minors nonnegative. -/ +theorem isPolyaFreqSeq_riemannXiCoeff_arithmetic_div_factorial + (hRH : RiemannHypothesis) (r s : ℕ) : + IsPolyaFreqSeq (fun k => riemannXiCoeff (s + r * k) / k.factorial) := + (isPFMultiplierSequence_riemannXiCoeff_arithmetic hRH r s).isPolyaFreqSeq_div_factorial + +end RealRooted From f30d13833e55100e19d01dbb52fe57c8064e74ba 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 17:16:48 +0000 Subject: [PATCH 49/56] feat: prove entire infinite differential convergence and LP preservation --- .../Complex/InfiniteDifferential/Basic.lean | 65 +++++++++++++ .../Complex/InfiniteDifferential/Bounds.lean | 92 +++++++++++++++++++ .../InfiniteDifferential/Derivative.lean | 81 ++++++++++++++++ .../Complex/InfiniteDifferential/Star.lean | 38 ++++++++ .../LaguerrePolya/InfiniteDifferential.lean | 60 ++++++++++++ .../InfiniteDifferential.lean | 48 ++++++++++ 6 files changed, 384 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Basic.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Bounds.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Derivative.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Star.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferential.lean create mode 100644 RealRooted/RiemannHypothesis/InfiniteDifferential.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Basic.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Basic.lean new file mode 100644 index 000000000..4ec719365 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Basic.lean @@ -0,0 +1,65 @@ +/- +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.Analysis.Complex.InfiniteDifferential.Bounds +import Mathlib.Analysis.Normed.Group.FunctionSeries + +/-! +# Entire infinite differential operators + +If an entire symbol and target each have growth order below two, their +differential series converges absolutely and locally uniformly in space. +The symbol uses exponential Taylor coefficients: its nth derivative at zero +is divided by n factorial before acting on the nth derivative of the target. +-/ + +@[expose] public section + +open Filter Topology + +namespace Complex + +/-- The infinite differential operator associated with an entire symbol. -/ +noncomputable def infiniteDifferentialApply (φ f : ℂ → ℂ) (z : ℂ) : ℂ := + ∑' n : ℕ, iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ) + +/-- The differential series is absolutely convergent when both entire inputs +have order strictly below two. -/ +theorem summable_norm_infiniteDifferentialApply {φ f : ℂ → ℂ} {ρ σ : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hρ : ρ < 2) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hσ : σ < 2) (z : ℂ) : + Summable (fun n : ℕ => + ‖iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)‖) := by + obtain ⟨M, _, hM⟩ := exists_infinite_differential_term_bound hφ hoφ hρ hf hof hσ (norm_nonneg z) + exact Summable.of_nonneg_of_le (fun _ => norm_nonneg _) (fun n => hM n z le_rfl) + ((summable_geometric_of_abs_lt_one (by norm_num : |(1 / 2 : ℝ)| < 1)).mul_left M) + +/-- Infinite differential partial sums converge uniformly on every spatial disk. -/ +theorem tendstoUniformlyOn_infiniteDifferentialApply {φ f : ℂ → ℂ} {ρ σ : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hρ : ρ < 2) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hσ : σ < 2) + {R : ℝ} (hR : 0 ≤ R) : + TendstoUniformlyOn (fun N z => ∑ n ∈ Finset.range N, + iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)) + (infiniteDifferentialApply φ f) atTop {z | ‖z‖ ≤ R} := by + obtain ⟨M, _, hM⟩ := exists_infinite_differential_term_bound hφ hoφ hρ hf hof hσ hR + exact tendstoUniformlyOn_tsum_nat + ((summable_geometric_of_abs_lt_one (by norm_num : |(1 / 2 : ℝ)| < 1)).mul_left M) hM + +/-- Infinite differential partial sums converge locally uniformly in space. -/ +theorem tendstoLocallyUniformly_infiniteDifferentialApply {φ f : ℂ → ℂ} {ρ σ : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hρ : ρ < 2) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hσ : σ < 2) : + TendstoLocallyUniformly (fun N z => ∑ n ∈ Finset.range N, + iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)) + (infiniteDifferentialApply φ f) atTop := by + rw [tendstoLocallyUniformly_iff_forall_isCompact] + intro K hK + obtain ⟨R, hR, hbound⟩ := hK.isBounded.exists_pos_norm_le + exact (tendstoUniformlyOn_infiniteDifferentialApply hφ hoφ hρ hf hof hσ hR.le).mono hbound + +end Complex diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Bounds.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Bounds.lean new file mode 100644 index 000000000..d4f50f711 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Bounds.lean @@ -0,0 +1,92 @@ +/- +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.Analysis.Complex.HeatOperator.Bounds +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import Mathlib.Data.Nat.Choose.Basic + +/-! +# Bounds for infinite differential symbols below order two + +The even-derivative heat estimate gives a geometric bound for the product of +two derivative sequences divided by a factorial. Applying the same estimate +to the first derivatives also controls the odd terms. +-/ + +public section + +namespace Complex + +/-- Even derivative products admit a common geometric bound on spatial disks. -/ +private theorem exists_even_differential_bound {φ f : ℂ → ℂ} {ρ σ : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hρ : ρ < 2) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hσ : σ < 2) + {R : ℝ} (hR : 0 ≤ R) : + ∃ M > 0, ∀ n N : ℕ, 2 * n ≤ N → ∀ z : ℂ, ‖z‖ ≤ R → + ‖iteratedDeriv (2 * n) φ 0 * iteratedDeriv (2 * n) f z / (N.factorial : ℂ)‖ ≤ + M * (1 / 2 : ℝ) ^ (2 * n) := by + obtain ⟨A, hA, hφb⟩ := exists_heat_term_bound hφ hoφ hρ + (T := 1) (R := 0) (by positivity) le_rfl + obtain ⟨B, hB, hfb⟩ := exists_heat_term_bound hf hof hσ (T := 1) (by positivity) hR + refine ⟨A * B, mul_pos hA hB, fun n N hN z hz => ?_⟩ + have ha : ‖iteratedDeriv (2 * n) φ 0‖ / n.factorial ≤ A * (1 / 2 : ℝ) ^ n := by + simpa only [one_pow, one_div, norm_mul, norm_inv, norm_natCast, inv_mul_eq_div, norm_div] + using hφb n 1 0 (by simp) (by simp) + have hb : ‖iteratedDeriv (2 * n) f z‖ / n.factorial ≤ B * (1 / 2 : ℝ) ^ n := by + simpa only [one_pow, one_div, norm_mul, norm_inv, norm_natCast, inv_mul_eq_div, norm_div] + using hfb n 1 z (by simp) hz + have hfac : (n.factorial : ℝ) ^ 2 ≤ N.factorial := by + have hnat : n.factorial * n.factorial ≤ N.factorial := + (Nat.le_of_dvd (Nat.factorial_pos _) + (Nat.factorial_mul_factorial_dvd_factorial_add n n)).trans + (Nat.factorial_le (by lia : n + n ≤ N)) + simpa only [pow_two, Nat.cast_mul] using (Nat.cast_le (α := ℝ)).mpr hnat + have hratio : (n.factorial : ℝ) ^ 2 / N.factorial ≤ 1 := + (div_le_one (by positivity)).mpr hfac + have hn : (n.factorial : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr n.factorial_ne_zero + simp only [norm_div, norm_mul, norm_natCast] + calc + _ = (‖iteratedDeriv (2 * n) φ 0‖ / n.factorial * + (‖iteratedDeriv (2 * n) f z‖ / n.factorial)) * + ((n.factorial : ℝ) ^ 2 / N.factorial) := by field_simp + _ ≤ (A * (1 / 2 : ℝ) ^ n * (B * (1 / 2 : ℝ) ^ n)) * 1 := + mul_le_mul (mul_le_mul ha hb (by positivity) (by positivity)) hratio + (by positivity) (by positivity) + _ = _ := by rw [show 2 * n = n + n by lia, pow_add]; ring + +/-- On every spatial disk, an infinite differential series whose symbol and +target both have order below two has a geometric majorant. -/ +theorem exists_infinite_differential_term_bound {φ f : ℂ → ℂ} {ρ σ : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hρ : ρ < 2) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hσ : σ < 2) + {R : ℝ} (hR : 0 ≤ R) : + ∃ M > 0, ∀ n : ℕ, ∀ z : ℂ, ‖z‖ ≤ R → + ‖iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)‖ ≤ + M * (1 / 2 : ℝ) ^ n := by + obtain ⟨A, hA, ha⟩ := exists_even_differential_bound hφ hoφ hρ hf hof hσ hR + have hφ' := (hφ.contDiff (n := ⊤)).differentiable_iteratedDeriv 1 (WithTop.coe_lt_top _) + have hf' := (hf.contDiff (n := ⊤)).differentiable_iteratedDeriv 1 (WithTop.coe_lt_top _) + obtain ⟨B, hB, hb⟩ := exists_even_differential_bound + hφ' (hoφ.iteratedDeriv hφ 1) hρ hf' (hof.iteratedDeriv hf 1) hσ hR + refine ⟨A + 2 * B, by positivity, fun n z hz => ?_⟩ + obtain ⟨k, hk | hk⟩ := n.even_or_odd' + · subst n + exact (ha k (2 * k) le_rfl z hz).trans + (mul_le_mul_of_nonneg_right (by linarith) (by positivity)) + · subst n + have hb' : ‖iteratedDeriv (2 * k + 1) φ 0 * + iteratedDeriv (2 * k + 1) f z / ((2 * k + 1).factorial : ℂ)‖ ≤ + B * (1 / 2 : ℝ) ^ (2 * k) := by + simpa only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply] using + hb k (2 * k + 1) (by lia) z hz + calc + _ ≤ B * (1 / 2 : ℝ) ^ (2 * k) := hb' + _ = (2 * B) * (1 / 2 : ℝ) ^ (2 * k + 1) := by rw [pow_succ]; ring + _ ≤ (A + 2 * B) * (1 / 2 : ℝ) ^ (2 * k + 1) := + mul_le_mul_of_nonneg_right (by linarith) (by positivity) + +end Complex diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Derivative.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Derivative.lean new file mode 100644 index 000000000..d852ed894 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Derivative.lean @@ -0,0 +1,81 @@ +/- +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.Analysis.Complex.InfiniteDifferential.Basic +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff +import Mathlib.Analysis.Complex.LocallyUniformLimit + +/-! +# Entire differential sums and spatial differentiation + +For entire inputs of order below two, the normally convergent differential +series defines an entire function and commutes with every spatial derivative. +-/ + +public section + +open Filter Topology + +namespace Complex + +/-- Each finite differential partial sum is entire. -/ +private theorem differentiable_partial_infiniteDifferentialApply {φ f : ℂ → ℂ} + (hf : Differentiable ℂ f) (N : ℕ) : Differentiable ℂ + (fun z => ∑ n ∈ Finset.range N, + iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)) := by + apply Differentiable.fun_sum + intro n _ + exact (((hf.contDiff (n := ⊤)).differentiable_iteratedDeriv _ + (WithTop.coe_lt_top _)).const_mul _).div_const _ + +/-- The infinite differential image of entire inputs of order below two is entire. -/ +theorem differentiable_infiniteDifferentialApply {φ f : ℂ → ℂ} {ρ σ : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hρ : ρ < 2) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hσ : σ < 2) : + Differentiable ℂ (infiniteDifferentialApply φ f) := by + apply differentiableOn_univ.mp + apply (tendstoLocallyUniformlyOn_univ.mpr + (tendstoLocallyUniformly_infiniteDifferentialApply hφ hoφ hρ hf hof hσ)).differentiableOn + (Eventually.of_forall fun N => + (differentiable_partial_infiniteDifferentialApply hf N).differentiableOn) isOpen_univ + +/-- Spatial derivatives commute with finite differential partial sums. -/ +private theorem iteratedDeriv_partial_infiniteDifferentialApply {φ f : ℂ → ℂ} + (hf : Differentiable ℂ f) (N k : ℕ) : + iteratedDeriv k (fun z => ∑ n ∈ Finset.range N, + iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)) = + fun z => ∑ n ∈ Finset.range N, + iteratedDeriv n φ 0 * iteratedDeriv n (iteratedDeriv k f) z / (n.factorial : ℂ) := by + ext z + rw [iteratedDeriv_fun_sum (fun n _ => + ((((hf.contDiff (n := ⊤)).differentiable_iteratedDeriv _ + (WithTop.coe_lt_top _)).const_mul _).div_const _).contDiff.contDiffAt)] + apply Finset.sum_congr rfl + intro n _ + simp only [iteratedDeriv_div_const, iteratedDeriv_const_mul_field, + iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm k] + +/-- Every spatial derivative commutes with a convergent infinite differential operator. -/ +theorem iteratedDeriv_infiniteDifferentialApply {φ f : ℂ → ℂ} {ρ σ : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hρ : ρ < 2) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hσ : σ < 2) (k : ℕ) : + iteratedDeriv k (infiniteDifferentialApply φ f) = + infiniteDifferentialApply φ (iteratedDeriv k f) := by + have hleft := + (tendstoLocallyUniformly_infiniteDifferentialApply hφ hoφ hρ hf hof hσ).iteratedDeriv + (differentiable_partial_infiniteDifferentialApply hf) k + simp only [iteratedDeriv_partial_infiniteDifferentialApply hf] at hleft + have hdf := (hf.contDiff (n := ⊤)).differentiable_iteratedDeriv k (WithTop.coe_lt_top _) + have hright := tendstoLocallyUniformly_infiniteDifferentialApply hφ hoφ hρ hdf + (hof.iteratedDeriv hf k) hσ + ext z + exact tendsto_nhds_unique + ((tendstoLocallyUniformlyOn_univ.mpr hleft).tendsto_at (Set.mem_univ z)) + ((tendstoLocallyUniformlyOn_univ.mpr hright).tendsto_at (Set.mem_univ z)) + +end Complex diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Star.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Star.lean new file mode 100644 index 000000000..af79e1617 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Star.lean @@ -0,0 +1,38 @@ +/- +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.Analysis.Complex.InfiniteDifferential.Basic +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Conjugation symmetry of infinite differential sums + +Real entire symbols act on real entire targets by real entire differential +sums whenever those sums converge. The conjugation identity itself also +holds for the total sum without a convergence assumption. +-/ + +public section + +open scoped ComplexConjugate + +namespace Complex + +/-- Infinite differential sums respect conjugation when both inputs do. -/ +theorem infiniteDifferentialApply_conj {φ f : ℂ → ℂ} + (hφ : ∀ z, φ (conj z) = conj (φ z)) (hf : ∀ z, f (conj z) = conj (f z)) (z : ℂ) : + infiniteDifferentialApply φ f (conj z) = conj (infiniteDifferentialApply φ f z) := by + unfold infiniteDifferentialApply + rw [conj_tsum] + apply tsum_congr + intro n + rw [iteratedDeriv_conj hf] + have hφn : conj (iteratedDeriv n φ 0) = iteratedDeriv n φ 0 := by + simpa only [map_zero] using (iteratedDeriv_conj hφ n 0).symm + simp only [map_div₀, map_mul, map_natCast, hφn] + +end Complex diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferential.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferential.lean new file mode 100644 index 000000000..197fef478 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferential.lean @@ -0,0 +1,60 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Basic +import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Derivative +import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Star +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialCoefficients +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen + +/-! +# Infinite differential preservation below order two + +An LP differential symbol of order below two acts on every LP entire target +of order below two by a normally convergent series whose sum remains LP. +Convergence follows from the growth bounds; it is not an additional premise. +Zero symbols, targets and outputs are included. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- The actual infinite differential image of two LP entire inputs of order +below two is again LP, including the identically zero result. -/ +theorem IsLaguerrePolya.infiniteDifferentialApply {φ f : ℂ → ℂ} + (hφ : IsLaguerrePolya φ) (hf : IsLaguerrePolya f) {ρ σ : ℝ} + (hoφ : TauCeti.OrderLE φ ρ) (hρ : ρ < 2) (hof : TauCeti.OrderLE f σ) (hσ : σ < 2) : + IsLaguerrePolya (Complex.infiniteDifferentialApply φ f) := by + have hc : ∀ k, Tendsto (fun N => ∑ n ∈ Finset.range N, + (iteratedDeriv n φ 0).re * (iteratedDeriv (k + n) f 0).re / n.factorial) atTop + (𝓝 ((iteratedDeriv k (Complex.infiniteDifferentialApply φ f) 0).re)) := by + intro k + have hdf := (hf.differentiable.contDiff (n := ⊤)).differentiable_iteratedDeriv k + (WithTop.coe_lt_top _) + have hs := (summable_norm_infiniteDifferentialApply hφ.differentiable hoφ hρ + hdf (hof.iteratedDeriv hf.differentiable k) hσ 0).of_norm.hasSum + have hre := Complex.hasSum_re hs + have hreal (n : ℕ) : (iteratedDeriv n φ 0).im = 0 := by + rw [← Complex.ofReal_re_iteratedDeriv_zero hφ.conj n] + simp + simp only [div_natCast_re, mul_re, hreal, zero_mul, sub_zero] at hre + rw [iteratedDeriv_infiniteDifferentialApply hφ.differentiable hoφ hρ + hf.differentiable hof hσ] + simpa only [Complex.infiniteDifferentialApply, + iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm k] using + hre.tendsto_sum_nat + have hconj (z : ℂ) : Complex.infiniteDifferentialApply φ f (starRingEnd ℂ z) = + starRingEnd ℂ (Complex.infiniteDifferentialApply φ f z) := + Complex.infiniteDifferentialApply_conj hφ.conj hf.conj z + rw [eq_complexExpGeneratingFunction_of_iteratedDeriv + (differentiable_infiniteDifferentialApply hφ.differentiable hoφ hρ hf.differentiable hof hσ) + (fun k => (Complex.ofReal_re_iteratedDeriv_zero hconj k).symm)] + exact hφ.infinite_differential_coefficients hf hc + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/InfiniteDifferential.lean b/RealRooted/RiemannHypothesis/InfiniteDifferential.lean new file mode 100644 index 000000000..de163ea63 --- /dev/null +++ b/RealRooted/RiemannHypothesis/InfiniteDifferential.lean @@ -0,0 +1,48 @@ +module + +public import RealRooted.RiemannHypothesis +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Basic +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferential +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IteratedDerivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative + +/-! +# RH-conditional infinite xi differential operators + +Under Mathlib's RH, every derivative of the square-variable xi function acts +as a normally convergent differential symbol on LP targets of order below two. +Conversely it may serve as the target for any LP symbol of order below two. +Taking both inputs to be xi derivatives gives the shifted xi self-operator family. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- Under RH, a xi derivative is an infinite differential symbol preserving +LP membership of every target of order below two. -/ +theorem isLaguerrePolya_riemannXiTheta_differential (hRH : RiemannHypothesis) (n : ℕ) + {f : ℂ → ℂ} (hf : IsLaguerrePolya f) {ρ : ℝ} + (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) : + IsLaguerrePolya (infiniteDifferentialApply (iteratedDeriv n riemannXiTheta) f) := by + have hφ := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iteratedDeriv n + exact hφ.infiniteDifferentialApply hf + (orderLE_half_riemannXiTheta.iteratedDeriv differentiable_riemannXiTheta n) + (by norm_num) horder hρ + +/-- Under RH, an LP differential symbol of order below two sends every xi +derivative to an LP entire function. -/ +theorem isLaguerrePolya_differential_riemannXiTheta (hRH : RiemannHypothesis) (n : ℕ) + {φ : ℂ → ℂ} (hφ : IsLaguerrePolya φ) {ρ : ℝ} + (horder : TauCeti.OrderLE φ ρ) (hρ : ρ < 2) : + IsLaguerrePolya (infiniteDifferentialApply φ (iteratedDeriv n riemannXiTheta)) := by + exact hφ.infiniteDifferentialApply + ((riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iteratedDeriv n) + horder hρ (orderLE_half_riemannXiTheta.iteratedDeriv differentiable_riemannXiTheta n) + (by norm_num) + +end RealRooted From f519bb846416ba2ee4336a951e57f4a1c8327f2c 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 17:32:50 +0000 Subject: [PATCH 50/56] feat: add unique xi moment measures and arithmetic closure --- RealRooted.lean | 28 ++++ .../Complex/HeatOperator/Composition.lean | 1 + .../Complex/HeatOperator/TimeLimit.lean | 1 - .../Complex/InfiniteDifferential/Basic.lean | 5 +- .../Complex/InfiniteDifferential/Bounds.lean | 5 +- .../Analysis/Complex/LineIdentity.lean | 4 +- .../Measure/MomentDeterminacy.lean | 114 +++++++++++++++++ .../UniformSpace/LocallyUniformAvoidance.lean | 4 +- .../LaguerrePolya/HeatOperatorCriterion.lean | 1 - .../LogDerivativeMeasureUnique.lean | 60 +++++++++ RealRooted/Production.lean | 29 +++++ .../HeatOperatorCriterion.lean | 4 +- .../InfiniteDifferential.lean | 5 +- .../MomentMeasureUnique.lean | 33 +++++ scripts/import_architecture.json | 4 +- scripts/mathlib_shims.json | 120 ++++++++++++++++++ 16 files changed, 403 insertions(+), 15 deletions(-) create mode 100644 RealRooted/Mathlib/MeasureTheory/Measure/MomentDeterminacy.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMeasureUnique.lean create mode 100644 RealRooted/RiemannHypothesis/MomentMeasureUnique.lean diff --git a/RealRooted.lean b/RealRooted.lean index 3d6d37bc4..30ccd0367 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2581,3 +2581,31 @@ public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Star public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperator public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperatorSimple public import RealRooted.RiemannHypothesis.HeatOperator +public import RealRooted.EulerOperator.ArithmeticNormalization +public import RealRooted.EulerOperator.ArithmeticProduct +public import RealRooted.LaguerreInequalities.LocalNonzeroLimit +public import RealRooted.LaguerreInequalities.LocalProductLimit +public import RealRooted.LaguerreInequalities.LocalZeroLimit +public import RealRooted.LaguerreInequalities.ModulusBound +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Composition +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.TimeLimit +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Basic +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Bounds +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Derivative +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Star +public import RealRooted.Mathlib.Analysis.Complex.LineIdentity +public import RealRooted.Mathlib.Analysis.Complex.LocallyUniformIteratedDeriv +public import RealRooted.Mathlib.Analysis.Complex.Polynomial.CoefficientMajorant +public import RealRooted.Mathlib.Data.Nat.Factorial.ArithmeticProduct +public import RealRooted.Mathlib.MeasureTheory.Measure.MomentDeterminacy +public import RealRooted.Mathlib.Topology.UniformSpace.LocallyUniformAvoidance +public import RealRooted.MultiplierSequence.Arithmetic +public import RealRooted.MultiplierSequence.ArithmeticSection +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperatorCriterion +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferential +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LocalLimit +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogDerivativeMeasureUnique +public import RealRooted.RiemannHypothesis.Arithmetic +public import RealRooted.RiemannHypothesis.HeatOperatorCriterion +public import RealRooted.RiemannHypothesis.InfiniteDifferential +public import RealRooted.RiemannHypothesis.MomentMeasureUnique diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Composition.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Composition.lean index 97551f436..27540fe8a 100644 --- a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Composition.lean +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/Composition.lean @@ -7,6 +7,7 @@ module public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Nonzero +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Derivative import Mathlib.Analysis.Complex.TaylorSeries /-! diff --git a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeLimit.lean b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeLimit.lean index 6ae2c0c2b..452a710e4 100644 --- a/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeLimit.lean +++ b/RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeLimit.lean @@ -6,7 +6,6 @@ Authors: The RealRooted contributors module public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic -import Mathlib.Topology.UniformSpace.HeineCantor /-! # Locally uniform continuity of heat images in time diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Basic.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Basic.lean index 4ec719365..669815f75 100644 --- a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Basic.lean +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Basic.lean @@ -5,8 +5,9 @@ Authors: The RealRooted contributors -/ module -public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Bounds -import Mathlib.Analysis.Normed.Group.FunctionSeries +public import TauCeti.Analysis.Complex.GrowthOrder + +import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Bounds /-! # Entire infinite differential operators diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Bounds.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Bounds.lean index d4f50f711..4b21ab86a 100644 --- a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Bounds.lean +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Bounds.lean @@ -5,9 +5,10 @@ Authors: The RealRooted contributors -/ module -public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Bounds +public import TauCeti.Analysis.Complex.GrowthOrder + +import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Bounds import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative -import Mathlib.Data.Nat.Choose.Basic /-! # Bounds for infinite differential symbols below order two diff --git a/RealRooted/Mathlib/Analysis/Complex/LineIdentity.lean b/RealRooted/Mathlib/Analysis/Complex/LineIdentity.lean index 080102767..ed19c7a21 100644 --- a/RealRooted/Mathlib/Analysis/Complex/LineIdentity.lean +++ b/RealRooted/Mathlib/Analysis/Complex/LineIdentity.lean @@ -1,7 +1,7 @@ /- -Copyright (c) 2026 Per Alexandersson. All rights reserved. +Copyright (c) 2026 The RealRooted contributors. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. -Authors: Per Alexandersson +Authors: The RealRooted contributors -/ module diff --git a/RealRooted/Mathlib/MeasureTheory/Measure/MomentDeterminacy.lean b/RealRooted/Mathlib/MeasureTheory/Measure/MomentDeterminacy.lean new file mode 100644 index 000000000..d0161c29b --- /dev/null +++ b/RealRooted/Mathlib/MeasureTheory/Measure/MomentDeterminacy.lean @@ -0,0 +1,114 @@ +/- +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.MeasureTheory.Integral.Bochner.Basic +import TauCeti.MeasureTheory.Function.PolynomialMemLp +import TauCeti.Probability.Moments.CompactDeterminacy + +/-! +# Moment determinacy with one bounded support + +Even-moment bounds force a measure into every larger interval. Thus a finite +measure with bounded support is determined by its power moments among all +measures whose power moments are integrable. The competitor need not be +assumed finite or bounded: the zeroth moment supplies finiteness, and Markov's +inequality supplies bounded support. The final compact determinacy step uses +`TauCeti.Measure.ext_of_forall_integral_pow_eq_of_support`. + +Moment integrability is essential because Bochner integrals are zero when +undefined. Equality of totalized integral values alone does not suffice. +-/ + +public section + +open Filter Topology + +namespace MeasureTheory + +/-- Geometric even-moment bounds exclude mass outside every larger interval. -/ +theorem measure_abs_ge_eq_zero_of_even_moment_bound + {mu : Measure ℝ} {C R T : ℝ} + (hR : 0 ≤ R) (hRT : R < T) + (hint : ∀ n : ℕ, Integrable (fun x : ℝ => x ^ (2 * n)) mu) + (hbound : ∀ n : ℕ, (∫ x : ℝ, x ^ (2 * n) ∂mu) ≤ C * R ^ (2 * n)) : + mu {x : ℝ | T ≤ |x|} = 0 := by + have : IsFiniteMeasure mu := (integrable_const_iff_isFiniteMeasure (one_ne_zero : (1 : ℝ) ≠ 0)).mp + (by simpa using hint 0) + have hT : 0 < T := lt_of_le_of_lt hR hRT + have hratio : 0 ≤ R / T := div_nonneg hR hT.le + have hratio1 : R / T < 1 := (div_lt_one hT).mpr hRT + have hq : (R / T) ^ 2 < 1 := pow_lt_one₀ hratio hratio1 (by norm_num) + have hmass (n : ℕ) : mu.real {x : ℝ | T ≤ |x|} ≤ C * ((R / T) ^ 2) ^ n := by + have hf : Integrable (fun x : ℝ => (x / T) ^ (2 * n)) mu := by + simpa only [div_pow] using (hint n).div_const (T ^ (2 * n)) + have hn : ∀ x : ℝ, 0 ≤ (x / T) ^ (2 * n) := by + intro x + rw [pow_mul] + positivity + have hm := mul_meas_ge_le_integral_of_nonneg (Filter.Eventually.of_forall hn) hf 1 + rw [one_mul] at hm + have hsub : {x : ℝ | T ≤ |x|} ⊆ {x : ℝ | 1 ≤ (x / T) ^ (2 * n)} := by + intro x hx + have hx' : 1 ≤ |x / T| := by + rw [abs_div, abs_of_pos hT] + exact (one_le_div hT).mpr hx + have hp := one_le_pow₀ hx' (n := 2 * n) + rwa [← abs_pow, abs_of_nonneg (hn x)] at hp + calc + mu.real {x : ℝ | T ≤ |x|} ≤ mu.real {x : ℝ | 1 ≤ (x / T) ^ (2 * n)} := + measureReal_mono hsub + _ ≤ ∫ x : ℝ, (x / T) ^ (2 * n) ∂mu := hm + _ = (∫ x : ℝ, x ^ (2 * n) ∂mu) / T ^ (2 * n) := by + simp only [div_pow, integral_div] + _ ≤ (C * R ^ (2 * n)) / T ^ (2 * n) := + div_le_div_of_nonneg_right (hbound n) (pow_nonneg hT.le _) + _ = C * ((R / T) ^ 2) ^ n := by rw [← pow_mul, div_pow]; ring + have hz : Tendsto (fun n : ℕ => C * ((R / T) ^ 2) ^ n) atTop (𝓝 0) := by + simpa using (tendsto_pow_atTop_nhds_zero_of_lt_one (sq_nonneg (R / T)) hq).const_mul C + apply (measureReal_eq_zero_iff (μ := mu)).mp + exact le_antisymm (ge_of_tendsto hz (Filter.Eventually.of_forall hmass)) measureReal_nonneg + + +/-- A finite measure with bounded support is determined by its moments among +finite measures for which the power moments are integrable. -/ +theorem Measure.ext_of_integral_pow_eq_of_ae_bounded + {mu nu : Measure ℝ} [IsFiniteMeasure mu] {R : ℝ} + (hmu : ∀ᵐ x ∂mu, |x| ≤ R) + (hnu : ∀ n : ℕ, Integrable (fun x : ℝ => x ^ n) nu) + (hmom : ∀ n : ℕ, (∫ x : ℝ, x ^ n ∂mu : ℝ) = ∫ x : ℝ, x ^ n ∂nu) : + mu = nu := by + have : IsFiniteMeasure nu := (integrable_const_iff_isFiniteMeasure (one_ne_zero : (1 : ℝ) ≠ 0)).mp + (by simpa using hnu 0) + let B := max R 0 + have hB : 0 ≤ B := le_max_right _ _ + have hmub : ∀ᵐ x ∂mu, |x| ≤ B := hmu.mono fun _ hx => hx.trans (le_max_left _ _) + have hint (n : ℕ) : Integrable (fun x : ℝ => x ^ n) mu := + TauCeti.integrable_pow_of_ae_abs_le hmub n + have hbound (n : ℕ) : (∫ x : ℝ, x ^ (2 * n) ∂nu) ≤ mu.real Set.univ * B ^ (2 * n) := by + rw [← hmom] + calc + _ ≤ ∫ _x : ℝ, B ^ (2 * n) ∂mu := by + apply integral_mono_ae (hint _) (integrable_const _) + filter_upwards [hmub] with x hx + exact (le_abs_self _).trans (by + simpa only [abs_pow] using pow_le_pow_left₀ (abs_nonneg x) hx (2 * n)) + _ = mu.real Set.univ * B ^ (2 * n) := by simp [smul_eq_mul] + have htail := measure_abs_ge_eq_zero_of_even_moment_bound hB + (lt_add_one B) (fun n => hnu (2 * n)) hbound + have hmus : mu (Set.Icc (-(B + 1)) (B + 1))ᶜ = 0 := by + apply ae_iff.mp + filter_upwards [hmub] with x hx + exact abs_le.mp (hx.trans (le_add_of_nonneg_right zero_le_one)) + have hnus : nu (Set.Icc (-(B + 1)) (B + 1))ᶜ = 0 := by + apply measure_mono_null _ htail + intro x hx + change B + 1 ≤ |x| + have hx' : ¬ |x| ≤ B + 1 := by simpa only [Set.mem_compl_iff, Set.mem_Icc, abs_le] using hx + exact (lt_of_not_ge hx').le + exact TauCeti.Measure.ext_of_forall_integral_pow_eq_of_support isCompact_Icc hmus hnus hmom + +end MeasureTheory diff --git a/RealRooted/Mathlib/Topology/UniformSpace/LocallyUniformAvoidance.lean b/RealRooted/Mathlib/Topology/UniformSpace/LocallyUniformAvoidance.lean index c2c8b47c1..63218b408 100644 --- a/RealRooted/Mathlib/Topology/UniformSpace/LocallyUniformAvoidance.lean +++ b/RealRooted/Mathlib/Topology/UniformSpace/LocallyUniformAvoidance.lean @@ -1,7 +1,7 @@ /- -Copyright (c) 2026 Per Alexandersson. All rights reserved. +Copyright (c) 2026 The RealRooted contributors. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. -Authors: Per Alexandersson +Authors: The RealRooted contributors -/ module diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorCriterion.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorCriterion.lean index 27fcd3569..4e293168d 100644 --- a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorCriterion.lean +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/HeatOperatorCriterion.lean @@ -5,7 +5,6 @@ public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic import RealRooted.Mathlib.Analysis.Complex.HeatOperator.TimeLimit import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperator import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Closure -import Mathlib.Analysis.SpecificLimits.Basic /-! # Laguerre--Pólya criteria from small positive heat times diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMeasureUnique.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMeasureUnique.lean new file mode 100644 index 000000000..d342b8583 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/LogDerivativeMeasureUnique.lean @@ -0,0 +1,60 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.Analysis.Calculus.LogDeriv +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogDerivativeMeasure +import RealRooted.Mathlib.MeasureTheory.Measure.MomentDeterminacy + +/-! +# Uniqueness of logarithmic-derivative moment measures + +The signed logarithmic-derivative coefficients of a Type-I entire function +nonzero at zero have a unique positive representing measure. Uniqueness is +among all measures on the real line with genuine power moments; it does not +assume compact or nonnegative support for a competing measure. The explicit +measure constructed earlier has both properties. This proves the existence +and uniqueness part of Sokal (2022), Appendix A, Proposition 6. +-/ + +public section + +open Complex MeasureTheory + +namespace RealRooted + +/-- Signed logarithmic-derivative coefficients of a Type-I entire function +nonzero at zero have exactly one measure with integrable power moments. -/ +theorem IsLaguerrePolyaTypeI.existsUnique_logDeriv_moment_measure + {f : ℂ → ℂ} (hf : IsLaguerrePolyaTypeI f) (h0 : f 0 ≠ 0) : + ∃! mu : Measure ℝ, ∀ k : ℕ, Integrable (fun x : ℝ => x ^ k) mu ∧ + (-1 : ℂ) ^ k * iteratedDeriv k (logDeriv f) 0 / k.factorial = + ((∫ x : ℝ, x ^ k ∂mu : ℝ) : ℂ) := by + obtain ⟨gamma, a, mu, _, _, _, _, hfinite, hsupport, hmom⟩ := + hf.exists_logDeriv_moment_measure h0 + have : IsFiniteMeasure mu := hfinite + refine ⟨mu, hmom, fun nu hnu => ?_⟩ + have hbound : ∀ᵐ x ∂mu, |x| ≤ ∑' i, a i := by + have hs : ∀ᵐ x ∂mu, x ∈ Set.Icc 0 (∑' i, a i) := ae_iff.mpr hsupport + filter_upwards [hs] with x hx + simpa only [abs_of_nonneg hx.1] using hx.2 + apply Eq.symm + apply Measure.ext_of_integral_pow_eq_of_ae_bounded hbound (fun k => (hnu k).1) + intro k + exact Complex.ofReal_injective ((hmom k).2.symm.trans (hnu k).2) + +/-- A nonzero complex scalar factor leaves the unique logarithmic-derivative +moment measure unchanged. This includes the complex scalar normalization in +Sokal's definition of the positive Type-I class. -/ +theorem IsLaguerrePolyaTypeI.existsUnique_logDeriv_const_mul_moment_measure + {f : ℂ → ℂ} (hf : IsLaguerrePolyaTypeI f) (h0 : f 0 ≠ 0) + {c : ℂ} (hc : c ≠ 0) : + ∃! mu : Measure ℝ, ∀ k : ℕ, Integrable (fun x : ℝ => x ^ k) mu ∧ + (-1 : ℂ) ^ k * iteratedDeriv k (logDeriv (fun z => c * f z)) 0 / k.factorial = + ((∫ x : ℝ, x ^ k ∂mu : ℝ) : ℂ) := by + have heq : logDeriv (fun z => c * f z) = logDeriv f := + funext fun z => logDeriv_const_mul (f := f) z c hc + simpa only [heq] using hf.existsUnique_logDeriv_moment_measure h0 + +end RealRooted diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index b031f7efa..e0de93a8e 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2514,6 +2514,35 @@ public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperato public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperatorSimple public import RealRooted.RiemannHypothesis.HeatOperator +public import RealRooted.EulerOperator.ArithmeticNormalization +public import RealRooted.EulerOperator.ArithmeticProduct +public import RealRooted.LaguerreInequalities.LocalNonzeroLimit +public import RealRooted.LaguerreInequalities.LocalProductLimit +public import RealRooted.LaguerreInequalities.LocalZeroLimit +public import RealRooted.LaguerreInequalities.ModulusBound +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Composition +public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.TimeLimit +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Basic +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Bounds +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Derivative +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Star +public import RealRooted.Mathlib.Analysis.Complex.LineIdentity +public import RealRooted.Mathlib.Analysis.Complex.LocallyUniformIteratedDeriv +public import RealRooted.Mathlib.Analysis.Complex.Polynomial.CoefficientMajorant +public import RealRooted.Mathlib.Data.Nat.Factorial.ArithmeticProduct +public import RealRooted.Mathlib.MeasureTheory.Measure.MomentDeterminacy +public import RealRooted.Mathlib.Topology.UniformSpace.LocallyUniformAvoidance +public import RealRooted.MultiplierSequence.Arithmetic +public import RealRooted.MultiplierSequence.ArithmeticSection +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperatorCriterion +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferential +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LocalLimit +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogDerivativeMeasureUnique +public import RealRooted.RiemannHypothesis.Arithmetic +public import RealRooted.RiemannHypothesis.HeatOperatorCriterion +public import RealRooted.RiemannHypothesis.InfiniteDifferential +public import RealRooted.RiemannHypothesis.MomentMeasureUnique + /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/HeatOperatorCriterion.lean b/RealRooted/RiemannHypothesis/HeatOperatorCriterion.lean index d4a58ecf1..a5a6857fa 100644 --- a/RealRooted/RiemannHypothesis/HeatOperatorCriterion.lean +++ b/RealRooted/RiemannHypothesis/HeatOperatorCriterion.lean @@ -1,6 +1,8 @@ module -public import RealRooted.RiemannHypothesis +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta + +import RealRooted.RiemannHypothesis public import RealRooted.Mathlib.Analysis.Complex.HeatOperator.Basic public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperatorCriterion diff --git a/RealRooted/RiemannHypothesis/InfiniteDifferential.lean b/RealRooted/RiemannHypothesis/InfiniteDifferential.lean index de163ea63..3dcd7dcf5 100644 --- a/RealRooted/RiemannHypothesis/InfiniteDifferential.lean +++ b/RealRooted/RiemannHypothesis/InfiniteDifferential.lean @@ -1,11 +1,12 @@ module -public import RealRooted.RiemannHypothesis +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta + +import RealRooted.RiemannHypothesis public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Basic public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferential import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IteratedDerivative -import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative /-! diff --git a/RealRooted/RiemannHypothesis/MomentMeasureUnique.lean b/RealRooted/RiemannHypothesis/MomentMeasureUnique.lean new file mode 100644 index 000000000..94ae5b2c9 --- /dev/null +++ b/RealRooted/RiemannHypothesis/MomentMeasureUnique.lean @@ -0,0 +1,33 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.LogDerivativeMeasureUnique +import RealRooted.RiemannHypothesis.TotalPositivity +import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative + +/-! +# Unique logarithmic-derivative moment measures under RH + +Under Mathlib's RH, each derivative of the normalized square-variable xi +function has a unique positive measure representing its signed logarithmic- +derivative Taylor coefficients. Competitors are arbitrary measures on the real +line with integrable power moments. +-/ + +public section + +open Complex MeasureTheory + +namespace RealRooted + +/-- RH gives a unique genuine moment measure for the signed logarithmic +coefficients of every derivative of the normalized square-variable xi function. -/ +theorem existsUnique_logDeriv_riemannXiTheta_moment_measure + (hRH : RiemannHypothesis) (s : ℕ) : + ∃! mu : Measure ℝ, ∀ k : ℕ, Integrable (fun x : ℝ => x ^ k) mu ∧ + (-1 : ℂ) ^ k * iteratedDeriv k (logDeriv (iteratedDeriv s riemannXiTheta)) 0 / + k.factorial = ((∫ x : ℝ, x ^ k ∂mu : ℝ) : ℂ) := + (isLaguerrePolyaTypeI_iteratedDeriv_riemannXiTheta hRH s).existsUnique_logDeriv_moment_measure + (iteratedDeriv_riemannXiTheta_zero_ne_zero s) + +end RealRooted diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index ca89e8354..780c38a22 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2571 + "max_modules": 2599 }, "RealRooted.Production": { - "max_modules": 2499 + "max_modules": 2527 }, "RealRooted.Tactic.Examples": { "max_modules": 844 diff --git a/scripts/mathlib_shims.json b/scripts/mathlib_shims.json index e1a52a352..6eb409e75 100644 --- a/scripts/mathlib_shims.json +++ b/scripts/mathlib_shims.json @@ -4109,6 +4109,126 @@ ], "note": "Conjugation symmetry of the entire heat operator; no upstream PR yet.", "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/HeatOperator/Composition.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.HeatOperator.Composition" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/HeatOperator/TimeLimit.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.HeatOperator.TimeLimit" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Basic.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.InfiniteDifferential.Basic" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Bounds.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.InfiniteDifferential.Bounds" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Derivative.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.InfiniteDifferential.Derivative" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Star.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.InfiniteDifferential.Star" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/LineIdentity.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.LineIdentity" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/LocallyUniformIteratedDeriv.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.LocallyUniformIteratedDeriv" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/Polynomial/CoefficientMajorant.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.Polynomial.CoefficientMajorant" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Data/Nat/Factorial/ArithmeticProduct.lean" + ], + "modules": [ + "Mathlib.Data.Nat.Factorial.ArithmeticProduct" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/MeasureTheory/Measure/MomentDeterminacy.lean" + ], + "modules": [ + "Mathlib.MeasureTheory.Measure.MomentDeterminacy" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Topology/UniformSpace/LocallyUniformAvoidance.lean" + ], + "modules": [ + "Mathlib.Topology.UniformSpace.LocallyUniformAvoidance" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true } ] } From 2499d67a83b5ef8e35dcaab630b221cfc703b9d9 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 17:27:37 +0000 Subject: [PATCH 51/56] feat: prove the local pointwise infinite differential operator theorem --- .../Transcendental/RealCoefficientBounds.lean | 79 ++++++++ .../LocalDerivativeBounds.lean | 173 ++++++++++++++++++ .../LaguerreInequalities/LogConcavity.lean | 47 +++++ .../Analysis/Convex/LogDerivative.lean | 43 +++++ .../Normed/Group/LocallyBoundedMajorant.lean | 28 +++ .../InfiniteDifferentialLocal.lean | 55 ++++++ .../LaguerrePolya/PointwiseLimit.lean | 105 +++++++++++ .../UniformDerivativeBounds.lean | 109 +++++++++++ .../LocalDifferentialSeries.lean | 56 ++++++ 9 files changed, 695 insertions(+) create mode 100644 RealRooted/BorceaBranden/Transcendental/RealCoefficientBounds.lean create mode 100644 RealRooted/LaguerreInequalities/LocalDerivativeBounds.lean create mode 100644 RealRooted/LaguerreInequalities/LogConcavity.lean create mode 100644 RealRooted/Mathlib/Analysis/Convex/LogDerivative.lean create mode 100644 RealRooted/Mathlib/Analysis/Normed/Group/LocallyBoundedMajorant.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialLocal.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PointwiseLimit.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/UniformDerivativeBounds.lean create mode 100644 RealRooted/RiemannHypothesis/LocalDifferentialSeries.lean diff --git a/RealRooted/BorceaBranden/Transcendental/RealCoefficientBounds.lean b/RealRooted/BorceaBranden/Transcendental/RealCoefficientBounds.lean new file mode 100644 index 000000000..905017041 --- /dev/null +++ b/RealRooted/BorceaBranden/Transcendental/RealCoefficientBounds.lean @@ -0,0 +1,79 @@ +module + +public import Mathlib.Analysis.Complex.Exponential +public import Mathlib.Algebra.Polynomial.Splits +import RealRooted.BorceaBranden.Transcendental.JensenMultiplier +import RealRooted.HermiteBiehler.Basic + +/-! +# Uniform bounds from the first real polynomial coefficients + +The multivariate Szász estimate gives a uniform Gaussian majorant for +normalized real-rooted univariate polynomials when their linear and quadratic +coefficients are bounded. The degree is unrestricted. +-/ + +public section + +open Polynomial Complex + +namespace RealRooted + +/-- A uniform bound on the first two nonconstant coefficients of normalized +real-rooted polynomials gives a degree-independent Gaussian bound. -/ +theorem exists_norm_eval_le_exp_of_coeff_bounds {K : ℝ} (hK : 0 ≤ K) : + ∃ B > 0, ∃ C ≥ 0, ∀ p : ℝ[X], p.Splits → p.coeff 0 = 1 → + ‖p.coeff 1‖ ≤ K → ‖p.coeff 2‖ ≤ K → ∀ z : ℂ, + ‖(p.map ofRealHom).eval z‖ ≤ B * Real.exp (C * ‖z‖ ^ 2) := by + let B := 2 * (Real.sqrt (2 * Real.exp 1 ^ 2 - Real.exp 1) / (Real.exp 1 - 1)) + let C := 6 * Real.exp 1 ^ 2 * K ^ 2 + 4 * Real.exp 1 ^ 2 * K + have he : 1 < Real.exp 1 := by linarith [Real.add_one_le_exp (1 : ℝ)] + have hB : 0 < B := by + dsimp [B] + apply mul_pos (by norm_num) + apply div_pos (Real.sqrt_pos.mpr _) (by linarith) + nlinarith + refine ⟨B, hB, C, by dsimp [C]; positivity, ?_⟩ + intro p hp hp0 hp1 hp2 z + let f : MvPolynomial Unit ℂ := (MvPolynomial.uniqueAlgEquiv ℂ Unit).symm (p.map ofRealHom) + have hf0 : f.coeff 0 = 1 := by + dsimp only [f] + rw [MvPolynomial.coeff_uniqueAlgEquiv_symm] + simp [hp0] + have hpne : p ≠ 0 := by intro h; simp [h] at hp0 + have hstable : MvUpperHalfPlaneStable f := by + intro w hw + change MvPolynomial.eval₂ (RingHom.id ℂ) w f ≠ 0 + rw [show f = (MvPolynomial.uniqueAlgEquiv ℂ Unit).symm (p.map ofRealHom) from rfl, + MvPolynomial.eval₂_uniqueAlgEquiv_symm] + exact isUpperHalfPlaneStable_complexify_of_splits hp hpne (w ()) (hw ()) + have hJ (β : Unit →₀ ℕ) : MvUpperHalfPlaneStable (MvPolynomial.jensenOp β f) := + (BorceaBranden.jensenOp_stableOrZero β hstable).resolve_left (fun h => by + have hc := congrArg (fun q => q.coeff 0) h + simp [MvPolynomial.coeff_jensenOp, MvPolynomial.jensen, hf0] at hc) + have h1 : ‖f.coeff (Finsupp.single () 1)‖ ≤ K := by + dsimp only [f] + rw [MvPolynomial.coeff_uniqueAlgEquiv_symm] + simpa using hp1 + have h2 : ‖f.coeff (Finsupp.single () 1 + Finsupp.single () 1)‖ ≤ K := by + dsimp only [f] + rw [MvPolynomial.coeff_uniqueAlgEquiv_symm] + simpa using hp2 + have hC : MvPolynomial.szaszC f ≤ C := by + simp only [MvPolynomial.szaszC, Finset.univ_unique, Finset.sum_singleton] + dsimp [C] + gcongr + have hs := MvPolynomial.norm_eval_le_of_forall_jensenOp_stable f hf0 hJ + (norm_nonneg z) (fun _ : Unit => z) (fun _ => le_rfl) + have heval : MvPolynomial.eval (fun _ : Unit => z) f = (p.map ofRealHom).eval z := by + change MvPolynomial.eval₂ (RingHom.id ℂ) (fun _ : Unit => z) f = _ + rw [show f = (MvPolynomial.uniqueAlgEquiv ℂ Unit).symm (p.map ofRealHom) from rfl, + MvPolynomial.eval₂_uniqueAlgEquiv_symm] + rfl + rw [heval] at hs + have hs' : ‖(p.map ofRealHom).eval z‖ ≤ B * Real.exp (MvPolynomial.szaszC f * ‖z‖ ^ 2) := by + simpa [B] using hs + exact hs'.trans (mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr + (mul_le_mul_of_nonneg_right hC (sq_nonneg _))) hB.le) + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/LocalDerivativeBounds.lean b/RealRooted/LaguerreInequalities/LocalDerivativeBounds.lean new file mode 100644 index 000000000..500e68c47 --- /dev/null +++ b/RealRooted/LaguerreInequalities/LocalDerivativeBounds.lean @@ -0,0 +1,173 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Calculus.Deriv.Basic +import RealRooted.LaguerreInequalities.LocalNonzeroLimit +import RealRooted.LaguerreInequalities.LocalProductLimit +import RealRooted.LaguerreInequalities.LogConcavity +import RealRooted.LaguerreInequalities.DerivativeFormula +import RealRooted.Mathlib.Analysis.Complex.LocallyUniformIteratedDeriv +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import Mathlib.Analysis.Convex.Deriv + +/-! +# Derivative bounds from pointwise Laguerre--Pólya limits + +Real logarithmic concavity controls the otherwise unconstrained exponential +slope of a Laguerre--Pólya function. Together with the common zero-free disk, +three convergent real values bound its first derivative. +-/ + +public section + +open Complex Filter Topology +open scoped ComplexConjugate + +namespace RealRooted + +private theorem re_ne_zero_of_real_limit {F : ℕ → ℂ → ℂ} {w : ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) (x : ℝ) + (ht : Tendsto (fun n => F n x) atTop (𝓝 w)) (hw : w ≠ 0) : w.re ≠ 0 := by + have hreal (n : ℕ) : ((F n x).re : ℂ) = F n x := by + apply conj_eq_iff_re.mp + simpa using ((hF n).conj x).symm + have heq : (w.re : ℂ) = w := tendsto_nhds_unique + (((continuous_re.tendsto w).comp ht).ofReal.congr hreal) ht + intro hr + exact hw (by rw [← heq, hr, ofReal_zero]) + +private theorem exists_eventually_logDeriv_bound {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) {a x b : ℝ} (hax : a < x) (hxb : x < b) + (hpoint : ∀ y ∈ ({a, x, b} : Set ℝ), + Tendsto (fun n => F n y) atTop (𝓝 (g y))) + (hg : ∀ y ∈ ({a, x, b} : Set ℝ), g y ≠ 0) + (hne : ∀ᶠ n in atTop, ∀ y ∈ Set.Icc a b, F n y ≠ 0) : + ∃ C > 0, ∀ᶠ n in atTop, |(deriv (F n) x).re / (F n x).re| ≤ C := by + let L (n : ℕ) (y : ℝ) := Real.log (F n y).re + let l (y : ℝ) := Real.log (g y).re + have hlog (y : ℝ) (hy : y ∈ ({a, x, b} : Set ℝ)) : + Tendsto (fun n => L n y) atTop (𝓝 (l y)) := + ((continuous_re.tendsto _).comp (hpoint y hy)).log + (re_ne_zero_of_real_limit hF y (hpoint y hy) (hg y hy)) + have hleft : Tendsto (fun n => slope (L n) a x) atTop (𝓝 (slope l a x)) := by + simpa only [slope_def_field] using + ((hlog x (by simp)).sub (hlog a (by simp))).div_const (x - a) + have hright : Tendsto (fun n => slope (L n) x b) atTop (𝓝 (slope l x b)) := by + simpa only [slope_def_field] using + ((hlog b (by simp)).sub (hlog x (by simp))).div_const (b - x) + obtain ⟨A, hA, hAb⟩ := (Metric.isBounded_range_of_tendsto _ hleft).exists_pos_norm_le + obtain ⟨B, hB, hBb⟩ := (Metric.isBounded_range_of_tendsto _ hright).exists_pos_norm_le + refine ⟨A + B, add_pos hA hB, ?_⟩ + filter_upwards [hne] with n hn + have hx : x ∈ Set.Icc a b := ⟨hax.le, hxb.le⟩ + have hreal : ((F n x).re : ℂ) = F n x := by + apply conj_eq_iff_re.mp + simpa using ((hF n).conj x).symm + have hrex : (F n x).re ≠ 0 := by + intro hz + exact hn x hx (by rw [← hreal, hz, ofReal_zero]) + have hd := ((hF n).differentiable x).hasDerivAt.real_of_complex.log hrex + have hc := (hF n).concaveOn_log_re (convex_Icc a b) hn + have hu := hc.le_slope_of_hasDerivAt (Set.left_mem_Icc.mpr (hax.trans hxb).le) hx hax hd + have hl := hc.slope_le_of_hasDerivAt hx (Set.right_mem_Icc.mpr (hax.trans hxb).le) hxb hd + have hA' : |slope (L n) a x| ≤ A := by simpa using hAb _ ⟨n, rfl⟩ + have hB' : |slope (L n) x b| ≤ B := by simpa using hBb _ ⟨n, rfl⟩ + dsimp only [L] at hA' hB' + rw [abs_le] at hA' hB' ⊢ + constructor <;> linarith + +/-- Pointwise convergence of Laguerre--Pólya functions on a disk, with a +nonzero limiting value at its real center, bounds the first derivatives there. -/ +theorem exists_eventually_norm_deriv_le_of_tendsto {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) (x : ℝ) {r : ℝ} (hr : 0 < r) + (hpoint : ∀ z ∈ Metric.ball (x : ℂ) r, + Tendsto (fun n => F n z) atTop (𝓝 (g z))) (hg : g x ≠ 0) : + ∃ C > 0, ∀ᶠ n in atTop, ‖deriv (F n) x‖ ≤ C := by + obtain ⟨δ, hδ, hgnz, hFnz⟩ := exists_ball_ne_zero_of_tendsto hF x hr hpoint hg + let ε := min δ r / 2 + have hε : 0 < ε := by dsimp [ε]; positivity + have hmem {y : ℝ} (hy : y ∈ Set.Icc (x - ε) (x + ε)) : + (y : ℂ) ∈ Metric.ball (x : ℂ) (min δ r) := by + have habs : |y - x| ≤ ε := abs_le.mpr ⟨by linarith [hy.1], by linarith [hy.2]⟩ + have : |y - x| < min δ r := by dsimp [ε] at hε habs; linarith + simpa [Metric.mem_ball, dist_eq_norm, ← ofReal_sub] using this + have hthree {y : ℝ} (hy : y ∈ ({x - ε, x, x + ε} : Set ℝ)) : + y ∈ Set.Icc (x - ε) (x + ε) := by + simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at hy + rcases hy with rfl | rfl | rfl <;> constructor <;> linarith + obtain ⟨A, hA, hAb⟩ := exists_eventually_logDeriv_bound hF + (show x - ε < x by linarith) (show x < x + ε by linarith) + (fun y hy => hpoint y (Metric.ball_subset_ball (min_le_right δ r) (hmem (hthree hy)))) + (fun y hy => hgnz y (Metric.ball_subset_ball (min_le_left δ r) (hmem (hthree hy)))) + (hFnz.mono fun n hn y hy => hn y (Metric.ball_subset_ball (min_le_left δ r) (hmem hy))) + obtain ⟨B, hB, hBb⟩ := (Metric.isBounded_range_of_tendsto _ + (hpoint x (by simpa using hr))).exists_pos_norm_le + refine ⟨A * B, mul_pos hA hB, ?_⟩ + filter_upwards [hAb, hFnz] with n hn hnonzero + have hne : F n x ≠ 0 := hnonzero x (by simpa using hδ) + have hreal : ((F n x).re : ℂ) = F n x := by + apply conj_eq_iff_re.mp + simpa using ((hF n).conj x).symm + have hdreal : ((deriv (F n) x).re : ℂ) = deriv (F n) x := by + apply conj_eq_iff_re.mp + simpa using ((hF n).deriv.conj x).symm + have hrex : (F n x).re ≠ 0 := by + intro hz + exact hne (by rw [← hreal, hz, ofReal_zero]) + calc + ‖deriv (F n) x‖ = |(deriv (F n) x).re / (F n x).re| * ‖F n x‖ := by + rw [← hdreal, ← hreal, norm_real, Real.norm_eq_abs, norm_real, Real.norm_eq_abs, + ofReal_re, ofReal_re, abs_div, div_mul_cancel₀ _ (abs_ne_zero.mpr hrex)] + _ ≤ A * B := mul_le_mul hn (hBb _ ⟨n, rfl⟩) (norm_nonneg _) hA.le + +/-- Under pointwise convergence with a nonzero real limiting value, the +second derivatives of Laguerre--Pólya functions are eventually bounded too. -/ +theorem exists_eventually_norm_deriv_deriv_le_of_tendsto {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) (x : ℝ) {r : ℝ} (hr : 0 < r) + (hpoint : ∀ z ∈ Metric.ball (x : ℂ) r, + Tendsto (fun n => F n z) atTop (𝓝 (g z))) (hg : g x ≠ 0) : + ∃ C > 0, ∀ᶠ n in atTop, ‖deriv (deriv (F n)) x‖ ≤ C := by + obtain ⟨A, hA, hAb⟩ := exists_eventually_norm_deriv_le_of_tendsto hF x hr hpoint hg + have hlim := tendstoLocallyUniformlyOn_laguerreProduct hF x hr hpoint + have hjlim := hlim.iteratedDeriv_of_entire (Eventually.of_forall fun n => + differentiable_laguerreProduct (hF n).differentiable x) Metric.isOpen_ball 2 + have hjet := hjlim.tendsto_at (show (0 : ℂ) ∈ Metric.ball 0 r by simpa using hr) + have hL : Tendsto (fun n => laguerreCoefficient (F n) x 1) atTop + (𝓝 (laguerreCoefficient g x 1)) := by + exact ((continuous_re.tendsto _).comp hjet).div_const (2 : ℝ) + obtain ⟨B, hB, hBb⟩ := (Metric.isBounded_range_of_tendsto _ hL).exists_pos_norm_le + have hx := hpoint x (by simpa using hr) + obtain ⟨C, hC, hCb⟩ := (Metric.isBounded_range_of_tendsto _ (hx.inv₀ hg)).exists_pos_norm_le + refine ⟨(A ^ 2 + B) * C, mul_pos (by positivity) hC, ?_⟩ + filter_upwards [hAb, hx.eventually_ne hg] with n hn hne + have hreal : ((F n x).re : ℂ) = F n x := by + apply conj_eq_iff_re.mp + simpa using ((hF n).conj x).symm + have hdreal : ((deriv (deriv (F n)) x).re : ℂ) = deriv (deriv (F n)) x := by + apply conj_eq_iff_re.mp + simpa using ((hF n).deriv.deriv.conj x).symm + have hrex : (F n x).re ≠ 0 := by + intro hz + exact hne (by rw [← hreal, hz, ofReal_zero]) + have hformula := laguerreCoefficient_one (hF n).differentiable (hF n).conj x + simp only [iteratedDeriv_succ, iteratedDeriv_zero] at hformula + have heq : (deriv (deriv (F n)) x).re = + ((deriv (F n) x).re ^ 2 - laguerreCoefficient (F n) x 1) / (F n x).re := by + apply (eq_div_iff hrex).mpr + nlinarith [hformula] + have hbound : |(deriv (F n) x).re ^ 2 - laguerreCoefficient (F n) x 1| ≤ A ^ 2 + B := by + calc + _ ≤ |(deriv (F n) x).re ^ 2| + |laguerreCoefficient (F n) x 1| := abs_sub _ _ + _ ≤ A ^ 2 + B := by + apply add_le_add _ (show |laguerreCoefficient (F n) x 1| ≤ B by + simpa using hBb _ ⟨n, rfl⟩) + rw [abs_pow] + exact pow_le_pow_left₀ (abs_nonneg _) ((abs_re_le_norm _).trans hn) 2 + have hnorm : ‖deriv (deriv (F n)) x‖ = + |(deriv (F n) x).re ^ 2 - laguerreCoefficient (F n) x 1| * ‖(F n x)⁻¹‖ := by + conv_lhs => rw [← hdreal, norm_real, Real.norm_eq_abs, heq, abs_div] + rw [norm_inv, ← hreal, norm_real, Real.norm_eq_abs, ofReal_re, div_eq_mul_inv] + rw [hnorm] + exact mul_le_mul hbound (hCb _ ⟨n, rfl⟩) (norm_nonneg _) (by positivity) + +end RealRooted diff --git a/RealRooted/LaguerreInequalities/LogConcavity.lean b/RealRooted/LaguerreInequalities/LogConcavity.lean new file mode 100644 index 000000000..6e2ac047b --- /dev/null +++ b/RealRooted/LaguerreInequalities/LogConcavity.lean @@ -0,0 +1,47 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.SpecialFunctions.Log.Basic +import RealRooted.Mathlib.Analysis.Convex.LogDerivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GeneralizedInequality +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.LaguerreInequalities.DerivativeFormula + +/-! +# Logarithmic concavity between real zeros + +A Laguerre--Pólya function has concave logarithmic absolute value on every +convex set of real points where it does not vanish. This gives bounds for its +logarithmic derivative from real secant slopes. +-/ + +public section + +open Complex +open scoped ComplexConjugate + +namespace RealRooted + +/-- A Laguerre--Pólya function has concave logarithmic absolute value on any +convex zero-free part of the real line. The real logarithm handles either sign. -/ +theorem IsLaguerrePolya.concaveOn_log_re {f : ℂ → ℂ} (hf : IsLaguerrePolya f) + {S : Set ℝ} (hS : Convex ℝ S) (hne : ∀ x ∈ S, f x ≠ 0) : + ConcaveOn ℝ S (fun x : ℝ => Real.log (f x).re) := by + have hreal (x : ℝ) : ((f x).re : ℂ) = f x := by + apply conj_eq_iff_re.mp + simpa using (hf.conj x).symm + apply concaveOn_log_of_deriv_sq_sub_nonneg hS + (f' := fun x : ℝ => (_root_.deriv f x).re) + (f'' := fun x : ℝ => (_root_.deriv (_root_.deriv f) x).re) + · intro x _ + exact (hf.differentiable x).hasDerivAt.real_of_complex + · intro x _ + exact (hf.differentiable.deriv x).hasDerivAt.real_of_complex + · intro x hx hzero + exact hne x hx (by rw [← hreal x, hzero, ofReal_zero]) + · intro x _ + have hL := hf.laguerreCoefficient_nonneg x 1 + rw [laguerreCoefficient_one hf.differentiable hf.conj] at hL + simpa [iteratedDeriv_succ] using hL + +end RealRooted diff --git a/RealRooted/Mathlib/Analysis/Convex/LogDerivative.lean b/RealRooted/Mathlib/Analysis/Convex/LogDerivative.lean new file mode 100644 index 000000000..0894f1125 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Convex/LogDerivative.lean @@ -0,0 +1,43 @@ +/- +Copyright (c) 2026 Per Alexandersson. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Per Alexandersson +-/ +module + +public import Mathlib.Analysis.SpecialFunctions.Log.Basic +public import Mathlib.Analysis.Calculus.Deriv.Basic +import Mathlib.Analysis.Convex.Deriv +import Mathlib.Analysis.SpecialFunctions.Log.Deriv + +/-! +# Logarithmic concavity from a differential inequality + +The inequality `f'² - f f'' ≥ 0` implies concavity of `log |f|` on every +zero-free interval. Real logarithms already satisfy `log f = log |f|`, so +negative functions require no separate sign assumption. +-/ + +public section + +/-- The differential inequality `f'² - f f'' ≥ 0` implies logarithmic +concavity on a convex zero-free set. -/ +theorem concaveOn_log_of_deriv_sq_sub_nonneg {f f' f'' : ℝ → ℝ} {S : Set ℝ} + (hS : Convex ℝ S) (hf : ∀ x ∈ S, HasDerivAt f (f' x) x) + (hf' : ∀ x ∈ S, HasDerivAt f' (f'' x) x) + (hne : ∀ x ∈ S, f x ≠ 0) + (hL : ∀ x ∈ S, 0 ≤ f' x ^ 2 - f x * f'' x) : + ConcaveOn ℝ S (fun x => Real.log (f x)) := by + apply concaveOn_of_hasDerivWithinAt2_nonpos hS + (f' := fun x => f' x / f x) + (f'' := fun x => (f'' x * f x - f' x * f' x) / f x ^ 2) + · intro x hx + exact ((hf x hx).log (hne x hx)).continuousAt.continuousWithinAt + · intro x hx + exact ((hf x (interior_subset hx)).log (hne x (interior_subset hx))).hasDerivWithinAt + · intro x hx + exact ((hf' x (interior_subset hx)).div (hf x (interior_subset hx)) + (hne x (interior_subset hx))).hasDerivWithinAt + · intro x hx + apply div_nonpos_of_nonpos_of_nonneg _ (sq_nonneg _) + nlinarith [hL x (interior_subset hx)] diff --git a/RealRooted/Mathlib/Analysis/Normed/Group/LocallyBoundedMajorant.lean b/RealRooted/Mathlib/Analysis/Normed/Group/LocallyBoundedMajorant.lean new file mode 100644 index 000000000..445fa2090 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Normed/Group/LocallyBoundedMajorant.lean @@ -0,0 +1,28 @@ +/- +Copyright (c) 2026 Per Alexandersson. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Per Alexandersson +-/ +module + +public import TauCeti.Analysis.Normed.Group.LocallyBounded + +/-! +# Local boundedness from a continuous majorant + +A continuous real majorant of all norms bounds the family uniformly on every +compact subset of its domain. +-/ + +public section + +/-- A common continuous norm majorant makes a family locally bounded. -/ +theorem TauCeti.isLocallyBoundedOn_of_norm_le_continuous + {ι X E : Type*} [TopologicalSpace X] [Norm E] + {F : ι → X → E} {g : X → ℝ} {S : Set X} + (hg : ContinuousOn g S) (hbound : ∀ i, ∀ z ∈ S, ‖F i z‖ ≤ g z) : + TauCeti.IsLocallyBoundedOn F S := by + rw [TauCeti.isLocallyBoundedOn_def] + intro K hKS hK + obtain ⟨C, hC⟩ := (hK.image_of_continuousOn (hg.mono hKS)).bddAbove + exact ⟨C, fun i z hz => (hbound i z (hKS hz)).trans (hC (Set.mem_image_of_mem g hz))⟩ diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialLocal.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialLocal.lean new file mode 100644 index 000000000..4ac29c292 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialLocal.lean @@ -0,0 +1,55 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PointwiseLimit +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.DifferentialApply +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.MultiplierSequence.JensenDifferential +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Infinite differential operators under local pointwise convergence + +O'Sullivan, *Zeros of Jensen polynomials and asymptotics for the Riemann xi +function*, Theorem 3.6, quotes Pólya's infinite differential-operator theorem. +The original appears as Zusatz II on page 242 of Pólya, *Algebraische +Untersuchungen über ganze Funktionen vom Geschlechte Null und Eins* (1915). + +The hypothesis below is ordinary pointwise convergence of the derivative +series on a complex disk. Neither absolute nor locally uniform convergence is +assumed. Finite Jensen symbols preserve the Laguerre--Pólya class, converge at +each point by regular summation, and the pointwise local-limit theorem provides +an entire extension. The zero output and zeros at the origin are included. +-/ + +public section + +open Polynomial Complex Filter Topology + +namespace RealRooted + +/-- A locally pointwise convergent infinite differential series with a +Laguerre--Pólya symbol and target represents an entire Laguerre--Pólya function. +This is O'Sullivan's Theorem 3.6, with ordinary convergence and zero output allowed. -/ +theorem IsLaguerrePolya.exists_eqOn_differential_series {φ ψ g : ℂ → ℂ} + (hφ : IsLaguerrePolya φ) (hψ : IsLaguerrePolya ψ) {r : ℝ} + (hseries : ∀ z ∈ Metric.ball (0 : ℂ) r, + Tendsto (fun n => ∑ j ∈ Finset.range n, + iteratedDeriv j φ 0 * iteratedDeriv j ψ z / j.factorial) atTop (𝓝 (g z))) : + ∃ G : ℂ → ℂ, IsLaguerrePolya G ∧ Set.EqOn G g (Metric.ball 0 r) := by + let γ : ℕ → ℝ := fun j => (iteratedDeriv j φ 0).re + let F (n : ℕ) := ((rescaledJensenPolynomial n γ).map ofRealHom).differentialApply ψ + have hF (n : ℕ) : IsLaguerrePolya (F n) := by + apply hψ.differentialApply + rw [rescaledJensenPolynomial_eq_jensenPolynomial_comp] + exact (hφ.jensenPolynomial_splits n).comp_of_natDegree_le_one + ((natDegree_C_mul_le _ _).trans (by simp)) + apply exists_isLaguerrePolya_eqOn_of_tendsto hF + intro z hz + apply tendsto_differentialApply_rescaledJensenPolynomial γ ψ z (g z) + have hγ (j : ℕ) : (γ j : ℂ) = iteratedDeriv j φ 0 := + ofReal_re_iteratedDeriv_zero hφ.conj j + simpa only [hγ] using hseries z hz + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PointwiseLimit.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PointwiseLimit.lean new file mode 100644 index 000000000..bcc7fc4d6 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/PointwiseLimit.lean @@ -0,0 +1,105 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.LaguerreInequalities.LocalDerivativeBounds +import RealRooted.LaguerreInequalities.LocalZeroLimit +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.UniformDerivativeBounds +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Closure +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.Mathlib.Analysis.Normed.Group.LocallyBoundedMajorant +import TauCeti.Analysis.Complex.Conformal.Vitali + +/-! +# Entire Laguerre--Pólya extension of pointwise local limits + +A pointwise limit on a disk centered on the real line extends to an entire +Laguerre--Pólya function. The zero case uses symmetric products. A nonzero +real value controls the first two derivatives and hence supplies a common +Gaussian majorant and a global normal limit. The zero case does not assert +global convergence of the approximating sequence. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- A nonzero limiting value at zero turns pointwise local convergence of +Laguerre--Pólya functions into an eventual common Gaussian bound. -/ +theorem exists_eventually_norm_le_exp_of_tendsto {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) {r : ℝ} (hr : 0 < r) + (hpoint : ∀ z ∈ Metric.ball (0 : ℂ) r, + Tendsto (fun n => F n z) atTop (𝓝 (g z))) (hg : g 0 ≠ 0) : + ∃ B > 0, ∃ C ≥ 0, ∀ᶠ n in atTop, ∀ z : ℂ, + ‖F n z‖ ≤ B * Real.exp (C * ‖z‖ ^ 2) := by + obtain ⟨A, hA, hAb⟩ := exists_eventually_norm_deriv_le_of_tendsto hF 0 hr hpoint hg + obtain ⟨D, hD, hDb⟩ := exists_eventually_norm_deriv_deriv_le_of_tendsto hF 0 hr hpoint hg + have hzero := hpoint 0 (by simpa using hr) + obtain ⟨E, hE, hEb⟩ := (Metric.isBounded_range_of_tendsto _ hzero).exists_pos_norm_le + obtain ⟨Q, hQ, hQb⟩ := (Metric.isBounded_range_of_tendsto _ + (hzero.inv₀ hg)).exists_pos_norm_le + obtain ⟨B, hB, C, hC, hbound⟩ := + exists_uniform_norm_bound_of_jet_bounds (show 0 ≤ A + D + E + Q by linarith) + refine ⟨B, hB, C, hC, ?_⟩ + filter_upwards [hAb, hDb, hzero.eventually_ne hg] with n hn₁ hn₂ hn₀ + apply hbound (F n) (hF n) hn₀ + · exact (hEb _ ⟨n, rfl⟩).trans (by linarith) + · exact (hQb _ ⟨n, rfl⟩).trans (by linarith) + · exact hn₁.trans (by linarith) + · exact hn₂.trans (by linarith) + +/-- Pointwise convergence on a neighborhood of a real point with nonzero +limit extends to a global Laguerre--Pólya function. Agreement holds at every +point where the original pointwise limit was specified. -/ +theorem exists_isLaguerrePolya_eqOn_of_pointwise_limit {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) {U : Set ℂ} {x : ℝ} + (hU : U ∈ 𝓝 (x : ℂ)) + (hpoint : ∀ z ∈ U, Tendsto (fun n => F n z) atTop (𝓝 (g z))) (hg : g x ≠ 0) : + ∃ G : ℂ → ℂ, IsLaguerrePolya G ∧ Set.EqOn G g U := by + obtain ⟨r, hr, hrU⟩ := Metric.mem_nhds_iff.mp hU + let T (n : ℕ) (z : ℂ) := F n (z + x) + have hT (n : ℕ) : IsLaguerrePolya (T n) := by + simpa only [ofReal_one, one_mul] using (hF n).comp_affine_real 1 x + have hTpoint : ∀ z ∈ Metric.ball (0 : ℂ) r, + Tendsto (fun n => T n z) atTop (𝓝 (g (z + x))) := by + intro z hz + apply hpoint _ (hrU _) + simpa [Metric.mem_ball, dist_eq_norm] using hz + obtain ⟨B, _, C, _, hbound⟩ := exists_eventually_norm_le_exp_of_tendsto hT hr hTpoint + (by simpa using hg) + obtain ⟨N, hN⟩ := eventually_atTop.mp hbound + have htail : ∀ n (z : ℂ), ‖F (n + N) z‖ ≤ B * Real.exp (C * ‖z - (x : ℂ)‖ ^ 2) := by + intro n z + simpa only [T, sub_add_cancel] using hN (n + N) (Nat.le_add_left _ _) (z - (x : ℂ)) + have hb : TauCeti.IsLocallyBoundedOn (fun n => F (n + N)) Set.univ := + TauCeti.isLocallyBoundedOn_of_norm_le_continuous (by fun_prop) + (fun n z _ => htail n z) + have htailpoint (z : ℂ) (hz : z ∈ U) := (hpoint z hz).comp (tendsto_add_atTop_nat N) + have hx : (x : ℂ) ∈ Metric.ball (x : ℂ) r := by simpa using hr + obtain ⟨G, _, _, hlim⟩ := TauCeti.vitali_of_tendsto isOpen_univ isPreconnected_univ + (fun n => (hF (n + N)).differentiable.differentiableOn) hb (Set.subset_univ _) + (Set.mem_univ (x : ℂ)) (Metric.isOpen_ball.preperfect _ hx) + (fun z hz => htailpoint z (hrU hz)) + refine ⟨G, IsLaguerrePolya.of_tendstoLocallyUniformly (fun n => hF (n + N)) + (tendstoLocallyUniformlyOn_univ.mp hlim), ?_⟩ + intro z hz + exact tendsto_nhds_unique (hlim.tendsto_at (Set.mem_univ z)) (htailpoint z hz) + +/-- Every pointwise limit on a disk centered at zero of entire +Laguerre--Pólya functions has an entire Laguerre--Pólya extension. This includes +the identically zero local limit and imposes no normal convergence hypothesis. -/ +theorem exists_isLaguerrePolya_eqOn_of_tendsto {F : ℕ → ℂ → ℂ} {g : ℂ → ℂ} + (hF : ∀ n, IsLaguerrePolya (F n)) {r : ℝ} + (hpoint : ∀ z ∈ Metric.ball (0 : ℂ) r, + Tendsto (fun n => F n z) atTop (𝓝 (g z))) : + ∃ G : ℂ → ℂ, IsLaguerrePolya G ∧ Set.EqOn G g (Metric.ball 0 r) := by + by_cases hzero : ∀ y : ℝ, (y : ℂ) ∈ Metric.ball (0 : ℂ) r → g y = 0 + · exact ⟨0, IsLaguerrePolya.zero, + (eqOn_zero_of_tendsto_of_real_eq_zero hF hpoint hzero).symm⟩ + · push Not at hzero + obtain ⟨x, hx, hg⟩ := hzero + exact exists_isLaguerrePolya_eqOn_of_pointwise_limit hF + (Metric.isOpen_ball.mem_nhds hx) hpoint hg + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/UniformDerivativeBounds.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/UniformDerivativeBounds.lean new file mode 100644 index 000000000..e1ac7a6f3 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/UniformDerivativeBounds.lean @@ -0,0 +1,109 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import Mathlib.Analysis.Calculus.Deriv.Basic +import RealRooted.BorceaBranden.Transcendental.RealCoefficientBounds +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star + +/-! +# Uniform Gaussian bounds from normalized derivatives + +Normalized Laguerre--Pólya functions with bounded first and second derivatives +share a Gaussian majorant on the whole complex plane. Rescaled Jensen +polynomials transfer the degree-independent polynomial estimate to entire +functions. +-/ + +public section + +open Polynomial Complex Filter Topology + +namespace RealRooted + +/-- Normalized Laguerre--Pólya functions with bounded first two derivatives +have a common Gaussian bound throughout the complex plane. -/ +theorem exists_uniform_norm_bound_of_deriv_bounds {K : ℝ} (hK : 0 ≤ K) : + ∃ B > 0, ∃ C ≥ 0, ∀ f : ℂ → ℂ, IsLaguerrePolya f → f 0 = 1 → + ‖deriv f 0‖ ≤ K → ‖deriv (deriv f) 0‖ ≤ K → ∀ z : ℂ, + ‖f z‖ ≤ B * Real.exp (C * ‖z‖ ^ 2) := by + obtain ⟨B, hB, C, hC, hbound⟩ := exists_norm_eval_le_exp_of_coeff_bounds hK + refine ⟨B, hB, C, hC, ?_⟩ + intro f hf hf0 hf1 hf2 z + let γ : ℕ → ℝ := fun k => (iteratedDeriv k f 0).re + have hγ (k : ℕ) : iteratedDeriv k f 0 = (γ k : ℂ) := + (ofReal_re_iteratedDeriv_zero hf.conj k).symm + have hγ1 : ‖γ 1‖ ≤ K := by + simpa [γ, iteratedDeriv_succ] using (abs_re_le_norm (deriv f 0)).trans hf1 + have hγ2 : ‖γ 2‖ ≤ K := by + simpa [γ, iteratedDeriv_succ] using (abs_re_le_norm (deriv (deriv f) 0)).trans hf2 + have hsum (R : ℝ) (hR : 0 ≤ R) : + Summable (fun k => ‖γ k‖ * R ^ k / k.factorial) := by + simpa only [hγ, norm_real] using + summable_norm_iteratedDeriv_div_factorial hf.differentiable R hR + have hlim := tendstoLocallyUniformly_eval_complex_rescaledJensenPolynomial_of_summable γ hsum + have heq := eq_complexExpGeneratingFunction_of_iteratedDeriv hf.differentiable hγ + rw [complexExpGeneratingFunction_eq_tsum] at heq + have hpoint : Tendsto (fun n => ((rescaledJensenPolynomial n γ).map ofRealHom).eval z) + atTop (𝓝 (f z)) := by + rw [congrFun heq z] + exact hlim.tendstoLocallyUniformlyOn.tendsto_at (Set.mem_univ z) + apply le_of_tendsto hpoint.norm + apply Eventually.of_forall + intro n + apply hbound (rescaledJensenPolynomial n γ) + · rw [rescaledJensenPolynomial_eq_jensenPolynomial_comp] + exact (hf.jensenPolynomial_splits n).comp_of_natDegree_le_one + ((natDegree_C_mul_le _ _).trans (by simp)) + · simp [coeff_rescaledJensenPolynomial, γ, hf0] + · have hc := norm_coeff_rescaledJensenPolynomial_le n 1 γ + norm_num only [Nat.factorial_succ, Nat.factorial_zero, Nat.cast_one, + Nat.cast_ofNat, one_mul, mul_one, div_one] at hc + exact hc.trans hγ1 + · have hc := norm_coeff_rescaledJensenPolynomial_le n 2 γ + norm_num only [Nat.factorial_succ, Nat.factorial_zero, Nat.cast_one, + Nat.cast_ofNat, one_mul, mul_one, div_one] at hc + exact hc.trans ((div_le_self (norm_nonneg _) (by norm_num : (1 : ℝ) ≤ 2)).trans hγ2) + +/-- Bounds on the value, its inverse, and the first two derivatives control +an unnormalized Laguerre--Pólya function uniformly on the whole plane. -/ +theorem exists_uniform_norm_bound_of_jet_bounds {K : ℝ} (hK : 0 ≤ K) : + ∃ B > 0, ∃ C ≥ 0, ∀ f : ℂ → ℂ, IsLaguerrePolya f → f 0 ≠ 0 → + ‖f 0‖ ≤ K → ‖(f 0)⁻¹‖ ≤ K → ‖deriv f 0‖ ≤ K → + ‖deriv (deriv f) 0‖ ≤ K → ∀ z : ℂ, + ‖f z‖ ≤ B * Real.exp (C * ‖z‖ ^ 2) := by + obtain ⟨B, hB, C, hC, hbound⟩ := exists_uniform_norm_bound_of_deriv_bounds (sq_nonneg K) + refine ⟨(K + 1) * B, mul_pos (by linarith) hB, C, hC, ?_⟩ + intro f hf hne hf0 hfi hf1 hf2 z + have hreal : ((f 0).re : ℂ) = f 0 := by + simpa using ofReal_re_iteratedDeriv_zero hf.conj 0 + let c : ℝ := (f 0).re⁻¹ + have hc : (c : ℂ) = (f 0)⁻¹ := by simp only [c, ofReal_inv, hreal] + let G : ℂ → ℂ := fun w => (c : ℂ) * f w + have hG : IsLaguerrePolya G := hf.const_mul_real c + have hG0 : G 0 = 1 := by dsimp [G]; rw [hc, inv_mul_cancel₀ hne] + have hD : deriv G = fun w => (c : ℂ) * deriv f w := by + funext w + exact ((hf.differentiable w).hasDerivAt.const_mul (c : ℂ)).deriv + have hDD : deriv (deriv G) = fun w => (c : ℂ) * deriv (deriv f) w := by + rw [hD] + funext w + exact ((hf.deriv.differentiable w).hasDerivAt.const_mul (c : ℂ)).deriv + have hG1 : ‖deriv G 0‖ ≤ K ^ 2 := by + rw [hD, hc, norm_mul, pow_two] + exact mul_le_mul hfi hf1 (norm_nonneg _) hK + have hG2 : ‖deriv (deriv G) 0‖ ≤ K ^ 2 := by + rw [hDD, hc, norm_mul, pow_two] + exact mul_le_mul hfi hf2 (norm_nonneg _) hK + have heval : f z = f 0 * G z := by + dsimp [G] + rw [hc, ← mul_assoc, mul_inv_cancel₀ hne, one_mul] + rw [heval, norm_mul] + calc + _ ≤ (K + 1) * (B * Real.exp (C * ‖z‖ ^ 2)) := + mul_le_mul (hf0.trans (by linarith)) (hbound G hG hG0 hG1 hG2 z) + (norm_nonneg _) (by linarith) + _ = _ := by ring + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/LocalDifferentialSeries.lean b/RealRooted/RiemannHypothesis/LocalDifferentialSeries.lean new file mode 100644 index 000000000..7e4216654 --- /dev/null +++ b/RealRooted/RiemannHypothesis/LocalDifferentialSeries.lean @@ -0,0 +1,56 @@ +module + +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Coefficients +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.RiemannHypothesis +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialLocal +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen + +/-! +# Locally convergent xi differential series under RH + +O'Sullivan's Theorem 3.6 applies to every derivative of the square-variable xi +function under Mathlib's Riemann hypothesis. Xi may be either the differential +symbol or the entire target. Ordinary pointwise convergence on a disk suffices; +no growth bound or absolute convergence is assumed here. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- Under RH, every shifted xi differential symbol sends a Laguerre--Pólya +target to an entire Laguerre--Pólya extension whenever its series converges +pointwise on a disk. -/ +theorem exists_eqOn_riemannXi_differential_series (hRH : RiemannHypothesis) (n : ℕ) + {ψ g : ℂ → ℂ} (hψ : IsLaguerrePolya ψ) {r : ℝ} + (hseries : ∀ z ∈ Metric.ball (0 : ℂ) r, + Tendsto (fun d => ∑ j ∈ Finset.range d, + (riemannXiCoeff (n + j) : ℂ) * iteratedDeriv j ψ z / j.factorial) + atTop (𝓝 (g z))) : + ∃ G : ℂ → ℂ, IsLaguerrePolya G ∧ Set.EqOn G g (Metric.ball 0 r) := by + have hξ := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n + apply hξ.exists_eqOn_differential_series hψ + intro z hz + simpa only [ofReal_riemannXiCoeff, iteratedDeriv_eq_iterate, + ← Function.iterate_add_apply, Nat.add_comm] using hseries z hz + +/-- Under RH, a Laguerre--Pólya differential symbol acting on any derivative +of xi has a Laguerre--Pólya entire extension as soon as its ordinary series +converges pointwise on a disk. -/ +theorem exists_eqOn_differential_series_riemannXi (hRH : RiemannHypothesis) (n : ℕ) + {φ g : ℂ → ℂ} (hφ : IsLaguerrePolya φ) {r : ℝ} + (hseries : ∀ z ∈ Metric.ball (0 : ℂ) r, + Tendsto (fun d => ∑ j ∈ Finset.range d, + iteratedDeriv j φ 0 * iteratedDeriv (n + j) riemannXiTheta z / j.factorial) + atTop (𝓝 (g z))) : + ∃ G : ℂ → ℂ, IsLaguerrePolya G ∧ Set.EqOn G g (Metric.ball 0 r) := by + apply hφ.exists_eqOn_differential_series + ((riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iterate_deriv n) + intro z hz + simpa only [iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm] + using hseries z hz + +end RealRooted From 7c51ab68797e64629c86446a33a1d694a82592eb 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 17:25:28 +0000 Subject: [PATCH 52/56] feat: extend infinite differential operators to reciprocal growth orders --- .../Complex/GrowthOrder/CauchyBound.lean | 82 +++++++++++++++++ .../GrowthOrder/ExponentialPowerBound.lean | 64 ++++++++++++++ .../InfiniteDifferential/Derivative.lean | 4 +- .../InfiniteDifferential/OrderBound.lean | 88 +++++++++++++++++++ .../OrderConvergence.lean | 65 ++++++++++++++ .../InfiniteDifferential/OrderDerivative.lean | 60 +++++++++++++ .../InfiniteDifferentialOrder.lean | 63 +++++++++++++ 7 files changed, 424 insertions(+), 2 deletions(-) create mode 100644 RealRooted/Mathlib/Analysis/Complex/GrowthOrder/CauchyBound.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/GrowthOrder/ExponentialPowerBound.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderBound.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderConvergence.lean create mode 100644 RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderDerivative.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialOrder.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/CauchyBound.lean b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/CauchyBound.lean new file mode 100644 index 000000000..9cb30d08c --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/CauchyBound.lean @@ -0,0 +1,82 @@ +/- +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.Analysis.Complex.GrowthOrder.ExponentialPowerBound +public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs +import Mathlib.Analysis.Complex.Liouville + +/-! +# Cauchy derivative estimates above the growth order + +A circle of radius `(n+1)^(1/p)` bounds the nth derivative when the entire +function has growth order strictly below the positive exponent `p`. +The estimate is uniform on each spatial disk. +-/ + +public section + +open Metric + +namespace Complex + +/-- A nonnegative real power of a sum is bounded by a convenient multiple of +the sum of the powers, including exponents below one. -/ +private theorem add_rpow_le_two_mul {a b p : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hp : 0 ≤ p) : + (a + b) ^ p ≤ (2 : ℝ) ^ p * (a ^ p + b ^ p) := by + calc + _ ≤ (2 * max a b) ^ p := + Real.rpow_le_rpow (add_nonneg ha hb) (by linarith [le_max_left a b, le_max_right a b]) hp + _ = (2 : ℝ) ^ p * max (a ^ p) (b ^ p) := by + rw [Real.mul_rpow (by positivity) (ha.trans (le_max_left _ _)), Real.rpow_max ha hb hp] + _ ≤ _ := mul_le_mul_of_nonneg_left + (max_le (le_add_of_nonneg_right (Real.rpow_nonneg hb _)) + (le_add_of_nonneg_left (Real.rpow_nonneg ha _))) (by positivity) + +/-- Above a positive growth exponent, Cauchy's estimate gives a common +factorial and reciprocal-power bound for every derivative on a spatial disk. -/ +theorem exists_iteratedDeriv_bound_of_orderLE {f : ℂ → ℂ} {ρ p R : ℝ} + (hf : Differentiable ℂ f) (horder : TauCeti.OrderLE f ρ) + (hp : 0 < p) (hρ : ρ < p) : + ∃ C > 0, ∀ n : ℕ, ∀ z : ℂ, ‖z‖ ≤ R → + ‖iteratedDeriv n f z‖ ≤ n.factorial * C * + (Real.exp 1 / ((n : ℝ) + 1) ^ p⁻¹) ^ n := by + let ε := ((2 : ℝ) ^ p)⁻¹ + have hε : 0 < ε := by dsimp [ε]; positivity + obtain ⟨C, hC, hbound⟩ := horder.exists_norm_le_mul_exp_rpow hf.continuous hp hρ hε + refine ⟨C * Real.exp (R ^ p + 1), by positivity, fun n z hz => ?_⟩ + let r : ℝ := ((n : ℝ) + 1) ^ p⁻¹ + have hr : 0 < r := Real.rpow_pos_of_pos (by positivity) _ + have hrp : r ^ p = (n : ℝ) + 1 := Real.rpow_inv_rpow (by positivity) hp.ne' + have hcircle : ∀ w ∈ sphere z r, + ‖f w‖ ≤ C * Real.exp (R ^ p + 1 + (n : ℝ)) := by + intro w hw + have hwz : ‖w - z‖ = r := mem_sphere_iff_norm.mp hw + have htri := norm_add_le (w - z) z + rw [sub_add_cancel, hwz] at htri + have hwbound : ‖w‖ ^ p ≤ (2 : ℝ) ^ p * (R ^ p + ((n : ℝ) + 1)) := by + calc + _ ≤ (‖z‖ + r) ^ p := Real.rpow_le_rpow (norm_nonneg _) (by linarith) hp.le + _ ≤ (2 : ℝ) ^ p * (‖z‖ ^ p + r ^ p) := + add_rpow_le_two_mul (norm_nonneg _) hr.le hp.le + _ ≤ _ := by + rw [hrp] + exact mul_le_mul_of_nonneg_left + (add_le_add (Real.rpow_le_rpow (norm_nonneg _) hz hp.le) le_rfl) (by positivity) + apply (hbound w).trans + apply mul_le_mul_of_nonneg_left _ hC.le + apply Real.exp_le_exp.mpr + calc + _ ≤ ε * ((2 : ℝ) ^ p * (R ^ p + ((n : ℝ) + 1))) := + mul_le_mul_of_nonneg_left hwbound hε.le + _ = _ := by dsimp [ε]; field_simp; ring + have hcauchy := norm_iteratedDeriv_le_of_forall_mem_sphere_norm_le n hr hf.diffContOnCl hcircle + convert hcauchy using 1 + rw [Real.exp_add (R ^ p + 1) (n : ℝ), ← Real.exp_one_pow, div_pow] + dsimp only [r] + ring + +end Complex diff --git a/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/ExponentialPowerBound.lean b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/ExponentialPowerBound.lean new file mode 100644 index 000000000..f11523c20 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/ExponentialPowerBound.lean @@ -0,0 +1,64 @@ +/- +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 TauCeti.Analysis.Complex.GrowthOrder +import Mathlib.Analysis.Normed.Group.Bounded + +/-! +# Global exponential power bounds above the growth order + +Every positive exponent strictly above a continuous function's growth order +gives a global exponential power bound, with any prescribed positive constant +in the exponent. Compactness removes the exceptional bounded region. +-/ + +public section + +open Complex Filter Asymptotics Bornology Metric Topology + +namespace TauCeti + +/-- An eventual exponential power bound can be made global for continuous functions. -/ +private theorem exists_global_exponential_power_bound {f : ℂ → ℂ} (hf : Continuous f) + (p : ℝ) (h : f =O[cobounded ℂ] fun z => Real.exp (‖z‖ ^ p)) : + ∃ C > 0, ∀ z, ‖f z‖ ≤ C * Real.exp (‖z‖ ^ p) := by + obtain ⟨C, hC, hbound⟩ := h.exists_pos + obtain ⟨R, -, hR⟩ := Filter.hasBasis_cobounded_norm.eventually_iff.mp hbound.bound + obtain ⟨B, hB⟩ := (isCompact_closedBall (0 : ℂ) R).exists_bound_of_continuousOn hf.continuousOn + refine ⟨max C B, lt_of_lt_of_le hC (le_max_left _ _), fun z => ?_⟩ + by_cases hz : R ≤ ‖z‖ + · have hzbound : ‖f z‖ ≤ C * Real.exp (‖z‖ ^ p) := by + simpa only [Real.norm_eq_abs, Real.abs_exp] using hR hz + exact hzbound.trans (mul_le_mul_of_nonneg_right (le_max_left _ _) (Real.exp_pos _).le) + · have hsmall : ‖f z‖ ≤ B := hB z (by simpa using (le_of_not_ge hz)) + exact hsmall.trans ((le_max_right C B).trans + (le_mul_of_one_le_right (le_max_left C B |>.trans' hC.le) + (Real.one_le_exp (Real.rpow_nonneg (norm_nonneg _) _)))) + +/-- Above its growth order, a continuous function admits a global exponential +power bound with an arbitrarily small positive coefficient. -/ +theorem OrderLE.exists_norm_le_mul_exp_rpow {f : ℂ → ℂ} {ρ p : ℝ} + (h : OrderLE f ρ) (hf : Continuous f) (hp : 0 < p) (hρ : ρ < p) + {ε : ℝ} (hε : 0 < ε) : + ∃ C > 0, ∀ z, ‖f z‖ ≤ C * Real.exp (ε * ‖z‖ ^ p) := by + let a : ℂ := (ε ^ p⁻¹ : ℝ) + have ha : a ≠ 0 := ofReal_ne_zero.mpr (Real.rpow_pos_of_pos hε _).ne' + have hg : Continuous (fun z : ℂ => f (a⁻¹ * z)) := hf.comp (by fun_prop) + have ho : OrderLE (fun z : ℂ => f (a⁻¹ * z)) ρ := by + simpa only [add_zero] using h.comp_mul_add a⁻¹ 0 + obtain ⟨C, hC, hbound⟩ := exists_global_exponential_power_bound hg p (ho.isBigO hρ) + refine ⟨C, hC, fun z => ?_⟩ + have hz := hbound (a * z) + rw [← mul_assoc, inv_mul_cancel₀ ha, one_mul, norm_mul, + Real.mul_rpow (norm_nonneg _) (norm_nonneg _)] at hz + have hnorm : ‖a‖ ^ p = ε := by + simp only [a, norm_real, Real.norm_eq_abs, + abs_of_nonneg (Real.rpow_nonneg hε.le _)] + exact Real.rpow_inv_rpow hε.le hp.ne' + simpa only [hnorm] using hz + +end TauCeti diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Derivative.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Derivative.lean index d852ed894..0e6b46004 100644 --- a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Derivative.lean +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/Derivative.lean @@ -24,7 +24,7 @@ open Filter Topology namespace Complex /-- Each finite differential partial sum is entire. -/ -private theorem differentiable_partial_infiniteDifferentialApply {φ f : ℂ → ℂ} +theorem differentiable_partial_infiniteDifferentialApply {φ f : ℂ → ℂ} (hf : Differentiable ℂ f) (N : ℕ) : Differentiable ℂ (fun z => ∑ n ∈ Finset.range N, iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)) := by @@ -45,7 +45,7 @@ theorem differentiable_infiniteDifferentialApply {φ f : ℂ → ℂ} {ρ σ : (differentiable_partial_infiniteDifferentialApply hf N).differentiableOn) isOpen_univ /-- Spatial derivatives commute with finite differential partial sums. -/ -private theorem iteratedDeriv_partial_infiniteDifferentialApply {φ f : ℂ → ℂ} +theorem iteratedDeriv_partial_infiniteDifferentialApply {φ f : ℂ → ℂ} (hf : Differentiable ℂ f) (N k : ℕ) : iteratedDeriv k (fun z => ∑ n ∈ Finset.range N, iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)) = diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderBound.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderBound.lean new file mode 100644 index 000000000..f68d6641e --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderBound.lean @@ -0,0 +1,88 @@ +/- +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.Analysis.Complex.GrowthOrder.CauchyBound +import Mathlib.Analysis.Normed.Group.InfiniteSum +import Mathlib.Analysis.SpecificLimits.Normed +import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics +import Mathlib.Data.Nat.Factorial.Basic + +/-! +# Reciprocal-order bounds for infinite differential series + +If positive exponents above the two growth orders have reciprocal sum greater +than one, the differential series admits a summable majorant on every spatial +disk. This includes asymmetric order pairs, beyond the case where both orders +are below two. +-/ + +public section + +open Filter Topology + +namespace Complex + +/-- Cauchy estimates for the two inputs give a reciprocal-power majorant. -/ +private theorem exists_differential_rpow_bound {φ f : ℂ → ℂ} {ρ σ p q R : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hp : 0 < p) (hρ : ρ < p) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hq : 0 < q) (hσ : σ < q) : + ∃ C > 0, ∀ n : ℕ, ∀ z : ℂ, ‖z‖ ≤ R → + ‖iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)‖ ≤ + C * (Real.exp 2 / ((n : ℝ) + 1) ^ (p⁻¹ + q⁻¹ - 1)) ^ n := by + obtain ⟨A, hA, ha⟩ := exists_iteratedDeriv_bound_of_orderLE (R := 0) hφ hoφ hp hρ + obtain ⟨B, hB, hb⟩ := exists_iteratedDeriv_bound_of_orderLE (R := R) hf hof hq hσ + refine ⟨A * B, mul_pos hA hB, fun n z hz => ?_⟩ + have ha' := ha n 0 (by simp) + have hb' := hb n z hz + have hn : (n.factorial : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr n.factorial_ne_zero + have hfac : (n.factorial : ℝ) ≤ ((n : ℝ) + 1) ^ n := by + exact_mod_cast (Nat.factorial_le_pow n).trans + (Nat.pow_le_pow_left (Nat.le_succ n) n) + have hbase : ((n : ℝ) + 1) * + (Real.exp 1 / ((n : ℝ) + 1) ^ p⁻¹ * + (Real.exp 1 / ((n : ℝ) + 1) ^ q⁻¹)) = + Real.exp 2 / ((n : ℝ) + 1) ^ (p⁻¹ + q⁻¹ - 1) := by + rw [Real.rpow_sub (by positivity), Real.rpow_one, Real.rpow_add (by positivity), + show Real.exp 2 = Real.exp 1 * Real.exp 1 by rw [← Real.exp_add]; norm_num] + field_simp + simp only [norm_div, norm_mul, norm_natCast] + calc + _ ≤ ((n.factorial * A * (Real.exp 1 / ((n : ℝ) + 1) ^ p⁻¹) ^ n) * + (n.factorial * B * (Real.exp 1 / ((n : ℝ) + 1) ^ q⁻¹) ^ n)) / n.factorial := + div_le_div_of_nonneg_right (mul_le_mul ha' hb' (by positivity) (by positivity)) + (by positivity) + _ = n.factorial * (A * B) * + (Real.exp 1 / ((n : ℝ) + 1) ^ p⁻¹ * + (Real.exp 1 / ((n : ℝ) + 1) ^ q⁻¹)) ^ n := by rw [mul_pow]; field_simp + _ ≤ ((n : ℝ) + 1) ^ n * (A * B) * + (Real.exp 1 / ((n : ℝ) + 1) ^ p⁻¹ * + (Real.exp 1 / ((n : ℝ) + 1) ^ q⁻¹)) ^ n := + mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hfac (by positivity)) + (by positivity) + _ = _ := by rw [mul_right_comm, ← mul_pow, hbase, mul_comm] + +/-- Positive powers dominating the input orders with reciprocal sum greater +than one give a summable bound for the differential terms on every disk. -/ +theorem exists_summable_infiniteDifferentialApply_bound {φ f : ℂ → ℂ} {ρ σ p q R : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hp : 0 < p) (hρ : ρ < p) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hq : 0 < q) (hσ : σ < q) + (hsum : 1 < p⁻¹ + q⁻¹) : + ∃ B : ℕ → ℝ, Summable B ∧ ∀ n : ℕ, ∀ z : ℂ, ‖z‖ ≤ R → + ‖iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)‖ ≤ B n := by + obtain ⟨C, hC, hbound⟩ := exists_differential_rpow_bound hφ hoφ hp hρ hf hof hq hσ + refine ⟨fun n => C * (Real.exp 2 / ((n : ℝ) + 1) ^ (p⁻¹ + q⁻¹ - 1)) ^ n, ?_, hbound⟩ + have htop : Tendsto (fun n : ℕ => ((n : ℝ) + 1) ^ (p⁻¹ + q⁻¹ - 1)) atTop atTop := + (tendsto_rpow_atTop (by linarith)).comp + (tendsto_atTop_add_const_right atTop 1 (tendsto_natCast_atTop_atTop (R := ℝ))) + have hlim := htop.const_div_atTop (Real.exp 2) + apply Summable.of_norm_bounded_eventually_nat + ((summable_geometric_of_abs_lt_one (by norm_num : |(1 / 2 : ℝ)| < 1)).mul_left C) + filter_upwards [hlim.eventually (eventually_lt_nhds (by norm_num : (0 : ℝ) < 1 / 2))] with n hn + rw [Real.norm_of_nonneg (by positivity)] + exact mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (by positivity) hn.le n) hC.le + +end Complex diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderConvergence.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderConvergence.lean new file mode 100644 index 000000000..77a4a35f6 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderConvergence.lean @@ -0,0 +1,65 @@ +/- +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.Analysis.Complex.InfiniteDifferential.Basic +import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderBound +import Mathlib.Analysis.Normed.Group.FunctionSeries + +/-! +# Differential-series convergence under reciprocal growth bounds + +Positive upper growth exponents `p` and `q` with `1/p + 1/q > 1` suffice for +absolute and locally uniform convergence of the entire differential series. +Neither exponent is individually required to be below two. +-/ + +public section + +open Filter Topology + +namespace Complex + +/-- The reciprocal growth condition gives absolute convergence of the +infinite differential series. -/ +theorem summable_norm_infiniteDifferentialApply_of_order {φ f : ℂ → ℂ} {ρ σ p q : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hp : 0 < p) (hρ : ρ < p) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hq : 0 < q) (hσ : σ < q) + (hsum : 1 < p⁻¹ + q⁻¹) (z : ℂ) : + Summable (fun n : ℕ => + ‖iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)‖) := by + obtain ⟨B, hB, hbound⟩ := exists_summable_infiniteDifferentialApply_bound + (R := ‖z‖) hφ hoφ hp hρ hf hof hq hσ hsum + exact Summable.of_nonneg_of_le (fun _ => norm_nonneg _) (fun n => hbound n z le_rfl) hB + +/-- The reciprocal growth condition gives uniform convergence on every disk. -/ +theorem tendstoUniformlyOn_infiniteDifferentialApply_of_order {φ f : ℂ → ℂ} {ρ σ p q R : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hp : 0 < p) (hρ : ρ < p) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hq : 0 < q) (hσ : σ < q) + (hsum : 1 < p⁻¹ + q⁻¹) : + TendstoUniformlyOn (fun N z => ∑ n ∈ Finset.range N, + iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)) + (infiniteDifferentialApply φ f) atTop {z | ‖z‖ ≤ R} := by + obtain ⟨B, hB, hbound⟩ := exists_summable_infiniteDifferentialApply_bound + hφ hoφ hp hρ hf hof hq hσ hsum + exact tendstoUniformlyOn_tsum_nat hB hbound + +/-- The reciprocal growth condition gives locally uniform convergence in space. -/ +theorem tendstoLocallyUniformly_infiniteDifferentialApply_of_order {φ f : ℂ → ℂ} + {ρ σ p q : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hp : 0 < p) (hρ : ρ < p) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hq : 0 < q) (hσ : σ < q) + (hsum : 1 < p⁻¹ + q⁻¹) : + TendstoLocallyUniformly (fun N z => ∑ n ∈ Finset.range N, + iteratedDeriv n φ 0 * iteratedDeriv n f z / (n.factorial : ℂ)) + (infiniteDifferentialApply φ f) atTop := by + rw [tendstoLocallyUniformly_iff_forall_isCompact] + intro K hK + obtain ⟨R, _, hbound⟩ := hK.isBounded.exists_pos_norm_le + exact (tendstoUniformlyOn_infiniteDifferentialApply_of_order (R := R) + hφ hoφ hp hρ hf hof hq hσ hsum).mono hbound + +end Complex diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderDerivative.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderDerivative.lean new file mode 100644 index 000000000..c5dcff51e --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderDerivative.lean @@ -0,0 +1,60 @@ +/- +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.Analysis.Complex.InfiniteDifferential.Basic +import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderConvergence +import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Derivative +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff +import Mathlib.Analysis.Complex.LocallyUniformLimit + +/-! +# Entire differential images under reciprocal growth bounds + +The reciprocal-order condition gives entireness and commutation with all +spatial derivatives, using the same finite-sum identities as the subquadratic case. +-/ + +public section + +open Filter Topology + +namespace Complex + +/-- The reciprocal growth condition makes the differential image entire. -/ +theorem differentiable_infiniteDifferentialApply_of_order {φ f : ℂ → ℂ} {ρ σ p q : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hp : 0 < p) (hρ : ρ < p) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hq : 0 < q) (hσ : σ < q) + (hsum : 1 < p⁻¹ + q⁻¹) : Differentiable ℂ (infiniteDifferentialApply φ f) := by + apply differentiableOn_univ.mp + apply (tendstoLocallyUniformlyOn_univ.mpr + (tendstoLocallyUniformly_infiniteDifferentialApply_of_order + hφ hoφ hp hρ hf hof hq hσ hsum)).differentiableOn + (Eventually.of_forall fun N => + (differentiable_partial_infiniteDifferentialApply hf N).differentiableOn) isOpen_univ + +/-- Under the reciprocal growth condition every spatial derivative commutes +with the infinite differential operator. -/ +theorem iteratedDeriv_infiniteDifferentialApply_of_order {φ f : ℂ → ℂ} {ρ σ p q : ℝ} + (hφ : Differentiable ℂ φ) (hoφ : TauCeti.OrderLE φ ρ) (hp : 0 < p) (hρ : ρ < p) + (hf : Differentiable ℂ f) (hof : TauCeti.OrderLE f σ) (hq : 0 < q) (hσ : σ < q) + (hsum : 1 < p⁻¹ + q⁻¹) (k : ℕ) : + iteratedDeriv k (infiniteDifferentialApply φ f) = + infiniteDifferentialApply φ (iteratedDeriv k f) := by + have hleft := (tendstoLocallyUniformly_infiniteDifferentialApply_of_order + hφ hoφ hp hρ hf hof hq hσ hsum).iteratedDeriv + (differentiable_partial_infiniteDifferentialApply hf) k + simp only [iteratedDeriv_partial_infiniteDifferentialApply hf] at hleft + have hdf := (hf.contDiff (n := ⊤)).differentiable_iteratedDeriv k (WithTop.coe_lt_top _) + have hright := tendstoLocallyUniformly_infiniteDifferentialApply_of_order hφ hoφ hp hρ hdf + (hof.iteratedDeriv hf k) hq hσ hsum + ext z + exact tendsto_nhds_unique + ((tendstoLocallyUniformlyOn_univ.mpr hleft).tendsto_at (Set.mem_univ z)) + ((tendstoLocallyUniformlyOn_univ.mpr hright).tendsto_at (Set.mem_univ z)) + +end Complex diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialOrder.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialOrder.lean new file mode 100644 index 000000000..35fa09f39 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialOrder.lean @@ -0,0 +1,63 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Basic +import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderDerivative +import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderConvergence +import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Star +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative +import RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialCoefficients +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen + +/-! +# Infinite differential preservation under reciprocal order bounds + +Positive exponents above the symbol and target growth orders suffice when +their reciprocals sum to more than one. The normally convergent differential +sum then remains LP. No separate coefficient convergence hypothesis is imposed, +and zero symbols, targets and outputs are included. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- The reciprocal growth-order condition gives LP preservation by the actual +infinite differential operator, including the identically zero result. -/ +theorem IsLaguerrePolya.infiniteDifferentialApply_of_order {φ f : ℂ → ℂ} + (hφ : IsLaguerrePolya φ) (hf : IsLaguerrePolya f) {ρ σ p q : ℝ} + (hoφ : TauCeti.OrderLE φ ρ) (hp : 0 < p) (hρ : ρ < p) + (hof : TauCeti.OrderLE f σ) (hq : 0 < q) (hσ : σ < q) (hsum : 1 < p⁻¹ + q⁻¹) : + IsLaguerrePolya (Complex.infiniteDifferentialApply φ f) := by + have hc : ∀ k, Tendsto (fun N => ∑ n ∈ Finset.range N, + (iteratedDeriv n φ 0).re * (iteratedDeriv (k + n) f 0).re / n.factorial) atTop + (𝓝 ((iteratedDeriv k (Complex.infiniteDifferentialApply φ f) 0).re)) := by + intro k + have hdf := (hf.differentiable.contDiff (n := ⊤)).differentiable_iteratedDeriv k + (WithTop.coe_lt_top _) + have hs := (summable_norm_infiniteDifferentialApply_of_order hφ.differentiable hoφ hp hρ + hdf (hof.iteratedDeriv hf.differentiable k) hq hσ hsum 0).of_norm.hasSum + have hre := Complex.hasSum_re hs + have hreal (n : ℕ) : (iteratedDeriv n φ 0).im = 0 := by + rw [← Complex.ofReal_re_iteratedDeriv_zero hφ.conj n] + simp + simp only [div_natCast_re, mul_re, hreal, zero_mul, sub_zero] at hre + rw [iteratedDeriv_infiniteDifferentialApply_of_order hφ.differentiable hoφ hp hρ + hf.differentiable hof hq hσ hsum] + simpa only [Complex.infiniteDifferentialApply, + iteratedDeriv_eq_iterate, ← Function.iterate_add_apply, Nat.add_comm k] using + hre.tendsto_sum_nat + have hconj (z : ℂ) : Complex.infiniteDifferentialApply φ f (starRingEnd ℂ z) = + starRingEnd ℂ (Complex.infiniteDifferentialApply φ f z) := + Complex.infiniteDifferentialApply_conj hφ.conj hf.conj z + rw [eq_complexExpGeneratingFunction_of_iteratedDeriv + (differentiable_infiniteDifferentialApply_of_order hφ.differentiable hoφ hp hρ + hf.differentiable hof hq hσ hsum) + (fun k => (Complex.ofReal_re_iteratedDeriv_zero hconj k).symm)] + exact hφ.infinite_differential_coefficients hf hc + +end RealRooted From c8ba24f7aa4909fb311cfdcf3229f5d73da2257a 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 17:28:30 +0000 Subject: [PATCH 53/56] feat: prove Gamma convolution and factorial ratio multipliers --- .../Pochhammer/ReciprocalConvolution.lean | 73 +++++++++++ .../BinomialConvolution.lean | 56 ++++++++ .../MultiplierSequence/FactorialRatio.lean | 100 ++++++++++++++ .../MultiplierSequence/GammaConvolution.lean | 124 ++++++++++++++++++ .../PochhammerConvolution.lean | 38 ++++++ 5 files changed, 391 insertions(+) create mode 100644 RealRooted/Mathlib/RingTheory/Polynomial/Pochhammer/ReciprocalConvolution.lean create mode 100644 RealRooted/MultiplierSequence/BinomialConvolution.lean create mode 100644 RealRooted/MultiplierSequence/FactorialRatio.lean create mode 100644 RealRooted/MultiplierSequence/GammaConvolution.lean create mode 100644 RealRooted/MultiplierSequence/PochhammerConvolution.lean diff --git a/RealRooted/Mathlib/RingTheory/Polynomial/Pochhammer/ReciprocalConvolution.lean b/RealRooted/Mathlib/RingTheory/Polynomial/Pochhammer/ReciprocalConvolution.lean new file mode 100644 index 000000000..8fd6b3ca8 --- /dev/null +++ b/RealRooted/Mathlib/RingTheory/Polynomial/Pochhammer/ReciprocalConvolution.lean @@ -0,0 +1,73 @@ +/- +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.RingTheory.Polynomial.Pochhammer +import Mathlib.RingTheory.Binomial + +/-! +# Reciprocal rising-factorial convolution + +The finite Chu--Vandermonde identity gives a Gamma-free convolution of +reciprocal rising factorials. The numerator is a finite polynomial even when +the corresponding Gamma ratio has a removable singularity. +-/ + +public section + +namespace Polynomial + +variable {R : Type*} [Field R] + +/-- The reciprocal rising-factorial convolution, with no Gamma poles. -/ +theorem sum_choose_mul_inv_ascPochhammer {a b : R} (n : ℕ) + (ha : (ascPochhammer R n).eval a ≠ 0) + (hb : (ascPochhammer R n).eval b ≠ 0) : + (∑ k ∈ Finset.range (n + 1), (n.choose k : R) * + ((ascPochhammer R k).eval a)⁻¹ * + ((ascPochhammer R (n - k)).eval b)⁻¹) = + (ascPochhammer R n).eval (a + b + n - 1) / + ((ascPochhammer R n).eval a * (ascPochhammer R n).eval b) := by + apply (eq_div_iff (mul_ne_zero ha hb)).mpr + rw [Finset.sum_mul] + have hterm (k : ℕ) (hk : k ∈ Finset.range (n + 1)) : + (n.choose k : R) * ((ascPochhammer R k).eval a)⁻¹ * + ((ascPochhammer R (n - k)).eval b)⁻¹ * + ((ascPochhammer R n).eval a * (ascPochhammer R n).eval b) = + (n.choose k : R) * + ((descPochhammer ℤ k).smeval (b + n - 1) * + (descPochhammer ℤ (n - k)).smeval (a + n - 1)) := by + have hkn : k ≤ n := Nat.lt_succ_iff.mp (Finset.mem_range.mp hk) + have haeq := congrArg (eval a) (ascPochhammer_mul R k (n - k)) + have hbeq := congrArg (eval b) (ascPochhammer_mul R (n - k) k) + simp only [eval_mul, eval_comp, eval_add, eval_X, eval_natCast, + Nat.add_sub_of_le hkn, Nat.sub_add_cancel hkn] at haeq hbeq + have hak : (ascPochhammer R k).eval a ≠ 0 := by + intro h + rw [h, zero_mul] at haeq + exact ha haeq.symm + have hbk : (ascPochhammer R (n - k)).eval b ≠ 0 := by + intro h + rw [h, zero_mul] at hbeq + exact hb hbeq.symm + rw [descPochhammer_smeval_eq_ascPochhammer, + descPochhammer_smeval_eq_ascPochhammer, + ascPochhammer_smeval_eq_eval, ascPochhammer_smeval_eq_eval] + rw [show b + n - 1 - k + 1 = b + ((n - k : ℕ) : R) by rw [Nat.cast_sub hkn]; ring, + show a + n - 1 - ((n - k : ℕ) : R) + 1 = a + k by rw [Nat.cast_sub hkn]; ring] + rw [← haeq, ← hbeq] + field_simp + rw [Finset.sum_congr rfl hterm, + ← Finset.Nat.sum_antidiagonal_eq_sum_range_succ fun k l => + (n.choose k : R) * + ((descPochhammer ℤ k).smeval (b + n - 1) * + (descPochhammer ℤ l).smeval (a + n - 1)), + ← Ring.descPochhammer_smeval_add n (Commute.all _ _), + descPochhammer_smeval_eq_ascPochhammer, ascPochhammer_smeval_eq_eval] + congr 1 + ring + +end Polynomial diff --git a/RealRooted/MultiplierSequence/BinomialConvolution.lean b/RealRooted/MultiplierSequence/BinomialConvolution.lean new file mode 100644 index 000000000..3a8e1b466 --- /dev/null +++ b/RealRooted/MultiplierSequence/BinomialConvolution.lean @@ -0,0 +1,56 @@ +module + +public import RealRooted.MultiplierSequence.JensenProduct +public import RealRooted.MultiplierSequence.Infinite +import RealRooted.MultiplierSequence.JensenConvolution +import RealRooted.MultiplierSequence.PolyaSchur + +/-! +# Binomial convolution of positive multiplier sequences + +The product rule for exponential generating functions preserves the positive +multiplier-sequence cone. The finite Jensen convolution theorem proves this +directly, including zero sequences and vanishing constant coefficients. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Binomial convolution of nonnegative sequences is nonnegative. -/ +theorem binomialConvolution_nonneg {gamma delta : ℕ → ℝ} + (hgamma : ∀ k, 0 ≤ gamma k) (hdelta : ∀ k, 0 ≤ delta k) (n : ℕ) : + 0 ≤ binomialConvolution gamma delta n := by + apply Finset.sum_nonneg + intro k _ + exact mul_nonneg (mul_nonneg (Nat.cast_nonneg _) (hgamma k)) (hdelta (n - k)) + +/-- Scaling both inputs scales their binomial convolution by the product. -/ +theorem binomialConvolution_const_mul (gamma delta : ℕ → ℝ) (a b : ℝ) (n : ℕ) : + binomialConvolution (fun k => a * gamma k) (fun k => b * delta k) n = + a * b * binomialConvolution gamma delta n := by + simp only [binomialConvolution, Finset.mul_sum] + apply Finset.sum_congr rfl + intro k _ + ring + +/-- Binomial convolution preserves PF multiplier sequences. -/ +theorem IsPFMultiplierSequence.binomialConvolution {gamma delta : ℕ → ℝ} + (hgamma : IsPFMultiplierSequence gamma) (hdelta : IsPFMultiplierSequence delta) : + IsPFMultiplierSequence (RealRooted.binomialConvolution gamma delta) := by + rw [isPFMultiplierSequence_iff_jensenPolynomial_isPF] + intro n + apply IsPFPolynomial.of_realRooted_nonneg + · intro k + rw [coeff_jensenPolynomial] + split_ifs + · exact mul_nonneg (Nat.cast_nonneg _) + (binomialConvolution_nonneg hgamma.nonneg hdelta.nonneg k) + · exact le_rfl + · exact jensenProductPolynomial_splits n + ((isPFPolynomial_jensenPolynomial_of_PFMultiplierSequence hgamma n).splits) + ((isPFPolynomial_jensenPolynomial_of_PFMultiplierSequence hdelta n).splits) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/FactorialRatio.lean b/RealRooted/MultiplierSequence/FactorialRatio.lean new file mode 100644 index 000000000..fee6985d3 --- /dev/null +++ b/RealRooted/MultiplierSequence/FactorialRatio.lean @@ -0,0 +1,100 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.TypeI +import RealRooted.MultiplierSequence.PochhammerConvolution +import RealRooted.MultiplierSequence.Laguerre +import RealRooted.MultiplierSequence.Arithmetic +import RealRooted.MultiplierSequence.PolyaSchur + +/-! +# A factorial-ratio multiplier sequence + +The sequence `(2k)! / (3k)!` is a PF multiplier sequence. Its arithmetic +subsequences therefore give entire positive Type-I functions at every stride +and starting index. These are Craven--Csordas (2006), Theorem 3.13 and +Corollary 3.16, with the zero-stride boundary included. + +The proof uses the reciprocal-Pochhammer convolution and an Euler factor, +so no quotient of Gamma values at poles occurs. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Tripling the index splits a factorial into its three residue classes. -/ +private theorem factorial_three_mul (n : ℕ) : + ((3 * n).factorial : ℝ) = (27 : ℝ) ^ n * + (ascPochhammer ℝ n).eval (1 / 3) * + (ascPochhammer ℝ n).eval (2 / 3) * n.factorial := by + induction n with + | zero => simp + | succ n ih => + rw [show 3 * (n + 1) = 3 * n + 1 + 1 + 1 by lia, + Nat.factorial_succ, Nat.factorial_succ, Nat.factorial_succ, + ascPochhammer_succ_eval, ascPochhammer_succ_eval, Nat.factorial_succ, pow_succ] + push_cast + rw [ih] + ring + +/-- The Euler factor cancels the shifted Pochhammer parameter exactly. -/ +private theorem factorial_ratio_eq_pochhammerConvolution (n : ℕ) : + ((2 * n).factorial : ℝ) / (3 * n).factorial = + 3 * (1 / 27 : ℝ) ^ n * ((n : ℝ) + 1 / 3) * + ((ascPochhammer ℝ n).eval ((4 / 3 : ℝ) + 2 / 3 + n - 1) / + ((ascPochhammer ℝ n).eval (4 / 3) * + (ascPochhammer ℝ n).eval (2 / 3))) := by + have hfac := factorial_mul_ascPochhammer ℝ n n + rw [← two_mul n] at hfac + have hshift := ascPochhammer_eval_succ n (1 / 3 : ℝ) + rw [show (1 / 3 : ℝ) + 1 = 4 / 3 by norm_num] at hshift + rw [show (4 / 3 : ℝ) + 2 / 3 + n - 1 = n + 1 by ring, + factorial_three_mul] + have h₁ := (ascPochhammer_pos n (1 / 3 : ℝ) (by norm_num)).ne' + have h₂ := (ascPochhammer_pos n (2 / 3 : ℝ) (by norm_num)).ne' + have h₄ := (ascPochhammer_pos n (4 / 3 : ℝ) (by norm_num)).ne' + rw [one_div_pow] + field_simp + linear_combination -(ascPochhammer ℝ n).eval (4 / 3) * hfac + + 3 * (n.factorial : ℝ) * + (ascPochhammer ℝ n).eval ((n : ℝ) + 1) * hshift + +/-- The factorial ratios `(2k)! / (3k)!` form a PF multiplier sequence +(Craven--Csordas, 2006, Theorem 3.13). -/ +theorem isPFMultiplierSequence_factorial_two_mul_div_three_mul : + IsPFMultiplierSequence (fun k => ((2 * k).factorial : ℝ) / (3 * k).factorial) := by + have hbase := (isPFMultiplierSequence_natCast_add (by norm_num : (0 : ℝ) ≤ 1 / 3)).mul + (isPFMultiplierSequence_pochhammerConvolution + (by norm_num : (0 : ℝ) < 4 / 3) (by norm_num : (0 : ℝ) < 2 / 3)) + rw [isPFMultiplierSequence_iff_jensenPolynomial_isPF] + intro d + have hp₀ := isPFPolynomial_jensenPolynomial_of_PFMultiplierSequence hbase d + have hp₁ := hp₀.comp_C_mul_X_add_C (by norm_num : (0 : ℝ) < 1 / 27) le_rfl + have hp := hp₁.const_mul (by norm_num : (0 : ℝ) < 3) + convert hp using 1 + ext k + rw [coeff_jensenPolynomial, coeff_C_mul] + simp only [C_0, add_zero, comp_C_mul_X_coeff, coeff_jensenPolynomial] + split_ifs + · rw [factorial_ratio_eq_pochhammerConvolution] + ring + · ring + +/-- Every arithmetic subsequence of the factorial ratios is a PF multiplier +sequence, extending Craven--Csordas (2006), Corollary 3.16. -/ +theorem isPFMultiplierSequence_factorial_ratio_arithmetic (r s : ℕ) : + IsPFMultiplierSequence (fun k => + ((2 * (s + r * k)).factorial : ℝ) / (3 * (s + r * k)).factorial) := + isPFMultiplierSequence_factorial_two_mul_div_three_mul.arithmetic r s + +/-- Every arithmetic factorial-ratio exponential generating function belongs +to the positive Type-I Laguerre--Pólya class, with actual entire convergence. -/ +theorem isLaguerrePolyaTypeI_factorial_ratio_arithmetic (r s : ℕ) : + IsLaguerrePolyaTypeI (complexExpGeneratingFunction (fun k => + ((2 * (s + r * k)).factorial : ℝ) / (3 * (s + r * k)).factorial)) := + IsPFMultiplierSequence.isLaguerrePolyaTypeI_complexExpGeneratingFunction + (isPFMultiplierSequence_factorial_ratio_arithmetic r s) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/GammaConvolution.lean b/RealRooted/MultiplierSequence/GammaConvolution.lean new file mode 100644 index 000000000..04753b479 --- /dev/null +++ b/RealRooted/MultiplierSequence/GammaConvolution.lean @@ -0,0 +1,124 @@ +module + +public import RealRooted.MultiplierSequence.Infinite +public import RealRooted.MultiplierSequence.JensenProduct +public import Mathlib.Analysis.SpecialFunctions.Gamma.Basic +import RealRooted.MultiplierSequence.BinomialConvolution +import RealRooted.MultiplierSequence.InvPochhammer +import RealRooted.Mathlib.RingTheory.Polynomial.Pochhammer.ReciprocalConvolution +import TauCeti.Analysis.SpecialFunctions.Gamma.Basic + +/-! +# Gamma normalization of reciprocal-Pochhammer convolution + +The finite-product numerator supplies the canceled Gamma ratio at its +removable singularity. For positive parameters whose sum differs from one, +the usual quotient is valid at every index. When the sum is one, its zeroth +value must be defined separately. + +These are the precise normalizations of Craven--Csordas (2006), Lemma 3.12 +and Theorem 3.14. Mathlib assigns zero to Gamma at its poles, so substituting +that value directly in the uncanceled quotient would lose its constant term. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- Reciprocal Gamma along a positive natural shift is a constant multiple +of a reciprocal rising factorial. -/ +private theorem inv_Gamma_add_nat_eq {a : ℝ} (ha : 0 < a) (n : ℕ) : + (Real.Gamma (a + n))⁻¹ = + (Real.Gamma a)⁻¹ * ((ascPochhammer ℝ n).eval a)⁻¹ := by + have h := Real.inv_Gamma_eq_ascPochhammer_mul_inv_Gamma_add a n + have hA := (ascPochhammer_pos n a ha).ne' + rw [mul_comm] at h + exact (eq_div_iff hA).mpr h.symm + +/-- Reciprocal Gamma evaluated at positive natural shifts gives a PF +multiplier sequence. -/ +theorem isPFMultiplierSequence_inv_Gamma_add {a : ℝ} (ha : 0 < a) : + IsPFMultiplierSequence (fun n => (Real.Gamma (a + n))⁻¹) := by + simp_rw [inv_Gamma_add_nat_eq ha] + exact (isPFMultiplierSequence_inv_ascPochhammer ha).const_mul + (inv_nonneg.mpr (Real.Gamma_pos_of_pos ha).le) + +/-- The binomial convolution of reciprocal Gamma values has a pole-free +finite-product numerator, including index zero. -/ +theorem binomialConvolution_inv_Gamma_eq {a b : ℝ} + (ha : 0 < a) (hb : 0 < b) (n : ℕ) : + binomialConvolution (fun k => (Real.Gamma (a + k))⁻¹) + (fun k => (Real.Gamma (b + k))⁻¹) n = + (ascPochhammer ℝ n).eval (a + b + n - 1) / + (Real.Gamma (a + n) * Real.Gamma (b + n)) := by + simp_rw [inv_Gamma_add_nat_eq ha, inv_Gamma_add_nat_eq hb] + rw [binomialConvolution_const_mul, binomialConvolution, + sum_choose_mul_inv_ascPochhammer n + (ascPochhammer_pos n a ha).ne' (ascPochhammer_pos n b hb).ne'] + have haeq := Real.Gamma_add_nat_div_Gamma_eq (n := n) a + (fun k => ne_of_gt (lt_of_le_of_lt (neg_nonpos.mpr (Nat.cast_nonneg k)) ha)) + have hbeq := Real.Gamma_add_nat_div_Gamma_eq (n := n) b + (fun k => ne_of_gt (lt_of_le_of_lt (neg_nonpos.mpr (Nat.cast_nonneg k)) hb)) + rw [← haeq, ← hbeq] + field_simp + +/-- The canceled Gamma convolution gives a PF multiplier sequence for all +positive parameters, including a parameter sum of one. -/ +theorem isPFMultiplierSequence_gammaConvolution {a b : ℝ} + (ha : 0 < a) (hb : 0 < b) : + IsPFMultiplierSequence (fun n => + (ascPochhammer ℝ n).eval (a + b + n - 1) / + (Real.Gamma (a + n) * Real.Gamma (b + n))) := by + have h := (isPFMultiplierSequence_inv_Gamma_add ha).binomialConvolution + (isPFMultiplierSequence_inv_Gamma_add hb) + convert h using 1 + ext n + exact (binomialConvolution_inv_Gamma_eq ha hb n).symm + +/-- Away from the sole removable pole, the finite-product convolution is the +usual quotient of Gamma values. -/ +theorem pochhammer_div_gamma_mul_eq_gamma_ratio {a b : ℝ} + (ha : 0 < a) (hb : 0 < b) {n : ℕ} (h : n ≠ 0 ∨ a + b ≠ 1) : + (ascPochhammer ℝ n).eval (a + b + n - 1) / + (Real.Gamma (a + n) * Real.Gamma (b + n)) = + Real.Gamma (2 * n + a + b - 1) / + (Real.Gamma (a + n) * Real.Gamma (b + n) * Real.Gamma (n + a + b - 1)) := by + have hpole : ∀ k : ℕ, a + b + n - 1 ≠ -(k : ℝ) := by + intro k heq + cases n with + | zero => + have hab : a + b ≠ 1 := h.resolve_left (by simp) + cases k with + | zero => simp only [Nat.cast_zero, add_zero, neg_zero] at heq; exact hab (by linarith) + | succ k => push_cast at heq; have := Nat.cast_nonneg (α := ℝ) k; linarith + | succ n => + push_cast at heq + have := Nat.cast_nonneg (α := ℝ) n + have := Nat.cast_nonneg (α := ℝ) k + linarith + rw [← Real.Gamma_add_nat_div_Gamma_eq (a + b + n - 1) hpole] + rw [show a + b + (n : ℝ) - 1 + n = 2 * n + a + b - 1 by ring, + show a + b + (n : ℝ) - 1 = n + a + b - 1 by ring] + ring + +/-- The ordinary Gamma quotient gives the convolution multiplier sequence +when the positive parameters do not sum to one. -/ +theorem isPFMultiplierSequence_gammaRatio {a b : ℝ} + (ha : 0 < a) (hb : 0 < b) (hab : a + b ≠ 1) : + IsPFMultiplierSequence (fun n => + Real.Gamma (2 * n + a + b - 1) / + (Real.Gamma (a + n) * Real.Gamma (b + n) * Real.Gamma (n + a + b - 1))) := by + simpa only [pochhammer_div_gamma_mul_eq_gamma_ratio ha hb (Or.inr hab)] using + isPFMultiplierSequence_gammaConvolution ha hb + +/-- The zeroth coefficient of the canceled convolution is the product of +reciprocal Gamma values, also when the parameters sum to one. -/ +theorem gammaConvolution_zero (a b : ℝ) : + (ascPochhammer ℝ 0).eval (a + b + (0 : ℕ) - 1) / + (Real.Gamma (a + (0 : ℕ)) * Real.Gamma (b + (0 : ℕ))) = + 1 / (Real.Gamma a * Real.Gamma b) := by + simp + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PochhammerConvolution.lean b/RealRooted/MultiplierSequence/PochhammerConvolution.lean new file mode 100644 index 000000000..1b4d25b3b --- /dev/null +++ b/RealRooted/MultiplierSequence/PochhammerConvolution.lean @@ -0,0 +1,38 @@ +module + +public import RealRooted.MultiplierSequence.Infinite +public import Mathlib.RingTheory.Polynomial.Pochhammer +import RealRooted.Mathlib.RingTheory.Polynomial.Pochhammer.ReciprocalConvolution +import RealRooted.MultiplierSequence.BinomialConvolution +import RealRooted.MultiplierSequence.InvPochhammer + +/-! +# Positive reciprocal-Pochhammer convolution + +The convolution of two reciprocal rising-factorial multiplier sequences has +an exact finite-product formula. This is the Gamma-free normalization of +Craven--Csordas (2006), Lemma 3.12 and Theorem 3.14. It includes the removable +singularity when the parameter sum is one and the index is zero. +-/ + +public section + +open Polynomial + +namespace RealRooted + +/-- The canceled reciprocal-Pochhammer convolution is a PF multiplier +sequence for all positive parameters, including their sum equal to one. -/ +theorem isPFMultiplierSequence_pochhammerConvolution {a b : ℝ} + (ha : 0 < a) (hb : 0 < b) : + IsPFMultiplierSequence (fun n => + (ascPochhammer ℝ n).eval (a + b + n - 1) / + ((ascPochhammer ℝ n).eval a * (ascPochhammer ℝ n).eval b)) := by + have h := (isPFMultiplierSequence_inv_ascPochhammer ha).binomialConvolution + (isPFMultiplierSequence_inv_ascPochhammer hb) + convert h using 1 + ext n + exact (sum_choose_mul_inv_ascPochhammer n + (ascPochhammer_pos n a ha).ne' (ascPochhammer_pos n b hb).ne').symm + +end RealRooted From edfd6a120fbe14cc1edac19f8209cc84f15cf3aa 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 17:34:08 +0000 Subject: [PATCH 54/56] feat: extend RH xi differential operators to every LP entire function --- .../Analysis/Complex/GrowthOrder/OfBound.lean | 34 +++++++++++ .../PolyaSchur/LaguerrePolya/GrowthOrder.lean | 53 ++++++++++++++++++ .../InfiniteDifferentialEntire.lean | 56 +++++++++++++++++++ .../RiemannHypothesis/EntireDifferential.lean | 43 ++++++++++++++ 4 files changed, 186 insertions(+) create mode 100644 RealRooted/Mathlib/Analysis/Complex/GrowthOrder/OfBound.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GrowthOrder.lean create mode 100644 RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialEntire.lean create mode 100644 RealRooted/RiemannHypothesis/EntireDifferential.lean diff --git a/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/OfBound.lean b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/OfBound.lean new file mode 100644 index 000000000..d73a5ae71 --- /dev/null +++ b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/OfBound.lean @@ -0,0 +1,34 @@ +/- +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 TauCeti.Analysis.Complex.GrowthOrder + +/-! +# Growth order from global exponential bounds + +A global bound by a constant times an exponential power gives the corresponding +growth-order bound. No analyticity is required for this implication. +-/ + +public section + +open Filter Asymptotics Bornology + +namespace TauCeti + +/-- A global exponential-power bound implies the corresponding order bound. -/ +theorem orderLE_of_norm_le_mul_exp_rpow {f : ℂ → ℂ} {B C p : ℝ} + (hbound : ∀ z, ‖f z‖ ≤ B * Real.exp (C * ‖z‖ ^ p)) : OrderLE f p := by + rw [orderLE_def] + intro q hpq + apply (show f =O[cobounded ℂ] (fun z => Real.exp (C * ‖z‖ ^ p)) from ?_).trans + (isBigO_exp_mul_norm_rpow C hpq) + apply IsBigO.of_bound B + exact Eventually.of_forall fun z => by + simpa only [Real.norm_eq_abs, Real.abs_exp] using hbound z + +end TauCeti diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GrowthOrder.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GrowthOrder.lean new file mode 100644 index 000000000..5de4a4a99 --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/GrowthOrder.lean @@ -0,0 +1,53 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import TauCeti.Analysis.Complex.GrowthOrder +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.OfBound +import RealRooted.Mathlib.Analysis.Complex.LineIdentity +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.UniformDerivativeBounds +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative + +/-! +# Growth order of Laguerre--Pólya functions + +The quantitative Szász estimate gives a quadratic exponential bound after a +real translation to a nonzero value. Consequently every LP function has order +at most two, including functions vanishing at the origin and the zero function. +-/ + +public section + +open Complex Filter Topology + +namespace RealRooted + +/-- Every Laguerre--Pólya function has growth order at most two. -/ +theorem IsLaguerrePolya.orderLE_two {f : ℂ → ℂ} (hf : IsLaguerrePolya f) : + TauCeti.OrderLE f 2 := by + by_cases hf0 : f = 0 + · subst f + exact TauCeti.orderLE_const 0 2 + have hreal : ∃ x : ℝ, f x ≠ 0 := by + by_contra! hzero + apply hf0 + have h := hf.analyticOnNhd.eqOn_zero_of_line_eq_zero + (z₀ := 0) (v := 1) isPreconnected_univ (Set.mem_univ _) one_ne_zero + (Eventually.of_forall fun x => by simpa using hzero x) + exact funext fun z => h (Set.mem_univ z) + obtain ⟨x, hx⟩ := hreal + let g : ℂ → ℂ := fun z => f (z + x) + have hg : IsLaguerrePolya g := by + simpa only [Complex.ofReal_one, one_mul] using hf.comp_affine_real 1 x + have hg0 : g 0 ≠ 0 := by simpa only [g, zero_add] using hx + let K := max (max ‖g 0‖ ‖(g 0)⁻¹‖) (max ‖_root_.deriv g 0‖ ‖_root_.deriv (_root_.deriv g) 0‖) + have h0 : ‖g 0‖ ≤ K := (le_max_left _ _).trans (le_max_left _ _) + have hi : ‖(g 0)⁻¹‖ ≤ K := (le_max_right _ _).trans (le_max_left _ _) + have h1 : ‖_root_.deriv g 0‖ ≤ K := (le_max_left _ _).trans (le_max_right _ _) + have h2 : ‖_root_.deriv (_root_.deriv g) 0‖ ≤ K := (le_max_right _ _).trans (le_max_right _ _) + obtain ⟨B, _, C, _, hbound⟩ := + exists_uniform_norm_bound_of_jet_bounds ((norm_nonneg _).trans h0) + have hgo : TauCeti.OrderLE g 2 := TauCeti.orderLE_of_norm_le_mul_exp_rpow + (by simpa only [Real.rpow_two] using hbound g hg hg0 h0 hi h1 h2) + simpa only [g, one_mul, neg_add_cancel_right] using hgo.comp_mul_add 1 (-(x : ℂ)) + +end RealRooted diff --git a/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialEntire.lean b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialEntire.lean new file mode 100644 index 000000000..6571d965c --- /dev/null +++ b/RealRooted/MultiplierSequence/PolyaSchur/LaguerrePolya/InfiniteDifferentialEntire.lean @@ -0,0 +1,56 @@ +module + +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Basic +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialOrder +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GrowthOrder + +/-! +# Infinite differential preservation with one subquadratic input + +Every LP function has order at most two. Thus it suffices for either the LP +symbol or the LP target to have order strictly below two; the other input has +no supplied growth hypothesis. Convergence is justified by reciprocal exponents. +-/ + +public section + +namespace RealRooted + +/-- A strict order bound below two leaves room for a reciprocal exponent +strictly above two on the other input. -/ +private theorem exists_reciprocal_exponents_lt_two {ρ : ℝ} (hρ : ρ < 2) : + ∃ p q : ℝ, 0 < p ∧ ρ < p ∧ 2 < q ∧ 1 < p⁻¹ + q⁻¹ := by + let p := (max ρ 0 + 2) / 2 + have hp : 0 < p := by dsimp [p]; linarith [le_max_right ρ 0] + have hpρ : ρ < p := by dsimp [p]; linarith [le_max_left ρ 0] + have hp2 : p < 2 := by dsimp [p]; have h := max_lt hρ (by norm_num : (0 : ℝ) < 2); linarith + have hq : 0 < 4 - p := by linarith + refine ⟨p, 4 - p, hp, hpρ, by linarith, ?_⟩ + have heq : p⁻¹ + (4 - p)⁻¹ = (p + (4 - p)) / (p * (4 - p)) := by + field_simp + ring + rw [heq, lt_div_iff₀ (mul_pos hp hq)] + nlinarith [sq_pos_of_pos (sub_pos.mpr hp2)] + +/-- Any LP target is preserved by an LP differential symbol of order below +two. No separate growth bound is required for the target. -/ +theorem IsLaguerrePolya.infiniteDifferentialApply_of_left_order {φ f : ℂ → ℂ} + (hφ : IsLaguerrePolya φ) (hf : IsLaguerrePolya f) {ρ : ℝ} + (horder : TauCeti.OrderLE φ ρ) (hρ : ρ < 2) : + IsLaguerrePolya (Complex.infiniteDifferentialApply φ f) := by + obtain ⟨p, q, hp, hρp, hq, hsum⟩ := exists_reciprocal_exponents_lt_two hρ + exact hφ.infiniteDifferentialApply_of_order hf horder hp hρp hf.orderLE_two + (lt_trans (by norm_num) hq) hq hsum + +/-- Every LP symbol acts on every LP target of order below two by an LP +entire differential sum. No separate growth bound is required for the symbol. -/ +theorem IsLaguerrePolya.infiniteDifferentialApply_of_right_order {φ f : ℂ → ℂ} + (hφ : IsLaguerrePolya φ) (hf : IsLaguerrePolya f) {ρ : ℝ} + (horder : TauCeti.OrderLE f ρ) (hρ : ρ < 2) : + IsLaguerrePolya (Complex.infiniteDifferentialApply φ f) := by + obtain ⟨p, q, hp, hρp, hq, hsum⟩ := exists_reciprocal_exponents_lt_two hρ + exact hφ.infiniteDifferentialApply_of_order hf hφ.orderLE_two (lt_trans (by norm_num) hq) hq + horder hp hρp (by simpa only [add_comm] using hsum) + +end RealRooted diff --git a/RealRooted/RiemannHypothesis/EntireDifferential.lean b/RealRooted/RiemannHypothesis/EntireDifferential.lean new file mode 100644 index 000000000..84234cbc5 --- /dev/null +++ b/RealRooted/RiemannHypothesis/EntireDifferential.lean @@ -0,0 +1,43 @@ +module + +public import RealRooted.RiemannHypothesis +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Basic +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialEntire +import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.IteratedDerivative +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.Derivative + +/-! +# RH-conditional xi operators on the full LP class + +Under Mathlib's RH, every xi derivative is a convergent infinite differential +symbol preserving the entire LP class. Every LP symbol likewise acts on every +xi derivative with an LP entire result. Neither application needs a supplied +growth bound on the other LP input. +-/ + +public section + +open Complex + +namespace RealRooted + +/-- Under RH, every xi derivative acts as a convergent differential symbol +on every LP entire target, without an additional target growth hypothesis. -/ +theorem IsLaguerrePolya.riemannXiTheta_differential {f : ℂ → ℂ} + (hf : IsLaguerrePolya f) (hRH : RiemannHypothesis) (n : ℕ) : + IsLaguerrePolya (infiniteDifferentialApply (iteratedDeriv n riemannXiTheta) f) := by + have hφ := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iteratedDeriv n + exact hφ.infiniteDifferentialApply_of_left_order hf + (orderLE_half_riemannXiTheta.iteratedDeriv differentiable_riemannXiTheta n) (by norm_num) + +/-- Under RH, every LP symbol acts on every xi derivative by a convergent +infinite differential series whose entire sum is LP. -/ +theorem IsLaguerrePolya.differential_riemannXiTheta {φ : ℂ → ℂ} + (hφ : IsLaguerrePolya φ) (hRH : RiemannHypothesis) (n : ℕ) : + IsLaguerrePolya (infiniteDifferentialApply φ (iteratedDeriv n riemannXiTheta)) := by + have hf := (riemannHypothesis_iff_isLaguerrePolya_riemannXiTheta.mp hRH).iteratedDeriv n + exact hφ.infiniteDifferentialApply_of_right_order hf + (orderLE_half_riemannXiTheta.iteratedDeriv differentiable_riemannXiTheta n) (by norm_num) + +end RealRooted From 83ea3b3b399789cb4fd4ccd5164f5f9d82f550d4 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 17:42:32 +0000 Subject: [PATCH 55/56] feat: complete local LP differential criteria and strict moment infrastructure --- RealRooted.lean | 25 +++++ .../Complex/GrowthOrder/CauchyBound.lean | 5 +- .../GrowthOrder/ExponentialPowerBound.lean | 1 - .../InfiniteDifferential/OrderBound.lean | 7 +- .../OrderConvergence.lean | 1 - .../Analysis/Convex/LogDerivative.lean | 4 +- .../Normed/Group/LocallyBoundedMajorant.lean | 4 +- .../MeasureTheory/Integral/Hankel.lean | 87 +++++++++++++++ RealRooted/Production.lean | 26 +++++ .../RiemannHypothesis/EntireDifferential.lean | 3 +- scripts/import_architecture.json | 4 +- scripts/mathlib_shims.json | 100 ++++++++++++++++++ 12 files changed, 250 insertions(+), 17 deletions(-) create mode 100644 RealRooted/Mathlib/MeasureTheory/Integral/Hankel.lean diff --git a/RealRooted.lean b/RealRooted.lean index 30ccd0367..4dfc7416c 100644 --- a/RealRooted.lean +++ b/RealRooted.lean @@ -2609,3 +2609,28 @@ public import RealRooted.RiemannHypothesis.Arithmetic public import RealRooted.RiemannHypothesis.HeatOperatorCriterion public import RealRooted.RiemannHypothesis.InfiniteDifferential public import RealRooted.RiemannHypothesis.MomentMeasureUnique +public import RealRooted.BorceaBranden.Transcendental.RealCoefficientBounds +public import RealRooted.LaguerreInequalities.LocalDerivativeBounds +public import RealRooted.LaguerreInequalities.LogConcavity +public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.CauchyBound +public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.ExponentialPowerBound +public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.OfBound +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderBound +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderConvergence +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderDerivative +public import RealRooted.Mathlib.Analysis.Convex.LogDerivative +public import RealRooted.Mathlib.Analysis.Normed.Group.LocallyBoundedMajorant +public import RealRooted.Mathlib.MeasureTheory.Integral.Hankel +public import RealRooted.Mathlib.RingTheory.Polynomial.Pochhammer.ReciprocalConvolution +public import RealRooted.MultiplierSequence.BinomialConvolution +public import RealRooted.MultiplierSequence.FactorialRatio +public import RealRooted.MultiplierSequence.GammaConvolution +public import RealRooted.MultiplierSequence.PochhammerConvolution +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GrowthOrder +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialEntire +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialLocal +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialOrder +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PointwiseLimit +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.UniformDerivativeBounds +public import RealRooted.RiemannHypothesis.EntireDifferential +public import RealRooted.RiemannHypothesis.LocalDifferentialSeries diff --git a/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/CauchyBound.lean b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/CauchyBound.lean index 9cb30d08c..20ababa8b 100644 --- a/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/CauchyBound.lean +++ b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/CauchyBound.lean @@ -5,9 +5,8 @@ Authors: The RealRooted contributors -/ module -public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.ExponentialPowerBound -public import Mathlib.Analysis.Calculus.IteratedDeriv.Defs -import Mathlib.Analysis.Complex.Liouville +public import TauCeti.Analysis.Complex.GrowthOrder +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.ExponentialPowerBound /-! # Cauchy derivative estimates above the growth order diff --git a/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/ExponentialPowerBound.lean b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/ExponentialPowerBound.lean index f11523c20..29351cc55 100644 --- a/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/ExponentialPowerBound.lean +++ b/RealRooted/Mathlib/Analysis/Complex/GrowthOrder/ExponentialPowerBound.lean @@ -6,7 +6,6 @@ Authors: The RealRooted contributors module public import TauCeti.Analysis.Complex.GrowthOrder -import Mathlib.Analysis.Normed.Group.Bounded /-! # Global exponential power bounds above the growth order diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderBound.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderBound.lean index f68d6641e..5b62b61b7 100644 --- a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderBound.lean +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderBound.lean @@ -5,11 +5,8 @@ Authors: The RealRooted contributors -/ module -public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.CauchyBound -import Mathlib.Analysis.Normed.Group.InfiniteSum -import Mathlib.Analysis.SpecificLimits.Normed -import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics -import Mathlib.Data.Nat.Factorial.Basic +public import TauCeti.Analysis.Complex.GrowthOrder +import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.CauchyBound /-! # Reciprocal-order bounds for infinite differential series diff --git a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderConvergence.lean b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderConvergence.lean index 77a4a35f6..1fecd6b30 100644 --- a/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderConvergence.lean +++ b/RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderConvergence.lean @@ -7,7 +7,6 @@ module public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Basic import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderBound -import Mathlib.Analysis.Normed.Group.FunctionSeries /-! # Differential-series convergence under reciprocal growth bounds diff --git a/RealRooted/Mathlib/Analysis/Convex/LogDerivative.lean b/RealRooted/Mathlib/Analysis/Convex/LogDerivative.lean index 0894f1125..4d8a539a6 100644 --- a/RealRooted/Mathlib/Analysis/Convex/LogDerivative.lean +++ b/RealRooted/Mathlib/Analysis/Convex/LogDerivative.lean @@ -1,7 +1,7 @@ /- -Copyright (c) 2026 Per Alexandersson. All rights reserved. +Copyright (c) 2026 The RealRooted contributors. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. -Authors: Per Alexandersson +Authors: The RealRooted contributors -/ module diff --git a/RealRooted/Mathlib/Analysis/Normed/Group/LocallyBoundedMajorant.lean b/RealRooted/Mathlib/Analysis/Normed/Group/LocallyBoundedMajorant.lean index 445fa2090..488f3bc22 100644 --- a/RealRooted/Mathlib/Analysis/Normed/Group/LocallyBoundedMajorant.lean +++ b/RealRooted/Mathlib/Analysis/Normed/Group/LocallyBoundedMajorant.lean @@ -1,7 +1,7 @@ /- -Copyright (c) 2026 Per Alexandersson. All rights reserved. +Copyright (c) 2026 The RealRooted contributors. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. -Authors: Per Alexandersson +Authors: The RealRooted contributors -/ module diff --git a/RealRooted/Mathlib/MeasureTheory/Integral/Hankel.lean b/RealRooted/Mathlib/MeasureTheory/Integral/Hankel.lean new file mode 100644 index 000000000..ae1e612c3 --- /dev/null +++ b/RealRooted/Mathlib/MeasureTheory/Integral/Hankel.lean @@ -0,0 +1,87 @@ +/- +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.LinearAlgebra.Matrix.PosDef +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +import Mathlib.Algebra.Polynomial.OfFn +import TauCeti.MeasureTheory.Function.PolynomialMemLp + +/-! +# Strict positivity of Hankel moment matrices + +A nonnegative measure with all polynomial moments and infinitely many +positive atoms gives positive definite Hankel matrices at every natural shift. +A nonzero polynomial cannot vanish at all those atoms, so its weighted square +has strictly positive integral. +-/ + +public section + +open MeasureTheory Polynomial + +namespace MeasureTheory + +private theorem integral_weighted_eval_sq_pos + {mu : Measure ℝ} (hmom : ∀ k : ℕ, Integrable (fun x : ℝ => x ^ k) mu) + (hpos : ∀ᵐ x ∂mu, 0 ≤ x) + (hinf : Set.Infinite {x : ℝ | 0 < x ∧ 0 < mu {x}}) + {p : ℝ[X]} (hp : p ≠ 0) (r : ℕ) : + 0 < ∫ x : ℝ, x ^ r * p.eval x ^ 2 ∂mu := by + have hint : Integrable (fun x : ℝ => x ^ r * p.eval x ^ 2) mu := by + have h := TauCeti.integrable_eval_of_forall_integrable_pow hmom (X ^ r * p ^ 2) + apply h.congr + filter_upwards [] with x + simp only [Polynomial.eval_mul, Polynomial.eval_pow, Polynomial.eval_X] + apply (integral_pos_iff_support_of_nonneg_ae + (hpos.mono fun x hx => mul_nonneg (pow_nonneg hx r) (sq_nonneg _)) hint).mpr + obtain ⟨x, hx, hpx⟩ := (hinf.sdiff (finite_setOfPred_isRoot hp)).nonempty + have hpne : p.eval x ≠ 0 := hpx + have hxmem : x ∈ Function.support (fun x : ℝ => x ^ r * p.eval x ^ 2) := + mul_ne_zero (pow_ne_zero _ hx.1.ne') (pow_ne_zero _ hpne) + exact hx.2.trans_le (measure_mono (Set.singleton_subset_iff.mpr hxmem)) + +/-- Infinitely many positive atoms force strict positivity of every shifted +Hankel moment matrix, including the empty matrix and shift zero. -/ +theorem posDef_integral_pow_hankel_of_infinite_atoms + {mu : Measure ℝ} (hmom : ∀ k : ℕ, Integrable (fun x : ℝ => x ^ k) mu) + (hpos : ∀ᵐ x ∂mu, 0 ≤ x) + (hinf : Set.Infinite {x : ℝ | 0 < x ∧ 0 < mu {x}}) (n r : ℕ) : + Matrix.PosDef (fun i j : Fin n => ∫ x : ℝ, x ^ (i.val + j.val + r) ∂mu) := by + classical + apply Matrix.PosDef.of_dotProduct_mulVec_pos + · apply Matrix.IsHermitian.ext + intro i j + simp [Nat.add_comm] + · intro v hv + let p := Polynomial.ofFn n v + have hp : p ≠ 0 := by + intro hz + apply hv + apply Polynomial.injective_ofFn n + simpa only [map_zero] using hz + have heq (x : ℝ) : x ^ r * p.eval x ^ 2 = + ∑ i : Fin n, ∑ j : Fin n, v i * (x ^ (i.val + j.val + r) * v j) := by + simp only [p, Polynomial.ofFn_eq_sum_monomial, Polynomial.eval_finsetSum, + Polynomial.eval_monomial, + pow_two, pow_add, Finset.mul_sum, Finset.sum_mul] + apply Finset.sum_congr rfl + intro i _ + apply Finset.sum_congr rfl + intro j _ + ring + have hint (i j : Fin n) : Integrable + (fun x : ℝ => v i * (x ^ (i.val + j.val + r) * v j)) mu := + ((hmom _).mul_const _).const_mul _ + have hstrict := integral_weighted_eval_sq_pos hmom hpos hinf hp r + simp_rw [heq] at hstrict + rw [integral_finsetSum _ (fun i _ => integrable_finsetSum _ (fun j _ => hint i j))] at hstrict + simp_rw [integral_finsetSum _ (fun j _ => hint _ j), integral_const_mul, + integral_mul_const] at hstrict + simpa only [dotProduct, Matrix.mulVec, Pi.star_apply, star_trivial, + Finset.mul_sum] using hstrict + +end MeasureTheory diff --git a/RealRooted/Production.lean b/RealRooted/Production.lean index e0de93a8e..f5d40f86f 100644 --- a/RealRooted/Production.lean +++ b/RealRooted/Production.lean @@ -2543,6 +2543,32 @@ public import RealRooted.RiemannHypothesis.HeatOperatorCriterion public import RealRooted.RiemannHypothesis.InfiniteDifferential public import RealRooted.RiemannHypothesis.MomentMeasureUnique +public import RealRooted.BorceaBranden.Transcendental.RealCoefficientBounds +public import RealRooted.LaguerreInequalities.LocalDerivativeBounds +public import RealRooted.LaguerreInequalities.LogConcavity +public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.CauchyBound +public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.ExponentialPowerBound +public import RealRooted.Mathlib.Analysis.Complex.GrowthOrder.OfBound +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderBound +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderConvergence +public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.OrderDerivative +public import RealRooted.Mathlib.Analysis.Convex.LogDerivative +public import RealRooted.Mathlib.Analysis.Normed.Group.LocallyBoundedMajorant +public import RealRooted.Mathlib.MeasureTheory.Integral.Hankel +public import RealRooted.Mathlib.RingTheory.Polynomial.Pochhammer.ReciprocalConvolution +public import RealRooted.MultiplierSequence.BinomialConvolution +public import RealRooted.MultiplierSequence.FactorialRatio +public import RealRooted.MultiplierSequence.GammaConvolution +public import RealRooted.MultiplierSequence.PochhammerConvolution +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.GrowthOrder +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialEntire +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialLocal +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialOrder +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.PointwiseLimit +public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.UniformDerivativeBounds +public import RealRooted.RiemannHypothesis.EntireDifferential +public import RealRooted.RiemannHypothesis.LocalDifferentialSeries + /-! # RealRooted production umbrella diff --git a/RealRooted/RiemannHypothesis/EntireDifferential.lean b/RealRooted/RiemannHypothesis/EntireDifferential.lean index 84234cbc5..eefc21a2e 100644 --- a/RealRooted/RiemannHypothesis/EntireDifferential.lean +++ b/RealRooted/RiemannHypothesis/EntireDifferential.lean @@ -1,6 +1,7 @@ module -public import RealRooted.RiemannHypothesis +public import RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta +import RealRooted.RiemannHypothesis public import RealRooted.Mathlib.Analysis.Complex.InfiniteDifferential.Basic public import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya import RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferentialEntire diff --git a/scripts/import_architecture.json b/scripts/import_architecture.json index 780c38a22..c7cf432b1 100644 --- a/scripts/import_architecture.json +++ b/scripts/import_architecture.json @@ -16,10 +16,10 @@ ], "budgets": { "RealRooted": { - "max_modules": 2599 + "max_modules": 2624 }, "RealRooted.Production": { - "max_modules": 2527 + "max_modules": 2552 }, "RealRooted.Tactic.Examples": { "max_modules": 844 diff --git a/scripts/mathlib_shims.json b/scripts/mathlib_shims.json index 6eb409e75..3856fbd0a 100644 --- a/scripts/mathlib_shims.json +++ b/scripts/mathlib_shims.json @@ -4229,6 +4229,106 @@ ], "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/GrowthOrder/CauchyBound.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.GrowthOrder.CauchyBound" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/GrowthOrder/ExponentialPowerBound.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.GrowthOrder.ExponentialPowerBound" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/GrowthOrder/OfBound.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.GrowthOrder.OfBound" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderBound.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.InfiniteDifferential.OrderBound" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderConvergence.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.InfiniteDifferential.OrderConvergence" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Complex/InfiniteDifferential/OrderDerivative.lean" + ], + "modules": [ + "Mathlib.Analysis.Complex.InfiniteDifferential.OrderDerivative" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Convex/LogDerivative.lean" + ], + "modules": [ + "Mathlib.Analysis.Convex.LogDerivative" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/Analysis/Normed/Group/LocallyBoundedMajorant.lean" + ], + "modules": [ + "Mathlib.Analysis.Normed.Group.LocallyBoundedMajorant" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/MeasureTheory/Integral/Hankel.lean" + ], + "modules": [ + "Mathlib.MeasureTheory.Integral.Hankel" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true + }, + { + "sources": [ + "RealRooted/Mathlib/RingTheory/Polynomial/Pochhammer/ReciprocalConvolution.lean" + ], + "modules": [ + "Mathlib.RingTheory.Polynomial.Pochhammer.ReciprocalConvolution" + ], + "note": "General analytic, polynomial or measure infrastructure for real-rooted entire-function theory; no upstream PR yet.", + "speculative": true } ] } From fcd34341ce1fe3978cbcc3142e8b4f7ce8eee289 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:58:43 +0000 Subject: [PATCH 56/56] docs: refresh lemma index after RH theory additions --- docs/WORKHORSES.md | 152 ++++++++++++++++++++++----------------------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/docs/WORKHORSES.md b/docs/WORKHORSES.md index 9eb9a8782..3ca3f8bfc 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` | | +| 104 | `RealRooted.StrictInterl.toInterlaces` | `RealRooted.Basic.ProperPosition` | | +| 66 | `RealRooted.StrictInterl.toInterl` | `RealRooted.Basic.ProperPosition` | | +| 50 | `RealRooted.interl_zero_left` | `RealRooted.Basic.ProperPosition` | | | 46 | `RealRooted.interlaces_one_linear` | `RealRooted.Linear` | | +| 45 | `RealRooted.derivative_interlaces_of_natDegree_ne_zero` | `RealRooted.Derivative.Interlacing` | **Derivative interlacing**: the derivative of a nonconstant real-rooted polynomial `f` interlaces `f`. | | 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`. | | 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_left_of_nonneg` | `RealRooted.Basic.ProperPosition` | Multiplying the left polynomial in a zero-aware interlacing relation by a nonnegative scalar preserves the relation. | | 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. | | 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,31 +135,31 @@ 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. | +| 83 | `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. | -| 27 | `RealRooted.isPFPolynomial_X_add_C` | `RealRooted.PFPolynomial` | The polynomial `X + C a` is PF when `a` is nonnegative. | -| 21 | `RealRooted.IsPFPolynomial.of_C_nonneg` | `RealRooted.PFPolynomial` | A nonnegative constant polynomial is PF. | -| 15 | `RealRooted.IsPFPolynomial.of_coeff_tendsto` | `RealRooted.PFPolynomial.Closure` | Coefficientwise limits of Pólya-frequency polynomials are Pólya-frequency. | -| 14 | `RealRooted.isPFPolynomial_X_pow` | `RealRooted.PFPolynomial` | Every natural power of `X` is PF. | +| 42 | `RealRooted.IsPFPolynomial.zero` | `RealRooted.PFPolynomial` | The zero polynomial is PF. | +| 33 | `RealRooted.IsPFPolynomial.one` | `RealRooted.PFPolynomial` | The constant polynomial `1` is PF. | +| 28 | `RealRooted.isPFPolynomial_X_add_C` | `RealRooted.PFPolynomial` | The polynomial `X + C a` is PF when `a` is nonnegative. | +| 22 | `RealRooted.IsPFPolynomial.of_C_nonneg` | `RealRooted.PFPolynomial` | A nonnegative constant polynomial is PF. | +| 16 | `RealRooted.IsPFPolynomial.of_coeff_tendsto` | `RealRooted.PFPolynomial.Closure` | Coefficientwise limits of Pólya-frequency polynomials are Pólya-frequency. | +| 15 | `RealRooted.IsPFPolynomial.to_sequence` | `RealRooted.PFPolynomial` | The coefficient sequence of a PF polynomial is a Pólya-frequency sequence. | +| 15 | `RealRooted.isPFPolynomial_X_pow` | `RealRooted.PFPolynomial` | Every natural power of `X` is PF. | | 11 | `RealRooted.IsPFPolynomial.reciprocalShift` | `RealRooted.PFPolynomial` | Shifted reciprocals preserve the PF cone when the shift bounds the degree. | -| 11 | `RealRooted.IsPFPolynomial.to_sequence` | `RealRooted.PFPolynomial` | The coefficient sequence of a PF polynomial is a Pólya-frequency sequence. | | 11 | `RealRooted.IsPolyaFreqSeq.natCauchyConvolution` | `RealRooted.PolyaFrequencyConvolution.Basic` | Pólya-frequency sequences are closed under Cauchy convolution. | +| 10 | `RealRooted.isPFPolynomial_jensenPolynomial_of_PFMultiplierSequence` | `RealRooted.MultiplierSequence.Infinite` | Every Jensen polynomial of a PF multiplier sequence is PF. | | 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.isPFMultiplierSequence_iff_jensenPolynomial_isPF` | `RealRooted.MultiplierSequence.PolyaSchur` | A sequence preserves the polynomial PF cone in every degree exactly when all of its Jensen polynomials are 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. | +| 6 | `RealRooted.IsPolyaFreqSeq.of_tendsto` | `RealRooted.PFPolynomial.Closure` | Pointwise limits of Pólya-frequency sequences are Pólya-frequency. | | 5 | `Matrix.IsTotallyNonneg.isPFPolynomial_det_map_add_X_smul_checkerboard` | `RealRooted.TotallyNonnegPencil.Checkerboard` | A totally nonnegative constant matrix with positive determinant and a checkerboard-signed totally nonnegative variable matrix give a PF determinant. | | 5 | `RealRooted.BrandenVecchi.finiteSupersymmetricCoeff_isPolyaFreqSeq` | `RealRooted.BrandenVecchi.SupersymmetricCoefficients` | Finite supersymmetric product coefficients are Pólya-frequency for nonnegative parameters. | | 5 | `RealRooted.IsPolyaFreqSeq.prefix_zeros` | `RealRooted.AissenSchoenbergWhitney` | Inserting a finite prefix of zeroes preserves the Pólya-frequency property. | -| 5 | `RealRooted.isPFMultiplierSequence_iff_jensenPolynomial_isPF` | `RealRooted.MultiplierSequence.PolyaSchur` | A sequence preserves the polynomial PF cone in every degree exactly when all of its Jensen polynomials are PF. | -| 5 | `RealRooted.isPFPolynomial_X` | `RealRooted.PFPolynomial` | The polynomial `X` is PF. | ## Stable @@ -221,32 +221,32 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 13 | `RealRooted.isRealRooted_X_mul` | `RealRooted.Linear` | | | 13 | `RealRooted.isRealRooted_of_deg_zero` | `RealRooted.Linear` | | | 13 | `RealRooted.quadraticPoly_not_splits_of_discrim_neg` | `RealRooted.QuadraticRoot` | A real quadratic polynomial with nonzero leading coefficient and negative discriminant does not split over `ℝ`. | +| 12 | `Polynomial.eq_zero_or_splits_of_tendsto_eval_of_natDegree_le` | `RealRooted.Mathlib.Analysis.Complex.Polynomial.ClosedRoots.Real` | Pointwise limits of real splitting polynomials with uniformly bounded degree are zero or split. | +| 12 | `Polynomial.splits_reflect_iff` | `RealRooted.Mathlib.Algebra.Polynomial.Reverse` | At a valid degree bound, reflection preserves and reflects splitting. | | 11 | `Polynomial.Splits.reverse` | `RealRooted.Mathlib.Algebra.Polynomial.Reverse` | Reversal preserves splitting over a field. | +| 11 | `RealRooted.IsLaguerrePolya.jensenPolynomial_splits` | `RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen` | Every Jensen polynomial of the Taylor data of a Laguerre–Pólya function splits. | | 11 | `RealRooted.isRealRooted_mul` | `RealRooted.Basic.PolynomialFacts` | The product of two real-rooted polynomials is real-rooted. | | 11 | `RealRooted.splits_of_natDegree_eq_two_of_discrim_nonneg` | `RealRooted.QuadraticRoot` | A degree-two real polynomial with nonnegative discriminant splits. | -| 10 | `Polynomial.eq_zero_or_splits_of_tendsto_eval_of_natDegree_le` | `RealRooted.Mathlib.Analysis.Complex.Polynomial.ClosedRoots.Real` | Pointwise limits of real splitting polynomials with uniformly bounded degree are zero or split. | +| 10 | `RealRooted.HermitePoulain.applyAsDifferentialOperator_eq_zero_or_splits` | `RealRooted.Hermite.Poulain` | Hermite--Poulain theorem target, zero-aware because a differential operator can annihilate a lower-degree polynomial. | | 10 | `RealRooted.PosComboRealRooted.isRealRooted_add_right` | `RealRooted.ObreschkoffContinuity` | If `f` and `g` satisfy positive-combination real-rootedness and `μ > 0`, then `f + C μ * g` is nonzero and splits. | | 10 | `RealRooted.isRealRooted_of_strictInterl_chain_from_step` | `RealRooted.SequenceClosure` | A consecutive `StrictInterl` chain gives rowwise nonzero real-rootedness, using the first step as the base certificate. | -| 9 | `RealRooted.rootPolynomial_splits` | `RealRooted.RootPolynomial` | `rootPolynomial s` splits over the reals. | -| 8 | `RealRooted.PosComboRealRooted.isRealRooted_left_of_sameDegree` | `RealRooted.ObreschkoffContinuity` | Equal-degree positive-combination real-rootedness implies `f` is real-rooted (without monicity assumptions). | -| 8 | `RealRooted.quadraticPoly_splits_of_discrim_nonneg` | `RealRooted.QuadraticRoot` | A real quadratic polynomial with nonzero leading coefficient and nonnegative discriminant splits over `ℝ`. | ## roots | uses | theorem | module | doc | |---:|---|---|---| | 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` | | +| 46 | `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. | | 12 | `IsCoprime.not_isRoot_right` | `RealRooted.Basic.PolynomialFacts` | Coprime polynomials cannot vanish at the same point. | | 10 | `RealRooted.SimpleNegRooted.darbouxOperator` | `RealRooted.EulerOperator.Darboux.NegativeRoots` | **Darboux step.** If `a > 0` and `deg f < b`, then `D_{a,-b}(f) = x (1 - x) f' + (a + b x) f` keeps the invariant in degree `deg f + 1` and strictly interlaces with `f`, with no common root. | | 8 | `Polynomial.roots_mem_of_tendsto_eval_of_natDegree_le` | `RealRooted.Mathlib.Analysis.Complex.Polynomial.ClosedRoots` | Roots of a limit polynomial stay in any closed set that contains the roots along a sequence of uniformly bounded degree, provided evaluations converge pointwise. | +| 8 | `Polynomial.roots_reverse_eq_map_inv` | `RealRooted.Mathlib.Algebra.Polynomial.Reverse` | If `p` splits over a field and `p 0 ≠ 0`, the roots of `p.reverse` are the inverses of the roots of `p`, retaining multiplicity. | | 8 | `RealRooted.StrictInterl.roots_sum_le_of_sameDegree` | `RealRooted.Basic.ProperPosition` | In the same-degree case, `StrictInterl f g` orders the sums of the roots. | -| 7 | `Polynomial.roots_reverse_eq_map_inv` | `RealRooted.Mathlib.Algebra.Polynomial.Reverse` | If `p` splits over a field and `p 0 ≠ 0`, the roots of `p.reverse` are the inverses of the roots of `p`, retaining multiplicity. | | 7 | `RealRooted.HasSimpleRoots.roots_count_eq_one` | `RealRooted.SimpleRoots` | At a simple real root the root multiset carries exactly one copy. | | 7 | `RealRooted.Polynomial.exists_strictMono_roots` | `RealRooted.Bezoutian.RootEvaluation` | | | 7 | `RealRooted.exists_root_upper_bound` | `RealRooted.Basic.PolynomialFacts` | Every polynomial has an upper bound for its roots. | @@ -267,16 +267,16 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g |---:|---|---|---| | 87 | `RealRooted.hasNonnegCoeffs_C_mul` | `RealRooted.Basic.Coefficients` | | | 56 | `RealRooted.hasNonnegCoeffs_one` | `RealRooted.Basic.Coefficients` | | -| 52 | `RealRooted.hasNonnegCoeffs_C` | `RealRooted.Basic.Coefficients` | | +| 54 | `RealRooted.HasNonnegCoeffs.basisTransform` | `RealRooted.BasisTransform` | A basis transform preserves coefficientwise nonnegativity when every basis element has nonnegative coefficients. | +| 53 | `RealRooted.hasNonnegCoeffs_C` | `RealRooted.Basic.Coefficients` | | | 50 | `RealRooted.hasNonnegCoeffs_X` | `RealRooted.Basic.Coefficients` | | -| 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. | +| 36 | `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` | | -| 16 | `MvPolynomial.HasNonnegCoeffs.uniqueAlgEquiv` | `RealRooted.Basic.Coefficients.Multivariate` | The unique-variable equivalence preserves coefficientwise nonnegativity. | +| 18 | `MvPolynomial.HasNonnegCoeffs.uniqueAlgEquiv` | `RealRooted.Basic.Coefficients.Multivariate` | The unique-variable equivalence preserves coefficientwise nonnegativity. | | 16 | `RealRooted.HasNonnegCoeffs.bidiagonalOperator` | `RealRooted.MultiplierSequence.Bidiagonal` | Nonnegative bidiagonal entries preserve coefficient nonnegativity. | | 14 | `RealRooted.hasPosLeadingCoeff_one` | `RealRooted.Basic.Coefficients` | | | 12 | `RealRooted.HasNonnegCoeffs.homogenize` | `RealRooted.Basic.Coefficients.Multivariate` | Homogenization preserves coefficientwise nonnegativity. | @@ -296,27 +296,27 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | uses | theorem | module | doc | |---:|---|---|---| | 33 | `RealRooted.SatisfiesFavardRecurrence.natDegree_eq` | `RealRooted.Favard.Recurrence` | Every member of a Favard family has natural degree equal to its index. | +| 29 | `RealRooted.natDegree_jensenPolynomial_le` | `RealRooted.MultiplierSequence` | | | 20 | `RealRooted.StrictInterl.natDegree_eq_or_eq_succ` | `RealRooted.Basic.ProperPosition` | Proper position forces equal natural degrees or a one-degree increase. | | 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` | | +| 11 | `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`. | +| 11 | `RealRooted.natDegree_diagonalOperator_le` | `RealRooted.MultiplierSequence` | | | 10 | `RealRooted.natDegree_mul_iterate_derivative_le` | `RealRooted.DerivativeRecurrence.Degree` | | | 10 | `RealRooted.rootSeqDesc_length` | `RealRooted.CommonInterleaver.RootDesc` | | | 9 | `Polynomial.natDegree_shiftedJacobi` | `RealRooted.Mathlib.RingTheory.Polynomial.Jacobi` | For Jacobi parameters greater than `-1`, `shiftedJacobi n α β` has degree exactly `n`. | | 9 | `RealRooted.natDegree_schurSzegoComp_le` | `RealRooted.Hadamard.Basic` | | +| 8 | `Polynomial.rootMultiplicity_le_natDegree` | `RealRooted.Mathlib.Algebra.Polynomial.Roots` | A root multiplicity is at most the degree of its polynomial. | | 7 | `MvPolynomial.degreeOf_uniqueAlgEquiv_symm` | `RealRooted.Mathlib.Algebra.MvPolynomial.Equiv` | The degree in the unique variable after converting a univariate polynomial to an `MvPolynomial` is its natural degree. | | 7 | `Polynomial.Splits.length_eq_natDegree_of_coe_eq_roots` | `RealRooted.Mathlib.Algebra.Polynomial.Splits` | The length of a list representing all roots of a splitting polynomial is its natural degree. | -| 7 | `Polynomial.rootMultiplicity_le_natDegree` | `RealRooted.Mathlib.Algebra.Polynomial.Roots` | A root multiplicity is at most the degree of its polynomial. | +| 7 | `RealRooted.IsPFPolynomial.exists_X_sub_C_factor_of_pos_natDegree` | `RealRooted.PFPolynomial` | A positive-degree PF polynomial has a nonpositive linear root factor whose quotient is again PF and has smaller degree. | | 7 | `RealRooted.LiuOppositeSigns.natDegree_deleteRootFactor` | `RealRooted.LiuOppositeSigns.RootCount` | | | 7 | `RealRooted.StrictInterl.natDegree_le_succ` | `RealRooted.Basic.ProperPosition` | The right endpoint in `StrictInterl f g` has degree at most one more than the left endpoint. | | 7 | `RealRooted.natDegree_gammaTransform_le` | `RealRooted.GammaTransform.Basic` | | | 7 | `RealRooted.natDegree_narayanaPolynomial` | `RealRooted.NarayanaTransformation.Recurrences.Identities` | | | 7 | `RealRooted.natDegree_touchard` | `RealRooted.CombinatorialExamples.Touchard` | | | 6 | `Polynomial.natDegree_shiftedJacobiMonic` | `RealRooted.Mathlib.RingTheory.Polynomial.Jacobi` | The monic shifted Jacobi polynomial has its indexed degree. | -| 6 | `RealRooted.IsPFPolynomial.exists_X_sub_C_factor_of_pos_natDegree` | `RealRooted.PFPolynomial` | A positive-degree PF polynomial has a nonpositive linear root factor whose quotient is again PF and has smaller degree. | | 6 | `RealRooted.degree_sub_c₀_mul_lt` | `RealRooted.Interlacing.Residue` | | | 6 | `RealRooted.generalizedEulerian_natDegree` | `RealRooted.GeneralizedEulerian` | Degree of a generalized Eulerian polynomial, for every real parameter. | | 6 | `RealRooted.natDegree_iterate_derivative_eq_sub` | `RealRooted.ObreschkoffConverse.DegreeGap` | Exact degree bookkeeping for iterated derivatives. | @@ -355,19 +355,19 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | uses | theorem | module | doc | |---:|---|---|---| -| 26 | `RealRooted.coeff_diagonalOperator` | `RealRooted.MultiplierSequence` | | +| 39 | `RealRooted.coeff_jensenPolynomial` | `RealRooted.MultiplierSequence` | | +| 28 | `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` | | -| 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` | | +| 20 | `Polynomial.coeff_comp_neg_X` | `RealRooted.Mathlib.Algebra.Polynomial.Degree.Lemmas` | The coefficients of `p.comp (-X)` are those of `p` with alternating signs. | +| 17 | `RealRooted.coeff_theta` | `RealRooted.EulerOperator` | | | 14 | `RealRooted.coeff_narayanaPolynomial_of_le` | `RealRooted.NarayanaTransformation.Coefficients` | | | 12 | `RealRooted.coeff_schurSzegoComp_of_le` | `RealRooted.Hadamard.Basic` | | | 11 | `Polynomial.coeff_quadratic_derivative_add_linear_mul_succ` | `RealRooted.Mathlib.Algebra.Polynomial.Derivative` | The coefficient at `k + 1` after multiplying `p'` by a quadratic with no constant term and `p` by a linear polynomial. | | 10 | `RealRooted.coeff_oddEvenPolynomial_even` | `RealRooted.HermiteBiehler.OddEven` | | | 10 | `RealRooted.coeff_thetaPlusOne` | `RealRooted.EulerOperator` | | +| 9 | `Polynomial.continuous_coeff_comp_X_add_C` | `RealRooted.Mathlib.Topology.Algebra.Polynomial` | Every coefficient of a translated real polynomial varies continuously with the translation parameter. | | 9 | `RealRooted.coeff_narayanaPolynomial_of_lt` | `RealRooted.NarayanaTransformation.Coefficients` | | | 8 | `Polynomial.coeff_shiftedJacobi` | `RealRooted.Mathlib.RingTheory.Polynomial.Jacobi` | The coefficient formula for the shifted Jacobi polynomial. | -| 8 | `Polynomial.continuous_coeff_comp_X_add_C` | `RealRooted.Mathlib.Topology.Algebra.Polynomial` | Every coefficient of a translated real polynomial varies continuously with the translation parameter. | | 8 | `RealRooted.coeff_polarTheta` | `RealRooted.EulerOperator` | | | 8 | `RealRooted.coeff_schurSzegoComp` | `RealRooted.Hadamard.Basic` | | | 7 | `Polynomial.coeff_basisTransform` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | | @@ -379,19 +379,20 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 7 | `RealRooted.coeff_oddEvenPolynomial_odd` | `RealRooted.HermiteBiehler.OddEven` | | | 7 | `RealRooted.coeff_schurSzegoComp_eq_zero_of_lt` | `RealRooted.Hadamard.Basic` | | | 7 | `RealRooted.routhCoefficient_mul_coeff_zero` | `RealRooted.ClassicalHurwitzMatrix.Routh` | | -| 6 | `RealRooted.BorceaBranden.coeff_coordinateDiagonalOperator` | `RealRooted.BorceaBranden.Applications.CoordinatePFMultiplier` | | +| 6 | `Polynomial.coeff_generalizedLaguerre` | `RealRooted.Mathlib.RingTheory.Polynomial.Laguerre.Basic` | Coefficients of the monic sign-reversed generalized Laguerre family. | ## eval | 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. | +| 456 | `RealRooted.EffectiveBKW.IntPoly2.eval_mul` | `RealRooted.EffectiveBKW.Certificate.ListPoly` | Evaluation commutes with bivariate multiplication. | +| 295 | `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` | | +| 14 | `RealRooted.eval_pos_of_hasNonnegCoeffs` | `RealRooted.Basic.Coefficients` | A nonzero polynomial with nonnegative coefficients is strictly positive at every strictly positive real argument. | | 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`. | | 13 | `RealRooted.eval_complexify_ne_zero_of_splits_of_im_pos` | `RealRooted.HermiteBiehler.Basic` | A nonzero split real polynomial has no root in the open upper half-plane. | -| 13 | `RealRooted.eval_pos_of_hasNonnegCoeffs` | `RealRooted.Basic.Coefficients` | A nonzero polynomial with nonnegative coefficients is strictly positive at every strictly positive real argument. | +| 11 | `RealRooted.isPFMultiplierSequence_inv_ascPochhammer` | `RealRooted.MultiplierSequence.InvPochhammer` | **The reciprocal rising factorials `1 / (α)_k`, for `α > 0`, form a PF multiplier sequence.** | | 10 | `RealRooted.eval_hermiteBiehlerPolynomial` | `RealRooted.HermiteBiehler.Basic` | | | 10 | `RealRooted.wronskian_eval_nonneg_of_strictInterl` | `RealRooted.Wronskian.WeakForward` | Interlacing with positive leading coefficients gives global nonnegativity of the oriented Wronskian. | | 9 | `RealRooted.eval_derivative_ne_zero_of_rootMultiplicity_eq_one` | `RealRooted.Derivative.Algebra` | The derivative does not vanish at a root of multiplicity one. | @@ -405,11 +406,10 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 7 | `RealRooted.deriv2_mul_lt_deriv_sq_at_non_root` | `RealRooted.IteratedDerivativeShift` | | | 7 | `RealRooted.eval_neg_of_all_roots_gt_of_odd` | `RealRooted.WagnerRightSum.Sign` | | | 7 | `RealRooted.eval_pos_of_all_roots_gt_of_even` | `RealRooted.WagnerRightSum.Sign` | | -| 7 | `RealRooted.isPFMultiplierSequence_inv_ascPochhammer` | `RealRooted.MultiplierSequence.InvPochhammer` | **The reciprocal rising factorials `1 / (α)_k`, for `α > 0`, form a PF multiplier sequence.** | +| 6 | `Polynomial.iteratedDeriv_fun_eval` | `RealRooted.Mathlib.Analysis.Complex.PolynomialLimitCoeff` | The `k`-th iterated derivative of a polynomial function is the polynomial function of the `k`-th iterated formal derivative. | | 6 | `RealRooted.EffectiveBKW.Branch.check_sound` | `RealRooted.EffectiveBKW.Certificate.Branch` | A checked branch is continuous, lies on the curve, and stays inside every covering strip. | | 6 | `RealRooted.eval_complexify_oddEvenPolynomial` | `RealRooted.HermiteBiehler.OddEven` | | | 6 | `RealRooted.eval_complexify_ofReal` | `RealRooted.HermiteBiehler.Converse.Wronskian` | Value of a complexified real polynomial at a real point. | -| 6 | `RealRooted.exists_left_endpoint_sign` | `RealRooted.RootCounting.SignChanges` | A positive-leading degree-`d` polynomial has the sign `(-1)^d` sufficiently far to the left. | ## recurrence @@ -432,13 +432,14 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 6 | `RealRooted.touchard_succ` | `RealRooted.Touchard` | | | 5 | `RealRooted.EulerBidiagonal.generalStep_eq_second_derivative` | `RealRooted.EulerBidiagonal.QuadraticEulerStep` | Differential form of the general Euler step. | | 5 | `RealRooted.brandenE_mul_X_add_C` | `RealRooted.Transforms.BrandenE.Basic` | Affine-factor form of `brandenE_X_mul`. | +| 4 | `Polynomial.basisTransform_mul_X_add_C_of_succ_derivative` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | The affine factor version of `basisTransform_X_mul_of_succ_derivative`. | | 4 | `Polynomial.taylor_iterate_derivative` | `RealRooted.Mathlib.Algebra.Polynomial.Taylor` | The Taylor shift commutes with iterated derivatives. | | 4 | `RealRooted.GeneralizedSnakePosets.FiniteSkewBoard.rookPolynomial_eq_nonNestingPlacements_sum` | `RealRooted.GeneralizedSnakePosets.FiniteBoard` | The rook polynomial as a sum over the named finite set of non-nesting placements. | +| 4 | `RealRooted.HermitePoulain.applyAsDifferentialOperator_X_add_C` | `RealRooted.Hermite.Poulain` | | | 4 | `RealRooted.IntervalDifferential.zigzagOperator_apply` | `RealRooted.IntervalDifferential.Basic` | | | 4 | `RealRooted.complexify_iterate_derivative` | `RealRooted.HermiteBiehler.Basic` | Complexification commutes with iterated derivatives. | | 4 | `RealRooted.thetaPlusOne_eq_derivative_X_mul` | `RealRooted.EulerOperator` | | | 3 | `Polynomial.basisTransform_X_mul_of_succ_derivative` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | A basis transform transports multiplication by `X` to a first-order differential operator when its basis satisfies the corresponding successor recurrence. | -| 3 | `Polynomial.basisTransform_mul_X_add_C_of_succ_derivative` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | The affine factor version of `basisTransform_X_mul_of_succ_derivative`. | | 3 | `PowerSeries.subst_binomialSeries_neg_ode` | `RealRooted.Mathlib.RingTheory.PowerSeries.BinomialDerivative` | Substituting `H-1` into the negative binomial series gives a solution of the formal negative-power differential equation. | | 3 | `PowerSeries.two_mul_mul_derivative_sqrt` | `RealRooted.Mathlib.RingTheory.PowerSeries.Sqrt` | The linear differential equation `2 f (sqrt f)' = f' sqrt f`. | | 3 | `RealRooted.Poisson.starC_X_right` | `RealRooted.BorceaBranden.Applications.UnivariatePoissonStar` | Applying `starC` to `X` gives the first-order Euler pencil `X * (f + c f')`. | @@ -448,7 +449,6 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 3 | `RealRooted.brandenE_X_mul` | `RealRooted.Transforms.BrandenE.Basic` | Multiplication by `X` before `brandenE` becomes the Euler differential operator afterwards. | | 3 | `RealRooted.eulerOperator_eq_diagonalOperator_natCast` | `RealRooted.MultiplierSequence` | The Euler operator `X d/dX` acts diagonally with multiplier `k`. | | 3 | `RealRooted.gammaOperator_apply` | `RealRooted.GammaPencil.Basic` | | -| 3 | `RealRooted.isNonnegLinearForm_X` | `RealRooted.RowThreshold` | | ## nonvanishing @@ -456,11 +456,12 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g |---:|---|---|---| | 23 | `RealRooted.add_ne_zero_of_hasNonnegCoeffs_of_right_ne_zero` | `RealRooted.Basic.Coefficients` | A finite sum of nonnegative-coefficient polynomials cannot vanish if one of the summands is already nonzero. | | 20 | `Nat.cast_choose_ne_zero` | `RealRooted.Mathlib.Data.Nat.Choose.Cast` | A binomial coefficient remains nonzero after casting to a characteristic-zero target. | +| 9 | `RealRooted.tDeriv_ne_zero` | `RealRooted.IteratedDerivativeShift` | T_ε of a nonzero polynomial with degree ≥ 1 is nonzero. | | 8 | `RealRooted.iterateTDeriv_ne_zero` | `RealRooted.IteratedDerivativeShift` | Iterating a derivative shift preserves nonzeroness. | -| 8 | `RealRooted.tDeriv_ne_zero` | `RealRooted.IteratedDerivativeShift` | T_ε of a nonzero polynomial with degree ≥ 1 is nonzero. | | 7 | `RealRooted.LiuOppositeSigns.OppositeLeadingSigns.left_ne_zero` | `RealRooted.LiuOppositeSigns.RootCount` | | | 6 | `RealRooted.Graph.weightedIndepPolyOn_ne_zero` | `RealRooted.Graph.IndependencePolynomial.Basic` | Weighted support-restricted independence polynomials are nonzero. | | 6 | `RealRooted.derivProduct_ne_zero` | `RealRooted.DerivativeProduct.Basic` | A derivative product of nonzero polynomials is nonzero (quadratic weight, nonnegative data). | +| 6 | `iteratedDeriv_riemannXiTheta_zero_ne_zero` | `RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Derivative` | Positivity of the xi Taylor data excludes vanishing at zero for every derivative. | | 5 | `Nat.cast_ne_zero_of_pos` | `RealRooted.Mathlib.Data.Nat.Cast.Basic` | A positive natural number remains nonzero after casting to a characteristic-zero target. | | 5 | `RealRooted.DegreeDropReversal.reverse_ne_zero_of_coeff_zero_ne` | `RealRooted.DegreeDropReversal` | A polynomial with nonzero constant coefficient has nonzero reversal. | | 5 | `RealRooted.LiuOppositeSigns.OppositeLeadingSigns.right_ne_zero` | `RealRooted.LiuOppositeSigns.RootCount` | | @@ -469,6 +470,7 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 5 | `RealRooted.narayanaPolynomial_ne_zero` | `RealRooted.NarayanaTransformation.Recurrences.Identities` | | | 5 | `RealRooted.right_ne_zero_of_strictInterl` | `RealRooted.SequenceClosure` | Project right-argument nonvanishing from a `StrictInterl` certificate. | | 5 | `RealRooted.rootPolynomial_ne_zero` | `RealRooted.RootPolynomial` | `rootPolynomial s` is nonzero. | +| 5 | `riemannXiTheta_zero_ne_zero` | `RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta` | In particular, the constant coefficient of the square-variable xi function is nonzero. | | 4 | `Pi.ne_zero_of_pos` | `RealRooted.Mathlib.LinearAlgebra.Matrix.PerronFrobenius.PrimitivityCriteria` | A strictly positive dependent function on a nonempty type is nonzero. | | 4 | `Polynomial.mobiusTransform_ne_zero` | `RealRooted.Mathlib.Algebra.Polynomial.MobiusTransform` | If `a d - b c` is a unit, the transform of a nonzero polynomial of degree at most `n` is nonzero. | | 4 | `RealRooted.GeneralizedSnakePosets.modifiedNarayanaPolynomial_ne_zero` | `RealRooted.GeneralizedSnakePosets.Narayana.Modified` | Modified Narayana polynomials are nonzero. | @@ -477,15 +479,13 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 3 | `Matrix.exists_ordered_minor_ne_zero_of_mulVec_injective` | `RealRooted.Mathlib.LinearAlgebra.Matrix.Determinant.CauchyBinet` | Full column rank gives a nonzero maximal minor on strictly increasing rows. | | 3 | `RealRooted.CommonInterleaver.rootSeqDesc_reverse_ne_nil_of_natDegree_pos` | `RealRooted.CommonInterleaver.RootDesc` | | | 3 | `RealRooted.IntervalDifferential.zigzagTransform_ne_zero` | `RealRooted.IntervalDifferential.Degree` | The centered zigzag transform of a nonzero polynomial is nonzero. | -| 3 | `RealRooted.IsStrictlyHurwitzStable.C` | `RealRooted.ClassicalHurwitzMatrix.Stability` | | -| 3 | `RealRooted.LiuOppositeSigns.IsLargestRoot.deleteRootFactor_ne_zero` | `RealRooted.LiuOppositeSigns.RootDeletion` | | ## inequality | uses | theorem | module | doc | |---:|---|---|---| | 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. | +| 23 | `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. | | 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,9 +494,12 @@ 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.IsLaguerrePolya.comp_affine_real` | `RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya` | Precomposition by a real affine map preserves the zero-aware Laguerre--Pólya class. | | 9 | `RealRooted.TuranHurwitz.rising_pos` | `RealRooted.TuranHurwitz.RisingConvolution` | Rising factorials are strictly positive for positive starting value. | +| 9 | `RealRooted.taylorDifferentialOperator_X_pow` | `RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Jensen` | Applying a Taylor differential operator to a monomial gives the reflected Jensen polynomial of its Taylor data. | +| 9 | `riemannXiCoeff_pos` | `RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Positivity` | Every normalized xi coefficient is strictly positive, without assuming RH. | +| 8 | `Nat.tendsto_descFactorial_div_pow_atTop` | `RealRooted.Mathlib.Analysis.SpecialFunctions.Choose` | For fixed `k`, `n.descFactorial k / n^k` tends to `1`. | | 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. | | 8 | `RealRooted.JacobiDeformation.risingFactorial_pos` | `RealRooted.JacobiDeformation.Pochhammer` | | | 7 | `ParkingFunction.isParkingFunction_iff_prefix` | `RealRooted.Mathlib.Combinatorics.Enumerative.ParkingFunction` | The finite-indexed predicate is equivalent to the usual bounded-natural formulation used by the existing parking-function modules. | @@ -506,66 +509,63 @@ Counts are lexical estimates: distinctive leaves count unqualified references; g | 7 | `RealRooted.listInterlaces_all_le_getLast` | `RealRooted.Basic.RootLists` | | | 7 | `RealRooted.rootSeqDesc_pairwise` | `RealRooted.CommonInterleaver.RootDesc` | | | 6 | `Matrix.IsTP2.minor_nonneg` | `RealRooted.MatrixInterlacing.TotallyNonnegative` | | -| 6 | `Multiset.exists_pos_lt_and_two_mul_le_abs_sub_toFinset` | `RealRooted.RootMultiplicityMatching` | Choose a positive radius, smaller than a prescribed one, whose doubled balls around distinct values of a finite real multiset are disjoint. | -| 6 | `Nat.tendsto_descFactorial_div_pow_atTop` | `RealRooted.Mathlib.Analysis.SpecialFunctions.Choose` | For fixed `k`, `n.descFactorial k / n^k` tends to `1`. | -| 6 | `Polynomial.shiftedJacobiSubdiag_pos` | `RealRooted.Mathlib.RingTheory.Polynomial.Jacobi` | The subdiagonal coefficient in the monic shifted-Jacobi recurrence is strictly positive in every positive degree when both parameters exceed `-1`. | ## equation | uses | theorem | module | doc | |---:|---|---|---| | 23 | `Polynomial.basisTransform_smul` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | | +| 22 | `Complex.ofReal_re_iteratedDeriv_zero` | `RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star` | The Taylor data at zero of a conjugation-invariant function are real. | +| 22 | `Polynomial.basisTransform_add` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | | | 21 | `RealRooted.weightedSum_cons` | `RealRooted.WeightedSum` | | -| 20 | `Polynomial.basisTransform_add` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | | +| 15 | `Polynomial.basisTransform_monomial` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | | | 14 | `Polynomial.basisTransform_X_pow` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | | -| 14 | `Polynomial.basisTransform_monomial` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | | -| 10 | `Polynomial.basisTransform_C` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | | -| 9 | `Polynomial.basisTransform_C_mul_X_pow` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | A scalar monomial is sent to the corresponding scalar basis element. | +| 11 | `Polynomial.basisTransform_C` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | | +| 11 | `Polynomial.basisTransform_C_mul_X_pow` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | A scalar monomial is sent to the corresponding scalar basis element. | +| 11 | `RealRooted.IsLaguerrePolya.im_eq_zero_of_eq_zero` | `RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Zeros` | A nonzero Laguerre--Pólya limit has only real complex zeros. | | 9 | `RealRooted.gammaTransform_add` | `RealRooted.GammaTransform.Basic` | | +| 9 | `RealRooted.hermiteHomogeneous_add_two` | `RealRooted.Hermite.Homogeneous` | The homogeneous Hermite three-term recurrence. | | 9 | `RealRooted.sequence_eq_of_same_lag_two_recurrence` | `RealRooted.Recurrence.Uniqueness` | Two sequences with the same first two values and lag-two recurrence agree. | | 8 | `Polynomial.X_sub_one_mul_chowS` | `RealRooted.Mathlib.Algebra.Polynomial.Chow` | The defining quotient for `chowS` is exact at every reflection bound at least the degree of the input. | +| 8 | `Polynomial.basisTransform_finset_sum` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | A basis transform distributes over a finite polynomial sum. | | 8 | `RealRooted.BigDescents321.SmallCases.ofList_cons` | `RealRooted.CombinatorialExamples.BigDescents321.SmallCases.ListPoly` | | | 8 | `RealRooted.brandenE_X_pow` | `RealRooted.Transforms.BrandenE.Basic` | | | 8 | `RealRooted.gammaTransform_X_mul_two` | `RealRooted.GammaTransform.Basic` | | +| 8 | `RealRooted.jensenPolynomial_eq_diagonalOperator_X_add_one_pow` | `RealRooted.MultiplierSequence` | The Jensen polynomial of `gamma` is the image of `(X + 1) ^ n` under the diagonal operator attached to `gamma`. | | 8 | `RealRooted.schurSzegoComp_comm` | `RealRooted.Hadamard.Basic` | | | 8 | `RealRooted.weightedSum_ofFn` | `RealRooted.WeightedSum` | Finite-function form of `weightedSum_eq_sum_map`. | | 7 | `Complex.Contour.windingNumber_eq_integral_of_avoidance` | `RealRooted.Mathlib.Analysis.Complex.Contour.Winding.Number.Basic` | If `γ` is continuous on `[a, b]`, avoids `z₀` there, and the index integrand is interval-integrable, the generalized winding number is the ordinary index integral: the principal value collapses to `(2 | +| 7 | `Complex.iteratedDeriv_conj` | `RealRooted.Mathlib.Analysis.Calculus.IteratedDeriv.Star` | Every iterated derivative of a function respecting conjugation respects conjugation. | | 7 | `MvPolynomial.diagonal_mul` | `RealRooted.Mathlib.Algebra.MvPolynomial.Diagonal` | | -| 7 | `Polynomial.basisTransform_finset_sum` | `RealRooted.Mathlib.Algebra.Polynomial.BasisTransform` | A basis transform distributes over a finite polynomial sum. | | 7 | `Polynomial.momentPairingBilinForm_apply` | `RealRooted.Mathlib.Algebra.Polynomial.Moment` | | -| 7 | `RealRooted.BigDescents321.SmallCases.ofList_nil` | `RealRooted.CombinatorialExamples.BigDescents321.SmallCases.ListPoly` | | -| 7 | `RealRooted.CenteredEulerian.constantCoeff_cosS` | `RealRooted.CenteredEulerian.SeriesBasic` | | -| 7 | `RealRooted.CenteredEulerian.constantCoeff_sinS` | `RealRooted.CenteredEulerian.SeriesBasic` | | -| 7 | `RealRooted.CenteredEulerian.cosS_mul_secS` | `RealRooted.CenteredEulerian.SeriesBasic` | | -| 7 | `RealRooted.exists_index_eq_of_mem_roots` | `RealRooted.Bezoutian.WronskianConverse` | | -| 7 | `RealRooted.gammaTransform_C_mul` | `RealRooted.GammaTransform.Basic` | | +| 7 | `Polynomial.reflect_finset_sum_C_mul` | `RealRooted.Mathlib.Algebra.Polynomial.Chow` | Reflection distributes through a finite sum with constant scalar coefficients. | ## other | uses | theorem | module | doc | |---:|---|---|---| | 45 | `RealRooted.StrictInterl.hasSimpleRoots_of_no_common_root` | `RealRooted.SimpleRoots` | A strictly interlacing pair with no common real root has simple real roots in both entries. | -| 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. | +| 35 | `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). | +| 24 | `RealRooted.HasSimpleRoots.of_roots_nodup` | `RealRooted.SimpleRoots` | A nonzero polynomial with a duplicate-free root multiset has simple real roots. | +| 17 | `RealRooted.MapsRealRootedIn.mono_left` | `RealRooted.RootLocation.Basic` | Shrinking the source set preserves `MapsRealRootedIn`. | | 16 | `RealRooted.IsRealRootedIn.mem_of_mem_roots` | `RealRooted.RootLocation.Basic` | Every multiset root of a polynomial rooted in `S` lies in `S`. | | 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. | +| 15 | `RealRooted.hasSimpleRoots_of_natDegree_le_one` | `RealRooted.SimpleRoots` | Every nonzero polynomial of degree at most one has only simple roots. | +| 13 | `RealRooted.isUpperHalfPlaneStable_complexify_of_splits` | `RealRooted.HermiteBiehler.Basic` | A nonzero split real polynomial has stable complexification. | +| 13 | `differentiable_riemannXiTheta` | `RealRooted.Mathlib.NumberTheory.LSeries.RiemannXi.Theta` | The square-variable expansion of xi is entire. | | 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. | +| 12 | `RealRooted.IsLaguerrePolya.analyticOnNhd` | `RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.Derivative` | A zero-aware Laguerre--Pólya limit is analytic on the whole complex plane. | +| 12 | `RealRooted.IsLaguerrePolya.heatOperator` | `RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.HeatOperator` | The entire backward heat operator preserves the LP class at every nonnegative real time for inputs of growth order strictly below two. | | 11 | `RealRooted.shiftedJacobiMonic_satisfiesFavardRecurrence` | `RealRooted.Jacobi.Favard` | The monic shifted Jacobi family satisfies the Favard recurrence with its explicit diagonal and subdiagonal coefficients. | | 10 | `MvPolynomial.IsRayleigh.specializeAtList` | `RealRooted.Multiaffine.Rayleigh` | Iterated real scalar specialization preserves the Rayleigh property. | | 10 | `RealRooted.PosComboRealRooted.comm` | `RealRooted.ObreschkoffContinuity` | Positive-combination real-rootedness is symmetric in the two polynomials. | | 9 | `Complex.Contour.intervalIntegrable_inv_sub_mul_deriv` | `RealRooted.Mathlib.Analysis.Complex.Contour.Winding.Number.Basic` | **Integrability of the index integrand for a point off the curve.** If `γ` is continuous on `Set.uIcc a b` and avoids `w` there (so `(γ · - w)⁻¹` is continuous) and `deriv γ` is interval-integrable, t | +| 9 | `Polynomial.natDegree_and_leadingCoeff_quadratic_derivative_add_linear_mul_add` | `RealRooted.Mathlib.Algebra.Polynomial.Derivative` | A nonzero prospective top coefficient gives both the exact degree and leading coefficient of a quadratic-derivative plus linear-multiple step. | | 9 | `RealRooted.AllComboRealRooted.linear_recombination` | `RealRooted.AllCombo` | `AllComboRealRooted` is preserved by any linear change of coordinates in the `(f, g)`-plane. | +| 9 | `RealRooted.IsLaguerrePolya.infiniteDifferentialApply` | `RealRooted.MultiplierSequence.PolyaSchur.LaguerrePolya.InfiniteDifferential` | The actual infinite differential image of two LP entire inputs of order below two is again LP, including the identically zero result. | | 9 | `RealRooted.hermiteBiehlerForwardPos` | `RealRooted.HermiteBiehler.Forward` | | | 8 | `MvPolynomial.IsMultiaffine.sum` | `RealRooted.Multiaffine` | | | 8 | `RealRooted.IsRealRootedIn.mem_of_isRoot` | `RealRooted.RootLocation.Basic` | Every root of a polynomial rooted in `S` lies in `S`. | | 8 | `RealRooted.StrictInterl.hasSimpleRoots_of_isCoprime` | `RealRooted.SimpleRoots` | A coprime strictly interlacing pair has simple real roots in both entries. | | 8 | `RealRooted.mvRealStableOrZero_iff_complexifyMv` | `RealRooted.MultivariateStability` | Weak real stability agrees with weak upper-half-plane stability after complexifying coefficients. | | 8 | `RealRooted.sequence_of_base_and_step` | `RealRooted.SequenceClosure` | Generic sequence induction from one base case and a successor step. | -| 7 | `Matrix.IsTotallyNonneg.hurwitzLeadingPrincipal` | `RealRooted.ClassicalHurwitzMatrix.TotallyNonnegative` | Every finite leading principal section inherits total nonnegativity from the infinite classical Hurwitz matrix. | -| 7 | `Matrix.isTotallyNonneg_lowerBidiagonalFin` | `RealRooted.Mathlib.LinearAlgebra.Matrix.TotallyNonneg.Bidiagonal` | Leading finite truncations of variable lower-bidiagonal totally nonnegative matrices are totally nonnegative. | -| 7 | `MvPolynomial.IsMultiaffine.esymm` | `RealRooted.Multiaffine` | | -| 7 | `ParkingFunction.mem_parkingFunctions_iff` | `RealRooted.Mathlib.Combinatorics.Enumerative.ParkingFunction` | Membership in `parkingFunctions` is the parking-function predicate. | -| 7 | `Polynomial.MeshGE.of_natDegree_le_one` | `RealRooted.Mesh.Basic` | A polynomial of degree at most one has mesh at least every nonnegative number. |