Entropy and Asymptotic Bounds #
This file establishes asymptotic bounds relating Hamming ball sizes to the q-ary entropy function, and provides the key binomial coefficient lower bound used in the Gilbert–Varshamov theorem.
Main Results #
hamming_ball_size_asymptotic_upper_bound: for0 < p ≤ 1 - 1/q, the Hamming ball of radius⌊np⌋has at mostq^(H_q(p)·n)elements.q_pow_qary_entropy_simp/q_pow_qary_entropy_simp': simplification lemmas forq^(H_q(p))in terms of elementary functions.binomial_coef_asymptotic_lower_bound': the dominant binomial termC(n,⌊np⌋)·(q-1)^(pn)grows at least as fast asq^(H_q(p)·n - ε(n))whereε = o(n).qary_entropy_pos: the q-ary entropy is positive for0 < p ≤ 1 - 1/q.
theorem
CodingTheory.Codeword.hamming_ball_size_asymptotic_upper_bound
{α : Type u_1}
[Fintype α]
[Nonempty α]
[DecidableEq α]
[Field α]
(q n : ℕ)
(p : ℝ)
(hq : q = Fintype.card α)
(hα : Nontrivial α)
(hp : 0 < p ∧ p ≤ 1 - 1 / ↑q)
(c : Codeword n α)
:
Asymptotic upper bound on ball size: for 0 < p ≤ 1 - 1/q, the Hamming ball of
radius ⌊np⌋ has at most q^(H_q(p)·n) elements.
theorem
CodingTheory.Codeword.qary_entropy_pos
{α : Type u_1}
[Fintype α]
[Nonempty α]
[DecidableEq α]
[Field α]
(q : ℕ)
(p : ℝ)
(hq : q = Fintype.card α)
(hp : 0 < p ∧ p ≤ 1 - 1 / ↑q)
:
The q-ary entropy H_q(p) is strictly positive for 0 < p ≤ 1 - 1/q.