← All solved theorems
Fano's Inequality (Sharp and General Forms)
proved in Lean
If you guess X from an observation Y and are wrong with probability Pe, the remaining uncertainty about X is bounded by a simple function of Pe and the alphabet size. It drives most converse (impossibility) proofs in coding theory.
Robert M. Fano (1952) · Ch. 2 · Entropy, Divergence & Inequalities · Cover & Thomas, Theorem 2.10.1; El Gamal & Kim, §2.1
Statement
For any joint distribution $P_{XY}$ on $\mathcal{X} \times \mathcal{Y}$ with $|\mathcal{X}| \ge 2$ and any estimator $g : \mathcal{Y} \to \mathcal{X}$ with error probability $P_e = \Pr[g(Y) \ne X]$, $$H(X \mid Y) \le h(P_e) + P_e \log_2(|\mathcal{X}| - 1) \le h(P_e) + P_e \log_2 |\mathcal{X}|.$$
How the proof works
Proved cleanly in one shot via Gibbs' inequality (klDivergence_nonneg) against the isotropic-error reference distribution $Q(x, y) = (1 - P_e) P_Y(y)$ for $x = g(y)$ and $Q(x, y) = \frac{P_e}{|\mathcal{X}| - 1} P_Y(y)$ for $x \ne g(y)$, handling the boundary cases $P_e \in \{0, 1\}$ without auxiliary random variables.
Lean declarations (2)
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 fano_inequality (P : ProbDist (α × β)) (g : β → α) (hcard : 2 ≤ Fintype.card α) :
condEntropy P ≤
binaryEntropy (estErrorProb P g) +
estErrorProb P g * log2 ((Fintype.card α : ℝ) - 1) := by …
theorem fano_inequality_card [Nonempty α] (P : ProbDist (α × β)) (g : β → α) :
condEntropy P ≤
binaryEntropy (estErrorProb P g) +
estErrorProb P g * log2 (Fintype.card α : ℝ) := by …
Related open problems (5)
Open problems that build on, generalize, or are analogous to this theorem.