Theory of Computation · Reductions and Rice's Theorem
Reducibility and Proving Undecidability via Reduction
Overview
Reducibility is the technique of converting one problem into another with an algorithm (a halting Turing machine) while preserving the answer.
It is the standard tool for transferring decidability results between problems and, in particular, for proving that a problem is undecidable by reducing a known undecidable problem to it.
Key concepts
- Reducibility: Problem is reducible to problem if there exists an algorithm (equivalently, a halting Turing machine) that converts every instance of into an instance of .
- Answer preservation: The conversion must satisfy one crucial property: the answer to the converted instance of must also be the answer to the original instance of (yes stays yes, no stays no).
- Reduction procedure: A reduction is a conversion algorithm + solving algorithm. If can be solved, that is as good as solving .
- Direction 1 (decidability transfers forward): If is decidable and reduces to , then is decidable.
- Direction 2 (undecidability transfers backward): If is already proven undecidable and reduces to , then must be undecidable.
- Proving undecidability: To prove a given problem undecidable, find a reduction from a problem already known to be undecidable to the given problem.
Merely failing to find a Turing machine or algorithm is not enough — a problem cannot be declared undecidable just because no Turing machine was found; there must be a rigid proof.
How it works
Given problem and problem :
- Take any instance of .
- Apply the conversion algorithm (halting Turing machine) to transform it into an instance of .
- Apply the solving algorithm for to that instance.
- Take the answer produced for as the answer for .
Direction 1 requires two conditions:
- There must be an algorithm to reduce every instance of to an instance of .
- There must be an algorithm to solve .
Direction 2 is proved by contradiction:
- Suppose were decidable.
- Then, by Direction 1, since reduces to and is decidable, would be decidable.
- But has already been proven undecidable — a contradiction.
- Therefore cannot be decidable; must be undecidable.
Formulas
- Reduction from to exists: there is a conversion algorithm (a halting Turing machine) such that for every instance of , is an instance of with the same answer.
- Direction 1: .
- Direction 2 (contrapositive): .
Revision summary
- The conversion must preserve the answer: the answer to the instance must be the answer to the instance.
- Decidability flows from to ; undecidability flows from to .
- To prove a problem undecidable, reduce a known undecidable problem to it.
- Failing to find a Turing machine is not a proof of undecidability.
- The second direction is given wrong in many local edition books and in many solved GATE questions; the correct treatment is in standard books, and the lecture version should be followed.
Previous-year exam insights
- Many-one (mapping) reduction A ≤m B requires a total computable function f with x ∈ A iff f(x) ∈ B; it transfers: B recursive ⇒ A recursive; A undecidable ⇒ B undecidable; B r.e. ⇒ A r.e.; A not r.e. ⇒ B not r.e.
It does NOT transfer: A recursive ⇒ B recursive, or B undecidable ⇒ A undecidable.
Asked inGATE 2016GATE 2014GATE 2005 - Polynomial-time reduction A ≤p B transfers: B ∈ P ⇒ A ∈ P; A ∉ P ⇒ B ∉ P; B ∈ NP ⇒ A ∈ NP; and if A is NP-hard then B is NP-hard (B is NP-complete if also B ∈ NP).
It does NOT transfer: A ∈ P ⇒ B ∈ P, or A ∈ NP ⇒ B ∈ NP; nor does A ≤p B with B NP-complete make A NP-complete.
Asked inGATE 2015ISRO 2017 - NP-hardness: a problem B is NP-hard if every problem in NP polynomial-time reduces to B; B need not be in NP. If an NP-hard problem reduces to B (i.e., NP-hard ≤p B), then B is NP-hard.
B is NP-complete iff B ∈ NP and B is NP-hard.
Asked inISRO 2017 - Rice's theorem: every non-trivial semantic property of the language accepted by a Turing machine (a property of L(M) that holds for some but not all r.e. languages) is undecidable.
Examples: L(M) = ∅, L(M) finite, L(M) regular, L(M) = Σ*, L(M1) = L(M2), L(M1) ⊆ L(M2).
Asked inUGC NET 2019 - Non-monotone/behavioural properties are not covered by Rice's theorem and are typically undecidable by direct reduction from the halting problem: whether M on w ever visits a given state q, ever writes a given symbol, or ever moves its head left of the start.
Asked inGATE 2001 - If a bijection f with both f and f⁻¹ polynomial-time computable satisfies x ∈ L1 iff f(x) ∈ L2, then L1 and L2 have the same complexity/decidability status (both in P, both in NP, both decidable, or both undecidable); a decidable language cannot be mapped this way to an undecidable one.
Asked inGATE 2003