Mathematical Logic & Computability

Prerequisite path Preparation & skip guidance · Proofs & Mathematical Writing

Studying Mathematical Logic & Computability

Formal logic distinguishes a sentence being true in a structure from its having a derivation in a proof system. That distinction is the organizing question for this selection. Forall x supplies practice with syntax, truth tables and natural deduction; Sets, Logic, Computation turns attention to semantics, completeness, compactness and computation. If derivation rules still feel arbitrary, begin with the former before asking what a completeness theorem proves.

What to work on

  • Evaluate a first-order formula in a specified structure and assignment.
  • Distinguish semantic consequence from formal derivability.
  • Use compactness to construct a model satisfying infinitely many constraints.
  • Trace a Turing-machine computation and explain the halting-problem diagonal argument.

A starting text

Sets, Logic, Computation: An Open Introduction to Metalogic — Richard Zach, based on the Open Logic Project. Start with sections 7.2-7.5 on structures, satisfaction and variable assignments and 11.1-11.6 on natural deduction. Continue with 12.8-12.11 on completeness, compactness and Lowenheim-Skolem, then 14.3-14.4 and 15.4 on machines and halting.

Choosing what to read

Keep a small structure beside every quantified formula and evaluate it under explicit variable assignments. Write a derivation and a semantic explanation of the same consequence, marking where their methods differ. For compactness, spell out the enlarged language and check finite satisfiability rather than invoking the theorem by name. When reading the halting argument, identify the alleged decider's input and output before constructing the contradictory machine.

Sets, Logic, Computation: An Open Introduction to Metalogic

Connect satisfaction and derivability, then study compactness and halting.

How it reads
Metalogic and computation after elementary formal logic.
What it expects
Quantifiers, elementary sets and some experience with a formal proof system.
What to keep in mind
This reading does not by itself establish arithmetic incompleteness.
Practice
Exercises provided; public solutions not verified. Problems for chapters 7, 11, 12 and 14, beginning on printed pages 133, 224, 253 and 303 respectively.
Edition, reading range and source

Start with sections 7.2-7.5 on structures, satisfaction and variable assignments and 11.1-11.6 on natural deduction. Continue with 12.8-12.11 on completeness, compactness and Lowenheim-Skolem, then 14.3-14.4 and 15.4 on machines and halting.

Source · Checked 2026-10-16

forall x: Calgary

Practice derivation rules before moving to theorems about those rules.

How it reads
A first course built around formal languages and natural deduction.
What it expects
No university mathematics prerequisite in the catalogue; careful symbolic reading is essential.
What to keep in mind
The next text supplies the deeper metatheory; avoid treating a truth table as a first-order completeness proof.
Practice
The official page lists a solutions booklet and says HTML solutions follow the appendices; individual answers and complete coverage were not audited.
Edition, reading range and source

Use the truth-table and natural-deduction material before quantified derivations; consult the current contents for section numbers.

Source · Checked 2026-10-17

Practice

Metalogic and computation problem sets. Problems for chapters 7, 11, 12 and 14, beginning on printed pages 133, 224, 253 and 303 respectively.. Exercises provided; public solutions not verified.

Try these before moving on

Try a proof or calculation before opening the hint. These solutions address the checks below, not the exercises in the linked textbooks.

  1. Use compactness to show that any first-order theory with arbitrarily large finite models has an infinite model; write the additional sentences explicitly.

    A hint

    Expand the language by countably many constants and require them to be pairwise distinct. Check an arbitrary finite subset of the expanded theory.

    Work through the solution

    Let TT be a first-order theory with equality, having finite models of unbounded cardinality. Add constants c0,c1,…c_0,c_1,\ldots and put T′=T∪{ci≠cj:i<j}T'=T\cup\{c_i\ne c_j:i<j\}. Any finite subset Δ\Delta of T′T' mentions only finitely many of these constants, say rr of them. Choose a model of all of TT with at least rr elements and interpret those constants as distinct elements (the remaining constants may be interpreted arbitrarily). This expanded model satisfies Δ\Delta.

    By the compactness theorem, T′T' has a model. Its interpretations of all cic_i are pairwise distinct, so its universe is infinite. Forgetting the new constants gives an infinite model of TT. The use of a model of all of TT in the finite-subset argument also handles an infinite theory TT.

    If this was the sticking point:

    • Proofs & Mathematical Writing — Review the quantifiers in finite satisfiability and the distinction between a finite subset and the whole theory.

