Residual codes, the Griesmer bound, and simplex codes #
Given a linear code C : Submodule F (ι → F) over a finite field F of size q = |F| and a
codeword c ∈ C, the residual code Cslib.Code.residualLinear C c punctures C to the
n - wt(c) coordinates {i : ι // c i = 0} where c vanishes [MWS77]. Summing
the Hamming weights of the q translates x - a • c (a : F) gives the identity
∑_{a : F} wt(x - a • c) = q * wt(x|_{c = 0}) + (q - 1) * wt(c), from which both structural
properties of residual codes follow:
- Every nonzero codeword of
residualLinear C chas weight at least(q * d - (q - 1) * wt(c)) ⌈/⌉ qwheneverd ≤ minDist C(Cslib.Code.le_minDist_residualLinear). - Whenever
c ≠ 0and(q - 1) * wt(c) < q * d, the kernel of restriction to{c = 0}onCis spanned byc, sodim_F (residualLinear C c) + 1 = dim_F C(Cslib.Code.finrank_residualLinear_add_one).
Applying both properties inductively at a minimum-weight nonzero codeword yields the Griesmer
bound (Griesmer 1960; Solomon and Stiffler 1965; [MWS77]): every [n, k, d]_q
linear code satisfies
∑_{i < k} d ⌈/⌉ q ^ i ≤ n (Cslib.Code.sum_ceilDiv_pow_le_card). Since d ⌈/⌉ q ^ 0 = d and
1 ≤ d ⌈/⌉ q ^ i for d ≥ 1, the Griesmer sum is at least d + (k - 1)
(Cslib.Code.add_sub_one_le_sum_ceilDiv_pow), recovering and refining the linear Singleton bound
k + d ≤ n + 1.
Finally, evaluating k-dimensional linear forms x ⬝ᵥ · on the projective representatives
Cslib.Code.SimplexPoint F k whose first nonzero coordinate is 1 defines the $q$-ary simplex code Cslib.Code.simplexCode F k of length (q ^ k - 1) / (q - 1) = ∑_{i < k} q ^ i
(Cslib.Code.card_simplexPoint), dimension k (Cslib.Code.finrank_simplexCode), constant
nonzero codeword weight q ^ (k - 1) (Cslib.Code.hammingNorm_simplexEncode), and minimum
distance q ^ (k - 1) (Cslib.Code.minDist_simplexCode), attaining the Griesmer bound with exact
equality for every finite field F and every k ≥ 1 (Cslib.Code.sum_ceilDiv_pow_simplexCode).
Main definitions #
Cslib.Code.residualLinear: the residual code ofCwith respect to a wordc.Cslib.Code.SimplexPoint: normalized projective points inFin k → Fwith leading nonzero coordinate1.Cslib.Code.simplexEncode,Cslib.Code.simplexCode: the `$q$-ary simplex encoding map and linear code.
Main results #
Cslib.Code.le_minDist_residualLinear: lower bound on the minimum distance ofresidualLinear.Cslib.Code.finrank_residualLinear_add_one: dimension ofresidualLinearwhen(q - 1) * wt(c) < q * d.Cslib.Code.sum_ceilDiv_pow_le_card: the Griesmer bound for linear codes over finite fields.Cslib.Code.add_sub_one_le_sum_ceilDiv_pow: comparison showing the Griesmer bound refines the linear Singleton bound.Cslib.Code.card_simplexPoint,Cslib.Code.simplexEncode_injective,Cslib.Code.finrank_simplexCode,Cslib.Code.hammingNorm_simplexEncode,Cslib.Code.minDist_simplexCode: parameters[(q ^ k - 1) / (q - 1), k, q ^ (k - 1)]_qand constant weight of `$q$-ary simplex codes.Cslib.Code.sum_ceilDiv_pow_simplexCode: `$q$-ary simplex codes meet the Griesmer bound with equality.
References #
- [F. J. MacWilliams, N. J. A. Sloane, The Theory of Error-Correcting Codes] [MWS77]
Residual codes #
The residual code Res(C, c) of a linear code C with respect to a word c : ι → M:
the puncturing of C to the coordinates {i : ι // c i = 0} where c vanishes.
Minimum distance of a residual code: if C has minimum distance at least d over a finite
field F of size q = |F| and c ∈ C, then
((q * d - (q - 1) * wt(c)) ⌈/⌉ q : ℕ∞) ≤ minDist (residualLinear C c).
Dimension of a residual code: if C has minimum distance at least d over a finite field
F of size q = |F| and c ∈ C is a nonzero codeword with (q - 1) * wt(c) < q * d, then
dim_F (residualLinear C c) + 1 = dim_F C.
The Griesmer bound #
The Griesmer bound (Griesmer 1960; Solomon and Stiffler 1965; [MWS77]):
for any linear code C of length n = |ι| and minimum distance at least d over a finite field
F of size q = |F|, ∑_{i < dim_F C} d ⌈/⌉ q ^ i ≤ n.
For 1 ≤ d, 1 ≤ k, and 1 ≤ q, the Griesmer sum ∑_{i < k} d ⌈/⌉ q ^ i is at least
d + (k - 1), showing that sum_ceilDiv_pow_le_card refines the linear Singleton bound
k + d ≤ n + 1.
`$q$-ary simplex codes and tightness of the Griesmer bound #
Over a finite field F of size q = |F|, there are ∑_{i < k} q ^ i = (q ^ k - 1) / (q - 1)
normalized projective points in SimplexPoint F k.
Linear encoding map of the $q$-ary simplex code: evaluates x : Fin k → F by dot product on
each normalized projective point p : SimplexPoint F k.
The $q$-ary simplex code of dimension k over F, as a submodule of
SimplexPoint F k → F.
simplexEncode F k is injective over every field F.
The $q$-ary simplex code simplexCode F k has dimension k.
**Constant weight of $q$-ary simplex codewords**: over a finite field Fof sizeq = |F|, every nonzero message x : Fin k → Fencodes to a codeword of Hamming weightq ^ (k - 1)`.
For k ≥ 1, the $q$-ary simplex code simplexCode F k has minimum distance q ^ (k - 1).
Tightness of the Griesmer bound: for every finite field F and every dimension k ≥ 1,
simplexCode F k meets sum_ceilDiv_pow_le_card with exact equality.