Quiz Bank: First-Order Logic and Model Theory in Natural Language
Quiz bank: first-order logic and model theory in natural language
- 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
Shared model \(\mathcal{M}\)
Domain \(D = \{a, b, c, p, q\}\) with \(a\) = Ayşe, \(b\) = Burak, \(c\) = Can, \(p\) = a novel, \(q\) = a dictionary.
| Symbol | Meaning | Extension in \(\mathcal{M}\) |
|---|---|---|
| \(S\) | is a student | \(\{a, b\}\) |
| \(P\) | is a professor | \(\{c\}\) |
| \(B\) | is a book | \(\{p, q\}\) |
| \(R\) | reads | \(\{(a,p), (b,p), (b,q)\}\) |
| \(L\) | likes | \(\{(a,c), (b,c), (c,a)\}\) |
| \(W\) | wrote | \(\{(c,p)\}\) |
Further symbols for translation tasks: \(D(x)\) = dictionary, \(O(x,y)\) = owns, constants \(a\), \(c\).
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.
- 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.
1B. FOL to English
- \[\exists x\,(S(x) \land \forall y\,(B(y) \to R(x,y)))\]
- \[\forall x\,(P(x) \to \neg\exists y\,(S(y) \land L(x,y) \land \neg L(y,x)))\]
- \[\forall x\,\forall y\,(L(x,y) \to \neg R(x,y))\]
1C. Spot the error
- “Every student reads a book” is rendered as \(\forall x\,(S(x) \land \exists y\,(B(y) \land R(x,y)))\). What is wrong?
- “Some student is lazy” is rendered as \(\exists x\,(S(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\,(S(x) \to \exists y\,(B(y) \land R(x,y)))\]
- \[\exists y\,(B(y) \land \forall x\,(S(x) \to R(x,y)))\]
- \[\exists x\,(S(x) \land \forall y\,(B(y) \to R(x,y)))\]
- \[\forall y\,(B(y) \to \exists x\,(S(x) \land R(x,y)))\]
- \[\exists x\,\exists y\,(L(x,y) \land L(y,x))\]
- \[\forall x\,(S(x) \to \exists y\,(P(y) \land L(x,y) \land \neg L(y,x)))\]
- \[\exists x\,\forall y\,L(x,y)\]
- \[\forall x\,\exists y\,L(x,y)\]
- \[\forall x\,(R(x,p) \to S(x))\]
- \(\forall x\,(S(x) \land P(x) \to \bot)\) (Why is this true in \(\mathcal{M}\) even though it looks strange?)
- For the open formula \(\varphi(x) = \exists y\,(B(y) \land R(x,y))\), list all assignments of \(x\) that satisfy it.
Part 3: Countermodels and entailment
- Give a model falsifying \(\forall x\,(S(x) \to \exists y\,(B(y) \land R(x,y)))\).
- Show that \(\forall x\,\exists y\,R(x,y) \not\models \exists y\,\forall x\,R(x,y)\) by giving a countermodel. Describe it in plain English too.
- Show that \(\exists x\,S(x) \land \exists x\,P(x) \not\models \exists x\,(S(x) \land P(x))\).
- Give a finite model of \(\forall x\,\exists y\,L(x,y) \land \neg\exists x\,L(x,x)\). What is the smallest possible domain size?
- Does \(\forall x\,(S(x) \to R(x,x)) \models \exists x\,R(x,x)\)? Explain.
- Does \(\exists x\,\forall y\,R(x,y) \models \forall y\,\exists x\,R(x,y)\)? 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 \(L\) to make it true.
- Formula 18 is true. Remove one tuple from \(R\) to make it false. Which single removals do not work, and why?
- Change only \(W\) so that “Every book was written by a professor” becomes true.
- Change only the extension of \(P\) so that \(\forall x\,(S(x) \to \exists y\,(P(y) \land L(x,y)))\) becomes false.
- Can you falsify formula 20 by changing only \(S\)? Why or why not?
- Add a new element \(e\) that belongs to no predicate. Which of these change truth value: (i) \(\forall x\,(S(x) \to \exists y\,(B(y) \land R(x,y)))\), (ii) \(\forall x\,(B(x) \lor S(x) \lor P(x))\)?
- Make formula 22 true by adding as few tuples as possible.
Answer key
Part 1
- \[\forall x\,(S(x) \to \exists y\,(B(y) \land R(x,y)))\]
- \(\exists y\,(B(y) \land \forall x\,(S(x) \to R(x,y)))\). It is strictly stronger: item 1 allows different books per student.
- \[\neg\exists x\,(S(x) \land \forall y\,(P(y) \to L(x,y)))\]
- \[\forall x\,(\exists y\,(D(y) \land R(x,y)) \to S(x))\]
- \[\exists x\,(S(x) \land L(x,c) \land \forall y\,((S(y) \land L(y,c)) \to y = x))\]
- \[\exists x\,\exists y\,\exists z\,(S(x) \land S(y) \land x \neq y \land B(z) \land R(x,z) \land R(y,z))\]
- \(\forall x\,\forall y\,((S(x) \land B(y) \land O(x,y)) \to R(x,y))\). A universal reading is needed; \(\exists\) in the antecedent would leave \(y\) unbound in the consequent.
- \[\exists x\,(P(x) \land \forall y\,(P(y) \to y = x) \land \exists z\,(B(z) \land W(x,z)))\]
- Surface scope: \(\forall x\,(S(x) \to \exists y\,(P(y) \land L(x,y)))\). Inverse scope: \(\exists y\,(P(y) \land \forall x\,(S(x) \to L(x,y)))\). They differ when each student likes a different professor.
- \(\forall x\,((S(x) \land x \neq a) \to \exists y\,(B(y) \land R(x,y)))\). 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 (people never like what they read).
- The conjunction forces everything to be a student. It should use \(\to\) under \(\forall\).
- 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 \(R\) (or a student who reads nothing).
- Take \(D = \{1,2,3,4\}\) and \(R = \{(1,3), (2,4)\}\). Every element of \(\{1,2\}\) has an \(R\)-successor, but no single element is read by both.
- Domain \(\{1,2\}\), \(S = \{1\}\), \(P = \{2\}\).
- Domain \(\{1,2\}\), \(L = \{(1,2),(2,1)\}\). A one-element domain is impossible, so the minimum is 2.
- No. Take a model with empty \(S\) and empty \(R\); the premise is vacuously true, the conclusion false.
- Yes. If some \(x_0\) is related by \(R\) to every \(y\), then every \(y\) has an \(x\) (namely \(x_0\)) with \(R(x,y)\).
- Students \(\{s\}\), books \(\{k_1, k_2\}\), \(R = \{(s, k_1)\}\).
- \(\exists x\,\exists y\,(x \neq y) \land \neg\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 \(L\). Then \(a\) likes \(c\) without being liked back, and \(b\) likes \(c\) the same way.
- Remove \((b,p)\) or \((b,q)\). Removing \((a,p)\) does not work because \(b\) still witnesses the formula.
- Add \((c,q)\) to \(W\).
- Make \(P\) empty. Students exist, but nobody they like is a professor.
- No. Formula 20 does not mention \(S\), so changing \(S\) 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 tuples.