April 28, 2026
Definition 1 Let A\subseteq \Sigma^*, B\subseteq \Gamma^*, A many-one reduces to B (A\leq_m B) if there exists a total computable function f: \mathbb \Sigma^* \to \mathbb \Gamma^* s.t.
Example 1 \mathtt{K}=\{x\mid M_x(x)\!\downarrow\} \leq_m \{(x,y) \mid M_x(y)\!\downarrow\}
f(x)=?
\mathtt{K}\leq_m \cdots \leq_m \{(G_1,G_2) \mid G_1,G_2 \text{ are CFGs with } \mathscr{L}(G_1)\cap \mathscr{L}(G_2)\neq \emptyset\}
\overline{\mathtt{K}}\leq_m \cdots \leq_m \{G \mid G \text{ is a CFG with } \mathscr{L}(G)=\{a,b\}^*\}
We can classify languages L as
How?
Given languages A,B,C s.t. A\in \mathbf{RE}\setminus \mathbf{R} and A=\overline{B\cup C}. Which of the following options for B and C are possible?
(a) B\in \mathbf{RE} and C\in \mathbf{RE}
(b) B\in \mathbf{coRE} and C\in \mathbf{coRE}
(c) B\in \mathbf{RE} or C\in \mathbf{RE}
(d) B\in \mathbf{coRE} or C\in \mathbf{coRE}
Let L=\{n\in \mathbb N \mid \exists p\geq n\ p\text{ and } p+2 \text{ are both prime numbers}\}.
Which of the following do you know for sure it is true?
(a) L\notin \mathbf{RE}\cup \mathbf{coRE}
(b) L\in \mathbf{RE}
(c) L\in \mathbf{coRE}
(d) L\in \mathbf{R}
Which of the following sentences on languages A,B\subseteq \{0,1\}^* is false?
(a) If A\notin \mathbf{R}, then A\cup\{0101\}\notin \mathbf{R}.
(b) If A\notin\mathbf{R} and B is finite, then A\cup B\notin \mathbf{R}.
(c) If A\in \mathbf{RE}, there are infinitely many Turing machines that recognize A.
(d) If A=\mathscr{L}(M) where M is a Turing machine that does not halt on 010, then A\in \mathbf{RE}\setminus \mathbf{R}.