← All solved theorems
Fekete's Subadditivity Lemma and Existence of Stationary Entropy Rate
proved in Lean
If a sequence grows at most additively when pieces are joined (subadditivity), its average per step converges. Applied to block entropies, this shows every stationary source has a well-defined entropy rate: its long-run uncertainty per symbol.
Michael Fekete; Claude E. Shannon (1923) · Ch. 3–4 · AEP, Typicality & Entropy Rates · Cover & Thomas, Theorem 4.2.1; bridged to Mathlib.Analysis.Subadditive
Statement
For any subadditive sequence $a(m + n) \le a(m) + a(n)$ with linear lower bound $a(n) \ge c n$, $\lim_{n \to \infty} a(n)/n = \inf_{k \ge 1} a(k)/k$ (and dually for superadditive sequences). In particular, for any stationary process $(X_1, X_2, \dots)$, the entropy rate $\lim_{n \to \infty} H(X_1, \dots, X_n)/n$ exists and equals $\inf_{k \ge 1} H(X_1, \dots, X_k)/k$.
How the proof works
Block entropies of a stationary process are subadditive (a long block has at most the entropy of its pieces combined), so Fekete's lemma applies. Bridges directly to Mathlib's Subadditive.tendsto_lim (Mathlib.Analysis.Subadditive), derives the dual superadditive theorem, and proves shannonEntropy (P (m + n)) ≤ shannonEntropy (P m) + shannonEntropy (P n) for shift-invariant block distributions.
Lean declarations (4)
The key theorems in the Lean library. Each is compiled with Lean 4, uses only the standard axioms propext, Classical.choice and Quot.sound, and is re-checked by leanchecker. Click a name to see the full proof on GitHub.
theorem fekete_subadditive_tendsto {a : ℕ → ℝ}
(hsub : ∀ m n : ℕ, 0 < m → 0 < n → a (m + n) ≤ a m + a n)
(hlow : ∃ c : ℝ, ∀ n : ℕ, 0 < n → c * (n : ℝ) ≤ a n) :
Filter.Tendsto (fun n : ℕ => a n / (n : ℝ)) Filter.atTop
(nhds (sInf { r : ℝ | ∃ k : ℕ, 0 < k ∧ r = a k / (k : ℝ) })) := by …
theorem fekete_superadditive_tendsto {a : ℕ → ℝ}
(hsup : ∀ m n : ℕ, 0 < m → 0 < n → a m + a n ≤ a (m + n))
(hup : ∃ C : ℝ, ∀ n : ℕ, 0 < n → a n ≤ C * (n : ℝ)) :
Filter.Tendsto (fun n : ℕ => a n / (n : ℝ)) Filter.atTop
(nhds (sSup { r : ℝ | ∃ k : ℕ, 0 < k ∧ r = a k / (k : ℝ) })) := by …
theorem stationary_entropy_subadd {α : Type*} [Fintype α]
(P : (n : ℕ) → ProbDist (Fin n → α)) (hstat : IsStationaryShift P) (m n : ℕ) :
shannonEntropy (P (m + n)) ≤ shannonEntropy (P m) + shannonEntropy (P n) := by …
theorem stationary_entropyRate_exists {α : Type*} [Fintype α]
(P : (n : ℕ) → ProbDist (Fin n → α)) (hstat : IsStationaryShift P) :
Filter.Tendsto (fun n : ℕ => shannonEntropy (P n) / (n : ℝ)) Filter.atTop
(nhds (sInf { r : ℝ | ∃ k : ℕ, 0 < k ∧ r = shannonEntropy (P k) / (k : ℝ) })) := by …
Related open problems (5)
Open problems that build on, generalize, or are analogous to this theorem.