The function is not partial computable. It is defined on every input, so if a register machine with code computed it, then and in particular would be defined. The first clause in the definition would givewhich is impossible. This is the usual diagonal argument behind the noncomputability of the diagonal halting set.
The function is also not partial computable. On every odd input it is defined, andbecause the value in the halting case is . Thus a machine computing would decide diagonal halting for odd program indices simply by running and testing whether its output is zero.
That restricted problem remains undecidable. By the padding lemma, an arbitrary machine can effectively be replaced by an equivalent machine having an odd code—for example by adding unreachable instructions until the chosen effective encoding has the required parity. This gives a computable reduction from unrestricted diagonal halting to diagonal halting on odd indices. A decider obtained from would therefore decide the full diagonal halting problem, a contradiction. Hence
Articles by others on the same topic
There are currently no matching articles.