42.01.02 · mathematical-logic / first-order-logic-completeness

The Compactness Theorem for Propositional Logic

shipped3 tiersLean: none

Anchor (Master): Enderton 2001 §1.7 in full together with the topological proof via Tychonoff; Johnstone 1982 *Stone Spaces* (Cambridge) Ch. I-II (the Stone space of a Boolean algebra, compactness as a topological statement); Jech 2003 *Set Theory* 3e (Springer) Ch. 2 and the Boolean-prime-ideal / ultrafilter material on the strength of compactness as a weak choice principle; de Bruijn-Erdős 1951 *Indag. Math.* 13 (the colouring theorem)

Intuition Beginner

Imagine you are handed an endless list of demands, each one a constraint on which of countless little switches must be on and which off. Some demands talk about switches 3 and 7; another talks about switches 7, 12, and 50; the list never ends. You want to know whether there is one setting of all the switches that meets every demand at once. Checking the whole infinite list directly is hopeless. The compactness theorem says something almost too good: you only ever have to check finite pieces. If every finite handful of demands can be met by some setting, then the entire infinite list can be met by a single setting.

The word "compact" is borrowed from geometry, where it names shapes with no missing edges or escaping-to-infinity behaviour. Here the same flavour appears: the demands cannot conspire to fail "only in the limit." Any genuine clash must already show up among finitely many of them. So failure is always local and finite, never a mysterious infinite accident.

Why care? Many real questions are about infinite situations built from finite rules: colouring an infinite map so neighbours differ, ordering an endless collection consistently, extending a partial plan to a full one. Compactness turns each of these infinite problems into a finite-checking problem. You verify the finite cases, which you can actually do, and the theorem hands you the infinite solution for free. The rest of the unit makes "demand" precise as a logical formula and "setting" precise as a truth assignment, then proves the promise in several different ways.

Visual Beginner

Picture the demands as a growing tree of partial decisions. At each level you decide one more switch, on or off, and you keep only the branches that have not yet broken any demand. The theorem is about whether some branch runs forever.

   Building a setting one switch at a time (keep only "still-OK" branches)

   switch 1:            on            off
                       /  \          /  \
   switch 2:        on    off      on    off
                    |      |        X      |      (X = a finite demand already broken)
   switch 3:      on off  on off          on off
                  |   X    |  |            X   |
                  ...      ...  ...            ...

   If every finite handful of demands is satisfiable, no level is ever
   completely pruned away, so an infinite "still-OK" path survives.
   That surviving path is one setting meeting all demands at once.

Read the tree downward. A branch dies the moment some finite group of demands is violated by the choices made so far. The key observation is that each demand mentions only finitely many switches, so it can only kill a branch after finitely many levels. If finitely many demands could never be satisfied together, that failure would already appear at some finite depth and prune that whole region.

level finite check you can actually do what survives
1 demands using only switch 1 the on/off choices that pass
2 demands using switches 1-2 passing partial settings of length 2
3 demands using switches 1-3 passing partial settings of length 3

Because no finite level is ever fully pruned (every finite collection is satisfiable), an unbroken path descends forever, and that infinite path is the setting that meets every demand.

Worked example Beginner

We test the promise on a small infinite list of demands about switches , where each switch is either on (true) or off (false). The list is: "exactly one of all the switches is on." We break that into demands each of which mentions only finitely many switches at a time, and watch finite-satisfiability decide the infinite question.

Step 1. Write demands of the first kind: "at most one switch is on." For every pair we add the demand "not ( on and on)." Each such demand mentions just two switches.

Step 2. Add one demand of the second kind: "at least one switch is on," meaning " on or on or on or ..." This single demand mentions infinitely many switches, so for the finite-checking method we instead consider its finite approximations later; for now keep the at-most-one demands, which are all finite.

Step 3. Check a finite handful. Take any finite group of the at-most-one demands. They mention finitely many switches, say up to . Turn on exactly and leave the rest off. No two switches are both on, so every demand in the handful is met. So every finite handful of the at-most-one demands is satisfiable.

Step 4. Apply the promise. Since every finite handful is satisfiable, the whole infinite collection of at-most-one demands is satisfiable. Indeed turning on only satisfies all of them at once.

Step 5. Note the contrast. If we also demand "no switch is on" together with "at least one switch is on," then a finite handful already clashes once it contains both, so finite-checking correctly reports failure.

What this tells us: the theorem reduces an endless consistency question to checking finite pieces, and a real contradiction always surfaces in some finite piece. The next sections make "demand," "switch setting," and "satisfiable" exact, and prove the reduction in full.

