Mathematical Logic and Foundations

Canonical T1 reference for the logical and foundational substrate of mathematics. Touches propositional + first-order logic, set theory, incompleteness, computability, model theory, proof theory, type theory and the constructive tradition, and a pointer at category theory.

Related notes:

1. At a glance

Mathematical logic is the formal study of valid reasoning, formal languages, models, proofs, and the limits of computation. Foundations is the meta-mathematical project of identifying a base layer of axioms and rules from which the rest of mathematics can be derived.

The 1879-1936 founding period (Frege, Russell, Hilbert, Gödel, Tarski, Turing) produced several seismic results:

  • A rigorous syntactic notion of proof, separable from semantic truth (Frege 1879, Russell 1910).
  • An axiomatic foundation for all of working mathematics (ZFC set theory; Zermelo 1908, Fraenkel + Skolem 1920s).
  • A proof that arithmetic is incomplete — there are true statements that cannot be proved (Gödel 1931).
  • A mechanical model of computation (Turing 1936) and the undecidability of the halting problem.
  • The completeness theorem connecting syntactic provability to semantic truth in first-order logic (Gödel 1929).

This note surveys the resulting landscape: classical logic (propositional and first-order), set theory and the universe, computability, model and proof theory, the constructive / type-theoretic alternative tradition, and a brief pointer at category theory as a foundational alternative.

Why a working mathematician or AI agent should care

  • Programming languages and verification — type systems (Hindley-Milner, dependent types) and proof assistants (Coq, Lean, Agda, Isabelle) are direct descendants of formal logic. The Curry-Howard correspondence makes proofs and programs the same thing.
  • AI and reasoning — SAT solvers, SMT solvers, theorem provers, planning, formal methods. Every soundness/completeness question in an LLM-reasoning system has its analogue here.
  • Database theory — relational algebra is a fragment of first-order logic; Datalog is a fragment of Horn-clause logic.
  • Complexity theory — Cook (1971) showed propositional SAT is NP-complete; the entire P-vs-NP question is logic-theoretic at heart.
  • Philosophy of mathematics — the foundational debates (logicism, formalism, intuitionism, structuralism) live and die on the technical theorems below.

2. Propositional logic

The simplest formal system. Atomic propositions are combined via connectives:

SymbolNameTruth condition
negation true iff false
conjunctionboth true
disjunctionat least one true
implicationfalse only when true, false
biconditionalboth same value
XORexactly one true

Syntax — well-formed formulas (WFFs) built inductively from atoms via connectives.

Semantics — a truth assignment extends compositionally to all WFFs. is valid (a tautology) iff true under every assignment; satisfiable iff true under some assignment; contradictory if true under none.

Equivalences and normal forms

EquivalenceForm
Double negation
De Morgan
Distribution
Material implication
Contrapositive
Excluded middle (classical only)
Peirce’s law (classical only)

Normal forms.

  • Disjunctive normal form (DNF) — disjunction of conjunctions of literals.
  • Conjunctive normal form (CNF) — conjunction of disjunctions of literals; the input form for SAT solvers.
  • Negation normal form (NNF) — negations applied only to atoms.
  • Horn clauses — at most one positive literal per clause; underlies Prolog and Datalog.

Every WFF has a (non-unique) equivalent in each normal form. Conversion can blow up exponentially.

Proof systems

Three styles, all equivalent in deductive power for classical propositional logic:

  1. Hilbert-style (axiomatic) — a few axiom schemata plus modus ponens. Compact to state, painful to use.
  2. Natural deduction (Gentzen 1934) — introduction and elimination rules per connective. Closest to informal mathematical reasoning.
  3. Sequent calculus (Gentzen 1934) — manipulates sequents via left/right rules; the central object of proof theory (Section 11).

Soundness. If in the proof system then semantically.

Completeness (propositional, Post 1921). If then . Together with soundness, syntactic provability matches semantic validity.

Compactness. A set is satisfiable iff every finite subset is. Follows from completeness; key tool in model theory.

SAT and complexity

