Chapter 02 Lecturer Ver
Chapter 02 Lecturer Ver
Chapter 02 Lecturer Ver
Predicate
Definition 2.1
A sentence is a predicate (or propositional function) if
(1) it contains a finite number of predicate variables (eg: x1, x2, …,
xn), and
(2) it is not a statement, but it becomes a statement when particular
values are substituted for the variables.
The universe of discourse or domain D of a predicate variable is the set
of all values that may be substituted in place of the variable.
Example 2.1
(a) P(x): x is an animal.
Domain: {apple, cat, computer, elephant, horse}
P(cat), P(elephant) and P(horse) are true statements.
P(apple) and P(computer) are false statements.
Example 2.2
(a) Let P(x): x is prime ⇒ x is odd. Indicate which of these statements
are true and which are false.
(i) P(13) T (ii) P(2) F
(iii) P(5) T (iv) P(0) T
23
UCCM1333 INTRODUCTORY DISCRETE MATHEMATICS
Note
Symbol Set
ℝ Set of all real numbers
ℤ Set of all integers
ℚ Set of all rational numbers, or quotients of integers.
Definition 2.2
If P(x) is a predicate and x has domain D, the truth set of P(x) is the set
of all elements of D that make P(x) true when they are substituted for x.
The truth set of P(x) is denoted
{x ∈ D | P(x)}
Example 2.3
Let Q(n) be the predicate “n is a factor of 8.” Find the truth set of Q(n) if
(a) the domain of n is the set ℤ+ of all positive integers.
The truth set is {1, 2, 4, 8} because these are exactly the positive
integers that divide 8 evenly.
(2) It is defined to be true if, and only if, P(x) is true for every x in D.
It is defined to be false if, and only if, P(x) is false for at least one
x in D.
Example 2.4
Determine the truth value of the following universal statements. If the
universal statement is false, suggest a counterexample to the universal
statement.
(1) ∀x ∈ {−1, 0, 3, 4, 5}, 2x is an even integer.
Check that “2x is an even integer” is true for each individual x in D,
hence True
(2) ∀x ∈ ℤ, x + 1 < 4.
Counterexample: x = 5, 5 + 1 = 6 > 4. F
(5) ∀x ∈ ℤ, (x + 1) is nonnegative.
Counterexample: x = −2. F
(6) ∀x ∈ ℝ, x2 + 1 = 0
Counterexample, x = 0. F
(7) ∀x ∈ ℝ, x3 = x2 – 2
F, x = 0
(2) It is defined to be true if, and only if, P(x) is true for at least one
x in D.
It is false if, and only if, P(x) is false for all x in D.
25
UCCM1333 INTRODUCTORY DISCRETE MATHEMATICS
Note
(1) ∃ is called existential quantifier.
(2) ∃ means for some, there exists, for at least one, there is a, there is
at least one.
Example 2.5
Determine the truth value of each of the following existential statement.
(1) ∃x ∈ ℤ such that a prime number x is an even number.
T, x = 2
(4) ∃x ∈ ℝ, x2 + 1 = 0
F
(5) ∃x ∈ ℝ, x3 = x2 – 2
T, x = −1
(b) ∀x ∈ ℝ, x2 ≠ −1.
All real numbers have square not equal to −1.
No real numbers have square equal to −1.
26
UCCM1333 INTRODUCTORY DISCRETE MATHEMATICS
(c) ∃m ∈ ℤ such that m2 = m.
There is an integer whose square is equal to itself.
We can find at least one integer equal to its own square.
m2 = m, for some integer m.
Some integer equals its own square.
Some integers equal their own squares.
(in mathematics, we understand the last two statements to mean the
same thing, even not in English)
Example 2.8
Rewrite the following formal statement in a variety of informal ways. Do
not use quantifiers or variables.
∀x ∈ ℝ, if x > 2 then x2 > 4.
27
UCCM1333 INTRODUCTORY DISCRETE MATHEMATICS
Example 2.9
Rewrite each of the following statements in the form
∀ ______, if _______ then _______.
Example 2.10
Write formal negations for the following statements:
(a) ∀ primes p, p is odd.
∃ a prime p such that p is not odd.
(b) ∃ a triangle T such that the sum of the angles of T equals 200°.
∀ triangles T, the sum of the angles of T does not equal 200°.
28
UCCM1333 INTRODUCTORY DISCRETE MATHEMATICS
Note
You need to exercise special care to avoid mistakes when writing
negations of statements that are given informally. One way to avoid error
is to rewrite the statement formally and take the negation using the
formal rule.
Example 2.11
Rewrite the following statement formally. Then write formal and
informal negations.
(a) No politicians are honest.
Example 2.12
Write a formal negation for statement (a) and informal negation for
statement (b).
(a) ∀ people, if p is blond then p has blue eyes.
∃ a person p such that p is blond and p does not have blue eyes.
29
UCCM1333 INTRODUCTORY DISCRETE MATHEMATICS
There is at least one computer program that has more than 100,000
lines and does not contain a bug.
Note
It is important to note that the order of the quantifiers is important, unless
all the quantifiers are universal quantifiers or all are existential
quantifiers.
Example 2.13
Let P(x, y) be the statement “x + y = y + x.” What is the truth value of the
quantification ∀x∀yP(x, y).
Example 2.14
Let Q(x, y) denote “x + y = 0”. What are the truth values of the
quantifications ∃y∀xQ(x, y) and ∀x∃yQ(x, y)?
30
UCCM1333 INTRODUCTORY DISCRETE MATHEMATICS
∃y∀xQ(x, y): there is a real number y such that for every real
number x, Q(x, y).
No matter what the value of y is chosen, there is only one value of x for
which x + y = 0. Since there is no real number y such that x + y = 0 for all
real numbers x, the statement is false.
∀x∃yQ(x, y): for every real number x there is a real number y such
that Q(x, y).
Given a real number x, there is a real number y such that x + y = 0;
namely, y = −x. Hence the statement is true.
Example 2.15
Rewrite the following statements formally using quantifiers and variables.
(1) Given any positive number, there is another positive number that is
smaller than the given number.
∀x ∈ ℝ+, ∃y ∈ ℝ+ such that y < x.
(4) For every real number x and every real number y, if x is positive
and y is negative, then the product of x and y is negative.
∀x, y ∈ ℝ, x > 0 and y < 0 ⇒ xy < 0.
Example 2.16
Translate each of the following statements into English:
(1) ∀x ∈ D, (C(x) ∨ ∃y ∈ D such that (C(y) ∧ F(x, y)))
where C(x): x has a computer, F(x, y): x and y are friends, and
D: all students in UTAR.
English version: For every student x in UTAR, x has a computer
or there is a student y in UTAR such that y has
a computer and x and y are friends.
OR Every student in UTAR has a computer or has a
friend who has a computer.
31
UCCM1333 INTRODUCTORY DISCRETE MATHEMATICS
(2) ∀x ∈ D, ∃y ∈ D such that ((F(x) ∧ P(x) ⇒ M(x, y))
where F(x): x is a female, P(x): x is a parent, M(x, y): x is the
mother of y and D: all human beings.
***
English version: For every person x, if x is female and x is a
parent, then there is a person y such that person
x is the mother or person y.
OR If a person is female and is a parent, then this
person is someone’s mother.
Example 2.17
Let Q(x, y) be the statement “x + y = x – y”. if the universe of discourse
for both variables consists of all integers, what are the truth values?
(a) ∀yQ(1, y)
This is false since there are many values of y for which 1 + y ≠ 1 –
y.
(b) ∃x∃yQ(x, y)
This is true since we can take x = y = 0.
(c) ∀x∃yQ(x, y)
This is true since we can take y = 0 and for each x.
(d) ∃y∀xQ(x, y)
This is true since we can take y = 0.
(e) ∀y∃xQ(x, y)
This is false since x + 2 = x – 2 has no solution.
32