ML Web
ML Web
David Marker
2
Preface
My goal was to write a text for a one semester graduate level introduction
to mathematical logic, one that I would have liked to learn from when I was a
student, and one I would like to teach from as a professor Two thirds of the book
evolved from lecture notes for courses given over 30 years teaching introductory
logic at the University of Illinois Chicago.
The heroes of most introductory logic texts are Gödel and Turing.1 Cer-
tainly the Gödel’s Completeness and Incompleteness Theorems and Turing’s
formalization of computability, universal machines and undecidable problems
must be at the center of any course in mathematical logic, but I think focusing
only on Gödel and Turing gives an unbalanced view. Gödel’s results on incom-
pleteness and undecidability in arithmetic become even more interesting when
contrasted with Tarski’s tameness results for the real and complex fields. One
of my goals is to raise Tarski to the podium alongside Gödel and Turing.
I titled this book an invitation to mathematical logic as I hope that it
will excite readers and make them hungry for further study in logic. One can
easily get bogged down at the beginning of a logic course when confronted with
a myriad of new definitions, formalism and syntax. I have tried to streamline
this part of the text in order to arrive as quickly as possible to the meat. From
my experience in the classroom this seems to work well. This book definitely
contains more material than could possibly covered in one semester. My hope is
that a student would be excited by what they have seen and will be motivated to
work through some of the more advanced material in Chapters 8, 12, 14, 15 and
16. Another goal is to put in one place some topics that often fall through the
gaps in one’s logic education such as cut elimination and models of arithmetic.
Mathematical logic grew out of the study of questions on the foundations of
mathematics. Foundational questions are the focus of Part’s I and IV and Part
III develops the foundations of computability. I have also tried, particularly in
Chapters 5, 7, 8, 14 and 16, to illustrate the interplay between logic and other
areas of mathematics, notably algebra, number theory and combinatorics. To
me this is one of the most fascinating aspects of modern logic.
One difficult decision was to exclude set theory–except for Appendix A which
contains a brief introduction to some useful fundamentals. While I view set
1 Gödel and Turing are even embedded in popular culture in books like Gödel, Escher Bach
and films like The Immitation Game and Oppenheimer. Indeed, “Pharma bro” Martin Shkreli
named two of his companies after Turing and Gödel.
i
ii Preface
Detailed Overview
In part I we begin by introducing the basic concepts of logic: structures, truth,
proofs and Gödel’s Completeness Theorem. Chapter 1 begins with the basic con-
cepts of logic–the syntactic notions of languages, terms, formulas and theories
and the semantic notions of structures, truth in a structure, logical consequences
and definability. It is easy to get bogged down in some of the technical formal-
ism so I try to go though this material as quickly as possible. To this end, I cut
some corners on issues such as unique readability of formulas; for completeness,
I return to these issues in Appendix B. Induction on the complexity of formulas
is a basic proof technique in logic that does not have a counterpart in other
areas of mathematics. I include a number of results on equivalent normal forms
in this chapter, in part to give the reader more examples of this method.
A fundamental lesson of category theory is that when one studies any type
of mathematical objects it is imperative to study structure preserving maps
between them. Chapter 2 is devoted to the study of embeddings of structures,
isomorphisms of structures and how the truth of formulas is preserved under
mappings. This chapter provides the foundation for Part II Elements of Model
Theory, and will also be needed in Chapters 13 and 16 of Part IV. Chapter
2 concludes with the Tarski–Vaught characterization of elementary submodels
and the Downward Löwenheim–Skolem Theorem. This chapter also has the
pedagogical goal of reinforcing the student’s proficiency with proofs by induction
on complexity of formulas.
Chapters 3 and 4 culminate in Gödel’s Completeness Theorem, one of the
intellectual gems of logic. I still find it remarkable that the semantic notion of
logical consequence, which a priori requires quantification over all models of a
theory, is completely captured by a finitistic syntactic notion of proof. Chapter
3 introduces and studies a system of formal proof. I have chosen a variant of
sequent calculus. There are simpler systems, but this one has the advantage that
it is relatively easy to formalize proofs in this framework. Chapter 4 is devoted
iii
could do Chapter 6 directly after Chapter 2 and then cover Chapters 5, 6 and 7, postponing
formal proofs to a later part of the course.
3 I have adopted the style of referring to most people only by their last name–this is im-
adopted the new terminology, I still can not bring myself to use the common abbreviation c.e.
sets.
v
showing that we can define the graph of every primitive recursive function in
N, then concluding that the sets definable in N are exactly the arithmetic sets.
The results of Part III can then be used to conclude, in a very strong way, that
Th(N) is undecidable and can not be recursively axiomatized. We then turn
to Gödel’s original proof, where we code formulas by numbers and use diago-
nalization to produce a sentence asserting its own unprovability. A sketch is
given of a proof of the Second Incompleteness Theorem, that PA does not prove
its own consistency, though we leave out some tedious, but necessary, details
showing that some of the basic properties of proof systems can be formalized in
PA. Finally, we sketch the proof by Hilbert and Bernays that the Completeness
Theorem can be formalized in PA and Kreisel’s model theoretic proof of the
Second Incompleteness Theorem.
Chapters 14–16 explore di↵erent aspects of incompleteness phenomena. One
of the most astonishing manifestations of the incompleteness phenomena is the
undecidability of Hilbert’s 10th problem on the solvability of Diophantine equa-
tions. In Chapter 14 we discuss some aspects of the proof. In particular, fol-
lowing the early work of Davis, Putnam and Julia Robinson [14], we will show
that if we assume that y = 2x is Diophantine definable, then the Diophantine
definable sets are exactly the computably enumerable sets. We then discuss
Pell equations, one of the key ideas in Matiyasevich’s proof that y = 2x is Dio-
phantine. I will not say much about the rest of the proof. It is long, clever
and detailed, relying mostly on very elementary number theory but there are
no further logical aspects. As I feel I have nothing new to add, I refer the reader
to clear, elegant published treatments such as Murty and Fodden’s book [72].
Goodstein found a surprising number theoretic statement whose proof makes
essential use of ordinals below ✏0 . Chapter 15 begins with Goodstein’s proof,
and then proves the independence of Goodstein’s result by showing that the
use of ✏0 is essential and beyond Peano Arithmetic. The bulk of the chapter
is devoted to a theorem of Wainer, building on work of Gentzen and Kreisel,
calibrating the growth rates of computable functions provably total in PA. My
treatment of this material follows closely unpublished notes of Henry Towsner
[100]. and I thank him for letting me adapt his presentation.
Chapter 16 centers on a model theoretic proof due to Paris and Harrington of
the independence from PA of a combinatorial statement that is a minor variant
of the fundamental result of Ramsey Theory. As a warm up we give model
theoretic proofs of two results in the spirit of Chapter 15 characterizing the
growth rates of computable functions provably total in weak fragments of Peano
Arithmetic. Having introduced the study of nonstandard models of PA as a tool
in independence results, we turn to studying these models as interesting objects
in their own right and prove several fundamental results about extensions and
embeddings of models of PA.
vi Preface
Chapter 13 immediately after proving the undecidability of the Halting Problem in Chapter
10, adapting slightly some of the arguments in Chapter 13.
vii
it would be good for the student to work on the exercise immediately to fully
understand what is going on. Some exercises will require more comfort with
algebra, computability, or set theory than I assume in the rest of the book. I
mark those exercises with a dagger †.
Prerequisites
For most of the text the only prerequisite is “mathematical maturity”. It should
be suitable for first year graduate students or advanced undergraduates in math-
ematics, philosophy graduate students with a solid math background or students
in computer science who want a mathematical introduction to logic. While some
prior exposure to logic would be helpful, it is not assumed. We assume some
familiarity with basic set theory–countability, cardinality and Zorn’s Lemma–
more or less at the same level one would expect for a first graduate analysis
course. Appendix A covers most of this material. In Chapter 15 we assume
some familiarity with ordinals. This is also covered in Appendix A.
In Chapters 5, 7 and 8 we assume some familiarity with algebra, particularly
algebraically closed fields. A student simultaneously taking a graduate algebra
course should be well prepared. Chapter 8 uses algebraic results on ordered
fields. While this material is included in many graduate algebra texts–Lang’s
Algebra [58] is a good reference for the material we need–I suspect most students
will not have seen it, so I develop the necessary results in Appendix C.
viii Preface
Chapter dependencies
Chapter 1
Chapter 9
Chapter 2 Chapter 3
Chapter 10
Chapter 8
Contents
Preface i
3 Formal Proofs 37
6 Ultraproducts 75
7 Quantifier Elimination 87
ix
x CONTENTS
Appendicies 287
A Set Theory 287