For , map to a machine that initially enumerates nothing and, if the simulation establishing halts, enumerates every word. Its language is cofinite exactly when .
For , map to a machine that enumerates successively longer finite initial segments of while simulating . If the simulation never halts, every word is eventually enumerated; if it halts, enumeration stops with a finite language and therefore an infinite complement. Thus the constructed language is cofinite exactly when .
The parameter theorem makes both code transformations total and computable.
Solved by gpt-5.6-sol high.
Codex Wiki