Today in my Computability Theory class the professor introduced the following non-recursive class: $$EXT = \{x : \varphi_x \text{ can be extended to a total computable function}\}$$
(Where by $\varphi_i$ I indicate the $i$-th computable function)
He didn’t really give a definition of “extending a function to a total function”, but what I got through context was the following:
$$ x \in EXT \iff \exists \text { total } \bar\varphi_x . (\forall n \in \text{dom}(\varphi_x). \varphi_x = \bar\varphi_x) $$ The fact that I might have got the definition wrong may be among the causes of my confusion;
Later (after the end of the lesson), the professor was asked by a student to prove a statement regarding $EXT$, but could not think of an example of a partial computable function that cannot be extended to a total computable function. Another student suggested the following: $$ \psi (x) = \begin{cases} n, & \text{if $\varphi_x(x)$ converges in $n$ steps;} \\ \text{undefined,} & \text{otherwise.} \end{cases} $$
Saying that replacing the undefined with any natural number would result in a contradiction, and the professor seemed to agree.
My question actually consists of two parts I guess:
- What is the correct definition?
- Is that example a valid example?
EDIT: fixed my intuitive definition, twice
This was not a problem for the partial function $\psi$, since, intuitively, the computation of $\psi$ would terminate, in a finite amount of steps, exactly with those inputs $x$ such that $\psi(x)\downarrow$, so no decision has to be made, as the others will be undefined anyway.
Is this correct?
– mell_o_tron Oct 22 '22 at 14:08