TOPICS
Search

Linear Code


A linear code over a finite field F_q with q elements is a linear subspace C subset= F_q^n. The vectors in this subspace are called codewords. A linear error-correcting code uses a large minimum Hamming distance between distinct codewords to permit recovery from errors by choosing a nearest codeword.

A low-density parity-check code is specified by a sparse parity check matrix and can be represented by a Tanner graph (Gallager 1962, Tanner 1981).

The dual code C^_|_ consists of the vectors orthogonal to every codeword of C. In a random-access model, encoded coordinates are read independently and uniformly with replacement. A coordinate is recoverable once its value is determined by the observed coordinates for every codeword consistent with those observations. Let a_i(C) be the expectation value of the number of reads needed to recover coordinate i. A coordinate that is identically zero is known without any reads, so its recovery time is zero. The linear code is called recovery balanced when a_i(C) is independent of i (Gruica et al. 2025).

MathIsEvenEasier (2026) reported the identity

 a_i(C)+a_i(C^_|_)=n,

where n is the length of the linear code. It implies that C is recovery balanced iff its dual code is recovery balanced, answering Conjecture 1 of Gruica et al. (2025). For a self-dual linear code, every a_i(C) would equal n/2. Nonuniform sampling is outside the identity; requiring at least one read even for an identically zero coordinate changes its right-hand side. GPT-6 Astra developed the proof and Lean formalization under human direction. As of Oct. 7, 2026, a public continuous-integration run had compiled all 13 positive modules, rejected two false controls, and reported only standard Lean axioms for the final theorem, but independent specialist review had not been reported (VibeMathed 2026).

A locally correctable code allows a randomized algorithm to recover a requested coordinate of a corrupted codeword from a bounded number of queries (Dvir 2016).

The Gilbert-Varshamov bound gives a classical existence benchmark for large linear codes of specified minimum Hamming distance. Yuan and Zhu (2026) improved its finite-length cardinality guarantee by a factor of order n at fixed alphabet size and relative distance, without changing the leading asymptotic rate.

For binary linear codes of length 65 and dimension 9, the largest possible minimum Hamming distance is 28 (Tang and Fan 2026). The shortest binary linear codes of dimension 9 and minimum Hamming distance at least 29 and 30 have lengths 66 and 67, respectively. Tang and Fan (2026) also determined that length 122 and dimension 10 permit maximum minimum Hamming distance 56. Their nonexistence argument uses published computer-assisted bounds for binary linear codes of dimensions eight and nine.

For every integer m>=1, Kölsch (2026) constructs a binary linear code with parameters

 [M_m-1,M_m-10m,5]_2,  M_m=2^(5m-1)+2^(3m-1)+2^(2m-1).

The minimum distance is exactly 5, so the code corrects two errors. Every binary linear code of the same length with minimum distance at least 5 has dimension at most M_m-10m+1. Thus the construction is within one dimension of optimal, without asserting exact optimality. It is obtained from a Sidon set in an elementary Abelian 2-group by using its translated nonzero elements as columns of a parity check matrix.

A binary linear code on the possible edges of a labeled graph can serve as a graph code, where the nonzero words satisfy a specified subgraph condition.


See also

Code, Coding Theory, Dual Code, Error-Correcting Code, Gray Code, Huffman Coding, ISBN, Maximum Distance Separable Code, MDS Conjecture, Singleton Bound, UPC

Explore with Wolfram|Alpha

References

Dvir, Z. "Locally Correctable Codes." Lecture 8 in Linear Locally Decodable Codes. 2016. https://www.cs.princeton.edu/~zdvir/LDCnotes/LDC8.pdf.Gallager, R. G. "Low-Density Parity-Check Codes." IRE Trans. Inform. Th. 8, 21-28, 1962. https://doi.org/10.1109/TIT.1962.1057683.Gruica, A.; Bar-Lev, D.; Ravagnani, A.; and Yaakobi, E. "A Combinatorial Perspective on Random Access Efficiency for DNA Storage." IEEE Trans. Inform. Th. 71, 9395-9412, 2025. https://doi.org/10.1109/TIT.2025.3623202.Kölsch, L. "The Walsh Spectrum of the Dobbertin APN Function." 13 Nov 2026. https://arxiv.org/abs/2611.18907.MathIsEvenEasier. "Coordinatewise Duality for Random-Access Recovery Times." Oct. 4, 2026. https://github.com/MathIsEvenEasier/dna-recovery-duality/blob/main/recovery-duality.tex.Tang, Z. and Fan, X. "There Is No Binary Linear [65,9,29] Code." 18 Nov 2026. https://arxiv.org/abs/2611.24997.Tanner, R. M. "A Recursive Approach to Low Complexity Codes." IEEE Trans. Inform. Th. 27, 533-547, 1981. https://doi.org/10.1109/TIT.1981.1056404.VibeMathed. "Recovery Balance Is Preserved by Duality." Oct. 4, 2026. https://vibemathed.com/problem/recovery-balance-is-preserved-by-duality.Yuan, C. and Zhu, R. "A Theta(n)-Multiplicative Improvement of the Gilbert-Varshamov Bound for Linear and Quantum Codes." 12 Nov 2026. https://arxiv.org/abs/2611.16447.

Referenced on Wolfram|Alpha

Linear Code

Cite this as:

Weisstein, Eric W. "Linear Code." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/LinearCode.html

Subject classifications