Copeland–Erdős Lemma: few words have too many occurrences of a given block
ProvedNormal.large_deviationnormal-numbers
Let , let be a nonempty word over of length , and let . Theorem. There are real constants and such that for every , the number of words of length over in which occurs (with overlaps) more than times is at most
In other words, words in which is over-represented form an exponentially thin family. This is the lemma on p. 858 of Copeland–Erdős (stated there for integers up to ), proved here by a Chernoff exponential-moment bound on the occurrences in each residue class of positions modulo .
Preamble
import Init import Mathlib import Definitions.Def_Normal_Core set_option autoImplicit false set_option autoImplicit false open Filter Topology open Normal
Formal statement
theorem Normal.large_deviation {b : ℕ} (hb : 2 ≤ b) {w : List ℕ} (hw : w ≠ [])
(hwd : ∀ d ∈ w, d < b) {ε : ℝ} (hε : 0 < ε) :
∃ β : ℝ, 0 ≤ β ∧ β < b ∧ ∃ C : ℝ, ∀ n : ℕ,
(((strs b n).filter
(fun u => (((b : ℝ) ^ w.length)⁻¹ + ε) * u.length < occ w u)).card : ℝ)
≤ C * β ^ n := by sorrySource
A. H. Copeland and P. Erdős, Note on normal numbers, Bull. Amer. Math. Soc. 52 (1946), 857–860, Lemma (p. 858). Lean source: https://github.com/xiangyazi24/normal/blob/ccb5977dc827e12f5f1b7266aec48a9b039370af/Normal/LargeDeviation.lean#L244-L319
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.