Lean, informalized

Nielsen & Chuang · Chapter 10, Quantum error-correction · p. 449

Exercise 10.21 - The minimum distance of a nonzero linear code is at most its length minus its dimension plus one

Redundancy bounds the minimum distance of a linear code.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The Exercise

A classical linear code sends a message of kk symbols from a field KK as a word of nn symbols, so that n−kn - k of them are redundant and protect the message against errors. How many errors the code can catch is measured by its minimum distance dd. The exercise asks how large dd can be once nn and kk are fixed; its answer, the Singleton bound, limits dd by the redundancy alone.

Linear Codes

A linear code CC of length nn over a field KK is a subspace of KnK^n, the space of words c=(c1,…,cn)c = (c_1, \dots, c_n) with entries in KK. A codeword of CC is an element c∈Cc \in C. The dimension k=dim⁡KCk = \dim_K C of the code is the number of message symbols it carries. The zero code is the subspace {0}\{0\}.

The Hamming weight wt⁡(c)\operatorname{wt}(c) of a word cc in KnK^n is the number of its nonzero entries. The minimum distance d(C)d(C) of a linear code CC is the least Hamming weight of a nonzero codeword, d(C)=min⁡{wt⁡(c):c∈C,c≠0},d(C) = \min \{\, \operatorname{wt}(c) : c \in C,\ c \neq 0 \,\},(1)✦ and the zero code, having no nonzero codeword, has d(C)=∞d(C) = \infty.

The Claim

Theorem 1. Let CC be a linear code of length nn and dimension kk over a field KK, other than the zero code. Then the minimum distance of CC satisfies d(C)≤n−k+1.d(C) \le n - k + 1.(2)✦

What Is Checked

The claim is stated over the minimum distance d(C)d(C) of (1), the length nn of the code and its dimension kk over KK. What the library proves about them is the inequality (2) between the three numbers.