1. Gyanastra
  2. Theory of Computation
  3. Reductions and Rice's Theorem
  4. Reducibility and Proving Undecidability via Reduction
Free lesson, no account needed 5 min read 13 practice questions after it
Asked in past papers10 times
  • GATE CSE20222018201620152014200520032001
  • ISRO2017
  • UGC NET2019

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 P1P_1 is reducible to problem P2P_2 if there exists an algorithm (equivalently, a halting Turing machine) that converts every instance of P1P_1 into an instance of P2P_2.
  • Answer preservation: The conversion must satisfy one crucial property: the answer to the converted instance of P2P_2 must also be the answer to the original instance of P1P_1 (yes stays yes, no stays no).
  • Reduction procedure: A reduction is a conversion algorithm + solving algorithm. If P2P_2 can be solved, that is as good as solving P1P_1.
  • Direction 1 (decidability transfers forward): If P2P_2 is decidable and P1P_1 reduces to P2P_2, then P1P_1 is decidable.
  • Direction 2 (undecidability transfers backward): If P1P_1 is already proven undecidable and P1P_1 reduces to P2P_2, then P2P_2 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 P1P_1 and problem P2P_2:

  1. Take any instance of P1P_1.
  2. Apply the conversion algorithm (halting Turing machine) to transform it into an instance of P2P_2.
  3. Apply the solving algorithm for P2P_2 to that instance.
  4. Take the answer produced for P2P_2 as the answer for P1P_1.

Direction 1 requires two conditions:

  • There must be an algorithm to reduce every instance of P1P_1 to an instance of P2P_2.
  • There must be an algorithm to solve P2P_2.

Direction 2 is proved by contradiction:

  • Suppose P2P_2 were decidable.
  • Then, by Direction 1, since P1P_1 reduces to P2P_2 and P2P_2 is decidable, P1P_1 would be decidable.
  • But P1P_1 has already been proven undecidable — a contradiction.
  • Therefore P2P_2 cannot be decidable; P2P_2 must be undecidable.

Formulas

  • Reduction from P1P_1 to P2P_2 exists: there is a conversion algorithm CC (a halting Turing machine) such that for every instance xx of P1P_1, C(x)C(x) is an instance of P2P_2 with the same answer.
  • Direction 1: (P1 reduces to P2)∧(P2 is decidable)⇒P1 is decidable(P_1 \text{ reduces to } P_2) \land (P_2 \text{ is decidable}) \Rightarrow P_1 \text{ is decidable}.
  • Direction 2 (contrapositive): (P1 reduces to P2)∧(P1 is undecidable)⇒P2 is undecidable(P_1 \text{ reduces to } P_2) \land (P_1 \text{ is undecidable}) \Rightarrow P_2 \text{ is undecidable}.

Revision summary

  • The conversion must preserve the answer: the answer to the P2P_2 instance must be the answer to the P1P_1 instance.
  • Decidability flows from P2P_2 to P1P_1; undecidability flows from P1P_1 to P2P_2.
  • 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
Pages 1–2 of 2