An error correcting code has disjoint Hamming balls.
See Hamming ball, error detection and correction
If is a -error correcting code, then for all codewords with ,
the Hamming balls
Proof
Suppose , and let be the largest integer .
Suppose by way of contradiction that there exist in such that .
Then there exists some .
Since ,
Similarly,
By definition, for any .
By triangle inequality, if is -error correcting.
Therefore,
Thus , a contradiction.
QED