/-Copyright (c) 2026 Carles MarΓn. All rights reserved.Released under Apache 2.0 license as described in the file LICENSE.Authors: Carles MarΓn-/module public import Mathlib.Algebra.Order.Star.Realpublic import Mathlib.Analysis.CStarAlgebra.Classespublic import Mathlib.Analysis.Complex.Trigonometricpublic import Formalizations.Analysis.SpecialFunctions.Dilogarithm.Basic /-!# The EnestrΓΆmβKakeya theorem A polynomial `β_{k=0}^n a_k z^k` with real coefficients `a_0 β₯ a_1 β₯ β― β₯ a_n > 0` has no zero in theopen unit disk. On the unit circle a zero `z` satisfies `z^{n+1} = 1`, and `z^{k+1} = 1` at everystrict descent `a_{k+1} < a_k`; with strictly decreasing coefficients there is no zero in the closeddisk. The proof multiplies by `1 - z`, telescopes, and applies the triangle inequality. ## Main results * `Dilog.enestrom_kakeya`: no zero in `βzβ < 1`.* `Dilog.enestrom_kakeya_boundary`: the zeros on `βzβ = 1` are roots of unity of the stated orders.* `Dilog.enestrom_kakeya_strict`: strictly decreasing coefficients give no zero in `βzβ β€ 1`.* `Dilog.monotoneState_never_orthogonal`: `β p_k e^{-ikt} β 0` for every real `t` when `p_0 > p_1 > β― > p_n > 0`.* `Dilog.enestrom_kakeya_boundary_series`, `Dilog.strictAnti_series_ne_zero`: the same on the circle for summable non-increasing series (no truncation): zeros sit at roots of unity pinned by the descents, and strictly decreasing positive populations never orthogonalize. The proof takes real parts of the telescoped series instead of the equality case of the triangle inequality. ## References * A. Hurwitz, *Γber einen Satz des Herrn Kakeya*, TΓ΄hoku Math. J. 4 (1913) 89β93, Β§2: the zeros on the unit circle under non-increasing coefficients (roots of unity; coefficients in groups of equal consecutive values), with the converse. `enestrom_kakeya_boundary` is his argument.* Q. I. Rahman, G. Schmeisser, *Analytic Theory of Polynomials*, Oxford University Press, 2002.-/ @[expose] public section open Finsetopen scoped BigOperators namespace Dilog /-- The telescoped identity `(1 - z)Β·β aβzα΅ = aβ β β(aββaβββ)zα΅βΊΒΉ β aβzβΏβΊΒΉ`, with no signor monotonicity hypothesis on the coefficients. The engine behind both the interiorlocalization and the boundary refinement. -/private lemma enestrom_telescope {n : β} (a : β β β) (z : β) : (1 - z) * (β k β range (n + 1), (a k : β) * z ^ k) = (a 0 : β) - (β k β range n, ((a k - a (k + 1) : β) : β) * z ^ (k + 1)) - (a n : β) * z ^ (n + 1) := by induction n with | zero => simp only [zero_add, Finset.sum_range_one, Finset.sum_range_zero, pow_zero, pow_one, mul_one] ring | succ m ih => rw [Finset.sum_range_succ (fun k => (a k : β) * z ^ k) (m + 1), mul_add, ih, Finset.sum_range_succ (fun k => ((a k - a (k + 1) : β) : β) * z ^ (k + 1)) m] push_cast ring /-- The EnestrΓΆmβKakeya theorem (reciprocal form): a polynomial with positive,non-increasing real coefficients has no zero strictly inside the unit disc. -/theorem enestrom_kakeya {n : β} (a : β β β) (hpos : β k β€ n, 0 < a k) (hmono : β k, k < n β a (k + 1) β€ a k) {z : β} (hz : βzβ < 1) : β k β range (n + 1), (a k : β) * z ^ k β 0 := by intro hS set S : β := β k β range (n + 1), (a k : β) * z ^ k with hSdef -- The telescoped identity `(1 - z) * S = aβ - β (aβ - aβββ) zα΅βΊΒΉ - aβ zβΏβΊΒΉ`. have key : (1 - z) * S = (a 0 : β) - (β k β range n, ((a k - a (k + 1) : β) : β) * z ^ (k + 1)) - (a n : β) * z ^ (n + 1) := by rw [hSdef]; exact enestrom_telescope (n := n) a z -- `S = 0`, so `aβ = β (aβ - aβββ) zα΅βΊΒΉ + aβ zβΏβΊΒΉ`. rw [hS, mul_zero] at key have ha0 : (a 0 : β) = (β k β range n, ((a k - a (k + 1) : β) : β) * z ^ (k + 1)) + (a n : β) * z ^ (n + 1) := by linear_combination -key -- Take norms and bound `βzβα΅βΊΒΉ β€ βzβ`. have hz0 : (0:β) β€ βzβ := norm_nonneg z have hzle : βzβ β€ 1 := hz.le have hpos0 : 0 < a 0 := hpos 0 (Nat.zero_le n) -- Norm of the left side. have hlhs : β(a 0 : β)β = a 0 := by rw [Complex.norm_real, Real.norm_eq_abs, abs_of_pos hpos0] -- Norm bound of the right side. have hrhs : β(β k β range n, ((a k - a (k + 1) : β) : β) * z ^ (k + 1)) + (a n : β) * z ^ (n + 1)β β€ βzβ * a 0 := by refine le_trans (norm_add_le _ _) ?_ -- bound each piece have hdec : β k β range n, 0 β€ a k - a (k + 1) := by intro k hk; exact sub_nonneg.mpr (hmono k (Finset.mem_range.mp hk)) have hsum : ββ k β range n, ((a k - a (k + 1) : β) : β) * z ^ (k + 1)β β€ β k β range n, (a k - a (k + 1)) * βzβ := by refine le_trans (norm_sum_le _ _) ?_ apply Finset.sum_le_sum intro k hk rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (hdec k hk), norm_pow] have : βzβ ^ (k + 1) β€ βzβ := by calc βzβ ^ (k + 1) β€ βzβ ^ 1 := by apply pow_le_pow_of_le_one hz0 hzle (Nat.succ_le_succ (Nat.zero_le k)) _ = βzβ := pow_one _ exact mul_le_mul_of_nonneg_left this (hdec k hk) have hlast : β(a n : β) * z ^ (n + 1)β β€ a n * βzβ := by rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (hpos n le_rfl), norm_pow] have : βzβ ^ (n + 1) β€ βzβ := by calc βzβ ^ (n + 1) β€ βzβ ^ 1 := pow_le_pow_of_le_one hz0 hzle (Nat.succ_le_succ (Nat.zero_le n)) _ = βzβ := pow_one _ exact mul_le_mul_of_nonneg_left this (le_of_lt (hpos n le_rfl)) have htel : (β k β range n, (a k - a (k + 1))) + a n = a 0 := by rw [Finset.sum_range_sub' (fun k => a k)] ring calc ββ k β range n, ((a k - a (k + 1) : β) : β) * z ^ (k + 1)β + β(a n : β) * z ^ (n + 1)β β€ (β k β range n, (a k - a (k + 1)) * βzβ) + a n * βzβ := by exact add_le_add hsum hlast _ = ((β k β range n, (a k - a (k + 1))) + a n) * βzβ := by rw [add_mul, Finset.sum_mul] _ = a 0 * βzβ := by rw [htel] _ = βzβ * a 0 := by ring -- Combine: `aβ = βaββ β€ βzβ * aβ < aβ`, contradiction. have : a 0 β€ βzβ * a 0 := by calc a 0 = β(a 0 : β)β := hlhs.symm _ = β(β k β range n, ((a k - a (k + 1) : β) : β) * z ^ (k + 1)) + (a n : β) * z ^ (n + 1)β := by rw [ha0] _ β€ βzβ * a 0 := hrhs have hcontra : βzβ * a 0 < a 0 := by calc βzβ * a 0 < 1 * a 0 := by apply mul_lt_mul_of_pos_right hz hpos0 _ = a 0 := one_mul _ exact absurd (lt_of_le_of_lt this hcontra) (lt_irrefl _) /-! ## Boundary refinement and the monotone clock The base theorem localises zeros to `βzβ β₯ 1`. On the circle `βzβ = 1` the sametelescoped identity, read through **real parts** instead of norms, forces a rigidstructure: a boundary zero can only sit at a root of unity. Strict decrease at every stepthen rules the circle out entirely. -/ /-- On the unit circle, the real part is `β€ 1`, with equality only at the point `1`. -/private lemma unit_re_le_one {w : β} (hw : βwβ = 1) : w.re β€ 1 β§ (w.re = 1 β w = 1) := by have hns : w.re * w.re + w.im * w.im = 1 := by rw [β Complex.normSq_apply, Complex.normSq_eq_norm_sq, hw]; norm_num refine β¨?_, ?_β© Β· nlinarith [mul_self_nonneg w.im, mul_self_nonneg (w.re - 1)] Β· intro h1 have him : w.im = 0 := by have : w.im * w.im = 0 := by nlinarith exact mul_self_eq_zero.mp this exact Complex.ext (by simp [h1]) (by simp [him]) /-- **Boundary EnestrΓΆmβKakeya.** If the polynomial vanishes at a point of the unitcircle, that point is a root of unity: `zβΏβΊΒΉ = 1`, and `zα΅βΊΒΉ = 1` at every step where thecoefficients strictly decrease. -/theorem enestrom_kakeya_boundary {n : β} (a : β β β) (hpos : β k β€ n, 0 < a k) (hmono : β k, k < n β a (k + 1) β€ a k) {z : β} (hz : βzβ = 1) (hS : β k β range (n + 1), (a k : β) * z ^ k = 0) : z ^ (n + 1) = 1 β§ β k, k < n β a (k + 1) < a k β z ^ (k + 1) = 1 := by have key := enestrom_telescope (n := n) a z rw [hS, mul_zero] at key have ha0 : (a 0 : β) = (β k β range n, ((a k - a (k + 1) : β) : β) * z ^ (k + 1)) + (a n : β) * z ^ (n + 1) := by linear_combination -key -- combine the `n` differences and the final coefficient into one positive weight `c` set c : β β β := fun k => if k = n then a n else a k - a (k + 1) with hc set r : β β β := fun k => (z ^ (k + 1)).re with hr have hpow : β j, βz ^ jβ = 1 := fun j => by rw [norm_pow, hz, one_pow] have hrle : β k, r k β€ 1 := fun k => (unit_re_le_one (hpow (k + 1))).1 have hcnn : β k β range (n + 1), 0 β€ c k := by intro k hk by_cases h : k = n Β· simp [hc, h]; exact (hpos n le_rfl).le Β· have hkn : k < n := lt_of_le_of_ne (Nat.lt_succ_iff.mp (Finset.mem_range.mp hk)) h simp only [hc, h, ite_false]; exact sub_nonneg.mpr (hmono k hkn) -- the real part of `ha0` reads `aβ = β c k Β· r k` have hsum_cr : a 0 = β k β range (n + 1), c k * r k := by have hre := congrArg Complex.re ha0 rw [Finset.sum_range_succ] simp only [Complex.add_re, Complex.re_sum, Complex.re_ofReal_mul, Complex.ofReal_re] at hre rw [hre] congr 1 Β· apply Finset.sum_congr rfl intro k hk have hkn : k β n := Nat.ne_of_lt (Finset.mem_range.mp hk) simp only [hc, hr, hkn, ite_false] Β· simp only [hc, hr, ite_true] -- the weights telescope to `aβ` have hsum_c : β k β range (n + 1), c k = a 0 := by rw [Finset.sum_range_succ] have : β k β range n, c k = β k β range n, (a k - a (k + 1)) := by apply Finset.sum_congr rfl intro k hk have hkn : k β n := Nat.ne_of_lt (Finset.mem_range.mp hk) simp only [hc, hkn, ite_false] rw [this, Finset.sum_range_sub' (fun k => a k)] simp only [hc, ite_true]; ring -- each term is `β€` its weight, and the two sums agree, so all are equalities have hterm_le : β k β range (n + 1), c k * r k β€ c k := fun k hk => mul_le_of_le_one_right (hcnn k hk) (hrle k) have hsums : β k β range (n + 1), c k * r k = β k β range (n + 1), c k := by rw [β hsum_cr, hsum_c] have heq : β k β range (n + 1), c k * r k = c k := (Finset.sum_eq_sum_iff_of_le hterm_le).mp hsums -- positive weight forces `r k = 1`, hence `z^{k+1} = 1` have hroot : β k β range (n + 1), 0 < c k β z ^ (k + 1) = 1 := by intro k hk hck have hrk : r k = 1 := by have := heq k hk have : c k * r k = c k * 1 := by rw [this, mul_one] exact mul_left_cancelβ (ne_of_gt hck) this exact (unit_re_le_one (hpow (k + 1))).2 hrk refine β¨?_, ?_β© Β· have hcn : 0 < c n := by simp only [hc, ite_true]; exact hpos n le_rfl exact hroot n (Finset.mem_range.mpr (Nat.lt_succ_self n)) hcn Β· intro k hkn hstrict have hck : 0 < c k := by have hkn' : k β n := Nat.ne_of_lt hkn simp only [hc, hkn', ite_false]; linarith exact hroot k (Finset.mem_range.mpr (Nat.lt_succ_of_lt hkn)) hck /-- **Strict EnestrΓΆmβKakeya.** If the coefficients are *strictly* decreasing at everystep, the polynomial has no zero on the closed unit disc `βzβ β€ 1`. -/theorem enestrom_kakeya_strict {n : β} (a : β β β) (hpos : β k β€ n, 0 < a k) (hmono : β k, k < n β a (k + 1) < a k) {z : β} (hz : βzβ β€ 1) : β k β range (n + 1), (a k : β) * z ^ k β 0 := by rcases lt_or_eq_of_le hz with hlt | heq Β· exact enestrom_kakeya a hpos (fun k hk => (hmono k hk).le) hlt Β· intro hS have hz1 : βzβ = 1 := heq rcases Nat.eq_zero_or_pos n with hn0 | hnpos Β· subst hn0 simp only [zero_add, Finset.sum_range_one, pow_zero, mul_one] at hS exact (hpos 0 le_rfl).ne' (by exact_mod_cast hS) Β· obtain β¨_, hstepβ© := enestrom_kakeya_boundary a hpos (fun k hk => (hmono k hk).le) hz1 hS have hz_eq : z ^ (0 + 1) = 1 := hstep 0 hnpos (hmono 0 hnpos) have hz1' : z = 1 := by simpa using hz_eq rw [hz1'] at hS simp only [one_pow, mul_one] at hS have hsumzero : (β k β range (n + 1), a k : β) = 0 := by have := congrArg Complex.re hS simpa [Complex.re_sum, Complex.ofReal_re] using this have hpos_sum : 0 < β k β range (n + 1), a k := Finset.sum_pos (fun k hk => hpos k (Nat.lt_succ_iff.mp (Finset.mem_range.mp hk))) β¨0, Finset.mem_range.mpr (Nat.succ_pos n)β© linarith /-- **The monotone clock that never ticks.** A quantum state with strictly decreasingpopulations `pβ > pβ > β― > pβ > 0` on the equally spaced energy levels `0, 1, β¦, n` neverreaches an orthogonal state: its autocorrelation `β pβ e^{-i k t}` is nonzero for everytime `t`. The finite, coefficient-side companion of `zetaState_never_orthogonal`. -/theorem monotoneState_never_orthogonal {n : β} (p : β β β) (hpos : β k β€ n, 0 < p k) (hmono : β k, k < n β p (k + 1) < p k) (t : β) : β k β range (n + 1), (p k : β) * Complex.exp (-(k : β) * (t : β) * Complex.I) β 0 := by have hz : βComplex.exp (-(t : β) * Complex.I)β β€ 1 := by rw [Complex.norm_exp] simp [Complex.ofReal_im] have key := enestrom_kakeya_strict p hpos hmono (z := Complex.exp (-(t : β) * Complex.I)) hz intro hsum apply key rw [β hsum] apply Finset.sum_congr rfl intro k _ congr 1 rw [β Complex.exp_nat_mul] congr 1 ring /-- `Re w = 1` and `βwβ = 1` force `w = 1`. -/theorem eq_one_of_re_eq_one {w : β} (hn : βwβ = 1) (hr : w.re = 1) : w = 1 := by have h : w.re * w.re + w.im * w.im = 1 := by rw [β Complex.normSq_apply, Complex.normSq_eq_norm_sq, hn]; norm_num rw [hr] at h have him : w.im = 0 := by nlinarith exact Complex.ext (by simpa using hr) (by simpa using him) /-- **EnestrΓΆmβKakeya on the circle, for series.** Let `p` be summable and non-increasing. If`β pβ zα΅ = 0` at a point `βzβ = 1`, then `z^{k+1} = 1` at every descent `p_{k+1} < p_k`: the zeros on thecircle are roots of unity, pinned by where the populations drop (Remark 1 of the paper, for series). -/theorem enestrom_kakeya_boundary_series (p : β β β) (hmono : Antitone p) (hsum : Summable p) {z : β} (hz : βzβ = 1) (hS : HasSum (fun k => (p k : β) * z ^ k) 0) : β k, p (k + 1) < p k β z ^ (k + 1) = 1 := by set d : β β β := fun k => p k - p (k + 1) with hd have hd0 : β k, 0 β€ d k := fun k => sub_nonneg.mpr (hmono (Nat.le_succ k)) -- the decrements telescope to `p 0` (summable `p` tends to `0`) have hP := hsum.hasSum have hP1 : HasSum (fun k => p (k + 1)) (β' k, p k - p 0) := by have := (hasSum_nat_add_iff' 1).mpr hP simpa [Finset.sum_range_one] using this have hdsum : HasSum d (p 0) := by have := hP.sub hP1 simpa [hd] using this -- `β dβ z^{k+1} = p 0` when the series vanishes: `z S β (S β p 0)` with `S = 0` have h1 : HasSum (fun k => (p k : β) * z ^ k * z) 0 := by simpa using hS.mul_right z have h2 : HasSum (fun k => (p (k + 1) : β) * z ^ (k + 1)) (0 - (p 0 : β)) := by have := (hasSum_nat_add_iff' 1).mpr hS simpa [Finset.sum_range_one] using this have hdz : HasSum (fun k => ((d k : β) : β) * z ^ (k + 1)) (p 0 : β) := by have := h1.sub h2 convert this using 1 Β· funext k; simp only [hd]; push_cast; ring Β· ring -- real parts: `β dβ Re z^{k+1} = p 0 = β dβ`, so `β dβ (1 β Re z^{k+1}) = 0` with nonnegative terms have hre : HasSum (fun k => d k * (z ^ (k + 1)).re) (p 0) := by have := Complex.reCLM.hasSum hdz simpa [Complex.re_ofReal_mul] using this have hgap : HasSum (fun k => d k * (1 - (z ^ (k + 1)).re)) 0 := by have := hdsum.sub hre simpa [mul_sub] using this have hnorm : β k : β, βz ^ (k + 1)β = 1 := fun k => by rw [norm_pow, hz, one_pow] have hle : β k : β, (z ^ (k + 1)).re β€ 1 := fun k => (Complex.re_le_norm _).trans (hnorm k).le have hterm : β k, 0 β€ d k * (1 - (z ^ (k + 1)).re) := fun k => mul_nonneg (hd0 k) (sub_nonneg.mpr (hle k)) have hzero := (hasSum_zero_iff_of_nonneg hterm).mp hgap intro k hk have hk' : 0 < d k := sub_pos.mpr hk have h0 : d k * (1 - (z ^ (k + 1)).re) = 0 := congrFun hzero k have hre1 : (z ^ (k + 1)).re = 1 := by rcases mul_eq_zero.mp h0 with h | h Β· exact absurd h hk'.ne' Β· linarith exact eq_one_of_re_eq_one (hnorm k) hre1 /-- **Strictly decreasing populations never orthogonalize** (series form): for `p > 0` summable and strictlydecreasing, `β pβ zα΅ β 0` on the whole unit circle. With `p_n = 6/(ΟΒ² nΒ²)` this is Theorem 4 again, readfrom the coefficients as Remark 1 says. -/theorem strictAnti_series_ne_zero (p : β β β) (hpos : β k, 0 < p k) (hanti : StrictAnti p) (hsum : Summable p) {z : β} (hz : βzβ = 1) : Β¬ HasSum (fun k => (p k : β) * z ^ k) 0 := by intro hS have h1 := enestrom_kakeya_boundary_series p hanti.antitone hsum hz hS 0 (hanti (Nat.lt_succ_self 0)) rw [zero_add, pow_one] at h1 subst h1 have hR : HasSum (fun k => ((p k : β) : β)) ((β' k, p k : β) : β) := Complex.ofRealCLM.hasSum hsum.hasSum have hpos' : 0 < β' k, p k := hsum.tsum_pos (fun k => (hpos k).le) 0 (hpos 0) have hS' : HasSum (fun k => ((p k : β) : β)) 0 := by simpa using hS have h0 : ((β' k, p k : β) : β) = 0 := hR.unique hS' exact hpos'.ne' (by exact_mod_cast h0) end Dilog