Suppose you look after the platform at a company of five people, and you want, more than anything, never to be surprised by your own system. On Tuesday the finance director asks you to confirm something everyone takes for granted: that everybody earns less than their boss. The personnel table, Figure 6.1, is short enough to print.
| Employee | Boss | Engineer? | Manager? | Salary |
|---|---|---|---|---|
| Thorne | Thorne | no | yes | 200 |
| Finch | Thorne | no | yes | 120 |
| Pratt | Thorne | no | no | 95 |
| Bell | Finch | yes | no | 90 |
| Cole | Finch | yes | no | 85 |
You don’t check the claim row by row. Like anyone who has written SQL, you ask the database for the rows that break it:
SELECT e.name, b.name AS boss
FROM staff e JOIN staff b ON e.boss = b.name
WHERE NOT (b.salary > e.salary);
One row comes back: Thorne | Thorne. The chief executive is her own boss, and she doesn’t earn more than herself. You add AND e.name <> to the query, it returns nothing, and you reply that the claim holds.
'Thorne'
The finance director answers with one line: “Can that ever stop being true?” This is a different question. The table changes continually as people are hired, promoted, or given rises. He does not want to know whether the claim is true now, but whether it is true of every table the personnel system can produce given the HR policy.
The story contains two ideas, and we should keep them apart from the start. One is that of a sentence being true here, of this table on this Tuesday. The other is that of a sentence being true everywhere the constraints allow, of every table that obeys them. The first is a matter of looking, and the query engine settles it in a fraction of a second. The second is a claim about infinitely many tables, most of which nobody will see, and no amount of looking settles it.
This chapter is about the two ideas and the connection between them. It asks three questions:
What does it mean for a sentence to be true of a system?
What does it mean for a sentence to follow from the requirements on a system, so that it is true of every system that meets them?
Is there a finite way to show that it does?
Definitions answer the first two questions. A theorem answers the third, though the first rules of proof we try turn out to fall short. Section 6.1 fixes the language in which sentences about a system are written. Section 6.2 makes a system into a mathematical object, a structure, and Section 6.3 defines when a sentence is true in one. Section 6.4 defines what it is for a sentence to follow from others: to be true in every structure in which they are true. Section 6.5 tries the proofs we already have, those of Gentzen’s natural deduction system , and shows that they never lead from true premisses to a false conclusion. Section 6.6 finds that they miss some sentences that follow, all for want of a single law, and adds it: the law of the excluded middle, which gives the system . Section 6.7 proves complete: a sentence follows from others exactly when it has a derivation from them in . Section 6.8 counts what the extra law costs.
6.1 Syntax
The finance director’s claim is about one company, but the rules of the personnel system are not: they are meant to hold of every table the system can produce, of five people or five hundred, and each such table must be able to read them. So the claim cannot be written in terms of Thorne and Finch. It needs a vocabulary that any table of the right shape can interpret in its own way: a name for the chief executive, whoever she is, a symbol for the boss of, symbols for is an engineer and earns more than. Such a vocabulary is a signature, and it is the one new thing in this section. Given a signature, we name things (terms), we say things about the things named (atomic formulas), and we combine what we have said (formulas). That is the whole language, and its definitions follow one straight after another.
Definition 6.1 (signature). A signature is the vocabulary that sentences about one kind of system may use: names for particular things, symbols for functions and symbols for relations, each with its number of places.
Formally, a signature is a quadruple in which
, and are pairwise disjoint sets, whose elements are called constant symbols, function symbols and relation symbols respectively;
is a function, the arity, with for every .
A relation symbol of arity is a propositional letter. The signature is countable if the set is countable.
The arity says how many inputs each function or relation symbol takes. Given only the symbol , nobody could tell whether it names a function of one variable, of two, or of a million.
To speak of a thing without naming it (anyone, something), the language has, besides the symbols of the signature, a countably infinite set of variables, , , , , and so on, disjoint from the symbols of every signature.
Definition 6.2 (terms). The -terms are given by the grammar
where is a variable, a constant symbol of , and a function symbol of with . We write for the set of -terms.
A term names something. A relation symbol applied to terms says something about the things named. That is the smallest statement the language can make, an atomic formula; says something false outright. Atomic formulas are combined into complex ones by the logical symbols. We use Greek letters , and for formulas, and Latin letters and for propositional letters.
Definition 6.3 (formulas). The -formulas are given by the grammar
where is a relation symbol of with , the are -terms, and is a variable. We write for the set of -formulas.
The formulas and are atomic. For a propositional letter the atomic formula is written . Three more symbols are abbreviations:
is ;
is ;
when contains , the formula is .
Familiar two-place symbols are written between their arguments, as usual: is the atomic formula , and is . Brackets are kept down by the usual conventions:
The outermost pair is dropped.
and take precedence over , which groups to the right.
and the quantifiers and take precedence over everything else.
A symbol that takes precedence applies first, to as little of the formula as it can, just as applies before in .
That is the language. The next two examples give the two signatures that the rest of this chapter uses most.
Example 6.4 (the company). Harriet Ashworth looks after the platform at the company of the opening, and the personnel table of Figure 6.1 is hers. Its vocabulary is the company signature
with and . The formula is read “ earns more than ”. The symbol is a two-place relation symbol like the others, written between its arguments as usual.
The terms , and name the chief executive, her boss, and her boss’s boss, whoever those turn out to be; names the boss of whoever is. The string is not a term, since , and neither is , which says something rather than naming something: it is an atomic formula, “the chief executive is an engineer”, and so is , “the boss of earns more than ”. Figure 6.2 gives four sentences in the company signature, each with its English.
| Formula | English |
|---|---|
| everyone earns less than their boss | |
| everyone except the chief executive earns less than their boss | |
| every engineer reports to a manager | |
| some manager has a boss other than themselves |
The first is the finance director’s claim and the second is the claim with Thorne’s row allowed for. Nothing in them mentions Thorne: they are written in the signature, and any company that can read the signature can read them.
Example 6.5 (the counting numbers). The counting numbers are spoken of in the signature of arithmetic
with and ; the symbol is read “the successor of”, the number after. The terms , , , … are the numerals, one name for each number, and names the number after whatever is. The formula says that is less than its successor, the sentence that every number has a bigger one, and that nothing is less than zero.
Remark 6.6 (reading the conventions). With propositional letters , and :
is , not ;
is ;
is .
A quantifier, too, covers as little as it can: in the company signature, is , in which the quantifier covers only . A quantifier meant to cover more is followed by brackets, as in , “every engineer reports to a manager”.
Remark 6.7 (“every” goes with , “some” with ). Using the language is mostly translation, in both directions, and one choice causes most mistakes: which connective joins a quantifier to the condition that restricts it. “Every …” restricts a universal quantifier, and the restriction goes in with : for every , if is a , then …. “Some …” restricts an existential quantifier, and the restriction goes in with : some is a and …. The third and fourth sentences of Figure 6.2 follow the rule. Written with , the third becomes , which says that everyone is an engineer, false of any firm that employs somebody else. Written with , the fourth becomes , which anyone who is not a manager makes true. The rule of thumb is reliable but not infallible.
Two more notions concern the variables. A formula with variables does not yet say anything definite. The formula is true or false according to who is, whereas the sentence makes one claim about the whole domain: everyone earns less than their boss. The first notion separates the variables whose values must be supplied from those that a quantifier has already taken charge of.
The second notion turns a claim about anybody into a claim about somebody in particular. From “everyone earns less than their boss” anyone concludes that the chief executive earns less than hers, and the rule (E) of makes the same move on the page: it puts a term in place of the variable, so that becomes . This is substitution, an operation on strings, and it has a danger: the term put in may have variables of its own, and a quantifier in the formula can capture them, so that the result says something quite different. A last definition says when that cannot happen.
Definition 6.8 (free variables). The free variables of a term or formula are those whose values must be supplied before it names or says anything.
Formally, the set of variables of a term is defined by recursion on the shape of :
The set of free variables of a formula is defined by recursion on the shape of , with any of , and , and either quantifier:
An occurrence of in is bound if it lies inside a part of of the form or , and free otherwise; the quantifier binds the occurrences of in .
Definition 6.9 (closed term; sentence). A term is closed if , and a formula is a sentence if .
Definition 6.10 (substitution). Substitution puts a term in place of the free occurrences of a variable.
Formally, let be a term and a variable. For a term , the term is defined by recursion on the shape of :
For a formula , the formula is defined by recursion on the shape of , with any of , and , and either quantifier:
Definition 6.11 (substitutable). A term is substitutable for a variable when putting it in place of the variable lets no quantifier capture a variable of the term.
Formally, the term is substitutable for in if no free occurrence of in lies inside a part of of the form or with .
We write only when is substitutable for in . A closed term always is, having no variables to capture.
Example 6.12 (the company, cont’d: variables). In the company signature, and are closed terms, and is not. Of the two formulas
the first is not a sentence, since is free in it, and the second is, since the last line of the definition of removes . In the formula the first occurrence of is free and the other two are bound, so the formula is not a sentence.
If is , then
the claim made of is now made of the chief executive’s boss. In , putting in for gives , by the fourth line of the definition: only the free occurrence is replaced.
Capture is the one way in which substitution can go wrong. Let be , “someone earns more than ”, and let be . The recursion gives , which says that someone earns more than their own boss, a different claim altogether: the of the term has been captured by the quantifier. The term is not substitutable, since the free occurrence of lies inside and .
The sentences of Figure 6.2 look as if they speak about a particular firm, and we have read them so. But nothing in this section says how a string of symbols speaks about anything, and so nothing here decides whether is true. Nothing could, since the string mentions no company: it is written in a signature, and every company that can read the signature reads it in its own way. To say when a sentence is true, we must first say what it is true of.
6.2 Structures
What a sentence is true of has two parts: what the symbols of the signature are taken to mean, and among what things. Engineers use the word system for almost anything with parts, and we begin from what the word covers rather than from a definition. Figure 6.3 lists five systems.
| System | Things | Relations | Functions |
|---|---|---|---|
| The company | five people | is an engineer; is a manager; earns more than | the boss of |
| Counting numbers | is less than | successor, , | |
| Server network | four machines | is linked to | none |
| A program | its states | is an error state | the next state |
| Truth values | true and false | none | and, or, not |
The five have nothing in common as subject matter, yet each comes in the same three pieces:
a collection of things;
some relations among the things, each true of some tuples of things and false of others;
some functions, each taking things and returning a thing.
Some systems also have a few things with names of their own: a company has the chief executive, the numbers have the starting number , and a program has the initial state. The relations, the functions and the named things are exactly what a signature has symbols for, and a structure is a system seen through a signature: it says which things there are and what each symbol means among them.
Definition 6.13 (structure). A structure for a signature says which things there are and what each symbol of the signature means.
Formally, let be a signature. A -structure is a pair in which
is a non-empty set, the domain of ;
is a function with domain , the interpretation, such that
for every ;
is a function from to for every with ;
for every with .
Here is the set of -tuples of elements of ; in particular , whose one element is the empty tuple. We write , and for , and .
A relation with places is a table with columns and one row for each tuple of which it holds, so a structure is a database: one table for each relation symbol, one lookup table for each function symbol, and a few named rows.1
Example 6.14 (the company, cont’d: Tuesday’s table as a structure). Tuesday’s table is the -structure given by
where is the salary column of Figure 6.1.
The structure interprets as identity, the relation of each person to herself. Nothing in the definition of a structure demands that, since may be interpreted as any set of pairs, but every structure for the company signature that we describe interprets it as identity.
The salaries are all different, so exactly half of the twenty ordered pairs of different people are in : ten pairs, from (Thorne, Finch) down to (Bell, Cole). The function is not part of the structure. The signature has no symbol for a salary, so the structure keeps only what the symbols can ask about: who earns more than whom.
Figure 6.4 draws the structure, with an arrow from each person to their boss; M marks a manager and E an engineer. Thorne’s loop is the row that Harriet’s first query returned.
A structure with a finite domain can be listed, table by table, as a personnel table can. A structure with an infinite domain can be described but not printed, and how to describe one exactly is a delicate matter.2 The counting numbers of Figure 6.3 have an infinite domain.
Example 6.15 (the counting numbers, cont’d: the structure). The counting numbers are the -structure , traditionally called the standard model of arithmetic, where and
is the number zero,
,
and are addition and multiplication,
.
Example 6.16 (the other three systems). The other three systems of Figure 6.3 are structures in the same way.
The server network has a domain of four machines and one two-place relation.
The program has a domain of states, a constant for the initial state, a one-place relation for the error states and a one-place function for the next state.
The truth values form a domain of two elements with three functions and no relations.
Remark 6.17 (non-empty domains). Almost every textbook requires the domain to be non-empty, and so do we. The requirement looks fussy, but it decides the truth of sentences such as “if everything is a manager, then something is a manager”. In an empty structure everything is a manager, since there is nothing that is not, and yet nothing is a manager, so the sentence would be false. The requirement rules the empty structure out.
Remark 6.18 (total functions). The functions of a structure are total: a function symbol is interpreted as a function that gives an element of the domain for every input from the domain. That is what makes every term name something: the boss of anybody’s boss is always somebody. A real system need not be so obliging, and where a value may be missing, a relation such as reports to can stand in for the function the boss of.
Example 6.19 (the company, cont’d: a near miss). Suppose the table left Thorne’s boss blank, since the chief executive has none. Leaving it blank is sensible, but the result is not a structure: would have a hole at Thorne, and a lookup table with a hole in it is not a function. Somebody had to choose a value for Thorne, and they chose Thorne herself, which is why Harriet’s first query returned a row.
6.3 Satisfaction
A structure says what the symbols of a formula mean, and we already know what the logical words mean in English: a conjunction is true when both conjuncts are, a disjunction when at least one disjunct is, and “for every ” when what follows holds whichever element stands for. The definition of truth writes that meaning down, one kind of formula at a time. The structure enters only at the atomic formulas: is true when the things the terms name stand in the relation that names.
One thing is still missing. A structure does not say what the variables stand for, and a formula with free variables, such as , is true or false only once they have been given values. So three definitions are needed, one after another: what the variables stand for, an assignment; what a term names, its value; and when a formula is true, satisfaction.
Definition 6.20 (assignment). An assignment says what each variable stands for.
Formally, let be a structure with domain . An assignment into is a function . For and , the assignment , “ with for ”, is defined by
Definition 6.21 (value of a term). The value of a term is the element it names, once a structure and an assignment are fixed.
Formally, let be a structure with domain , and an assignment into . The value of a term in under is defined by recursion on the shape of :
We write when the structure is clear.
Definition 6.22 (satisfaction). Satisfaction says when a formula is true in a structure under an assignment.
Formally, let be a structure with domain , and an assignment into . The relation , read “ is true in under ” or “ satisfies ”, is defined by recursion on the shape of by the clauses of Figure 6.5, one for each kind of formula. There means that does not hold, and “or” is inclusive.3
The clause for says that it is true nowhere. Since is , the clause for yields one for negation: if and only if .
The quantifier clauses are where the assignment earns its keep. To decide whether is true, we must look at with standing for each element of the domain in turn, while every other variable keeps the value it had. The assignment is exactly that: with pointed at and nothing else changed. Whatever gave before does not matter, since the quantifier has taken charge of .4 The formula itself is left as it is: the clause changes the assignment, and puts no term into . The structure could not do this job: it fixes once and for all what each constant symbol names, while a variable can stand for one element now and for another a moment later.
On a finite structure the definition is also an algorithm: to decide whether a sentence is true, unfold it clause by clause. Each quantifier clause runs through the domain, so a sentence with nested quantifiers, on a domain of elements, needs about cases. On an infinite domain, such as the counting numbers, the quantifier clauses ask about infinitely many elements. The definition still makes sense, since it says what truth is, but it no longer tells us how to find it out.
The same sentence can be true in one structure and false in another: truth belongs to the pair of a sentence and a structure, not to the sentence alone.
The same clauses cover the simplest formulas of all, those built from propositional letters with and the connectives, and there they reduce to something familiar. A propositional letter is a relation symbol with no places, so is a subset of . That set has one element, the empty tuple, so is either empty or all of , and the atomic clause makes false or true accordingly. The assignment plays no part, since has no terms. The clauses for and the connectives then compute the truth of a formula from the truth of its parts.
So for a formula built from letters, whether depends only on which letters makes true. For such formulas a structure amounts to a choice of true or false for each letter, a valuation. Propositional logic is the part of first-order logic in which every relation symbol has no places, and its structures are, in effect, the rows of a truth table.
The definition asks for an assignment even when the formula is a sentence, yet a sentence has no free variables, and its truth ought not to depend on what the variables stand for. If it did, “true in this structure” would mean nothing until somebody chose an assignment, and a question such as whether everybody earns less than their boss would have no answer. The next lemma removes the worry.
Lemma 6.23 (relevance). Let and be assignments into with for every . Then if and only if .
In words: a formula cares only about the variables it leaves free.
Proof sketch.
Atomic formulas. The value of a term depends only on what the assignment does to its variables.
Connectives. The clauses for the connectives pass the claim straight down.
. The set is included in , and and agree on that set; so, by the induction hypothesis, is true under the one exactly when it is true under the other, for every .
. The existential case is the same.
Exercise 6.14 asks for the details. □
In particular, the truth of a sentence in does not depend on the assignment. We write , read “ is true in the structure ”, when for one assignment , and hence for all.
Substitution is how a proof passes from a claim about anybody to the same claim about somebody in particular. Satisfaction makes the same passage in its own way: the clause for lets stand for each element in turn, by changing the assignment. Proofs are to be judged by truth, so the two passages had better agree: putting the term in for should come to the same as letting stand for whatever names. The next lemma says that they agree, provided no quantifier of captures a variable of .
Lemma 6.24 (substitution). If is substitutable for in , then if and only if .
In words: putting the term in for has the same effect as letting stand for whatever names. Without the proviso the lemma fails: when a quantifier captures a variable of , the formula no longer says of the thing names what says of (Example 6.12 shows a case).
The proof, by induction on , is long and unilluminating, though not difficult, and we omit it, as most textbooks do. The case of terms, on which the rest is built, is Exercise 6.15, which also asks where substitutability is used.
One feature of the definition looks too obvious to mention, yet its consequences are subtle and contentious. The clause for negation makes true in under exactly when is not, so exactly one of and is true, and by the clause for disjunction is true in every structure under every assignment, whatever says. This property of the definition, that every formula has exactly one of two truth values in a structure under an assignment, is called bivalence.
Remark 6.25 (unnamed elements). One might try to define truth by substitution instead: is true when is true for every closed term , and when it is true for some. That would be wrong, because a domain can contain elements that no closed term names. Take the real numbers as a structure for a signature with a constant symbol , a one-place function symbol and a two-place relation symbol , read as zero, adding one and less than. Every closed term, , , and so on, names a natural number, and no natural number lies strictly between and , yet is true. An assignment reaches every element of the domain, named or not.
Remark 6.26 (one sentence, several structures). Take the signature with one two-place relation symbol , and the sentence , “everything is -related to something”.
In the company, with read as earns more than, the sentence is false, since Cole earns more than nobody.
In the counting numbers, with read as , it is true, with as the witness for .
In a network of three servers linked in a ring it is true.
In three servers linked one way in a line, to and to , it is false at .
The one string receives two verdicts in four structures.
Example 6.27 (the company, cont’d: truth in Tuesday’s table). Work in , under an assignment . If , the term has the value
The closed term also has the value Thorne, whatever is, since the first line of the definition of value is never reached.
Consider the sentence
Since interprets as identity, the atomic clause makes an equation true in it exactly when the two terms name the same person. By the clause for the universal quantifier, the sentence is true in under exactly when, for each of the five people , the formula is true under . Figure 6.6 has one row for each person.
| ? | ? | the implication | ||
|---|---|---|---|---|
| Thorne | no | Thorne | no () | true (antecedent false) |
| Finch | yes | Thorne | yes () | true |
| Pratt | yes | Thorne | yes () | true |
| Bell | yes | Finch | yes () | true |
| Cole | yes | Finch | yes () | true |
Every row is true, so the sentence is true, and no row consulted : each replaced whatever gave by . Without the antecedent the Thorne row becomes false, so is false in , with Thorne as the counterexample. These are Harriet’s two queries again, now as two applications of a definition.
The Thorne row is the one that puzzles readers: why is the implication true there, when its consequent is false? Read the sentence as a rule of the company: if you are not the chief executive, you earn less than your boss. A rule of that form is broken only by someone it applies to, and it does not apply to Thorne, so Thorne cannot break it. The clause for says exactly this: an implication fails only when its antecedent is true and its consequent false.
A sentence with two quantifiers needs a witness inside each row. The sentence
says that every manager manages someone other than themselves.
For the three people who are not managers, the implication is true at once.
For Thorne, the clause for the existential quantifier asks for one whose boss is Thorne and who is not Thorne; Finch will do.
For Finch, Bell will do.
So this sentence is true in too. The evidence has a characteristic shape: for the universal quantifier we examined every row, and for each existential quantifier we produced one witness.
Example 6.28 (propositional logic). Take two letters, and . There are four valuations, one for each row below, and the clauses of Figure 6.5 compute the column of each connective from the columns of its parts. Writing T and F for true and false:
The column for comes from the clause for with , which is false in every row, as consequent. The column for is false in one row only, the row in which is true and false.
A longer formula is evaluated the same way, part by part. For “if implies , and is false, then is false”:
The last column is true in every row. Since every structure, under every assignment, gives and the truth values of one of the four rows, the formula is true in every structure under every assignment, whatever else its signature contains.
The formula , by contrast, is false in the third row: is true there and false. A structure that makes false and true falsifies it, and four rows were enough to find one. With letters there are rows to check.
6.4 Entailment
Satisfaction answers a question about one structure and one assignment: is this formula true here? Often, though, we have no particular system in mind, only requirements that every acceptable system must meet, and we want to know what holds in every system that meets them: whether everybody earns less than their boss in every table a personnel system could ever accept, say. So two definitions are needed: one for the requirements and the systems that meet them, and one for what follows from the requirements.
A set of sentences that says what any acceptable system must satisfy, written down before any particular system is in view, is called a theory.
Definition 6.29 (theory; model). A theory is a set of sentences, and its models are the structures in which all its sentences are true.
Formally, a -theory is a set of -sentences. A -structure is a model of a -theory , or satisfies , written , if for every .
Entailment is defined for sets of formulas, whose members may have free variables and are then true or false only under an assignment. For such a set we write when for every , and say that satisfies . When is a theory the assignment makes no difference, by the relevance lemma, and says just that is a model of .
Definition 6.30 (entailment). A set of formulas entails a formula if the formula is true wherever all the members of the set are, and a formula entailed by the empty set is valid.
Formally, let be a set of -formulas and a -formula. Then entails , written , if for every -structure and every assignment into with .
The formula is valid, written , if , that is, if for every -structure and every assignment into .5
When is a theory and a sentence, says that is true in every model of .
Validity is entailment by the empty theory, of which every structure is a model, and it is rarely what we want. A claim such as “nobody but the person at the top is their own boss” is not valid, and nobody expects it to be: it holds, if it holds, because of the theory a system satisfies. The three notions differ in what they examine, as Figure 6.7 shows.
| Notion | Means | Examined |
|---|---|---|
| is true in under | one | |
| for every with | those satisfying | |
| for every | all |
The two possible answers to “does entail ?” call for different kinds of evidence, and the two kinds are not on an equal footing. To show that an entailment fails, one structure suffices: a structure and an assignment that satisfy and make false. That is a certificate, which anyone can check by evaluating formulas in it. To show that an entailment holds, one needs an argument, “let be a model of the theory and an element”, which can be convincing but cannot be checked by running anything: it speaks of every model of the theory, of every size, including the infinite ones, and no loop runs over all of those. The last two examples of the section each show an entailment and a non-entailment.
Remark 6.31 (structures and models). A structure is a mathematical object, and a model is always a model of something: the same structure may be a model of one theory and not of another. A structure with an assignment gets no name of its own; we write and read as “ is true in under ”.
English also uses model in the opposite direction. A physicist who calls a set of equations a model of nature means that the equations describe the world. Here the world is the model, and the sentences describing it are the theory.
Remark 6.32 (one symbol, three jobs). The symbol now does three jobs, and what stands on its left says which.
With a structure and an assignment on the left, says that is true in under , and that every member of is.
With a structure alone, says that the sentence is true in it, and that is a model of the theory .
With a set of formulas on the left (a list such as abbreviates the set), or nothing, and speak of every structure and every assignment at once.
So is a fact about one structure, and is a fact about all of them.
Remark 6.33 (the conditional of science). The word “implies” is ambiguous in English, and English forms conditionals of several kinds. The clause for fixes one of them: the law-like indicative conditional, the “if” with which mathematics and science state their laws. Newton’s first law is one: if a body is in motion, then it stays in motion unless an external force acts on it. Does the law hold of a body at rest? Of course it does. A law is a claim about everything, and a body at rest is a case it does not apply to; the law does not become false because it does not apply. It is broken only by a case it does apply to, a body in motion that stops with no force acting on it.
Read this way, a conditional is false only when its antecedent is true and its consequent false, which is the clause for . Followed through, the reading arrives at two validities that look odd at first sight:
A case in which the antecedent fails does not break a law, whatever the consequent says, and neither does a case in which the consequent holds, whatever the antecedent says. So “if , then ” is true, and “if is even, then is even” holds of every , odd ones included.
This is not the conditional of conversation, which often promises a connection between its two halves, and still less the subjunctive or counterfactual, “if I had left earlier, I would have caught the bus”, whose antecedent is known to be false and which is nevertheless a substantial claim, about what would have followed. No clause that decides from the truth values of and alone could capture those, and the definition of satisfaction needs exactly that: it decides an implication by deciding its two halves.6 The History tells how the clause came to be chosen, and why the two validities above have been called the paradoxes of material implication.
Remark 6.34 (the equality axioms). The symbol is a two-place relation symbol like any other, and a structure may interpret it as any set of pairs. A system that compares names relies on two facts about identity, though: everything is equal to itself, and equals may be put for equals. Written as sentences of a signature that contains , these facts are the equality axioms of :
- (Eq1)
;
- (Eq2)
, for every -formula and all variables and such that is substitutable for in , where are the free variables of .
We write for the set of them. The list does not mention symmetry or transitivity, and need not: because (Eq2) allows every formula , both follow from (Eq1) and (Eq2) (Exercise 6.8).
A structure that interprets as identity is normal, and every normal structure is a model of . The axiom (Eq1) holds because everything is identical to itself, and each instance of (Eq2) holds by the substitution lemma, since under an assignment that gives and the same value, and have the same truth value.
Remark 6.35 (equality as a logical symbol). Many presentations make a logical symbol instead of a relation symbol, with two rules of its own: (I) concludes from nothing, and (E) concludes from and . The two treatments derive the same formulas from the same hypotheses. Each equality axiom is derivable with the rules, using (I) and (I), and each use of a rule can be replaced by an instance of (Eq1) or (Eq2) followed by (E) and (E). Keeping as a relation symbol leaves the logic, and every proof about it, unchanged.
Example 6.36 (the company, cont’d: valid, and not valid). The sentence is valid: in every structure, if every element is in , then so is .
The sentence
is not valid, since falsifies it, but it is true in some structures: in the counting numbers, with read as , as , as , and and as anything at all, everyone earns less than their boss. It is true in no finite company whose comes from salaries, since the best-paid person cannot earn less than her boss.
A sentence true in need not be valid, however natural it sounds. The sentence is true in and false in every company without engineers.
Example 6.37 (the company, cont’d: the theory of the personnel system). Harriet’s personnel system enforces, among others, two rules that can be written in the company signature:
Nobody earns more than themselves, and everyone but the chief executive earns less than their boss.
The system also relies, without saying so, on the equality axioms of the company signature, which its query engine uses whenever it compares two names. One instance of (Eq2), from the formula with and for and , says that whoever equals someone who earns more than also earns more than :
Let be the set consisting of , and : the theory of the personnel system, in the company signature. A normal structure is a model of exactly when both rules hold in it, that is, exactly when it is a table that the personnel system would accept as a possible state of the company. An entailment says that holds in every state the system can be in, which is what the finance director asked.
An entailment. Sharpened a little, the finance director’s question is whether the theory guarantees that nobody but the chief executive is her own boss:
It does. Let be a model of , and let be an element of its domain with , so that is true under . Suppose that . Then
So : the formula is true under , and so is the implication. For an element with the implication is true by its clause. Since and were arbitrary, the entailment holds.
A non-entailment. Does the theory guarantee that no engineer is a manager, that is, does hold? It does not. Take the normal structure with domain , in which
names Ada;
sends Ada to Ada;
and are both ;
is empty.
Then:
holds because is empty;
holds because the only person is the chief executive, so its antecedent is never true;
the equality axioms hold because the structure is normal;
Ada is an engineer who is a manager.
The one-person company is a model of in which the sentence is false, and so the entailment fails.
The two answers have the two shapes the section described: the entailment needed an argument about an arbitrary model, and the non-entailment needed only one small structure, which anyone can check.
Example 6.38 (the counting numbers, cont’d: a theory of order). In the signature of arithmetic, let be the theory with the two sentences
Nothing is less than itself, and “less than” passes along chains. The counting numbers are a model of : no number is less than itself, and if and then .
An entailment. The theory entails that “less than” never runs both ways:
Let be a model of , and and elements with . Suppose that as well. Then , by with , , for , , , and that contradicts . So , the implication is true for and , and since , and were arbitrary, the entailment holds.
A non-entailment. The sentence , “every number has a bigger one”, is true in the counting numbers, but does not entail it. Take the structure with one element , in which names , the function symbols , and send everything to , and is empty. Then holds, since nothing is less than anything; holds, since its antecedent is never true; and is false at .
So being true in the counting numbers is one thing, and following from a theory that the counting numbers satisfy is another: satisfies many sentences that leaves open. Whether some theory settles every truth about is the question of Chapter 8.
6.5 Soundness of
How can we certify that ? Listing the structures that satisfy and checking each one is out of the question: there are infinitely many, and most of them are infinite. What we want instead is a proof: a finite object, each step of which a program can check, showing that the commitments made by yield . Part 1 supplied a system of such proofs, Gentzen’s . We write when some derivation in has conclusion and all its open hypotheses in , and for the set of open hypotheses of a derivation . A derivation is the certificate we asked for: a finite object, each step of which a program can check against the rules.
Two notions of consequence are now available, and . The first quantifies over all structures and assignments; the second asks for one finite object. They can be related in two ways:
Soundness: if , then .
Completeness: if , then .
Soundness says that derivations are safe: none leads from true hypotheses to a false conclusion. Completeness says that derivations are enough: whatever follows has a derivation. This section proves the first.
Induction on derivations
Soundness is a claim about every derivation, and there are infinitely many derivations, of every size. A claim about every counting number is proved by induction: show it for , show that it passes from each to , and it holds for every number, since every number is reached from by adding again and again. Derivations are built in the same way, from leaves by rules, and the same method applies to them.
A derivation of is either a single leaf, which is a hypothesis, or a rule applied to one, two or three smaller derivations, its immediate subderivations. Drawn as in Part 1, each smaller derivation is a triangle, with its name inside and its conclusion at the point, and the rule is a bar beneath them. The derivation that (E) builds from and , for instance, is
Every derivation is reached by starting from leaves and adding one rule at a time. So to show that some property holds of every derivation, it is enough to show two things:
the base: the property holds of every single leaf;
the steps: for each rule, if the property holds of the immediate subderivations, then it holds of the derivation that the rule builds from them.
The supposition in a step, that the property holds of the smaller derivations, is the induction hypothesis. The base gives the property for the leaves; the steps then give it for every derivation with one rule, then for every derivation with two, and so on, so it holds for all of them. The relevance lemma was proved in the same way, by induction on formulas, with the atomic formulas as the base and one step for each connective and quantifier.
Which property? It cannot be “the conclusion is true”: a derivation reasons from suppositions, and a supposition may be false, and so may everything drawn from it. It cannot speak of a fixed set either, since the open hypotheses change as a derivation grows: (I) discharges one, so a subderivation may have an open hypothesis that the whole derivation lacks. The property must speak of each derivation’s own open hypotheses. For a derivation with conclusion :
(S) for every structure and every assignment into , if every formula of is true in under , then so is .
In words: the conclusion of a derivation can be false only where one of its open hypotheses is.
Theorem 6.39 (soundness of ). For every set of formulas and every formula , if then .
Proof. We show (S) for every derivation of , by induction on derivations. The theorem follows from it: if , some derivation has conclusion and ; if , then every formula of is true in under , and (S) makes true.
In each step below, the derivation is displayed with its immediate subderivations as triangles. The induction hypothesis is that (S) holds for the subderivations. We fix a structure and an assignment , suppose that every formula of is true in under , and show that the conclusion of is.
For the connectives, how the formulas , and are built does not matter. All that is used is whether each is true or false under , and what the clause for the connective says, so in those steps the reader may think of , and as propositional letters, each simply true or false. The quantifier rules are different: they look inside a formula, and they need the relevance and substitution lemmas.
The base. The derivation is a single leaf , whose only open hypothesis is itself, and is true by supposition.
The steps for the connectives.
(I). The derivation is
and is with removed. If is false under , then is true by the clause for , whether or not is. If is true, then every formula of is true, since each is or in ; so is true by the induction hypothesis for , and is true by the clause for .
(E). The derivation is the one displayed before the theorem, and is . Every formula of both sets is true under , so by the induction hypothesis and are true. By the clause for , is false or is true; is true, so is.
(I). The derivation is
and is . By the induction hypothesis and are true, and by the clause for so is .
(E). The derivation is
or the same with beneath, and is . By the induction hypothesis is true, and by the clause for both and are.
(I). The derivation is
or the same with in the triangle, and is . By the induction hypothesis is true, and by the clause for so is .
(E). The derivation is
and is , together with without and without . The formulas of are true, so is true by the induction hypothesis, and by the clause for , is true or is. If is, every formula of is true, since each is or in , and is true by the induction hypothesis for . If is, the same argument applies to .
(E). The derivation is
and is . By the induction hypothesis is true under , which its clause forbids. So no makes every formula of true, and (S) holds for because there is no case to check.
The steps for the quantifiers.
(E). The derivation is
with substitutable for in , and is . By the induction hypothesis is true under , so by the clause for the formula is true under for every element , in particular for , and by the substitution lemma is true under .
(I). The derivation is
with substitutable for in , and is . By the induction hypothesis is true under , by the substitution lemma is true under , and by the clause for , with , the formula is true under .
(I). The derivation is
where is free in no formula of , which is , and not free in . We must show that is true under for every element . Let be an element and . Since is free in no formula of ,
That assignment differs from at most at , and is not free in unless it is itself, so by relevance is true under .
The side condition kept the open hypotheses true when the value of was changed to . Had been free in one of them, the change might have made it false, and the induction hypothesis would have told us nothing about .
(E). The derivation is
where is free neither in , nor in , nor in the formulas of other than ; and is together with without . By the induction hypothesis for , is true, so there is an element with true under . Let . Then
The first line uses that is not free in , unless it is ; the second that is free in no other open hypothesis; the last that is not free in .
This completes the induction, and with it the proof. □
Four rules carried all the weight. Two discharge a supposition, (I) and (E), and there the open hypotheses of the whole are fewer than those of the parts. Two have a side condition on a variable, (I) and (E), and there the relevance and substitution lemmas were needed. The other seven follow from the clause for their connective or quantifier, two of them with the substitution lemma as well. Exercise 6.13 tries the method on a rule that is not sound, to see where it breaks.
Example 6.40 (the company, cont’d: a derivation). The entailment of Example 6.37 has a derivation:
It is the argument of that example written as a tree. In words: let be anyone, and suppose that is not the chief executive and that is her own boss.
By , the boss of earns more than .
Since the boss of is , the equality axiom gives that earns more than .
By that is absurd.
Hence is not her own boss.
In the tree, a leaf labelled , or is that hypothesis, and is short for an implication into . To save width we write for the term , and since the tree is still too wide for the page, we give it in four pieces. The piece instantiates three times and uses the hypothesis :
The piece uses and the hypothesis :
The piece combines the two and meets :
Its open hypotheses are , , , and . The last piece discharges the final two and generalises:
The (I) step is legal because, once both suppositions are discharged, the only open hypotheses are the sentences , and . Compare the tree with the argument of Example 6.37: “let be an element” is the (I) at the root, “suppose that” is each (I), and “by ” is a (E) followed by a (E). By soundness the tree is a second proof of the entailment, and one that a program can check.
6.6 The Law of the Excluded Middle
Is also complete? It is not.
Theorem 6.41 (incompleteness of ). There are a set of formulas and a formula such that but .
The proof uses a property of proved in Part 1: a derivation of a disjunction from no hypotheses can be straightened into one that ends with (I), and so it says which disjunct holds.
Fact 6.42 (disjunction property, from Part 1). If , then or .
Proof of the theorem. Take empty, and the sentence for a propositional letter .
The sentence is valid. In every structure, under every assignment, is true or false, and when it is false, is true.
It has no derivation in . Suppose that . By the disjunction property (Fact 6.42), derives or derives , and by soundness the disjunct it derives is valid. Neither is:
in a structure that makes true, is false;
in one that makes false, is false.
□
The proof used soundness to pass from a derivation to validity, and two structures to take validity away. It used nothing about except that some structure makes it true and another makes it false, so the same proof works for every sentence of which that holds: does not derive .
The sentence is the law of the excluded middle: every structure obeys it, and lacks it. The rules come close, since they derive , but no rule leads from to . The gap is not confined to excluded middle: the next example meets it again.
Remark 6.43 (two senses of incompleteness). The word incompleteness in the theorem describes a proof system: a system is complete if it derives everything that is entailed, and incomplete if some entailment has no derivation. Chapter 8 uses it of theories instead: a theory is incomplete when some truth about its subject matter cannot be derived from it.
Example 6.44 (the company, cont’d: one negation too many). The finance director could have put his question the other way round: not “nobody but the chief executive is her own boss” but “whoever is their own boss is the chief executive”,
The two sentences are true in the same structures, each being the other’s contrapositive, and entails the second as it entails the first. Let be a model of and an element with . Then:
either is the chief executive or not;
if so, there is nothing to show;
if not, the argument of Example 6.37 gives a contradiction, so is the chief executive after all.
Can derive it?
The rules do not provide the either … or not. They do provide the following:
suppose and ;
then, as in Example 6.40, absurdity;
hence , which is .
That is one negation too many. In every structure, under every assignment, is true exactly when is, but no rule of makes the last step, and no cleverer derivation finds a way round.7
The gap in is a principle that every structure obeys: of a claim and its denial, one is true, and there is no third option in the middle. This is the law of the excluded middle (LEM), and it is more than two thousand years old.8 In a structure it holds because the clause for negation makes exactly one of and true (bivalence); in a proof system it becomes a rule with no premisses, for every formula :
The law is not the only principle that lacks. Three more fall into the gap, each a schema with an instance for every choice of formulas:
The first, double negation, says that what is not false is true;
the second, Peirce’s law,9 says much the same without negation;
the third says that if not everything lacks the property , then something has it.
Every instance of each is valid, as a check against the clauses shows, but does not derive every instance: already , and , for propositional letters , and a relation symbol , have no derivation (Exercise 6.10).
With the law added, all three become derivable. Here is double negation:
We write (DN) for this derivation used as a step. The system with the law added is classical logic.
Definition 6.45 (). The system is with the law of the excluded middle added as a rule with no premisses.
Formally, the derivations of are built by the rules of together with the rule (LEM).
Every derivation of is a derivation of , so implies . The letters are J for intuitionistisch and K for klassisch.10 One rule with no premisses looks like a small addition. The next example shows what it buys.
Example 6.46 (the company, cont’d: a derivation in ). The sentence of Example 6.44 is derivable in : . The derivation is the argument of that example written as a tree, and most of it is already built: the piece of Example 6.40 derives from and , with , and . The new step splits on :
The left case of the (E) needs no work. The right case is the old derivation of , followed by (E) to reach , the conclusion both cases of the split must share. The (I) step is legal for the same reason as before: only , and remain open.
Theorem 6.47 (soundness of ). For every set of formulas and every formula , if then .
Proof. The soundness proof for goes through with one more case, the rule (LEM): its conclusion rests on no open hypotheses, so it must be true in every structure under every assignment. By bivalence it is: the clause for negation makes one of and true. □
is sound, and it reaches sentences that missed. But is one more rule enough? Soundness is half of the connection between and . The other half asks whether derives everything that follows, or whether further laws are missing.
6.7 Completeness of
Soundness puts derivability inside entailment: whatever derives from is true in every model of . For the converse failed, and the law of the excluded middle was the missing step. For the converse holds.
Theorem 6.48 (completeness11). Let be a countable signature, a set of -sentences and a -sentence. If , then .
In words: whatever is true in every model of a theory can be derived from it in .
How might one prove such a thing? The theorem is an implication, and its antecedent is the hard side to use. says that is true in every model of , and a proof would have to start from that and arrive at a derivation, a finite object that the antecedent gives no hint of. The standard move when an antecedent is hard to use is to prove the contrapositive instead:
The antecedent is now a failure to derive, which seems to carry no information at all, but the conclusion has become easier to reach. asks only for one structure, a model of in which is false, and a single structure is something we can hope to build.
Both sides of the contrapositive can be rephrased in terms of one set, . The conclusion says that some structure satisfies every member of and falsifies ; by the clause for negation, a structure falsifies exactly when it satisfies , so the conclusion says that has a model. The antecedent says that has no derivation from , and it too is a fact about : that has no derivation from it. For if the set derived , (I) would turn that derivation into one of from , and (DN) into one of . A set from which cannot be derived has a name.
Definition 6.49 (consistency). A consistent set is one from which the rules cannot derive absurdity.
Formally, a set of -sentences is consistent if , and inconsistent otherwise.
Keep the two notions apart. Consistent is about derivations: no derivation leads from the set to . Having a model is about structures: some structure makes the whole set true. Soundness already gives one direction: a set with a model is consistent, since is true in no structure and a derivation of it would make true in the model. We record the two rephrasings as a lemma.
Lemma 6.50 (two reformulations). Let be a set of sentences and a sentence.
if and only if has a model.
if and only if is consistent.
Proof.
(i) A structure is a model of in which is false exactly when it is a model of and of , by the clause for negation.
(ii) If derived , then would derive by (I), and by (DN). Conversely, if derived , then would derive by (E).
□
Put together, the contrapositive reads: if is consistent, then it has a model. The set is just some set of sentences, and nothing about how it arose will be of any use in building its model. So we may as well drop the and the and prove the statement for every set of sentences. Figure 6.8 records the chain of rephrasings.
Lemma 6.51 (model existence). Let be a countable signature. Every consistent set of -sentences has a model.
In words: a theory that does not contradict itself describes something. The lemma is the whole of the completeness theorem in another form, and the rest of the section proves it. Completeness follows from it at once.
Proof of the completeness theorem, from the lemma. Suppose that . Then
This is the contrapositive of the theorem. □
A theory that behaves like a model
We are handed a consistent set of sentences and must produce a structure in which every one of them is true. The only material in sight is itself, so we build the structure out of what says. Its elements will be the names that the signature provides, the closed terms, and a relation will hold of some names exactly when says that it does. A constant will name the element , the term the element , and so on: the structure is made of its own names. This is the boldest idea in the proof, and the rest of the section makes it work.
For which theories can it work? Look at the set of sentences true in a structure in which every element has a name. Satisfaction says how that set behaves: it contains exactly when it contains both conjuncts, exactly when it contains at least one disjunct, exactly when it contains every instance , and so on through the clauses. A theory that behaved in the same way would carry all the information that a structure carries, and nothing more would be needed to read a structure off it. So we make the clauses into a definition.
Definition 6.52 (model-like theory). A model-like theory treats the connectives and quantifiers as satisfaction does, with membership in place of truth and closed terms in place of elements.
Formally, a set of -sentences is model-like if the clauses of Figure 6.9 hold for all -sentences and , and, in the two quantifier clauses, for every -formula whose only free variable is .
Set Figure 6.9 beside Figure 6.5: it is the definition of satisfaction with “” in place of “”, and closed terms in place of elements of the domain. In words, a model-like theory is the list of truths of a structure, kept by someone who has the list and nothing else. Since it behaves like a model, we may as well make it into one.
Definition 6.53 (term structure). The term structure of a set of sentences is made of the closed terms, related as the set says they are.
Formally, let be a signature with at least one constant symbol, and a set of -sentences. The term structure of is the -structure in which
is the set of closed -terms, and
for each constant symbol , each function symbol of arity , and each relation symbol of arity of ,
The domain is not empty, since the signature has a constant symbol. By induction on terms, every closed term names itself: under every assignment . So every element of the domain has a name, and by the substitution lemma holds exactly when for every closed term , and exactly when for some closed term . The difficulty of an element without a name cannot arise, because the elements are the names.
Lemma 6.54 (truth lemma). Let have at least one constant symbol and be a model-like set of -sentences. For every -sentence , if and only if .
In words: in the structure made of names, a sentence is true exactly when says it is.
Proof. By induction on the number of connectives and quantifiers in . (The induction is not on subformulas: is not a subformula of , but it has one quantifier fewer.) In each case a clause of satisfaction meets the matching clause of Figure 6.9.
Atomic sentences. Since every closed term names itself, exactly when , that is, by the definition of , exactly when .
. Neither side holds: is true nowhere, and .
.
and . The same, with the clauses for and .
.
. The same, with “some” for “every”.
□
Corollary 6.55 (a model-like theory has a model). Over a signature with at least one constant symbol, every model-like set of sentences has a model, its term structure .
Proof. By the truth lemma, every member of is true in . □
What a consistent theory already has
The question is now how to turn a given consistent theory into a model-like one. Some of the work is free. Call a set of sentences closed under derivation if every sentence that derives from is in . Closing a consistent theory costs nothing: add everything it derives, and the result is still consistent, since whatever the enlarged set derives, the original set already derived. A consistent theory closed under derivation already satisfies half of Figure 6.9, and each half-clause comes from a single rule.
Lemma 6.56 (what closure gives). Let be consistent and closed under derivation. Then, for all sentences and and every formula whose only free variable is :
;
if and only if and ;
if or , then ;
if and , then ; and if , then ;
if , then for every closed term ;
if for some closed term , then .
Proof. Part (i) is consistency, since a leaf would be a derivation of . In each other part, the rule named derives the sentence that the part says is in from the sentences it is said to follow from, and closure puts it in :
(ii) (E) from left to right, (I) from right to left;
(iii) (I);
(iv) (E), and (I) discharging nothing;
(v) (E);
(vi) (I).
□
What is missing is the other half of four clauses:
: from to or ;
: from to ;
: from to some instance ;
: from every instance to .
These four halves come down to two pieces of information that a theory can lack and a structure cannot: which disjunct, and which witness. A consistent theory can contain without or , and without any . The first two halves need a theory that decides every sentence, and the Lindenbaum construction supplies one. The last two need named witnesses, and the Henkin construction supplies them.
Deciding every sentence: the Lindenbaum construction
Definition 6.57 (maximal consistency). A maximal consistent set is a consistent set that takes a side on every sentence.
Formally, a set of -sentences is maximal consistent if
it is consistent, and
for every -sentence , either or .
Lemma 6.58 (Lindenbaum). Let be countable. Every consistent set of -sentences is contained in a maximal consistent set of -sentences, which we write .
In words: a set of sentences that does not contradict itself can be enlarged until it takes a side on every question, and still not contradict itself.
Proof. List the sentences of the signature as ; they can be listed, because they are finite strings over a countable alphabet. Decide each sentence in turn: let and
Let .
Every sentence or its negation belongs to , since was decided at step .
Each is consistent, by induction on . The set is consistent by hypothesis. If is consistent, so is : if both and derived , then by (I) the set would derive both and , and hence .
So is consistent: a derivation of from it uses finitely many hypotheses, and they all lie in some .
□
The proof is not an algorithm. At each step it asks whether a set of sentences is consistent, and nothing in it says how the question is to be answered; it needs only that the question has an answer. So the proof shows that exists without constructing it. Nor is the result unique, since another order of the list can give another maximal consistent set; names the result for one list, fixed once and for all, and the proof needs only one.
A set that takes a side on every sentence supplies the two propositional clauses.
Lemma 6.59 (maximal consistent sets). Let be maximal consistent. Then
is closed under derivation;
if , then or ;
if , then .
In words: a maximal consistent set satisfies every clause of Figure 6.9 except, perhaps, the two for the quantifiers.
Proof. In each part, suppose the conclusion fails and derive from , against consistency.
(i) If derives but , then , and (E) derives .
(ii) If and neither disjunct is, then and are, and (E) derives from the three.
(iii) If , then . From a supposition , the rule (E) gives and (E) gives , so (I) derives from , and it is in by (i).
□
Together with the lemma on what closure gives, this lemma leaves only the quantifier clauses. They can fail in a maximal consistent set, because the closed terms may not name enough elements: the set may contain and the negation of every instance of (Example 6.68 at the end of the section shows a case).
Naming the witnesses: the Henkin construction
The remedy is to add names: a new constant symbol for every existential sentence, and a sentence that makes it the witness, . Provided that each name is new, the enlarged set stays consistent. The lemma that says so rests on a fact about derivations: a constant about which nothing is assumed is as good as a variable.
Lemma 6.60 (generalisation on a new constant). If , where the constant occurs neither in nor in , then .
Proof sketch. In a derivation of , replace everywhere by a variable that occurs nowhere in the derivation. No rule mentions , so the result is still a derivation, now of from hypotheses in , which do not mention . One step of (I) completes it. □
Lemma 6.61 (Henkin). Let be countable and a consistent set of -sentences.
Let be with new constant symbols added.
List the existential -sentences as .
For each let be the sentence , where is the first of the new constants that occurs neither in nor in any of .
Then the set
of -sentences is consistent.
In words: every existential sentence may be given a named witness without risk of contradiction, provided that each name is new.
Proof. First, remains consistent when derivations may use the new constants: replacing each new constant in a derivation of from by a variable that occurs nowhere in it yields a derivation of from over , since no rule mentions a constant. A derivation of uses finitely many hypotheses, so it is enough to show that every is consistent. We do so by induction on . The set is consistent, as just shown; it remains to show that if is consistent, then so is , which is .
Suppose that is inconsistent. Then derives , the denial of an implication, and from the denial of an implication the rules of alone derive and (Exercise 6.12). The constant occurs neither in nor in . So derives
Hence is inconsistent, contrary to assumption. □
Remark 6.62 (why the witnesses must be new). Two small sets show what the proviso prevents. Let and be one-place relation symbols and a constant symbol. The set is consistent: every structure with an element of that does not name satisfies it. Had the witness for been the old constant , the sentence added would be , and with it the set would derive and . A name already in use carries information, and a witness must carry none.
Nor may two existential sentences share a new name. The set
is consistent, since every structure with an element of and a different element of , and nothing in both, satisfies it. Give both existential sentences the witness , and the set derives , and so a contradiction. Exercise 6.17 asks for the details.
The condition is the one on the eigenvariable of (E) in another guise: the witness must be a name about which nothing has been assumed.
Once the witnesses are named, a maximal consistent set supplies the two quantifier clauses.
Lemma 6.63 (the quantifier clauses). Let be a maximal consistent set of -sentences that contains . Then, for every -formula whose only free variable is :
if , then for some closed term ;
if for every closed term , then .
Proof. Recall that is closed under derivation, by the lemma on maximal consistent sets.
(i) The sentence is some of the list, and . By (E), derives , which is in by closure, and is a closed term.
(ii) Suppose that every instance is in but is not. Then
and with the rule (E) derives , against consistency.
□
Putting it together
Henkin’s construction names the witnesses, Lindenbaum’s then decides every sentence, and the three lemmas just proved say that the result is model-like. Figure 6.10 draws the route.
Proof of the model existence lemma. Let be a consistent set of -sentences, with countable.
is a consistent set of -sentences, by the Henkin lemma, and is countable, having gained countably many constants.
is a maximal consistent set of -sentences containing , by Lindenbaum’s lemma.
is model-like over . It is consistent, and closed under derivation by the lemma on maximal consistent sets, so the lemma on what closure gives supplies half of every clause of Figure 6.9. The lemma on maximal consistent sets supplies the missing halves for and , and the lemma on the quantifier clauses those for and .
The term structure exists, since has constant symbols, and by the truth lemma a -sentence is true in it exactly when it belongs to . In particular every member of is true in , since .
The new constants occur in no sentence of , so they can be forgotten: the structure , the restriction of to the symbols of , is a -structure. The clauses of satisfaction for a -sentence look only at the symbols of , so the same -sentences are true in it, and it is a model of .
□
The proof has a slightly impudent quality. Asked to show that a sentence true in every structure has a proof, we turned the sentences themselves into a structure made of words. Nothing in the definition of a structure forbids this, since a domain may be any non-empty set, and a set of strings is a set like any other.
Remark 6.64 (where excluded middle was used). The law entered the proof in two places, and nowhere else: in reformulation (ii), through (DN), and in the lemma on the quantifier clauses, in the passage from to , a relative of the principle that could not derive. At the first of these the argument already breaks down for . With empty and the sentence , reformulation (ii) fails for : the system does not derive , yet is inconsistent, by the tree that derives .
Remark 6.65 (compactness and the Löwenheim–Skolem theorem). The proof yields two further results. If every finite subset of has a model, so does (compactness). For if had no model, it would be inconsistent, by the model existence lemma; a derivation of from uses only finitely many hypotheses, so some finite subset of would be inconsistent, and by soundness it would have no model. And the structure the proof builds is made of terms, of which there are only countably many, so a set of sentences with a model has one whose domain can be listed as (the Löwenheim–Skolem theorem). Both say that first-order sentences tell structures apart less well than one might hope.
Remark 6.66 (normal structures). Let be a theory that contains the equality axioms of its signature. The term structure the proof builds need not be normal, since may contain for two different constants and . Because contains the equality axioms, the defect can be repaired. Write when . The axioms (Eq1) and (Eq2) make an equivalence relation (Exercise 6.8) that is compatible with the symbols: if for each , then
;
exactly when .
The -classes of closed terms therefore form a normal structure in which exactly the same sentences are true. Hence if a sentence is true in every normal model of , then . The equality axioms say everything about identity that a derivation can use, so looking only at normal structures loses nothing.12
Example 6.67 (the Lindenbaum construction on three letters). Let and , and ask whether entails . Start the construction from , which is consistent, and suppose that the list of sentences begins .
Adding leaves the set consistent, so goes in.
Adding would not: and give , which clashes with , so goes in.
Adding meets , so goes in again.
A structure that makes true and and false, as the three decisions say, does make and true and false. The decisions were taken, one letter at a time, from what the hypotheses could not rule out, and they show that the entailment fails.
The first step asked whether is consistent. We answered yes because this very structure makes all of it true; the construction itself only asks the question and does not say how to answer it.
Example 6.68 (the company, cont’d: an engineer with no name). In every closed term names Thorne, since is Thorne and Thorne is her own boss. The set of sentences true in is maximal consistent, since it has a model and takes a side on every sentence. It contains , and also for every closed term , so the clause for of Figure 6.9 fails in it: the set is not model-like. Its term structure would contain no engineer. This is the company’s version of the remark on unnamed elements.
Example 6.69 (the company, cont’d: the finance director’s two answers). Take to be the theory of the personnel system. By soundness and completeness, “true in every model of ” and “derivable from in ” are one relation, so the finance director’s question has two answers, and they are the same answer. The tables the system can produce interpret as identity, and the remark on normal structures shows that looking only at such structures loses nothing.
6.8 Classical and Intuitionistic Logic
We now have two logics for one language. The system is the logic of Part 1, whose proofs are programs. The system is complete for the structures of this chapter. They differ by a single rule, and the difference decides what a proof contains.
The law of the excluded middle closes the gap between derivability and entailment, and that is its gain: entailment, which quantifies over every structure, becomes derivability, which asks for a finite certificate. With the law in hand an argument by cases on any claim is available, whether or not anyone can tell which case holds. Adding a rule can only add derivations, and the new derivations cost two properties that has in Part 1. One is the disjunction property (Fact 6.42), used in the proof that is incomplete. The other, also proved in Part 1, says that a proof of “there is an such that ” from no hypotheses names a term for .
Fact 6.70 (existence property, from Part 1). If , then for some term .
Remark 6.71 (the drinker principle). Take a signature with one one-place relation symbol , think of the domain as the customers in a pub (there is at least one, since domains are not empty), and read as “ is drinking”. The sentence
says that there is someone in the pub such that, if they are drinking, everyone is.13
The principle sounds like a claim about a remarkable person, and so it is often suspected of being false. It is valid, by a two-line argument. Either everyone is drinking or someone is not. If everyone is, pick anyone: the consequent is true, so the implication is. If someone is not, pick that person: the antecedent is false, so the implication is true. There is no remarkable person, only a choice made differently in the two cases. The first case is where the non-empty domain is used; in an empty pub there would be nobody to pick, and the sentence would be false.
The system does not derive this sentence, and this time the existence property is the reason. If it did, it would derive for some term . The signature has no constants and no function symbols, so is a variable, say . But is false in a pub of two people, one drinking and one not, under an assignment that sends to the one who is drinking, so by soundness it has no derivation. Asked for someone, the rules of insist on being told who. The argument above never says who: it says “this one if everyone is drinking, that one if not”, without knowing which case holds.
In a pub of five that is no defect, since one can go and look. Replace “drinking” by a property of numbers that nobody knows how to check, and the pub by all the counting numbers, and the same argument proves that a certain number exists without indicating how to find it, even in principle. That is why some mathematicians refuse to accept the argument.
Example 6.72 (a derivation of the drinker principle in ). The drinker principle, which we write , is derivable in : . The derivation splits on whether someone is not drinking. If someone is not, call them ; then is the witness, because the antecedent fails for . This is the derivation :
If nobody is not drinking, then everyone is, and anyone at all, say , is the witness. This is the derivation , in which the (I) step discharges nothing, since was reached without supposing :
One step of (E) on an instance of (LEM) joins the two cases:
In the witness is , the person who is not drinking, and the (E) step is legal because is free neither in , nor in , nor in any other open hypothesis above . In the witness is , anyone at all. The (I) step is legal because is not free in the only open hypothesis, . The (I) step uses a variable as the witness, and that is where the non-empty domain is paid for.
Which case supplies the conclusion depends on which side of the instance of (LEM) is true, and the derivation does not say.
Proposition 6.73 (loss of the disjunction and existence properties). The system has neither the disjunction property nor the existence property.
Proof.
Disjunction property. The system derives in one step, and it derives neither disjunct, since neither is valid and is sound.
Existence property. Take a signature whose only symbol is the one-place relation symbol , so that every term is a variable. The system derives : split by (LEM) on . If someone is not drinking, that person is a witness, since the antecedent fails for them. If not, everyone is drinking, by (DN), and every variable is a witness (Example 6.72 gives the tree). Consider the structure with two elements, and , in which holds of only, and an assignment that sends every variable to . For every term the formula is true and is false, so is false, and by soundness derives no such formula.
□
In a proof of an existential sentence contains a witness, and the rules were designed so that it would: every derivation of from no hypotheses can be straightened into one that ends by exhibiting a term . A proof in can conclude by showing that both answers to some question yield an , without saying which answer is the true one. It certifies that something exists but no longer shows which thing.
Over a finite structure the price is nothing: whether or holds there is settled by running through the domain, so an argument by cases on can always be completed by looking. The price is felt only over domains that nobody can run through, such as the counting numbers. Whether it is worth paying depends on what makes a sentence true, a question that the mathematics of this chapter can sharpen but not settle.
The mathematicians who refuse the law, the intuitionists, see the loss of witnesses as the heart of the matter. The law was abstracted, they argue, from reasoning about finite collections, where going through the list settles every question, and it was carried over unexamined to infinite collections, which nobody can go through.14
Goldbach’s conjecture says that every even number greater than is the sum of two primes.15 Written with symbols for zero, successor, addition and multiplication, it is a sentence about the counting numbers, and by the definitions of this chapter it is true or false in the structure they form. To assert “Goldbach’s conjecture or its negation” is to claim, the intuitionists say, that the question is settled, or at least can be, when nobody has any idea how to settle it. For them mathematics is a construction carried out in the mind, and “true” can only mean “constructed”.16
Their logic gives each connective its meaning by proof conditions, which say what counts as a proof of a sentence, rather than by truth conditions.
A proof of is a proof of each conjunct;
a proof of is a method that turns every proof of into a proof of ;
a proof of is a proof of one disjunct together with which one;
a proof of is a particular with a proof of for it.
On this reading the disjunction and existence properties of are not accidents of the rules, waiting to be patched; they are what the connectives mean, and the rules of write them down.17
Intuitionistic logic also has a semantics of its own: structures that grow in stages, which model a mathematician whose knowledge grows over time, and for which is sound and complete.18 Each logic therefore has a semantics that it fits exactly, and the question becomes which semantics describes what mathematicians are doing.
The two logics are equally safe from contradiction: every theorem of classical arithmetic can be translated into a theorem of intuitionistic arithmetic, with inserted in the right places, so that if intuitionistic arithmetic is consistent, so is classical arithmetic.19 What separates the logics is meaning: what a sentence asserts, and what counts as a proof of it.
The strongest modern case for the intuitionist answer is an argument about language rather than about mathematics.20 The meaning of a sentence is fixed by how it is used, and a speaker’s grasp of that meaning must show itself in what the speaker can do: above all, in recognising a proof of the sentence when one is presented. But some truth conditions could obtain without anyone being able to recognise that they do, and no speaker could display a grasp of those. For mathematics, the argument concludes, meaning is given by proof conditions, and the right logic is intuitionistic. Realists reply that we understand more than we can verify, and the debate is still open; Button and Walsh (2018) is a guide to its current state. Mathematics itself has also moved on: a great deal of analysis can be developed constructively without the philosophy, and classical mathematicians read that work as mathematics that happens to supply witnesses.21
The proof conditions came back, half a century on, as the reason the proofs of can be read as programs. A proof of a disjunction is a value with a tag on it, so a proof of the law of the excluded middle would be a program that, given any claim at all, returns the right tag, and there is no such program. For this reason the proof assistants used to verify software today, such as Lean and Rocq, are built on intuitionistic type theories, which let a user add the law as an axiom or, in Lean, through the axiom of choice.22 Figure 6.11 sets the two logics side by side.
| (intuitionistic) | (classical) | |
|---|---|---|
| Rules | natural deduction as in Part 1 | those rules plus the law of the excluded middle |
| Meaning of a connective | proof conditions | truth conditions |
| Semantics it fits exactly | structures that grow in stages | the structures of this chapter |
| Complete for the structures of this chapter | no | yes |
| Disjunction and existence properties | yes | no |
| Proofs as programs | yes | only with jumps |
The rest of this part of the course is classical, and that is a decision rather than a default. Its question is what holds in every structure, a question about truth, and the theorem that answers it, soundness and completeness together, is a theorem about . It fails for , which is sound for the structures of this chapter but not complete for them. From here on we therefore work in a different logic from the one in which proofs are programs, and we have paid for completeness with the witnesses.
History
The logic of this chapter was built over half a century of argument about what mathematics may assume. Its language is, in modern dress, the one Gottlob Frege introduced in his Begriffsschrift of 1879.23 It was the first formal language with quantifiers, and it came with the first system of proof precise enough that checking a proof needs no understanding of what it is about, only a comparison of shapes. Every proof checker since descends from it.
Frege built his language for a purpose. The nineteenth century had rebuilt the calculus on the arithmetic of the real numbers, and the real numbers on sets of rational numbers. Frege set out to finish the job by showing that arithmetic itself is logic: that the truths about numbers follow from laws of thought alone, so that mathematics rests on the firmest ground there is. This programme is logicism, and Frege carried it out in the two volumes of his Grundgesetze der Arithmetik (Frege, 1893).
In June 1902, with the second volume at the printer, a letter arrived from Bertrand Russell. One of Frege’s basic laws, Russell pointed out, allows a set of all sets that are not members of themselves; that set is a member of itself exactly when it is not, so the laws contradict one another.24
Russell’s paradox was one of several, and together they raised the question of what makes mathematics safe. Russell’s own answer was the theory of types, the ancestor of the type systems of programming languages. Two others bear on this chapter: David Hilbert’s, which kept classical mathematics whole and set out to prove it safe, and L. E. J. Brouwer’s, which rejected part of it, beginning with the law of the excluded middle. The section on classical and intuitionistic logic describes the logic that Brouwer’s answer produced. Hilbert’s is told here.
Hilbert proposed to secure classical mathematics by treating its proofs as finite strings of symbols and proving their consistency by reasoning about those strings with methods so elementary that even Brouwer could not object. This is Hilbert’s programme, whose three questions are the rows of the scoreboard at the end of each chapter.
His ambition was large: “Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können” (no one shall drive us out of the paradise that Cantor created for us).25 A year later he put the same thought more bluntly: “Taking the principle of excluded middle from the mathematician would be the same, say, as proscribing the telescope to the astronomer or to the boxer the use of his fists.”26
He meant that classical mathematics was too valuable to give up, and most mathematicians since have agreed with him in practice, whatever their view of the philosophy. Hilbert’s reply does not argue that Brouwer was wrong, only that Brouwer’s being right would cost a great deal.
Kurt Gödel answered one of Hilbert’s questions in his doctoral thesis of 1929, written when he was twenty-three: the completeness theorem of this chapter, proved for a Hilbert-style system rather than for . Two years later he showed that the consistency proof Hilbert wanted cannot be given, and the last chapter of this part of the course explains why.
The definition of satisfaction fits Frege’s view of truth. A sentence is about some things, and the things are there, determinate, whether or not anyone is looking. The sentence is true or false according to how they are, and it has its truth value before anyone finds out which value it is, and whether or not anyone ever does.27
Bivalence is no discovery about this picture. It was built into the definition of satisfaction when the clause for negation was written, and it says, in a single line, that every sentence has in every structure exactly one of two truth values.
The clause for the conditional is older than the rest of the definition. Philo of Megara, around 300 BC, held that a conditional is false only when it leads from a truth to a falsehood, against his teacher Diodorus Cronus, who asked that it never could; the dispute is known through Sextus Empiricus. Frege’s conditional is Philo’s, and Russell called it material implication. Its consequences have been called paradoxes ever since (see the remark on the conditional of science): on the material reading a true sentence is implied by anything, , a false one implies anything, , and of any two sentences one implies the other, . All three are valid, though “implies” in English seems to promise a connection between the two sentences. C. I. Lewis took the paradoxes for a defect and in 1912 proposed a strict implication, on which implies when it is impossible that hold and fail; the relevance logics of the 1950s to 1970s went further and asked that the antecedent actually be used in reaching the consequent.28 Defenders of the material reading answer that the paradoxes mix up what a conditional says with what makes it worth saying, and that the conditional of a law, which holds even of the cases it does not apply to, is exactly the material one; Williamson (2020) is a recent defence of this kind.
Tarski gave this picture a precise form. His definition of truth, published in 1933, is our definition of satisfaction, and his definition of consequence, presented in 1935 at the Paris congress of the Unity of Science movement, is our definition of entailment. The second answered Carnap, who had tried in Logische Syntax der Sprache (Carnap, 1934) to define consequence by the shapes of sentences alone, without mentioning truth. Tarski used Gödel’s incompleteness theorem (Chapter 8) to show that no definition by finitely many rules of inference can do the job, and objected that Carnap’s own definition depends on special features of his language. Carnap, who had met Tarski in Vienna and Warsaw in 1930, became the most energetic convert to semantics and built his Introduction to Semantics (Carnap, 1942) on Tarski’s work. Others in the Vienna Circle, Otto Neurath above all, suspected that talk of truth was metaphysics returning by the back door. With these definitions Gödel’s completeness theorem can be read as showing that, on this picture, the classical system is exactly right. On this view the law of the excluded middle is not a rule that we chose but a law of truth, and a proof system without it fails to see some truths. Gentzen’s of 1934 gave the proofs the form used here, and the proof of completeness in this chapter is Henkin’s of 1949. He found it by accident, as a graduate student at Princeton, while trying to prove something else, and he tells the story in Henkin (1996); it is now the proof in every textbook. Figure 6.12 collects the dates.
| Who | When | What |
|---|---|---|
| Frege | 1879 | quantifiers; proofs checked by their shape |
| Frege; Russell | 1893–1902 | logicism; the paradox in its laws |
| Hilbert | 1920s | a programme to prove mathematics safe |
| Gödel | 1929 | completeness |
| Gödel | 1931 | incompleteness |
| Tarski | 1933; 1936 | definitions of truth and of consequence |
| Gentzen | 1934 | and |
| Henkin | 1949 | the proof of completeness used here |
Summary
A system is modelled as a structure: a non-empty set of things, with a meaning for each symbol of a signature. A sentence is true or false in a structure by a definition with one clause for each kind of formula. Its two quantifier clauses loop over the domain, so on a finite structure the definition is an algorithm.
A theory entails a sentence when the sentence is true in every model of the theory; for a theory that describes a system, this means “true of every system that meets it”. The derivations of are finite certificates, and they are sound: they never lead from truths to a falsehood. They do not reach every sentence that is entailed, and the whole of the gap is one law, excluded middle.
Adding excluded middle gives , which is sound and complete, so a theory entails a sentence exactly when the sentence has a derivation from it. The price is that a proof of an existential sentence no longer says what exists.
Exercises
The exercises run from practice to proof.
Exercises 6.1 to 6.6 use the definitions on particular sentences and structures;
Exercises 6.7 to 6.12 ask for derivations and for the arguments behind the claims about and ;
Exercises 6.13 to 6.17 fill in the proofs that the text left to the reader.
Exercise 6.1. Let have a constant symbol , a one-place function symbol , one-place relation symbols and , and two-place relation symbols and . Let be the -structure with domain in which
names ;
sends to and every other to ;
is and is ;
is greater than, and is identity.
Read as “ is even”, as “ is odd”, as “ is greater than ” and as “the predecessor of ”. Translate the following into , and say whether each is true in :
every even number is greater than every odd number;
only is the predecessor of its own predecessor.
Translate the following into English, and say whether each is true in :
;
.
Exercise 6.2. Let have a constant symbol , a one-place function symbol , one-place relation symbols and , and a two-place relation symbol . Let be the -structure with domain in which names , is less than, and , and are given by the table
Evaluate each of the following in by a table with one row for each value of the outermost variable:
;
;
.
Exercise 6.3. Let have a constant symbol , a one-place function symbol and the two-place relation symbol . Let and be the -structures in which is identity, names , and
has domain , and sends , and to and sends and to ;
has domain , and sends and to and sends and to .
Find a -sentence that is true in and false in , and check both verdicts against the definition of satisfaction.
Exercise 6.4. Let have a constant symbol , a one-place function symbol , a one-place relation symbol and a two-place relation symbol , and let be the formula
Apply the recursion in the definition of substitution to put , and in turn for in , and say which of the three terms are substitutable for in .
Exercise 6.5. Let have a constant symbol , a one-place function symbol , one-place relation symbols and , and the two-place relation symbol . For each of the following, find a counter-model as small as you can make it, check it against the definition of satisfaction, and say why no smaller structure will do.
;
;
, in structures that interpret as identity.
Exercise 6.6. Let have a constant symbol , a one-place function symbol , and two-place relation symbols and , and let be the theory consisting of the two sentences
For each sentence, decide whether entails it. If it does, give a derivation in ; if not, give a counter-model in which is identity.
;
;
;
.
Exercise 6.7. Give a derivation of Peirce’s law, , in , for all formulas and .
Exercise 6.8. Let be a signature containing the two-place relation symbol , and its equality axioms. Show that
and
Exercise 6.9. Let be a one-place relation symbol. Someone offers a derivation witnessing , as follows: from , and the derivation of from the supposition (a single leaf), conclude by (E); then conclude by (I). Take the structure with domain in which is , and an assignment sending to . List the formulas of the derivation with their open hypotheses and truth values. Soundness says that in a correct derivation no line is false while all its open hypotheses are true; find the first line of this derivation that is false while its open hypotheses are true, and say which side condition it breaks.
Exercise 6.10.
Show that if derived every instance of Peirce’s law, , it would derive .
Show the same for every instance of .
Show that for every formula .
Exercise 6.11. In a signature with two constants and and a one-place relation symbol , show that derives but derives for no term . Why does it not help that there are now closed terms to choose from?
Exercise 6.12. Show that and , and that . Does derive the last?
Exercise 6.13.
Someone proposes a rule (E) that concludes from , with no case analysis. Try to write its case in the soundness proof, say where the attempt breaks, and give a structure that shows the rule unsound.
The derived step (DN) concludes from . Write the case it would have in the soundness proof if it were a rule. Which clause of satisfaction does the case use, and why does the same case not go through for a rule concluding from ?
Exercise 6.14. Prove the relevance lemma: first for terms (if and agree on , then ), and then for formulas, by induction.
Exercise 6.15.
Prove, by induction on the term , that if is a term then
Deduce from (a) the atomic case of the substitution lemma.
Where would the induction for formulas use the hypothesis that is substitutable for ?
Exercise 6.16.
Write out the case of the truth lemma.
Let be the set of sentences true in a structure in which every element is named by a closed term. Show that is model-like. Where is the hypothesis on names used?
Exercise 6.17. Let and be one-place relation symbols and a constant symbol, and let be .
Show that is consistent.
Show that , together with and , derives in .
Which condition of the Henkin lemma does the second added sentence break?
References
- Alan Ross Anderson and Nuel D. Belnap, Jr. Entailment: The Logic of Relevance and Necessity, volume I. Princeton University Press, Princeton, NJ, 1975.
- Errett Bishop. Foundations of Constructive Analysis. McGraw-Hill, New York, 1967.
- L. E. J. Brouwer. Over de Grondslagen der Wiskunde. PhD thesis, Universiteit van Amsterdam, 1907.
- L. E. J. Brouwer. De onbetrouwbaarheid der logische principes. Tijdschrift voor Wijsbegeerte, 2:152–158, 1908. English translation, “The unreliability of the logical principles”, in Brouwer, Collected Works, vol. 1, North-Holland, 1975.
- Rudolf Carnap. Logische Syntax der Sprache. Springer, Wien, 1934.
- Rudolf Carnap. Introduction to Semantics. Harvard University Press, Cambridge, MA, 1942.
- E. F. Codd. A relational model of data for large shared data banks. Communications of the ACM, 13(6):377–387, 1970.
- Michael Dummett. The philosophical basis of intuitionistic logic. In H. E. Rose and J. C. Shepherdson, editors, Logic Colloquium ’73, pages 5–40. North-Holland, Amsterdam, 1975.
- Michael Dummett. Elements of Intuitionism. Oxford University Press, Oxford, second edition, 2000.
- Anita Burdman Feferman and Solomon Feferman. Alfred Tarski: Life and Logic. Cambridge University Press, Cambridge, 2004.
- Gottlob Frege. Begriffsschrift, eine der arithmetischen nachgebildete Formelsprache des reinen Denkens. Louis Nebert, Halle, 1879. English translation by S. Bauer-Mengelberg in J. van Heijenoort (ed.), From Frege to Gödel, Harvard University Press, 1967, pp. 1–82.
- Gottlob Frege. Grundgesetze der Arithmetik. Hermann Pohle, Jena, 1893. Volume I 1893, volume II 1903.
- Gottlob Frege. Der Gedanke. Eine logische Untersuchung. Beiträge zur Philosophie des deutschen Idealismus, 1:58–77, 1918. English translation, “The thought: a logical inquiry”, Mind 65 (1956), 289–311.
- Gerhard Gentzen. Untersuchungen über das logische Schließen I, II. Mathematische Zeitschrift, 39:176–210, 405–431, 1934. Appeared 1934–35; English translation in The Collected Papers of Gerhard Gentzen, ed. M. E. Szabo, North-Holland, 1969.
- Kurt Gödel. Die Vollständigkeit der Axiome des logischen Funktionenkalküls. Monatshefte für Mathematik und Physik, 37:349–360, 1930. Doctoral dissertation, Vienna, 1929.
- Kurt Gödel. Zur intuitionistischen Arithmetik und Zahlentheorie. Ergebnisse eines mathematischen Kolloquiums, 4:34–38, 1933.
- Timothy G. Griffin. A formulae-as-types notion of control. In Proceedings of the 17th ACM Symposium on Principles of Programming Languages (POPL), pages 47–58, 1990.
- Leon Henkin. The completeness of the first-order functional calculus. Journal of Symbolic Logic, 14(3):159–166, 1949.
- Leon Henkin. The discovery of my completeness proofs. Bulletin of Symbolic Logic, 2(2):127–158, 1996.
- Arend Heyting. Die formalen Regeln der intuitionistischen Logik. Sitzungsberichte der Preussischen Akademie der Wissenschaften, Physikalisch-mathematische Klasse, pages 42–56, 1930.
- David Hilbert. Über das Unendliche. Mathematische Annalen, 95:161–190, 1926. English translation in van Heijenoort (1967), pp. 367–392.
- David Hilbert. Die Grundlagen der Mathematik. Abhandlungen aus dem Mathematischen Seminar der Hamburgischen Universität, 6:65–85, 1928. Lecture of 1927. English translation, “The foundations of mathematics”, in van Heijenoort (ed.), From Frege to Gödel, 1967, 464–479.
- A. Kolmogoroff. Zur Deutung der intuitionistischen Logik. Mathematische Zeitschrift, 35:58–65, 1932.
- A. N. Kolmogorov. O principe tertium non datur. Matematičeskij Sbornik, 32:646–667, 1925. English translation in van Heijenoort (1967), pp. 414–437.
- Saul A. Kripke. A completeness theorem in modal logic. Journal of Symbolic Logic, 24(1):1–14, 1959.
- Saul A. Kripke. Semantical analysis of intuitionistic logic I. In J. N. Crossley and M. A. E. Dummett, editors, Formal Systems and Recursive Functions, pages 92–130. North-Holland, Amsterdam, 1965.
- C. I. Lewis. Implication and the algebra of logic. Mind, 21(84):522–531, 1912.
- Paolo Mancosu, editor. From Brouwer to Hilbert: The Debate on the Foundations of Mathematics in the 1920s. Oxford University Press, New York, 1998.
- Open Logic Project. The Open Logic Text. https://openlogicproject.org, 2026. Release 9620cc7, 12 July 2026. Licensed CC BY 4.0.
- Charles S. Peirce. On the algebra of logic: A contribution to the philosophy of notation. American Journal of Mathematics, 7(2):180–202, 1885.
- Stephen Read. Relevant Logic: A Philosophical Examination of Inference. Basil Blackwell, Oxford, 1988.
- Raymond M. Smullyan. What Is the Name of This Book? Prentice-Hall, Englewood Cliffs, NJ, 1978.
- Alfred Tarski. Der Wahrheitsbegriff in den formalisierten Sprachen. Studia Philosophica, 1:261–405, 1935. First published in Polish, 1933. English translation in Tarski, Logic, Semantics, Metamathematics, Oxford, 1956.
- Alfred Tarski. Über den Begriff der logischen Folgerung. In Actes du Congrès International de Philosophie Scientifique, Paris 1935, volume VII, pages 1–11. Hermann, Paris, 1936.
- Dirk van Dalen. The war of the frogs and the mice, or the crisis of the Mathematische Annalen. The Mathematical Intelligencer, 12(4):17–31, 1990.
- Jean van Heijenoort, editor. From Frege to Gödel: A Source Book in Mathematical Logic, 1879–1931. Harvard University Press, Cambridge, MA, 1967.
- Hermann Weyl. Über die neue Grundlagenkrise der Mathematik. Mathematische Zeitschrift, 10:39–79, 1921.
- Timothy Williamson. Suppose and Tell: The Semantics and Heuristics of Conditionals. Oxford University Press, Oxford, 2020.
Notes
The resemblance is no accident. Codd’s relational model of data (Codd, 1970), on which SQL rests, treats a database as a finite structure, and its query languages are first-order logic in other notation. ↩
This is Tarski’s definition of truth, from Tarski (1935), first published in Polish in 1933. Its point, for Tarski, was that truth for a formal language can be defined without circularity: the definition of “true” for uses “true” only for . It was written for mathematicians and philosophers, and forty years later it was the evaluator inside every database query engine. Tarski was born Alfred Teitelbaum and took the name Tarski in 1923. In August 1939 he left for a congress at Harvard, on the last ship to sail from Poland for the United States before the German invasion; from 1942 he taught at Berkeley (Feferman and Feferman, 2004). ↩
Just as a local variable in a program hides an outer one of the same name. ↩
This is Tarski’s definition of consequence (Tarski, 1936); the History tells how it answered Carnap’s. ↩
That the indicative conditional of English is, after all, the material one is defended by Williamson (2020): we assess a conditional by supposing its antecedent and judging its consequent, a reliable but fallible habit, and the habit, not the truth condition, is what makes “if , then ” sound wrong. ↩
Showing that no derivation exists needs a different kind of structure, described in the section on classical and intuitionistic logic. ↩
Aristotle argues for it in Book of the Metaphysics. In chapter 9 of On Interpretation he also raises the first recorded doubt about bivalence: is “there will be a sea battle tomorrow” already true or false today? ↩
From Peirce (1885). Peirce, working at the same time as Frege and independently of him, also introduced quantifiers. ↩
Gentzen named the two systems so in the paper that introduced them, Gentzen (1934). The usual explanation of the J is that German typography of the time treated the capitals I and J as one letter. Gentzen’s NK adds excluded middle as an axiom; a rule with no premisses, as here, comes to the same thing. ↩
Gödel (1930) proved it for a Hilbert-style system. The proof given here is Henkin (1949)’s, and the History tells how both were found. ↩
Open Logic Project (2026, §23.7) gives the details for any set of sentences that contains the equality axioms. ↩
The name is from Smullyan (1978), who called it the drinking principle. Smullyan, a logician and a prolific inventor of logic puzzles, also performed as a professional magician. ↩
Brouwer (1907) and Brouwer (1908), both in Dutch; the second is titled The unreliability of the logical principles. In the years that followed, Brouwer proved the theorems that made his name in topology, among them his fixed-point theorem, by exactly the kind of argument his philosophy rejected: the proof shows that a fixed point exists without showing how to find one. ↩
Goldbach proposed a form of it in a letter to Euler in 1742, and Euler restated it in this form. It has been checked by computer for every even number up to , which settles nothing. ↩
The dispute was bitter. In 1921 Hermann Weyl, Hilbert’s former student, announced his conversion with the sentence “Brouwer, that is the revolution” (und Brouwer – das ist die Revolution) (Weyl, 1921); English translations of this paper, and of the other contributions to the debate, are collected in Mancosu (1998). Weyl later drifted back towards Hilbert. In 1928 Hilbert had Brouwer removed from the editorial board of the Mathematische Annalen, the leading journal of the day. Einstein, also on the board, refused to take sides and called the affair a Frosch-Mäusekrieg, a war of the frogs and the mice, after the ancient parody of Homer (van Dalen, 1990). ↩
The rules were first written down by Kolmogorov (1925), for a fragment, and by Heyting (1930), in full; the explanation of the connectives is named after Brouwer, Heyting and Kolmogorov. Kolmogorov’s version (Kolmogoroff, 1932) reads formulas as problems: is the problem of solving given a solution of . Gentzen’s of 1934 is this logic in the form used here. ↩
Kripke (1965). A structure with two stages, in which grows from one stage to the next, makes the sentence of Example 6.44 fail, and that is how one shows that cannot derive it. Kripke had published a completeness theorem for modal logic, by similar means, at the age of eighteen (Kripke, 1959). ↩
Gödel (1933). Gentzen found the same translation independently, and withdrew his paper when Gödel’s appeared. ↩
Dummett (1975); the book-length version is Dummett (2000). ↩
The separation is less clean than it looks. Griffin (1990) found that classical proofs are programs too, provided the programs may jump: the type of the control operator
call/ccof Scheme is Peirce’s law. What such a program returns as a witness may later be taken back. ↩Frege (1879). Frege’s notation was two-dimensional, a branching diagram on the page, and almost nobody adopted it. The notation that survived descends instead from Peirce’s, by way of Schröder and Peano. ↩
Frege added an afterword to the second volume, which begins: “Einem wissenschaftlichen Schriftsteller kann kaum etwas Unerwünschteres begegnen, als dass ihm nach Vollendung einer Arbeit eine der Grundlagen seines Baues erschüttert wird”: hardly anything less welcome can happen to a scientific writer than to have one of the foundations of his building shaken after the work is finished. Sixty years later Russell wrote that he knew of nothing to compare with Frege’s dedication to truth: with his life’s work collapsing, Frege “responded with intellectual pleasure clearly submerging any feelings of personal disappointment”. Both letters are in van Heijenoort (1967, pp. 124–128). ↩
Hilbert (1928), quoted from the English translation in van Heijenoort (1967, p. 476). ↩
Frege put it most directly in “The Thought”, Frege (1918), where a thought is true or false independently of whether anyone grasps it. ↩
Lewis (1912); Anderson and Belnap (1975); Read (1988) is a readable account. ↩