Check your understanding Beginner

Formal definition Intermediate+

Fix the sentential language of 42.01.01 pending: a set of sentence symbols (here permitted to be of any cardinality, not only countable), the connectives, and the well-formed formulas over them. A truth assignment is a function ; its recursive extension to all wffs is the unique connective-respecting extension supplied by unique readability. A wff is satisfied by when . A set of wffs is satisfiable when some single has for every ; it is finitely satisfiable when every finite subset is satisfiable [Enderton §1.7].

Compactness theorem (statement). A set of wffs is satisfiable if and only if it is finitely satisfiable. Equivalently, in consequence form, holds if and only if for some finite .

The two formulations are interchangeable. If then is unsatisfiable, so by the satisfiability form some finite is unsatisfiable; taking gives . The converse direction is monotonicity of .

Three viewpoints organise the proofs. Algebraically, the wffs modulo tautological equivalence form a Boolean algebra, the Lindenbaum-Tarski algebra , with iff , meet , join , complement , top , bottom . A truth assignment is a Boolean homomorphism , equivalently an ultrafilter of . Topologically, the set of all truth assignments carries the product topology with discrete; this is the Stone space of . For a wff the model set is clopen (closed and open), being a finite union of basic cylinders fixing the finitely many symbols occurring in . Combinatorially, partial assignments to finite symbol sets form a tree under extension.

Counterexamples to common slips Intermediate+

  • "Compactness says every finitely satisfiable set is finite." It says the opposite is harmless: an infinite set is satisfiable as soon as its finite subsets are. The set is infinite, finitely satisfiable, and satisfiable.

  • " is only closed, like the zero set of a continuous function." In with the product topology each is clopen, because depends on finitely many symbols, so the set is decided by finitely many coordinates. This is sharper than mere closedness and is what makes the finite-intersection argument work without separate openness hypotheses.

  • "Compactness is a triviality once you have completeness." The deductive route does derive it from completeness, but compactness is equivalent to the Boolean prime ideal theorem and so is not a theorem of alone; the semantic content survives even where no deductive calculus is fixed, which is why the topological and ultrafilter proofs matter independently.

  • "The product space is compact because each factor is finite, by a finite argument." For infinite this is precisely Tychonoff's theorem for the infinite product, whose use of choice is genuine; the compactness of is equivalent over to the ultrafilter lemma, not provable by finite means.

Key theorem with proof Intermediate+

The signature theorem is compactness itself, proved here by the topological route, which exhibits most directly why the name "compactness" is literal: it is the topological compactness of the space of truth assignments.

Theorem (compactness, topological proof). Let be any set of sentence symbols and a set of wffs over . If every finite subset of is satisfiable, then is satisfiable [Enderton §1.7].

Proof. Topologise the set of truth assignments as the product of copies of the two-point discrete space, one copy per sentence symbol. By Tychonoff's theorem is compact, since each factor is compact [Johnstone Ch. II]. For a wff let . The value depends only on the coordinates for the finitely many symbols occurring in , so is a union of finitely many basic cylinder sets, each of which is clopen; hence is clopen, in particular closed.

Consider the family of closed subsets of . A point of is exactly a satisfying every , so is satisfiable iff . By the finite intersection property characterisation of compactness, provided every finite subfamily has nonempty intersection. Given finitely many , the set is a finite subset of , hence satisfiable by hypothesis; a satisfying assignment lies in , which is therefore nonempty. Every finite subfamily of meets, so by compactness , and any in the intersection satisfies all of .

Corollary (consequence form). iff for some finite . If then has empty model set, so by the theorem (contrapositive) some finite is unsatisfiable; is finite and . The reverse is monotonicity.

Bridge. The clopen sets are the foundational reason the name is no metaphor: satisfiability of is the nonemptiness of an intersection of closed sets, and the finite intersection property is exactly the finite-satisfiability hypothesis, so compactness of is the compactness theorem. This builds toward the Stone-duality reading, in which is the Stone space of the Lindenbaum-Tarski algebra and ultrafilters are truth assignments, and it appears again in the first-order compactness theorem 42.01.07 pending, where the same finite-intersection skeleton is run over spaces of complete types. The central insight is that a formula constrains only finitely many coordinates, so each constraint is topologically closed and any obstruction to a global solution is detected by a finite subfamily; this is exactly the mechanism by which compactness of a product transfers finite-local solvability to global solvability, and it generalises the switch-tree of the Beginner tier into the finite-intersection property. Putting these together, the deductive proof, the König's-lemma proof, and this topological proof are three readings of one fact — that unsatisfiability is finitely witnessed — and the next tier exhibits them as theorems of the same strength, each equivalent to the Boolean prime ideal theorem.

