To correct every pattern of errors by nearest-codeword decoding, it suffices to have minimum Hamming distance : the corresponding radius- Hamming balls are disjoint. For , the relative distance tends to , so the asymptotic Gilbert–Varshamov bound guarantees code rate at least in the limit. Therefore its immediate strict-rate guarantee is
The binary entropy is strictly increasing from zero to one on , since on . Let denote the inverse on this interval. The asymptotic condition becomes
There is also a finite-length boundary refinement for the precise requirement of correcting errors. If , then each weight for is at least . Expanding gives the entropy bound for a Hamming ball
The case follows directly from . Taking and using monotonicity of the binary entropy, the Gilbert–Varshamov bound yields
Thus the worst-case correction guarantee from the Gilbert–Varshamov bound even includes for the exact radius , with the number of messages rounded to an integer when necessary. No positive-rate guarantee of this form is obtained for ; one must not extend the increasing-entropy calculation past . Failure of this sufficient bound does not rule out better codes.
By contrast, the Shannon second coding theorem gives vanishing error probability on the binary symmetric channel whenever
The factor of two comes from demanding disjoint correction balls for every error pattern of a prescribed weight. This is a worst-case distance requirement, and the Gilbert–Varshamov bound is itself only a sufficient existence bound. The Shannon second coding theorem controls the probability of decoding failure for the random channel; rare bad patterns may remain.
Finally, the number of actual errors has binomial distribution with mean . Correcting exactly its mean does not itself imply error probability tending to zero. To get that conclusion from the distance construction when , choose with and , and correct errors. The weak law of large numbers then makes the probability of exceeding the correction radius tend to zero.
Figure 1.
Binary symmetric channel capacity and Gilbert–Varshamov worst-case correction rate
. Details.
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.
A binary code rate is guaranteed with correction of every error pattern of Hamming weight at most when and . Choose minimum Hamming distance . The Gilbert–Varshamov bound and entropy bound for a Hamming ball give at least codewords. To deduce vanishing error probability for a binary symmetric channel with crossover probability , use strict inequality in the rate condition and a correction radius ; the weak law of large numbers then controls the tail. Correcting exactly the mean number of errors does not by itself ensure reliable transmission.
// Target: algebra.bigb