I am having hard time proving that $$ L = {<M,x,y> | M \, halts \, on\, xy\, and\, M\, doesn’t \,halt\, on\, yx} $$ is not recursively enumerable and also it's complement. Any idea on a way to solve it?
Thanks a lot
I am having hard time proving that $$ L = {<M,x,y> | M \, halts \, on\, xy\, and\, M\, doesn’t \,halt\, on\, yx} $$ is not recursively enumerable and also it's complement. Any idea on a way to solve it?
Thanks a lot
Copyright © 2021 JogjaFile Inc.
Let $HP = \{\langle A,s \rangle :$ A is a TM that halts on s $\}$
and $\overline{HP} = \{\langle A,s \rangle :$ A is a TM that does not halt on s $\}$
Suppose $R$ is a recognizer for $L$.
The following reduction shows that $L$ is not Turing-Recognizable
R accepts $\langle M, 0, 1 \rangle \; \Leftarrow\Rightarrow \langle M \rangle \in \; L \Leftarrow\Rightarrow A$ loops on s
If R recognizes L then Loop recognizes $\overline{HP}$
Since $\overline{HP}$ is not recognizable, L is not Turing-Recognizable.
For the complement suppose $R$ is a recognizer for:
$\quad L' = \{\langle M,x,y \rangle :$ M loops on xy or M halts on yx $\}$
The following reduction shows that $L'$ is not Turing-Recognizable and hence that $L$ is not co-Turing recognizable.
R accepts $\langle M, 0, 1 \rangle \; \Leftarrow\Rightarrow \langle M \rangle \in \; L' \Leftarrow\Rightarrow A$ loops on s
If R recognizes $L'$ then Loop recognizes $\overline{HP}$
Since $\overline{HP}$ is not recognizable, $L'$ is not Turing-Recognizable.
Hence, $L$ is not co-Turing-Recognizable