A cyclic rotation whose prefix means are bounded by the overall mean
ProvedCycleLemma.exists_rotation_with_mean_prefix_boundEvery finite list of natural numbers has a cyclic rotation for which each prefix of length and sum satisfies , where is the sum of the list. This includes empty lists and empty prefixes.
The same cut works simultaneously for all prefix lengths.
Preamble
import Mathlib
Formal statement
theorem CycleLemma.exists_rotation_with_mean_prefix_bound (w : List ℕ) :
∃ r ≤ w.length, ∀ j ≤ w.length,
w.length * ((w.rotate r).take j).sum ≤ j * w.sum := by sorrySource
Local derivation: SyracuseShortHorizon.lean, exists_rotation_with_mean_prefix_bound, using the maximal partial-sum argument for cyclic sequences. Original declaration starts at line 79. Apply the zero-sum cyclic partial-sum observation in K. Ford, Integers with a divisor in (y, 2y], Section 2 immediately before Lemma 2.4, https://www.ford126.web.illinois.edu/wwwpapers/hxy2y.pdf, to the centered sequence with sign reversed.