Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Real exponential sums with nnn terms and n−1n-1n−1 zeros: the coefficients alternate in sign

Proved
RealExpSum.sign_alternation_of_card_zeros

by shosonoda · Nov 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

descartes-rule-of-signsexponential-sumsinequalitiesreal-analysis

This is the extremal case of Descartes' rule of signs for real exponential sums (Dirichlet polynomials).

Let n≥1n\ge1n≥1, let λ0<λ1<⋯<λn−1\lambda_0<\lambda_1<\dots<\lambda_{n-1}λ0​<λ1​<⋯<λn−1​ be real numbers, and let c0,…,cn−1c_0,\dots,c_{n-1}c0​,…,cn−1​ be real numbers that are not all zero. Consider the exponential sum

f(t)=∑j=0n−1cj eλjt,t∈R.f(t)=\sum_{j=0}^{n-1}c_j\,e^{\lambda_jt},\qquad t\in\mathbb R .f(t)=j=0∑n−1​cj​eλj​t,t∈R.

Suppose that fff vanishes at n−1n-1n−1 distinct real points z1,…,zn−1z_1,\dots,z_{n-1}z1​,…,zn−1​. Then there is a sign ε∈{1,−1}\varepsilon\in\{1,-1\}ε∈{1,−1} such that

ε (−1)j cj>0for all 0≤j≤n−1,andε f(t)>0for all t<min⁡izi.\varepsilon\,(-1)^j\,c_j>0\quad\text{for all }0\le j\le n-1, \qquad\text{and}\qquad \varepsilon\,f(t)>0\quad\text{for all }t<\min_i z_i .ε(−1)jcj​>0for all 0≤j≤n−1,andεf(t)>0for all t<imin​zi​.

In particular no coefficient vanishes, consecutive coefficients have opposite signs, and to the left of its zeros fff has the sign of c0c_0c0​, the coefficient of the smallest exponent.

A nonzero exponential sum with nnn terms has at most n−1n-1n−1 real zeros, and the statement describes the sums that attain this bound. It determines the sign of such a sum on every interval between consecutive zeros, which is the input of comparison arguments for interpolating exponential sums, Müntz polynomials and other Chebyshev systems.

Formalization Note The zeros are given as a finite set ZZZ of real numbers with ∣Z∣+1=n|Z|+1=n∣Z∣+1=n on which fff vanishes; multiplicities are not used. The exponents are a strictly increasing family indexed by {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1}. For n=1n=1n=1 the set ZZZ is empty and the statement says that fff has the sign of c0c_0c0​ everywhere.

Preamble
import Mathlib
Formal statement
namespace RealExpSum

/-- **Exponential sums with the largest number of zeros: the coefficients alternate in sign.**
Let `lam 0 < lam 1 < ... < lam (n - 1)` be real exponents and `f(t) = Σ_j c_j e^{lam_j t}` a real
exponential sum whose coefficients are not all zero. If `f` vanishes at `n - 1` distinct real
points (the finite set `Z`), then there is a sign `ε = 1` or `ε = -1` such that
`ε (-1)^j c_j > 0` for every `j`, and `ε f(t) > 0` for every `t` to the left of all the zeros.

This is the extremal case of Descartes' rule of signs for Dirichlet polynomials (Laguerre):
G. J. O. Jameson, *Counting zeros of generalized polynomials: Descartes' rule of signs and
Laguerre's extensions*, Math. Gazette 90, no. 518 (2006), 223-234, Theorem 3.1.

**Formalization Note.** The zeros are a finite set `Z` of real numbers with `Z.card + 1 = n`;
multiplicities are not used. For `n = 1` the set `Z` is empty and `f` has the sign of `c 0`
everywhere. -/
theorem sign_alternation_of_card_zeros {n : ℕ} (lam c : Fin n → ℝ) (hlam : StrictMono lam)
    (hc : ∃ j, c j ≠ 0) (Z : Finset ℝ)
    (hZ : ∀ z ∈ Z, ∑ j, c j * Real.exp (lam j * z) = 0) (hcard : Z.card + 1 = n) :
    ∃ ε : ℝ, (ε = 1 ∨ ε = -1) ∧ (∀ j : Fin n, 0 < ε * (-1) ^ (j : ℕ) * c j) ∧
      ∀ t : ℝ, (∀ z ∈ Z, t < z) → 0 < ε * ∑ j, c j * Real.exp (lam j * t) := by sorry

end RealExpSum
Source
G. J. O. Jameson, Counting zeros of generalized polynomials: Descartes' rule of signs and Laguerre's extensions, Math. Gazette 90, no. 518 (2006), 223-234, https://www.maths.lancs.ac.uk/~jameson/zeros.pdf, Section 3. The first conclusion follows from Theorem 3.1 there (Descartes' rule of signs for Dirichlet polynomials, due to Laguerre: the number of zeros of ∑jajepjx\sum_j a_je^{p_jx}∑j​aj​epj​x with p1>⋯>pnp_1>\dots>p_np1​>⋯>pn​ is at most the number of sign changes of (aj)(a_j)(aj​)) and from remark (i) preceding it (a sequence of nnn terms has at most n−1n-1n−1 sign changes). The second conclusion is the behaviour of the sum as x→−∞x\to-\inftyx→−∞ used in the proof of Proposition 3.6 there. The statement is step 2 of the accepted proof of `SampQueryLB.WarmSLC.borwein_erdelyi_endpoint`.

View graph

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me