Section 5.4

Reducibility

[24/33%]
Show
LaTeX
Example 5.25

Assume that both AA and BB are nonempty proper subsets of Σ∗\Sigma^{*}.

?
(a)

Show that if AA is recursive then A≤mBA \leq_{m} B.

(b)

Show that if the set differences A\BA \backslash B and B\AB \backslash A of sets AA and BB are both recursive, then A≤mBA \leq_{m} B.

Example 5.27

Show that the set EMP={x∣Wx=∅}\mathrm{EMP}=\left\{ x \mid W_{x}=\emptyset \right\} is not recursive.

?
Example 5.29

The halting problem KK is complete.

?
Example 5.32

Let AA be a nontrivial function-index set. Show that if EMP ⊆A\subseteq A, then AA is not r.e. Thus, the following index sets are not r.e: A1‾\overline{A_{1}}, EMP,  Tot ‾\overline{\text{ Tot }}, Fin, Rec, Reg and Rev.

?
Example 5.33

Let AA be an r.e. index set. Show that if x∈Ax \in A and Wx⊆WyW_{x} \subseteq W_{y} then y∈Ay \in A. Thus, the following sets are not r.e.: REC⁡‾,REG⁡‾,REV⁡‾\overline{\operatorname {REC}}, \overline{\operatorname {REG}}, \overline{\operatorname {REV}}.

?
Example 5.34

Let AA be an r.e. function-index set. Show that if x∈Ax \in A then there exists y∈Ay \in A such that WyW_{y} is a finite subset of WxW_{x}. Thus, the following sets are not r.e.: Tot,  FIN ‾\overline{\text{ FIN }}.

?
Example 5.35

Show that TOT ≤m FIN ‾\leq_{m} \overline{\text{ FIN }} and  FIN ‾≤m\overline{\text{ FIN }} \leq_{m} TOT.

?
Example 5.48

(Revisited) Show, by the s−m−ns-m-n theorem, that K≤m EMP ‾K \leq_{m} \overline{\text{ EMP }}.

?
Problem 5.4.1

Assume that A∪B={0,1}∗A \cup B= \left\{ 0,1\right\}^{*} and A∩B≠∅A \cap B \neq \emptyset. Show that if AA and BB are r.e., then A≤mA∩BA \leq_{m} A \cap B.

?
Problem 5.4.2

If g:{0,1}∗→{0,1}∗g: \left\{ 0,1\right\}^{*} \rightarrow \left\{ 0,1\right\}^{*} is one-to-one, then we define g−1(x)=(min⁡y)[g(y)=x]g^{-1}(x)=(\min y) [g(y)=x]. Show that there exists a recursive function ff such that for all one-to-one functions ϕm,ϕf(m)=ϕm−1\phi_{m}, \phi_{f(m)}=\phi_{m}^{-1}.

?
Problem 5.4.3

Show that there exists a recursive function c(x,y)c(x, y) such that ϕc(x,y)(z)=ϕx(ϕy(z))\phi_{c(x, y)}(z)= \phi_{x}\left(\phi_{y}(z)\right).

?
Problem 5.4.4
?
(a)

Show that for every partial recursive function ff, there exists a recursive function gg such that Wg(x)=f−1(Wx)W_{g(x)}=f^{-1}\left(W_{x}\right).

(b)

Show that there is a recursive function gg such that for all x,yx, y,

Wg(x,y)=ϕx−1(Wy)={z∣ϕx(z)∈Wy} W_{g(x, y)}=\phi _{x}^{-1}\left(W_{y}\right)=\left\{ z \mid \phi _{x}(z) \in W_{y}\right\}
Problem 5.4.5