The Boolean satisfiability problem (SAT) asks: given in CNF, does some assignment satisfy it? Cook (1971) (independently Levin 1973) showed SAT is NP-complete — the foundational result of complexity theory. Every problem in NP reduces to SAT in polynomial time.

Modern SAT solvers — CDCL (Conflict-Driven Clause Learning), originating with GRASP (Marques-Silva + Sakallah 1996) and Chaff (Moskewicz et al. 2001), routinely handle industrial instances with millions of variables despite the worst-case exponential hardness. The gap between worst-case and typical-case is one of the deep mysteries of computer science.

SMT (Satisfiability Modulo Theories) generalises SAT by allowing background theories (linear arithmetic, arrays, bit-vectors, uninterpreted functions). Solvers like Z3, CVC5 power program verification, model checking, and security analysis.

3. First-order logic

Propositional logic cannot say “all”, “some”, or “equals”. First-order logic (FOL) extends it with quantifiers over a domain of individuals, variables, function symbols, relation symbols, and equality.

Signature — a tuple with arities.

Terms — built from variables, constants, and function applications.

Formulas — atomic (, ) combined via Boolean connectives and quantifiers.

Example (arithmetic). Signature . Formula .

Tarski semantics (1933)

A structure for signature is a pair : a non-empty domain and interpretations of each constant, function, relation. An assignment maps variables to elements of . Tarski’s recursive truth definition specifies when :

  • iff .
  • Boolean cases by usual recursion.
  • iff for every .
  • iff for some .

A sentence (no free variables) is true in iff . A theory is a set of sentences; models iff it satisfies every sentence in .

Gödel’s completeness theorem (1929)

Theorem. For a first-order theory and sentence : iff .

That is, syntactic provability and semantic entailment coincide in FOL. The proof (Henkin-style; Henkin 1949 simplification) constructs a model of any consistent theory from witnessing constants.

Two important corollaries:

Compactness. has a model iff every finite subset does. Used to build non-standard models (of arithmetic, analysis, etc.).

Löwenheim-Skolem theorem (Löwenheim 1915, Skolem 1920). Any consistent FOL theory with at least one infinite model has models of every infinite cardinality . So no first-order theory can pin down a unique infinite structure up to isomorphism. Hence the Skolem paradox: ZFC has a countable model even though ZFC proves uncountable sets exist (the model’s notion of “uncountable” is internal).

Beyond first-order

Higher-order logic (HOL) allows quantification over predicates (Frege 1879, Russell 1910). Strictly more expressive, but loses completeness (Henkin semantics restores it by restricting to “general” models).

Infinitary logics allow infinite conjunctions / quantifiers. Useful for descriptive set theory and admissibility theory.

Modal logics (Kripke 1959, 1963) add operators (necessity), (possibility). Underlie temporal logic, epistemic logic, dynamic logic, and program verification. Soundness + completeness for various axiom systems (K, T, S4, S5) match different classes of Kripke frames.

Intuitionistic logic — drops excluded middle; semantics via Kripke models or Heyting algebras (Section 12).

4. Set theory and the axiomatic universe

Naïve set theory. Cantor (1874-1897) introduced sets, cardinality, the diagonal argument, the hierarchy of infinities . Russell’s paradox (1901) — the “set of all sets that do not contain themselves” — showed naïve comprehension is inconsistent. The response: axiomatic set theory.

ZFC — Zermelo-Fraenkel set theory with Choice

The canonical foundation of modern mathematics. Axioms (Zermelo 1908, Fraenkel + Skolem 1920s; choice typically labelled separately):

  1. Extensionality — sets with the same members are equal.
  2. Pairing — for any , the set exists.
  3. Union — for any , exists.
  4. Power set — for any , exists.
  5. Separation (schema) — for any property , exists.
  6. Replacement (schema) — for a definable function and set , the image is a set. (Fraenkel + Skolem, 1922.)
  7. Infinity — an infinite set exists (e.g. ℕ).
  8. Foundation / Regularity — every non-empty set has an -minimal element. Excludes pathological self-membership.
  9. Choice (AC) — every collection of non-empty sets has a choice function.

