The easiest way to define the Hamming code, which is
a vector space over
, is by defining a
generator
matrix. Incidently, calling it ``the'' Hamming code is
a slight abuse of terminology. First, for each integer
there is a different Hamming code.
Second, we often
implicitly identify two equivalent codes, so two
equivalent forms of a Hamming code are regarded as the
same.
:
The Hamming
-code
has parity check matrix
proof: Indeed, if
has a
code wode of weight 1 then the parity check matrix
of
would have to have a column which consists of the
zero vector, contradicting the definition of
.
Likewise,
if
has a
code wode of weight 2 then the parity check matrix
of
would have to have two identical columns,
contradicting the definition of
.
Thus
.
Since