A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Undecidable Problems: Beyond the Halting Problem

College Depth 91 in the knowledge graph ☐ I know this ☆ Set as goal
8topics build on this
525prerequisites beneath it
See this on the map →
The Halting ProblemRecursively Enumerable Languages: Semi-Decidability+1 more→→Many-One Reductions and Undecidability Proofs
undecidability halting post-correspondence context-free

Core Idea

While the Halting Problem is the canonical undecidable problem, many other natural problems are also undecidable: determining if a Diophantine equation has solutions, whether a context-free grammar is ambiguous, and whether two grammars are equivalent. These examples demonstrate the pervasiveness of uncomputability across different domains.

How It's Best Learned

Study 2-3 undecidable problems and their reduction relationships. The Post Correspondence Problem and grammar ambiguity are particularly illuminating.

Common Misconceptions

Explainer

The Halting Problem proved that no Turing machine can decide, for all pairs (M, w), whether machine M halts on input w. Rice's theorem extended this: no machine can decide any non-trivial semantic property of programs. But undecidability is not merely a feature of computing about computing — it appears throughout mathematics in domains that seem to have nothing to do with Turing machines.

The Post Correspondence Problem (PCP) is a clean example. You are given a finite list of pairs of strings over some alphabet: (u₁, v₁), (u₂, v₂), …, (uₙ, vₙ). Can you choose a sequence of indices i₁, i₂, …, iₖ (with repetition allowed) such that the concatenation uᵢ₁uᵢ₂…uᵢₖ equals vᵢ₁vᵢ₂…vᵢₖ? This is purely a string-matching puzzle with no machines or programs in sight. Yet PCP is undecidable: the proof reduces the Halting Problem to PCP by encoding computation histories as string-matching constraints. PCP is then used as an intermediate step to prove undecidability of many other problems.

Grammar problems are a rich source of undecidability. The question "is this context-free grammar ambiguous?" (does some string have two parse trees?) is undecidable — proved by reducing PCP to it. The question "do two context-free grammars generate the same language?" is also undecidable. Remarkably, context-free languages are one of the simplest classes beyond regular languages, yet basic questions about their structure are already incomputable. In contrast, the *membership* problem for context-free grammars (given a grammar G and string w, is w ∈ L(G)?) is decidable — so decidability is fine-grained even within a single class.

Hilbert's Tenth Problem asked whether there is an algorithm to determine if a given polynomial equation with integer coefficients has integer solutions (i.e., whether a Diophantine equation is solvable). The negative answer, proved by Matiyasevich in 1970 completing work of Davis, Putnam, and Robinson, showed this is undecidable. The proof encodes Turing machine computation into Diophantine equations — the set of solutions to a Diophantine equation can represent any recursively enumerable set. This connects number theory directly to computability theory and shows that even elementary questions about integer arithmetic are beyond algorithmic resolution. The pervasiveness of undecidability across formal language theory, number theory, and logic is not coincidental: via reductions, each undecidable problem provides a template for discovering more, building the dense web of undecidability that makes the boundaries of computability such a rich research area.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Introduction to Propositional Logic → Introduction to Predicate Logic (First-Order Logic) → First-Order Logic Syntax → ZFC Axioms Overview → Axiom Schema of Separation → Axiom Schema of Replacement → Von Neumann Ordinals → Hereditarily Finite Sets → Recursive Definitions on Finite Sets → Well-Founded Relations and Transfinite Recursion → The Axiom of Choice and Equivalent Formulations → Axiom of Choice → Well-Ordering Theorem → Infinite Cardinal Numbers → Cantor's Theorem → Uncountability and the Diagonal Argument → The Cantor Set: An Uncountable Nowhere Dense Example → Uncountable Sets and Cantor Diagonalization → The Halting Problem → Computability Reductions → Post Correspondence Problem → Rice's Theorem → Undecidable Problems: Beyond the Halting Problem

Longest path: 92 steps · 525 total prerequisite topics

Prerequisites (3)

Leads To (1)