Chapter-1.4
Chapter-1.4
1
Introduction
⚫ Propositional logic cannot adequately express the meaning of
all statements in mathematics and in natural language.
2
Predicates and Quantifiers
Predicates
⚫ Statements involving variables are neither true nor false.
⚫ “x is greater than 3”
“x”: subject of the statement
“is greater than 3”: the predicate
4
Predicates and Quantifiers
⚫ Example: Let A(c,n) denote the statement “Computer c is
connected to network n”, where c is a variable representing
a computer and n is a variable representing a network.
Suppose that the computer MATH1 is connected to network
CAMPUS2, but not to network CAMPUS1. What are the
values of A(MATH1, CAMPUS1) and A(MATH1,
CAMPUS2)?
5
Predicates and Quantifiers
⚫ A statement involving n variables x1, x2, …, xn can
be denoted by P(x1, x2, …, xn).
6
Predicates and Quantifiers
Quantifiers
7
Predicates and Quantifiers
DEFINITION 1
The universal quantification of P(x) is the statement
“P(x) for all values of x in the domain.”
The notation xP(x) denotes the universal quantification of P(x). Here is
called the Universal Quantifier. We read xP(x) as “for all xP(x)” or “for
every xP(x).”
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
Predicates and Quantifiers
10
Predicates and Quantifiers
DEFINITION 2
The existential quantification of P(x) is the statement
“There exists an element x in the domain such that P(x).”
We use the notation xP(x) for the existential quantification of P(x). Here
is called the Existential Quantifier.
• The existential quantification xP(x) is read as
“There is an x such that P(x),” or
“There is at least one x such that P(x),” or
“For some x, P(x).”
11
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?
Solution: “x > 3” is sometimes true – for instance when
x = 4. The existential quantification is true.
⚫ 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: Q(x) is false for every real number. The existential
quantification is false. 12
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(x1) V P(x2) V … VP(xn)
Quantifiers
Statement When True? When False?
xP(x) xP(x) is true for every x. There is an x for which xP(x)
is false.
xP(x) There is an x for which P(x) is P(x) is false for every x.
true.
13
Predicates and Quantifiers
Translating from English into Logical Expressions
⚫ Example: Express the statement “Every student in this
class has studied calculus” using predicates and
quantifiers.
Solution:
If the domain consists of students in the class –
xC(x)
where C(x) is the statement “x has studied calculus.
If the domain consists of all people –
x(S(x) → C(x)
where S(x) represents that person x is in this class.
If we are interested in the backgrounds of people in subjects
besides calculus, we can use the two-variable quantifier Q(x,y) for
the statement “student x has studied subject y.” Then we would
replace C(x) by Q(x, calculus) to obtain xQ(x, calculus) or 14
15