The space of all vectors orthogonal to a code is another
code. Since the ground field is finite, it is possible for
all the codewords in a code to be orthogonal to
themselves!
Definition 3.4.29
If is a -code then
the dual code is a
-code defined by
where
for all
and
.
Example 3.4.30
As a very simple example, let be the binary repetition
code of length :
This is self-dual: .
Finally, we can show that a parity check matrix exists.
Proposition 3.4.31
Let be a linear code.
A parity check matrix of exists.
proof:
Any generating matrix for is a
parity check matrix of .