Counting with Same
"Two children swam." "At most one child swam." "Only Ana swam." None of these has a word like all or some. Yet logic can say each of them, if it can say when two things are the same. How?
At least two
Domain: children at the pool
a: Ana
Sx: x swam
Try ∃x∃y(Sx ∧ Sy). It is not enough. The x and the y may be one child, counted twice. We must add that they are different:
∃x∃y((Sx ∧ Sy) ∧ x ≠ y)
Read it aloud: there are x and y, both swam, and x is not y. With one swimmer this is false. With two it is true.
At most one, and exactly one
At most one says that any two swimmers are one child: ∀x∀y((Sx ∧ Sy) → x = y). If nobody swam, it is true, because no pair of swimmers exists to break it.
Exactly one is at least one plus at most one: ∃x(Sx ∧ ∀y(Sy → y = x)). Read it: there is a swimmer x, and every swimmer y is x.
"Ana is the only one who swam" is Sa ∧ ∀x(Sx → x = a): Ana swam, and anyone who swam is Ana. Russell, in 1905, read "the" in the same way: "the king of France is bald" says there is exactly one king, and he is bald.
Test them in small worlds
Take Ana, Ben and Cara. We test four claims in worlds where one, two or three of them swam.
| Claim | Only Ana | Ana, Ben | All three | Only Ben |
|---|---|---|---|---|
| at least two | false | true | true | false |
| at most one | true | false | false | true |
| exactly one | true | false | false | true |
| Sa ∧ ∀x(Sx → x = a) | true | false | false | false |
Check one cell. Only Ben swam: at most one is true, because any two swimmers are Ben. But Sa is false, so the last claim is false.
Careful
∃x∃y(Sx ∧ Sy) does not say two children swam. The x and the y can be one child.
Try it at home
- Write "at least two" with the x ≠ y missing. Find a world with one swimmer where it is true.
- Write "Ben is the only one who swam", then check it in a world where Ben and Cara swam.
- Say "at most two swam" in words, then try writing it with three variables.
Words to know
- at least two - two things that are not the same
- at most one - any two such things are one thing
- exactly one - at least one and at most one
Big idea
With = and ≠ we can count: at least two, at most one, exactly one, and "the only one".