Recursive and primitive recursive sets and predicates

[26/58%]
Show
LaTeX

Let AA be a decidable set, and let g(x)g(x) and h(x)h(x) be general recursive functions. Prove that the function

F(x)={g(x), if x∈A,h(x), otherwise  F(x)= \begin{cases} g(x), & \text{ if } x \in A, \\ h(x), & \text{ otherwise } \end{cases}

is also general recursive.

?

Let AA be a decidable set, and let g(x)g(x) and h(x)h(x) be g.r.f.'s. Prove that the function

F(x)={g(x), if x∈A,h(x), otherwise  F(x)= \begin{cases} g(x), & \text{ if } x \in A, \\ h(x), & \text{ otherwise }\end{cases}

is also general recursive.

?

Define

f(n)={min⁡{Wn} if Wn≠∅,↑ otherwise . f(n)= \begin{cases} \min \left\{ W_{n}\right\} & \text{ if } W_{n} \neq \emptyset , \\ \uparrow & \text{ otherwise }.\end{cases}

Is ff a partial recursive function? Prove your answer.

?

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).

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.).

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).

?

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

?

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

?

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).

?

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.

?

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).

?

Prove that every primitive recursive set is recursively enumerable.

?

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.

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.

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.

?

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.

?

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.

?

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

?

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

?

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

?

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.

?

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.

?

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.

?

Prove that any recursive set is recursively enumerable.

?

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.

?

Prove that every recursive set is mm-reducible to any nonempty set with nonempty complement.

?

References

[ДДК+21a] Дехтярь М.И., Дудаков С.М., Карлов М.И., Карлов Б.Н. Лекции по дискретной математике. 3-е изд., Тверской государственный университет, 2021.
[ДДК+21b] Дехтярь М.И., Дудаков С.М., Карлов М.И., Карлов Б.Н. Задачник по дискретной математике. 2-е изд., Тверской государственный университет, 2021.
[DuKo01] Du D., Ko K. Problem Solving in Automata, Languages, and Complexity. John Wiley & Sons, 2001.
[LaMa02] Lavrov I.A., Maksimova L.L. Задачи по теории множеств, математической логике и теории алгоритмов. 5-е изд., Физматлит, 2002.