Already comfortable with this? Skip the satisfaction and deduction review only if you can evaluate quantified formulas and give rule-by-rule derivations. Skip the whole selection only if you can also prove the compactness application and reconstruct the halting argument without conflating truth and provability.

Review the prerequisites · Compare the full subject collection

Where this can lead

  • Model Theory — Use compactness and elementary embeddings to study mathematical structures.
  • Set Theory — Investigate the set and ordinal constructions that support later model-building.
Reading-source dates
  • Sets, Logic, Computation: An Open Introduction to Metalogic · 2026-10-16

Reading choices revised 2026-10-17.

Suggest an edit · Report a correction

forall x: Calgary

Online text

P. D. Magnus, Tim Button, Aaron Thomas-Bolduc and Richard Zach, with contributors · Textbook · Introductory

Introduces formal languages, truth tables and natural deduction. Exercises and solutions support a first logic course; metatheory is developed further in the next text.

Preparation: No university mathematics required.

Sets, Logic, Computation

Online text

Richard Zach · Textbook · Intermediate

Develops completeness, compactness and undecidability after elementary formal logic. A structured bridge from proof systems to mathematical metatheory.

Preparation: Elementary first-order logic.

Incompleteness and Computability

Online text

Richard Zach · Textbook · Advanced

Covers recursive functions, arithmetization and Gödel's theorems. Best read after a first metalogic course, not as an introduction to proofs.

Preparation: First-order logic and completeness.

Additional reading

Search the complete catalogue.

Introductory reading

An Introduction to Formal Logic

Peter Smith · Textbook · Introductory · English · PDF

An introduction to propositional and first-order logic with worked proof techniques.

Preparation: Elementary proof-writing.

Use: Build logical notation and derivation skills.

Edition and sources

Version: Corrected second edition; original second edition 2020 · Checked 2026-10-11

Logic and Proof

Jeremy Avigad, Joseph Hua, Robert Y. Lewis and Floris van Doorn · Online textbook · Introductory · English · Online text

Complete 24-chapter online textbook; introductory chapter and copyright attribution opened.

Combines natural deduction and logical semantics with informal proofs, sets, induction and interactive Lean examples.

Preparation: School mathematics; willingness to learn symbolic notation.

Use: Compare informal arguments with formal derivations and checked proof scripts.

Edition and sources

Version: Online documentation 3.18.4; copyright 2017; no revision date stated · Checked 2026-10-13

Intermediate reading

A Friendly Introduction to Mathematical Logic

Christopher C. Leary and Lars Kristiansen · Textbook · Intermediate · English · Full-text access unverified

AIM source page with an authorized full-text link.

Connects formal syntax, semantics and computability, with a route to incompleteness. A next step after learning to write mathematical proofs.

Preparation: Proof-writing; sets and functions.

Edition and sources

Version: Second edition, 2015 · Checked 2026-10-11

A Course on Mathematical Logic

Shashi Mohan Srivastava · Textbook · Intermediate · English · Purchase / institutional access

Purchase or library subscription required; previews are not the complete book.

A concise path through first-order logic and completeness/incompleteness. Suitable for consolidating formal syntax and semantics before model theory.

Preparation: Proof-writing; elementary set theory.

Edition and sources

Version: 2008 · Checked 2026-10-11

Mathematical Logic: On Numbers, Sets, Structures, and Symmetry

Roman Kossak · Textbook · Intermediate · English · Purchase / institutional access

Purchase or library subscription required; previews are not the complete book.

Develops logical ideas through mathematical structures and definability. Use it as an entry into the interaction between logic and algebra.

Preparation: Proof-writing; basic algebra.

Edition and sources

Version: Second edition, 2024 · Checked 2026-10-11

Logic: a Brief Course

Daniele Mundici · Textbook · Intermediate · English · Purchase / institutional access

Purchase or library subscription required; previews are not the complete book.

A compact logical course for readers wanting a focused introduction before longer treatments. Compare formal arguments with ordinary mathematical reasoning.

Preparation: Proof-writing; elementary sets.

Edition and sources

Version: 2012 · Checked 2026-10-11

Logic and Computation

Jeremy Avigad · Course notes · Intermediate · English · PDF

Develops induction, propositional and first-order syntax and semantics, deduction, completeness and compactness.

Preparation: Some first-order logic and experience reading and writing proofs.

Use: A proof-based bridge to mathematical logic; the author describes these as course supplements.

Edition and sources

Version: January 2002 version · Checked 2026-10-13

Computability and Incompleteness

Jeremy Avigad · Course notes · Intermediate · English · PDF

Develops formal computation, computably enumerable sets and reducibility before incompleteness, Löb’s theorem and undecidability.