Together: ZF (without choice) or ZFC.

Ordinals and cardinals

Ordinals — well-ordered sets up to isomorphism; canonically , , , …, , . Ordinals are linearly well-ordered by .

Cardinals — equivalence classes of sets under bijection. iff there is a bijection. ; = least uncountable cardinal; etc.

Cantor’s theorem. — no surjection from to . So the cardinal hierarchy is unbounded.

Continuum hypothesis (CH). . Gödel (1940) showed CH is consistent with ZFC (via the constructible universe ); Cohen (1963) showed its negation is also consistent (via forcing). Hence CH is independent of ZFC — neither provable nor refutable. Cohen won the 1966 Fields Medal for forcing.

The axiom of choice and its equivalents

Choice is non-constructive and has paradoxical consequences (Banach-Tarski paradox 1924), but is needed for:

  • Every vector space has a basis.
  • Every product of compact spaces is compact (Tychonoff).
  • Every ideal is contained in a maximal ideal.
  • The Hahn-Banach theorem in functional analysis.

Equivalents to AC (under ZF).

  • Zorn’s Lemma — every non-empty partially ordered set in which every chain has an upper bound has a maximal element.
  • Well-ordering theorem (Zermelo 1904) — every set can be well-ordered.
  • Hausdorff maximal principle — every chain in a poset extends to a maximal chain.
  • Tukey’s lemma — every collection of finite character has a maximal element.

Weaker fragments — countable choice (DC), axiom of dependent choice — suffice for most of analysis without the worst pathologies.

Alternative foundations

ZFC is dominant but not unique. Alternatives:

  • NBG (von Neumann-Bernays-Gödel) — adds proper classes; conservative over ZFC.
  • MK (Morse-Kelley) — strictly stronger than NBG.
  • Type theory — Section 12.
  • Category theory / ETCS (Lawvere 1964) — Elementary Theory of the Category of Sets.
  • Homotopy type theory (HoTT) (Voevodsky et al. 2006-2013) — Section 12.

5. Gödel’s incompleteness theorems (1931)

Setting. Let be a consistent, recursively axiomatised theory strong enough to encode arithmetic (e.g. Peano arithmetic PA or any extension; ZFC qualifies).

First incompleteness theorem. There exists a sentence in the language of that is true in the standard model of arithmetic but neither provable nor refutable in .

Construction: encode the syntax of via Gödel numbering (each formula and proof gets a natural-number code). Build a formula saying ” is the code of a provable sentence”. Use diagonalisation (Cantor’s trick once removed) to construct asserting “I am not provable in “. If proved , would prove a false statement; if proved , would be inconsistent (by reflecting that fact).

Second incompleteness theorem. cannot prove its own consistency (assuming is consistent). So we cannot bootstrap confidence in ‘s consistency from within .

Consequences.

  • Hilbert’s programme of finitistic foundations for all of mathematics is impossible as originally stated.
  • ZFC cannot prove its own consistency (assuming it is consistent); we trust it on extrinsic grounds (no contradiction found, models in stronger systems).
  • “Truth” and “provability” diverge: is true but unprovable.
  • Refinements: Rosser (1936) removed Gödel’s -consistency assumption; Löb’s theorem (1955) gave a powerful formal-provability principle; Paris-Harrington (1977) found “natural” arithmetic statements independent of PA.

The incompleteness theorems do not say mathematics is futile; they say no single formal system captures all mathematical truth. Mathematics expands by adopting new axioms (large cardinal axioms, determinacy axioms) that decide previously-independent questions.

6. Computability theory

A computational model suffices for arithmetic if it can compute exactly the computable functions on ℕ. Several formalisms turned out to be equivalent — the Church-Turing thesis: any “effectively calculable” function is computable in any of these.

Computational models

  • Turing machine (Turing 1936) — finite control + infinite tape + read/write head.
  • λ-calculus (Church 1932-1936) — function abstraction and application; Church-Rosser confluence theorem.
  • Recursive functions (Gödel + Herbrand 1934, Kleene 1936) — primitive recursive base + minimisation.
  • Register machines (Shepherdson + Sturgis 1963), counter machines, cellular automata, real-world programming languages.

