(a) Define a recursive set and a recursively enumerable (r.e.) set. Prove that E⊆N0 is recursive if and only if both E and N0\E are r.e. sets.
(b) Let E={fn,k(m1,…,mk)∣(m1,…,mk)∈N0k} for some fixed k⩾1 and some fixed register machine code n. Show that E={m∈N0∣fj,1(m)↓} for some fixed register machine code j. Hence show that E is an r.e. set.
(c) Show that the function f:N0→N0 defined below is primitive recursive.
f(n)={n−10 if n>0 if n=0
[Any use of Church's thesis in your answers should be explicitly stated. In this question N0 denotes the set of non-negative integers.]