The Exercise
A classical linear code is often handed over as a generator matrix , an matrix whose columns span the code inside the space of words of length . The exercise asks to show that the code is weakly self-dual, contained in its own dual, if and only if .✦
Codes and Their Duals
Fix a field . A linear code of length over is a subspace of , and its elements are its codewords. The code generated by an matrix over is the linear code of length given by the column space of , the set of codewords obtained by encoding each message of symbols: (1)
Two words are orthogonal when their dot product vanishes, (2) The dual code of a linear code is the linear code of all words orthogonal to every codeword of , (3)✦ A linear code is weakly self-dual if it is contained in its dual, (4)✦
The Claim
Theorem 1. Let be an matrix over , and let be the code it generates. Then (5)✦
What Is Checked
The claim is stated over the code generated by an arbitrary matrix over and over weak self-duality (4), with the dual (3) taken under the dot product of (2).