The Exercise
The repetition code protects a message by copying it. Each of message symbols, taken from a field , is written down times, turning a message of length into a word of length . The exercise asks for a parity check matrix for this code: a matrix with linearly independent rows whose kernel is exactly the code.
The Repetition Code
Over a field , the generator matrix of the repetition code, of length and encoding symbols, is the matrix whose rows are labelled by pairs of a message position and a copy number , whose columns are labelled by message positions , and whose entries are (1)✦
The repetition code over is the linear code of length , a subspace of with coordinates labelled by the same pairs , whose codewords are the images of the messages under : (2)✦
With copies, the parity check matrix of the repetition code has rows, labelled by pairs with and , and columns, labelled by the coordinates of the code; its entries are (3)✦
The Claim
Theorem 1. Let be a field, a natural number and a number of copies, let be the repetition code over and its parity check matrix. The kernel of is the code, (4)✦ and the rows of are linearly independent over : (5)✦
What Is Checked
The claim is stated over the repetition code (2), the image of the generator matrix (1), and over the matrix of (3).
What the library proves about these constructions is the theorem’s two statements, (4) and (5).