← All solved theorems
Binary Symmetric Markov Source Entropy Rate & Shannon Lower Bound
proved in Lean
For a binary Markov source whose bits flip with probability q, the entropy rate is h(q), and the bits per symbol needed at error rate D are at least h(q) − h(D), where h is the binary entropy function.
Robert M. Gray; Toby Berger (1970) · Ch. 10 · Rate–Distortion Theory · Gray (1970/1971); Berger (1971), §4.3
Statement
For the stationary binary symmetric Markov source $\mathrm{BSMS}(q)$ with switching probability $q \in [0, 1]$ under block-averaged Hamming distortion:
- Its $(n+1)$-block entropy is $H(X^{n+1}) = 1 + n\,h(q)$.
- Its rate–distortion function $R(D) = \inf_{n \ge 1} R_n(D)/n$ satisfies $0 \le R(D) \le 1$ (for $D \ge 0$), $R(D) = 0$ for $D \ge 1/2$, and the Shannon lower bound
$$R(D) \ge h(q) - h(D) \qquad (0 \le D \le 1/2).$$
- For $0 < q < 1/2$, Gray's critical distortion $D_c(q) = \frac{1}{2}(1 - \sqrt{1 - (q/(1-q))^2})$ satisfies $0 < D_c(q) < 1/2$ (classically, Gray 1970 showed the lower bound is tight on $[0, D_c(q)]$; tightness itself is not yet formalized here).
How the proof works
Proved in Known/MarkovSource.lean via the reversible prepend construction bsmsBlock, exact block entropy induction, and a block-level Hamming-error Fano/entropy lower bound combined with concavity of binary entropy.
Lean declarations (5)
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 entropy_bsmsBlock : ∀ n : ℕ,
shannonEntropy (bsmsBlock q h0 h1 (n + 1)) = 1 + n * binaryEntropy q
| …
theorem rateDistortion_eq_zero_of_half_le {D : ℝ} (hD : 1 / 2 ≤ D) :
bsmsRateDistortion q h0 h1 D = 0 := by …
theorem shannon_lower_bound {D : ℝ} (hD0 : 0 ≤ D) (hD : D ≤ 1 / 2) :
binaryEntropy q - binaryEntropy D ≤ bsmsRateDistortion q h0 h1 D := by …
theorem criticalDistortion_pos {q : ℝ} (hq0 : 0 < q) (hq : q < 1 / 2) :
0 < criticalDistortion q := by …
theorem criticalDistortion_lt_half {q : ℝ} (hq0 : 0 < q) (hq : q < 1 / 2) :
criticalDistortion q < 1 / 2 := by …
Related open problems (1)
Open problems that build on, generalize, or are analogous to this theorem.