For a binary symmetric matrix with , the syndrome of an error relative to the column parity-check matrix is . An error of total Hamming weight at most three has at most one nonzero bit in one half. Test , each , , and each for weights at most three, two, three and two respectively. These identify , , and . For the extended binary Golay code, minimum Hamming distance eight guarantees that at most one such error exists.
Weight enumerator Created 2026-10-05 Updated 2026-10-07
The homogeneous weight enumerator of a length- linear code is the polynomial
Its coefficients count words of each Hamming weight. In this convention ; some references interchange .
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