Exercise10.28 - The words passing three parity checks are exactly the images of a seven by four matrix
A transposed check matrix generates the Hamming 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 word of seven bits is a vector in , where and all arithmetic is modulo . A generator matrix of a code of such words is a matrix over whose images , as the message runs over , are exactly the words of . The Hamming code is given instead by three parity checks on the seven bits, the rows of a parity check matrix over : the words of are the with .
The exercise gives a matrix , the parity check matrix of a second code , and asks to verify that its transpose is a generator matrix of , so that .
Three Matrices
The parity check matrix of the Hamming code is the matrix over (1)✦ whose th column is written in binary, most significant bit on top.
The matrix of the exercise is the matrix over (2)✦The matrix is the matrix over obtained by transposing ,(3)✦ Applied to a message , it gives the word , whose first four bits are those of and whose last three are the parities , and .
The Claim
Theorem 1. Let be the parity check matrix(1) of the Hamming code and the transpose (3) of .Then is a generator matrix of the Hamming code: (4)✦
What Is Checked
The claim is stated over the matrices (1), (2) and (3).
What the library shows about them is the equality (4).