All are equivalent in computational power and define the same class of partial recursive functions.

Halting problem and undecidability

Halting problem. Given a program and input , does halt on ? Turing (1936) proved this is undecidable: no algorithm decides halting for arbitrary . Proof: assume a halting-decider ; build “loop forever if says halt; halt otherwise” and derive a contradiction at .

Rice’s theorem (1951). Any non-trivial semantic property of partial functions is undecidable. So “does compute the constant function 0?”, “does run in polynomial time?”, “is equivalent to ?” are all undecidable.

Reductions and degrees. Problem many-one reduces to () if there is a computable with . Turing reduces allows oracle access. Turing degrees classify problems by their relative difficulty; the halting problem is the canonical example at degree . There are infinitely many strictly-increasing degrees (Friedberg-Muchnik 1956).

Complexity classes

P — decidable in deterministic polynomial time. NP — decidable in nondeterministic polynomial time; equivalently, “guess then verify in polynomial time”. NP-complete — NP problems to which every NP problem polynomial-time reduces (Cook 1971, Karp 1972). PSPACE, EXPTIME, EXPSPACE, BPP, BQP, … — many other classes; see complexity theory texts.

The P versus NP problem asks whether P = NP. Almost universally believed to be P ≠ NP; one of the Clay Millennium problems. A proof either way would reshape mathematics, cryptography, and AI.

Decidable vs undecidable theories

TheoryDecidable?Why
Propositional logicDecidable (NP-complete validity)Truth tables / SAT
Presburger arithmetic ()Decidable (Presburger 1929)Quantifier elimination
Real closed fields ()Decidable (Tarski 1948)CAD; exponential complexity
Algebraically closed fieldsDecidableQuantifier elimination
Theory of ℕ with (PA)Undecidable (Church 1936)Encodes the halting problem
ZFCUndecidableEncodes arithmetic
Word problem in groupsUndecidable (Novikov 1955, Boone 1959)---
Hilbert’s 10th problem (Diophantine)Undecidable (Matijasevich 1970)MRDP theorem

7. Model theory

Studies structures and their first-order theories.

Theory of a structure. — all first-order sentences true in .

Elementary equivalence. iff . Weaker than isomorphism in general; by Löwenheim-Skolem, many non-isomorphic .

Elementary substructure. if and every with parameters from has the same truth value in both.

Types. A type over a parameter set is a maximal consistent set of formulas with parameters from . Types capture “what can be said about” an element. Saturated models realise all types.

Categoricity. is -categorical if all its models of cardinality are isomorphic. Morley’s categoricity theorem (1965): a countable complete theory categorical in some uncountable cardinal is categorical in every uncountable cardinal — a stunning result that launched modern stability theory and Shelah’s classification programme.

Examples.

  • Theory of — dense linear orders without endpoints; -categorical (Cantor’s back-and-forth).
  • Theory of algebraically closed fields of characteristic — categorical in uncountable cardinals; foundational for algebraic geometry.
  • Theory of vector spaces over a fixed field — categorical in every cardinality field size.

Quantifier elimination. Some theories admit it: every formula is equivalent to a quantifier-free formula. Decidability and good geometric properties usually follow. Examples: algebraically closed fields, real closed fields, presburger arithmetic.

Compactness and ultraproducts (Łoś 1955). Compactness theorem proved via ultraproducts; the ultraproduct construction yields non-standard models — non-standard analysis (Robinson 1960) uses ultraproducts of to give a rigorous treatment of infinitesimals.

8. Proof theory

Studies proofs as combinatorial objects. Originated with Hilbert (1900s) and matured under Gentzen (1930s).

Sequent calculus (Gentzen 1934)

A sequent asserts “from the assumptions , at least one of follows”. Inference rules act on sequents; the system LK (for classical logic) has structural rules (weakening, contraction, exchange), logical rules (left and right introductions for each connective), and one cut rule:

Cut corresponds to using a lemma: proved , now use it.

