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

Compactness Theorem for First-Order Logic

College Depth 80 in the knowledge graph ☐ I know this ☆ Set as goal
497topics build on this
408prerequisites beneath it
See this on the map →
Soundness and Completeness of First-Order LogicCompactness Theorem for Propositional Logic→→Basic Model TheoryCompactness Theorem in Model Theory+3 more
compactness FOL ultraproducts non-standard-models

Core Idea

The compactness theorem for first-order logic states that an infinite set of sentences has a model if and only if every finite subset has a model. This follows from completeness (proofs are finite, so any derivation of a contradiction uses only finitely many axioms). Compactness implies that first-order logic cannot characterize the natural numbers up to isomorphism: any first-order theory with an infinite model has models of every infinite cardinality (a consequence of Löwenheim-Skolem), and non-standard models of arithmetic exist. Compactness is a fundamental limitation of first-order expressivity.

How It's Best Learned

Construct a non-standard model of arithmetic explicitly using compactness: add a new constant c and axioms c > n for each natural number n, then apply compactness to get a model containing an 'infinite' element.

Common Misconceptions

Explainer

From your study of soundness and completeness for first-order logic, you know that a sentence is provable from a set of axioms if and only if it is true in every model of those axioms. The key structural fact underlying completeness is that proofs are finite objects. A formal proof is a finite sequence of steps, and therefore any proof uses only finitely many axioms from the axiom set — even if the axiom set is infinite. This finiteness of proofs is the engine behind compactness.

The compactness theorem says: an infinite set Γ of first-order sentences has a model if and only if every finite subset of Γ has a model. The "only if" direction is trivial — if Γ has a model, every subset does too. The "if" direction is the content: if Γ itself were unsatisfiable, some finite proof of ⊥ would exist (by completeness), and that proof would use only finitely many sentences from Γ, contradicting the assumption that every finite subset is satisfiable. Compactness is essentially completeness stated contrapositively, with proofs' finiteness doing all the work.

The power of compactness comes from using it constructively to build non-standard models. The canonical example: let T be the first-order theory of arithmetic (the sentences true in ℕ) and add a new constant symbol c together with the infinitely many axioms {c > 0, c > 1, c > 2, c > 3, ...}. Any finite subset of this extended theory is satisfiable — just interpret c as a sufficiently large natural number. By compactness, the entire theory is satisfiable. But any model of it contains an element c that is larger than every standard natural number — a non-standard natural number. This means first-order arithmetic cannot be categorical: no first-order theory pins down ℕ up to isomorphism, since any such theory also has non-standard models.

This points to compactness as a fundamental limitation of first-order expressivity. You cannot write a first-order sentence that says "exactly the standard natural numbers exist," or "this element is finite," or "this sequence is well-founded" in full generality. Any first-order condition that holds in ℕ will also hold in a structure with extra infinite elements. Second-order logic, which can quantify over sets and relations, can characterize ℕ up to isomorphism — but at the cost of losing compactness. This tradeoff (expressivity vs. model-theoretic manageability) is one of the central themes of logic: first-order logic's weakness (non-categoricity) is also its strength (completeness, compactness, and the Löwenheim-Skolem theorem all depend on it).

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 → Propositional Connectives → Propositional Semantics and Valuations → Truth Functions and Interpretation → Formula Evaluation and Truth Tables → Logical Equivalence of Formulas → Logical Equivalence in Propositional Logic → Conjunctive and Disjunctive Normal Forms → Sequent Calculus → Soundness and Completeness of Propositional Logic → Soundness and Completeness of First-Order Logic → Compactness Theorem for First-Order Logic

Longest path: 81 steps · 408 total prerequisite topics

Prerequisites (2)

Leads To (5)