The Exercise
A classical message of symbols is protected against noise by sending every symbol times, so that it goes out as a word of length ; with and the message is sent as . The encoding is linear: a generator matrix with rows and columns takes a message to its codeword . The exercise asks for , and for the code it generates to be an code, a subspace of dimension in the words of length .
The Repetition Code
The symbols are elements of a field , bits when , and a message is a vector in . The positions of a word of length are labelled by pairs , with running from to and from to , so that a word is a vector of with one entry for each pair.
The generator matrix of the repetition code is the matrix over with rows labelled by the positions , columns labelled by the symbols , and entries (1)✦
The repetition code over is the linear code of length , a subspace of , whose codewords are the images of all messages under : (2)✦
The Claim
Theorem 1. Let be a field and and natural numbers. For every message , the codeword carries at each of the positions of the th symbol: (3)✦ If , the repetition code has dimension : (4)✦
For this is the exercise: is an code with generator matrix .
What Is Checked
The claim is stated over the generator matrix of (1) and the repetition code of (2) that it generates. About these two constructions the library proves the encoding rule (3), for every , and the dimension (4), for .