Exercises Intermediate+

Advanced results Master

Compactness for propositional logic admits four proofs of differing flavour, all of one logical strength, and its applications and exact set-theoretic location organise the rest of the material.

Theorem 1 (four proofs, one theorem). The following routes each prove that a finitely satisfiable set over a set of sentence symbols is satisfiable, and each is, over , equivalent to the Boolean prime ideal theorem [Jech Ch. 2]. (i) Deductive. By soundness and completeness of the sentential calculus 42.01.01 pending, is satisfiable iff consistent; a deduction of a contradiction uses finitely many premises, so an inconsistent has an inconsistent finite subset, whence finite satisfiability forces satisfiability. (ii) Tree / König. For countable , build the binary tree of partial assignments preserving finite satisfiability; it is infinite and finitely branching, so König's lemma yields an infinite branch, a satisfying assignment. (iii) Topological. The model sets are closed in the compact space (Tychonoff) and have the finite intersection property, so their intersection is nonempty (Key theorem). (iv) Ultrafilter / Lindenbaum-Tarski. A finitely satisfiable generates a proper filter of the Boolean algebra ; an ultrafilter extending it is a homomorphism to , a satisfying assignment.

Theorem 2 (compactness as the semantic shadow of finite proofs). The deductive route is not an accident of one calculus. Compactness expresses, on the semantic side, that the consequence relation is finitary: implies for a finite . The completeness theorem identifies this with the syntactic finiteness of deductions, each of which is a finite object. Thus compactness is exactly the statement that semantic entailment cannot outrun what some finite proof could certify; the equivalence satisfiable consistent is the precise bridge [Enderton §1.7].

Theorem 3 (Stone duality reading). The Lindenbaum-Tarski algebra is a Boolean algebra, and its Stone space — the set of ultrafilters, topologised by the clopen sets — is canonically homeomorphic to the closure of the truth-assignment space inside , and equals when is the symbol set and no nontrivial axioms are imposed [Johnstone Ch. I-II]. Under this duality a theory corresponds to the closed set , its models are the points of that closed set, and the compactness theorem is the compactness of : a family of basic closed sets with the finite intersection property meets. Satisfiability is closedness-plus-nonemptiness; finite satisfiability is the finite intersection property.

Theorem 4 (the de Bruijn-Erdős colouring theorem). For a fixed positive integer , an infinite graph is -colourable iff every finite subgraph of is -colourable [de Bruijn-Erdős 1951]. Encode with symbols for , , the clauses " gets at least one colour" , " gets at most one colour" for , and "adjacent vertices differ" for . A finite subset of clauses mentions finitely many vertices, hence a finite subgraph, -colourable by hypothesis; so the clause set is finitely satisfiable, and by compactness satisfiable, giving a -colouring of . The same template proves the linear-extension theorem (every partial order extends to a total order) and consistency-of-finite-fragments arguments throughout combinatorics 40.04.06.

Theorem 5 (exact strength: a weak choice principle). Over , the compactness theorem for propositional logic is equivalent to the Boolean prime ideal theorem (every proper ideal of a Boolean algebra extends to a prime ideal), to the ultrafilter lemma (every filter on a set extends to an ultrafilter), and to the Tychonoff theorem for Hausdorff spaces [Jech Ch. 2]. These principles follow from the axiom of choice but do not imply it: there are models of satisfying the Boolean prime ideal theorem in which the axiom of choice fails (Halpern-Lévy). For a countable symbol set the König's-lemma proof needs only weak König's lemma, dropping below the full prime ideal theorem; the genuine choice content appears for uncountable .

Synthesis. The four proofs are the foundational reason compactness is robust: the deductive route exhibits it as the semantic shadow of finite proofs, the topological route as literal compactness of , and the ultrafilter route as the Boolean prime ideal theorem on the Lindenbaum-Tarski algebra, and this is exactly the equivalence locating compactness strictly below the axiom of choice. The central insight is that a wff constrains finitely many coordinates, so each model set is clopen and any obstruction is finitely witnessed; this generalises the switch-tree into the finite intersection property and is dual to the syntactic finiteness of a single deduction. Putting these together, the colouring, ordering, and finite-fragment-consistency applications are one template — encode an infinite combinatorial constraint as a propositional theory, observe finite subsets meet finite sub-instances, and invoke compactness — and the bridge is Stone duality, under which theories are closed subsets of a Stone space and satisfiability is nonemptiness, the same picture that the first-order compactness theorem 42.01.07 pending re-runs over type spaces to manufacture nonstandard models. What changes in the first-order case is not the topological skeleton but the objects: cylinders of truth values become clopen sets of complete types, and the harvest — Löwenheim-Skolem, nonstandard arithmetic, the failure of finite axiomatisability — is the model-theoretic content absent from the decidable propositional warm-up.

