If a uniform index has possibilities and every proposed success neighbourhood contains at most possibilities, then any estimator has failure probability at least the displayed expression. Condition on its success indicator: conditional entropy is at most . Subtract this from to bound the mutual information and rearrange. A metric Hamming ball gives approximate recovery rather than exact index decoding.
For a block code, the minimum distance of a code is the minimum Hamming distance between distinct codewords, where Hamming distance counts positions in which two equal-length binary strings differ. We use equal-length codewords, so the fact that the codomain allows arbitrary finite strings creates no ambiguity. Minimum distance means every two distinct codewords differ in at least positions and some pair differs in exactly .
Changing at most bits cannot turn a codeword into another codeword. Testing membership therefore detects every such nonzero error. For , suppose a received word lies within distance of two codewords. The triangle inequality would put their mutual distance at most , a contradiction. Hence the radius- Hamming balls are disjoint and nearest-codeword decoding corrects all errors of weight at most .
For an alphabet of size , start with and the standard unit vectors in . Their minimum distance of a code is one. Repeat every coordinate times; every distance is multiplied by , so the resulting code has minimum distance of a code exactly . A one-letter alphabet has no pair of distinct codewords and therefore no finite minimum distance of a code under this definition; the construction concerns the usual nontrivial coding situation.
For , let be the binary matrix whose columns are all distinct nonzero vectors of . The binary Hamming code is . Its parity-check matrix has rank since its columns include the standard basis. Hence is linear of length and dimension .
No word of weight one or two lies in , since columns are nonzero and distinct; three columns sum to zero, so the minimum distance of a code is exactly three. The syndrome of a single-bit error is its column of , uniquely identifying the erroneous position. The possible syndromes correspond to no error or exactly one of single-bit errors. Alternatively, every radius-one Hamming ball has words and
Disjoint balls therefore cover the whole word space. This proves linearity, one-error correction and perfection. For , the parameters are , giving the 16 messages needed below.
In natural logarithms, Fano's inequality for a uniform index among alternatives states . The mutual information is at most the average Kullback-Leibler divergence to any fixed reference law. With the supplied packing, nearest-neighbour decoding turns partition error below half the separation into correct decoding. Thus the packing alone proves a bound at radius , with the unavoidable term. It does not automatically prove the much larger printed radius.
A list-decoding Fano inequality supplies the intended near-half error threshold. Assume , since otherwise that threshold is nonpositive and its event is automatic. Take a uniform prior on all unlabelled balanced partitions, and let . A Hamming ball of radius less than around any estimated partition contains at most such partitions. This follows by selecting the representative closer to the estimated group; each unlabelled partition contributes at most one such representative because . The entropy bound for a Hamming ball gives , where is the binary entropy function measured in natural logarithms. Its curvature gives . Also , so
Use the all- independent-edge law as a reference. Only the crossing pairs differ; the preceding Bernoulli distribution divergence estimate gives . Hence . Whenever the denominator is positive, the list-decoding Fano inequality proves the finite-sample answer
For , this is at least . If in addition , it implies the intended form with . This proves the claimed information-theoretic scale with its needed finite-sample qualifications.
As a uniform finite-sample assertion for every positive , the printed form is false. At every partition has the same data law, and a uniformly random balanced guess has a positive chance of being correct, giving error strictly below one. Such randomness can also be extracted from the finite graph sample: assign distinct graph outcomes to the finitely many balanced partitions; under the common law every selected outcome has positive probability. The worst error remains strictly below one for sufficiently small positive , by continuity. The printed lower bound tends to one as for any fixed universal , which contradicts this. The entropy correction cannot be dropped without an asymptotic or signal-size condition.
Let and let be the parity-check matrix whose columns are the distinct nonzero vectors of the finite field vector space . The binary Hamming code is
A perfect code has Hamming balls of radius about its codewords partitioning the whole ambient space, where is its minimum Hamming distance of a linear code.
No column of is zero and no two columns agree, so has no word of Hamming weight one or two. Three suitable columns sum to zero, so . For any received word , its syndrome is either zero or is the unique column of equal to that syndrome. In the first case ; in the second,
so is at Hamming distance one from a codeword. Uniqueness follows from . Thus the radius-one balls partition , and the code is perfect.
For , the dual code is the binary simplex code of length seven. Every nonzero dual word evaluates a nonzero linear functional on the seven nonzero vectors of , and exactly four of those evaluations are one. Hence every nonzero word of has weight
Perfect code 2026-10-03
A code of minimum distance is perfect if its Hamming balls of radius partition the ambient word space. Every word then has a unique nearest codeword within the code's error-correction radius.