Singleton, Hamming, and Gilbert–Varshamov coding bounds
ProvedProofsInTheBook.Chapter38.chapter38book-chapter-42graph-theorylean4proofs-from-the-book
Let satisfy , , and . Let be a finite set of words in , with Hamming distance at least between distinct words. Let be the cardinality of the radius- Hamming ball centered at the zero word, for any . Then
and there exists a finite code whose distinct words also have distance at least and which satisfies
These are finite Singleton, sphere-packing, and Gilbert–Varshamov bounds. No asymptotic capacity or entropy formula is asserted.
Preamble
import Mathlib import Definitions.Def_ProofsInTheBook_Chapter38 open Finset open ProofsInTheBook.Chapter38
Formal statement
theorem ProofsInTheBook.Chapter38.chapter38 {q n t d : ℕ} (hq : 0 < q) {code : Finset (QaryWord q n)}
(hmin : ∀ c₁ ∈ code, ∀ c₂ ∈ code, c₁ ≠ c₂ → d ≤ hammingDist c₁ c₂)
(hd_pos : 0 < d) (ht : 2 * t < d) :
code.card ≤ q ^ (n + 1 - d) ∧
code.card * qaryHammingBallVolume q n t ≤ q ^ n ∧
∃ gvCode : Finset (QaryWord q n),
(∀ c₁ ∈ gvCode, ∀ c₂ ∈ gvCode, c₁ ≠ c₂ → d ≤ hammingDist c₁ c₂) ∧
q ^ n ≤ gvCode.card * qaryHammingBallVolume q n (d - 1) := by sorrySource
Martin Aigner and Günter M. Ziegler, Proofs from THE BOOK, 6th edition, Springer, 2018, Chapter 42, “Communicating without errors”, pp. 291–300 (https://doi.org/10.1007/978-3-662-57265-8_42). Formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter38.lean#L367. The chapter reference identifies the topic; it does not claim the Lean development reproduces every argument of that chapter.