Full proof set Master

Proposition 1 (model sets are clopen). In with the product topology, is clopen for every wff .

Proof. Let be the finitely many sentence symbols occurring in . The value depends only on , by induction on using the connective clauses. Hence , the union over those tuples making true of the basic cylinder . Each is clopen (it fixes finitely many coordinates to clopen — indeed singleton — subsets of the discrete factors), and a finite union of clopen sets is clopen.

Proposition 2 (compactness, topological proof). If every finite subset of is satisfiable, is satisfiable.

Proof. is compact by Tychonoff. The family consists of closed sets (Proposition 1). For finite , a model of the finite set lies in , so the family has the finite intersection property. Compactness gives ; any member satisfies .

Proposition 3 (compactness, König's-lemma proof, countable ). For countable , finite satisfiability of implies satisfiability.

Proof. Build a tree whose nodes at level are partial assignments such that is finitely satisfiable, where is if and otherwise; a node at level extends a node at level when . Each node has at most two children, so is finitely branching. is infinite: every level is nonempty, because finite satisfiability of supplies, for each finite , a model whose restriction to is a level- node keeping satisfiable, and a counting/finite-extension argument promotes this to a single level- node compatible with all finite . By König's lemma has an infinite branch; the union of the partial assignments along it is a total assignment . For any , the node at level (largest index in ) keeps satisfiable consistently with the chosen literals, so ; hence satisfies .

Proposition 4 (ultrafilter proof and equivalence with the Boolean prime ideal theorem). The ultrafilter lemma implies compactness; conversely compactness implies the Boolean prime ideal theorem.

Proof. () Given finitely satisfiable , the classes in have all finite meets nonzero (a finite subset's model witnesses ), so they generate a proper filter; an ultrafilter exists by the ultrafilter lemma, and the homomorphism with gives satisfying . () Let be any Boolean algebra and a proper ideal; introduce a sentence symbol per and the theory asserting that is a homomorphism killing : clauses , , , , and for . Every finite subset constrains a finite subalgebra on which a homomorphism to separating the relevant finite part of from exists (finite Boolean algebras are products of ), so is finitely satisfiable; a model is a homomorphism whose kernel is a prime ideal extending .

Proposition 5 (de Bruijn-Erdős). For fixed , is -colourable iff every finite subgraph is.

Proof. Necessity is restriction. For sufficiency, take symbols (, ) and the theory with for each (some colour), for (at most one colour), and for , (proper). A model assigns each exactly one colour with adjacent vertices distinct, a proper -colouring. A finite mentions finitely many vertices and edges among them, i.e. a finite subgraph ; a -colouring of (existing by hypothesis) satisfies . So is finitely satisfiable, hence satisfiable by Proposition 2, and its model is a -colouring of .

Connections Master

  • Propositional logic as a formal system 42.01.01 pending supplies everything this unit presupposes: the inductively defined language, unique readability that makes well defined, the semantic consequence relation , the Hilbert calculus with , and the soundness/completeness pair. That unit states sentential compactness as a single corollary (its Theorem 4); this unit owns the theorem in full, giving the topological, König's-lemma, and ultrafilter proofs, the de Bruijn-Erdős and linear-extension applications, and the location below the axiom of choice. The deductive proof here is the completeness theorem of 42.01.01 pending combined with the finiteness of deductions.

  • The compactness theorem for first-order logic, co-produced as 42.01.07 pending, is the deep counterpart: it runs the identical finite-intersection skeleton over spaces of complete types rather than the cube , but its harvest is qualitatively different — nonstandard models of arithmetic, the upward Löwenheim-Skolem theorem, the non-finite-axiomatisability of theories, and the existence of infinitesimals in nonstandard analysis. The connection matters because the propositional case isolates the topological mechanism (clopen constraints, finite intersection property, Stone duality) in a setting where the consequence relation is decidable, so that 42.01.07 pending can attribute its model-existence power precisely to the move from truth values to first-order structures, not to compactness itself.

  • Vertex colouring and the chromatic polynomial 40.04.06 is where the de Bruijn-Erdős theorem of Theorem 4 lives as a graph-theoretic statement: that unit develops finite chromatic number and Brooks' theorem, and the compactness argument here lifts those finite results to infinite graphs, certifying that infinite chromatic number is always witnessed on a finite subgraph. The connection is a genuine dependency — the infinite colouring theorem is proved by encoding the finite colouring theory of 40.04.06 as a propositional theory and applying compactness — not a topical coincidence.

  • The Stone space and Boolean algebra material that Theorem 3 invokes (the Lindenbaum-Tarski algebra, ultrafilters as -valued homomorphisms, the Stone duality between Boolean algebras and compact totally disconnected spaces) connects this unit to point-set topology's Tychonoff theorem and to the Boolean prime ideal theorem of set theory 42.01.07 pending; the compactness of the truth-assignment space is the propositional instance of Stone-space compactness, and the same duality reappears whenever a logical theory is studied through its space of models.

Historical & philosophical context Master

The compactness theorem for propositional logic emerged as a by-product of the metatheory of the sentential calculus in the 1920s and 1930s. Paul Bernays' work on the propositional calculus and the systematic treatment in Hilbert and Ackermann's Grundzüge der theoretischen Logik (1928) established the completeness of the calculus relative to truth-table semantics, from which the finitary character of consequence — the content of compactness — follows directly via the finiteness of deductions. The semantic statement was later isolated and proved independently of any calculus.

The topological reading is due to the development of Stone duality. Marshall Stone's 1936 representation theorem for Boolean algebras identified every Boolean algebra with the algebra of clopen sets of a compact totally disconnected space, its space of ultrafilters; under this duality the compactness of propositional logic is the compactness of the Stone space of the Lindenbaum-Tarski algebra [Johnstone Ch. I-II]. The exact set-theoretic strength was settled in the choice-principle literature: the Boolean prime ideal theorem, shown equivalent to the compactness theorem and to the Tychonoff theorem for Hausdorff spaces, was proved by J. D. Halpern and Azriel Lévy (1971) to be strictly weaker than the axiom of choice, exhibiting a permutation model of in which the prime ideal theorem holds and choice fails [Jech Ch. 2]. The combinatorial reach of the theorem was demonstrated by N. G. de Bruijn and Paul Erdős in 1951, who deduced the -colourability of infinite graphs from that of their finite subgraphs by exactly the compactness encoding given above [de Bruijn-Erdős 1951].

Bibliography Master

@book{enderton2001logic,
  author    = {Enderton, Herbert B.},
  title     = {A Mathematical Introduction to Logic},
  edition   = {2},
  publisher = {Harcourt/Academic Press},
  year      = {2001}
}

@book{johnstone1982stone,
  author    = {Johnstone, Peter T.},
  title     = {Stone Spaces},
  series    = {Cambridge Studies in Advanced Mathematics},
  volume    = {3},
  publisher = {Cambridge University Press},
  year      = {1982}
}

@book{jech2003set,
  author    = {Jech, Thomas},
  title     = {Set Theory},
  edition   = {3, The Third Millennium Edition},
  series    = {Springer Monographs in Mathematics},
  publisher = {Springer},
  year      = {2003}
}

@article{debruijn1951colour,
  author  = {de Bruijn, N. G. and Erd\H{o}s, P.},
  title   = {A colour problem for infinite graphs and a problem in the theory of relations},
  journal = {Indagationes Mathematicae},
  volume  = {13},
  year    = {1951},
  pages   = {369--373}
}

@article{stone1936representation,
  author  = {Stone, Marshall H.},
  title   = {The theory of representations for Boolean algebras},
  journal = {Transactions of the American Mathematical Society},
  volume  = {40},
  number  = {1},
  year    = {1936},
  pages   = {37--111}
}

@article{halpernlevy1971boolean,
  author  = {Halpern, J. D. and L\'{e}vy, A.},
  title   = {The Boolean prime ideal theorem does not imply the axiom of choice},
  journal = {Proceedings of Symposia in Pure Mathematics},
  volume  = {13, Part I},
  year    = {1971},
  pages   = {83--134}
}

@book{hilbertackermann1928,
  author    = {Hilbert, David and Ackermann, Wilhelm},
  title     = {Grundz\"{u}ge der theoretischen Logik},
  publisher = {Springer},
  year      = {1928}
}