Logic, Sets, and Maps

Contents
  1. Logic
  2. Sets
  3. Maps
  4. Equivalence classes
  5. The infinite
  6. The crisis of foundations
  7. The analytical perspective
  8. Formal systems and incompleteness
  9. Computability and decidability
  10. Can mathematics be built without contradictions?

Propositional logic, sets, maps, and equivalence classes form the raw language in which the rest of this treatise is written. This chapter fixes that language: what we mean by a definition, an axiom, and a theorem; how propositions combine under logical operators; what sets, numbers, and maps are; and how an equivalence relation partitions a set into classes.

The chapter then turns the language on itself. Comparing infinite sets uncovers a strict hierarchy of infinities (Section 3.5); unrestricted set-building collapses in Russell's paradox, and the Zermelo–Fraenkel axioms repair it (Section 3.6); Hilbert's demand that mathematics certify its own consistency, completeness, and decidability is answered — negatively — by Gödel's incompleteness theorems (Section 3.8) and by Turing's analysis of computation (Section 3.9). We close by asking, with the full twentieth-century record on the table, whether mathematics can be built free of contradiction, and what the honest answer means for a book that intends to derive physics from evidence and proof (Section 3.10). A physics treatise owes its readers this chapter: every derivation in the book is a formal proof in the sense made precise here, and the limits of that method are part of its description.

Logic

Propositions

Definitions

The definition of the word definition is redundant in an obvious sense. We could say instead: the accepted meaning of definition is…{} — but then, what is the definition of accepted meaning? Better still: what is something? And beyond that: why does something exist? Whenever we try to reach a primordial question we run into problems, circular loops, and paradoxes. To avoid entering into philosophical discussion (though such discussion is never wasted), we simply adopt the dictionary meaning [RAE:2014]: a definition is a declarative sentence that states with clarity and exactness the generic and specific characteristics of something, concrete or abstract.

In mathematical notation, when we wish to record a definition — that is, when an equality holds not as the result of other equalities but by fiat — we use the symbol \(:=\). For example, let \(\lozenge\) be an object. We define \(\blacklozenge\) by \(\blacklozenge:=\lozenge^{-1}\), and we define \(\lozenge\lozenge^{-1}\) by \(\lozenge\lozenge^{-1}:=\ \circlearrowleft\). Every time the object \(\blacklozenge\) appears we may replace it by \(\lozenge^{-1}\), since by definition they are exactly the same thing, and likewise we may replace \(\lozenge\lozenge^{-1}\) by \(\circlearrowleft\). For instance,

\[ \lozenge\blacklozenge=\lozenge\lozenge^{-1}=\circlearrowleft\ep \]

A definition need not be a fundamental truth. However, for an idea built from definitions — together with the observations made upon them — to be consistent, a definition must be irrevocable within its context (at least, this book demands it). We cannot build an idea on definitions that we later change, much less on new definitions that contradict the earlier ones. In what follows, the definitions we give will not be dictionary entries but will be tailored to the studies we undertake.

Generalization and specification of a definition

It is often necessary to extend a definition so that it covers more concepts; when this happens one usually renames the definition to fit the new context. As a toy example, define first a hydroliving object as an object that lives on Earth and contains at least ten hydrogen atoms. We ourselves are then hydroliving objects. Now extend the definition to an object living anywhere in the Milky Way that contains at least ten hydrogen atoms, which we call locally hydroliving: we have generalized the definition, and we are locally hydroliving. We may also sharpen the parameters of a definition, cutting down the candidates that satisfy it: call submarine hydroliving a hydroliving object that is born, lives, and reproduces in the sea.

We call generalization and specification of a definition, respectively, the definitions obtained by enlarging or reducing the set of candidates satisfying the original one. Both notions are relative to the aspect of the definition being modified; for example, one may generalize and specify simultaneously by defining a locally hydrolivoid object as one living in the Milky Way but containing at least \(1000000\) hydrogen atoms.

Definition 3.1 (Logical proposition).

A logical proposition \(p\) (or simply a proposition) is a declarative sentence that can be only one of two ways: true or false. The quality of a proposition of being true or false is its truth value, which we denote by \(T\) if true and \(F\) if false.

For example, let \(p=\text{``Albert Einstein was born in 1879''}\). The truth value of \(p\) is \(T\), since that is indeed what happened. Let \(q=\text{``Paul Adrien Maurice Dirac was born in 1790''}\). The truth value of \(q\) is \(F\), because Dirac was born in 1902.

Definition 3.2 (Axiom).

An axiom is a proposition assumed irrevocably true.

An axiom, accompanied by the pertinent definitions, allows one to build a self-consistent idea (not necessarily consistent with other ideas). The word axiom is used in mathematics; in physics one uses, depending on the importance of the proposition in its context, the words law, principle, or postulate. As an example, let \(\ltimes\) be given and define \(\rtimes:=-\ltimes\). Separately, enunciate the axiom \(-(-\ltimes)=\ltimes\). We conclude a new, consistent statement: \(-\rtimes=\ltimes\).

Definition 3.3 (Theorem).

Within a context of axioms and definitions, a theorem is a proposition whose truth value has been demonstrated.

In the preceding example it is a theorem that \(-\rtimes=\ltimes\). In the literature it is not customary to call every demonstrated result a theorem: depending on the relevance of the result one speaks of a theorem, a lemma, a corollary, or even a proposition — the last not to be confused with a logical proposition.

Definition 3.4 (Theory).

A theory is an agglomeration of axioms, definitions, theorems, and interpretations of results that model the behaviour of a concrete or abstract entity, and whose good correspondence between model and results is vouched for by us as human beings, through our senses and available technology.

Logical operators

Given a proposition, we can form new propositions from it. For example, let \(p=\text{``It is raining outside''}\). The truth value of \(p\) is not settled — until we look outside we do not know whether it is raining — but from \(p\) we may consider the proposition \(q=\text{``It is not raining outside''}\). Moreover, given the proposition \(r=\text{``I put on a coat''}\), from \(p\) and \(r\) we can form \(s=\text{``If it is raining outside, then I put on a coat''}\).

Definition 3.5 (Logical operator).

A logical operator is an entity that takes one or more propositions and generates a new proposition.

Definition 3.6 (Truth table).

The truth value of a proposition generated by a logical operator is a function of the truth values of the propositions that generate it. The table of all possible truth values of the generated proposition is its truth table.

In the trivial case, the truth table of a single proposition \(p\) is

\begin{equation} \begin{array}{|c|} \hline p\\ \hline\hline T\\ \hline F\\ \hline \end{array} \end{equation}
Definition 3.7 (Negation).

Let \(p\) be a proposition. The negation operator \(\neg\) takes \(p\) into the proposition

\begin{equation} \neg p=\text{``It is not true that }p\text{''}\ec \end{equation}

whose truth table is

\begin{equation} \tag{3.3} \begin{array}{|c||c|} \hline p & \neg p\\ \hline\hline T & F\\ \hline F & T\\ \hline \end{array} \end{equation}

For example, let \(p=\text{``Today is Monday''}\). Its negation is

\[ \neg p=\text{``It is not true that today is Monday''}\ec \]

which we read more naturally as “Today is not Monday”. According to the table, if it is true that today is Monday, then it is false that today is not Monday; conversely, if it is false that today is Monday, it is true that today is not Monday.

Definition 3.8 (Conjunction).

Let \(p\) and \(q\) be propositions. The conjunction operator \(\wedge\) takes \(p\) and \(q\) into the proposition

\begin{equation} p\wedge q=p\text{ and }q\ec \end{equation}

whose truth table is

\begin{equation} \tag{3.5} \begin{array}{|c|c||c|} \hline p & q & p\wedge q\\ \hline\hline T & T & T\\ \hline T & F & F\\ \hline F & T & F\\ \hline F & F & F\\ \hline \end{array} \end{equation}

For example, let \(p=\text{``I am in Asia''}\) and \(q=\text{``I am in Africa''}\). Then \(p\wedge q=\text{``I am in Asia and I am in Africa''}\). Common sense tells us it is impossible to be in two places at once, i.e. \(p\wedge q\) is false. According to the table this may be because it is false that I am in Asia, false that I am in Africa, or false that I am in either place.

Definition 3.9 (Disjunction).

Let \(p\) and \(q\) be propositions. The disjunction operator \(\vee\) takes \(p\) and \(q\) into the proposition

\begin{equation} p\vee q=p\text{ or } q\ec \end{equation}

whose truth table is

\begin{equation} \begin{array}{|c|c||c|} \hline p & q & p\vee q\\ \hline\hline T & T & T\\ \hline T & F & T\\ \hline F & T & T\\ \hline F & F & F\\ \hline \end{array} \end{equation}

For example, let \(p=\text{``I will arrive at 8:00''}\) and \(q=\text{``I will arrive at 8:05''}\). Then \(p\vee q=\text{``I will arrive at 8:00 or at 8:05''}\).

Definition 3.10 (Exclusive disjunction).

The exclusive disjunction operator \(\veebar\) generates the proposition \(p\veebar q\) with truth table

\begin{equation} \begin{array}{|c|c||c|} \hline p & q & p\veebar q\\ \hline\hline T & T & F\\ \hline T & F & T\\ \hline F & T & T\\ \hline F & F & F\\ \hline \end{array} \end{equation}
Definition 3.11 (Conditional).

Let \(p\) and \(q\) be propositions. The conditional operator \(\rightarrow\) takes \(p\) and \(q\) into the proposition

\begin{equation} p\rightarrow q=\text{``If } p\text{, then } q\text{''}\ec \end{equation}

whose truth table is

\begin{equation} \tag{3.10} \begin{array}{|c|c||c|} \hline p & q & p\rightarrow q\\ \hline\hline T & T & T\\ \hline T & F & F\\ \hline F & T & T\\ \hline F & F & T\\ \hline \end{array} \end{equation}

For example, let \(p=\text{``Today is Sunday''}\) and \(q=\text{``Today I will rest''}\). Then \(p\rightarrow q=\text{``If today is Sunday, then I will rest''}\). From the table: if today really is Sunday but it is false that I will rest, then it is indeed false that “if today is Sunday, then I will rest”. On the other hand, if today is not Sunday but I do rest anyway, the conditional stands. Even if today is neither Sunday nor a day I rest, the proposition is true, because my not resting on a non-Sunday takes nothing away from my resting when Sunday does come.

Definition 3.12 (Biconditional).

Let \(p\) and \(q\) be propositions. The biconditional operator \(\leftrightarrow\) takes \(p\) and \(q\) into the proposition

\begin{equation} p\leftrightarrow q=p\text{ if and only if }q\ec \end{equation}

whose truth table is

\begin{equation} \begin{array}{|c|c||c|} \hline p & q & p\leftrightarrow q\\ \hline\hline T & T & T\\ \hline T & F & F\\ \hline F & T & F\\ \hline F & F & T\\ \hline \end{array} \end{equation}

For example, let \(p=\text{``Wake me up''}\) and \(q=\text{``It is 10:00''}\). Then \(p\leftrightarrow q=\text{``Wake me up if and only if it is 10:00''}\).

Definition 3.13 (Logical expression).

A logical expression is a proposition composed of propositions and logical operators.

For example, given propositions \(p\) and \(q\), a logical expression is

\begin{equation} \tag{3.13} s=\neg p\wedge(p\rightarrow q)\ep \end{equation}

The expression \(s\) can take various truth values depending on the truth values of \(p\) and \(q\). Let us build its truth table. First, from Equation (3.3),

\[ \begin{array}{|c||c|} \hline p & \neg p\\ \hline\hline T & F\\ \hline T & F\\ \hline F & T\\ \hline F & T\\ \hline \end{array} \]

From Equation (3.10),

\[ \begin{array}{|c|c||c|} \hline p & q & p\rightarrow q\\ \hline\hline T & T & T\\ \hline T & F & F\\ \hline F & T & T\\ \hline F & F & T\\ \hline \end{array} \]

Then, from Equation (3.5),

\[ \begin{array}{|c|c||c|} \hline \neg p & p\rightarrow q & \neg p \wedge (p\rightarrow q)\\ \hline\hline F & T & F\\ \hline F & F & F\\ \hline T & T & T\\ \hline T & T & T\\ \hline \end{array} \]

Implications and logical equivalences

Definition 3.14 (Tautology).

A logical expression is a tautology if all of its possible truth values are \(T\).

Definition 3.15 (Contradiction).

A logical expression is a contradiction if all of its possible truth values are \(F\).

Definition 3.16 (Contingency).

A logical expression is a contingency if among its possible truth values we find both truths and falsehoods.

All the logical operators above generate propositions that are contingencies, as their truth tables show. Indeed, any single proposition is a contingency, since it can be true or false. A more elaborate example is the expression defined in Equation (3.13).

Definition 3.17 (Logical equivalence).

Two logical expressions \(s\) and \(t\) built from the same propositions are logically equivalent, written \(s\equiv t\), if and only if the expression \(s\leftrightarrow t\) is a tautology — equivalently, if and only if \(s\) and \(t\) have identical truth tables. Rests on Definitions 3.12 and 3.14.

Remark 3.18 (Object language and metalanguage).

The distinction between \(\leftrightarrow\) and \(\equiv\) is not pedantry, and it will matter a great deal in Section 3.8. The connective \(\leftrightarrow\) belongs to the language we are studying: it builds one proposition out of two. The symbol \(\equiv\) belongs to the language in which we talk about that language, and asserts a fact about truth tables. The first is called the object language, the second the metalanguage. The same split separates \(\rightarrow\) from \(\implies\) and, later, provability from truth. Confusing the two levels is the single most common way to misread Gödel's theorems.

Proposition 3.19 (Conditional as disjunction).

For any propositions \(p\) and \(q\),

\begin{equation} \tag{3.14} (p\rightarrow q)\equiv(\neg p\vee q)\ep \end{equation}

Rests on Definitions 3.7, 3.9, 3.11 and 3.17.

Proof.

Derives Proposition 3.19. Both expressions are built from the same two propositions, so both truth tables have the same four rows. Reading \(\neg p\) from Equation (3.3), \(p\rightarrow q\) from Equation (3.10) and \(\neg p\vee q\) from the disjunction table,

\[ \begin{array}{|c|c||c|c|c|} \hline p & q & \neg p & p\rightarrow q & \neg p\vee q\\ \hline\hline T & T & F & T & T\\ \hline T & F & F & F & F\\ \hline F & T & T & T & T\\ \hline F & F & T & T & T\\ \hline \end{array} \]

The fourth and fifth columns agree row by row, so \((p\rightarrow q)\leftrightarrow(\neg p\vee q)\) takes the value \(T\) in every row and is a tautology.