Cut elimination (Hauptsatz, Gentzen 1934)

Theorem. Every LK proof can be transformed into a cut-free proof of the same conclusion. (Same theorem for intuitionistic LJ.)

Consequences:

  • Subformula property — cut-free proofs only mention subformulas of the conclusion. Powerful for proof search.
  • Consistency of PA via ordinal induction up to (Gentzen 1936). This proof was historically important — PA’s consistency is not provable in PA (Gödel II), but is provable in PA + transfinite induction.
  • Interpolation theorem (Craig 1957) and Beth’s definability theorem follow.

Proof complexity

How long are proofs? Resolution is a proof system for refuting CNF formulas; lower bounds on resolution proof length (Haken 1985 for the pigeonhole principle, exponential lower bound) parallel computational complexity bounds. The Frege, extended Frege, bounded-arithmetic hierarchies of proof systems are the proof-theoretic analogue of complexity classes.

Reverse mathematics (Friedman + Simpson, 1970s-)

Identify the minimal axiom system needed to prove given mathematical theorems. The “big five” subsystems of second-order arithmetic:

  1. RCA₀ — recursive comprehension; basic computable analysis.
  2. WKL₀ — weak König’s lemma; many classical theorems (Heine-Borel, separating hyperplane).
  3. ACA₀ — arithmetical comprehension; classical analysis + algebra at countable level.
  4. ATR₀ — arithmetical transfinite recursion.
  5. Π¹₁-CA₀ — Π¹₁-comprehension; strong descriptive set theory.

Most ordinary mathematics lives at WKL₀ or ACA₀, well below the strength of ZFC.

9. Constructive mathematics and intuitionism

Brouwer (1908 onward) rejected classical excluded middle on philosophical grounds: a proof of should produce either a proof of or a proof of , but for many statements we have neither.

Intuitionistic logic drops excluded middle (), double-negation elimination (), and Peirce’s law. Proofs are constructive — to prove one must exhibit a witness; to prove one must produce a proof of at least one.

Heyting algebra semantics: instead of , truth values lie in a Heyting algebra (a lattice with a relative pseudo-complement). Kripke semantics alternative: a tree of possible worlds with monotone valuations.

Brouwer-Heyting-Kolmogorov (BHK) interpretation. Reads each connective as a constructive operation:

  • A proof of is a pair (proof of , proof of ).
  • A proof of is a function turning proofs of into proofs of .
  • A proof of is a pair (witness , proof of ).
  • A proof of is a function proof of .

This points directly at type theory.

Constructive mathematics in practice

Bishop (1967, Foundations of Constructive Analysis) showed that essentially all of analysis can be done constructively, just with more careful statements. Modern constructive frameworks:

  • Errett Bishop’s constructive analysis — neutral toward classical mathematics.
  • Martin-Löf type theory (1972, 1984) — formal foundation for constructive maths; basis of Agda, Coq’s CIC, Lean.
  • CZF / IZF — constructive set theories.

10. Curry-Howard correspondence

Curry (1934), Howard (1969, published 1980) observed a deep equivalence:

LogicType theory
Proposition Type
Proof of Inhabitant / term
Function type
Product type
Sum type
Dependent function
Dependent pair
Cut eliminationBeta reduction

Propositions = types, proofs = programs, theorem proving = programming. This insight powers modern proof assistants:

  • Coq — based on the Calculus of Inductive Constructions (Coquand + Huet 1988); used for the Four-Colour Theorem (Gonthier 2005), Feit-Thompson Odd Order Theorem (Gonthier et al. 2012), CompCert verified C compiler (Leroy 2009).
  • Agda — dependently typed; emphasises programming as the same activity as proving.
  • Lean — Microsoft Research / Leonardo de Moura (2013); growing community formalisation effort (Mathlib has over a million lines).
  • Isabelle/HOL — higher-order classical logic; long industrial track record.
  • Idris — practical dependently-typed programming language.

See coq, lean, agda, idris for the language notes.

Dependent type theory

