Propositional Logic - Applications
A set of propositional formulas is satisfiable (has a model) if and only if every finite subset of is satisfiable.
Formally: has a truth assignment making all formulas true if and only if every finite has such a truth assignment.
The compactness theorem is remarkable because it allows us to conclude facts about infinite sets from properties of their finite subsets. For propositional logic, the proof is straightforward (since we can only have finitely many propositional variables in any finite subset), but the theorem generalizes to first-order logic where it has profound implications.
Consider the problem of -coloring an infinite graph where is infinite. We can encode this as a propositional satisfiability problem:
- For each vertex and color , create a variable meaning "vertex has color "
- Add formulas ensuring each vertex has exactly one color
- Add formulas for each edge and color
If every finite subgraph of is -colorable, then every finite subset of these formulas is satisfiable. By compactness, the entire infinite set is satisfiable, yielding a -coloring of the infinite graph .
For any set of formulas and formulas , :
The deduction theorem justifies the common proof technique of assuming a hypothesis and deriving a conclusion, then concluding the implication is provable. This meta-theorem about the proof system itself simplifies many logical arguments.
To prove :
- Assume (add to premises)
- From and , derive
- From and , derive
- We've shown
- By the deduction theorem,
Without the deduction theorem, we would need to construct a direct proof of the implication, which is more cumbersome.
These theorems demonstrate the rich structure of propositional logic despite its apparent simplicity. The compactness theorem connects finite and infinite, while the deduction theorem bridges syntactic proof manipulation and semantic consequence. Both extend to first-order logic, where they become even more powerful and find applications across mathematics.
These results are not merely theoretical curiosities but practical tools used in automated reasoning, formal verification, and the foundations of computer science.