Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
939061d
feat: add xi positivity and Hermite RH criterion
sqrt-of-2 Nov 21, 2026
6ece78a
feat: add generalized xi criteria and total positivity
sqrt-of-2 Nov 22, 2026
165af65
feat: characterize RH by total positivity of xi coefficients
sqrt-of-2 Nov 22, 2026
12171e3
feat: prove the full Laguerre Jensen criterion for RH
sqrt-of-2 Nov 22, 2026
5ac5c34
feat: include zero prefixes in the entire PF characterization
sqrt-of-2 Nov 22, 2026
c64e02d
feat: characterize RH by generalized Laguerre inequalities
sqrt-of-2 Nov 22, 2026
8ea34ad
feat: prove fixed-shift xi criteria and derivative propagation
sqrt-of-2 Nov 22, 2026
49ebeab
feat: sharpen xi growth and expand Jensen products
sqrt-of-2 Nov 22, 2026
4c37c11
feat: prove simple roots of RH Hermite polynomials
sqrt-of-2 Nov 22, 2026
8680937
feat: prove iterated xi coefficient log-concavity
sqrt-of-2 Nov 22, 2026
4fb8fd7
feat: add RH Hermite companions and interlacing
sqrt-of-2 Nov 22, 2026
e6d99e7
feat: prove multiplicity descent for differential symbols
sqrt-of-2 Nov 22, 2026
a0e7a29
feat: add a fixed-auxiliary Laguerre counterexample
sqrt-of-2 Nov 22, 2026
2dfeebc
feat: integrate Hermite companions and auxiliary criteria
sqrt-of-2 Nov 22, 2026
fc16870
feat: prove simple roots of ordinary RH Jensen polynomials
sqrt-of-2 Nov 22, 2026
3c125a4
feat: derive a supported Nevanlinna measure from Laguerre inequalities
sqrt-of-2 Nov 22, 2026
84dc921
feat: recover atoms from Nevanlinna boundary limits
sqrt-of-2 Nov 22, 2026
486a5a1
feat: prove raw xi Turan inequalities and positive LP criteria
sqrt-of-2 Nov 22, 2026
1803b04
feat: recover summable zero multiplicities from Laguerre inequalities
sqrt-of-2 Nov 22, 2026
4183f9e
feat: prove unrestricted LP root division and strict Jensen cases
sqrt-of-2 Nov 22, 2026
559d30c
feat: integrate atomic Laguerre representations and strict Jensen cri…
sqrt-of-2 Nov 22, 2026
ea71e14
feat: classify zero-free Laguerre functions and indexed products
sqrt-of-2 Nov 22, 2026
3b3d1bd
feat: prove Gaussian strictness and finite LP zero extraction
sqrt-of-2 Nov 22, 2026
be1ac72
feat: prove full LP strictness and simple Jensen criterion
sqrt-of-2 Nov 22, 2026
8ec7575
feat: prove the unrestricted generalized Laguerre criterion
sqrt-of-2 Nov 22, 2026
75ca20d
feat: complete generalized Laguerre criterion and add xi moment inequ…
sqrt-of-2 Nov 22, 2026
3b1f8d1
feat: classify exceptional exponential Jensen factors and multiplicities
sqrt-of-2 Nov 22, 2026
444f7eb
feat: prove Jensen separation and audit the sign hypothesis
sqrt-of-2 Nov 22, 2026
3d890f4
feat: prove the genus one star auxiliary Jensen criterion
sqrt-of-2 Nov 22, 2026
a67d6ec
feat: derive signed xi difference obstruction under RH
sqrt-of-2 Nov 22, 2026
8583607
feat: classify strict Laguerre equality and differential multiplicity
sqrt-of-2 Nov 22, 2026
65a92c5
feat: extend polynomial differential operators to entire Laguerre Pol…
sqrt-of-2 Nov 22, 2026
805220d
feat: prove entire differential multiplicity descent
sqrt-of-2 Nov 22, 2026
64c9545
feat: derive entire Laguerre Polya convergence from formal Jensen spl…
sqrt-of-2 Nov 22, 2026
c1255a1
feat: integrate generalized Jensen criteria and analytic moment posit…
sqrt-of-2 Nov 22, 2026
b08825e
feat: prove simple zeros for local Laguerre Polya heat flows
sqrt-of-2 Nov 22, 2026
38d9b80
feat: establish entire heat series convergence below order two
sqrt-of-2 Nov 22, 2026
073a55e
feat: prove the coefficientwise infinite differential operator theorem
sqrt-of-2 Nov 22, 2026
11470ec
feat: bound positive root loss under Euler products
sqrt-of-2 Nov 22, 2026
568a4eb
feat: prove entire heat equations and nonzero outputs
sqrt-of-2 Nov 22, 2026
9e27d98
feat: split finite arithmetic polar approximants
sqrt-of-2 Nov 22, 2026
3d2eff3
feat: prove simple real zeros for entire negative heat transforms
sqrt-of-2 Nov 22, 2026
cce1a4e
feat: add moment measures and entire heat-flow preservation
sqrt-of-2 Nov 22, 2026
d515467
feat: control local limits of Laguerre Polya functions
sqrt-of-2 Nov 22, 2026
755594e
feat: separate vanishing and nonzero local Laguerre Polya limits
sqrt-of-2 Nov 22, 2026
4d6898c
feat: prove composition and inverses for entire heat operators
sqrt-of-2 Nov 22, 2026
aa3d5c1
feat: characterize RH through arbitrarily small positive heat times
sqrt-of-2 Nov 22, 2026
7ca1ae4
feat: preserve arithmetic xi sections under RH
sqrt-of-2 Nov 22, 2026
f30d138
feat: prove entire infinite differential convergence and LP preservation
sqrt-of-2 Nov 22, 2026
f519bb8
feat: add unique xi moment measures and arithmetic closure
sqrt-of-2 Nov 22, 2026
2499d67
feat: prove the local pointwise infinite differential operator theorem
sqrt-of-2 Nov 22, 2026
7c51ab6
feat: extend infinite differential operators to reciprocal growth orders
sqrt-of-2 Nov 22, 2026
c8ba24f
feat: prove Gamma convolution and factorial ratio multipliers
sqrt-of-2 Nov 22, 2026
edfd6a1
feat: extend RH xi differential operators to every LP entire function
sqrt-of-2 Nov 22, 2026
83ea3b3
feat: complete local LP differential criteria and strict moment infra…
sqrt-of-2 Nov 22, 2026
505f742
feat: prove reciprocal Gamma sampling for real steps
sqrt-of-2 Nov 22, 2026
37126d0
feat: preserve target growth order under infinite differential operators
sqrt-of-2 Nov 22, 2026
2dd2553
chore: integrate upstream for validated RH theory
sqrt-of-2 Nov 22, 2026
22ba558
chore: update validated RH theory with upstream main
sqrt-of-2 Nov 22, 2026
8e15781
chore: update xi Hermite criteria with upstream main
sqrt-of-2 Nov 22, 2026
fcd3434
docs: refresh lemma index after RH theory additions
sqrt-of-2 Nov 22, 2026
04248fa
docs: refresh lemma index after xi Hermite additions
sqrt-of-2 Nov 22, 2026
14ae48a
chore: integrate validated RH theory for continued development
sqrt-of-2 Nov 22, 2026
7f393c7
chore: recover pending RH operator and Gamma extensions
sqrt-of-2 Nov 22, 2026
c10bb2f
feat: advance RH operators and prime-counting foundations
sqrt-of-2 Nov 22, 2026
00c032c
feat: prove RH contour-line and zero-window bounds
sqrt-of-2 Nov 22, 2026
fe7ae54
feat: prove RH good heights and Perron integrability
sqrt-of-2 Nov 22, 2026
1e655f4
feat: prove RH contour and zero-series estimates
sqrt-of-2 Nov 22, 2026
8d89475
feat: derive Chebyshev error bounds from the Riemann hypothesis
sqrt-of-2 Nov 22, 2026
4581fb2
feat: prove RH prime-window moments and polynomial perturbation bounds
sqrt-of-2 Nov 22, 2026
13a0f64
feat: prove RH prime-window polynomial and root convergence
sqrt-of-2 Nov 22, 2026
4980bc1
feat: prove Gaussian quadrature exactness and weight perturbation bounds
sqrt-of-2 Nov 22, 2026
7dcd250
feat: derive positive prime-window Gaussian rules and rates under RH
sqrt-of-2 Nov 22, 2026
8ac4784
feat: prove RH cross-window interlacing and simple polynomial pencils
sqrt-of-2 Nov 22, 2026
5dd234e
feat: bound Jacobi-weighted prime moments under RH
sqrt-of-2 Nov 22, 2026
a8ad57d
feat: prove RH Jacobi prime polynomial and root error rates
sqrt-of-2 Nov 22, 2026
a0644f3
feat: prove RH Jacobi prime quadrature convergence and rates
sqrt-of-2 Nov 23, 2026
3078503
feat: recover analytic germs from signed moment data
sqrt-of-2 Nov 23, 2026
ba0a13b
feat: prove the RH logarithmic-derivative moment criterion
sqrt-of-2 Nov 23, 2026
6811323
feat: recover integer zero multiplicities from moment measures
sqrt-of-2 Nov 23, 2026
6352895
feat: prove the normalized Type-I logarithmic moment criterion
sqrt-of-2 Nov 23, 2026
568010c
feat: prove complete monotonicity of weighted logarithmic derivatives
sqrt-of-2 Nov 23, 2026
71c12ea
feat: reconstruct sorted zero products from logarithmic moments
sqrt-of-2 Nov 23, 2026
189dff4
feat: extend Bessel real-rootedness and prove the quartic Laguerre in…
sqrt-of-2 Nov 23, 2026
57fc0f2
feat: represent logarithmic derivatives by heat-trace Laplace moments
sqrt-of-2 Nov 23, 2026
a74919b
feat: remove exponential factors below growth order one
sqrt-of-2 Nov 23, 2026
7a139f6
feat: identify native zero heat traces with logarithmic derivatives
sqrt-of-2 Nov 23, 2026
6de4dca
feat: prove unconditional zero heat-trace estimates
sqrt-of-2 Nov 23, 2026
1894de0
feat: account for origin zeros in logarithmic heat identities
sqrt-of-2 Nov 23, 2026
83da210
feat: remove origin restrictions from Type-I logarithmic criteria
sqrt-of-2 Nov 23, 2026
8264534
feat: formalize literal logarithm and real-series RH criteria
sqrt-of-2 Nov 23, 2026
de348a9
feat: prove weighted heat and Laguerre integral identities
sqrt-of-2 Nov 23, 2026
b46a9b0
feat: derive native heat identities from real-series hypotheses
sqrt-of-2 Nov 23, 2026
ce0d887
feat: classify all real regularized Bessel parameters
sqrt-of-2 Nov 23, 2026
8220af3
feat: prove total positivity of higher-even auxiliary coefficients
sqrt-of-2 Nov 23, 2026
238331d
feat: prove fixed-auxiliary real-zero and RH criteria
sqrt-of-2 Nov 23, 2026
0ac039f
feat: establish compact differential simplicity and symbol composition
sqrt-of-2 Nov 23, 2026
6cb0d9d
feat: prove canonical-tail differential convergence and commutation
sqrt-of-2 Nov 23, 2026
b1e4909
feat: derive simple infinite differential images under RH
sqrt-of-2 Nov 23, 2026
a3a9374
feat: prove sharp Gaussian differential convergence and continuity
sqrt-of-2 Nov 23, 2026
54c5b51
feat: retain canonical Gaussian type in differential preservation
sqrt-of-2 Nov 23, 2026
67ff988
feat: prove Gaussian differential calculus and finite composition
sqrt-of-2 Nov 23, 2026
d296c29
feat: prove infinite factor composition for Gaussian differential images
sqrt-of-2 Nov 23, 2026
456b102
feat: prove canonical differential simplicity by sparse factorization
sqrt-of-2 Nov 23, 2026
aa54c22
feat: establish formal Stieltjes and Jacobi fraction calculus
sqrt-of-2 Nov 23, 2026
17545f4
feat: derive differential simplicity from native Laguerre Polya bounds
sqrt-of-2 Nov 23, 2026
1a68871
feat: construct spectral moment measures and prove moment limit closure
sqrt-of-2 Nov 23, 2026
842ea32
feat: construct moment measures from nonnegative Stieltjes fractions
sqrt-of-2 Nov 23, 2026
84b2f26
feat: derive orthogonal recurrences and Hankel norm factorizations
sqrt-of-2 Nov 23, 2026
ad25cde
feat: characterize RH by positive Stieltjes continued fractions
sqrt-of-2 Nov 23, 2026
6a64f28
feat: prove Stieltjes support and finite norm boundary results
sqrt-of-2 Nov 23, 2026
065665f
feat: prove the complete formal Stieltjes moment criterion
sqrt-of-2 Nov 23, 2026
5f169f9
feat: characterize Type-I functions by Stieltjes fractions
sqrt-of-2 Nov 23, 2026
c6fb85a
feat: localize Hankel determinant identities to finite prefixes
sqrt-of-2 Nov 23, 2026
dc8f701
feat: prove moment translation and orthogonal polynomial parity
sqrt-of-2 Nov 23, 2026
a8e70b8
feat: translate Jacobi fractions and characterize active prefixes
sqrt-of-2 Nov 23, 2026
f40f348
feat: characterize moment measures with a lower support bound
sqrt-of-2 Nov 23, 2026
952cbb1
feat: prove compactness of Stieltjes parameter intervals
sqrt-of-2 Nov 23, 2026
eb47d6f
feat: relate Stieltjes moments to symmetric measures
sqrt-of-2 Nov 23, 2026
0a247bd
feat: recover active Jacobi fraction coefficients
sqrt-of-2 Nov 23, 2026
27a2889
feat: bound Stieltjes coefficients and extract Wall parameters
sqrt-of-2 Nov 23, 2026
bbd6e02
feat: prove sharp support for Wall chain moments
sqrt-of-2 Nov 23, 2026
d9dae3d
feat: characterize RH by compact Wall chain fractions
sqrt-of-2 Nov 23, 2026
88e510c
feat: characterize Type-I functions by bounded Wall chains
sqrt-of-2 Nov 23, 2026
e517ee2
feat: prove the complementary Wall fraction identity
sqrt-of-2 Nov 23, 2026
af55131
feat: generalize the imaginary square-variable transformation
sqrt-of-2 Nov 23, 2026
4901c8f
feat: characterize PF polynomials by logarithmic moment gaps
sqrt-of-2 Nov 23, 2026
ee3d0bc
feat: develop formal differential operators on polynomials
sqrt-of-2 Nov 23, 2026
6326fdb
feat: invert polynomial convolution using reciprocal MGF germs
sqrt-of-2 Nov 23, 2026
306915e
feat: prove rescaled formal differential-operator limits
sqrt-of-2 Nov 23, 2026
01e02ae
feat: classify eventual real-rootedness of polynomial iterates
sqrt-of-2 Nov 23, 2026
9d6a5a7
feat: prove root clustering for rescaled operator iterates
sqrt-of-2 Nov 23, 2026
2f58e9f
feat: prove eventual nonreal roots for formal operator iterates
sqrt-of-2 Nov 23, 2026
b1546a9
feat: prove RH xi operators eventually give simple polynomial roots
sqrt-of-2 Nov 23, 2026
5c64603
feat: prove Type-I coefficient sections and Mittag-Leffler Jensen roots
sqrt-of-2 Nov 23, 2026
5fb3104
feat: prove generalized Hermite root geometry
sqrt-of-2 Nov 23, 2026
ad84aa8
feat: identify roots of exponential differential limits
sqrt-of-2 Nov 23, 2026
c8dd3cf
feat: characterize separability of exponential differential limits
sqrt-of-2 Nov 23, 2026
0f2ba07
feat: prove eventual separability of formal differential iterates
sqrt-of-2 Nov 23, 2026
414957e
feat: identify degree classes with eventually simple operator roots
sqrt-of-2 Nov 23, 2026
20bd57b
chore: sync validated RH theory with upstream main
sqrt-of-2 Nov 23, 2026
e47dade
feat: prove strict moment inequalities from log concavity
sqrt-of-2 Nov 23, 2026
4806d17
feat: construct the smooth xi Fourier kernel
sqrt-of-2 Nov 23, 2026
c067a5e
chore: sync validated RH theory with upstream main
sqrt-of-2 Nov 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
663 changes: 663 additions & 0 deletions RealRooted.lean

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions RealRooted/BasisTransform/Hermite.lean
Original file line number Diff line number Diff line change
@@ -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
15 changes: 1 addition & 14 deletions RealRooted/BorceaBranden/Transcendental/JensenMultiplier.lean
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module

