/-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, Claude (AI assistant)-/module public import Mathlib.Analysis.PSeriespublic import Formalizations.Analysis.SpecialFunctions.Polylog.HausdorffFloor /-!# The floor of the zeta states The zeta state of weight s > 1 has populations (n + 1)^{βs} / ΞΆ(s) on the equally spaced levels n +1; its autocorrelation is Li_s(z) / ΞΆ(s) with z = e^{βiΞΈ}. From Ξ·(s) β€ |Li_s z| on the unit circle(Polylog.polylog_circle_floor) and the classical identity Ξ·(s) = (1 β 2^{1βs}) ΞΆ(s), proved here bysplitting the alternating series into even and odd terms, the autocorrelation never drops below 1 β2^{1βs}, its value at ΞΈ = Ο. For s = 2 the floor is 1/2. ## Main results * `Polylog.tendsto_partialEta_of_one_lt`: Ξ·(s) = (1 β 2^{1βs}) ΞΆ(s) for s > 1* `Polylog.zeta_floor`: (1 β 2^{1βs}) ΞΆ(s) β€ |Li_s z| on the whole unit circle, s > 1* `Polylog.zetaState_floor`: the normalized zeta state has |S(ΞΈ)| β₯ 1 β 2^{1βs} for every ΞΈ ## References * C. MarΓn, *The Clock That Never Ticks: a machine-checked path from the dilogarithm to quantum speed limits in Lean 4*, Zenodo (2026), doi:10.5281/zenodo.20675271, `thm:clock`.-/ @[expose] public section open Filter Topology Finset Complex namespace Polylog /-- Summability of `1 / (n+1)^s` for `s > 1`. -/theorem summable_zeta_aux {s : β} (hs : 1 < s) : Summable (fun n : β β¦ 1 / ((n : β) + 1) ^ s) := by have h := (Real.summable_one_div_nat_rpow (p := s)).2 hs have h2 := (summable_nat_add_iff 1).2 h refine h2.congr fun k β¦ ?_ simp /-- **`Ξ·(s) = (1 - 2^{1-s}) ΞΆ(s)`** for `s > 1`, with `ΞΆ(s) = β (n+1)^{-s}`. -/theorem tendsto_partialEta_of_one_lt {s : β} (hs : 1 < s) : Tendsto (partialEta s) atTop (π ((1 - (2 : β) ^ (1 - s)) * β' n : β, 1 / ((n : β) + 1) ^ s)) := by obtain β¨a, haβ© : β a : β β β, a = fun k : β β¦ 1 / ((k : β) + 1) ^ s := β¨_, rflβ© have hgoal : β' n : β, 1 / ((n : β) + 1) ^ s = β' n : β, a n := by rw [ha] rw [hgoal] have hsum : Summable a := by rw [ha]; exact summable_zeta_aux hs have ha0 : β k, 0 β€ a k := fun k β¦ by rw [ha]; positivity have hb : Summable (fun k : β β¦ (-1 : β) ^ k * a k) := by refine hsum.of_norm_bounded fun k β¦ ?_ rw [norm_mul, norm_pow, norm_neg, norm_one, one_pow, one_mul, Real.norm_of_nonneg (ha0 k)] have hinj2 : Function.Injective (fun j : β β¦ 2 * j) := fun x y h β¦ by simpa using h have hinj2' : Function.Injective (fun j : β β¦ 2 * j + 1) := fun x y h β¦ by simpa using h have hE : Summable (fun j : β β¦ a (2 * j)) := hsum.comp_injective hinj2 have hO : Summable (fun j : β β¦ a (2 * j + 1)) := hsum.comp_injective hinj2' have hZ := tsum_even_add_odd (f := a) hE hO have hbE : Summable (fun j : β β¦ (-1 : β) ^ (2 * j) * a (2 * j)) := hb.comp_injective hinj2 have hbO : Summable (fun j : β β¦ (-1 : β) ^ (2 * j + 1) * a (2 * j + 1)) := hb.comp_injective hinj2' have hA := tsum_even_add_odd (f := fun k : β β¦ (-1 : β) ^ k * a k) hbE hbO have hev : β j : β, (-1 : β) ^ (2 * j) * a (2 * j) = a (2 * j) := fun j β¦ by rw [pow_mul]; simp have hod : β j : β, (-1 : β) ^ (2 * j + 1) * a (2 * j + 1) = - a (2 * j + 1) := fun j β¦ by rw [pow_succ, pow_mul]; simp simp only [hev, hod, tsum_neg] at hA have hO' : β' j : β, a (2 * j + 1) = (2 : β) ^ (-s) * β' n : β, a n := by rw [β tsum_mul_left] refine tsum_congr fun j β¦ ?_ simp only [ha] have h1 : (((2 * j + 1 : β) : β) + 1) = 2 * ((j : β) + 1) := by push_cast; ring rw [h1, Real.mul_rpow (by norm_num) (by positivity), Real.rpow_neg (by norm_num)] field_simp have h2s : (2 : β) ^ (1 - s) = 2 * (2 : β) ^ (-s) := by rw [sub_eq_add_neg, Real.rpow_add (by norm_num), Real.rpow_one] have hlim : HasSum (fun k : β β¦ (-1 : β) ^ k * a k) (β' k : β, (-1 : β) ^ k * a k) := hb.hasSum have hv : β' k : β, (-1 : β) ^ k * a k = (1 - (2 : β) ^ (1 - s)) * β' n : β, a n := by rw [β hA, h2s] rw [hO'] at hZ β’ linarith rw [β hv] have := hlim.tendsto_sum_nat refine this.congr fun N β¦ ?_ unfold partialEta refine Finset.sum_congr rfl fun k _ β¦ ?_ rw [ha] exact mul_one_div _ _ /-- Partial sums of the circle series are `partialLi`, and the series is summable for `s > 1`. -/theorem summable_circle_aux {s : β} (hs : 1 < s) {z : β} (hz : βzβ = 1) : Summable (fun n : β β¦ z ^ (n + 1) / ((((n : β) + 1) ^ s : β) : β)) := by refine (summable_zeta_aux hs).of_norm_bounded fun n β¦ ?_ rw [norm_div, norm_pow, hz, one_pow, Complex.norm_real, Real.norm_of_nonneg (by positivity)] /-- **The floor of `Li_s` for `s > 1`**, on the whole unit circle (including `z = 1`):`(1 - 2^{1-s}) ΞΆ(s) β€ ββ z^{n+1} / (n+1)^sβ`. -/theorem zeta_floor {s : β} (hs : 1 < s) {z : β} (hz : βzβ = 1) : (1 - (2 : β) ^ (1 - s)) * β' n : β, 1 / ((n : β) + 1) ^ s β€ ββ' n : β, z ^ (n + 1) / ((((n : β) + 1) ^ s : β) : β)β := by have hsum := summable_circle_aux hs hz have hL : Tendsto (partialLi s z) atTop (π (β' n : β, z ^ (n + 1) / ((((n : β) + 1) ^ s : β) : β))) := hsum.hasSum.tendsto_sum_nat by_cases hz1 : z = 1 Β· subst hz1 have hpos : 0 < β' n : β, 1 / ((n : β) + 1) ^ s := (summable_zeta_aux hs).tsum_pos (fun n β¦ by positivity) 0 (by positivity) have heq : β' n : β, (1 : β) ^ (n + 1) / ((((n : β) + 1) ^ s : β) : β) = ((β' n : β, 1 / ((n : β) + 1) ^ s : β) : β) := by rw [Complex.ofReal_tsum] refine tsum_congr fun n β¦ ?_ simp rw [heq, Complex.norm_real, Real.norm_of_nonneg hpos.le] have : (0 : β) < (2 : β) ^ (1 - s) := by positivity nlinarith Β· have := polylog_circle_floor (by linarith) hz hL (tendsto_partialEta_of_one_lt hs) exact this /-- **The zeta state never gets closer to orthogonality than `1 - 2^{1-s}`.** With populations`p n = (n+1)^{-s} / ΞΆ(s)` on the levels `n + 1`, the autocorrelation at every time `ΞΈ` has modulus atleast `1 - 2^{1-s}`. -/theorem zetaState_floor {s : β} (hs : 1 < s) (ΞΈ : β) : 1 - (2 : β) ^ (1 - s) β€ ββ' n : β, (((1 / ((n : β) + 1) ^ s) / β' m : β, 1 / ((m : β) + 1) ^ s : β) : β) * Complex.exp (-(((n : β) + 1) * ΞΈ : β) * I)β := by set ΞΆ : β := β' m : β, 1 / ((m : β) + 1) ^ s with hΞΆ have hpos : 0 < ΞΆ := (summable_zeta_aux hs).tsum_pos (fun n β¦ by positivity) 0 (by positivity) set z : β := Complex.exp (-(ΞΈ : β) * I) with hzdef have hz : βzβ = 1 := by rw [hzdef, show -(ΞΈ : β) * I = ((-ΞΈ : β) : β) * I by push_cast; ring] exact Complex.norm_exp_ofReal_mul_I _ have hterm : β n : β, (((1 / ((n : β) + 1) ^ s) / ΞΆ : β) : β) * Complex.exp (-(((n : β) + 1) * ΞΈ : β) * I) = ((ΞΆ : β))β»ΒΉ * (z ^ (n + 1) / ((((n : β) + 1) ^ s : β) : β)) := by intro n have h1 : Complex.exp (-(((n : β) + 1) * ΞΈ : β) * I) = z ^ (n + 1) := by rw [hzdef, β Complex.exp_nat_mul] congr 1 push_cast ring rw [h1] simp only [Complex.ofReal_div, Complex.ofReal_one] ring rw [tsum_congr hterm, tsum_mul_left, norm_mul, norm_inv, Complex.norm_real, Real.norm_of_nonneg hpos.le] rw [inv_mul_eq_div, le_div_iffβ hpos] have := zeta_floor hs hz linarith end Polylog