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

Decidability and Undecidability

Graduate Depth 80 in the knowledge graph I know this Set as goal
502topics build on this
414prerequisites beneath it
See this on the map →
Formal Arithmetic and ExpressibilityCantor's Diagonalization ArgumentDecidability of TheoriesDecidable Fragments of First-Order Logic+3 more
decidability undecidability halting-problem-formal Church-Turing decision-procedure

Core Idea

A theory is decidable if there is an algorithm that determines whether any given sentence is a theorem. Propositional logic is decidable (truth tables decide validity). First-order logic is semi-decidable — there is a procedure that halts on all valid sentences but may loop on invalid ones. The first-order theory of arithmetic (true arithmetic) is undecidable by Church's theorem, proved via reduction from the halting problem. Undecidability results are established using diagonalization arguments similar to Cantor's, demonstrating that no consistent recursive axiomatization can decide all arithmetic truths.

How It's Best Learned

Study the decidability of propositional logic and contrast with the undecidability of FOL validity. Trace Church's reduction: show how a Turing machine computation can be expressed as an arithmetic sentence.

Common Misconceptions

Explainer

A logic or formal theory is decidable if there is an effective procedure — an algorithm that always terminates — which, given any sentence φ in the language, determines whether φ is a theorem. Notice the word "always": the algorithm must halt with a correct yes-or-no answer for every input, not just the easy ones. Propositional logic meets this bar cleanly. Any propositional formula has finitely many propositional variables, and a truth table with 2ⁿ rows evaluates every possible truth assignment. If every row gives "true," the formula is a tautology. The procedure always terminates. Propositional logic is decidable.

First-order logic is harder. The completeness theorem tells you that every valid first-order sentence (true in all structures) is provable from the axioms. This gives you a semi-decision procedure: systematically enumerate all proofs in some proof system; if φ is valid, you will eventually find a proof and halt with "yes." But if φ is not valid — if it is false in some structure — the search may run forever. There is no complementary procedure that reliably terminates and says "no, φ is not valid." First-order logic is semi-decidable: you can enumerate the valid sentences, but you cannot decide validity in general.

The undecidability of first-order arithmetic (true arithmetic, the set of sentences true in ℕ) goes further: not even the valid sentences of arithmetic can be enumerated by any consistent recursive axiomatization. Church's theorem establishes this via a reduction from the halting problem — the very technique you studied in Cantor's diagonalization argument. The reduction works by encoding Turing machine computations as arithmetic sentences: a machine M halts on input w if and only if a specific arithmetic sentence is true. If arithmetic were decidable, the halting problem would be too, contradicting what you already know is impossible.

The crucial distinction is between undecidable and unprovable. A theory being undecidable means there is no uniform algorithm that decides all its sentences. But individual sentences within the theory are still provable one at a time: 2 + 2 = 4 has a proof; Fermat's Last Theorem has a proof. Undecidability says the *collection* of theorems cannot be separated from the collection of non-theorems by any algorithm — not that individual proofs cannot be found. This nuance is easy to miss, and keeping it sharp is essential for understanding Gödel's incompleteness theorems, which sit immediately ahead.

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 SetsNatural Numbers in Set Theory: Iterative ConstructionFormal Arithmetic and ExpressibilityDecidability and Undecidability

Longest path: 81 steps · 414 total prerequisite topics

Prerequisites (2)

Leads To (5)