Sentential Logic/Compactness and Effectiveness

Lesson 2.71,207 words

Compactness and Effectiveness

The compactness theorem reduces satisfiability of an infinite set of formulas to its finite subsets, proved by extension to a maximal finitely satisfiable set and applied to color infinite graphs. Effectiveness fixes what "decidable" and "effectively enumerable" mean and settles the decidability of tautologyhood.

╌╌╌╌

Truth-table methods are finite: they decide implication for a finite set of premises by checking finitely many rows. Two results reach past the finite. Compactness transfers satisfiability from finite subsets to an infinite whole, and effectiveness fixes what it means for a property of formulas to be decidable by an algorithm — language the incompleteness theorems later depend on.1

The compactness theorem

Call a set of wffs satisfiable iff one truth assignment satisfies every member, and finitely satisfiable iff every finite subset is satisfiable.

One direction is free: a satisfying assignment for satisfies every subset, so satisfiable implies finitely satisfiable. For finite the converse is trivial, since is a finite subset of itself. The content is that an infinite finitely satisfiable set is satisfiable — that no obstruction to satisfiability is spread across infinitely many formulas without already showing up in some finite piece.

The nontrivial half of compactness: if every finite subset of a possibly infinite set has a satisfying assignment, then one assignment satisfies the whole set at once.

Proof by maximal extension

The proof has two parts: enlarge to a set that decides every formula while staying finitely satisfiable, then read a truth assignment straight off it.

Part 1 — extend. Since the sentence symbols are countable, so are the wffs; fix an enumeration of all of them. Define a chain by recursion:

where abbreviates . At each step at least one of the two choices keeps the set finitely satisfiable, so every is finitely satisfiable. Let . Then:

  • ;
  • for every wff , either or (it was decided at stage when );
  • is finitely satisfiable — any finite subset lies inside some , which is finitely satisfiable.

The construction is a walk down a binary tree: at level it commits to including or its negation, always down a branch that stays finitely satisfiable. When there are uncountably many sentence symbols the enumeration is unavailable, and Zorn's lemma produces a maximal finitely satisfiable instead.

The extension as a branch through a binary tree of choices: at each formula the construction adds it or its negation, always taking a branch that stays finitely satisfiable, and the limit of the branch decides every formula.

Part 2 — read off an assignment. Define iff , for every sentence symbol . A structural induction on shows that satisfies iff : the atomic case is the definition, and the connective cases use that decides every formula and is finitely satisfiable. Since , satisfies every member of .

Compactness for consequence

The satisfiability form has an implication form, using that iff is unsatisfiable.

A tautological consequence of infinitely many premises already follows from finitely many of them. This corollary is in fact equivalent to compactness.

Coloring an infinite graph

Compactness turns an infinite combinatorial constraint into infinitely many finite ones. The four-color theorem colors any finite planar map with four colors; compactness extends it to infinite maps.

Compactness lifts finite four-colorability to an infinite map: every finite portion is colorable by the finite theorem, and compactness assembles the finite colorings into one coloring of the whole.

Effectiveness and decidability

The truth-table method matters not only for what it computes but for the fact that a mechanical procedure computes it. An effective procedure is one with finite instructions, executable mechanically without insight, that for a decision problem halts on every input with yes or no after finitely many steps. No bound on running time or scratch space is imposed in advance; effectiveness is the limiting notion with all practical resource limits removed. The word stays informal here; a precise counterpart, recursive, arrives with the recursive functions. Positive claims — that some effective procedure exists — need only the informal notion: exhibit the procedure and its effectiveness is evident.

A counting argument bounds how much can be decidable. There are uncountably many () sets of expressions, but only countably many effective procedures, since each is fixed by a finite instruction text over a finite alphabet. Most sets of expressions are therefore undecidable; the interest is in which specific ones are decidable.

The parsing algorithm decides wffhood; the truth-table method decides implication for finite premise sets. As a corollary, the tautological consequences of a finite form a decidable set — in particular, the set of tautologies is decidable.

Tautologyhood is decidable: a formula enters, the procedure builds its truth table, and after finitely many rows it answers yes or no.

The gap between decidable and enumerable

Decidability is symmetric between yes and no; effective enumerability is only half of it. Two theorems place the boundary.

  • Enumerability equals semidecidability. A set is effectively enumerable iff it is semidecidable — listing the members and saying yes on members are interchangeable, by dovetailing tests across all expressions and increasing time budgets.
  • Kleene's complementation theorem. A set is decidable iff both it and its complement are effectively enumerable. Run two semidecision procedures in parallel — one for the set, one for its complement — and whichever halts first decides membership.
ClassGuaranteeMissing
Decidablehalts with yes or no on every input
Effectively enumerablehalts with yes on membersmay never halt on non-members

For an infinite premise set the symmetry can break. If is merely decidable (or even just effectively enumerable), its set of tautological consequences is effectively enumerable but not necessarily decidable.

The search over finite subsets is what a proof would make explicit. Reading each line as a tautology, a premise, or a modus-ponens step gives a finite certificate of consequence.

Provability tends to be effectively enumerable — proofs can be searched — while the matching decidability can fail. The set of valid first-order sentences is effectively enumerable (by completeness) yet undecidable, and arithmetic truth is not even effectively enumerable.

Footnotes

  1. Enderton, §1.7 — the compactness theorem, its proof by a maximal finitely satisfiable extension (with the Zorn's-lemma alternative), Corollary 17A, and the effectiveness notions: decidability, effective enumerability, Theorems 17B–17G.
  2. Enderton, §1.7, Exercise 4 — coloring a countable infinite planar map with four colors by applying compactness to the finite four-color theorem.

╌╌ END ╌╌