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

Decidable Fragments of First-Order Logic

Graduate Depth 92 in the knowledge graph ☐ I know this ☆ Set as goal
447topics build on this
489prerequisites beneath it
See this on the map →
Decidability and UndecidabilityFirst-Order Logic Syntax+4 more→→Gödel's Completeness Theorem for First-Order LogicHerbrand Universe and Herbrand Models
first-order-logic decidability computational-complexity

Core Idea

While full first-order logic is undecidable, certain restricted fragments are decidable—for example, the Ackermann class (formulas with a special structure of quantifiers) and monadic first-order logic (predicates of at most one argument). Studying decidable fragments reveals what restrictions on expressive power are necessary to recover decidability.

Explainer

You already know that full first-order logic is undecidable: the Entscheidungsproblem (decision problem for FOL) has no algorithmic solution, as Church and Turing proved in 1936. There is no algorithm that takes a first-order sentence as input and decides whether it is satisfiable. But this undecidability result applies to the *full* language — it doesn't mean every restricted subset is undecidable. Many practically important fragments turn out to be decidable, sometimes even efficiently so, and understanding which fragments cross the decidability line tells us where the logical "hard core" of undecidability actually lives.

The most natural restriction is on quantifier prefix. The quantifier-free fragment is trivially decidable (just evaluate propositional logic). The monadic fragment — where all predicates take only one argument — is decidable; Löwenheim proved this in 1915. With only unary predicates, you cannot express relational structure between objects (like "x is connected to y"), so the combinatorics stay manageable. The Ackermann class consists of formulas with prefix ∃*∀∃* (any number of existentials, one universal block, then existentials again) and no equality — these are decidable by reduction to finite satisfiability checking. The Bernays-Schönfinkel class (∃*∀*) is decidable and corresponds to existential second-order logic over finite structures in disguise; these sentences are satisfiable if and only if finitely satisfiable.

A key parameter is whether the fragment can *encode* computations. Undecidability enters when a fragment can simulate the behavior of a Turing machine — then satisfiability can encode the halting problem. Fragments that avoid relational structure, limit quantifier alternation, or restrict the way variables are reused often escape this trap. The two-variable fragment of FOL (with only two variable names, x and y, reused freely) is decidable (NEXPTIME-complete) — this is surprising, because two variables can still express substantial relational content. Adding a third variable restores undecidability. Similarly, modal logic is a decidable fragment of FOL: modal formulas translate to FOL formulas in a restricted form (the *standard translation*), and decidability of the modal logic corresponds to decidability of that FOL fragment.

The practical payoff is substantial: description logics (the formalism behind OWL ontologies), temporal logic (used in model checking), and many database query languages are all decidable because they correspond to decidable fragments of FOL. When you need automated reasoning over a formal language, the first question is: which fragment of FOL does this correspond to, and does that fragment fall on the decidable side of the line? Decidable fragments are not a curiosity — they are the logical backbone of automated verification, knowledge representation, and database theory.

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 → Terms and Atomic Formulas in FOL → Variable Binding and Scope → Open and Closed Formulas in First-Order Logic → Variable Substitution and Capture-Avoidance in First-Order Logic → Quantifier Instantiation Rules in First-Order Proof Systems → Universal Quantification: Meaning and Scope → Free Variables and Bound Variables → Substitution and Instantiation in Predicate Logic → Terms and Atomic Formulas → Formulas and Well-Formed Expressions → Structures and Interpretations → Model Interpretation and Satisfaction → Interpretation, Truth, and Satisfaction of Formulas → Logical Consequence and Entailment → Soundness Theorem and Validity of Proof Systems → Deductive Reasoning and Formal Proof Systems → First-Order Resolution → Propositional Resolution → Semantic Tableaux (Propositional) → Semantic Tableaux (First-Order) → Decidable Fragments of First-Order Logic

Longest path: 93 steps · 489 total prerequisite topics

Prerequisites (6)

Leads To (2)