Proposition 3.20 (De Morgan's laws).

For any propositions \(p\) and \(q\),

\begin{align} \tag{3.15} \neg(p\wedge q) & \equiv \neg p\vee\neg q\ec\\ \tag{3.16} \neg(p\vee q) & \equiv \neg p\wedge\neg q\ep \end{align}

Rests on Definitions 3.7, 3.8, 3.9 and 3.17.

Proof.

Derives Proposition 3.20. Tabulate all four rows at once:

\[ \begin{array}{|c|c||c|c|c|c|c|c|} \hline p & q & \neg(p\wedge q) & \neg p\vee\neg q & \neg(p\vee q) & \neg p\wedge\neg q\\ \hline\hline T & T & F & F & F & F\\ \hline T & F & T & T & F & F\\ \hline F & T & T & T & F & F\\ \hline F & F & T & T & T & T\\ \hline \end{array} \]

Columns three and four agree, and so do columns five and six.

Proposition 3.21 (Contraposition).

For any propositions \(p\) and \(q\),

\begin{equation} \tag{3.17} (p\rightarrow q)\equiv(\neg q\rightarrow\neg p)\ep \end{equation}

Rests on Proposition 3.19 and Equation (3.3).

Proof.

Derives Proposition 3.21. By Proposition 3.19 applied to the right-hand side, \(\neg q\rightarrow\neg p\) is equivalent to \(\neg(\neg q)\vee\neg p\). Double negation gives \(\neg(\neg q)\equiv q\) — immediate from Equation (3.3), read twice — so the right-hand side is equivalent to \(q\vee\neg p\). Disjunction is symmetric in its two arguments, as its truth table shows, hence \(q\vee\neg p\equiv\neg p\vee q\), which by Proposition 3.19 again is \(p\rightarrow q\).

The contrapositive \(\neg q\rightarrow\neg p\) must not be confused with the converse \(q\rightarrow p\), which is not equivalent to \(p\rightarrow q\): rows two and three of Equation (3.10) differ under the exchange of \(p\) and \(q\). Asserting the converse from the conditional is the fallacy of affirming the consequent, and it is a standing hazard in experimental physics: a theory \(p\) predicting an observation \(q\) is not confirmed as true by observing \(q\), since some rival theory may predict the same \(q\). What the observation of \(\neg q\) does establish — by Equation (3.17) — is \(\neg p\). This asymmetry between confirmation and refutation is the logical skeleton of falsificationism [Popper:1959] and of Remark 1.2.

Proposition 3.22 (Algebra of propositions).

For any propositions \(p\), \(q\), \(r\) the following equivalences hold:

\begin{align} \tag{3.18} \neg(\neg p) & \equiv p\ec\\ \tag{3.19} p\wedge q\equiv q\wedge p\ec\qquad p\vee q & \equiv q\vee p\ec\\ \tag{3.20} (p\wedge q)\wedge r\equiv p\wedge(q\wedge r)\ec\qquad (p\vee q)\vee r & \equiv p\vee(q\vee r)\ec\\ \tag{3.21} p\wedge(q\vee r) & \equiv(p\wedge q)\vee(p\wedge r)\ec\\ \tag{3.22} p\vee(q\wedge r) & \equiv(p\vee q)\wedge(p\vee r)\ec\\ \tag{3.23} p\wedge p\equiv p\ec\qquad p\vee p & \equiv p\ec\\ \tag{3.24} p\wedge(p\vee q)\equiv p\ec\qquad p\vee(p\wedge q) & \equiv p\ec\\ \tag{3.25} p\vee\neg p & \equiv T\ec\\ \tag{3.26} p\wedge\neg p & \equiv F\ec\\ \tag{3.27} (p\leftrightarrow q) & \equiv(p\rightarrow q)\wedge(q\rightarrow p)\ep \end{align}

Rests on Definitions 3.6 and 3.17.

Proof.

Derives Proposition 3.22. Each is a finite truth-table check: the expressions involve at most three propositions, hence at most \(2^{3}=8\) rows, and the two sides are compared row by row exactly as in Proposition 3.20. We display only the least mechanical one, the first distributive law Equation (3.21):

\[ \begin{array}{|c|c|c||c|c|c|} \hline p & q & r & q\vee r & p\wedge(q\vee r) & (p\wedge q)\vee(p\wedge r)\\ \hline\hline T & T & T & T & T & T\\ \hline T & T & F & T & T & T\\ \hline T & F & T & T & T & T\\ \hline T & F & F & F & F & F\\ \hline F & T & T & T & F & F\\ \hline F & T & F & T & F & F\\ \hline F & F & T & T & F & F\\ \hline F & F & F & F & F & F\\ \hline \end{array} \]

The last two columns coincide.

Equation (3.25) is the law of the excluded middle: a proposition is true or its negation is, with no third option. It is a theorem of the two-valued truth tables of Definition 3.1 precisely because we built those tables with two values. Whether it should be assumed when reasoning about infinite collections — where no finite inspection can decide which disjunct holds — is the point at which intuitionism parts company with classical mathematics (Section 3.6.4). This treatise reasons classically, and says so.

Predicates and quantifiers

Propositional logic is too coarse for mathematics or physics. The sentence “\(x\) is greater than \(3\)” has no truth value until \(x\) is supplied; only then does it become a proposition. Such an incomplete sentence is a predicate, and completing it is what quantifiers do.

Definition 3.23 (Predicate).

A predicate \(P\) on a set \(X\) is a rule assigning to each \(x\in X\) a proposition \(P(x)\). The set of elements for which the proposition is true,

\begin{equation} \tag{3.28} \set{x\in X\mid P(x)}\ec \end{equation}

is the truth set of \(P\). Predicates of several variables, \(P(x,y),\ P(x,y,z),\ldots\), are defined in the same way on products of sets (Definition 3.38). Rests on Definitions 3.1 and 3.38.

Definition 3.24 (Quantifiers).

Let \(P\) be a predicate on a set \(X\). The universal quantifier \(\forall\) and the existential quantifier \(\exists\) build the propositions

\begin{align} \tag{3.29} \forall x\in X,\ P(x) & = \text{``$P(x)$ is true for every $x$ in $X$''}\ec\\ \tag{3.30} \exists x\in X\mid P(x) & = \text{``$P(x)$ is true for at least one $x$ in $X$''}\ep \end{align}

We write \(\exists!\,x\in X\mid P(x)\) — “there exists a unique \(x\)” — for the conjunction of \(\exists x\in X\mid P(x)\) with the uniqueness clause \(\forall x,x'\in X,\ (P(x)\wedge P(x'))\rightarrow x=x'\). Rests on Definition 3.23.

Over a finite set \(X=\set{x_{1},\ldots,x_{n}}\) the quantifiers are abbreviations for finite connectives,

\begin{equation} \tag{3.31} \forall x\in X,\ P(x)\ \equiv\ P(x_{1})\wedge\cdots\wedge P(x_{n})\ec \qquad \exists x\in X\mid P(x)\ \equiv\ P(x_{1})\vee\cdots\vee P(x_{n})\ec \end{equation}

and this is the way to remember their negations: De Morgan's laws (Proposition 3.20) pass to the limit of infinite \(X\), where the finite reading is no longer available but the rule survives,

\begin{align} \tag{3.32} \neg\left(\forall x\in X,\ P(x)\right) & \equiv \exists x\in X\mid\neg P(x)\ec\\ \tag{3.33} \neg\left(\exists x\in X\mid P(x)\right) & \equiv \forall x\in X,\ \neg P(x)\ep \end{align}

To refute a universal claim one exhibits a single counterexample; to refute an existential claim one must argue about every element. This is why “no experiment has ever violated the second law” is a far weaker statement than “the second law holds”, and why the search for a violating experiment is nonetheless the right way to test it.

Remark 3.25 (The order of quantifiers is not free).

Quantifiers of the same kind commute; quantifiers of different kinds do not. The proposition

\[ \forall\varepsilon>0,\ \exists\delta>0\mid\cdots \]

allows \(\delta\) to depend on \(\varepsilon\), while

\[ \exists\delta>0\mid\forall\varepsilon>0,\ \cdots \]

demands one \(\delta\) serving all \(\varepsilon\) at once, and is strictly stronger. The whole difference between continuity and uniform continuity, or between pointwise and uniform convergence, lives in that exchange (Real Analysis); so does the difference between a bound that holds for each energy and a bound that holds uniformly in energy.

Methods of proof

Every result asserted in this treatise carries a derivation, by editorial rule. The derivations use a small and closed repertoire of argument forms, each of which is a tautology of Proposition 3.22 put to work.

  1. Direct proof. To establish \(p\rightarrow q\), assume \(p\) and derive \(q\) by a chain of previously established implications. The underlying tautology is transitivity of the conditional, \(\left((p\rightarrow r)\wedge(r\rightarrow q)\right)\rightarrow(p \rightarrow q)\), together with modus ponens, \(\left(p\wedge(p\rightarrow q)\right)\rightarrow q\).

  2. Contraposition. To establish \(p\rightarrow q\), assume \(\neg q\) and derive \(\neg p\). Legitimate by Proposition 3.21. The proof of injectivity in Definition 3.45 uses exactly this move.

  3. Contradiction (reductio ad absurdum). To establish \(p\), assume \(\neg p\) and derive a contradiction \(q\wedge\neg q\), which is false by Equation (3.26); since a false conclusion cannot follow from a true assumption, \(\neg p\) is false and, by Equation (3.18), \(p\) holds.

  4. Cases. If \(p_{1}\vee\cdots\vee p_{n}\) is a tautology and each \(p_{i}\rightarrow q\) has been proved, then \(q\) holds. The two-case version rests on Equation (3.25).

  5. Induction. To establish \(\forall n\in\N,\ P(n)\), prove \(P(1)\) and prove \(\forall n\in\N,\ P(n)\rightarrow P(n+1)\). This is not a tautology of propositional logic but an axiom about \(\N\) — Axiom 3.34 below — and it is the one place where the structure of the natural numbers enters a proof.

  6. Counterexample. To refute \(\forall x\in X,\ P(x)\), exhibit one \(x\) with \(\neg P(x)\), by Equation (3.32). One suffices; no number of confirming instances does the opposite job.

Example 3.26 (Irrationality of the square root of two).

Proof by contradiction, in its classical instance. Suppose \(\sqrt{2}\in\Q\). Then there are \(n,m\in\Z\) with \(m\neq0\) such that \(\sqrt{2}=n/m\), and we may take the fraction in lowest terms, i.e. with \(n\) and \(m\) not both even. Squaring and clearing the denominator,

\begin{equation} \tag{3.34} n^{2}=2m^{2}\ec \end{equation}

so \(n^{2}\) is even. An odd \(n=2k+1\) has \(n^{2}=2(2k^{2}+2k)+1\) odd, so by contraposition \(n\) is even: \(n=2j\) for some \(j\in\Z\). Substituting into Equation (3.34) gives \(4j^{2}=2m^{2}\), that is \(m^{2}=2j^{2}\), and the same argument makes \(m\) even. Then \(n\) and \(m\) are both even, contradicting the choice of lowest terms. Hence \(\sqrt{2}\notin\Q\), and the irrational numbers of Section 3.2.2 are not an optional embellishment of \(\Q\) but a necessity forced by the diagonal of a unit square.

Sets

Set theory descends through Cantor, Frege, Russell, and Zermelo–Fraenkel. In what follows we shall not include all the formalism that the full theory demands; we give only the definitions, axioms, and theorems that allow us to understand the many aspects of mathematical physics whose properties we can link with nature.

Sets

Definition 3.27 (Element).

We consider an element \(x\) to be an object that satisfies some collection of logical propositions.

Definition 3.28 (Set).

A set is an abstract grouping of elements that satisfy the same logical propositions.

For example, the vowels form the set \(X\) given by

\begin{align*} X & = \set{x\mid x\ \text{is a vowel}}\\ & = \set{a,e,i,o,u}\ep \end{align*}
Notation 3.29 (Membership).

That \(x\) is an element of the set \(X\) is written \(x\in X\); that it is not, \(x\notin X\). Membership is the sole primitive relation of set theory: every other notion in this section is defined from it, from \(\in\) and from the logical apparatus of Section 3.1. The two displays above illustrate the two ways of presenting a set — by extension, listing its elements, and by comprehension, giving a predicate (Definition 3.23) whose truth set it is.

Definition 3.30 (Subset).

Let \(X\) and \(Y\) be sets. We say \(X\) is a subset of \(Y\), written \(X\subset Y\), if and only if every element of \(X\) is an element of \(Y\):

\begin{equation} \tag{3.35} X\subset Y\iff\forall x\in X,\ x\in Y\ep \end{equation}

In particular, every set is a subset of itself. If \(X\subset Y\) and \(X\neq Y\) we call \(X\) a proper subset of \(Y\).

Two sets are equal when they have the same elements, and nothing else about them counts: a set is determined by its extension alone. This is the principle of extensionality, and in the axiomatic treatment of Section 3.6.2 it is promoted to an axiom. It is what licenses the double-inclusion argument Equation (3.47) used throughout this book, and it is the reason \(\set{a,e,i,o,u}\) and \(\set{e,a,u,i,o,a}\) are the same set: order and repetition are features of the notation, not of the object.

Definition 3.31 (Empty set).

The empty set is the set with no elements, denoted \(\varnothing\).

Every set has the empty set as a subset: the condition Equation (3.35) quantifies over the elements of \(\varnothing\), of which there are none, so it holds vacuously — an instance of rows three and four of Equation (3.10). Extensionality makes the empty set unique, since any two sets with no elements have the same elements. That so much can be built from nothing at all is the first sign that the naive notion of set carries more weight than it looks able to bear; Section 3.6 shows where it breaks and how the Zermelo–Fraenkel axioms repair it.

Definition 3.32 (Trivial subsets).

Given a set \(X\), it always has as subsets itself and the empty set. When it matters to refer to this fact, we call these the trivial subsets of \(X\).

Numbers

Number theory is an essential branch of mathematics that studies the properties of numbers. We shall not define number; instead we explain a way of understanding the familiar number sets.

Natural numbers $\N$

The set known as the natural numbers is a set of numbers with which we can identify, for example, a quantity of whole objects. Concretely: take the proposition “a farmer owns cows”, assumed true. We can then assert that the farmer has one, two, three, or more cows. The farmer cannot have infinitely many cows, for they would not fit in the world, and cannot have none, for that would be a contradiction. We write

\begin{equation} \N=\set{1,2,3,4,5,6,7,8,9,10,11,\ldots}\ep \end{equation}

That description says what \(\N\) is for, not what it is. The axiomatic characterization is Peano's [Peano:1889], and it needs one undefined operation: the successor, “the next one after”.

Axiom 3.33 (Peano axioms).

The natural numbers form a set \(\N\) carrying a distinguished element \(1\in\N\) and a map \(S:\N\longrightarrow\N\), called the successor, such that

  1. \(1\) is not a successor: \(\forall n\in\N,\ S(n)\neq1\);

  2. distinct numbers have distinct successors, i.e. \(S\) is injective (Definition 3.45):

    \[ S(n)=S(m)\implies n=m\ep \]

The two clauses forbid the successor chain from closing back on itself, but by themselves they do not forbid stray elements sitting outside the chain \(1,S(1),S(S(1)),\ldots\) altogether. Excluding those is the work of the fifth and deepest of Peano's axioms, which is also the licence for the induction proofs of Section 3.1.5.

Axiom 3.34 (Principle of induction).

Let \(P\) be a predicate on \(\N\). If \(P(1)\) holds and \(\forall n\in\N,\ P(n)\rightarrow P(S(n))\) holds, then \(\forall n\in\N,\ P(n)\). Equivalently, in the language of Definition 3.30: the only subset of \(\N\) containing \(1\) and closed under \(S\) is \(\N\) itself.

Addition and multiplication are then defined by recursion on the successor — \(n+1:=S(n)\), \(n+S(m):=S(n+m)\), \(n\cdot1:=n\), \(n\cdot S(m):=n\cdot m+n\) — and every familiar arithmetic law is a theorem proved by induction. This matters beyond arithmetic: the axioms above, written in first-order logic with induction restricted to predicates expressible in that language, constitute Peano arithmetic (Definition 3.83), the theory whose incompleteness Gödel proved.

Integers $\Z$

The set known as the integers consists of the natural numbers together with a new element, the number zero, denoted \(0\), which quantifies the existence of nothing: given the proposition “a farmer owns no sheep”, we say the farmer has zero sheep.

The set also contains, for each natural number, a dual element manifesting its opposite. Consider a sport played by two teams, where a team gains a point by stealing a banner from the other and loses a point when a banner is stolen from it. If a team has two banners stolen at the start, what is its score? Clearly it has gained nothing, but we intuit it holds something dual to the number \(2\) — something like “minus 2”. Writing these dual numbers with the minus sign \(-\) on the left, the set of integers is

