A subset C of the Hamming space {0,1}n of cardinality ∣C∣=r and with the minimal (Hamming) distance min[d(x,x′):x,x′∈C,x=x′]=δ is called an [n,r,δ]-code (not necessarily linear). An [n,r,δ]-code is called maximal if it is not contained in any [n,r+1,δ]-code. Prove that an [n,r,δ]-code is maximal if and only if for any y∈{0,1}n there exists x∈C such that d(x,y)<δ. Conclude that if there are δ or more changes made in a codeword then the new word is closer to some other codeword than to the original one.
Suppose that a maximal [n,r,δ]-code is used for transmitting information via a binary memoryless channel with the error probability p, and the receiver uses the maximum likelihood decoder. Prove that the probability of erroneous decoding, πerrml, obeys the bounds
1−b(n,δ−1)⩽πerrml⩽1−b(n,[(δ−1)/2])
where
b(n,m)=0⩽k⩽m∑(nk)pk(1−p)n−k
is a partial binomial sum and [⋅] is the integer part.