Dis - Struc - ITEC 205 - L9
Dis - Struc - ITEC 205 - L9
Dis - Struc - ITEC 205 - L9
STUDIES
PREPARED BY: P. FERNANDEZ
Discrete Structures
LESSON 7 – PREDICATE LOGIC ( C O N T I N U ATI O N )
Quantifier
A quantifier turns a propositional function into a proposition without
assigning specific values for the variable. There are primarily two
quantifiers:
universal quantifier
and the
existential quantifier.
Quantifier – Universal
The universal quantification of P (x) is the proposition:
“P (x) is true for all values x in the universe of discourse.”
Notation: “For all x P (x)” or “For every x P (x)” is written
∀xP (x).
Quantifier – Existential
The existential quantification of P (x) is the proposition:
“There exists an element x in the universe of discourse such that P (x) is
true.”
Notation: “There exists x such that P (x)” or “There is at least one x such
that P (x)” is written
∃xP (x).
Quantifier – Example
Example:
F (x): x is a fox. S (x): x is sly. T (x): x is trustworthy.
and the universe of discourse for all three functions is the set of all animals.
• Everything is a fox: ∀xF (x)
• All foxes are sly: ∀x[F (x) → S (x)]
• If any fox is sly, then it is not
trustworthy:
∀x[(F (x) ∧ S (x) → ¬T (x)] ⇔ ¬∃x[F (x) ∧ S (x) ∧ T (x)
Quantifier – Example
Example:
Express the following sentences using predicates and quantifiers.
• “All lions are fierce.”
• “Some lions do not drink coffee.”
Assume
P(x): x is a lion. “All lions are fierce.” ∀ x (P(x) →
Q(x))
Q(x): x is fierce. “Some lions do not drink coffee.” ∃x (P(x) /\
¬R(x))
R(x): x drinks coffee.
Quantifier – Example
Example:
(a) P(-3), P(-2), and P(-1) are all true since the numbers -3,-2,-1 are
negative but their absolute values are positive. Therefore, ∀ x P(x) is
true.
(b) The predicate x<|x| is false for every non-negative number. For
example, P(1) is false since 1=|1|. having just one value of x that makes
the predicate false is enough to guarantee that ∀ x P(x) is false.
Quantifier – Example
Example:
Suppose P(x) is the predicate x<|x|. Determine the truth value of ∃x P(x)
where the universe for x is:
(a) P(1), P(2), and P(3) are all false since in each case x=|x|.
Therefore, ∃x P(x) is false for this universe.
(b) If we begin checking the six values of x, we find P(-2) is true since it
states that -2<|-2|, or -2<2. We need check no further; having one case
that makes the predicate true is enough to guarantee that ∃x P(x) is
true.
Quantifier – Example
Solution:
(a) P(1), P(2), and P(3) are all false since in each case x=|x|.
Therefore, ∃x P(x) is false for this universe.
(b) If we begin checking the six values of x, we find P(-2) is true since it
states that -2<|-2|, or -2<2. We need check no further; having one case
that makes the predicate true is enough to guarantee that ∃x P(x) is
true.
Quantifier – Example
Example:
Determine whether ∃t (t2+12=7t) is true, where the universe for t
consists of all real numbers.
Quantifier – Example
Solution:
We can also work with symbols. Let W(x) be the statement x walked on the moon where the universe
for x consists of all people. The statement claims that there is an x such that x walked on the moon;
that is, ∃x W(x). The negation is ¬∃x W(x), which is equivalent to ∀x ¬ W(x). Therefore, the negative
states that for every x that can be chosen, x did not walk on the moon. That is, No person walked on
the moon.
Quantifier – Example
Example:
Negate: ” Everyone in the class has a laptop computer.”.
If we take L(x) to be x has a laptop computer where the universe for x
consists of all people in this class, then the given statement is ∀x L(x).
The negation is ¬ ∀x L(x), which is equivalent to ∃x ¬ L(x).
In words, There is someone in this class who does not have a laptop
computer.