The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V21. Dynamics, ergodic theory and information theory

Mathlib.InformationTheory.Coding.KraftMcMillan

1 declarations and 1 deprecated aliases. Mathlib docs · Source

theorem InformationTheory.IsUniquelyDecodable.finsetSum_one_div_card_pow_length_le_one E1 #

∀ {α : Type u_1} {S : Finset (List α)} [inst : Fintype α] [Nonempty α],
  InformationTheory.IsUniquelyDecodable ↑S → ∑ w ∈ S, (1 / ↑(Fintype.card α)) ^ w.length ≤ 1

Kraft-McMillan Inequality: If S is a finite uniquely decodable code, then Σ D^{-|w|} ≤ 1.

Deprecated aliases

NameNew nameSince
InformationTheory.kraft_mcmillan_inequalityInformationTheory.IsUniquelyDecodable.finsetSum_one_div_card_pow_length_le_one2026-08-16