public import RealRooted.Mathlib.Analysis.Complex.Polynomial.SzaszMultivariate
import RealRooted.BorceaBranden.Applications.CoordinatePFMultiplier
import RealRooted.MultiplierSequence.Geometric
public import RealRooted.MultivariateStability

/-!
Expand All @@ -23,20 +24,6 @@ noncomputable section

open Polynomial

private theorem isPFMultiplierSequence_pow {c : ℝ} (hc : 0 < c) :
IsPFMultiplierSequence (fun k => c ^ k) := by
rw [isPFMultiplierSequence_iff_preserves]
intro p hp
have hscaled := hp.comp_C_mul_X_add_C hc le_rfl
have heq : diagonalOperator (fun k => c ^ k) p =
p.comp (C c * X + C 0) := by
ext k
rw [coeff_diagonalOperator]
simp only [C_0, add_zero, Polynomial.comp_C_mul_X_coeff]
ring
rw [heq]
exact hscaled

private theorem isPFMultiplierSequence_normalizedDescFactorial (n : ℕ) :
IsPFMultiplierSequence
(fun k => (n.descFactorial k : ℝ) / (n : ℝ) ^ k) := by
Expand Down
79 changes: 79 additions & 0 deletions RealRooted/BorceaBranden/Transcendental/RealCoefficientBounds.lean
Original file line number Diff line number Diff line change
@@ -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
165 changes: 165 additions & 0 deletions RealRooted/BrandenLC/Sequence.lean
Original file line number Diff line number Diff line change
@@ -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
Loading
Loading