Chapter 1: The Foundations: Logic and Proofs: Discrete Mathematics and Its Applications
Chapter 1: The Foundations: Logic and Proofs: Discrete Mathematics and Its Applications
Chapter 1: The Foundations: Logic and Proofs: Discrete Mathematics and Its Applications
8
1.3 Predicates and Quantifiers
A statement xP(x) is false, if and only if P(x) is not
always true where x is in the domain. One way to show
that is to find a counterexample to the statement xP(x).
Example: Let Q(x) be the statement x < 2. What is the
truth value of the quantification xQ(x), where the domain
consists of all real numbers?
xP(x) is the same as the conjunction
P(x
1
) P(x
2
) . P(x
n
)
Solution: Q(x) is not true for every real numbers, e.g. Q(3) is
false. x = 3 is a counterexample for the statement xQ(x).
Thus the quantification is false.
9
1.3 Predicates and Quantifiers
Example: What does the statement xN(x) mean if
N(x) is Computer x is connected to the network
and the domain consists of all computers on
campus?
11
1.3 Predicates and Quantifiers
Example: Let P(x) denote the statement x > 3. What is
the truth value of the quantification xP(x), where the
domain consists of all real numbers?
xP(x) is false if and only if P(x) is false for every element
of the domain.
Example: Let Q(x) denote the statement x = x + 1. What
is the true value of the quantification xQ(x), where the
domain consists for all real numbers?
Solution: x > 3 is sometimes true for instance when
x = 4. The existential quantification is true.
12
1.3 Predicates and Quantifiers
If the domain is empty, xQ(x) is false because there can
be no element in the domain for which Q(x) is true.
The existential quantification xP(x) is the same as the
disjunction P(x
1
) V P(x
2
) V VP(x
n
)
Quantifiers
Statement When True? When False?
xP(x)
xP(x)
xP(x) is true for every x.
There is an x for which P(x) is
true.
There is an x for which xP(x)
is false.
P(x) is false for every x.
13
1.3 Predicates and Quantifiers
Uniqueness quantifier ! or
1
!xP(x) or
1
P(x) states There exists a unique x such that P(x) is
true.
Quantifiers with restricted domains
Example: What do the following statements mean? The domain in
each case consists of real numbers.
x < 0 (x
2
> 0): For every real number x with x < 0, x
2
> 0. The square of a negative
real number is positive. Its the same as x(x < 0 x
2
> 0)
y 0 (y
3
0 ): For every real number y with y 0, y
3
0. The cube of every non-
zero real number is non-zero. Its the same as y(y 0 y
3
0 ).
z > 0 (z
2
= 2): There exists a real number z with z > 0, such that z
2
= 2. There is a
positive square root of 2. Its the same as z(z > 0 z
2
= 2):
14
1.3 Predicates and Quantifiers
Precedence of Quantifiers
and have higher precedence than all logical operators.
E.g. xP(x) V Q(x) is the same as ( xP(x)) V Q(x)
15
1.3 Predicates and Quantifiers
Example: Express the statement Every student in this
class has studied calculus using predicates and
quantifiers.
16
1.3 Predicates and Quantifiers
Example: Consider these statements. The first two are
called premises and the third is called the conclusion. The
entire set is called an argument.
All lions are fierce.
Some lions do not drink coffee.
Some fierce creatures do not drink coffee.
Solution: Let P(x) be x is a lion.
Q(x) be x is fierce.
R(x) be x drinks coffee.
x(P(x) Q(x))
x(P(x) R(x))
x(Q(x) R(x))
17