Subsection 4.1.10 Practice Using Nested Quantifiers
To use the language of logic effectively requires being able to translate back and forth between it and ideas (possibly expressed as sentences in English or some other natural language). It takes practice to be able to do that.
In particular, when we use nested quantifiers, the order in which we write them often (but not always – more on that later) matters.
Exercises Exercises
1.
1. Suppose that we’d like to describe one small piece of an ideal world and say that everyone has someplace to live. Assume the domain of people. Define:
AddressOf(x, y): True if x lives at address y.
Which (one or more) of the following statements say(s) that everyone has an address:
I. ∃x (∀y (AddressOf(x, y)))
II. ∀x (∃y (AddressOf(x, y)))
III. ∀x (∀y (AddressOf(x, y)))
IV. ∃x (∃y (AddressOf(x, y)))
1
2
3
4
2.
Bad Movie We want to claim that there’s a movie that everyone in our class hates. Define:
Movie(x): True if x is a movie.
InClass(x): True if x is in our class
Hates(x, y): True if x hates y.
Note: As you read these definitions, as well as the statements below, remember that variable names are arbitrary. We tend to reuse the same one-letter ones. The only thing that matters is that they be used consistently throughout an expression. So, for example, an equivalent definition of hates would be:
Hates(y, x): True if y hates x.
Which (one or more) of the following statements says that there’s a movie that everyone in our class hates:
∃x (Movie(x) ∧ ∀y (InClass(y) → Hates(y, x)))
∃x (Movie(x) ∧ ∀x (InClass(x) → Hates(x, x)))
∀x (Movie(x) → ∃y (InClass(y) → Hates(y, x)))
∀x (Movie(x) ∧ ∀y (InClass(y)) → Hates(y, x)))
1
2
3
4
3.
Suppose that we want to represent the fact that every pen has a color. Consider the following predicate logic expressions:
I. ∀x (Pen(x) → ∃y (ColorOf(y, x)))
II. ∃x (∀y (Pen(x) → ColorOf(y, x)))
III. ∀x (∀y (Pen(x) → ColorOf(y, x)))
IV. ∃x (∃y (Pen(x) → ColorOf(y, x)))
Which (one or more) of these expressions captures our fact?
Just I.
Just II.
Just III.
Two of them.
All of them.