Universal Turing Machines
[6/50%]Show that the set is primitive recursive.
Show that the following predicates are primitive recursive:
is a legal code of a configuration of .
and is a final configuration .
if then else .
Show that the following functions are primitive recursive:
the initial configuration of on inputs (, , encoded as described above.
the output in if is a final configuration of , and otherwise.
Show that the following functions are primitive recursive:
is a legal code of a DTM and , ) is equal to and represents a state in ].
the code of a DTM which is obtained from by changing each state to , if is a legal code of a DTM ; and it is , otherwise.
is a legal DTM code and is undefined at state on any symbol in .
Complete the proof of Example 5.4(c).
Show the detail of how the universal DTM simulates a DTM . In particular, show the instructions that search for the instruction code that matches the current state in tape 3 and the current symbol in tape 2. Then, show how to change state, change tape symbol and move left or right according to the instruction code.