Chapter III.3

Recursive and Recursively Enumerable Sets

[48/81%]
Show
LaTeX
Problem III.3.1

Prove that the following predicates are primitive recursive:

?
(a)

x=yx = y;

(b)

x+y=zx + y = z;

(c)

x⋅y=zx \cdot y = z;

(d)

xx divides yy;

(e)

xx is even;

(f)

xx and yy are relatively prime;

(g)

∃n(x=12+22+…+n2)\exists n(x = 1^{2} + 2^{2} + \ldots + n^{2});

(h)

∃n(x=1+2+…+n)\exists n(x = 1 + 2 + \ldots + n).

Problem III.3.2

Prove that if P(x1,…,xn)P(x_{1}, \ldots , x_{n}) and Q(x1,…,xn)Q(x_{1}, \ldots , x_{n}) are recursive (primitive recursive) predicates, then the following predicates are also recursive (primitive recursive):

?
(a)

(P(x1,…,xn) & Q(x1,…,xn))(P(x_{1}, \ldots , x_{n})\ \& \ Q(x_{1}, \ldots , x_{n}));

(b)

(P(x1,…,xn)∨Q(x1,…,xn))(P(x_{1}, \ldots , x_{n}) \lor Q(x_{1}, \ldots , x_{n}));

(c)

¬P(x1,…,xn)\neg P(x_{1}, \ldots , x_{n});

(d)

(P(x1,…,xn)⊃Q(x1,…,xn))(P(x_{1}, \ldots , x_{n}) \supset Q(x_{1}, \ldots , x_{n}));

(e)

P(x1,x1,x3,…,xn)P(x_{1}, x_{1}, x_{3}, \ldots , x_{n});

(f)

P(f(x1,…,xm),xm+1,…,xm+n−1)P(f(x_{1}, \ldots , x_{m}), x_{m+1}, \ldots , x_{m+n-1}), if f(x1,…,xm)f(x_{1}, \ldots , x_{m}) is g.r. (p.r.).

Problem III.3.3

Prove that if the predicate R(x1,…,xn,y)R(x_{1}, \ldots , x_{n}, y) is recursive (primitive recursive), then the predicates ∃y(y≤z & R(x1,…,xn,y))\exists y (y \leq z\ \& \ R(x_{1}, \ldots , x_{n}, y)) and ∀y(y≤z⊃R(x1,…,xn,y))\forall y (y \leq z \supset R(x_{1}, \ldots , x_{n}, y)) are also recursive (primitive recursive).

?
Problem III.3.4

Prove that if the predicate R(x1,…,xn,y,z)R(x_{1}, \ldots , x_{n}, y, z) is primitive recursive, then M={⟨x1,…,xn⟩∣∃y∃z R(x1,…,xn,y,z)}M = \left\{ \langle x_{1}, \ldots , x_{n} \rangle \mid \exists y \exists z\, R(x_{1}, \ldots , x_{n}, y, z)\right\} is a recursively enumerable set.

?
Problem III.3.5

Prove that there exists a set that is not recursively enumerable.

?
Problem III.3.6

Prove that any finite set of natural numbers is primitive recursive.

?
Problem III.3.7

Prove that a set of nn-tuples is recursive (primitive recursive) if and only if its characteristic function is general recursive (primitive recursive).

?
Problem III.3.8

Prove that if ff is a general recursive (primitive recursive) function and aa is a fixed number, then the set of solutions of the equation f(x1,…,xn)=af(x_{1}, \ldots , x_{n}) = a is recursive (primitive recursive).

?
Problem III.3.9

Let the function ff be partial recursive but not general recursive. Prove that the domain of definition of the function f−1f^{-1} is primitive recursive.

?
Problem III.3.10

Prove that if the sets AA and BB are recursive (primitive recursive), then the sets A∩BA \cap B, A∪BA \cup B, N∖A\mathbb {N} \setminus A are also recursive (primitive recursive).

?
Problem III.3.11

Prove that if the sets AA and BB are recursively enumerable, then the sets A∩BA \cap B and A∪BA \cup B are recursively enumerable.

?
Problem III.3.12

Prove that every primitive recursive set is recursively enumerable.

?
Problem III.3.13

Let the sets AA and BB differ by finitely many elements. Prove that:

?
(a)

if AA is recursive, then BB is recursive;

(b)

if AA is recursively enumerable, then BB is recursively enumerable.

Problem III.3.14

