This page does not represent the most current semester of this course; it is present merely as an archive.
This page was based on a lecture from Spring 2020.
domain: | people |
H(x): | x is happy |
C(x): | x is in this class |
A(x,y): | x appreciates y |
t: | Luther Tychonievich |
\forall x \;.\; C(x) \rightarrow H(x)
Note that \forall x \;.\; C(x) \land H(x) is wrong: it is only satisfied if every person is in the class and every person is happy.
\exists x \;.\; C(x) \land H(x)
Note that \exists x \;.\; C(x) \rightarrow H(x) is wrong: it is satisfied if anyone is not in the class (happy or not), or anyone is happy (in the class or not).
\lnot \forall x \;.\; H(x)
See also the next sentence, which is equivalent to this. If done properly, any equivalent sentence in English translates into a logically equivalent predicate logic formula.
\exists x \;.\; \lnot H(x)
See also the previous sentence, which is equivalent to this.
Sometimes it is important to distinguish between unhappy
and not happy
, which can be different if there is a neither-happy-nor-unhappy state. We’ll generally not deal with that nuance in this class.
This can be handled several ways:
\exists x \;.\; H(x) \land \forall y\;.\; \big((x \neq y) \rightarrow \lnot H(y)\big)
We can commute quantifiers over expressions that do not involve their variable:
\exists x \;.\; \forall y\;.\; H(x) \land \big((x \neq y) \rightarrow \lnot H(y)\big)
We cannot commute quantifiers over other quantifiers; for example \forall y\;.\; \exists x \;.\; H(x) \land \big((x \neq y) \rightarrow \lnot H(y)\big) means Pick anyone you want and I can find someone who is happy such that either my person is your person or your person is unhappy
; this is trivially true because I can always pick the same person you picked.
\forall x, y \;.\; \big(H(x) \land H(y)\big) \rightarrow (x = y)
Note that we commonly combine quantifiers of the same kind, and can commute them; the above is equivalent to both of the following:
\forall x \;.\; \forall y \;.\; \big(H(x) \land H(y)\big) \rightarrow (x = y)
\forall y \;.\; \forall x \;.\; \big(H(x) \land H(y)\big) \rightarrow (x = y)
Note this does not include the claim at least one person is happy
; we could add that with
\Big(\exists z \;.\; H(z)\Big) \land \Big(\forall x, y \;.\; \big(H(x) \land H(y)\big) \rightarrow (x = y)\Big)
\forall x, y \;.\; (x \neq y) \rightarrow \big(\lnot H(x) \lor \lnot H(y)\big)
Like the previous, this does not include at lease one person is happy
but that can be added
Also has several forms
\exists x \;.\; \big(C(x) \land H(x)\big) \land \Big(\forall y \;.\; \big(C(y) \land (x \neq y)\big) \rightarrow \lnot H(y)\Big)
Again, we can commute the \forall y: \exists x \;.\; \forall y \;.\; \big(C(x) \land H(x)\big) \land \Big(\big(C(y) \land (x \neq y)\big) \rightarrow \lnot H(y)\Big)
For everyone, there is someone they appreciate:
\forall x \;.\; \exists y \;.\; A(x,y)
Note again we cannot commute the different quantifiers across each other. \exists y \;.\; \forall x \;.\; A(x,y) means there is someone that everyone appreciates
.
For everyone, there is someone (not them) that they appreciate:
\forall x \;.\; \exists y \;.\; (x \neq y) \land A(x,y)
There is ambiguity in the English: is this an observation that among those we each appreciate is someone who reciprocates that appreciation; or is it a universal rule that everyone reciprocates all appreciation?
For everyone, there is someone (not them) that they appreciate and appreciates them:
\forall x \;.\; \exists y \;.\; (x \neq y) \land A(x,y) \land A(y,x)
This also has the same ambiguity noted for the previous item, leading to
\forall x, y \;.\; (x \neq y) \rightarrow \big(A(x,y) \leftrightarrow A(y,x)\big)
There is ambiguity in this sentence, as with the two before.
If a person
means everyone
, we have
\forall x, y \;.\; A(x,y) \rightarrow A(y,x) \forall x, y \;.\; A(x,y) \leftrightarrow A(y,x)
If a person
means someone
, we have
\forall x \;.\; \exists y \;.\; A(x,y) \land A(y,x)
For everyone, if they are in the class then is someone who in this class and they appreciate them:
\forall x \;.\; C(x) \rightarrow \big(\exists y \;.\; C(y) \land A(x,y)\big) \forall x \;.\; \exists y \;.\; C(x) \rightarrow \big(C(y) \land A(x,y)\big)
There are several ways to go:
There is an ambiguity in the English. Does it mean there is one special person in the class who you have to appreciate to get Tychonievich’s appreciation, or that you may appreciate anyone in the class you wish? Let’s look at one version for each: