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 Propositional Logic

College Depth 79 in the knowledge graph ☐ I know this ☆ Set as goal
498topics build on this
402prerequisites beneath it
See this on the map →
Soundness and Completeness of Propositional LogicConjunctive and Disjunctive Normal Forms+1 more→→Basic Model TheoryCompactness Theorem for First-Order Logic
compactness infinite-sets satisfiability finiteness

Core Idea

The compactness theorem states that an infinite set of propositional formulas is satisfiable if and only if every finite subset of it is satisfiable. This connects local (finite) reasoning to global (infinite) conclusions and is one of the most powerful tools in mathematical logic. It follows naturally from completeness: any proof uses only finitely many formulas. Compactness has striking applications — for instance, it can be used to show that if a graph-coloring problem has no finite obstruction, it has a valid coloring — and it is the key lemma behind many model-theoretic constructions.

How It's Best Learned

Prove compactness from completeness (proofs are finite objects). Then work through at least one non-trivial application, such as constructing non-standard models or proving König's infinity lemma.

Common Misconceptions

Explainer

You already know that a set of propositional formulas is satisfiable if there is some truth assignment making all of them simultaneously true, and you know from soundness and completeness that provability and truth coincide for propositional logic. The compactness theorem builds on completeness to answer a question about infinite sets: if you cannot find a contradiction in any finite portion of an infinite theory, must the whole thing be consistent?

The answer is yes. Formally: an infinite set Σ of propositional formulas is satisfiable if and only if every finite subset of Σ is satisfiable. The forward direction is trivial — if Σ has a model, every subset does too. The surprising direction is the converse: finite satisfiability everywhere implies a global satisfying assignment exists. This is called "compactness" by analogy with topology — the logic behaves like a compact space, where a property holding at every finite scale propagates to the whole.

The cleanest proof runs through completeness. Any proof of a contradiction from Σ uses only finitely many formulas from Σ (proofs are finite objects). So if every finite subset of Σ is satisfiable (and hence consistent), no finite subset can prove a contradiction, so Σ itself cannot prove a contradiction, so by completeness Σ is satisfiable. The key observation is that proofs are finite, which means contradictions can only "see" finitely many assumptions at once.

The applications are striking. Suppose you want to 4-color an infinite planar graph but can't do it all at once. Compactness lets you argue locally: introduce a propositional variable for each "node gets color c" assignment, write finitely many formulas encoding valid 4-coloring for each finite subgraph, and observe that every finite subgraph is colorable (by the finite 4-color theorem). By compactness, the infinite graph is colorable too. The same argument proves König's infinity lemma, constructs non-standard models of arithmetic, and builds models with unusual properties — all by specifying infinitely many requirements that are finitely consistent.

Compactness also clarifies the *limits* of propositional logic. It implies that propositional logic cannot express the property "this graph is finite" or "this number is a standard natural number" — any finite set of formulas satisfied by finite structures can always be extended (by compactness) to a model with a non-standard, infinite element. This is not a bug but a feature: it is precisely the gap that separates propositional logic's infinite models from their finite approximations, and it will recur in full force when you study compactness for first-order logic.

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 → Compactness Theorem for Propositional Logic

Longest path: 80 steps · 402 total prerequisite topics

Prerequisites (3)

Leads To (2)