Reduction functions

Definition (many-one reducible, equivalent) open_in_new

Let $A, B\subseteq \N$ be subsets.

A total computable function $f: \N\to \N$ is called a reduction of $A$ to $B$ if for all $w\in \N$, $$ \begin{align*} w\in A \iff f(w) \in B. \end{align*} $$

We say $A$ is many-one reducible to $B$ (denoted as $A\leq_m B$) if there is a reduction from $A$ to $B$.

We say $A$ is many-one equivalent to $B$ (denoted as $A\equiv_m B$) if $A\leq_m B$ and $B\leq_m A$.

$\leq_m$ is a partial order, i.e. it is reflexive ($A\leq_m A$ via $f=\id_\N$) and transitive (if $A_1 \leq_m A_2$ and $A_2 \leq_m A_3$, then $A_1 \leq_m A_3$ by concatenation of reductions).

$\equiv_m$ is an equivalence relation.

Note $A\leq_m B\iff \N\setminus A \leq_m \N\setminus B$. Thus $A$ and $\N\setminus A$ is either many-one equivalent or incomparable by $\leq_m$.

Proposition (many-one reducible to computable or computably enumerable languages) open_in_new

Let $L,L'\subseteq \mathbb{W}$. Suppose $L$${}\leq_m{}$$L'$.

  1. If $L'$ is computable, then so is $L$.

  2. If $L'$ is computably enumerable, then so is $L$.

Proof

Interpret $L\leq_m L'$ as "$L$ is at most as complicated as $L'$".

$\mathbf{K}$ and $\mathbb{W}\setminus \mathbf{K}$ are incomparable in $\leq_m$: otherwise $\mathbb{W}\setminus \mathbf{K}\equiv_m \mathbf{K}$ and in particular $\mathbb{W}\setminus \mathbf{K}\leq_m \mathbf{K}$, contradicting with $\mathbf{K}$ being $Σ_1$ but not $Π_1$.

Definition (hardness and completeness) open_in_new

Let $\mathcal{C}\subseteq \mathcal{P}(\N)$ be a collection of subsets and $A\subseteq \N$ be a subset.

Say $A$ is $\mathcal{C}$-hard if $X$${}\leq_m{}$$A$ for all $X\in \mathcal{C}$.

Say $A$ is $\mathcal{C}$-complete if $A$ is $\mathcal{C}$-hard and $A\in \mathcal{C}$.

Definition (Sigma_n, Pi_n, Delta_n sets) open_in_new

A set $X\subseteq \N^k$ is called $Σ_n$ if there exists a computable set $Y\subseteq \N^{k+n}$ such that for all $\v x\in \N^k$, $$ \begin{align*} \v x\in X \iff \exists y_1 \forall y_2 \exists y_3 \forall y_4 \ldots m_n: (\v x, y_1, \ldots, y_m)\in Y. \end{align*} $$

$X$ is called $Π_n$ if $\mathbb{N}^k \setminus X$ is $Σ_n$, i.e. there exists a computable set $Y\subseteq \N^{k+n}$ such that $$ \begin{align*} \v x\in X \iff \forall y_1 \exists y_2 \forall y_3 \exists y_4 \ldots m_n: (\v x, y_1, \ldots, y_m)\in Y. \end{align*} $$

$X$ is called $Δ_1$ if $X$ is both $Σ_1$ and $Π_1$.

Theorem (computably enumerable iff Sigma_1) open_in_new

A set is computably enumerable iff it is $Σ_1$.

Proof

Theorem (computable iff Delta_1) open_in_new

A set is computable iff it is $Δ_1$.

Proof

Proposition (non-trivial computable language is Delta_1-complete) open_in_new

If $L\subseteq \mathbb{W}$ is a computable language, and $L\neq \emptyset$ and $L\neq \mathbb{W}$, then $L$ is $Δ_1$-complete.

Proof

Theorem (halting problem is Sigma_1-complete) open_in_new

The halting problem $\mathbf{K}$ is $Σ_1$-complete.

Proof