Diagonalization (Cantor/Turing argument)

[36/67%]
Show
LaTeX

Write out the details of the proof, using diagonalization, that B\mathcal{B} is uncountable.

?

Prove that the set TOTAL\mathrm{TOTAL} is not recursively enumerable. Hint. For the universal Turing machine U\mathfrak {U}, consider the function U(f(x),x)&a\mathfrak {U}(f(x), x) \& a (concatenation with a nonempty symbol).

?

Prove that there exists a p.r.f. ff that cannot be extended to any g.r.f. gg, that is, such that f(x)=g(x)f(x)=g(x) for all x∈dom⁡fx \in \operatorname {dom} f. Hint. For the universal Turing machine U\mathfrak {U}, consider the arithmetic function f(x)=U(x,x)+1f(x)=\mathfrak {U}(x, x)+1.

?

Let AA be any set (not necessarily countable). Show that there does not exist a one-to-one correspondence between set AA and the set 2A2^{A} of all subsets of AA.

?

Show that the set F1F_{1} of all one-to-one, increasing functions from N\mathbf{N} to N is uncountable.

?

What are wrong with the following diagonalization proofs?

?
(a)

We show that there exists a partial recursive function f:{0,1}∗→{0,1}∗f: \left\{ 0,1\right\}^{*} \rightarrow \left\{ 0,1\right\}^{*} which is not enumerated in ϕ0,ϕ1,…\phi_{0}, \phi_{1}, \ldots. Define f(n)=ϕn(n)+1f(n)= \phi_{n}(n)+1. Then, by the existence of the universal DTM, we can see that ff is partial recursive. Thus, we have obtained a partial recursive function ff that is different from every ϕn\phi_{n} at input nn, n≥0n \geq 0.

(b)

We show that the set REC⁡={x∣Wx is recursive }\operatorname {REC}=\left\{ x \mid W_{x}\text{ is recursive }\right\} is not r.e. Suppose, by way of contradiction, that REC is r.e. Then, there exists a recursive function gg whose range is equal to REC. Define A={x∣x∉Wg(x)}A=\left\{ x \mid x \notin W_{g(x)}\right\}. Since each Wg(x)W_{g(x)} is recursive, it is decidable whether x∈Wg(x)x \in W_{g(x)}. Therefore, AA is a recursive set. But this is a contradiction, since A≠Wg(x)A \neq W_{g(x)} for every x≥0x \geq 0.

Assume that A⊆NA \subseteq \mathbf{N} is a set with the following properties: (i) ϕn\phi_{n} is recursive for all n∈An \in A, and (ii) for all recursive functions f,f=ϕnf, f=\phi_{n} for some n∈An \in A. Show that AA is not an r.e. set.

?
?
(a)

Show that the class of primitive recursive functions is effectively enumerable (in the sense that there is an r.e. set BB such that (i) ϕn\phi_{n} is primitive recursive, for all n∈Bn \in B, and (ii) for all primitive recursive function g,g=ϕng, g=\phi_{n} for some n∈Bn \in B).

(b)

Show that there exists a recursive function that is not primitive recursive.

Show that set A={n∣ϕn halts on n and its output is greater than n}A=\left\{ n \mid \phi_{n}\text{ halts on }n\text{ and its output is greater than }n\right\} is not a recursive set.

?

We say two sets AA and BB are recursively separable if there exists a recursive set CC such that A⊆CA \subseteq C and B⊆CˉB \subseteq \bar{C}. Show that for any n≠m∈Nn \neq m \in \mathbf{N}, sets KnK_{n} and KmK_{m} are not recursively separable, where Kn={x∣ϕx(x) is defined and is equal to n}K_{n}=\left\{ x \mid \phi_{x}(x)\text{ is defined and is equal to }n\right\}.

?

Show that there exists a set AA such that both AA and Aˉ\bar{A} are infinite but neither has an infinite r.e. subset.

?

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

?

Describe the detail of the 3-worktape DTM M∗M^{*} of Theorem 6.16. In particular, describe how M∗M^{*} works using input ww as both the machine code for MwM_{w} and as the input to MwM_{w}, while it is stored in the read-only input tape.

?

Find a recursive language LL that is not context-sensitive.

?

Show that the set FF of functions from N\mathbf{N} to {0,1}\left\{ 0,1\right\} is uncountable.

?

Show that there exists a co-r.e. set that is not r.e.

?

We say a partial recursive function f:{0,1}∗→{0,1}∗f: \left\{ 0,1\right\}^{*} \rightarrow \left\{ 0,1\right\}^{*} is extendable if there exists a recursive function g:{0,1}∗→{0,1}∗g: \left\{ 0,1\right\}^{*} \rightarrow \left\{ 0,1\right\}^{*} such that g(x)=f(x)g(x)=f(x) whenever f(x)↓f(x) \downarrow. Show that there exists a partial recursive function that is not extendable.

