Skip to main content

Section 2.3 Propositional Functions and Quantifiers

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.

Subsection Predicates

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)

Definition 2.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{.}\)

Subsection Logical Quantifiers

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.

Definition 2.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.
Video / Answer.

Definition 2.3.4. Existential Quantifier.

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)\)
Video / Answer.

Example 2.3.5.

Let \(P(x)\) be β€œ\(x^2 \ge 0\)”. What is the truth value of \(\forall x P(x)\) if the domain is:
  1. All real numbers
  2. All complex numbers

Example 2.3.6.

Let the domain be all real numbers. Find a counterexample to the following statements:
  1. \(\displaystyle \forall x (x^2 \not= x)\)
  2. \(\displaystyle \forall x (|x| \gt 0)\)
  3. \(\displaystyle \forall x (x \gt 3 \vee x \lt 2)\)
Video / Answer.

Example 2.3.7.

We can combine quantifiers, where each variable might come from a different domain. Precedence of quantifiers is left to right.
What is the truth value of the following expressions where the domain is all real numbers:
  1. \(\displaystyle \forall x \exists y ( xy = 5)\)
  2. \(\displaystyle \exists x \forall y ( xy = 5)\)
Video / Answer.

Remark 2.3.8. Negating Quantifiers.

The negation of quantifiers is found as follows:
\begin{align*} \neg \forall x P(x) \amp\equiv \exists x \neg P(x) \\ \neg \exists x P(x) \amp\equiv \forall x \neg P(x) \end{align*}
It might help to think β€œnot all...” is equivalent to β€œsome... do not”. While β€œthere isn’t one who...” is the same as β€œno one does...”.
Video / Answer.

Note 2.3.9.

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!

Example 2.3.10.

For each negation below, write the statement using quantifiers to confirm each is correct.
  1. The negation of β€œThere exists a green horse” is β€œNo horse is green.”
  2. The negation of β€œAll people wear hats” is the statement β€œSome person doesn’t wear hats”.
  3. The negation of β€œNobody loves math” is β€œSomeone does love math”.
  4. Find the negation of β€œsome drivers don’t obey the speed limit.”.
Video / Answer.

Example 2.3.11.

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:
  1. \(\displaystyle \forall x P(x)\)
  2. \(\displaystyle \exists x P(x)\)
  3. \(\displaystyle \forall x \neg P(x)\)
Video / Answer.

Example 2.3.12.

Translate the statement into logical expressions using predicates, quantifiers, and logical connectives.
  1. All of your friends are perfect.
  2. Not everybody is your friend or someone is not perfect.
Video / Answer.

Exercises Exercises

1.

Determine the truth value of the each of these statements if the domain consists of all integers.

2.

Determine the truth value of each of the following statements if the domain consists of all real numbers.

3.

Translate these statements into English where \(F(x)\) is β€œ\(x\) is fast” and \(A(x)\) is β€œ\(x\) is an athlete”, here the domain is the set of people.

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:

5.

Simplify the statements below so that negations are only directly next to the predicates.

(a)

\(\neg \exists x \forall y (\neg O(x) \vee E(y))\text{.}\)
Solution.
\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*}

(b)

\(\neg \forall x \neg \forall y \neg(x \lt y \wedge \exists z (x \lt z \vee y \lt z))\text{.}\)
Solution.
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*}

(c)

There is a number \(n\) for which no other number is either less than or equal to \(n\text{.}\)
Solution.
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)\)

(d)

It is false that for every number \(n\) there are two other numbers which \(n\) is between.
Solution.
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.

β€œThere is a building on the campus of some college in the United States in which every room is painted white.”

(a)

Express the statement using quantifiers. Be sure to define your predicate function and specify the domain of each of the three variables.
Solution.
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})\)

(b)

Express the negation of the above logical quantified statement so that no negation is to the left of a quantifier.
Solution.
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*}

(c)

Write the negation of the statement in plain English.
Solution.
On every campus in the US, every building has at least one room that isn’t painted white.