An error-correcting bit code can reconstruct a block under an error model, rather than merely report a failed check. Its decoder still needs that model. For Hamming(7,4), a three-bit syndrome identifies one changed position when at most one of the seven transmitted bits changed. The same nonzero syndrome can also be caused by multiple changes.

This article constructs a small abstract block and follows its parity equations. It describes neither a robot communication standard nor a hardware test, and it does not establish message identity, freshness, or physical measurement accuracy.

Fix the coordinate order before computing parity

Put parity bits at positions one, two, and four. Put the four data bits at positions three, five, six, and seven, respectively. Write a seven-bit string from position one on the left to position seven on the right; this display convention is separate from a processor's integer bit numbering.

Use even parity. The first check includes positions one, three, five, and seven. The second includes two, three, six, and seven. The third includes four, five, six, and seven. Each set has an even number of ones in a valid codeword.

Equivalently, the parity-check matrix has rows [1,0,1,0,1,0,1], [0,1,1,0,0,1,1], and [0,0,0,1,1,1,1]. All its arithmetic is modulo two. In particular, adding the same bit twice cancels it.

MIT's lecture explains this binary-index construction; Rutgers gives a parity construction under another bit order. The choice here lets the column at position j represent j in binary. The independently selected data and error cases below make that relationship concrete.

Encode an original four-bit message

Choose data (1,0,0,1). Filling positions three, five, six, and seven places ones at three and seven. The first parity bit must be 1 XOR 0 XOR 1 = 0, and the second must be 1 XOR 0 XOR 1 = 0. The fourth-position parity bit is 0 XOR 0 XOR 1 = 1.

The resulting codeword is 0011001. Its first check sees [0,1,0,1], its second sees [0,1,0,1], and its third sees [1,0,0,1]. Each contains two ones. The code uses seven transmitted bits to carry four data bits, giving rate 4/7; the remaining three provide redundancy.

For a received vector r, calculate check results s1, s2, and s4 using those same three sets. They form the syndrome. Interpret its position index as s1 + 2s2 + 4s4, rather than treating the written tuple as an unspecified binary ordering.

Follow one changed bit

Flip position six of 0011001. The received string is 0011011. Position six belongs to the second and third checks but not the first, so the results are (s1,s2,s4) = (0,1,1). Their numeric index is six.

Flipping position six back restores 0011001 and recovers data (1,0,0,1). A changed parity position is handled by the same rule: its matrix column is also nonzero and unique. Correction therefore covers one flip anywhere in the block, not only in the four data coordinates.

For a proof, write r = c XOR e, where c is valid. Multiplying by the parity-check matrix gives Hr = Hc XOR He = He. If e contains a single one at j, He is precisely column j. The nonzero columns are all different, so the syndrome distinguishes all seven possible single errors.

Follow two changes through the same decoder

Instead flip positions one and two of the original codeword. The received string becomes 1111001. Its syndrome is column one XOR column two, giving the numeric index 1 XOR 2 = 3.

A decoder that assumes one error now flips position three. It returns 1101001, not the transmitted 0011001. All three checks on that returned word pass, because columns one, two, and three XOR to zero. Three coordinates differ from the original, including a data coordinate.

The raw two-error word had a nonzero syndrome, so a check-only procedure would detect its disagreement with the code. An automatic single-error correction procedure interprets that evidence differently and miscorrects it. Detecting an invalid block and safely identifying how it became invalid are distinct tasks.

Every pair of distinct error positions has a nonzero XOR of columns, and that XOR is another position between one and seven. Thus this ambiguity is structural; it is not peculiar to the selected pair. A zero syndrome is also compatible with a different valid codeword, such as the three-flip difference just constructed.

Count the single-error guarantee

There are sixteen possible data messages and therefore sixteen codewords. Around each valid word are eight received patterns at distance at most one: the word itself and seven single flips. Since the minimum distance is three, these neighborhoods do not overlap. Their total size is 16 times 8 = 128, exactly all seven-bit patterns.

This explains why every received block has a unique nearby codeword without proving that the nearby word was transmitted. Under independent flip probability p, recovery of the entire original codeword occurs with probability (1 − p)^7 + 7p(1 − p)^6 for this decoder. At the invented p = 0.01, that is approximately 0.9979689584. It is a conditional channel calculation, not a measured reliability rating.

An extra parity bit changes the contract

Appending an overall even-parity bit to this example requires a one, making 00110011. With the extended construction and an at-most-two-errors model, a nonzero seven-bit syndrome combined with even overall parity indicates two errors rather than a correctable single one. A nonzero syndrome with odd overall parity identifies a single error within the first seven positions; zero syndrome with odd overall parity identifies the added parity position.

That is an eight-bit extension, not a property that the original seven-bit block already possesses. More errors can violate its classification assumptions too. No coding library or communication device was run; all strings, distances, and probabilities are independently constructed analytical examples.

Sources checked October 24, 2026

MIT 6.02 Draft Lecture Notes, Lecture 6: Coping with Bit Errors:

https://web.mit.edu/6.02/www/f2010/handouts/lectures/L6.pdf

Frances M. Gasman, Rutgers DIMACS: Hamming Codes, Detecting and Correcting Errors:

https://archive.dimacs.rutgers.edu/drei/1997/classroom/lessons/hamming.html

Concept illustration: A small desktop robot beside a laptop showing a generic workflow provides robotics context for this analytical model. The image does not depict the article's numerical example, a verified experiment, a product specification, or deployment evidence.