Sub topic 11
Proving Undecidability by Reduction
Prerequisites and the reduction idea
This chapter assumes that you know Turing machines, acceptance, halting, and proof by contradiction. You should also know that the acceptance problem
\[ A_{TM}=\{\langle M,w\rangle \mid M\text{ accepts }w\} \]
is undecidable.
A many-one reduction transforms instances of one problem into instances of another problem. We write
\[ A \le_m B \]
when there is a computable function \(f\) such that
\[ x\in A \iff f(x)\in B. \]
The transformation must be computable and must preserve the yes/no answer.
The direction is important. To prove that \(B\) is undecidable, reduce a problem already known to be undecidable to \(B\):
\[ A{\text{undecidable}} \lem B. \]
If \(B\) had a decider, we could use it after the transformation to decide \(A\). That contradiction proves that \(B\) is undecidable.
The standard proof pattern
Use these steps:
- Choose a known undecidable language \(A\).
- Assume, for contradiction, that the target language \(B\) has a decider \(D_B\).
- Given an input \(x\) for \(A\), compute \(f(x)\).
- Run \(D_B\) on \(f(x)\).
- Return the same answer.
- Prove \(x\in A\) exactly when \(f(x)\in B\).
The most common error is reversing the reduction. Showing \(B\le_m A\) does not prove that \(B\) is undecidable. It only shows that \(B\) is no harder than \(A\).
Example: reducing \(A_{TM}\) to \(HALT_{TM}\)
Let
\[ HALT_{TM}=\{\langle N,x\rangle\mid N\text{ halts on }x\}. \]
We prove that \(HALT_{TM}\) is undecidable by showing
\[ A{TM}\lem HALT_{TM}. \]
Given an input \(\langle M,w\rangle\), construct a machine \(N\):
- \(N\) ignores its own input.
- \(N\) simulates \(M\) on \(w\).
- If \(M\) accepts \(w\), \(N\) halts.
- If \(M\) rejects or runs forever, \(N\) runs forever.
The construction of \(N\) from \(\langle M,w\rangle\) is mechanical, so it is computable. The crucial equivalence is
\[ \langle M,w\rangle\in A{TM} \iff \langle N,\epsilon\rangle\in HALT{TM}, \]
where \(\epsilon\) is any fixed input, such as the empty string.
If a decider for \(HALT{TM}\) existed, we could construct a decider for \(A{TM}\). Since \(A{TM}\) is undecidable, this is impossible. Therefore, \(HALT{TM}\) is undecidable.
Checking a reduction
| Check | Question |
|---|---|
| Direction | Does the known hard problem reduce to the target? |
| Computability | Can the transformation always be carried out? |
| Equivalence | Are both yes and no cases preserved? |
| Contradiction | Would a target decider decide the known hard problem? |
Exercise
To prove that a language B is undecidable, should you show B ≤m ATM or ATM ≤m B?
Show answer
Show ATM ≤m B. A decider for B would then decide the known undecidable language ATM.