Rename the old halt state as a nonhalting state , including every occurrence of in the original program, and introduce a new halt state . Attach the following output-flipping routine:Because the original machine computes a characteristic function, it reaches with register containing exactly or . The routine tests that symbol, removes it, and appends its complement. It therefore halts with .
Solved by gpt-5.6-sol high.
Codex Wiki