Preparation: Proofs and elementary mathematical logic.

Use: Follow a second course in logic from computation to incompleteness.

Edition and sources

Version: January 9, 2007 version · Checked 2026-10-13

Logic and Mechanized Reasoning

Jeremy Avigad, Marijn J. H. Heule and Wojciech Nawrocki · Online textbook · Intermediate · English · Online text

Complete author-maintained HTML textbook with linked chapters and exercises.

Connects propositional and first-order logic with SAT/SMT algorithms, mechanized proof and implementations in Lean.

Preparation: Mathematical proofs and basic programming.

Use: Study logic alongside executable algorithms and proof-assistant exercises.

Edition and sources

Version: Release 0.1; associated PDF dated January 10, 2026 · Checked 2026-10-13

Mathematics in Lean

Jeremy Avigad and Patrick Massot · Online textbook · Intermediate · English · PDF

Complete 216-page PDF opened on the authors' Lean-community project site; introductory HTML explains the exercise workflow.

Teaches Lean 4 and Mathlib through proofs about sets, elementary number theory, algebraic structures, linear algebra, limits and integration.

Preparation: Experience with ordinary mathematical proofs; undergraduate algebra and analysis for later chapters.

Use: Turn familiar mathematical arguments into checked proofs using the companion exercises.

Edition and sources

Version: Release v4.19.0; PDF title page dated October 12, 2026 · Checked 2026-10-13

Graduate reading

Open Logic Text

The Open Logic Project · Textbook · Graduate · English · PDF

A modular collection spanning logic, computability, set theory and model theory. Chapters can be selected for a course.

Preparation: Proof-writing; elementary logic.

Use: Broaden a foundations reading programme.

Edition and sources

Version: Rolling complete build; distinct from the legacy Calgary textbooks · Checked 2026-10-11

Mathematical Logic

Heinz-Dieter Ebbinghaus, Jörg Flum and Wolfgang Thomas · Textbook · Graduate · English · Purchase / institutional access

Purchase or library subscription required; previews are not the complete book.

A systematic first-order-logic course on semantics, completeness, computability and limits of formal methods. Work with examples of structures as well as formal deductions.

Preparation: Proof-writing; sets and functions.

Edition and sources

Version: Updated edition, 2021 · Checked 2026-10-11

A Course in Mathematical Logic for Mathematicians

Yuri I. Manin · Textbook · Graduate · English · Purchase / institutional access

Purchase or library subscription required; previews are not the complete book.

Links foundations with computability and mathematical structures, including a categorical perspective. A mathematically mature alternative to a first introductory course.

Preparation: First-order logic; algebra and mathematical maturity.

Edition and sources

Version: Second edition, 2010 · Checked 2026-10-11

Introduction to Homotopy Type Theory

Egbert Rijke · Author manuscript · Graduate · English · PDF

Full pre-publication manuscript on arXiv; personal viewing and download permitted.

Builds dependent type theory and univalent foundations from basic rules, with exercises and mathematical constructions.

Preparation: Mathematical proofs; no previous type theory required.

Use: Learn type-theoretic foundations before specialized homotopy type theory.

Edition and sources

Version: arXiv v1, December 21, 2022 · Checked 2026-10-13

Research reading

Higher-Order Computability

John Longley and Dag Normann · Textbook · Research · English · Purchase / institutional access

Purchase or library subscription required; previews are not the complete book.

Studies computation with functionals and higher-type operations. It is a specialist continuation of computability, not an introductory programming book.

Preparation: Computability theory; mathematical logic; higher-type functionals.

Edition and sources

Version: 2015 · Checked 2026-10-11

Constructive Reverse Mathematics

Hannes Diener · Research survey · Research · English · PDF

Complete author-deposited PDF opens on arXiv.

Surveys the logical strength of mathematical statements in constructive settings, organized by principles such as omniscience and Markov’s principle.

Preparation: Mathematical logic, real analysis and familiarity with constructive reasoning.

Use: Compare constructive principles through equivalences and counterexamples.

Edition and sources

Version: Version 1.3; arXiv v3, April 4, 2020 · Checked 2026-10-13

Advanced reading

An Introduction to Gödel’s Theorems

Peter Smith · Textbook · Advanced · English · PDF

Explains computability, arithmetization and the incompleteness theorems.

Preparation: First-order logic; elementary computability.

Use: Bridge introductory logic to mathematical incompleteness.

Edition and sources

Version: Corrected second edition; original second edition 2013 · Checked 2026-10-11