Linear-Code Constructions and Bounds #
This module contains weight/projection lemmas, the singleton bound for arbitrary and linear codes, and basic constructions and dimension/rate facts for linear codes.
References #
- [Guruswami, V., Rudra, A., Sudan M., Essential Coding Theory, online copy][GRS25]
- [Bordage, S., Chiesa, A., Guan, Z., Manzur, I., All Polynomial Generators Preserve Distance with Mutual Correlated Agreement][BCGM25]
Singleton bound for arbitrary codes
A ModuleCode ι F A is an F-linear code of length indexed by ι over the alphabet A,
defined as an F-submodule of ι → A.
Instances For
The Hamming distance of a linear code can also be defined as the minimum Hamming norm of a non-zero vector in the code
Instances For
The dimension of a linear code.
Instances For
The length of a linear code.
Instances For
The rate of a linear code.
Instances For
ρ LC is the rate of the linear code LC.
Uses & to make the notation non-reserved, allowing ρ to also be used as a variable name.
Instances For
Let c be a word of length ι. For every finite ι-subset T , we define the projection of a
word c to T as the word obtained by restricting the indexing set of c to T.
We denote this by c|[T].
Definition 3.7 [BCGM25].
Instances For
Let T be a finite subset of ι. If every word in a collection lies in the projected code
C|[T], then so do all F-linear combinations of these.
A linear code is maximum distance separable (MDS) if its parameters meet the singleton bound.
Instances For
Every linear code over a field F is a finitely generated F-module.
Module code defined by left multiplication by its generator matrix.
For a matrix G : Matrix κ ι F (over field F) and module A over F, this generates
the F-submodule of (ι → A) spanned by the rows of G acting on (κ → A).
The matrix acts on vectors v : κ → A by : (G • v)(i) = ∑ k, G k i • v k
where G k i : F is the scalar and v k : A is the module element.
Instances For
Linear code defined by right multiplication by a generator matrix.
Instances For
Define a linear code from its (parity) check matrix
Instances For
Given a linear code of length ι and dimension dim over a field F, there exists a
dim × ι matrix over F which generates the code.
Theorem 2.2.7 [GRS25].
A matrix whose rows are a basis of a linear code over a field F.
Instances For
A linear code is equal to the submodule spanned by the rows of the matrix whose rows form a basis of the code.
A linear code is equal to the code generated by the rows of the matrix constructed from a basis of the code. Note: eq_span_rows is good for linear-algebra-style reasoning, whereas eq_fromRowGenMat_matrixFromBasis is essentially a coding theory language restatement of it.
The rank of the generator matrix equals the dimension of the linear code.
Given a linear code of length ι and dimension dim over a field F, we define its ι × dim
generator matrix as a matrix whose columns are an F-basis of the code.
Instances For
The minimum taken over the weight of codewords in a linear code.
Instances For
The Hamming distance between codewords equals to the weight of their difference.
The min distance of a linear code equals the minimum of the weights of non-zero codewords.
Singleton bound for linear codes
A computable version of the Hamming distance of a module code MC.