I need help proving that a HammingCode with 2 bits flipped can create a new codeword by flipping just one more bit.
I worked through the problem and created an example of my own but am having trouble generalizing it.
My example: The original codeword: (1101000) 2 bits flipped: (0111000) new codeword: (0111010)
The $(7,4)$ Hamming code has minimum distance $3$. Therefore, if you flip $2$ bit in a codeword you can not obtain a codeword.
Now use the fact that the $(7,4)$ Hamming code is a perfect code. It means, in this case, that the Hamming balls of radius $1$ surrounding the codewords fill the Hamming space without overlap. Hence, if $r$ is not a codeword, there exists a codeword $c$ with distance exactly $1$ from $r$.