- $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 M0 which halts on all the inputs. So, suppose we are given a TM M1 and we have a task to check whether M0 belongs to the language of TM M1 which can be done simply by running M1 over M0 and halts if M1 accepts M0 . Hence, we have recognized the language by a recognizer .
We will add M1 to this set and similarly, we can check with all other TM's such as M2 , M3 and 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 M0 is 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 M0 which halts on all the inputs.
So, it can be clearly seen that M0 halts 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 .