Documentation

TCSlib.CodingTheory.SingletonBound

Singleton Bound #

This file proves the Singleton bound: any code C of block-length n and minimum distance d over an alphabet α satisfies

|C| ≤ |α|^(n - d + 1).

Main Result #

References #

theorem CodingTheory.Codeword.singleton_bound {α : Type u_1} [Fintype α] [Nonempty α] [DecidableEq α] [Field α] {n : } (C : Code n α) (d : ) (h : distance C d) ( : Nontrivial α) :

Singleton bound: every code of block-length n and minimum distance d has at most |α|^(n - d + 1) codewords.

Proof sketch: project each codeword onto its first n - d + 1 coordinates. Two distinct codewords in C must have distinct projections (otherwise their distance would be less than d), so |C| is at most the number of possible projections.