Skip to main content
KetQat

Appearance

Proof · introductory

Proof of the Hamming bound

Balls of radius t around distinct codewords are disjoint by the triangle inequality; counting their points gives the bound.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

For c∈Anc \in A^n let Bt(c)={ y∈An:d(y,c)≤t }B_t(c) = \{\, y \in A^n : d(y, c) \le t \,\}. A word at distance exactly ii from cc is obtained by choosing ii positions and, in each, one of the q−1q - 1 other symbols, so

∣Bt(c)∣  =  ∑i=0t(ni) (q−1)i.\abs{B_t(c)} \;=\; \sum_{i=0}^{t} \binom{n}{i}\,(q-1)^{i} .

Let c≠c′c \ne c' be codewords and suppose y∈Bt(c)∩Bt(c′)y \in B_t(c) \cap B_t(c'). The Hamming distance is a metric, so d(c,c′)≤d(c,y)+d(y,c′)≤2t≤d−1d(c, c') \le d(c, y) + d(y, c') \le 2t \le d - 1, contradicting the minimum distance. The balls around the ∣C∣\abs{C} codewords are therefore pairwise disjoint subsets of AnA^n, and

∣C∣⋅∑i=0t(ni) (q−1)i  ≤  q n.\abs{C} \cdot \sum_{i=0}^{t} \binom{n}{i}\,(q-1)^{i} \;\le\; q^{\,n} .

Equality holds exactly when the balls cover AnA^n.

Proves

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. R. W. Hamming (1950). Error Detecting and Error Correcting Codes. Bell System Technical Journal 29 (2), 147-160. doi:10.1002/j.1538-7305.1950.tb00463.x
  2. W. Cary Huffman, Vera Pless (2003). Fundamentals of Error-Correcting Codes. Cambridge University Press. doi:10.1017/CBO9780511807077

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Proof re-derived line by line against the statement of equation/hamming-bound (ball-size count, disjointness via the triangle inequality with 2t <= d-1, equality iff the balls cover A^n). Reference metadata for hamming-1950 and huffman-pless-2003 compared with Crossref (title, authors, year, venue). Huffman-Pless not openly readable; the argument is the standard sphere-packing proof found in Hamming (1950) and was checked independently.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 9e69db13443bbd92. Source file knowledge/records/proof/hamming-bound.md in the content repository (readable there once it is public).