Prove that if a set AA and its complement N∖A\mathbb {N} \setminus A are recursively enumerable, then AA is recursive (Post's theorem).

?
Problem III.3.15

Let M⊆NnM \subseteq \mathbb {N}^{n}. Set

cn(M)={cn(x1,…,xn)∣⟨x1,…,xn⟩∈M}, c^{n}(M) = \left\{ c^{n}(x_{1}, \ldots , x_{n}) \mid \langle x_{1}, \ldots , x_{n} \rangle \in M\right\} ,

where cnc^{n} is defined in problem III.1.14. Prove that:

?
(a)

MM is primitive recursive if and only if cn(M)c^{n}(M) is primitive recursive;

(b)

MM is recursive if and only if cn(M)c^{n}(M) is recursive;

(c)

MM is recursively enumerable if and only if cn(M)c^{n}(M) is recursively enumerable.

Problem III.3.16

Let M⊆NM \subseteq \mathbb {N} be a nonempty set. Prove that MM is recursively enumerable if and only if there is a primitive recursive function α(x)\alpha (x) such that M={α(x)∣x∈N}M = \left\{ \alpha (x) \mid x \in \mathbb {N}\right\}.

?
Problem III.3.17

Let MM be a nonempty set of nn-tuples. Prove that the set MM is recursively enumerable if and only if there are one-place primitive recursive functions α1,…,αn\alpha_{1}, \ldots , \alpha_{n} such that

M={⟨α1(x),…,αn(x)⟩∣x∈N}. M = \left\{ \langle \alpha _{1}(x), \ldots , \alpha _{n}(x) \rangle \mid x \in \mathbb {N}\right\} .
?
Problem III.3.18

Let the general recursive function f(x)f(x) satisfy the condition: f(x)≥xf(x) \geq x for all x∈Nx \in \mathbb {N}. Prove that the range of values ρf\rho_{f} of the function ff is recursive.

?
Problem III.3.19

Prove that an infinite set AA is recursive if and only if AA is the range of values of a strictly increasing general recursive function.

?
Problem III.3.20

Prove that a nonempty set AA is recursive if and only if AA is the range of values of a monotonically (not necessarily strictly) increasing general recursive function.

?
Problem III.3.21

Prove that every infinite recursively enumerable set contains an infinite recursive subset.

?
Problem III.3.22

Prove that every infinite recursively enumerable set can be represented as A=ρfA = \rho_{f} for some 1--1 general recursive function ff.

?
Problem III.3.23

Prove that the graph of a general recursive function is recursive.

?
Problem III.3.24

Prove that if the graph Γf\Gamma_{f} of a function ff is recursively enumerable, then the function ff is partial recursive.

?
Problem III.3.25

Prove that the full preimage of a recursive set under a general recursive function is recursive.

?
Problem III.3.26

Let AA be a recursive set, ff a general recursive function with ρf=N\rho_{f} = \mathbb {N}, f(A)∩f(N∖A)=∅f(A) \cap f(\mathbb {N} \setminus A) = \emptyset. Prove that f(A)f(A) is recursive.

?
Problem III.3.27

Let A,BA, B be recursively enumerable sets, and CC a recursive set such that A∩B=∅A \cap B = \emptyset, A⊆C⊆A∪BA \subseteq C \subseteq A \cup B. Prove that AA is recursive.

?
Problem III.3.28

Let f,gf, g be general recursive functions, with gg a 1--1 function. Suppose also that f(x)≥g(x)f(x) \geq g(x) for all xx. Prove that if ρg\rho_{g} is recursive, then ρf\rho_{f} is recursive.

?
Problem III.3.29

Let A,BA, B be recursively enumerable sets. Prove that there exist recursively enumerable sets A1⊆AA_{1} \subseteq A, B1⊆BB_{1} \subseteq B such that A1∩B1=∅A_{1} \cap B_{1} = \emptyset, A1∪B1=A∪BA_{1} \cup B_{1} = A \cup B.

?
Problem III.3.30

Prove that:

?
(a)

a function obtained by means of superposition from functions with recursively enumerable graph has recursively enumerable graph;

(b)

a function obtained by means of the primitive recursion scheme from functions with recursively enumerable graph has recursively enumerable graph;

(c)

a function obtained by means of the μ\mu-operator from a function with recursively enumerable graph has recursively enumerable graph;

(d)

the graph of any partial recursive function is recursively enumerable.

Problem III.3.31

Prove that a function is partial recursive if and only if its graph is recursively enumerable (the graph theorem).

?
Problem III.3.32

Prove that the domain of definition of a partial recursive function is a recursively enumerable set.

?
Problem III.3.33

Prove that the range of values of a partial recursive function is recursively enumerable.

?
Problem III.3.34

Prove that any recursive set is recursively enumerable.

?
Problem III.3.35

Prove that a set of nn-tuples is recursively enumerable if and only if its partial characteristic function is partial recursive.

?
Problem III.3.36

Prove that:

?
(a)

the image of a recursively enumerable set under a partial recursive function is recursively enumerable;

(b)

the full preimage of a recursively enumerable set under a partial recursive function is recursively enumerable.

Problem III.3.37

Prove that the set AA of solutions of the equation

f(x1,…,xn)=a f(x_{1}, \ldots , x_{n}) = a

is recursively enumerable, if ff is a partial recursive nn-ary function.

?
Problem III.3.38

Prove that if fn+1f^{n+1} is a partial recursive function, then the set M={⟨x1,…,xn⟩∣∃y f(x1,…,xn,y)=0}M = \left\{ \langle x_{1}, \ldots , x_{n} \rangle \mid \exists y\, f(x_{1}, \ldots , x_{n}, y) = 0\right\} is recursively enumerable.

?
Problem III.3.39

Let M1,…,MkM_{1}, \ldots , M_{k} be pairwise disjoint recursively enumerable sets of nn-tuples, f1,…,fnf_{1}, \ldots , f_{n} partial recursive functions. Prove that g(x1,…,xn)g(x_{1}, \ldots , x_{n}), defined as follows:

g(x1,…,xn)={f1(x1,…,xn),if ⟨x1,…,xn⟩∈M1,\makebox[0pt][l]\dotfillfk(x1,…,xn),if ⟨x1,…,xn⟩∈Mk,undefined otherwise, g(x_{1}, \ldots , x_{n}) = \begin{cases} f_{1}(x_{1}, \ldots , x_{n}), & \text{if } \langle x_{1}, \ldots , x_{n} \rangle \in M_{1}, \\ \makebox[0pt][l]{\dotfill } \\ f_{k}(x_{1}, \ldots , x_{n}), & \text{if } \langle x_{1}, \ldots , x_{n} \rangle \in M_{k}, \\ \text{undefined otherwise,} \end{cases}

is partial recursive.

?
Problem III.3.40

Prove that any partial recursive function f(x1,…,xn)f(x_{1}, \ldots , x_{n}) is representable in Kleene normal form, i.e., in the form

f(x1,…,xn)=l(μt[g(x1,…,xn,t)=0]), f(x_{1}, \ldots , x_{n}) = l(\mu t \left[g(x_{1}, \ldots , x_{n}, t) = 0\right]),

where g(x1,…,xn,t)g(x_{1}, \ldots , x_{n}, t) is a suitable primitive recursive function, and ll is the function from problem III.1.13 (cf. problem III.2.25).

?
Problem III.3.41

Prove that a partial function f(x1,…,xn)f(x_{1}, \ldots , x_{n}) is representable in the form

f(x1,…,xn)=μt[g(x1,…,xn,t)=0] f(x_{1}, \ldots , x_{n}) = \mu t \left[g(x_{1}, \ldots , x_{n}, t) = 0\right]

for a suitable primitive recursive function g(x1,…,xn,t)g(x_{1}, \ldots , x_{n}, t) if and only if the graph of the function f(x1,…,xn)f(x_{1}, \ldots , x_{n}) is primitive recursive.

?
Problem III.3.42

Let F(x,y)F(x,y) be defined by means of recursion on two variables:

{F(0,y)=φ(y),F(x+1,0)=ψ(x,F(x,α(x)),F(x,F(x,γ(x)))),F(x+1,y+1)=τ(x,y,F(x,F(x+1,y))). \begin{cases} F(0,y) = \varphi (y), \\ F(x+1,0) = \psi (x, F(x, \alpha (x)), F(x, F(x, \gamma (x)))), \\ F(x+1,y+1) = \tau (x,y,F(x,F(x+1,y))). \end{cases}

Prove that if the functions φ,ψ,α,γ,τ\varphi , \psi , \alpha , \gamma , \tau are general recursive, then the function FF is general recursive.

?
Problem III.3.43

Prove that the set

H={x∣∃y T1(x,x,y)=0}, H = \left\{ x \mid \exists y\, T_{1}(x,x,y) = 0\right\} ,

where T1T_{1} is the function from problem III.2.25, is recursively enumerable but not recursive.

?
Problem III.3.44

Prove that if the domain of definition of a partial recursive function fnf^{n} is a recursive set, then fnf^{n} has a recursive extension.

?
Problem III.3.45

Prove that if V(n,x)V(n,x) is a partial recursive function universal for the class of all one-place partial recursive functions, then the set M={x∣V(x,x)=0}M = \left\{ x \mid V(x,x) = 0\right\} is recursively enumerable but not recursive.

?
Problem III.3.46

Find a partial recursive function f(x)f(x) that has no general recursive extension.

?
Problem III.3.47

Find a partial recursive function f(x)f(x) not representable in the form

f(x)=μy[g(x,y)=0] f(x) = \mu y \left[g(x,y) = 0\right]

for any general recursive function gg.

?
Problem III.3.48

Prove that if V(n,x)V(n,x) is a partial recursive function universal for the class of all one-place partial recursive functions, then the set

G={n∣V(n,x) is a general recursive function} G = \left\{ n \mid V(n,x) \text{ is a general recursive function}\right\}

is not recursively enumerable.

?