Decidability and Undecidability

Graduate Depth 55 in the knowledge graph I know this Set as goal
Unlocks 442 downstream topics
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

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication 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 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesDefining Finite Sets RigorouslyRecursive Definitions on Finite SetsNatural Numbers in Set Theory: Iterative ConstructionFormal Arithmetic and ExpressibilityDecidability and Undecidability

Longest path: 56 steps · 285 total prerequisite topics

Prerequisites (2)

Leads To (5)