TheoremComplete

Propositional Logic - Applications

TheoremCompactness Theorem

A set Γ\Gamma of propositional formulas is satisfiable (has a model) if and only if every finite subset of Γ\Gamma is satisfiable.

Formally: Γ\Gamma has a truth assignment making all formulas true if and only if every finite ΔΓ\Delta \subseteq \Gamma 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.

ExampleApplication to Graph Coloring

Consider the problem of kk-coloring an infinite graph G=(V,E)G = (V, E) where VV is infinite. We can encode this as a propositional satisfiability problem:

  • For each vertex vVv \in V and color i{1,,k}i \in \{1, \ldots, k\}, create a variable pv,ip_{v,i} meaning "vertex vv has color ii"
  • Add formulas ensuring each vertex has exactly one color
  • Add formulas ¬(pv,ipw,i)\neg(p_{v,i} \land p_{w,i}) for each edge (v,w)(v,w) and color ii

If every finite subgraph of GG is kk-colorable, then every finite subset of these formulas is satisfiable. By compactness, the entire infinite set is satisfiable, yielding a kk-coloring of the infinite graph GG.

TheoremDeduction Theorem

For any set of formulas Γ\Gamma and formulas ϕ\phi, ψ\psi:

Γ{ϕ}ψif and only ifΓϕψ\Gamma \cup \{\phi\} \vdash \psi \quad \text{if and only if} \quad \Gamma \vdash \phi \to \psi

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.

ExampleUsing the Deduction Theorem

To prove (pq)(qr)pr(p \to q) \land (q \to r) \vdash p \to r:

  1. Assume pp (add to premises)
  2. From pqp \to q and pp, derive qq
  3. From qrq \to r and qq, derive rr
  4. We've shown (pq)(qr),pr(p \to q) \land (q \to r), p \vdash r
  5. By the deduction theorem, (pq)(qr)pr(p \to q) \land (q \to r) \vdash p \to r

Without the deduction theorem, we would need to construct a direct proof of the implication, which is more cumbersome.

Remark

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.