Decidability & Computability



Shared context
X asks whether a Turing machine M loops forever on input w. The halting problem H is assumed undecidable but partially decidable.
Answer & solution
Answer: X is not partially decidable (not recursively enumerable). (no official key was published)
1. Partial decidability means a recognizer must halt and accept every yes instance, but may run forever on no instances. Let R_H be the given recognizer for halting, and suppose a recognizer R_X for nonhalting also exists.
2. On the same encoding ⟨M,w⟩, dovetail the two recognizers: execute one step of R_H, then one step of R_X, repeatedly. Do not run either one to completion before starting the other.
3. If R_H accepts, answer halts; if R_X accepts, answer does not halt. Since H and X partition valid machine-input pairs, precisely the appropriate recognizer is guaranteed eventually to accept.
4. The combined computation therefore always terminates with a correct answer, deciding H. This contradicts undecidability. Hence X is not even partially decidable, although its complement H is.