Sketch of Solutions to Exercises

1.5.1 x.y =  2(log2x+log2y)

1.5.2 Each instance P of the nonemptiness problem can be transformed into an instance (P ', e) of the emptiness problem, where P’ is P with each ‘read x’ instruction being replaced by an ‘x := ?’ instruction.

1.5.3 For each instance Q(x1, ..., xn) of Hilbert’s tenth problem provide a program P Q that accepts exactly those inputs that solve Q(x1, ..., xn) = 0.

1.5.4 For an instance of the form

 Q1(...)  =  0

         ...


.Qm(...)  =  0
generate an instance of the form

Q12(...) + ... + Qm2(...) .

1.5.5

(a)
For a given instance G of K1 generate an instance (G, S --> S) of K2.
(b)
For a given instance (G, x) of K1 generate an instance (G1, G2) of K2, where L(G1) = L(G)  /~\ {x} and L(G2) = {x}.