Martin-Löf type theory (MLTT) is the dominant constructive foundation. Types may depend on values: is the type of length- lists of ‘s; varies. Identity types encode equality.

Homotopy type theory (HoTT)

Voevodsky (2006-2014) and collaborators discovered that identity types in MLTT carry the structure of homotopy: types are spaces, terms are points, identifications are paths, higher identifications are higher homotopies. The univalence axiom (Voevodsky) asserts that equivalent types are equal — a constructive rendition of the practising mathematician’s “up to isomorphism” reasoning.

HoTT is both a new foundation (potentially replacing ZFC) and a programming language for higher mathematics. The HoTT Book (2013) is the founding text. Active research includes cubical type theory (Cohen, Coquand, Huber, Mörtberg 2015) — a computable interpretation of univalence.

11. Category theory primer

A categorical lens on foundations. Originates with Eilenberg-Mac Lane (1945) for algebraic topology; matured under Mac Lane, Grothendieck, Lawvere, and others.

A category consists of:

  • A collection of objects.
  • For each pair , a set of morphisms.
  • A composition operation .
  • Identity morphisms for each object.

Subject to associativity and identity laws.

Examples.

  • Set — sets and functions.
  • Grp, Ab, Ring, Top — groups, abelian groups, rings, topological spaces and their structure-preserving maps.
  • Vect_k — vector spaces over and linear maps.
  • Cat — categories and functors.

Functor — a map between categories preserving composition and identity. Functors come in covariant and contravariant flavours.

Natural transformation — a “morphism between functors”. assigns to each object a morphism commuting with and on morphisms.

Yoneda lemma. . An object is determined (up to isomorphism) by its hom-functor — “you are what you map to”. Foundational.

Adjoint functors. ( left adjoint to ) iff there is a natural isomorphism . Free / forgetful constructions, currying, tensor / hom, are all adjunctions.

Monads. Endofunctor with and satisfying coherence. Came from algebraic topology; reborn in programming languages (Moggi 1989; Wadler 1992) as a way to structure side effects in pure functional languages.

Foundational alternatives.

  • ETCS (Lawvere 1964) — axiomatises the category of sets rather than membership directly.
  • Topos theory — generalises set theory; a topos is a “category that behaves like Sets”. Subobject classifier, Yoneda, geometric morphisms.
  • (∞, 1)-categories and higher topos theory — Lurie’s modern synthesis. Underlies derived algebraic geometry.

This is a one-paragraph pointer; for the working mathematician’s introduction, see Mac Lane, Categories for the Working Mathematician (2nd ed., 1998), or Riehl, Category Theory in Context (2016). Within this Compendium, see algebraic-geometry-foundations for category theory applied to schemes and sheaves.

12. Philosophical foundations debate

The early 20th century saw three competing visions of what mathematics is:

SchoolKey figuresClaim
LogicismFrege, Russell, WhiteheadMathematics reduces to logic
FormalismHilbertMathematics is formal manipulation of symbols; meaning is irrelevant; consistency is everything
IntuitionismBrouwer, HeytingMathematics is mental construction; classical logic over-reaches

Gödel’s theorems sank strong formalism and pure logicism: arithmetic cannot be reduced to bare logic (Russell’s type theory needed an axiom of infinity, hence not “pure logic”) and no formal system captures all arithmetic truth. Set theory (ZFC) became the practical foundation by default.

Contemporary positions are often more nuanced — structuralism (Benacerraf 1965, Shapiro 1997) asks “what is the number 2?” and answers “the position labelled ‘2’ in any progression structure”; naturalism treats mathematics empirically. See epistemology and philosophy-of-mind-and-language for the philosophical literature.

13. Foundational results timeline