\begin{equation} \Z=\set{\ldots,-5,-4,-3,-2,-1,0,1,2,3,4,5,\ldots}\ep \end{equation}

Several subsets of \(\Z\) are heavily used in mathematics and physics. Among them:

  1. Even numbers: the set

    \begin{equation} \set{2n\mid n\in\Z}=\set{\ldots,-4,-2,0,2,4,\ldots}\ec \end{equation}

    that is, the set of all multiples of \(2\) (positive and negative), clearly a subset of \(\Z\).

  2. Odd numbers: the set

    \begin{equation} \set{2n+1\mid n\in\Z}=\set{\ldots,-5,-3,-1,1,3,5,\ldots}\ec \end{equation}

    that is, the set of all multiples of \(2\), plus or minus \(1\).

  3. Prime numbers: the natural numbers that are multiples only of \(1\) and of themselves. For example, \(4\) is a multiple of \(1\), \(2\), and \(4\), so it is not prime; \(5\) is a multiple only of \(1\) and \(5\), so it is prime. By convention \(1\) is not considered prime, since the primes satisfy many properties in number theory that \(1\) does not. The set of primes is denoted \(\mathbb{P}\); its first ten elements are

    \begin{equation} \mathbb{P}=\set{2,3,5,7,11,13,17,19,23,29,\ldots}\ep \end{equation}

    Note that the only even prime is \(2\).

Rational numbers $\Q$

The set known as the rational numbers is a set of numbers with which we can identify portions. If we have a watermelon and eat half of it, we say we have eaten the fraction “one half” of the watermelon, written \(\frac{1}{2}\). We could likewise have eaten \(\frac{1}{3}\) of it, or even \(\frac{2}{2}\), which corresponds to eating the whole watermelon. In a fraction, the upper number is the numerator and the lower one the denominator. These new numbers, together with the integers, form the set of rational numbers

\begin{equation} \Q=\set{\frac{n}{m}\mid n,m\in\Z,\ m\neq0}\ec \end{equation}

where zero is excluded as a denominator because it leads to complications: there is no practical or canonical way to define how many times zero fits into an arbitrary number.

Irrational numbers $\R\setminus\Q$

Geometry produces new numbers whose infinite decimal expansions follow no known general formula. A classic example is the number \(\pi\), the ratio of the perimeter of a circle to its diameter,

\begin{equation} \pi=\frac{P_{\bigcirc}}{D_{\bigcirc}}=3.14159265358979323846\ldots\ep \end{equation}

Another example is the length of the diagonal of a unit square, the Pythagorean number \(\sqrt{2}\). These new numbers are called the irrational numbers. That they exist at all — that the rationals do not already exhaust the number line — is not an observation but a theorem, proved for \(\sqrt{2}\) in Example 3.26. That they are in fact the overwhelming majority of the real numbers is a much later and much stranger result, Theorem 3.69.

Real numbers $\R$

The rationals together with the irrationals form the real numbers \(\R\). We have no general symbolic rule for them, but graphically we can represent them by a straight line built out of them, as in Figure 3.1: each \(x\in\R\) is a point of the line.

[figure: rectareal.pdf]

The real line: a graphical representation of the set \(\R\).

The number sets assemble into the hierarchy

