We often consider very similar propositions over and over: \(3 \lt 5\text{,}\)\(2 \lt 5\text{,}\)\(7 \lt 5\text{,}\) etc... In this section, we take what is in common with these statements and build a generic function whose input is from some domain (in this example, numbers), and whose output is either true or false.
SubsectionPredicates
Consider this mathematical sentence: “\(x \lt 5 \)”.
\(x\) is a variable, the subject of the sentence.
“is less than five” is the predicate
A predicate is a property that a subject can have.
We can write \(P(x) :=\) “\(x \lt 5 \text{,}\)” where
the value of \(P(x)\) is the value of the propositional function \(P\) at \(x\text{.}\)
Assigning a value to \(x\) makes \(P\) a proposition (it then has a truth value)
Definition2.3.1.Domain of Discourse.
The domain of discourse (or universe of discourse) is the collection from which variables can take values.
For example, if my predicate function is “\(x\) is sharp”, the function has a different meaning if my universe of discourse is “all college students” versus “all tools.”
The domain of discourse is the domain of the propositional function. Like all functions, it depends on the particular function we’re considering. The codomain of a propositional function will always be the set \(\{\text{true, false}\}\text{.}\)
Example2.3.2.
Determine the truth values of the following:
If \(P(x):=\) “The word \(x \) contains the letter a”.
With the idea of generic propositional functions taken care of, we now want to make sweeping claims about the truth of a propositional function over some domain. Is the statement true for every value in the domain? Is the statement true for some specific value? These questions come up so frequently in mathematics that we give them each their own symbol.
Definition2.3.3.Universal Quantifier.
The universal quantification of \(P(x)\) is the statement that \(P(x)\) is true for all values of \(x\) in the domain of discourse. We write \(\forall x P(x)\)
A counterexample is an \(x\) value for which \(P(x)\) is false.
The existential quantification of \(P(x)\) is the statement that there is some value \(x\) in the universe of discourse for which \(P(x)\) is true. We write \(\exists x P(x)\)
Counterexamples to universal statements work because if \(\exists x \neg P(x)\) is true, then \(\neg \forall x P(x)\) is also true, that is, \(\forall x P(x)\) is false!
Example2.3.10.
For each negation below, write the statement using quantifiers to confirm each is correct.
The negation of “There exists a green horse” is “No horse is green.”
The negation of “All people wear hats” is the statement “Some person doesn’t wear hats”.
The negation of “Nobody loves math” is “Someone does love math”.
Find the negation of “some drivers don’t obey the speed limit.”.
If the universe of discourse is all people at the university, and \(P(x)\) is the statement “\(x\) loves to drink coffee,” express each statement in plain English:
Your answer shouldn’t have \(x\) in it anywhere! Regular people don’t say “For all x if x is fast, then...” Here some some ideas (your answer may very)
All athletes are fast.
Everyone is a fast athlete.
Some fast person is an athlete.
There is a slow athlete.
4.
Let \(C(x)\) denote the predicate “\(x\) is in the correct place”, let \(E(x)\) denote “\(x\) is in excellent condition”, and let \(T(x)\) denote “\(x\) is a tool” where the domain of each predicate is the set of objects in a garage. Translate each into plain English:
\(\displaystyle \exists x \neg C(x)\)
\(\displaystyle \exists x (T(x) \land \neg C(x))\)
\(\displaystyle \forall x (T(x) \to (C(x) \land E(x)))\)
\begin{align*}
\neg \exists x \forall y (\neg O(x) \vee E(y)) \amp \equiv \forall x \neg \forall y (\neg O(x) \lor E(y))\\
\amp \equiv \forall x \exists y \neg (\neg O(x) \lor E(y))\\
\amp \equiv \forall x \exists y \neg \neg O(x) \land \neg E(y)\\
\amp \equiv \forall x \exists y O(x) \land \neg E(y)
\end{align*}
Applying DeMorgan’s laws many, many times and noting that the opposite of \(x\lt a\) is \(x \ge a\text{:}\)
\begin{align*}
\amp\neg \forall x \neg \forall y \neg(x \lt y \wedge \exists z (x \lt z \vee y \lt z)) \\
\amp\equiv \neg \forall x \neg \forall y \neg(x \lt y \wedge \exists z (x \lt z \vee y \lt z)) \\
\amp \equiv \exists x \neg \neg \forall y \neg(x \lt y \wedge \exists z (x \lt z \vee y \lt z)) \\
\amp \equiv \exists x \forall y \neg(x \lt y \wedge \exists z (x \lt z \vee y \lt z)) \\
\amp \equiv \exists x \forall y \neg(x \lt y ) \lor \neg ( \exists z (x \lt z \vee y \lt z)) ) \\
\amp \equiv \exists x \forall y \neg(x \lt y ) \lor \forall z \neg (x \lt z \vee y \lt z)) ) \\
\amp \equiv \exists x \forall y \neg(x \lt y ) \lor \forall z \neg (x \lt z) \land \neg (y \lt z))) \\
\amp \equiv \exists x \forall y (x \ge y ) \lor \forall z (x \ge z) \land (y \ge z)))
\end{align*}
This statement can be written \(\exists n \neg \exists x (x \le n)\text{.}\) It can be simplified as \(\exists n \forall x \neg (x \le n)\text{,}\) and even further as \(\exists n \forall x (x \gt n)\)
This statement can be written \(\neg \forall n \exists x \exists y (x \lt n \lt y)\)
\begin{align*}
\neg \forall n \exists x \exists y (x \lt n \lt y) \amp \equiv \exists n \neg \exists x \exists y (x \lt n \lt y) \\
\amp \equiv \exists n \forall x \neg \exists y (x \lt n \lt y) \\
\amp \equiv \exists n \forall x \forall y \neg (x \lt n \lt y)
\end{align*}
6.
Consider the statement, “There is a building on the campus of some college in the United States in which every room is painted white.”
Express the statement using quantifiers. Be sure to define your predicate function and specify the domain of each of the three variables.
Express the negation of the above logical quantified statement so that no negation is to the left of a quantifier.
Write the negation of the statement in plain English.
Let \(c\) come from the universe of colleges in the US, \(b\) be from the universe of buildings on a chosen campus and \(r\) be the rooms in a chosen building.
We have to first select a college, then find the building on that campus:
\(\exists c \exists b \forall r (b \text{ on the campus of } c \text{ in which } r \text{ is painted white})\)
Start with the negation on the left and apply DeMorgan’s laws
\begin{align*}
\amp \neg \exists c \exists b \forall r (b \text{ on the campus of } c \text{ in which } r \text{ is painted white})\\
\amp \equiv \forall c \forall b \exists r \neg(b \text{ on the campus of } c \text{ in which } r \text{ is painted white})
\end{align*}
On every campus in the US, every building has at least one room that isn’t painted white.