Lean, informalized

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

Exercise 10.20 - The minimum distance of a linear code read off the columns of its parity check matrix

Distance of a linear code read off its parity check columns.

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 is often given by a parity check matrix HH rather than by a list of its codewords. The exercise asks for the number dd such that any d−1d-1 columns of HH are linearly independent but some dd of them are linearly dependent, and how that number shows in the distance of the code.

Linear Codes

Let KK be a field. A linear code CC over KK with nn positions is a subspace of KnK^n, and its elements are its codewords. A parity check matrix HH over KK has one column for each of the nn positions and one row for each parity check. The code CC defined by HH is the kernel of HH, the set of words that pass every check: C={x∈Kn:Hx=0}.C = \{\, x \in K^n : Hx = 0 \,\}.(1)

The Hamming weight wt(x)\mathrm{wt}(x) of a word x∈Knx \in K^n is the number of its nonzero entries. The minimum distance d(C)d(C) of a linear code CC over KK is the least Hamming weight of a nonzero codeword, d(C)=min⁡{wt(x):x∈C,x≠0},d(C) = \min\{\, \mathrm{wt}(x) : x \in C,\ x \neq 0 \,\},(2)✦ and it is infinite when CC has no nonzero codeword.

The Claim

Theorem 1. Let HH be a parity check matrix over a field KK, let CC be the code it defines, and let dd be a natural number. Suppose every set of fewer than dd columns of HH is linearly independent, and some set of dd columns of HH is linearly dependent. Then the minimum distance of CC is dd: d(C)=d.d(C) = d.(3)✦

What Is Checked

The claim is stated over the minimum distance (2) of the code (1), for any field KK and any parity check matrix HH over it. What the library proves about these constructions is the equality (3) under the two conditions on the columns of HH.