\begin{equation} \C\supset\left\{\begin{array}{l} \R\supset\left\{\begin{array}{l} \Q\supset\Z\supset\N\\ \R\setminus\Q \end{array} \right.\\ \mathbb{I} \end{array} \right. \end{equation}

where \(\mathbb{I}\) denotes the imaginary numbers and \(\C\) the complex numbers, both studied in detail in Complex Analysis.

Operations with sets

The logical operators of Section 3.1.2 induce operations on sets, because a set is the truth set of a predicate and the operators combine predicates. Each definition below pairs one connective with one symbol, and this pairing is the whole content of the subject.

Definition 3.35 (Union, intersection, difference).

Let \(X\) and \(Y\) be sets. We define

\begin{align} \tag{3.44} X\cup Y & :=\set{x\mid x\in X\ \vee\ x\in Y}\ec\\ \tag{3.45} X\cap Y & :=\set{x\mid x\in X\ \wedge\ x\in Y}\ec\\ \tag{3.46} X\setminus Y & :=\set{x\mid x\in X\ \wedge\ x\notin Y}\ec \end{align}

called respectively the union, the intersection and the difference of \(X\) and \(Y\). When all sets under discussion are subsets of one ambient set \(U\), the complement of \(X\) in \(U\) is \(X^{\mathrm{c}}:=U\setminus X\). Rests on Definitions 3.7, 3.8 and 3.9.

The complement is defined relative to a stated ambient set and never absolutely. There is no set of all things to take complements in: assuming one is exactly the mistake that produces Russell's paradox (Theorem 3.75).

Definition 3.36 (Disjoint sets).

Two sets \(X\) and \(Y\) are disjoint if and only if \(X\cap Y=\varnothing\).

Two properties will be used repeatedly in this book. First, mutual inclusion implies equality — this is extensionality in working form:

\begin{equation} \tag{3.47} (X\subset Y)\ \wedge\ (Y\subset X)\implies X=Y\ep \end{equation}

Second, intersecting with the empty set yields the empty set:

\begin{equation} \tag{3.48} X\cap\varnothing=\varnothing\ep \end{equation}
Proposition 3.37 (De Morgan's laws for sets).

Let \(X,Y\) be subsets of an ambient set \(U\). Then

\begin{align} \tag{3.49} (X\cup Y)^{\mathrm{c}} & =X^{\mathrm{c}}\cap Y^{\mathrm{c}}\ec\\ \tag{3.50} (X\cap Y)^{\mathrm{c}} & =X^{\mathrm{c}}\cup Y^{\mathrm{c}}\ep \end{align}

Rests on Definition 3.35, Equation (3.15), Equation (3.16) and Equation (3.47).

Proof.

Derives Proposition 3.37. Let \(u\in U\). By Definition 3.35, \(u\in(X\cup Y)^{\mathrm{c}}\) means \(\neg(u\in X\vee u\in Y)\), which by Equation (3.16) is equivalent to \((u\notin X)\wedge(u\notin Y)\), i.e. to \(u\in X^{\mathrm{c}}\cap Y^{\mathrm{c}}\). Every step is an equivalence, so each set is contained in the other and Equation (3.47) gives equality. The second law follows the same way from Equation (3.15).

That proof is the template for the whole algebra of sets: commutativity, associativity, distributivity and absorption of \(\cup\) and \(\cap\) are the set-theoretic shadows of Equations (3.19), (3.20), (3.21), (3.22) and (3.24), obtained by the same translation and proved by the same two lines. We shall use them without further comment.

For families of more than two sets, indexed by an arbitrary set \(I\) — finite, countable, or neither — we write

\begin{equation} \tag{3.51} \bigcup_{i\in I}X_{i}:=\set{x\mid\exists\,i\in I\mid x\in X_{i}}\ec\qquad \bigcap_{i\in I}X_{i}:=\set{x\mid\forall\,i\in I,\ x\in X_{i}}\ep \end{equation}

The pairing of \(\cup\) with \(\exists\) and of \(\cap\) with \(\forall\) is the same one as before, now in its quantified form; the negation rules Equations (3.32) and (3.33) turn into De Morgan's laws for arbitrary families.

Definition 3.38 (Ordered pair and Cartesian product).

The ordered pair \((x,y)\) is an object satisfying

\begin{equation} \tag{3.52} (x,y)=(x',y')\iff(x=x')\wedge(y=y')\ep \end{equation}

The Cartesian product of the sets \(X\) and \(Y\) is the set of ordered pairs

\begin{equation} \tag{3.53} X\times Y:=\set{(x,y)\mid x\in X,\ y\in Y}\ec \end{equation}

and analogously for finitely many factors; we write \(X^{n}\) for the product of \(n\) copies of \(X\).

Remark 3.39 (Pairs are sets too).

Equation (3.52) states the property an ordered pair must have, not what it is. If ordered pairs are to be sets like everything else, the standard implementation is Kuratowski's [Kuratowski:1921],

\begin{equation} \tag{3.54} (x,y):=\set{\set{x},\set{x,y}}\ec \end{equation}

from which Equation (3.52) is a short exercise in extensionality. The implementation is a convenience, not a discovery: nothing in mathematics or physics depends on which coding is chosen, only on the fact that some coding satisfies Equation (3.52). The same remark will apply, with far greater force, to Gödel's coding of formulas as numbers (Section 3.8.3).

Cartesian products are the reason this section belongs in a physics book. Configuration space is a product of position ranges, phase space a product of configuration and momentum spaces (Hamiltonian Mechanics), spacetime a product of a time axis with a spatial manifold in every chart, and a relation — including every equivalence relation of Section 3.4 and every map of Section 3.3 — is formally a subset of a product.

Cardinality

Definition 3.40 (Cardinal).

The cardinal of a set \(X\), written \(\abs{X}\), is the number of elements it contains. A set is finite if and only if its cardinal is \(0\) or lies in \(\N\); otherwise it is infinite.

For example, the cardinal of the set of vowels is \(\abs{\set{a,e,i,o,u}}=5\), and \(\abs{\varnothing}=0\). The cardinal of the set of naturals greater than or equal to \(6\) and less than \(15\) is \(\abs{\set{6,7,8,9,10,11,12,13,14}}=9\). Other sets are infinite: \(\N\), \(\Z\), \(\Q\), \(\R\), and even the set of reals between \(0\) and \(1\).

Writing \(\abs{\R}=\infty\), as is often done informally, throws away the most interesting fact in this chapter. Both \(\N\) and \(\R\) are infinite, yet we intuit that \(\R\) is somehow “more” infinite — and that intuition is correct, provable, and the beginning of a whole hierarchy (Section 3.5). Until the tools for comparing infinite sets are in place we confine the arithmetic of cardinals to finite sets.

Definition 3.41 (Power set).

Let \(X\) be a set. The power set of \(X\) is the set of all possible subsets of \(X\), denoted \(\mathcal{P}(X)\). Rests on Definition 3.30.

For example, if \(X=\set{a,b,c}\), then

\[ \mathcal{P}(X)=\set{\varnothing,\set{a},\set{b},\set{c},\set{a,b}, \set{a,c},\set{b,c},X}\ep \]
Proposition 3.42 (Cardinal of the power set).

For every finite set \(X\),

\begin{equation} \tag{3.55} \abs{\mathcal{P}(X)}=2^{\abs{X}}\ep \end{equation}

Rests on Definition 3.41, Definition 3.40, Axiom 3.34, Equation (3.25) and Equation (3.26).

Proof.

Derives Proposition 3.42. By induction (Axiom 3.34) on \(n=\abs{X}\), the statement \(P(n)\) being “every set of cardinal \(n\) has exactly \(2^{n}\) subsets”.

Base. If \(n=0\) then \(X=\varnothing\), whose only subset is \(\varnothing\) itself, so \(\mathcal{P}(\varnothing)=\set{\varnothing}\) and \(\abs{\mathcal{P}(X)}=1=2^{0}\).

Step. Assume \(P(n)\) and let \(\abs{X}=n+1\). Since \(n+1\geq1\) the set is non-empty; pick \(a\in X\) and put \(Y:=X\setminus\set{a}\), so \(\abs{Y}=n\). Split the subsets of \(X\) according to whether they contain \(a\):

\[ \mathcal{A}:=\set{A\in\mathcal{P}(X)\mid a\notin A}\ec\qquad \mathcal{B}:=\set{A\in\mathcal{P}(X)\mid a\in A}\ep \]

These are disjoint by Equation (3.26) and exhaust \(\mathcal{P}(X)\) by Equation (3.25). Now \(\mathcal{A}\) is exactly \(\mathcal{P}(Y)\), since a subset of \(X\) omitting \(a\) is a subset of \(Y\) and conversely; hence \(\abs{\mathcal{A}}=2^{n}\) by the induction hypothesis. And the map \(B\longmapsto B\setminus\set{a}\) sends \(\mathcal{B}\) into \(\mathcal{P}(Y)\) with inverse \(A\longmapsto A\cup\set{a}\), so it is a bijection (Definition 3.47) and \(\abs{\mathcal{B}}=2^{n}\) as well. Adding the two disjoint families,

\[ \abs{\mathcal{P}(X)}=2^{n}+2^{n}=2^{n+1}\ec \]

which is \(P(n+1)\). By induction \(P(n)\) holds for every \(n\).

The exponential notation is not a coincidence of counting. Sending a subset \(A\subset X\) to its indicator function — the map taking the value \(1\) on \(A\) and \(0\) elsewhere — is a bijection between \(\mathcal{P}(X)\) and the set \(\mathcal{F}(X,\set{0,1})\) of Definition 3.52, for finite and infinite \(X\) alike. This is why the power set is also written \(2^{X}\), and why Theorem 3.71 below can be read as the statement that there are always more functions on a set than points in it.

Maps

Maps

Consider two non-empty sets \(X\) and \(Y\). In the everyday sense we can always relate some element of \(X\) with some element of \(Y\) by means of an arbitrary rule: some elements of \(X\) may be related to several elements of \(Y\), others to none. The relations that turn out to be most useful are the more disciplined ones, in which each element of \(X\) is related to one and only one element of \(Y\): we demand both the existence of a related element in \(Y\) and its uniqueness.

Definition 3.43 (Map).

A map (also function or application) \(f\) from \(X\) to \(Y\) is an assignment rule relating the elements of \(X\) with elements of \(Y\) that satisfies the axiom of existence and uniqueness:

\begin{equation} \forall\ x\in X,\ \exists!\ f(x)\in Y \mid \text{to $x$ we assign $f(x)$}\ec \end{equation}

written in notation \(x\longmapsto f(x)\). To make the related sets explicit we write \(f:X\longrightarrow Y\), and we call \(X\) the domain of \(f\) and \(Y\) the codomain of \(f\). Rests on Definitions 3.24 and 3.28.

We may picture a map as a “machine” to which we feed an element of the domain, and which transforms it into an element of the codomain. For example, the map \(f\) assigning to each natural number its square root is

\[ \begin{array}{cccc} f: & \N & \longrightarrow & \R\\ & n & \longmapsto & \sqrt{n}\ep \end{array} \]
Definition 3.44 (Image).

Let \(f:X\longrightarrow Y\) be a map. The image of \(f\) is

\begin{equation} f(X)=\set{y\in Y\mid y=f(x),\ x\in X}\subset Y\ep \end{equation}

Not every element of the codomain need be the result of mapping some element of the domain. Note that the image of a map is defined canonically: a map brings its image with it, uniquely determined, which is not the case for the codomain. One must not confuse this with two distinct maps sharing the same assignment formula: the image of

\[ \begin{array}{cccc} f: & \N & \longrightarrow & \R\\ & n & \longmapsto & \sqrt{n} \end{array} \]

is different from the image of

\[ \begin{array}{cccc} g: & \R & \longrightarrow & \R\\ & x & \longmapsto & \sqrt{x}\ep \end{array} \]
Definition 3.45 (Injective map).

A map \(f:X\longrightarrow Y\) is injective if and only if

\begin{equation} x\neq x' \implies f(x)\neq f(x')\ep \end{equation}

Injectivity means that two distinct elements of the domain are mapped to distinct elements of the codomain. The definition is equivalent to: \(f:X\longrightarrow Y\) is injective if and only if

\begin{equation} f(x)=f(x') \implies x=x'\ec \end{equation}

since the two implications are contrapositives of one another.

Definition 3.46 (Surjective map).

A map \(f:X\longrightarrow Y\) is surjective if and only if

\begin{equation} f(X)=Y\ec \end{equation}

which is equivalent to saying that

\begin{equation} \forall\ y \in Y,\ \exists\ x \in X \mid y=f(x)\ep \end{equation}
Definition 3.47 (Bijective map).

A map \(f:X\longrightarrow Y\) is bijective, or a bijection, if and only if

\begin{equation} \forall\ y \in Y,\ \exists!\ x \in X \mid y=f(x)\ep \end{equation}

Bijectivity sharpens surjectivity by demanding uniqueness in the existence. A more practical characterization is the following.

Proposition 3.48 (Characterization of bijectivity).

A map \(f:X\longrightarrow Y\) is bijective if and only if it is injective and surjective. Rests on Definitions 3.45, 3.46 and 3.47.

Proof.

Derives Proposition 3.48. Both directions unpack Definition 3.47, whose content is that each \(y\in Y\) has an antecedent and has only one.

\((\implies)\) Let \(f\) be bijective. The existential half of \(\exists!\,x\in X\mid y=f(x)\) says that every \(y\in Y\) is attained, i.e.\ \(f(X)=Y\), which is surjectivity. For injectivity, suppose \(f(x)=f(x')\) and call this common value \(y\). Then \(x\) and \(x'\) are both antecedents of \(y\), and the uniqueness half forces \(x=x'\).

\((\impliedby)\) Let \(f\) be injective and surjective, and let \(y\in Y\). Surjectivity supplies at least one \(x\in X\) with \(f(x)=y\). If \(x'\in X\) also satisfies \(f(x')=y\), then \(f(x)=f(x')\) and injectivity gives \(x=x'\). So the antecedent exists and is unique, which is \(\exists!\,x\in X\mid y=f(x)\).

Definition 3.49 (Composition map).

Let \(f:X\longrightarrow Y\) and \(g:Y\longrightarrow Z\) be maps. The composition of \(g\) with \(f\) is the map

\begin{align*} g\circ f:X & \longrightarrow Z\\ x & \longmapsto g(f(x))\ep \end{align*}
Definition 3.50 (Identity map).

The identity map on \(X\) is

\begin{align*} \id_X:X & \longrightarrow X\\ x & \longmapsto x\ep \end{align*}
Definition 3.51 (Inverse map).

Let \(f:X\longrightarrow Y\) be a bijection. The inverse map \(f^{-1}:Y\longrightarrow X\) is the map assigning to each \(y\in Y\) the unique \(x\in X\) with \(f(x)=y\); it satisfies \(f^{-1}\circ f=\id_X\) and \(f\circ f^{-1}=\id_Y\). Rests on Definitions 3.47, 3.49 and 3.50.

Definition 3.52 (Set of maps).

We define \(\mathcal{F}(X,Y)\) as the set of all maps of the form \(f:X\longrightarrow Y\).

Definition 3.53 (Preimage).

Let \(f:X\longrightarrow Y\) be a map and \(B\subset Y\). The preimage of \(B\) under \(f\) is

\begin{equation} \tag{3.63} f^{-1}(B):=\set{x\in X\mid f(x)\in B}\subset X\ep \end{equation}

The notation is a deliberate abuse: \(f^{-1}(B)\) is defined for every map, bijective or not, and is a set, whereas the inverse map of Definition 3.51 exists only for bijections and returns an element. The two agree, up to the identification of a point with the singleton containing it, exactly when \(f\) is a bijection.

Proposition 3.54 (Preimages respect the set operations).

Let \(f:X\longrightarrow Y\) and let \(B,C\subset Y\). Then

\begin{align} \tag{3.64} f^{-1}(B\cup C) & =f^{-1}(B)\cup f^{-1}(C)\ec\\ \tag{3.65} f^{-1}(B\cap C) & =f^{-1}(B)\cap f^{-1}(C)\ec\\ \tag{3.66} f^{-1}(B^{\mathrm{c}}) & =f^{-1}(B)^{\mathrm{c}}\ep \end{align}

Images respect unions, \(f(A\cup A')=f(A)\cup f(A')\), but in general only \(f(A\cap A')\subset f(A)\cap f(A')\). Rests on Definition 3.53, Definition 3.35 and Equation (3.47).

Proof.

Derives Proposition 3.54. For the first identity, \(x\in f^{-1}(B\cup C)\) says \(f(x)\in B\vee f(x)\in C\), which is \(x\in f^{-1}(B)\vee x\in f^{-1}(C)\); the second and third replace \(\vee\) by \(\wedge\) and by \(\neg\) in the same way. Each step is an equivalence of propositions, so Equation (3.47) applies. For images the corresponding step is not an equivalence: \(y\in f(A\cap A')\) requires one \(x\) lying in both \(A\) and \(A'\), whereas \(y\in f(A)\cap f(A')\) allows two different antecedents, one in each. A non-injective map exhibits the gap — take \(f(x)=x^{2}\) on \(\R\) with \(A=\set{1}\) and \(A'=\set{-1}\), for which \(f(A\cap A')=\varnothing\) while \(f(A)\cap f(A')=\set{1}\).

This asymmetry is why preimages, not images, are the right notion in topology (continuity is “preimages of open sets are open”, Topological and Metric Spaces) and in measure theory (a random variable is measurable when preimages of intervals are measurable, Probability and Statistics).

Definition 3.55 (Restriction).

Let \(f:X\longrightarrow Y\) and \(A\subset X\). The restriction of \(f\) to \(A\) is the map \(f|_{A}:A\longrightarrow Y\) with \(f|_{A}(a)=f(a)\) for every \(a\in A\).

Proposition 3.56 (Composition is associative).

Let \(f:X\longrightarrow Y\), \(g:Y\longrightarrow Z\) and \(h:Z\longrightarrow W\). Then

\begin{equation} \tag{3.67} h\circ(g\circ f)=(h\circ g)\circ f\ec \end{equation}

and \(f\circ\id_{X}=f=\id_{Y}\circ f\). Rests on Definitions 3.49 and 3.50.

Proof.

Derives Proposition 3.56. Two maps with the same domain and codomain are equal when they agree at every point. For \(x\in X\), both sides of Equation (3.67) unfold to \(h(g(f(x)))\) by Definition 3.49 applied twice; the bracketing only records the order in which the unfolding was performed, and the result does not depend on it. The identity laws are immediate from Definition 3.50.

Associativity with a two-sided identity is precisely the axiom system of a monoid, and the bijections of a set onto itself — which by Proposition 3.57 are closed under composition and by Definition 3.51 under inversion — form a group, the symmetric group of the set. That is the bridge from this chapter to Algebraic Structures, and through it to every symmetry argument in the physical parts of this treatise.

Proposition 3.57 (Composition of bijective maps).

Let \(f:X\longrightarrow Y\) and \(g:Y\longrightarrow Z\) be bijections. Then \(g\circ f:X\longrightarrow Z\) is a bijection, and

\begin{equation} \tag{3.68} (g\circ f)^{-1}=f^{-1}\circ g^{-1}\ep \end{equation}

Rests on Proposition 3.48, Proposition 3.56 and Definition 3.51.

Proof.

Derives Proposition 3.57. By Proposition 3.48 it suffices to prove that \(g\circ f\) is injective and surjective.

Injective. Suppose \((g\circ f)(x)=(g\circ f)(x')\), that is \(g(f(x))=g(f(x'))\). Since \(g\) is injective, \(f(x)=f(x')\); since \(f\) is injective, \(x=x'\).

Surjective. Let \(z\in Z\). Since \(g\) is surjective there is \(y\in Y\) with \(g(y)=z\), and since \(f\) is surjective there is \(x\in X\) with \(f(x)=y\). Then \((g\circ f)(x)=g(f(x))=g(y)=z\).

For Equation (3.68), compose and use associativity (Proposition 3.56):

\[ (f^{-1}\circ g^{-1})\circ(g\circ f) =f^{-1}\circ(g^{-1}\circ g)\circ f =f^{-1}\circ\id_{Y}\circ f=f^{-1}\circ f=\id_{X}\ec \]

and symmetrically \((g\circ f)\circ(f^{-1}\circ g^{-1})=\id_{Z}\). A two-sided inverse of a bijection is unique — if \(u\) and \(v\) both invert \(w\) then \(u=u\circ\id=u\circ(w\circ v)=(u\circ w)\circ v=\id\circ v=v\) — so \(f^{-1}\circ g^{-1}\) is the inverse of \(g\circ f\).

Equivalence classes

Equivalence relations

Definition 3.58 (Equivalence relation).

Consider a set \(X=\set{x,y,z,\ldots}\). A relation \(\sim\) on \(X\) is an equivalence relation if and only if it satisfies

  1. Reflexivity:

    \begin{equation} \forall x\in X,\ x\sim x\ep \end{equation}
  2. Symmetry:

    \begin{equation} \forall x,y\in X,\ x\sim y\implies y\sim x\ep \end{equation}
  3. Transitivity:

    \begin{equation} \forall x,y,z\in X,\ x\sim y\ \wedge\ y\sim z\implies x\sim z\ep \end{equation}

Two elements \(x,y\in X\) with \(x\sim y\) are said to be equivalent.

Definition 3.59 (Equivalence class).

Consider a set \(X\) with an equivalence relation \(\sim\), and let \(a\in X\). The set of all elements of \(X\) equivalent to \(a\),

\begin{equation} [a]=\set{x\in X\mid x\sim a}\ec \end{equation}

is the equivalence class[Equivalence classes are colloquially called simply classes.] of \(a\), and \(a\) is called the representative of the class \([a]\). Rests on Definition 3.58.

By reflexivity, \(a\in[a]\). Moreover, let \(b\in[a]\); then \(b\sim a\) and, by symmetry, \(a\sim b\). Now let \(x\in[a]\); then \(x\sim a\) and, by transitivity, \(x\sim b\). Since \(x\) is arbitrary in \([a]\), every element of \([a]\) is equivalent to \(b\), and we conclude that any element of \([a]\) may serve as its representative.

Two examples:

Quotient space

Theorem 3.60 (Equivalence classes partition the set).

Let \(\sim\) be an equivalence relation on a set \(X\). Two equivalence classes are either disjoint or identical: for any classes \([a]\) and \([b]\),

\begin{equation} [a]\cap[b]\neq\varnothing\implies[a]=[b]\ec \end{equation}

or, equivalently, in view of the logical property Equation (3.14),

\begin{equation} [a]\cap[b]=\varnothing \quad \vee\quad [a]=[b]\ep \end{equation}

The relation \(\sim\) therefore divides \(X\) into disjoint classes: it partitions the set. Rests on Definition 3.58, Definition 3.59, Definition 3.36 and Equation (3.47).

Proof.

Derives Theorem 3.60. Suppose the classes \([a]\) and \([b]\) are not disjoint,

\[ [a]\cap[b]\neq\varnothing\ep \]

We must prove \([a]=[b]\): if they share at least one element, they are the same class. Recall that by definition

\[ [a]=\set{x\in X\mid x\sim a},\quad [b]=\set{x\in X\mid x\sim b}\ep \]

By reflexivity \([a]\neq\varnothing\), since \(a\sim a\), and analogously \([b]\neq\varnothing\); there is thus no obstruction to considering \([a]\cap[b]\neq\varnothing\) (we make this remark because of property Equation (3.48) of set theory).

Since \([a]\cap[b]\neq\varnothing\), there exists \(c\in[a]\cap[b]\) satisfying \(c\sim a\) and \(c\sim b\). By symmetry \(a\sim c\), and finally by transitivity \(a\sim b\).

Let \(x\in[a]\); then \(x\sim a\). Since also \(a\sim b\), transitivity gives \(x\sim b\), which means \(x\in[b]\) for all \(x\in[a]\), i.e.\ \([a]\subset[b]\). Analogously, starting from \(y\in[b]\) we conclude \([b]\subset[a]\). By double inclusion, Equation (3.47), we conclude \([a]=[b]\).

Definition 3.61 (Quotient space).

Consider a set \(X\) and an equivalence relation \(\sim\) among its elements. The quotient space is

\begin{equation} \frac{X}{\sim}=\set{[y]\mid y\in X}\ec \end{equation}

that is, the quotient space is the set of all equivalence classes given by \(\sim\). Rests on Definition 3.59.

Quotienting is how physics disposes of descriptive surplus. Angles are real numbers modulo \(2\pi\), the example above. States in quantum mechanics are vectors of a Hilbert space modulo nonzero complex scaling, which is why the state space is the projective space \(\mathcal{P}(\mathcal{H})\) and why the global phase of a wavefunction is unobservable (The Postulates of Quantum Mechanics). Gauge fields related by a gauge transformation are the same physical configuration, and the physical configuration space is the quotient by the gauge group (Generalized Classical Field Theory). In each case the equivalence relation encodes exactly what no measurement can distinguish, and Theorem 3.60 guarantees that this notion of “same physical situation” is consistent: the classes never partly overlap.

The infinite

Cardinality was defined in Section 3.2.4 by counting, which works only for finite sets. Cantor's insight was that comparison does not require counting: two shepherds can agree that they have equally many sheep by pairing the animals off, without either of them knowing how to count. The pairing is a bijection, and it makes sense whether the flocks are finite or not [Cantor:1874].

Equipotence and countability

Definition 3.62 (Equipotence).

Two sets \(X\) and \(Y\) are equipotent, written \(X\approx Y\), if and only if there exists a bijection \(f:X\longrightarrow Y\). We then say they have the same cardinal, \(\abs{X}=\abs{Y}\). Rests on Definitions 3.40 and 3.47.

Proposition 3.63.

Equipotence is reflexive, symmetric and transitive. Rests on Definition 3.62, Definition 3.50, Definition 3.51 and Proposition 3.57.

Proof.

Derives Proposition 3.63. Reflexivity: \(\id_{X}\) is a bijection of \(X\) onto itself. Symmetry: if \(f:X\longrightarrow Y\) is a bijection then so is \(f^{-1}:Y\longrightarrow X\), by Definition 3.51. Transitivity: if \(f:X\longrightarrow Y\) and \(g:Y\longrightarrow Z\) are bijections then so is \(g\circ f\), by Proposition 3.57.

Remark 3.64.

Proposition 3.63 lists the three clauses of Definition 3.58, but it stops short of calling \(\approx\) an equivalence relation, and the omission is deliberate. An equivalence relation lives on a set, and there is no set of all sets to put this one on (Section 3.6). The classes of \(\approx\) are therefore proper classes, not elements of a quotient set. Cardinals are recovered inside ZFC by choosing a canonical representative of each class rather than by forming the quotient.

Definition 3.65 (Countable set).

A set is countably infinite if and only if it is equipotent to \(\N\), and at most countable (or simply countable) if it is finite or countably infinite. A set that is neither is uncountable. The cardinal of \(\N\) is denoted \(\aleph_{0}\). Rests on Definition 3.62 and Axiom 3.33.

Being countably infinite means precisely that the elements can be arranged in an infinite list \(x_{1},x_{2},x_{3},\ldots\) in which every element appears exactly once: the list is the bijection. The natural numbers are trivially countable, via \(n\longmapsto n\). Three less obvious examples follow, and each is a warning that infinite sets do not behave like finite ones.

Example 3.66 (The integers are countable).

Although \(\N\subset\Z\) properly — \(\Z\) contains \(0\) and all the negatives besides — the two sets are equipotent. Interleave the signs:

\begin{equation} \tag{3.76} f:\N\longrightarrow\Z\ec\qquad f(1)=0\ec\qquad f(2k)=k\ec\qquad f(2k+1)=-k\quad(k\in\N)\ec \end{equation}

which lists \(\Z\) as \(0,1,-1,2,-2,3,-3,\ldots\). Every integer occurs, and occurs once, so \(f\) is a bijection and \(\abs{\Z}=\aleph_{0}\).

That a proper subset can be equipotent to the whole is impossible for finite sets and characteristic of infinite ones — indeed Dedekind took it as the definition of infinite [Dedekind:1888]. It is the content of the parable of Hilbert's hotel: a hotel with rooms \(1,2,3,\ldots\), all occupied, still accommodates a new guest by moving the occupant of room \(n\) to room \(n+1\).

Proposition 3.67 (Countability of the plane of naturals).

\(\N\times\N\) is countably infinite. Rests on Definitions 3.38, 3.47 and 3.65.

Proof.

Derives Proposition 3.67. Enumerate the pairs along the finite antidiagonals \(m+n=2,3,4,\ldots\), each of which contains finitely many pairs, taking them in order of increasing \(m\). Explicitly, the Cantor pairing map

\begin{equation} \tag{3.77} \pi:\N\times\N\longrightarrow\N\ec\qquad \pi(m,n)=\frac{(m+n-2)(m+n-1)}{2}+m \end{equation}

sends the antidiagonal \(m+n=d\) onto the block of integers \(\set{T_{d-2}+1,\ldots,T_{d-2}+(d-1)}\), where \(T_{k}=k(k+1)/2\) is the \(k\)-th triangular number and \(d-1\) is the number of pairs on that antidiagonal. Consecutive blocks abut without gap or overlap, since \(T_{d-2}+(d-1)=T_{d-1}\), and within a block \(m\) runs over \(1,\ldots,d-1\) injectively. Hence \(\pi\) is a bijection.

Corollary 3.68 (The rationals are countable).

\(\abs{\Q}=\aleph_{0}\). Rests on Proposition 3.67, Definition 3.65 and Equation (3.76).

Proof.

Derives Corollary 3.68. Each positive rational is \(n/m\) with \(n,m\in\N\), so \((n,m)\longmapsto n/m\) maps \(\N\times\N\) onto the positive rationals. A surjection from a countable set makes the target at most countable: list the source by Proposition 3.67 and strike out every term whose value has already appeared, leaving a list of the positive rationals without repetition. That list is infinite because \(\N\) embeds in it, so the positive rationals are countably infinite. Interleaving with the negatives and \(0\) as in Equation (3.76) gives \(\abs{\Q}=\aleph_{0}\).

So the rationals, dense though they are — between any two of them lies another — are no more numerous than the integers. At this point one might guess that all infinite sets are equipotent, and that “infinite” admits no useful gradation. Cantor showed otherwise.

The diagonal argument

Theorem 3.69 (Uncountability of the continuum).

The set \(\R\) is uncountable. More precisely, no map \(f:\N\longrightarrow[0,1)\) is surjective [Cantor:1891]. Rests on Definitions 3.46 and 3.65.

Proof.

Derives Theorem 3.69. Let \(f:\N\longrightarrow[0,1)\) be any map. Each value has a decimal expansion

\[ f(n)=0.a_{n1}a_{n2}a_{n3}\ldots\ec\qquad a_{nk}\in\set{0,1,\ldots,9}\ec \]

and where a number admits two expansions — one ending in all \(0\)s, one in all \(9\)s — we fix the first, so that the digits \(a_{nk}\) are well defined functions of \(n\) and \(k\).

Now build a number that differs from every listed one, using the diagonal digits \(a_{nn}\). Define

\begin{equation} \tag{3.78} b_{n}:=\begin{cases} 5 & \text{if } a_{nn}\neq5\ec\\ 4 & \text{if } a_{nn}=5\ec\end{cases} \end{equation}

and set \(b:=0.b_{1}b_{2}b_{3}\ldots\). Since every digit of \(b\) is \(4\) or \(5\), we have \(b\in[0,1)\); moreover \(b\)'s expansion neither terminates in all \(0\)s nor in all \(9\)s, so it is the only expansion of \(b\) and the digits of \(b\) are exactly the \(b_{n}\).

Suppose \(b=f(n)\) for some \(n\in\N\). Comparing the \(n\)-th digits of the two (unique, on our convention) expansions gives \(b_{n}=a_{nn}\), contradicting Equation (3.78), which was rigged so that \(b_{n}\neq a_{nn}\). Hence \(b\neq f(n)\) for every \(n\), and \(f\) is not surjective.

Since no map \(\N\longrightarrow[0,1)\) is surjective, none is bijective, so \([0,1)\) is uncountable; and \([0,1)\subset\R\), so \(\R\) is uncountable too — an at most countable set has no uncountable subset.

Corollary 3.70.

The irrational numbers are uncountable, and in this precise sense almost every real number is irrational. Rests on Theorem 3.69 and Corollary 3.68.

Proof.

Derives Corollary 3.70. If \(\R\setminus\Q\) were at most countable then \(\R=\Q\cup(\R\setminus\Q)\) would be the union of two at most countable sets, hence at most countable — interleave the two lists — contradicting Theorem 3.69.

The pattern of the proof, not its arithmetic, is what matters. A list is given; a new object is built by disagreeing with the \(n\)-th listed object in its \(n\)-th feature; the new object cannot be on the list. This diagonal argument reappears at every turn in the rest of the chapter: in Cantor's theorem immediately below, in Russell's paradox (Theorem 3.75), in Gödel's undecidable sentence (Theorem 3.87), and in Turing's halting problem (Theorem 3.96). They are four faces of one idea.

Theorem 3.71 (Cantor).

For every set \(X\) there is no surjection \(f:X\longrightarrow\mathcal{P}(X)\). Consequently \(\abs{X}<\abs{\mathcal{P}(X)}\), and there is no largest cardinal. Rests on Definition 3.41, Definition 3.46, Axiom 3.76 and Equation (3.26).

Proof.

Derives Theorem 3.71. Let \(f:X\longrightarrow\mathcal{P}(X)\) be any map. Each \(x\in X\) is thereby assigned a subset \(f(x)\subset X\), and it makes sense to ask whether \(x\) belongs to the subset assigned to it. Collect the elements for which the answer is no:

\begin{equation} \tag{3.79} D:=\set{x\in X\mid x\notin f(x)}\ep \end{equation}

This is a legitimate subset of \(X\) — it is carved out of the existing set \(X\) by a predicate, as the axiom of separation requires (Axiom 3.76) — so \(D\in\mathcal{P}(X)\).

Suppose \(D=f(d)\) for some \(d\in X\). Ask whether \(d\in D\). By the definition Equation (3.79), \(d\in D\) holds if and only if \(d\notin f(d)\); but \(f(d)=D\), so \(d\in D\) holds if and only if \(d\notin D\). That is \(p\leftrightarrow\neg p\), a contradiction by Equation (3.26). Hence \(D\) is in the image of no element and \(f\) is not surjective.

Since \(x\longmapsto\set{x}\) is an injection \(X\longrightarrow\mathcal{P}(X)\) while no surjection exists, the inequality is strict. Applying the theorem to \(\mathcal{P}(X)\), then to \(\mathcal{P}(\mathcal{P}(X))\), and so on produces an unending strictly increasing chain of cardinals.

Theorem 3.71 generalizes Proposition 3.42 from finite sets to all sets, and it strengthens Theorem 3.69: taking \(X=\N\) gives an uncountable set directly, and one can show \(\abs{\mathcal{P}(\N)}=\abs{\R}\), the cardinal of the continuum, written \(\mathfrak{c}=2^{\aleph_{0}}\). Comparison of cardinals is made rigorous by the following theorem, whose proof is long enough to belong in the appendix.

Theorem 3.72 (Cantor–Schröder–Bernstein).

If there exist injections \(f:X\longrightarrow Y\) and \(g:Y\longrightarrow X\), then there exists a bijection between \(X\) and \(Y\). Hence \(\abs{X}\leq\abs{Y}\) and \(\abs{Y}\leq\abs{X}\) imply \(\abs{X}=\abs{Y}\). Rests on Definitions 3.45, 3.47 and 3.62.

Derives Theorem 3.72.

The continuum hypothesis

Cantor found \(\aleph_{0}=\abs{\N}\) and \(\mathfrak{c}=\abs{\R}\) with \(\aleph_{0}<\mathfrak{c}\), and could not settle the obvious next question: is there anything strictly in between?

Axiom 3.73 (Continuum hypothesis).

There is no set \(X\) with \(\aleph_{0}<\abs{X}<\mathfrak{c}\); equivalently, every uncountable subset of \(\R\) is equipotent to \(\R\), i.e.\ \(\mathfrak{c}=\aleph_{1}\), the least uncountable cardinal.

Hilbert placed the question first on his list of twenty-three problems for the new century [Hilbert:1900], and its resolution took two thirds of that century and came in two halves, neither of them an answer in the sense Hilbert expected.

  1. Gödel showed in 1938 that if ZF is consistent, then so is ZFC together with the continuum hypothesis [Goedel:1938]. He did it by constructing the universe \(L\) of constructible sets, an inner model of ZF in which both the axiom of choice and Axiom 3.73 come out true. So Axiom 3.73 cannot be refuted from the axioms.

  2. Cohen showed in 1963 that if ZF is consistent, then so is ZFC together with the negation of the continuum hypothesis [Cohen:1963]. His method, forcing, adjoins to a model new sets constructed by finite approximations, in such a way that the cardinal \(\mathfrak{c}\) can be pushed above \(\aleph_{1}\) while every axiom of ZFC survives. So Axiom 3.73 cannot be proved from the axioms either.

Together: the continuum hypothesis is independent of ZFC. It is not that we do not yet know whether it is true; it is that the axioms we use for mathematics do not decide it, as the parallel postulate is not decided by the other axioms of geometry. One may adjoin it or its negation and get consistent mathematics either way.

Remark 3.74 (Does the physicist care?).

Directly, no — and it is worth being clear why not. Physical predictions are statements about measured quantities with finite precision, and the mathematics that generates them lives, almost without exception, in separable spaces: the Hilbert spaces of quantum mechanics have countable orthonormal bases (Hilbert Spaces), fields are described by functions determined by their values on a countable dense set, and every experimental record is a finite list of rationals with uncertainties. No measurement can distinguish a world in which Axiom 3.73 holds from one in which it fails, because nothing observable depends on the cardinal arithmetic strictly between \(\aleph_{0}\) and \(\mathfrak{c}\).

Indirectly, it matters a great deal, and this is the reason the section is here. The continuum hypothesis is the first proof that a perfectly meaningful mathematical question can be immune to the axioms used to pose it. Physics inherits mathematics wholesale; it is entitled to know that its inherited language has questions it cannot answer, and where the boundary runs. The rest of this chapter maps that boundary.

The crisis of foundations

Definition 3.28 says a set is a grouping of elements satisfying the same logical propositions. Taken at face value this is the principle of unrestricted comprehension: every predicate \(P\) determines a set \(\set{x\mid P(x)}\). It is the natural reading; it is, in the guise of Basic Law V on value-ranges, what Frege built his reduction of arithmetic to logic upon [Frege:1893]; and it is false.

Russell's paradox

Theorem 3.75 (Russell, 1901).

Unrestricted comprehension is inconsistent. Rests on Definitions 3.7, 3.12 and 3.28.

Proof.

Derives Theorem 3.75. Sets can be elements of sets, so for any set \(x\) the sentence \(x\in x\) is a well formed proposition and \(x\notin x\) is its negation. Apply unrestricted comprehension to the predicate \(P(x)=\) “\(x\notin x\)” and let

\begin{equation} \tag{3.80} R:=\set{x\mid x\notin x}\ep \end{equation}

Ask whether \(R\in R\). By Equation (3.80), an object belongs to \(R\) if and only if it does not belong to itself; applied to \(R\) itself this reads

\begin{equation} \tag{3.81} R\in R\iff R\notin R\ec \end{equation}

which is \(p\leftrightarrow\neg p\). Both truth values of \(p\) make Equation (3.81) false, while comprehension asserts it. The principle therefore yields a contradiction.

Russell communicated the argument to Frege in June 1902, while the second volume of Frege's Grundgesetze was at the printer; Frege appended a note beginning “Hardly anything more unwelcome can befall a scientific writer than that one of the foundations of his edifice be shaken after the work is finished”. The exchange is reprinted in [vanHeijenoort:1967].

Compare Equation (3.80) with the set \(D\) of Theorem 3.71. They are the same construction: Russell's paradox is Cantor's diagonal argument applied to the map that sends each set to itself. Cantor's theorem is a theorem because \(D\) is carved out of an existing set \(X\); Russell's is a paradox because \(R\) is carved out of nothing at all. That distinction is the entire repair.

The Zermelo–Fraenkel axioms

Zermelo's response [Zermelo:1908], completed by Fraenkel and Skolem [Fraenkel:1922], was to abandon comprehension as a general principle and to legislate instead exactly which set formations are permitted. Sets are then not defined at all: like “point” in geometry or “event” in relativity, “set” and “\(\in\)” are primitive notions (Section 1.5), constrained only by axioms.

Axiom 3.76 (Zermelo–Fraenkel with choice).

The theory ZFC is written in first-order logic with the single non-logical symbol \(\in\), and consists of:

  1. Extensionality. Sets with the same elements are equal.

  2. Pairing. For all \(a,b\) there is a set \(\set{a,b}\).

  3. Union. For every set \(A\) there is a set \(\bigcup A\) whose elements are the elements of the elements of \(A\).

  4. Power set. For every set \(A\) there is a set \(\mathcal{P}(A)\) whose elements are the subsets of \(A\).

  5. Infinity. There is a set containing \(\varnothing\) and closed under \(x\longmapsto x\cup\set{x}\) — an infinite set exists, and this is where \(\N\) comes from.

  6. Separation (an axiom for each predicate \(P\)). For every set \(A\), the collection \(\set{x\in A\mid P(x)}\) is a set.

  7. Replacement (an axiom for each definable function \(F\)). The image \(\set{F(x)\mid x\in A}\) of a set is a set.

  8. Foundation. Every non-empty set has an element disjoint from it; equivalently, there is no infinite descending chain \(\cdots\in x_{2}\in x_{1}\in x_{0}\).

  9. Choice. For every set of non-empty sets there is a function selecting one element from each.

Axioms 1–8 constitute ZF; adjoining 9 gives ZFC. Items 6 and 7 are schemata: infinitely many axioms, one per predicate, since first-order logic cannot quantify over predicates.

Separation is the repair. It permits \(\set{x\in A\mid P(x)}\) but never \(\set{x\mid P(x)}\): a set may only be sieved out of a set already known to exist. Russell's \(R\) is unobtainable, since no prior set is available to sieve. What survives of his argument is a theorem.

Corollary 3.77 (There is no set of all sets).

For every set \(A\) there is a set that is not an element of \(A\). Rests on Axiom 3.76.

Proof.

Derives Corollary 3.77. Let \(A\) be a set. By separation, \(B:=\set{x\in A\mid x\notin x}\) is a set. Suppose \(B\in A\). Then \(B\in B\) holds if and only if \(B\in A\) and \(B\notin B\), and since \(B\in A\) was assumed, this reduces to \(B\in B\iff B\notin B\), a contradiction. Hence \(B\notin A\), so \(A\) fails to contain the set \(B\).

The universe of sets is thus not itself a set — it is a proper class, and Remark 3.64 was an instance of the same fact. Foundation goes further and rules out \(x\in x\) outright, so that the sets form a cumulative hierarchy built up from \(\varnothing\) by iterated power sets. Nothing in physics ever reaches beyond the first few dozen levels of that hierarchy.

The axiom of choice

The ninth axiom is different in kind from the other eight. Each of those gives an explicit recipe for the set it asserts; choice asserts that a selection exists without providing any rule for making it. For finitely many non-empty sets the selection can be made one at a time and choice is a theorem; for infinitely many it is a genuine assumption.

Axiom 3.78 (Choice).

Let \(\set{X_{i}}_{i\in I}\) be a family of non-empty sets indexed by any set \(I\). Then there exists a map

\begin{equation} \tag{3.82} c:I\longrightarrow\bigcup_{i\in I}X_{i}\quad\text{with}\quad c(i)\in X_{i}\ \text{ for every } i\in I\ep \end{equation}

Choice is equivalent, over ZF, to a list of statements that look nothing like it and are used constantly: Zermelo's well-ordering theorem (every set admits a well ordering), Zorn's lemma (a partially ordered set in which every chain has an upper bound has a maximal element), the statement that every vector space has a basis (Linear Algebra and Representation Theory), Tychonoff's theorem on products of compact spaces (Topological and Metric Spaces), and the claim that every surjection has a right inverse.

Its cost is that it produces objects no construction could reach. Vitali's non-measurable subset of \(\R\) and the Banach–Tarski decomposition — a solid ball cut into five pieces and reassembled, by rigid motions alone, into two balls of the original size — both follow from choice, and both are immune to physical interpretation precisely because the pieces have no volume. The lesson for physics is not that choice is false but that measure-theoretic hygiene is mandatory: probability is defined on a \(\sigma\)-algebra of measurable sets, and the pathological sets are simply not in it (Probability and Statistics).

Remark 3.79 (How much choice does physics use?).

Far less than the full axiom. The Hilbert spaces of quantum mechanics are separable, and constructing a countable orthonormal basis from a countable dense set by Gram–Schmidt needs only dependent choice, a weak fragment consistent with ZF plus “every set of reals is measurable”. Where full choice does enter — the Hahn–Banach theorem, the existence of a basis for a non-separable space, the spectral theorem in its most general form (Hilbert Spaces) — the applications physics makes of the result can invariably be recovered constructively in the separable case. No experimental prediction has ever depended on the axiom of choice.

Three answers to the crisis

The paradoxes forced a question that mathematics had never needed to ask: what are its statements about, and what makes a proof valid? Three programmes answered differently, and their disagreement is the direct ancestor of the results in the remainder of this chapter.

  1. Logicism (Frege, Russell, Whitehead). Mathematics is a branch of logic: numbers are definable in purely logical terms and arithmetic truths are logical truths. Principia Mathematica [Whitehead:1910] carried the reduction out in three volumes: the cardinal groundwork for \(1+1=2\) is proposition *54.43, midway through the first volume, and the arithmetical proposition itself is *110.643, on page 86 of the second. The paradoxes were blocked with a ramified theory of types forbidding a collection to contain itself. The programme foundered on its own repairs: the axioms of infinity and of reducibility, needed to make the development work, are not plausibly logical truths, so the reduction relocated the problem rather than dissolving it.

  2. Formalism (Hilbert). Mathematics is the manipulation of finite strings of symbols according to stated rules; questions of what the symbols denote are set aside. Infinite objects are “ideal elements”, admissible so long as reasoning with them never yields a false statement about finite ones [Hilbert:1926]. Hilbert's programme is the demand that this be proved, by finitary means, once and for all. It is the subject of Sections 3.8 and 3.10.

  3. Intuitionism (Brouwer). Mathematics is a mental construction, and a mathematical object exists only when it has been constructed [Brouwer:1913]. On this view \(\forall x\,P(x)\) asserts a method producing a proof of \(P(x)\) for each \(x\), and \(\exists x\,P(x)\) asserts a construction exhibiting a witness. The law of the excluded middle Equation (3.25) then fails for infinite domains: to assert \(p\vee\neg p\) over \(\N\) is to claim a decision procedure one may not possess. Proof by contradiction survives for refutations but not for existence claims — an intuitionist rejects a proof that some \(x\) exists which merely shows that the non-existence of \(x\) is absurd.

This treatise reasons classically, uses ZFC without apology, and states the fact rather than assuming it. But the intuitionist objection has an afterlife the physicist should recognize: a constructive existence proof yields an algorithm, and a classical one need not. When a physical theory guarantees that a solution, a ground state, or an equilibrium exists, only the constructive version tells anyone how to compute it — and Section 3.9 shows that the gap between the two is not always bridgeable, even in principle. Bishop's constructive redevelopment of analysis [Bishop:1967] shows how much of the working mathematics of physics can be had on those terms, which is more than the classical mathematician expects and less than the physicist would like.

The analytical perspective

The same decades that produced the paradoxes produced a movement in philosophy that took the new logic as its instrument: analytical philosophy. Its founding conviction was that philosophical problems are to be attacked by analysing the logical structure of the language in which they are posed — and its central case study was physics. This treatise's first editorial rule, that only physics with observational evidence is in scope, is a philosophical commitment, not a mathematical one. It deserves an argument rather than an assertion, and the argument was worked out here.

The linguistic turn

Frege's Begriffsschrift [Frege:1879] introduced quantifiers, variables and a rigorous notion of proof, replacing two millennia of syllogistic; Section 3.1.4 is his legacy. His Grundlagen [Frege:1884] then asked what a number is, and answered by analysing the sentences numbers occur in rather than by introspecting about quantity. That reversal — study the statement, not the thing — is the linguistic turn.

Frege's distinction between the sense of an expression and its reference is the part a physicist uses daily. “The morning star” and “the evening star” refer to the same object, Venus, but differ in sense, which is why their identity was a discovery and not a triviality. The pattern recurs throughout this book. Inertial mass and gravitational mass have entirely different senses — one is the resistance to acceleration in Newtonian Dynamics, the other the coupling to a gravitational field — and their identity is an empirical finding, tested to parts in \(10^{15}\) and elevated to the equivalence principle (The Equivalence Principle and Classical Tests). Energy and mass, inertia and curvature, temperature and mean kinetic energy: each is an identity of reference across a difference of sense, each was an experimental result, and none is a definition.

Russell's theory of descriptions supplied the second tool. The sentence “the present King of France is bald” is not about a bald man; analysed, it asserts that exactly one thing kings France and that it is bald — a perfectly meaningful claim, and false, with no ghostly monarch required. The grammatical form of a sentence can thus misrepresent its logical form. This is precisely what happened to the aether: “the frame in which the aether is at rest” is a definite description whose presupposition fails, and special relativity did not find that frame moving oddly, it denied that the description picks anything out (Experiments: Light, the Aether, and Time). A physicist who keeps the distinction in view is protected against a whole family of pseudo-questions — “what is the wavefunction really made of”, “where was the particle before measurement” — which may or may not have answers, but which certainly do not have them merely because the grammar of the question is well formed.

Logical positivism and its collapse

Wittgenstein's Tractatus [Wittgenstein:1922] pushed the programme to its limit: propositions picture facts, the sense of a proposition is the state of affairs it depicts, and what cannot be depicted cannot be said. Its closing proposition — whereof one cannot speak, thereof one must be silent — was read by the Vienna Circle as a mandate. Their manifesto [Carnap:1929] proposed the verification principle: the meaning of a statement is the method of its verification, and a statement admitting no verification is not false but meaningless. Metaphysics was to be eliminated, not refuted.

For a while physics appeared to vindicate them, because physics had just done it. Einstein's 1905 analysis of simultaneity is the operationalist move in its purest form: instead of asking what simultaneity is, he asked what procedure establishes it, found that the procedure is frame-dependent, and derived the Lorentz transformations from that (Lorentz Transformations). Heisenberg's 1925 matrix mechanics was motivated by the resolve to build a theory from observable transition frequencies and intensities alone, discarding unobservable electron orbits (Atomic Models and Spectra). Two revolutions in twenty years, both achieved by discarding a quantity no experiment could reach.

The principle nonetheless failed, in three distinct ways, and the failures are as instructive as the successes.

  1. Self-refutation. The verification principle is not itself verifiable by any observation, so by its own criterion it is meaningless. No repair commanded agreement.

  2. Holism. Quine argued that no individual statement can be confronted with experience on its own [Quine:1951]: a prediction follows only from a theory together with auxiliary hypotheses about apparatus, background and approximation, so a failed prediction refutes the conjunction and never says which conjunct to abandon. The analytic–synthetic distinction on which the positivists relied — truths of meaning versus truths of fact — does not survive the analysis either. Every anomalous result in this book illustrates the point: the anomalous perihelion of Mercury could in principle have been an unseen planet, and deciding otherwise took decades and independent evidence.

  3. Verification is the wrong relation. A universal law has infinitely many instances and can never be verified by finitely many observations, but a single counterinstance refutes it. Popper therefore replaced verifiability by falsifiability as the criterion of scientific status [Popper:1959]. This is nothing but Equation (3.17) taken seriously, as Section 3.1.3 already noted.

Kuhn added the historical objection [Kuhn:1962]: observations are theory-laden, the auxiliary hypotheses are supplied by the reigning framework, and scientists abandon a framework not when a refutation arrives but when a better framework does.

The position this treatise takes

The programme did not survive, but its residue is the working philosophy of modern physics, and it is worth stating explicitly what this book has adopted from the wreckage.

  1. Demarcation by testability, not by verifiability. Editorial rule 1 admits a subject when observation could in principle decide against it. That is why the Standard Model is in and string theory, supersymmetry and speculative quantum gravity are named only in Quantum Gravity: The Honest Status and only to record that the evidence is absent.

  2. Operational meaning of quantities. A physical quantity is individuated by the procedure that measures it and the unit that reports it, which is why the SI is treated as axiomatic here (Measurement, SI Units, and the Theory of Errors) and why every experiment in this book carries apparatus, procedure and uncertainty.

  3. Holism, taken as a bookkeeping obligation. Since no prediction confronts data alone, the auxiliary assumptions must be visible. That is the real function of editorial rule 2: a derivation is the complete list of what a prediction depends on, and a pending derivation is an admission that the list is not yet complete.

  4. No final truth. Survival under attempted refutation is what the method certifies, never truth (Remark 1.2).

What this treatise does not do is settle the question the positivists thought they had dissolved: whether the unobservable structures of a successful theory — quantum states, gauge fields, spacetime curvature — are real, or are instruments for organizing observations. Where an interpretive dispute has observable consequences, it is an experimental question and is treated as one (Experiment: Bell Tests); where it has none, this book reports the competing readings and stops (Interpretations (Evidence-Anchored)). That restraint is itself the analytical inheritance: not every well formed question has an answer, and one of the uses of logic is to tell which.

There is a last, sharper lesson, and the following sections prove it rather than argue it. The Vienna Circle's ambition was a language for science in which every meaningful question could be settled by inspection of the world plus computation. Within four years of the manifesto, Gödel had shown that no such language exists even for arithmetic.

Formal systems and incompleteness

Hilbert's answer to the paradoxes (Section 3.6.4) was to make mathematical reasoning itself a mathematical object. Strip the meaning from a proof and what remains is a finite sequence of finite strings, each obtained from earlier ones by stated rules. Such an object can be studied with the same rigour as a triangle, and the study of it is metamathematics.

Formal systems

Definition 3.80 (Formal system).

A formal system \(T\) consists of

  1. a finite or countable alphabet of symbols;

  2. a set of formulas: those finite strings over the alphabet that a purely syntactic rule declares well formed;

  3. a set of axioms, distinguished formulas;

  4. a finite set of rules of inference, each taking finitely many formulas to a formula.

A derivation of \(\varphi\) in \(T\) is a finite sequence of formulas ending in \(\varphi\), each member of which is an axiom or follows from earlier members by a rule. We write \(T\vdash\varphi\) — “\(T\) proves \(\varphi\)” — when a derivation exists, and \(T\nvdash\varphi\) when none does.

Everything in Definition 3.80 is finite and mechanical. Whether a given string is a formula, whether a given formula is an axiom, whether a given sequence is a derivation: each is settled by inspection, without understanding what the symbols mean. This is the whole point. A formal system is a game with tokens, and its trustworthiness rests on the fact that a clerk who understands nothing can check a proof.

Definition 3.81 (Effective axiomatization).

A formal system is effectively axiomatized if there is a mechanical procedure that, given a formula, decides whether it is an axiom. Rests on Definition 3.80.

“Mechanical procedure” is made precise in Section 3.9; until then the intuitive reading suffices. The condition excludes a cheap evasion of the theorems below — taking as axioms all true statements of arithmetic gives a complete theory, but no clerk could ever recognize its axioms, and it is therefore no use to anyone.

Definition 3.82 (Consistency, completeness, soundness).

Let \(T\) be a formal system in a language with negation.

  1. \(T\) is consistent if there is no formula \(\varphi\) with both \(T\vdash\varphi\) and \(T\vdash\neg\varphi\).

  2. \(T\) is negation-complete if for every sentence \(\varphi\) of its language, \(T\vdash\varphi\) or \(T\vdash\neg\varphi\): the system decides every question expressible in it.

  3. \(T\) is sound with respect to an interpretation if every provable sentence is true under that interpretation.

  4. \(T\) is decidable if there is a mechanical procedure that, given a sentence, determines whether \(T\vdash\varphi\).

Rests on Definitions 3.7 and 3.80.

Consistency is indispensable, because an inconsistent system proves everything: from \(\varphi\) and \(\neg\varphi\) the tautology \((\varphi\wedge\neg\varphi)\rightarrow\psi\) — vacuously true since its antecedent is false by Equation (3.26) — yields any \(\psi\) whatever by modus ponens. A theory that proves everything distinguishes nothing and says nothing.

Definition 3.83 (Peano arithmetic).

Peano arithmetic, denoted PA, is the first-order theory in the language \(\set{0,S,+,\cdot}\) whose axioms are: \(S\) is injective and takes the value \(0\) nowhere; the recursion equations

\begin{equation} \tag{3.83} n+0=n\ec\quad n+S(m)=S(n+m)\ec\qquad n\cdot0=0\ec\quad n\cdot S(m)=n\cdot m+n\ec \end{equation}

which are those of Section 3.2.2 rebased at \(0\), as first-order arithmetic conventionally is; and the induction schema: for each formula \(\varphi\) of the language, the axiom

\begin{equation} \tag{3.84} \left(\varphi(0)\wedge\forall n\,(\varphi(n)\rightarrow\varphi(S n))\right) \rightarrow\forall n\,\varphi(n)\ep \end{equation}

Rests on Definition 3.80, Axiom 3.33 and Axiom 3.34.

Equation (3.84) is weaker than Axiom 3.34. The axiom of Section 3.2.2 quantifies over all predicates on \(\N\), of which there are uncountably many by Theorem 3.71; Equation (3.84) provides one axiom for each of the countably many formulas of a first-order language. That gap between second-order and first-order induction is exactly where incompleteness will enter.

Completeness — what logic does deliver

Before the negative results, the positive one, and it is easy to confuse them because both are called “completeness”.

Theorem 3.84 (Gödel's completeness theorem, 1930).

A sentence of first-order logic is derivable from a set of premises if and only if it is true in every structure satisfying those premises:

\begin{equation} \tag{3.85} T\vDash\varphi\iff T\vdash\varphi\ep \end{equation}

Equivalently, a consistent first-order theory has a model [Goedel:1930]. Rests on Definitions 3.80 and 3.82.

Derives Theorem 3.84.

This says that the proof calculus of first-order logic misses nothing: semantic consequence and syntactic derivability coincide. Note carefully what it is about — the logic, not any particular theory. It says that whatever follows from the axioms of a theory can be proved from them. It does not say the axioms settle every question, and the theorem of the next subsection says they do not.

Remark 3.85 (Two senses of ``complete'').

Theorem 3.84 concerns semantic completeness of a logic: everything true in all models is provable. Definition 3.82 defines negation completeness of a theory: every sentence or its negation is provable. Gödel proved the first in 1930 and refuted the second, for arithmetic, in 1931. Both results are his, they point in opposite directions, and mixing them up is the commonest error made about this subject.

Arithmetization

Gödel's decisive move was to make arithmetic talk about itself. Assign to every symbol a number, to every finite string of symbols the number coding its sequence of symbols, and to every finite sequence of strings — that is, every derivation — a number coding it. Any injective coding with mechanically computable encoding and decoding will do; the choice matters as little as the choice of Kuratowski pairs in Remark 3.39. Write \(\ulcorner\varphi\urcorner\) for the numeral denoting the code of the formula \(\varphi\): its Gödel number.

Syntactic properties become arithmetical properties under this coding. “\(n\) codes a well formed formula”, “\(m\) codes a derivation of the formula coded by \(n\)” — these are conditions on numbers, decidable by finite computation, and for an effectively axiomatized theory they can be expressed by formulas of the language of arithmetic and proved of the right numbers inside PA. In particular there is a formula \(\mathrm{Prov}_{T}(x)\) of one free variable, the provability predicate, such that

\begin{equation} \tag{3.86} \mathrm{Prov}_{T}(x)\ \text{expresses}\ \text{``$\exists m$ such that $m$ codes a $T$-derivation of the formula coded by $x$''}\ep \end{equation}

The construction is elementary but long; it is carried out in Arithmetization and the Incompleteness Theorems.

Lemma 3.86 (Diagonal lemma).

Let \(T\) be a theory in which the elementary syntactic functions are representable, and let \(\psi(x)\) be any formula with one free variable. Then there is a sentence \(\sigma\) with

\begin{equation} \tag{3.87} T\vdash\ \sigma\leftrightarrow\psi(\ulcorner\sigma\urcorner)\ep \end{equation}

Rests on Definitions 3.80 and 3.83.

Derives Lemma 3.86.

The sentence \(\sigma\) asserts of its own Gödel number that it has the property \(\psi\); informally, \(\sigma\) says “I am \(\psi\)”. This is the diagonal argument of Section 3.5.2 once more, now applied to formulas indexed by their own codes, and it is the only sleight of hand in the entire subject. Nothing self-referential is smuggled in: \(\sigma\) is an ordinary arithmetical sentence about numbers, which happens to be true exactly when a certain number — its own code — has a certain computable property.

The first incompleteness theorem

Theorem 3.87 (Gödel, 1931).

Let \(T\) be an effectively axiomatized, consistent theory that proves a modest amount of arithmetic — enough to represent the computable functions, which PA and ZFC amply do. Then there is a sentence \(G_{T}\) of the language of \(T\) such that

\begin{equation} \tag{3.88} T\nvdash G_{T}\qquad\text{and}\qquad T\nvdash\neg G_{T}\ep \end{equation}

\(T\) is therefore not negation-complete. Moreover \(G_{T}\) is true of the natural numbers [Goedel:1931] [Rosser:1936]. Rests on Lemma 3.86, Equation (3.86), Definition 3.81 and Definition 3.82.

Proof.

Derives Theorem 3.87. Apply Lemma 3.86 to the formula \(\psi(x)=\neg\mathrm{Prov}_{T}(x)\). This yields a sentence \(G_{T}\) with

\begin{equation} \tag{3.89} T\vdash\ G_{T}\leftrightarrow\neg\mathrm{Prov}_{T} (\ulcorner G_{T}\urcorner)\ec \end{equation}

a sentence that, read through the coding, says “I am not provable in \(T\)”.

\(T\) does not prove \(G_{T}\). Suppose \(T\vdash G_{T}\). Then some finite derivation of \(G_{T}\) exists; let \(m\) be its code. The statement “\(m\) codes a derivation of \(G_{T}\)” is a true statement about particular numbers, verified by a finite computation, and a theory representing the computable functions proves every such true statement. Hence \(T\vdash\mathrm{Prov}_{T}(\ulcorner G_{T}\urcorner)\), and by Equation (3.89), \(T\vdash\neg G_{T}\). So \(T\) proves both \(G_{T}\) and \(\neg G_{T}\), contradicting consistency. Therefore \(T\nvdash G_{T}\).

\(G_{T}\) is true. What the previous paragraph established is that no derivation of \(G_{T}\) exists. That is precisely what \(G_{T}\) asserts, so \(G_{T}\) is a true sentence about the natural numbers.

\(T\) does not prove \(\neg G_{T}\). If \(T\) is sound — if it proves only truths — this is immediate: \(\neg G_{T}\) is false, so \(T\) cannot prove it. Soundness is a stronger hypothesis than consistency, and Gödel replaced it by the syntactic condition of \(\omega\)-consistency; Rosser later removed even that, at the cost of a subtler sentence, so that bare consistency suffices [Rosser:1936]. Both refinements are carried out in Arithmetization and the Incompleteness Theorems.

Note what the theorem does not permit: patching. Adjoin \(G_{T}\) to \(T\) as a new axiom and the resulting theory \(T'=T+G_{T}\) is still effectively axiomatized, still consistent, still arithmetically adequate — so the theorem applies again and produces \(G_{T'}\), undecided by \(T'\). The gap cannot be closed by adding axioms, one at a time or infinitely many, so long as a clerk can recognize the axioms.

The second incompleteness theorem

Consistency is itself an arithmetical statement: \(T\) is consistent exactly when some particular sentence has no derivation, say

\begin{equation} \tag{3.90} \mathrm{Con}_{T}:=\neg\mathrm{Prov}_{T}(\ulcorner 0=1\urcorner)\ep \end{equation}
Theorem 3.88 (Gödel's second incompleteness theorem).

Let \(T\) be effectively axiomatized and contain, or interpret, PA. This is more than Theorem 3.87 demands — representing the computable functions does not by itself make the derivability conditions below available — and PA and ZFC both qualify. If \(T\) is consistent, then

\begin{equation} \tag{3.91} T\nvdash\mathrm{Con}_{T}\ep \end{equation}

No such theory can prove its own consistency [Goedel:1931]. Rests on Theorem 3.87, Equation (3.90) and Definition 3.83.

Derivation. Derives Theorem 3.88. The first half of the proof of Theorem 3.87 is an argument, from the consistency of \(T\), to the unprovability of \(G_{T}\) — that is, an argument for \(\mathrm{Con}_{T}\rightarrow G_{T}\). The content of the second theorem is that this argument can itself be formalized inside \(T\), giving

\begin{equation} \tag{3.92} T\vdash\ \mathrm{Con}_{T}\rightarrow G_{T}\ep \end{equation}

Granting Equation (3.92), suppose \(T\vdash\mathrm{Con}_{T}\). Modus ponens would give \(T\vdash G_{T}\), which Theorem 3.87 forbids for consistent \(T\). Hence \(T\nvdash\mathrm{Con}_{T}\).

Establishing Equation (3.92) requires that \(\mathrm{Prov}_{T}\) behave inside \(T\) the way provability behaves outside it. The sufficient conditions, isolated by Hilbert and Bernays [Hilbert:1939] and streamlined by Löb [Loeb:1955], are the three derivability conditions:

\begin{align} \tag{3.93} T\vdash\varphi & \implies T\vdash\mathrm{Prov}_{T} (\ulcorner\varphi\urcorner)\ec\\ \tag{3.94} T & \vdash\mathrm{Prov}_{T}(\ulcorner\varphi\rightarrow\chi\urcorner) \rightarrow\left(\mathrm{Prov}_{T}(\ulcorner\varphi\urcorner)\rightarrow \mathrm{Prov}_{T}(\ulcorner\chi\urcorner)\right)\ec\\ \tag{3.95} T & \vdash\mathrm{Prov}_{T}(\ulcorner\varphi\urcorner)\rightarrow \mathrm{Prov}_{T}(\ulcorner\mathrm{Prov}_{T} (\ulcorner\varphi\urcorner)\urcorner)\ep \end{align}

Verifying them for a specific coding is laborious rather than deep. The verification and the derivation of Equation (3.92) from them are given in Arithmetization and the Incompleteness Theorems.

Remark 3.89 (Löb's theorem).

The derivability conditions have a striking consequence: if \(T\vdash\mathrm{Prov}_{T}(\ulcorner\varphi\urcorner)\rightarrow\varphi\), then \(T\vdash\varphi\) [Loeb:1955]. A theory can affirm “if this is provable then it is true” only of things it already proves. Taking \(\varphi\) to be \(0=1\) recovers Theorem 3.88. Whatever confidence we have that provable arithmetic statements are true, arithmetic cannot supply it from within.

What the theorems do not say

Few results have been abused more, so the boundaries deserve stating as plainly as the theorems.

  1. They do not exhibit an unknowable truth. We know \(G_{T}\) is true — Theorem 3.87 proves it, in a metatheory. The sentence is unprovable in \(T\), and provable in any reasonable stronger system; PA's Gödel sentence is a theorem of ZFC. Incompleteness is always relative to a fixed system.

  2. They do not apply to every formal system. A theory must be effectively axiomatized, consistent, and strong enough to represent computation. Drop the last and complete decidable theories abound: the theory of dense linear orders, Presburger arithmetic — the naturals with addition but not multiplication [Presburger:1930] — and, most strikingly, Tarski's result that the first-order theory of the real closed fields, and with it all of elementary algebra and Euclidean geometry, is complete and decidable [Tarski:1951]. Multiplication together with addition on the integers is what tips a theory over the edge.

  3. They do not show mathematics is inconsistent, or unreliable. They show a specific ambition — self-certification — is unattainable. See Section 3.10.

  4. They do not settle whether minds exceed machines. Arguments that a human “sees” the truth of \(G_{T}\) while a machine cannot assume that the human's own reasoning is a consistent formal system and that we know which one; neither premise is available. The question is open and these theorems do not close it.

  5. They do not by themselves make physics incomplete. A physical theory is not a formal system in the required sense, and its content is fixed by measurement rather than derivation. Genuine undecidability results in physics exist, and they come from computability (Section 3.9), not from Gödel numbering.

Remark 3.90 (Independent statements that are not contrived).

The sentence \(G_{T}\) is built for the purpose and of no independent interest, which for forty years left the impression that incompleteness was a curiosity confined to self-reference. Paris and Harrington closed that escape [Paris:1977]: a natural finitary strengthening of Ramsey's combinatorial theorem, whose statement mentions nothing about provability, is true and unprovable in PA. Goodstein's theorem [Goodstein:1944], about certain rapidly growing integer sequences that nevertheless terminate, is another: Kirby and Paris showed it too escapes PA [Kirby:1982]. Ordinary mathematics does reach past the boundary.

Theorem 3.91 (Tarski's undefinability of truth).

Let \(T\) be a consistent theory as above. There is no formula \(\mathrm{True}(x)\) of the language of arithmetic such that \(\varphi\leftrightarrow\mathrm{True}(\ulcorner\varphi\urcorner)\) holds for every sentence \(\varphi\) [Tarski:1935]. Rests on Lemma 3.86 and Definition 3.82.

Proof.

Derives Theorem 3.91. Suppose such a formula existed. Apply Lemma 3.86 to \(\neg\mathrm{True}(x)\) to obtain a sentence \(\lambda\) with \(\lambda\leftrightarrow\neg\mathrm{True}(\ulcorner\lambda\urcorner)\). Combining with the assumed property of \(\mathrm{True}\) at \(\varphi=\lambda\) gives \(\lambda\leftrightarrow\neg\lambda\), a contradiction.

The sentence \(\lambda\) says “I am false”: it is the liar paradox, made into a theorem instead of a contradiction by locating the fault correctly. Truth for a language is definable, but only in a richer metalanguage — exactly the stratification anticipated in Remark 3.18. Provability, by contrast, is expressible in the object language, which is why Equation (3.86) exists. That asymmetry between truth and provability is the substance of incompleteness.

Computability and decidability

Two of Hilbert's demands survived Theorem 3.87: even if a theory cannot prove every truth, one might still hope for a mechanical procedure that decides, of any given sentence, whether it is provable. Hilbert and Ackermann posed this as das Entscheidungsproblem — the decision problem — and called it the principal problem of mathematical logic [Hilbert:1928]. Answering it required saying what a mechanical procedure is, a question nobody had needed to make precise. Three answers arrived within a year of one another, and they turned out to define the same class.

Turing machines

Turing's analysis began not with mathematics but with a description of a human computer at work: a person with a pencil, an unlimited supply of ruled paper, a finite number of states of mind, and a finite book of rules, attending to one square at a time [Turing:1937]. Idealizing this gives the following.

Definition 3.92 (Turing machine).

A Turing machine is a tuple \(M=(Q,\Gamma,\sqcup,\Sigma,\delta,q_{0})\) where

  1. \(Q\) is a finite set of states;

  2. \(\Gamma\) is a finite tape alphabet containing a distinguished blank symbol \(\sqcup\);

  3. \(\Sigma\subset\Gamma\setminus\set{\sqcup}\) is the input alphabet;

  4. \(q_{0}\in Q\) is the initial state;

  5. the transition function \(\delta\) is a partial map

    \begin{equation} \tag{3.96} \delta:Q\times\Gamma\longrightarrow Q\times\Gamma\times\set{L,R}\ep \end{equation}

The machine acts on a tape of cells unbounded in both directions, each holding one symbol of \(\Gamma\), all but finitely many blank, with a head positioned over one cell. A configuration is the triple consisting of the tape contents, the head position and the current state. One step reads the scanned symbol \(a\) in state \(q\), and if \(\delta(q,a)=(q',a',D)\) is defined, writes \(a'\) in place of \(a\), moves the head one cell in the direction \(D\) and enters state \(q'\). If \(\delta(q,a)\) is undefined the machine halts. The machine computes the partial function sending an input string, written on an otherwise blank tape with the head at its first symbol, to the tape contents at halting; where it never halts, the function is undefined.

[figure: turing-machine.pdf]

A Turing machine (Definition 3.92). The tape is unbounded and holds finitely many non-blank symbols; the head reads and writes one cell at a time; the finite control is in one of finitely many states and consults a fixed finite table \(\delta\). Everything unbounded is on the tape, and everything the machine is — the state set and the table — is finite. That separation is what makes the machine codeable as a number and hence a possible input to another machine.

Nothing about this device is electronic, and nothing about it is fast. Its significance is that it is manifestly mechanical and just as manifestly unrestricted in the memory it may use — and that the machine itself, being finite, can be written down as a finite string and so coded by a number \(\ulcorner M\urcorner\), exactly as formulas were coded in Section 3.8.3.

Definition 3.93 (Computable function, decidable set).

A partial function on strings is computable if some Turing machine computes it. A set is decidable if its indicator function is computable — some machine halts on every input and reports correctly whether the input belongs to the set. A set is semi-decidable if some machine halts exactly on its members. Rests on Definition 3.92.

Definition 3.81 can now be read literally: a theory is effectively axiomatized when its set of axioms is decidable. And a theory that is effectively axiomatized has a semi-decidable set of theorems — enumerate all finite derivations in order and watch for one ending in the target sentence — which is why \(\mathrm{Prov}_{T}\) of Equation (3.86) exists.

Axiom 3.94 (Church–Turing thesis).

Every function computable by any mechanical procedure whatsoever is computable by a Turing machine.

This is not a theorem and cannot be one, since “mechanical procedure” on the left is informal. It is an empirical and conceptual claim, and its support is the convergence of independent attempts: Church's \(\lambda\)-definable functions [Church:1936a], Kleene's general recursive functions [Kleene:1936], Post's combinatory processes [Post:1936] and Turing's machines all define the same class, and every model of computation proposed since — register machines, cellular automata, the physical computers on our desks, quantum computers — has been proved no more powerful in what it can compute at all, whatever the differences in efficiency.

Theorem 3.95 (Universal machine).

There exists a Turing machine \(U\) which, on input the pair \((\ulcorner M\urcorner,w)\), simulates \(M\) on \(w\): it halts precisely when \(M\) halts on \(w\), with the same output. Rests on Definitions 3.92 and 3.93.

Derives Theorem 3.95.

The universal machine is why a computer is a general-purpose device rather than a special-purpose one, and it is the technological content of [Turing:1937]. For the present chapter its importance is that programs are data: a machine can be fed to a machine, including to itself.

The halting problem

Theorem 3.96 (Turing).

There is no Turing machine which, given \((\ulcorner M\urcorner,w)\), always halts and correctly reports whether \(M\) halts on input \(w\). The halting problem is undecidable [Turing:1937]. Rests on Definitions 3.92 and 3.93.

Proof.

Derives Theorem 3.96. Suppose such a machine \(H\) existed, halting on every input and returning yes when \(M\) halts on \(w\) and no otherwise.

Construct from it a machine \(D\) which, on input a single machine code \(\ulcorner M\urcorner\), runs \(H\) on the pair \((\ulcorner M\urcorner,\ulcorner M\urcorner)\) — asking whether \(M\) halts when fed its own code — and then does the opposite of the answer:

\begin{equation} \tag{3.97} D(\ulcorner M\urcorner)=\begin{cases} \text{loop forever} & \text{if $H$ answers yes}\ec\\ \text{halt} & \text{if $H$ answers no}\ep \end{cases} \end{equation}

\(D\) is an ordinary machine, built from \(H\) by adding a copying step and a deliberate infinite loop, so it has a code \(\ulcorner D\urcorner\).

Run \(D\) on \(\ulcorner D\urcorner\). If \(D\) halts on \(\ulcorner D\urcorner\), then \(H\) answered yes, and Equation (3.97) made \(D\) loop forever — so it does not halt. If \(D\) does not halt on \(\ulcorner D\urcorner\), then \(H\) answered no, and Equation (3.97) made \(D\) halt. Either branch contradicts itself: \(D\) halts on its own code if and only if it does not. Since \(D\) was built from \(H\) by unimpeachable steps, the fault lies with the assumption that \(H\) exists.

That is the diagonal argument for the fourth time, and the family resemblance is now unmistakable: replace “does not contain itself” by “does not halt on its own code” and Russell becomes Turing; replace it by “is not provable” and Russell becomes Gödel.

Theorem 3.97 (Rice).

Let \(\mathcal{P}\) be any set of partial computable functions that is neither empty nor all of them. Then the set of machine codes \(\set{\ulcorner M\urcorner\mid M \text{ computes a function in } \mathcal{P}}\) is undecidable. Rests on Theorem 3.96, Theorem 3.95 and Definition 3.93.

Proof.

Derives Theorem 3.97. Write \(\varnothing\) for the nowhere-defined function, computed by a machine that immediately loops. Replacing \(\mathcal{P}\) by its complement if necessary — which changes decidability not at all — assume \(\varnothing\notin\mathcal{P}\), and pick \(g\in\mathcal{P}\), computed by some machine \(G\).

Given an arbitrary pair \((\ulcorner M\urcorner,w)\), build the machine \(N\) which, on any input \(x\), first simulates \(M\) on \(w\) using Theorem 3.95, and only if that simulation halts goes on to simulate \(G\) on \(x\) and return its output. If \(M\) halts on \(w\), then \(N\) computes \(g\in\mathcal{P}\); if \(M\) does not halt on \(w\), then \(N\) halts on no input and computes \(\varnothing\notin\mathcal{P}\). The code \(\ulcorner N\urcorner\) is obtained from \((\ulcorner M\urcorner,w)\) by a computable transformation.

A decision procedure for \(\mathcal{P}\) would therefore decide, of any \((\ulcorner M\urcorner,w)\), whether \(M\) halts on \(w\), contradicting Theorem 3.96.

Rice's theorem is the sweeping form of the bad news: no non-trivial question about what a program computes — as opposed to how it is written — is answerable by a general algorithm. Not “does it ever output zero”, not “does it compute the same function as this other program”, not “does it terminate on all inputs”.

The Entscheidungsproblem answered

Theorem 3.98 (Church–Turing).

The set of valid sentences of first-order logic is undecidable: no mechanical procedure determines, of an arbitrary first-order sentence, whether it is provable [Church:1936b] [Turing:1937]. Rests on Theorem 3.96, Definition 3.93 and Definition 3.80.

Derives Theorem 3.98.

The proof encodes the behaviour of a Turing machine into a first-order sentence which is valid if and only if the machine halts, reducing Theorem 3.96 to the decision problem. Hilbert's principal problem of mathematical logic thus has a negative answer, and the two negative answers fit together: by Theorem 3.84 the valid sentences are exactly the provable ones, so they are semi-decidable — search all derivations — but by Theorem 3.98 not decidable. A search that will succeed if there is anything to find, but that gives no sign of when to stop, is the best any general procedure can do.

The corresponding statement for arithmetic is sharper still: the set of true sentences of arithmetic is not even semi-decidable, which is Theorem 3.91 in computational dress.

Where decision procedures do exist

The negative results are about general procedures over all sentences of a sufficiently rich language. Restrict the language and algorithms reappear, sometimes spectacularly.

  1. Propositional logic is decidable: build the truth table, as in Proposition 3.22. The cost is \(2^{n}\) rows for \(n\) propositions, and whether an essentially faster method exists is the P versus NP problem, still open.

  2. Presburger arithmetic — the naturals with addition and order but without multiplication — is consistent, complete and decidable [Presburger:1930]. Multiplication is what makes arithmetic able to encode syntax, and hence what makes it incomplete.

  3. Real closed fields. Tarski proved that the first-order theory of \((\R,+,\cdot,<)\) admits elimination of quantifiers and is therefore complete and decidable [Tarski:1951]. Every statement of elementary algebra and of Euclidean and analytic geometry expressible with real variables, polynomials, equalities, inequalities and quantifiers can be settled by algorithm. This is the technical foundation of computer algebra and of automated geometry; it also means that the real-number algebra a physicist actually manipulates sits on the decidable side of the line. The decision procedure is doubly exponential and rarely practical, but it exists.

The boundary between these islands and the undecidable ocean is sharp and somewhat surprising: the reals with addition and multiplication are decidable, the integers with addition are decidable, but the integers with addition and multiplication are not.

Undecidability inside physics

Physical questions can be phrased so as to encode computations, and when they are, they inherit undecidability. Three results, in increasing order of physical relevance.

  1. Hilbert's tenth problem. There is no algorithm deciding whether an arbitrary polynomial equation in several variables with integer coefficients has an integer solution. Davis, Putnam and Robinson reduced the question to the arithmetic definability of exponential growth, and Matiyasevich completed the proof in 1970 by showing the Fibonacci sequence is Diophantine [Matiyasevich:1970] [Davis:1973]. Diophantine constraints are not exotic in physics — they govern commensurability of orbital periods, lattice matching conditions and anomaly-cancellation conditions on integer charges.

  2. Tilings and ground states. Whether a finite set of tile shapes tiles the plane is undecidable [Berger:1966], and a tiling problem can be rewritten as the problem of finding the ground-state configuration of a classical lattice model with finite-range interactions. The ground-state energy density of a general such model is therefore not computable by any algorithm uniform in the model.

  3. The spectral gap. Cubitt, Pérez-García and Wolf constructed a family of translationally invariant, nearest-neighbour Hamiltonians on a two-dimensional lattice of spins, depending on a parameter, such that determining whether the model is gapped or gapless in the thermodynamic limit is undecidable [Cubitt:2015]. The construction embeds a universal Turing machine in the low-energy physics: the model is gapped exactly when the encoded machine fails to halt.

Remark 3.99 (How to read these results honestly).

They do not say that Nature computes something uncomputable, and they do not say any particular laboratory question is unanswerable. Every one of them concerns an infinite family of idealized models and asks for a single algorithm covering the whole family. A specific finite system has a finite-dimensional Hamiltonian whose gap is computable to any desired accuracy by diagonalization; what fails is the existence of a general criterion — a finite set of rules, a closed-form classification — valid for all models at once. The thermodynamic limit, not quantum mechanics, is where the undecidability enters, since it is the limit that supplies the unbounded tape.

The practical content is a warning about ambitions rather than about measurements. Programmes seeking a complete classification of quantum phases, or a general algorithm to determine whether a lattice model is gapped — the Yang–Mills mass gap being the celebrated instance (What We Observe but Do Not Understand) — are seeking something that provably does not exist in full generality. Progress must come by restricting the class of models, exactly as Section 3.9.4 restricts the language. That is a genuine, and genuinely useful, piece of physical knowledge.

Can mathematics be built without contradictions?

The question that opened the crisis can now be asked precisely, and answered precisely — though not in the form anyone wanted.

What Hilbert asked for

Hilbert's programme had a definite shape [Hilbert:1926]. Mathematics was to be split into a finitary part, concerning concrete finite configurations of symbols, whose meaning and reliability nobody doubts, and an ideal part — infinite sets, arbitrary real numbers, the whole Cantorian apparatus — introduced because it makes the theory smooth, in the way that points at infinity make projective geometry smooth. The programme demanded a proof, carried out by finitary means alone, that the ideal part never yields a false finitary statement. Consistency was the crux: an inconsistent system proves everything, so a consistency proof would license the entire ideal apparatus at one stroke, and the mathematician could then use infinite sets with a clear conscience while regarding them as convenient fictions.

Hilbert put the case in an address broadcast from Königsberg on 8 September 1930, ending with the words carved on his gravestone: we must know, we shall know [Hilbert:1930]. The previous day, at a conference in the same city, Gödel had mentioned to a roundtable that he could construct true but unprovable arithmetical statements. Almost nobody present grasped what they had heard.

  1. Theorem 3.87 killed the hope that a single effectively axiomatized system could settle every arithmetical question.

  2. Theorem 3.88 killed the programme proper: since finitary reasoning is certainly formalizable within PA, and PA cannot prove its own consistency, no finitary proof of the consistency of PA — let alone of analysis or set theory — can exist.

  3. Theorem 3.98 killed the remaining hope of a mechanical decision procedure.

What survived: relative consistency

What did not die is the mathematical study of consistency, which became one of the most productive branches of logic. The trick is to stop demanding absolute certification and to measure systems against each other instead.

Gentzen proved in 1936 that Peano arithmetic is consistent [Gentzen:1936]. There is no contradiction with Theorem 3.88, because his proof is not carried out inside PA: it uses finitary reasoning plus one transfinite ingredient, induction along the ordinal

\begin{equation} \tag{3.98} \varepsilon_{0}=\sup\set{\omega,\ \omega^{\omega},\ \omega^{\omega^{\omega}},\ \ldots}\ec \end{equation}

the first ordinal not reachable from \(\omega\) by finitely many exponentiations. Every proper initial segment of \(\varepsilon_{0}\) admits an induction principle provable in PA; \(\varepsilon_{0}\) itself does not, and that single step beyond is exactly what a consistency proof costs. The number \(\varepsilon_{0}\) is thereby a measurement of the strength of PA, and assigning such proof-theoretic ordinals to theories is now a discipline in its own right.

The same relativization organizes set theory. None of the following results asserts consistency outright; each transfers it:

\begin{align} \tag{3.99} \mathrm{Con}(\text{ZF}) & \implies\mathrm{Con}(\text{ZFC})\ec\\ \tag{3.100} \mathrm{Con}(\text{ZF}) & \implies\mathrm{Con}(\text{ZFC}+\text{CH})\ec\\ \tag{3.101} \mathrm{Con}(\text{ZF}) & \implies \mathrm{Con}(\text{ZFC}+\neg\text{CH})\ec\\ \tag{3.102} \mathrm{Con}(\text{ZFC}) & \implies\mathrm{Con}(\text{PA})\ep \end{align}

The first two are Gödel's, by the constructible universe [Goedel:1938]; the third is Cohen's, by forcing [Cohen:1963]. Equation (3.102) runs one way only: ZFC proves the consistency of PA — it constructs a model, namely \(\N\) — and by Theorem 3.88 PA cannot return the favour, nor can ZFC certify itself. Stronger axioms of infinity extend the ladder upward indefinitely, each rung provably consistent relative to the ones above and never to itself.

The honest answer

Can mathematics be constructed without contradictions? The precise answers are these.

  1. Almost certainly yes — but this cannot be proved from within, and never will be. Any proof of the consistency of a system strong enough for ordinary mathematics must use assumptions strictly stronger than the system it certifies, whose own consistency is then open. The regress does not terminate. Absolute self-certification is not merely undone; it is impossible.

  2. Consistency is not an unknowable, though. It is a mathematical statement with a definite truth value, provable in stronger systems, refutable in principle by a single explicit derivation of \(0=1\), and studied quantitatively by ordinal analysis. What is unavailable is a proof using nothing but means we are already certain of.

Remark 3.100 (Consistency has the epistemic status of a physical law).

The parallel is exact, and it is the reason this section belongs in a physics treatise. The statement “ZFC is consistent” is falsifiable: a derivation of a contradiction would refute it decisively, and could be checked by any competent clerk. It is unverifiable: no finite body of successful practice establishes it, just as no finite run of confirming experiments establishes a universal law (Section 3.7.2). And it is well corroborated: a century of intensive, adversarial use by thousands of mathematicians, an enormous body of consequences, and a family of natural inner models have all failed to produce a contradiction, exactly as two centuries of mechanics failed to refute Newton.

We are therefore in the same position with respect to the foundations of mathematics as with respect to the foundations of physics: holding a well-tested conjecture, aware that it is a conjecture, and getting on with the work (Remark 1.2). That is not a comfortable position, but it is an honest one, and it is the only one available.

How much of this reaches physics

Very little, and the reason is worth stating precisely rather than comfortingly.

The heavy axioms of ZFC — power set applied without limit, replacement, full choice — are what generate the exotic cardinals and the independence phenomena. Physics uses almost none of that. The programme of reverse mathematics determines, for each classical theorem, exactly which axioms are needed to prove it [Simpson:2009], and the answer for the mathematics of physics is consistently: far less than ZFC. The convergence of sequences, the intermediate value theorem, the existence and uniqueness of solutions to ordinary differential equations (Ordinary Differential Equations and Sturm–Liouville Theory), the Riemann and Lebesgue integrals, the spectral theorem for separable Hilbert spaces (Hilbert Spaces) — these live in weak subsystems of second-order arithmetic whose consistency strength is at or below that of PA itself. Physics never leaves the lower reaches of the hierarchy, and its mathematics is certified by Gentzen's theorem, not left waiting on the consistency of ZFC.

Suppose, nonetheless, that a contradiction in ZFC were found tomorrow. What would happen to physics? Essentially nothing. Every measured value in this book would still be what the apparatus reported, since a measurement is a physical event and not a theorem. The derivations would be re-examined and, in overwhelming likelihood, re-derived in a repaired system, because they never used the offending strength in the first place — exactly as the discovery that unrestricted comprehension is inconsistent (Theorem 3.75) invalidated not one line of Newtonian mechanics or one entry in a laboratory notebook. Foundations are the plumbing of mathematics; when plumbing fails it is replaced, and the building stands.

Remark 3.101 (The position of this treatise).

This book reasons classically, works in ZFC, assumes its consistency, and now has said so explicitly rather than silently. Every derivation it contains is a proof in the sense of Definition 3.80 — informal in presentation, formalizable in principle — and the editorial rule that no phenomenon may be stated without its derivation is therefore a commitment whose meaning and whose limits are both fixed by this chapter. The limits are real: there are arithmetical truths no derivation in a fixed system will reach (Theorem 3.87), questions no algorithm will settle (Theorem 3.96), and physical model classes whose gross qualitative behaviour admits no general criterion (Remark 3.99).

None of that licenses vagueness, and it is worth being clear why. What the theorems remove is the dream of a complete, self-certifying, mechanically decidable body of knowledge. What they leave entirely intact is the obligation to prove what one asserts, to state what one assumes, and to report what one measured. The rest of this treatise does exactly that.