Propositional and First-Order Logic
Propositional and first-order logic are the two foundational formal systems for representing and reasoning about truth. Propositional logic combines atomic statements with connectives (¬, ∧, ∨, →, ↔); first-order logic adds quantifiers (∀, ∃), variables, predicates, and functions. Key result: both are sound and complete (Gödel, 1929–30) — provability and semantic truth coincide. Applied across mathematics, computer science, philosophy, and AI. Originated with Frege (1879), formalized by Russell, Hilbert, and Gödel.
Logic separates syntax (formal symbol manipulation: which strings are formulas, which derivations are proofs) from semantics (meaning: when is a formula true under an interpretation). The central achievement is showing these two perspectives agree. A formula is provable from a set of premises if and only if it is true in every model of those premises. This bridge — soundness one way, completeness the other — turns reasoning into computation and meaning into mechanism.
Formal Statement
The language of propositional logic is built from:
- A countable set of propositional variables
- Connectives: (not), (and), (or), (implies), (iff)
- Parentheses for grouping.
Well-formed formulas (wffs) are defined recursively: every variable is a wff; if are wffs, so are , , , , .
The semantics is given by truth-value assignments , extended to all formulas:
Derivation hint: negation flips the truth value; this is the defining truth-table row for ¬.
Derivation hint: conjunction is true only when both conjuncts hold — the AND truth table.
Derivation hint: material implication is false only in the one case T→F; equivalently .
- A formula is a tautology () if for every assignment .
- is satisfiable if some makes it true.
- A set entails () if every satisfying all of also satisfies .
A first-order language consists of:
- Variables
- Logical symbols: connectives, quantifiers , equality (optional)
- Non-logical symbols (the signature): constant symbols , function symbols (with arities), predicate/relation symbols (with arities).
Terms: every variable and constant is a term; if are terms and is -ary, is a term. Atomic formulas: and . Formulas: built from atomics with connectives and quantifiers , .
The semantics uses a structure (model) with nonempty domain and interpretation assigning meanings to symbols, plus a variable assignment .
Derivation hint: the universal quantifier ranges over every element of the domain; reassigns to .
Derivation hint: is equivalent to — duality of quantifiers.
For first-order logic, semantic entailment and syntactic provability coincide:
Derivation hint: ⇐ is soundness (proof rules preserve truth); ⇒ is completeness, proved via Henkin's maximal consistent set construction.
Soundness: if then . Compactness: has a model iff every finite subset of has a model. Compactness follows directly from completeness, since proofs are finite.
Why It Holds / Derivation
We prove the contrapositive: if , then has a model in which is false. 1. Consistency: If , then is consistent (no contradiction derivable). 2. Lindenbaum extension: Extend to a maximal consistent set — adding formulas one at a time, keeping consistency, until every formula or its negation is included. 3. Henkin witnesses: Augment the language with new constants and add "witness" axioms: for each , ensure a constant with . This guarantees "talks about" enough individuals. 4. Term model construction: Build a model whose domain is the set of closed terms, modulo the equivalence . Interpret symbols so that membership in matches truth. 5. Truth Lemma: By induction on formula structure, for all sentences . 6. Conclusion: Since , the model satisfies but not . Hence . ∎
∎Austrian-American logician whose 1929 doctoral dissertation proved the completeness theorem for first-order logic, establishing that the predicate calculus captures all valid inferences. Just two years later (1931), he delivered his incompleteness theorems, showing that any consistent, recursively axiomatized theory strong enough for arithmetic cannot prove its own consistency and must leave true statements unprovable. These two results — completeness of logic and incompleteness of arithmetical theories — are not contradictory: completeness concerns logical consequence, incompleteness concerns the limits of axiom systems. Gödel later worked on set theory (the constructible universe , proving the consistency of the Continuum Hypothesis) and emigrated to Princeton, where he became a close friend of Einstein.
Building Intuition
Think of propositional logic as circuit wiring: variables are switches (on/off), connectives are logic gates, and a tautology is a circuit that outputs "on" no matter how you flip the switches. There are only finitely many switch configurations ( for variables), so truth tables decide everything — this is why propositional logic is decidable. First-order logic is more like describing the rules of a board game without fixing the board. "For every piece there is a square it occupies" is a sentence; a model is a particular board configuration that obeys your rules. The same set of axioms can have wildly different models (e.g., the axioms of group theory hold in , in symmetry groups, in ). Quantifiers let you "scan" an entire domain, but because domains can be infinite, you can no longer just enumerate cases — which is precisely why FOL is undecidable yet still complete.
Worked Examples
Given: Show that (modus ponens) is a tautology.
Steps: There are assignments. Evaluate column by column.
| whole formula | ||||
|---|---|---|---|---|
| T | T | T | T | T |
| T | F | F | F | T |
| F | T | T | F | T |
| F | F | T | F | T |
The final column is T in all 4 rows. The antecedent is only true in row 1, where is also true, so the implication never fails.
Answer:
Given: Consider the signature with one binary relation and the sentence
This says is irreflexive and symmetric — i.e., the edge relation of a simple undirected graph. Count the number of models on a fixed 3-element domain .
Steps: 1. Irreflexive symmetric relations on a 3-set ↔ simple undirected graphs on 3 labeled vertices. 2. The number of possible edges is . 3. Each edge is independently present or absent: .
Answer: (the 8 labeled graphs on 3 vertices, from the empty graph to the triangle).
Common Misconceptions
Material implication is not causation. The formula is true whenever is false, regardless of any connection between and . "If , then the moon is cheese" is true in classical logic because the antecedent is false. Students must resist reading as "causes" or "leads naturally to." Similarly, means "not all," which equals ("some don't") — not "none."
One might assume that because FOL is complete (every valid formula is provable), there must be an algorithm to decide validity. This is false. By the Church–Turing theorem (1936), first-order validity is undecidable: no algorithm can correctly answer "is valid?" for all . The reason completeness doesn't give decidability: a proof search can confirm validity (it will eventually find the proof if one exists) but can run forever on an invalid formula without halting. FOL validity is semi-decidable, not decidable. Propositional logic, by contrast, is decidable via truth tables — but the decision problem (SAT) is NP-complete.
Connections
Propositional logic is the propositional fragment of First-Order Logic and underlies Boolean Algebra, where formulas modulo logical equivalence form a Boolean algebra. Its decision problem, Boolean Satisfiability (SAT), is the canonical NP-complete problem in Computational Complexity Theory. First-order logic is the foundation of Model Theory (the study of structures satisfying theories), Proof Theory (the structure of formal derivations), and Set Theory (ZFC is a first-order theory). Gödel's completeness here contrasts sharply with his Gödel's Incompleteness Theorems, which concern arithmetical theories. The semantics connects to Universal Algebra and the compactness theorem links to Topology via Stone duality.
Real-World Applications
Historical Development
Subtleties & Limits
First-order logic has profound expressive limits revealed by the Löwenheim–Skolem theorem: any first-order theory with an infinite model has models of every infinite cardinality. This yields Skolem's paradox — the countable models of (first-order) set theory contain "uncountable" sets that are externally countable. FOL also cannot express finiteness, connectivity of graphs, or "well-foundedness" as single sentences (provable via compactness). Attempts to strengthen FOL run into trade-offs captured by Lindström's theorem (1969): first-order logic is the maximal logic satisfying both compactness and the (downward) Löwenheim–Skolem property — any genuinely stronger logic must sacrifice one. Second-order logic gains expressiveness (it can characterize up to isomorphism) but loses completeness, compactness, and a recursive proof system. The open frontier concerns which fragments balance expressiveness and decidability — the two-variable fragment, guarded fragments, and finite model theory remain active research areas.
See Also
Boolean Satisfiability (SAT) · Model Theory · Proof Theory · Gödel's Incompleteness Theorems · Computability Theory · Boolean Algebra · Set Theory · Natural Deduction · Sequent Calculus · Description Logic