Redirected
1,091 views

2 Answers

Best answer
9 votes
9 votes
  • $L_{12} = \{ \langle M\rangle \mid M $ is a TM and $M_{0}$ is also a TM which halts on all inputs and $M_{0} \in L(M) \}$

This set consists of all those TM's whose languages contain the encoding of TM Mwhich halts on all the inputs. So, suppose we are given a TM Mand we have a task to check whether Mbelongs to the language of TM Mwhich can be done simply by running Mover Mand halts if M1 accepts M0 . Hence, we have recognized the language by a recognizer .

We will add Mto this set and similarly, we can check with all other TM's such as M, Mand so on. They all can be added to this set .

But, is the language decidable? we have already established that this language is RE but what about R ? So, the question is simple whether the TM M1  (halts or loops) if the given Mis not there in the language of L(M1) ?

For this, we use Rice's theorem to prove undecidability but here it is little bit twisted .


This says that the languages which follow a certain property is indeed undecidable.

More can be found here => http://gatecse.in/rices-theorem/

Given a property P, such that $\Phi \subset P \subset RE$, then the language 

=> $L_{p} = \left \{ \langle M \rangle \mid M\ \in RE \right \}$ is undecidable.

Here, for this language we can form this property P as

$P = \left \{ L | M_{0}\ \in L\ and\ L\ \in RE\ \right \}$

and the set folowing this property P will be

$L_{P} =\left \{ \langle M \rangle \mid L(M)\ \in P \right \}$

Hence, If the given property P = PHI or  P = RE then it becomes trivial, but here clearly, that property is "not all of the RE" and "not none of the RE". If P = PHI that means none of the TM follow that and If P = RE that means all the TM follow this making it trivial property(always true).

Here, This property P is non trivial in the sense that "Some TM follow this property and some do not".

Hence, Atlast it can be said that L12 is undecidable in the sense of rice theorem.


  • $L_{13} = \{ \langle M\rangle \mid M$ is a TM\ and $M_{0}$ is also a TM which halts on all inputs and $M\ \in L\left(M_{0}\right)  \}$

Now, Similarly this set contains the TM whose encodings are contained in the language of TM Mwhich halts on all the inputs.

So, it can be clearly seen that Mhalts on all the inputs so, if we input it with a string which is contained in its language, then it will always halt and say accept

But, if we input it with a string which is not contained in the language , then also it will always halt and say reject.

Since, it is providing YES as well as NO answers, making this set decidable .

selected by
2 votes
2 votes
Here, $L_{12}$ includes the description of TMs $M$ such that that  $M$ accepts the given halting TM $M_0$. i.e. inorder for a TM description to be in $L_{12}$, that machine must accept $M_0$ (double recursion?) which is a halting TM.

Now, $L_{13}$ includes the description of TMs $M$ such that $M$ element of $L(M_0)$  where $M_0$ is a TM that halts on all inputs. Since $M_0$ halts for all inputs, to decide $L_{13}$ we can simply run its input on $M_0$ which is guaranteed to halt.

Related questions

0 votes
0 votes
1 answer
1
surbhijain93 asked Sep 7, 2018
2,625 views
Hi,Could someone please tell the difference between computability and decidability?Thanks
3 votes
3 votes
2 answers
2
Sambit Kumar asked Mar 15, 2018
752 views
{$<M>\mid M$ is a $TM$ that doesn't accept any even number}what type of language is it?Recursively enumerableRecursiveNot recursively enumerablenone of the above
11 votes
11 votes
2 answers
4
sourav. asked Sep 9, 2017
4,531 views
My Question $\{\langle M \rangle \mid M$ is a TM and there exist an input whose length is less than 100, on which $M$ halts$\}$I have to check that it is Turing Recogniza...