Sheet 10 of 22
Quantifiers
Needs sheet 05 to see what tables cannot do and sheet 06 for the conditional.
“All humans are mortal, Socrates is a human, so Socrates is mortal.” That argument defeated the tables on sheet 05 because its validity lives inside the statements. To see it you need to split a sentence into what it is about and what it says. Gottlob Frege showed how, in his Begriffsschrift of 1879, and Charles Sanders Peirce and his students reached a similar notation independently. It is hard to overstate what this did for the subject. Aristotle’s logic had been the main account for about two thousand years; within a few decades it had been absorbed as a small part of something far larger.
Definition
Predicate. An expression with gaps which becomes a statement when the gaps are filled. Hx might mean “x is human”. Lxy might mean “x loves y”.
Definition
Constant. A letter naming one particular thing, such as s for Socrates. So Hs says Socrates is human.
Definition
Domain. The collection of things the variables range over. “Everyone” assumes a domain of people. Whether a claim is true can depend on it.
Definition
Universal quantifier. ∀x means “for every x in the domain”. It is true when the following formula holds of each thing in the domain.
Definition
Existential quantifier. ∃x means “for at least one x in the domain”. It is true when the following formula holds of something in the domain.
“Some” in logic means at least one, with no suggestion of “not all”. If you say “some of the cake is gone” and it has all gone, you have misled me but you have not lied.
10.1 Translation
Four patterns cover most English, and they are worth memorising.
| English | Formula |
|---|---|
| All A are B | ∀x(Ax → Bx) |
| No A are B | ∀x(Ax → ¬Bx) |
| Some A are B | ∃x(Ax ∧ Bx) |
| Some A are not B | ∃x(Ax ∧ ¬Bx) |
The universal goes with →, and the existential goes with ∧. Swapping them gives something quite different, and here is why.
Counterexample
“All dogs bark” is not ∀x(Dx ∧ Bx). That says everything in the domain is a barking dog, including your kettle.
Counterexample
“Some dogs bark” is not ∃x(Dx → Bx). That is true as soon as anything at all is a non-dog, because a conditional with a false antecedent is true. Your kettle makes it true, and the kettle does not bark.
Now the Socrates argument has visible structure.
∀x(Hx → Mx)Hs
Therefore: Ms
The rule that takes you from the first premise to Hs → Ms is universal instantiation: what holds of everything holds of s. Then modus ponens does the rest.
| Rule | Name | Condition |
|---|---|---|
From ∀xFx, write Fa | ∀E | Any constant will do. |
From Fa, write ∀xFx | ∀I | Only when a is arbitrary: no premise or open assumption mentions it. |
From Fa, write ∃xFx | ∃I | None. |
From ∃xFx, and a subproof from Fa to C, write C | ∃E | a must be new, and must not appear in C. |
The conditions are doing serious work. The ∀I rule is what a mathematician uses in writing “let n be any number”: the result holds for all because nothing specific about n was used. Skip the condition, and you can infer from “Socrates is a Greek” that everything is Greek.
10.2 Negation
Quantifiers trade with negation, in a way that echoes De Morgan.
| This | Says the same as | In English |
|---|---|---|
¬∀xFx | ∃x¬Fx | Not everything is F; something isn’t. |
¬∃xFx | ∀x¬Fx | Nothing is F; everything isn’t. |
This makes it clear how to attack a generalisation. To refute “All swans are white” you need one non-white swan. To refute “Some swan is green” you have to show that all of them aren’t, which is a much bigger job. There is a reason why sheet 16 exists.
Example
“All that glitters is not gold” is ambiguous. Taken literally it says ∀x(Gx → ¬Ax): nothing that glitters is gold. The proverb means ¬∀x(Gx → Ax): not all that glitters is gold. Gold itself glitters, so the literal reading is false and the proverb is true. Spoken English is relaxed about where the “not” goes. Logic cannot be.
10.3 Order
With one quantifier, the formulas are tame. With two, they can do things English struggles to express.
Let the domain be people and Lxy mean “x loves y”.
| Formula | Reading |
|---|---|
∀x∃yLxy | Everybody loves somebody (perhaps different people). |
∃y∀xLxy | There is one person whom everybody loves. |
∃x∀yLxy | There is someone who loves everybody. |
∀y∃xLxy | Everybody is loved by somebody. |
Only the order of two symbols separates the first two lines. The second implies the first and not the other way round.
Definition
Quantifier shift fallacy. Moving from ∀x∃y to ∃y∀x.
Counterexample
“Every effect has a cause, so there is one cause of everything.” “Everybody has a mother, so somebody is everybody’s mother.” Set out like that the mistake is plain. It is less plain in “Every journey ends somewhere, so there is some place all journeys end.” For a concrete model showing the failure, let the domain be two people, Ann and Ben, each of whom loves only the other. Everybody loves somebody, and there is nobody whom everybody loves.
Calculus students meet the same issue as the difference between continuity and uniform continuity, which comes down to exactly this swap in the order of quantifiers. Lawyers meet it in “Every employee shall report to a manager”.
10.4 Models
For propositional logic a counterexample is a row. In quantifier logic it is a model: a domain together with an interpretation of the predicates.
Example
Is ∃xFx ∧ ∃xGx enough for ∃x(Fx ∧ Gx)? Try the domain {1, 2}, with F true of 1 only and G true of 2 only. Something is F, something is G, and nothing is both. So it is invalid. “Some people are tall and some people are short, so some people are tall and short.”
A big difference from sheet 05 follows. A domain can be infinite, and there are infinitely many models, so you cannot check them all. Alonzo Church and Alan Turing proved in 1936 that no general procedure can decide validity for first-order logic. You can always confirm a valid argument, by finding its proof, since the logic is complete, as Gödel showed in 1929. But for an invalid argument, the search may never end. The propositional table test has no equal here.
10.5 Empty things
Definition
Vacuously true. A universal conditional is vacuously true when nothing satisfies its antecedent.
“All unicorns in this room are purple” is true. There are no unicorns here, so there is no counterexample. That follows from →, and it has the same mixed reputation.
It is useful. “Everyone who failed the test has been contacted” remains true when nobody failed, and the database that checks such things will not need a special case. In mathematics, the empty set is a subset of every set for this reason (sheet 12).
It also has a cost. It means ∀x(Ax → Bx) does not imply ∃x(Ax ∧ Bx), so “all A are B” no longer entails “some A are B”. Aristotle’s system assumed the opposite, and sheet 11 sorts this out.
Standard logic also assumes the domain is not empty, and that every name refers to something. Free logic drops the second assumption, to deal with sentences about Sherlock Holmes or Vulcan.
Try to break this
Translate “Only the brave deserve the fair”, and read your formula back in plain English. Now try “Nobody likes everybody.” Does your formula still mean what you think it does if you move the negation one step to the right? (¬∃x∀yLxy versus ∃x¬∀yLxy.) Write out both in English. This is the sort of mistake a formula catches and a sentence hides.
10.6 Exercises
Translate with
Sxfor “x is a student” andPxfor “x passed”. (a) “All students passed.” (b) “Some students did not pass.” (c) “No student passed.” (d) “Not all students passed.”Answer
(a)
∀x(Sx → Px). (b)∃x(Sx ∧ ¬Px). (c)∀x(Sx → ¬Px). (d)¬∀x(Sx → Px), which is equivalent to (b).Is
∀x(Fx ∨ Gx)equivalent to∀xFx ∨ ∀xGx?Answer
No. “Everyone is left-handed or right-handed” could be true while it is false that everyone is left-handed and false that everyone is right-handed. The second implies the first and not the reverse. (
∃behaves the other way: it distributes over∨and not over∧.)Write the negation of “Every door in this building has a lock” in a form with no negation in front of the quantifier.
Answer
∃x(Dx ∧ ¬Lx): some door in this building has no lock.Read
∀x∃y(y > x)and∃y∀x(y > x)with the domain of natural numbers. Which is true?Answer
The first says that for each number there is a bigger one, which is true. The second says there is a number bigger than all numbers, including itself, which is false.
Give a model that shows
∀x∃yRxydoes not entail∃x∀yRxy.Answer
Domain {1, 2}, with
Rtrue only of the pairs (1, 1) and (2, 2). Each thing bears R to something, namely itself. Neither bears it to both.“All the people in the room over seven feet tall are wearing hats.” There is no such person in the room. True or false, on the standard reading? What would most speakers say?
Answer
True on the standard reading, vacuously. Most speakers would find it misleading or say it has no truth value, because it suggests there is someone like that. The formula records the truth conditions and not the suggestion.