Skip to main content
KetQat

Appearance

Theorem · introductory

Minimum distance and the errors a linear code handles

A linear code of minimum distance d detects any d − 1 errors, corrects any ⌊(d − 1)/2⌋ errors and fills in any d − 1 erasures, and d equals the smallest number of linearly dependent columns of a parity-check matrix.

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.

Let CC be an [n,k,d]q[n, k, d]_q linear code with parity-check matrix HH.

  1. Syndromes label cosets. For a codeword cc and an error ee, s(c+e)=s(e)s(c + e) = s(e). Two errors e,e′e, e' have the same syndrome if and only if e−e′∈Ce - e' \in C.
  2. Distance from the check matrix. dd is the smallest number of columns of HH that are linearly dependent.
  3. Detection. Every nonzero error of weight at most d−1d - 1 has a nonzero syndrome, and some error of weight dd has syndrome zero.
  4. Correction. The errors of weight at most tt have pairwise distinct syndromes, and so can all be corrected, if and only if 2t≤d−12t \le d - 1.
  5. Erasures. If at most d−1d - 1 coordinates of a codeword are erased, the codeword is determined by the remaining coordinates; some set of dd erased coordinates does not have this property.

Holds when

  • C⊆FqnC \subseteq \F_q^n is a linear code with parity-check matrix HH and minimum distance dd.
  • Errors are additive, y=c+ey = c + e, and an erasure is the loss of a coordinate whose position is known.

Proof

Proof that the minimum distance governs detection, correction and erasure recoveryMachine-checked

1. The map s(y)=HyTs(y) = H y^{T} is linear with kernel CC. Hence s(c+e)=s(c)+s(e)=s(e)s(c + e) = s(c) + s(e) = s(e), and s(e)=s(e′)s(e) = s(e') if and only if s(e−e′)=0s(e - e') = 0, that is, e−e′∈Ce - e' \in C.

2. Write h1,…,hnh_1, \dots, h_n for the columns of HH. A word cc lies in CC exactly when ∑icihi=0\sum_i c_i h_i = 0, which is a linear dependence among the columns indexed by the support of cc. A nonzero codeword of weight ww therefore exhibits ww dependent columns, and a dependence among ww columns with all coefficients nonzero is a codeword of weight ww. The smallest such ww is on one side the minimum weight dd and on the other the smallest number of dependent columns.

3. An error e≠0e \neq 0 has s(e)=0s(e) = 0 if and only if e∈Ce \in C, and nonzero codewords have weight at least dd, with equality for some codeword.

4. Suppose 2t≤d−12t \le d - 1 and let e≠e′e \ne e' have weight at most tt. Then 0<wt⁡(e−e′)≤2t<d0 < \operatorname{wt}(e - e') \le 2t < d, so e−e′∉Ce - e' \notin C and by item 1 the syndromes differ. A decoder that maps each syndrome to the unique error of weight at most tt producing it, and subtracts that error, recovers cc. Conversely, if 2t≥d2t \ge d, take a codeword cc of weight dd and split its support into a set of size ⌈d/2⌉\lceil d/2 \rceil and a set of size ⌊d/2⌋\lfloor d/2 \rfloor, both at most tt. Let ee agree with cc on the first set and vanish elsewhere, and put e′=e−ce' = e - c. Both have weight at most tt, they are distinct, and e−e′=c∈Ce - e' = c \in C, so they share a syndrome and cannot both be corrected.

5. Let EE be the set of erased positions, ∣E∣≤d−1\abs{E} \le d - 1. If two codewords c,c′c, c' agree outside EE, then c−c′c - c' is a codeword supported inside EE, of weight at most d−1d - 1, hence zero. So the unerased coordinates determine the codeword. If EE is the support of a codeword cc of weight dd, then 00 and cc agree outside EE and cannot be told apart.

Builds on

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)

    All five items re-proved (syndrome cosets, distance = least number of dependent columns of H, detection, correction iff 2t <= d-1 including the converse via a weight-d codeword, erasures) and compared with Guruswami-Rudra-Sudan, Essential Coding Theory (open draft), Defs 1.3.7-1.3.8, 1.4.1, Props 2.3.5 and 2.3.7; Huffman-Pless not openly readable; Crossref metadata checked.

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 759ed9519480fa2e. Source file knowledge/records/theorem/minimum-distance-and-error-correction.md in the content repository (readable there once it is public).