Is the following computable ?
Notation: We use $Φ_k$ to denote the k-th computable function
$$g(x) = \begin{cases} 1 & ∀z (Φ_x(z) = 2 ∨ Φ_x(z) ↑) \\ ↑\ &otherwise \end{cases} $$
I really need your help.
Thanks
Is the following computable ?
Notation: We use $Φ_k$ to denote the k-th computable function
$$g(x) = \begin{cases} 1 & ∀z (Φ_x(z) = 2 ∨ Φ_x(z) ↑) \\ ↑\ &otherwise \end{cases} $$
I really need your help.
Thanks
No it's not. By contradiction, suppose that g is computable, then so is $$ P\langle x,y\rangle=g(x) $$ By fixed point theorem, there is a $n$ such that $\Phi_n(y)$ computes $P\langle n,y\rangle$
Not that $\forall y \Phi_n(y)=1$ or $\forall y \Phi_n(y)\uparrow$ by definition (because it's always equal to $g(n)$)
But $\Phi_n(y)=P\langle n,y\rangle=g(n)=1$ iff $\Phi_n(y)\uparrow$
And $\Phi_n(y)=P\langle n,y\rangle=g(n)\uparrow$ iff $\Phi_n(y)=1$
This is a contradiction, hence $g$ is not computable.