Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Katz's positive coefficient lemma: if Y′=YAY'=YAY′=YA, Z′=ZBZ'=ZBZ′=ZB, Y(0)=Z(0)=1Y(0)=Z(0)=1Y(0)=Z(0)=1 and 0≤B≤A0\le B\le A0≤B≤A coefficientwise, then 0≤Z≤Y0\le Z\le Y0≤Z≤Y coefficientwise

Proved
PowerSeries.katz_positive_coefficient_lemma

by Nickrobbins95 · Nov 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebraic-geometryformal-power-seriesnumber-theory

Let Y,Z,A,B∈R[[T]]Y, Z, A, B \in \mathbb R[[T]]Y,Z,A,B∈R[[T]] be formal power series with real coefficients, write A=∑j≥0ajTjA = \sum_{j\ge0} a_j T^jA=∑j≥0​aj​Tj and B=∑j≥0bjTjB = \sum_{j\ge0} b_j T^jB=∑j≥0​bj​Tj, and let ′'′ denote the formal derivative d/dTd/dTd/dT. Assume

Y(0)=Z(0)=1,Y′=Y A,Z′=Z B,0≤bj≤aj(j≥0).Y(0) = Z(0) = 1, \qquad Y' = Y\,A, \qquad Z' = Z\,B, \qquad 0 \le b_j \le a_j \quad (j \ge 0).Y(0)=Z(0)=1,Y′=YA,Z′=ZB,0≤bj​≤aj​(j≥0).

Then for every n≥0n \ge 0n≥0 the coefficients of TnT^nTn satisfy

0  ≤  [Tn] Z  ≤  [Tn] Y.0 \;\le\; [T^n]\,Z \;\le\; [T^n]\,Y.0≤[Tn]Z≤[Tn]Y.

Equivalently, in exponential form (Katz's Positive Coefficient Lemma): if F=∑m≥1fmTm/mF = \sum_{m\ge1} f_m T^m/mF=∑m≥1​fm​Tm/m and G=∑m≥1gmTm/mG = \sum_{m\ge1} g_m T^m/mG=∑m≥1​gm​Tm/m are real power series with 0≤gm≤fm0 \le g_m \le f_m0≤gm​≤fm​ for all m≥1m \ge 1m≥1, then exp⁡(G)\exp(G)exp(G) has nonnegative coefficients and exp⁡(F)−exp⁡(G)\exp(F) - \exp(G)exp(F)−exp(G) has nonnegative coefficients. Indeed Y=exp⁡(F)Y = \exp(F)Y=exp(F) is the unique series with Y(0)=1Y(0) = 1Y(0)=1 and Y′=YF′Y' = Y F'Y′=YF′, and F′=∑m≥1fmTm−1F' = \sum_{m\ge1} f_m T^{m-1}F′=∑m≥1​fm​Tm−1, so the coefficients of A=F′A = F'A=F′ are the fmf_mfm​. Taking Z=1Z = 1Z=1 and B=0B = 0B=0 gives the first half on its own: if AAA has nonnegative coefficients then so has YYY.

Role: in Deligne's proof of the Riemann hypothesis over finite fields (Weil II), as presented by Katz, the lemma is applied to LLL-functions L(T)=exp⁡(∑mNmTm/m)L(T) = \exp\left(\sum_m N_m T^m/m\right)L(T)=exp(∑m​Nm​Tm/m) whose logarithmic coefficients NmN_mNm​ are nonnegative real numbers (traces of Frobenius on even tensor powers of a sheaf with real traces, Rankin's squaring trick). Every Euler factor of such an LLL-function is then dominated coefficientwise by the whole LLL-function, so the radius of convergence of L(T)L(T)L(T) bounds the Frobenius eigenvalues at each closed point.

Formalization Note: power series are PowerSeries ℝ; PowerSeries.derivative ℝ is the formal derivative, PowerSeries.constantCoeff the constant term and PowerSeries.coeff n the coefficient of TnT^nTn. The exponential form is stated through the logarithmic derivative (Y(0)=1Y(0) = 1Y(0)=1, Y′=YAY' = YAY′=YA), which determines Y=exp⁡(∫A)Y = \exp\left(\int A\right)Y=exp(∫A) uniquely over a field of characteristic 000. The conclusion contains both halves of the lemma: 0≤Z0 \le Z0≤Z is the nonnegativity statement for Z=exp⁡(G)Z = \exp(G)Z=exp(G) and Z≤YZ \le YZ≤Y is the comparison. Example: Y=exp⁡(T)Y = \exp(T)Y=exp(T) (PowerSeries.exp ℝ) with A=1A = 1A=1, and Z=1Z = 1Z=1 with B=0B = 0B=0, satisfy all hypotheses.

Preamble
import Mathlib

set_option autoImplicit false
Formal statement
theorem PowerSeries.katz_positive_coefficient_lemma (Y Z A B : PowerSeries ℝ)
    (hY0 : PowerSeries.constantCoeff Y = 1) (hZ0 : PowerSeries.constantCoeff Z = 1)
    (hY : PowerSeries.derivative ℝ Y = Y * A) (hZ : PowerSeries.derivative ℝ Z = Z * B)
    (hB : ∀ j : ℕ, 0 ≤ PowerSeries.coeff j B)
    (hBA : ∀ j : ℕ, PowerSeries.coeff j B ≤ PowerSeries.coeff j A) (n : ℕ) :
    0 ≤ PowerSeries.coeff n Z ∧ PowerSeries.coeff n Z ≤ PowerSeries.coeff n Y := by sorry
Source
N. M. Katz, L-functions and monodromy: four lectures on Weil II, Advances in Mathematics 160 (2001), 81-132, Positive Coefficient Lemma (p. 24 of the lecture notes); P. Deligne, La conjecture de Weil. II, Publ. Math. IHES 52 (1980), 137-252 (the Rankin squaring argument)

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