Quiz Bank: First-Order Logic and Model Theory in Natural Language (Montagovian notation)
Quiz bank: first-order logic and model theory in natural language
- Notation
- Shared model \(\mathcal{M}\)
- Part 1: Translation
- Part 2: Truth in a model
- Part 3: Countermodels and entailment
- Part 4: Changing the model
- Answer key
Notation
- Constants carry a prime: \(\mathit{student}'\), \(\mathit{read}'\), \(a'\). Variables are single characters: \(x, y, z\).
- Application is Montagovian and left-associative, so \(\mathit{read}'yx\) abbreviates \(((\mathit{read}'\,y)\,x)\). Arguments are in reverse order: the object comes first and the subject last. So \(\mathit{like}'yx\) means “\(x\) likes \(y\)”.
- A dot marks the scope of a quantifier, which extends as far right as possible, up to the closing parenthesis or the end of the formula: \(\forall x.\,\mathit{student}'x \to \exists y.\,\mathit{prof}'y \land \mathit{like}'yx\).
- Binding strength, strongest first: \(\lnot\), \(\land\) and \(\lor\), \(\to\). Use parentheses wherever a quantifier’s scope must be cut short, for example \((\exists x.\,\mathit{student}'x) \land (\exists x.\,\mathit{prof}'x)\).
- Identity is written \(x = y\) and \(x \neq y\).
Shared model \(\mathcal{M}\)
Domain \(D = \{a, b, c, p, q\}\) where \(a\) = Ayşe, \(b\) = Burak, \(c\) = Can, \(p\) = a novel, \(q\) = a dictionary. The individual constants \(a', b', c', p', q'\) denote \(a, b, c, p, q\) respectively.
| Constant | Meaning | Extension in \(\mathcal{M}\) |
|---|---|---|
| \(\mathit{student}'\) | is a student | \(\{a, b\}\) |
| \(\mathit{prof}'\) | is a professor | \(\{c\}\) |
| \(\mathit{book}'\) | is a book | \(\{p, q\}\) |
| \(\mathit{read}'\) | reads | \(\{(a,p), (b,p), (b,q)\}\) |
| \(\mathit{like}'\) | likes | \(\{(a,c), (b,c), (c,a)\}\) |
| \(\mathit{write}'\) | wrote | \(\{(c,p)\}\) |
For the binary constants, each pair is listed as (subject, object). So \((a,p) \in \mathit{read}'\) makes \(\mathit{read}'p'a'\) true. Extra constants for translation tasks: \(\mathit{dict}'\) (is a dictionary), \(\mathit{own}'\) (owns), \(\mathit{lazy}'\).
Part 1: Translation
1A. English to FOL
- Every student reads some book.
- Some book is read by every student. How does it differ from item 1?
- No student likes every professor.
- Only students read dictionaries.
- Exactly one student likes Can. (Use the constant \(c'\).)
- At least two students read the same book.
- Every student who owns a book reads it. (Donkey sentence: which quantifier does “a book” need, and why?)
- The professor wrote a book. (Use Russell’s analysis of the definite description.)
- “Every student likes a professor.” Give both readings and a situation where they differ.
- All students except Ayşe read a book. (Use \(a'\).)
1B. FOL to English
- \[\exists x.\,\mathit{student}'x \land \forall y.\,\mathit{book}'y \to \mathit{read}'yx\]
- \[\forall x.\,\mathit{prof}'x \to \lnot\exists y.\,\mathit{student}'y \land \mathit{like}'yx \land \lnot \mathit{like}'xy\]
- \[\forall x.\,\forall y.\,\mathit{like}'yx \to \lnot \mathit{read}'yx\]
1C. Spot the error
- “Every student reads a book” is rendered as \(\forall x.\,\mathit{student}'x \land \exists y.\,\mathit{book}'y \land \mathit{read}'yx\). What is wrong?
- “Some student is lazy” is rendered as \(\exists x.\,\mathit{student}'x \to \mathit{lazy}'x\). What is wrong?
Part 2: Truth in a model
Decide whether each formula is true in \(\mathcal{M}\) and justify with witnesses or counterexamples.
- \[\forall x.\,\mathit{student}'x \to \exists y.\,\mathit{book}'y \land \mathit{read}'yx\]
- \[\exists y.\,\mathit{book}'y \land \forall x.\,\mathit{student}'x \to \mathit{read}'yx\]
- \[\exists x.\,\mathit{student}'x \land \forall y.\,\mathit{book}'y \to \mathit{read}'yx\]
- \[\forall y.\,\mathit{book}'y \to \exists x.\,\mathit{student}'x \land \mathit{read}'yx\]
- \[\exists x.\,\exists y.\,\mathit{like}'yx \land \mathit{like}'xy\]
- \[\forall x.\,\mathit{student}'x \to \exists y.\,\mathit{prof}'y \land \mathit{like}'yx \land \lnot \mathit{like}'xy\]
- \[\exists x.\,\forall y.\,\mathit{like}'yx\]
- \[\forall x.\,\exists y.\,\mathit{like}'yx\]
- \[\forall x.\,\mathit{read}'p'x \to \mathit{student}'x\]
- \(\forall x.\,\mathit{student}'x \land \mathit{prof}'x \to \bot\) (Why is this true in \(\mathcal{M}\) even though it looks strange?)
- For the open formula \(\varphi(x) = \exists y.\,\mathit{book}'y \land \mathit{read}'yx\), list all assignments of \(x\) that satisfy it.
Part 3: Countermodels and entailment
- Give a model falsifying \(\forall x.\,\mathit{student}'x \to \exists y.\,\mathit{book}'y \land \mathit{read}'yx\).
- Show that \(\forall x.\,\exists y.\,\mathit{read}'yx \not\models \exists y.\,\forall x.\,\mathit{read}'yx\) by giving a countermodel. Describe it in plain English too.
- Show that \((\exists x.\,\mathit{student}'x) \land (\exists x.\,\mathit{prof}'x) \not\models \exists x.\,\mathit{student}'x \land \mathit{prof}'x\).
- Give a finite model of \((\forall x.\,\exists y.\,\mathit{like}'yx) \land \lnot\exists x.\,\mathit{like}'xx\). What is the smallest possible domain size?
- Does \(\forall x.\,\mathit{student}'x \to \mathit{read}'xx \models \exists x.\,\mathit{read}'xx\)? Explain.
- Does \(\exists x.\,\forall y.\,\mathit{read}'yx \models \forall y.\,\exists x.\,\mathit{read}'yx\)? Prove or refute.
- Give a model where “Every student reads a book” is true but “Every book is read by a student” is false.
- Write a sentence (with \(=\)) true exactly in models with exactly two elements, and give one model.
Part 4: Changing the model
Start from \(\mathcal{M}\) and make the smallest change asked for.
- Formula 21 is false. Change only \(\mathit{like}'\) to make it true.
- Formula 18 is true. Remove one pair from \(\mathit{read}'\) to make it false. Which single removals do not work, and why?
- Change only \(\mathit{write}'\) so that “Every book was written by a professor” becomes true.
- Change only the extension of \(\mathit{prof}'\) so that \(\forall x.\,\mathit{student}'x \to \exists y.\,\mathit{prof}'y \land \mathit{like}'yx\) becomes false.
- Can you falsify formula 20 by changing only \(\mathit{student}'\)? Why or why not?
- Add a new element \(e\) that belongs to no predicate. Which of these change truth value: (i) \(\forall x.\,\mathit{student}'x \to \exists y.\,\mathit{book}'y \land \mathit{read}'yx\), (ii) \(\forall x.\,\mathit{book}'x \lor \mathit{student}'x \lor \mathit{prof}'x\)?
- Make formula 22 true by adding as few pairs as possible.
Answer key
Part 1
- \[\forall x.\,\mathit{student}'x \to \exists y.\,\mathit{book}'y \land \mathit{read}'yx\]
- \(\exists y.\,\mathit{book}'y \land \forall x.\,\mathit{student}'x \to \mathit{read}'yx\). It is strictly stronger: item 1 allows a different book for each student.
- \[\lnot\exists x.\,\mathit{student}'x \land \forall y.\,\mathit{prof}'y \to \mathit{like}'yx\]
- \[\forall x.\,(\exists y.\,\mathit{dict}'y \land \mathit{read}'yx) \to \mathit{student}'x\]
- \[\exists x.\,\mathit{student}'x \land \mathit{like}'c'x \land \forall y.\,(\mathit{student}'y \land \mathit{like}'c'y) \to y = x\]
- \[\exists x.\,\exists y.\,\exists z.\,\mathit{student}'x \land \mathit{student}'y \land x \neq y \land \mathit{book}'z \land \mathit{read}'zx \land \mathit{read}'zy\]
- \(\forall x.\,\forall y.\,(\mathit{student}'x \land \mathit{book}'y \land \mathit{own}'yx) \to \mathit{read}'yx\). The universal reading is needed. An existential in the antecedent would leave \(y\) unbound in the consequent.
- \[\exists x.\,\mathit{prof}'x \land (\forall y.\,\mathit{prof}'y \to y = x) \land \exists z.\,\mathit{book}'z \land \mathit{write}'zx\]
- Surface scope: \(\forall x.\,\mathit{student}'x \to \exists y.\,\mathit{prof}'y \land \mathit{like}'yx\). Inverse scope: \(\exists y.\,\mathit{prof}'y \land \forall x.\,\mathit{student}'x \to \mathit{like}'yx\). They differ when each student likes a different professor.
- \(\forall x.\,(\mathit{student}'x \land x \neq a') \to \exists y.\,\mathit{book}'y \land \mathit{read}'yx\). Optionally add that Ayşe reads no book, depending on whether “except” implies it.
- Some student reads every book.
- No professor likes a student who does not like them back.
- Nobody reads anyone they like. More idiomatically, people never like what they read.
- The conjunction forces everything to be a student. It should use \(\to\) under \(\forall\). The dot scope also makes the final \(\mathit{read}'yx\) fall inside \(\exists y\) correctly, but the first conjunct is the real problem.
- It is true whenever anything is not a student. It should use \(\land\) under \(\exists\).
Part 2
| # | Value | Reason |
|---|---|---|
| 16 | True | \(a\) reads \(p\), \(b\) reads \(p\) |
| 17 | True | \(p\) is read by both students |
| 18 | True | \(b\) reads \(p\) and \(q\) |
| 19 | True | \(p\) by \(a\), \(q\) by \(b\) |
| 20 | True | \(a\) and \(c\) like each other |
| 21 | False | for \(a\), the only liked professor \(c\) likes \(a\) back |
| 22 | False | nobody likes everything, themselves included |
| 23 | False | \(p\) and \(q\) like nobody |
| 24 | True | only \(a\) and \(b\) read \(p\) |
| 25 | True | no element is both student and professor |
| 26 | \(x \mapsto a\), \(x \mapsto b\) | they read some book |
Part 3
- One student, no books, empty \(\mathit{read}'\).
- Take \(D = \{1,2,3,4\}\) and \(\mathit{read}' = \{(1,3), (2,4)\}\), with 1 and 2 the readers. Every reader reads something, but no single item is read by everyone.
- Domain \(\{1,2\}\), \(\mathit{student}' = \{1\}\), \(\mathit{prof}' = \{2\}\).
- Domain \(\{1,2\}\), \(\mathit{like}' = \{(1,2),(2,1)\}\). A one-element domain is impossible, so the minimum is 2.
- No. Take a model with empty \(\mathit{student}'\) and empty \(\mathit{read}'\): the premise is vacuously true and the conclusion false.
- Yes. If some \(x_0\) reads every \(y\), then every \(y\) has an \(x\) (namely \(x_0\)) with \(\mathit{read}'yx\).
- Students \(\{s\}\), books \(\{k_1, k_2\}\), \(\mathit{read}' = \{(s, k_1)\}\).
- \((\exists x.\,\exists y.\,x \neq y) \land \lnot\exists x.\,\exists y.\,\exists z.\,x \neq y \land y \neq z \land x \neq z\). Model: any 2-element set.
Part 4
- Delete \((c,a)\) from \(\mathit{like}'\). Then \(c\) no longer likes \(a\) back, and \(b\) is already fine.
- Remove \((b,p)\) or \((b,q)\). Removing \((a,p)\) does not work because \(b\) still witnesses the formula.
- Add \((c,q)\) to \(\mathit{write}'\).
- Make \(\mathit{prof}'\) empty. Students exist, but nobody they like is a professor.
- No. Formula 20 does not mention \(\mathit{student}'\), so changing it cannot affect it.
- (i) does not change, since \(e\) is not a student. (ii) changes from true to false, since \(e\) is none of the three.
- Pick \(c\) as the witness. It already likes \(a\), so add \((c,b)\), \((c,c)\), \((c,p)\), \((c,q)\): four new pairs.