Singleton Bound
Statement
For a binary code with minimum Hamming distance :
A code meeting the bound with equality is a Maximum Distance Separable (MDS) code. In the binary case MDS codes are trivial (repetition codes and their duals), but over larger alphabets Reed-Solomon codes achieve the bound for every choice of and .
For a linear code over : , i.e., (the Singleton bound for linear codes).
Visualization
The bound in the binary linear code setting (, so ):
| Code | MDS? | ||||
|---|---|---|---|---|---|
| 7 | 4 | 3 | 5 | No | |
| 7 | 1 | 7 | 1 | Yes | |
| 7 | 6 | 2 | 6 | Yes | |
| 4 | 2 | 3 | 2 | Yes |
For the Hamming code: . Slack of 1.
Geometric picture for : delete the first coordinates of each codeword. If two codewords agreed on all remaining coordinates, they would differ in at most of the first positions, contradicting . So the projection is injective: .
Proof Sketch
- Fix an arbitrary set of coordinate positions.
- Project all codewords onto the remaining coordinates.
- If two distinct codewords agree on all remaining coordinates, they differ in at most of the deleted positions, so — contradiction.
- Therefore the projection is injective, and .
Connections
The Singleton bound is weaker but simpler than the Hamming BoundHamming BoundA binary code correcting t errors satisfies |C| * sum_{i=0}^{t} C(n,i) <= 2^n; the (7,4) Hamming code meets itRead more →: Singleton deletes coordinates, Hamming packs spheres. Both bounds appear in the analysis of Reed-Solomon codes, which meet Singleton and are related to the Binomial TheoremBinomial TheoremExpanding powers of a sum via binomial coefficientsRead more → via their polynomial structure.
Lean4 Proof
/-- Verify the Singleton bound for the [7,4,3] binary Hamming code:
2^4 <= 2^(7-3+1) = 2^5. -/
theorem singleton_bound_74 : (2 : ℕ) ^ 4 ≤ 2 ^ (7 - 3 + 1) := by
norm_num
/-- A concrete MDS example: [4,2,3] code meets the bound with equality. -/
theorem singleton_mds_42 : (2 : ℕ) ^ 2 = 2 ^ (4 - 3 + 1) := by
norm_num