(Rice's theorem for r.e. index sets) For any finite set D={x1,…,xn}D=\left\{ x_{1}, \ldots , x_{n}\right\}, we say [x1,…,xn]\left[x_{1}, \ldots , x_{n}\right] (in any order) is a code of DD. Show that an index set AA is r.e. if and only if

  1. x∈Ax \in A and Wx⊆WyW_{x} \subseteq W_{y} imply y∈Ay \in A;

  2. x∈Ax \in A implies that there exists y∈Ay \in A such that WyW_{y} is a finite subset of WxW_{x}; and

  3. There exists an r.e. set BB that contains codes of all and only finite sets WxW_{x} such that x∈Ax \in A (i.e., for each x∈Ax \in A such that WxW_{x} is finite, BB contains at least one of its code, and for every [x1,…,xn]∈B\left[x_{1}, \ldots , x_{n}\right] \in B and every xx such that Wx={x1,…,xn},x∈A)\left.W_{x}=\left\{ x_{1}, \ldots , x_{n}\right\} , x \in A\right).

?
Problem 5.4.6

For any partial recursive function f:{0,1}∗→{0,1}∗f: \left\{ 0,1\right\}^{*} \rightarrow \left\{ 0,1\right\}^{*}, we write DfD_{f} to denote its domain {x∣f(x)↓}\left\{ x \mid f(x) \downarrow \right\}. Let f,g,h:{0,1}∗→{0,1}∗f, g, h: \left\{ 0,1\right\}^{*} \rightarrow \left\{ 0,1\right\}^{*} be three partial recursive functions.

?
(a)

Show that there exists a partial recursive function p:{0,1}∗→{0,1}∗p: \left\{ 0,1\right\}^{*} \rightarrow \left\{ 0,1\right\}^{*} such that Dp=Df∪Dg∪DhD_{p}=D_{f} \cup D_{g} \cup D_{h}, and for each x∈Dpx \in D_{p}, p(x)=f(x)p(x)=f(x) or p(x)=g(x)p(x)=g(x) or p(x)=h(x)p(x)=h(x).

(b)

Show that there does not always exist a partial recursive function q:{0,1}∗→{0,1}∗q: \left\{ 0,1\right\}^{*} \rightarrow \left\{ 0,1\right\}^{*} such that Dq=Df∪Dg∪DhD_{q}=D_{f} \cup D_{g} \cup D_{h}, and for each x∈Dq,q(x)=f(x)x \in D_{q}, q(x)=f(x) or q(x)=g(x)q(x)=g(x) or q(x)=h(x)q(x)=h(x), and for each x∈Df∩Dg∩Dh,q(x)=min⁡{f(x),g(x),h(x)}x \in D_{f} \cap D_{g} \cap D_{h}, q(x)=\min \left\{ f(x), g(x), h(x)\right\}.

Problem 5.4.7

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.

?
Problem 5.4.8
?
(a)

Show that there exists an r.e. set BB such that ⋂n∈BWn\bigcap_{n \in B} W_{n} is not r.e.

(b)

Show that if BB is an r.e. index set then ⋂n∈BWn\bigcap_{n \in B} W_{n} is also r.e.

Problem 5.4.9

Let C1\mathcal{C}_{1} be the class of all recursive sets, C2\mathcal{C}_{2} the class of all r.e. sets which are not recursive, C3\mathcal{C}_{3} the class of all co-r.e. sets which are not r.e., and C4\mathcal{C}_{4} the class of all sets that are neither r.e. nor co-r.e. For each of the following sets, determine in which class Ci,i∈{1,2,3,4}\mathcal{C}_{i}, i \in \left\{ 1,2,3,4\right\}, it belongs to.

?
(a)

B1={x∣Mx(x) halts in at most 200 moves }B_{1}=\left\{ x \mid M_{x}(x)\text{ halts in at most 200 moves }\right\}.

(b)

B2={x∣ϕx(x)>x}B_{2}=\left\{ x \mid \phi_{x}(x)>x\right\}.

(c)

B3={x∣∣Wx∣≥5}B_{3}=\left\{ x \mid \left|W_{x}\right| \geq 5\right\}.

(d)

B4={x∣∣Wx∣≥x}B_{4}=\left\{ x \mid \left|W_{x}\right| \geq x\right\}.

(e)

B5={⟨x,y⟩∣y∈range⁡(ϕx)}B_{5}=\left\{ \langle x, y\rangle \mid y \in \operatorname {range}\left(\phi_{x}\right)\right\}.

(f)

