/-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.Normed.Group.InfiniteSumpublic import Mathlib.Analysis.Complex.Basic /-!# A dominant population keeps a state away from orthogonality For a probability distribution p on β and complex numbers u k of modulus one (the phases e^{βi E_kt} of a state with populations p k), 2 p j β 1 β€ ββ p k u kβ for every index j, by the triangleinequality: a level that carries more than half of the population keeps the autocorrelation awayfrom zero at every time, whatever the energy moments. This is the cut-off inequality |A(t)| β₯Ξ±|Δ(t)| β (1 β Ξ±) of Uffink, in the form of M. Andrews, Phys. Rev. A 75, 062112 (2007), Eq. (21),with the cut-off isolating one level. ## Main results * `Dilog.two_mul_sub_one_le_norm_tsum`: 2 p j β 1 β€ ββ p k u kβ for phases of modulus one* `Dilog.tsum_ne_zero_of_half_lt`: the autocorrelation never vanishes when some p j > 1/2 ## 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 Complex namespace Dilog /-- **The dominant-population floor.** For a probability distribution `p` and phases `u k` ofmodulus one, `2 p j - 1 β€ ββ p k u kβ` for every index `j`. -/theorem two_mul_sub_one_le_norm_tsum (p : β β β) (hp : β k, 0 β€ p k) (hs : HasSum p 1) (u : β β β) (hu : β k, βu kβ = 1) (j : β) : 2 * p j - 1 β€ ββ' k, (p k : β) * u kβ := by have hnorm : β k, β(p k : β) * u kβ = p k := fun k β¦ by rw [norm_mul, hu k, mul_one, Complex.norm_real, Real.norm_of_nonneg (hp k)] have hsn : Summable fun k β¦ β(p k : β) * u kβ := by simpa only [hnorm] using hs.summable have hsc : Summable fun k β¦ (p k : β) * u k := hsn.of_norm -- the rest of the sum, without the term `j` set R : β := β' k, if k = j then 0 else (p k : β) * u k with hR have hsplit : β' k, (p k : β) * u k = (p j : β) * u j + R := hsc.tsum_eq_add_tsum_ite j have hrest : β' k, (if k = j then 0 else p k) = 1 - p j := by have := hs.summable.tsum_eq_add_tsum_ite j rw [hs.tsum_eq] at this linarith have hRle : βRβ β€ 1 - p j := by have hsn' : Summable fun k β¦ βif k = j then (0 : β) else (p k : β) * u kβ := by refine hsn.of_nonneg_of_le (fun k β¦ norm_nonneg _) (fun k β¦ ?_) split_ifs Β· rw [norm_zero]; exact norm_nonneg _ Β· exact le_rfl calc βRβ β€ β' k, βif k = j then (0 : β) else (p k : β) * u kβ := norm_tsum_le_tsum_norm hsn' _ = β' k, (if k = j then 0 else p k) := by congr 1; funext k; split_ifs Β· exact norm_zero Β· exact hnorm k _ = 1 - p j := hrest have htri : β(p j : β) * u jβ - βRβ β€ β(p j : β) * u j + Rβ := by have := norm_sub_norm_le ((p j : β) * u j) (-R) simpa [sub_neg_eq_add, norm_neg] using this rw [hsplit] rw [hnorm j] at htri linarith /-- **A dominant population forbids orthogonality.** If some population exceeds `1/2`, theautocorrelation `β p k u k` never vanishes. -/theorem tsum_ne_zero_of_half_lt (p : β β β) (hp : β k, 0 β€ p k) (hs : HasSum p 1) (u : β β β) (hu : β k, βu kβ = 1) {j : β} (hj : 1 / 2 < p j) : β' k, (p k : β) * u k β 0 := by intro h have := two_mul_sub_one_le_norm_tsum p hp hs u hu j rw [h, norm_zero] at this linarith end Dilog