Mathematical Logic
Mathematical logic is the rigorous study of formal systems, proof, and truth using mathematical methods. Its central achievements show that any sufficiently expressive consistent formal system is incomplete (Gödel), that first-order logic is complete and compact, and that the notions of "computable" and "provable" have precise mathematical definitions. It underlies the foundations of mathematics, computer science, and the theory of computation. Pioneered by Frege, Russell, Hilbert, Gödel, Tarski, Church, and Turing (c. 1879–1940s).
The same symbolic strings can be viewed in two utterly different ways: as purely formal marks manipulated by mechanical rules (syntax / provability, written ), or as descriptions of structures that are true or false (semantics / truth, written ). Mathematical logic is the systematic comparison of these two perspectives. When they coincide — provable iff true in all models — we have soundness and completeness. When they diverge — true but unprovable — we have incompleteness. The entire field lives in the gap and the bridge between and .
Formal Statement
A logical system has three ingredients: a formal language (symbols and grammar), a deductive system (axioms and inference rules), and a semantics (interpretations giving meaning).
A first-order language consists of:
- Logical symbols: variables ; connectives ; quantifiers ; equality ; parentheses.
- Non-logical symbols (the signature): a set of constant symbols , function symbols (each with an arity), and relation/predicate symbols (each with an arity).
Terms are built from variables and constants by applying function symbols. Formulas are built from atomic formulas ( and ) using connectives and quantifiers. A sentence is a formula with no free variables.
An -structure consists of a nonempty domain together with interpretations: each constant becomes an element , each -ary function becomes , each -ary relation becomes . The satisfaction relation (" satisfies under variable assignment ") is defined by recursion on formula structure (Tarski's definition of truth):
Derivation hint: connectives are interpreted by the corresponding Boolean truth-functions on the truth values of subformulas.
Derivation hint: the universal quantifier ranges over the domain; is modified to send to . Here means every model of the set of sentences also models (semantic consequence), while means there is a finite formal derivation of from using the axioms and inference rules (syntactic consequence).
For first-order logic, syntactic and semantic consequence coincide:
Derivation hint: (the hard direction, completeness) is proved by Henkin's method — a consistent theory is extended to a maximal consistent set with witnesses, from which a "term model" is built whose domain is the equivalence classes of closed terms.
A set of first-order sentences has a model if and only if every finite subset of has a model.
Derivation hint: immediate from completeness — if were unsatisfiable, then , but a derivation is finite, so some finite .
Let be any consistent, effectively axiomatized theory that interprets a modest fragment of arithmetic (Robinson arithmetic ). Then there is a sentence (the Gödel sentence) such that neither nor is provable in :
Derivation hint: via arithmetization (Gödel numbering) construct asserting " is not provable in "; if proved it, would be inconsistent; if proved its negation, would prove a false provability claim (assuming -consistency, weakened to plain consistency by Rosser).
For a theory as above, let be the arithmetical sentence expressing the consistency of . Then:
Derivation hint: formalize the proof of the First Theorem inside itself; proves "", so if proved it would prove , contradicting the First Theorem.
Why It Holds
1. Arithmetization (Gödel numbering). Assign to every symbol, formula, and finite sequence of formulas a distinct natural number. Syntactic properties ("is an axiom", "is a valid inference") become arithmetical properties of these numbers. 2. Representability. Because interprets arithmetic, every computable relation is representable in : there is a formula that is provable exactly when codes a -proof of the formula coded by . Define the provability predicate . 3. The Diagonal (Fixed-Point) Lemma. For any formula with one free variable, there is a sentence such that
where is the numeral for the Gödel number of . The sentence "talks about itself." 4. Construct the Gödel sentence. Apply diagonalization to , obtaining with . Thus says "I am not provable." 5. Unprovability of . Suppose . Then there is a proof, so holds and is provable, hence . But . Together these give and its negation — contradiction with consistency. 6. Unprovability of . Symmetric argument using -consistency (Rosser's trick replaces this with plain consistency).
∎Born in Brünn (Brno), Gödel was the most consequential logician of the twentieth century. His 1929 doctoral thesis proved the completeness theorem; in 1931, aged 25, he published Über formal unentscheidbare Sätze, the incompleteness theorems that dismantled Hilbert's program of finding a complete, provably consistent foundation for all mathematics. He later proved the relative consistency of the Axiom of Choice and the Continuum Hypothesis with ZF set theory via the constructible universe . Emigrating to Princeton's Institute for Advanced Study, he became a close friend of Einstein. Plagued by paranoia in later life, he died of self-starvation. His work demonstrated, with mathematical certainty, the inherent limits of formal axiomatic reasoning.
Building Intuition
Think of a formal theory as a game with tokens. The axioms are starting positions; the inference rules are legal moves; a "theorem" is any position reachable by legal play. Soundness says you can never reach a false position. Completeness (for FOL) says every valid position is reachable. Now Gödel's insight: because the rules of the game are mechanical, the game can describe itself — you can write down, inside arithmetic, a statement of the form "this very statement has no winning line." If the game could reach it, that would prove it false (it claims unreachability); if the game could reach its denial, the game proves a falsehood. So the statement is true but stranded — outside the reach of the rules. There is no contradiction, only an inherent horizon: every consistent rule-system rich enough to do arithmetic can see truths it cannot grasp. Compactness has a different flavor: it says infinitely many constraints can be satisfied as long as no finite clump of them clashes. This is the engine behind nonstandard models — e.g., a structure satisfying every true statement of arithmetic plus "there is a number bigger than ", yielding infinite natural numbers.
```svg
```
Worked Examples
Given: Let be the set of all first-order sentences true in the standard natural numbers . Add a new constant symbol and the infinite set of sentences
Goal: Show has a model, and describe it.
Steps: 1. Take any finite subset . It mentions only finitely many constraints , the largest being for some . 2. Interpret as the standard number in . Then (with this interpretation) satisfies and all of . So is satisfiable. 3. Since every finite subset is satisfiable, by Compactness ([4]) the whole set is satisfiable. 4. A model satisfies every truth of yet contains an element exceeding every standard numeral.
Answer: This shows first-order logic cannot pin down uniquely (it is not categorical).
Given: The propositional formula over atoms .
Goal: Determine whether is satisfiable and count its satisfying assignments (models).
Steps: Enumerate all truth assignments. Recall is false only when is true and is false.
| T | T | T | T | T | T | T |
| T | T | F | T | F | T | F |
| T | F | T | F | T | T | F |
| T | F | F | F | T | T | F |
| F | T | T | T | T | T | T |
| F | T | F | T | F | F | F |
| F | F | T | T | T | T | T |
| F | F | F | T | T | F | F |
Three rows make true.
Answer: — namely , , . Note all three have ; indeed (one can check is unsatisfiable).
Common Misconceptions
"Incompleteness means mathematics is broken / arbitrary / unknowable." False. Incompleteness is a precise relative statement: a given consistent, effectively axiomatized theory cannot prove certain truths expressible in its language. It does not say there are absolutely unknowable mathematical facts, nor that any particular theorem of ordinary mathematics is in doubt. We can always extend (e.g., add as a new axiom) — but the new system has its own, new Gödel sentence. The lesson is about formal systems, not about truth itself.
"Gödel proved you can't trust mathematics." No — Gödel's theorems are themselves theorems of mathematics, proved with complete rigor. They presuppose, not undermine, the reliability of finitary reasoning.
"Completeness and Incompleteness contradict each other." They concern different things. Completeness (FOL) is about logical validity: provable = true-in-all-models. Incompleteness is about a fixed theory failing to settle every sentence: there are sentences true in the standard model but not provable from 's axioms. Both hold simultaneously.
The completeness ([3]) and compactness ([4]) theorems are special to first-order logic. In second-order logic (where quantifiers range over sets/relations, not just individuals), one can write a single sentence whose only model (up to isomorphism) is — second-order arithmetic is categorical. If second-order logic had compactness, the nonstandard-model construction above would apply, contradicting categoricity. Hence second-order logic is not compact and has no sound, complete, effective proof system. This trade-off — first-order logic's weakness in expressive power buys it completeness and compactness — is one of the deepest structural facts of the subject.
Connections
Mathematical logic is the connective tissue of foundational mathematics and theoretical computer science.
- <span class="wiki-link-missing">Set Theory</span> supplies the universe in which all of mathematics is interpreted; the ZFC axioms, the Axiom of Choice, and the Continuum Hypothesis are studied with logical tools (forcing, inner models).
- <span class="wiki-link-missing">Computability Theory</span> and the <span class="wiki-link-missing">Church–Turing Thesis</span> make "effectively axiomatized" and "computable" precise; the unsolvability of the Halting Problem is a recursion-theoretic twin of incompleteness.
- <span class="wiki-link-missing">Proof Theory</span> analyzes derivations as combinatorial objects (Gentzen's Sequent Calculus, cut-elimination, ordinal analysis measuring a theory's strength).
- <span class="wiki-link-missing">Model Theory</span> studies the structures satisfying theories — compactness, Löwenheim–Skolem Theorem, elimination of quantifiers, and stability theory.
- <a class="wiki-link" href="/wiki/cs-arch-boolean-algebra">Boolean Algebra</a> and <span class="wiki-link-missing">Lambda Calculus</span> link propositional logic and proof to algebra and programming; the <span class="wiki-link-missing">Curry–Howard Correspondence</span> identifies proofs with programs and propositions with types.
Real-World Applications
Historical Development
Subtleties & Limits
The boundary of provability remains an active frontier.
- Concrete independence. Beyond the self-referential Gödel sentence, are there natural, mathematically interesting statements independent of strong theories? Yes — the Paris–Harrington theorem (a Ramsey-type statement) and Goodstein's theorem are true but unprovable in Peano Arithmetic, requiring transfinite induction up to . Identifying the precise proof-theoretic strength (ordinal analysis) of strong theories like full second-order arithmetic and ZF is open.
- The Continuum Hypothesis. Shown undecidable in ZFC (Gödel + Cohen). Whether there is a correct answer — and what new axioms (large cardinals, forcing axioms, Woodin's -logic) might settle it — is a deep open philosophical and mathematical question.
- vs . Whether there is a tractable algorithm for satisfiability is the central open problem of computer science, with logical content (descriptive complexity characterizes complexity classes by logical expressibility).
- Reverse mathematics asks which axioms are necessary to prove ordinary theorems, calibrating them against a hierarchy of subsystems of second-order arithmetic — a program far from complete.
See Also
Gödel's Incompleteness Theorems · Model Theory · Proof Theory · Computability Theory · Set Theory · Propositional Logic · First-Order Logic · Compactness Theorem · Löwenheim–Skolem Theorem · Church–Turing Thesis · Curry–Howard Correspondence · Halting Problem