B6={⟨x,y⟩∣ϕx(y) is defined or ϕy(x) is undefined }B_{6}=\left\{ \langle x, y\rangle \mid \phi_{x}(y)\text{ is defined or }\phi_{y}(x)\text{ is undefined }\right\}.

(g)

B7={n∣ϕn=ϕn0}B_{7}=\left\{ n \mid \phi_{n}=\phi_{n_{0}}\right\}, where n0n_{0} is a fixed positive integer.

(h)

B8={x∣ range of ϕx is finite }B_{8}=\left\{ x \mid \text{ range of }\phi_{x}\text{ is finite }\right\}.

(i)

B9={n∣Wn⊆P}B_{9}=\left\{ n \mid W_{n} \subseteq P\right\}, where PP is the set of primes.

(j)

B10={n∣Wn=P}B_{10}=\left\{ n \mid W_{n}=P\right\}, where PP is the set of primes.

(k)

B11={n∣Wn⊆K}B_{11}=\left\{ n \mid W_{n} \subseteq K\right\}.

Problem 5.4.10

A set AA is called single-valued if for each yy, there exists at most one zz such that ⟨y,z⟩∈A\langle y, z\rangle \in A. Let B12={x∣Wx is single-valued }B_{12}=\left\{ x \mid W_{x}\text{ is single-valued }\right\}. Show that EMP ≤mB12\leq_{m} B_{12} and B12≤mB_{12} \leq_{m} EMP,

?
Problem 5.4.11
?
(a)

Show that there is a recursive predicate RR such that

x∈REC⁡⟺(∃y)(∀z)(∃w)R(x,y,z,w). x \in \operatorname {REC} \Longleftrightarrow (\exists y)(\forall z)(\exists w) R(x, y, z, w).
(b)

Let COINF ={x∣Wˉx is infinite }=\left\{ x \mid \bar{W}_{x}\text{ is infinite }\right\}. Show that there exists a recursive predicate QQ such that

x∈ COINF ⟺(∀y)(∃z)(∀w)Q(x,y,z,w). x \in \text{ COINF } \Longleftrightarrow (\forall y)(\exists z)(\forall w) Q(x, y, z, w).
Problem 5.4.12

Prove the following reductions:

?
(a)

TOT ≤m\leq_{m} REC.

(b)

TOT ≤m\leq_{m} COINF.

Problem 5.4.13

Let B13={x∣Wx=K}B_{13}=\left\{ x \mid W_{x}=K\right\}.

?
(a)

Show that there exists a recursive predicate RR such that

x∈B13⟺(∀y)(∃z)R(x,y,z). x \in B_{13} \Longleftrightarrow (\forall y)(\exists z) R(x, y, z).
(b)

Show that B13≤B_{13} \leq Tot and Tot ≤mB13\leq_{m} B_{13}.

Problem 5.4.14

Let B14={x∣(∃y∈Wx)[Wy is infinite ]}B_{14}=\left\{ x \mid \left(\exists y \in W_{x}\right)\left[W_{y}\right.\text{ is infinite }]\right\}.

?
(a)

Show that there exists a recursive predicate RR such that

x∈B14⟺(∃y)(∀z)(∃w)R(x,y,z,w). x \in B_{14} \Longleftrightarrow (\exists y)(\forall z)(\exists w) R(x, y, z, w).
(b)

Show that REC ≤mB14\leq_{m} B_{14}.

Problem 5.4.15

A set B⊆{0,1}∗B \subseteq \left\{ 0,1\right\}^{*} is called productive if there exists a partial recursive function ff such that for every xx, if Wx⊆BW_{x} \subseteq B then f(x)↓f(x) \downarrow and f(x)∈B−Wxf(x) \in B-W_{x}.

?
(a)

Show that if BB is productive then BB has an infinite r.e. subset.

(b)

Show that if K≤mAK \leq_{m} A then Aˉ\bar{A} is productive.

(c)

Conclude from (a) and (b) above that a simple set cannot be a complete r.e. set.

Problem 5.4.16

Show that there exist two r.e. sets AA and BB such that A≤mBA \leq_{m} B and B≤mAB \leq_{m} A.

?