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 moreMany-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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesBoolean AlgebraIntroduction to Propositional LogicIntroduction to Predicate Logic (First-Order Logic)First-Order Logic SyntaxZFC Axioms OverviewAxiom Schema of SeparationAxiom Schema of ReplacementVon Neumann OrdinalsHereditarily Finite SetsRecursive Definitions on Finite SetsWell-Founded Relations and Transfinite RecursionThe Axiom of Choice and Equivalent FormulationsAxiom of ChoiceWell-Ordering TheoremInfinite Cardinal NumbersCantor's TheoremUncountability and the Diagonal ArgumentThe Cantor Set: An Uncountable Nowhere Dense ExampleUncountable Sets and Cantor DiagonalizationThe Halting ProblemComputability ReductionsPost Correspondence ProblemRice's TheoremUndecidable Problems: Beyond the Halting Problem

Longest path: 92 steps · 525 total prerequisite topics

Prerequisites (3)

Leads To (1)