?

Show that TOT ={n∣Wn={0,1}∗}={n∣ϕn is recursive }=\left\{ n \mid W_{n}= \left\{ 0,1\right\}^{*}\right\} =\left\{ n \mid \phi_{n}\text{ is recursive }\right\} is not r.e.

?

Show that there exists a simple set.

?

Prove that the set of points of the segment [0,1][0, 1] is uncountable.

?

Prove that the set of real-valued functions defined on the segment [0,1][0, 1] has cardinality greater than cc.

?

Prove that the set P(A)P(A) of all subsets of a set AA has cardinality greater than ∣A∣\left|A\right|.

?

We say that a sequence of natural numbers b1,b2,…b_{1}, b_{2}, \ldots grows faster than a sequence a1,a2,…a_{1}, a_{2}, \ldots if lim⁡n→∞anbn=0\lim_{n \to \infty } \frac{a_{n}}{b_{n}} = 0. Prove that:

?
(a)

for every sequence of natural numbers there exists a sequence growing faster than it;

(b)

if a set of sequences AA has the property that for every sequence a1,a2,…a_{1}, a_{2}, \ldots there exists a sequence from AA growing faster than a1,a2,…a_{1}, a_{2}, \ldots, then the set AA is uncountable.

Prove that there is no primitive recursive function universal for the family of all nn-ary primitive recursive functions.

?

Prove that there is no partial recursive function universal for the family of all nn-ary general recursive functions.

?

Prove that the following functions are not partial recursive:

?
(a)

h(x,y)={1,if x is the number of a machine T and the machine T halts, starting to work from the machine word q101y0,0otherwise;h(x, y) = \begin{cases} 1, & \text{if } x \text{ is the number of a machine } T \text{ and the machine } T \text{ halts, starting to work from the machine word } q_{1}01^{y}0, \\ 0 & \text{otherwise;} \end{cases}

(b)

g(x)=h(x,x)g(x) = h(x,x);

(c)

h0(x)={1,if x is the number of a machine T and the machine T halts, starting to work from the machine word q10,0otherwise.h_{0}(x) = \begin{cases} 1, & \text{if } x \text{ is the number of a machine } T \text{ and the machine } T \text{ halts, starting to work from the machine word } q_{1}0, \\ 0 & \text{otherwise.} \end{cases}

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

?

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.

?

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.

?

Let B\mathcal{B} be the set of all infinite sequences over {0,1}\left\{ 0,1\right\}. Show that B\mathcal{B} is uncountable using a proof by diagonalization.

?

Let AA be a Turing-recognizable language consisting of descriptions of Turing machines, {⟨M1⟩,⟨M2⟩,…}\left\{ \left\langle M_{1}\right\rangle ,\left\langle M_{2}\right\rangle , \ldots \right\}, where every MiM_{i} is a decider. Prove that some decidable language DD is not decided by any decider MiM_{i} whose description appears in AA. (Hint: You may find it helpful to consider an enumerator for AA.)

?

Let ATM ′={⟨M,w⟩∣M is an oracle TM and MATM accepts w}A_{\text{TM }}{ }^{\prime }=\left\{ \langle M, w\rangle \mid M \text{ is an oracle TM and } M^{A T \mathrm{M}} \text{ accepts } w\right\}. Show that ATM ′A_{\text{TM }}{ }^{\prime } is undecidable relative to ATM A_{\text{TM }}.

?

Show that for any language AA, a language BB exists, where A≤TBA \leq_{\mathrm{T}} B and B≰TAB \nleq_{\mathrm{T}} A.

?
  • Prove that there exist two languages AA and BB that are Turing-incomparable-that is, where A≰TBA \nleq_{\mathrm{T}} B and B≰TAB \nleq_{\mathrm{T}} A.
?
  • Read the definition of a 2DFA (two-headed finite automaton) given in Problem 5.26. Prove that P contains a language that is not recognizable by a 2DFA.

Problem 5.26: A two-headed finite automaton (2DFA) is a deterministic finite automaton that has two read-only, bidirectional heads that start at the left-hand end of the input tape and can be independently controlled to move in either direction. The tape of a 2DFA is finite and is just large enough to contain the input plus two additional blank tape cells, one on the left-hand end and one on the right-hand end, that serve as delimiters. A 2DFA accepts its input by entering a special accept state.

?

Prove that an oracle CC exists for which NPC≠coNP⁡C\mathrm{NP}^{C} \neq \operatorname {coNP}^{C}.

?

References

[Sax02] Saxe K. Beginning Functional Analysis. Springer, 2002.
[ДДК+21] Дехтярь М.И., Дудаков С.М., Карлов М.И., Карлов Б.Н. Задачник по дискретной математике. 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.
[Sip13] Sipser M. Introduction to the Theory of Computation. 3rd ed., Cengage Learning, 2013.