YearResultOriginator
1854Algebra of logicBoole
1879Predicate calculusFrege (Begriffsschrift)
1889Peano axioms for ℕPeano
1895-7Set theory + cardinal arithmeticCantor
1901Russell’s paradoxRussell
1908First ZFC axiomatisationZermelo
1910-13Principia MathematicaRussell + Whitehead
1915-22Löwenheim-Skolem; ReplacementLöwenheim, Skolem, Fraenkel
1920sHilbert’s programmeHilbert
1929Completeness of FOLGödel
1931Incompleteness theoremsGödel
1933Tarski’s truth definitionTarski
1934Sequent calculus; cut eliminationGentzen
1934-6Recursive functions; Church-TuringChurch, Turing, Kleene
1936Halting problem undecidableTuring
1940Consistency of CH with ZFCGödel
1948Decidability of real closed fieldsTarski
1955Word problem in groups undecidableNovikov
1963Cohen forcing; independence of CHCohen
1965Categoricity theoremMorley
1969-70Curry-Howard correspondenceHoward
1970Hilbert’s 10th undecidableMatijasevich
1971NP-completenessCook
1972Martin-Löf type theoryMartin-Löf
1977Paris-HarringtonParis + Harrington
1985Resolution lower boundsHaken
1995Ten Thousand Year Clock… I mean Lean 0.1 ;)(placeholder skip)
2006-13Univalent foundations / HoTTVoevodsky et al.
2012Feit-Thompson formalised in CoqGonthier et al.
2017Liquid tensor experiment in Lean (begun)Scholze, Commelin, et al.

14. Pitfalls and folklore

  • Gödel’s theorems do not say “mathematics is uncertain” — they say no single formal system captures all truth. Mathematics keeps working.
  • “True but unprovable” depends on a notion of truth (typically: in the standard model of arithmetic). It does not say a statement is “true in some absolute sense beyond formalisation”.
  • The continuum hypothesis being independent does not make it meaningless — it can be settled by adopting new axioms (e.g. forcing axioms, large cardinals).
  • Axiom of choice is not pathological — it is needed for most working analysis. The Banach-Tarski paradox uses non-measurable sets, which never arise in concrete analysis.
  • Higher-order logic is not “stronger first-order logic” — it’s a different beast, with its own completeness story (Henkin semantics restores completeness; full semantics does not have it).
  • Naïve set theory still works for pedagogy at low foundational stakes — Russell’s paradox needs unrestricted comprehension over impredicative properties.
  • Constructive mathematics is not “weak classical mathematics” — every classical theorem has a constructive version, but the statement may be subtler.
  • Proof assistants do not eliminate human judgement — they verify the steps, not the axioms, definitions, or conjectures.
  • Decidability is a property of a theory, not of a problem in the abstract — “is 17 prime?” is trivially decidable; “is this Diophantine equation solvable?” is undecidable.
  • Computability and complexity are distinct — undecidable problems are “uncomputable in finite time”; NP-hard problems are “computable but probably slowly”.

15. Further reading

  • Enderton, A Mathematical Introduction to Logic (2nd ed., 2001) — standard undergraduate text covering propositional + first-order logic, model theory, computability.
  • Mendelson, Introduction to Mathematical Logic (6th ed., 2015) — alternative classical introduction.
  • Shoenfield, Mathematical Logic (1967, reprint 2001) — denser graduate text.
  • Kunen, Set Theory (2nd ed., 2011) — modern set-theory textbook, forcing included.
  • Jech, Set Theory: The Third Millennium Edition (2002) — encyclopaedic reference.
  • Sipser, Introduction to the Theory of Computation (3rd ed., 2012) — definitive computability + complexity textbook.
  • Soare, Recursively Enumerable Sets and Degrees (1987) — classical computability theory.
  • Marker, Model Theory: An Introduction (2002) — modern model theory.
  • Troelstra + Schwichtenberg, Basic Proof Theory (2nd ed., 2000) — proof theory reference.
  • Awodey, Category Theory (2nd ed., 2010) — accessible introduction.
  • Mac Lane, Categories for the Working Mathematician (2nd ed., 1998) — classic.
  • HoTT BookHomotopy Type Theory: Univalent Foundations of Mathematics (open access, 2013).
  • Sørensen + Urzyczyn, Lectures on the Curry-Howard Isomorphism (2006) — the proofs-as-programs story.
  • Smullyan, Gödel’s Incompleteness Theorems (1992) — accessible mid-level treatment.

16. Companion notes in this library