Professional Documents
Culture Documents
Ch01-Lecture 3&4 (Week 2)
Ch01-Lecture 3&4 (Week 2)
Discrete Mathematics 1
Chapter 01
The Foundations: Logic
Today’s Topics
2
Predicates and Quantifiers (1/22)
Predicate:
𝑥 is greater than 3
3
Predicates and Quantifiers (1/22)
Predicate:
𝑥 is greater than 3
The statement 𝑷(𝒙) is also said to be the value of the propositional function 𝑷 at 𝒙.
Once a value has been assigned to the variable 𝒙, the statement 𝑷(𝒙) becomes a
proposition and has a truth value.
4
Predicates and Quantifiers (2/22)
Example1:
Solution
5
Predicates and Quantifiers (2/22)
Example1:
T F
6
Predicates and Quantifiers (3/22)
Example2:
7
Predicates and Quantifiers (3/22)
Example2:
F T
8
Predicates and Quantifiers (4/22)
Example3:
9
Predicates and Quantifiers (4/22)
Example3:
T T F
T F
F T
10
Predicates and Quantifiers (5/22)
Quantifiers:
Expresses the extent to which a predicate is true over a
range of elements.
Quantifier
11
Predicates and Quantifiers (5/22)
Quantifiers:
Quantifier
12
Predicates and Quantifiers (6/22)
Quantifiers:
Quantifier
13
Predicates and Quantifiers (7/22)
Quantifiers:
Quantifier
∃! 𝒙𝑷(𝒙)
∃ 1 𝒙𝑷(𝒙)
14
Predicates and Quantifiers (8/22)
Quantifiers:
Quantifier
∃! 𝒙𝑷 𝒙 , ∃ 1 𝒙𝑷(𝒙)
15
Predicates and Quantifiers (9/22)
16
Predicates and Quantifiers (10/22)
Example2:
17
Predicates and Quantifiers (10/22)
Example2:
18
Predicates and Quantifiers (10/22)
Example3:
19
Predicates and Quantifiers (10/22)
Example3:
20
Predicates and Quantifiers (11/22)
Example3:
21
Predicates and Quantifiers (11/22)
Example3:
22
Predicates and Quantifiers (12/22)
Example4:
23
Predicates and Quantifiers (12/22)
Example5:
24
Predicates and Quantifiers (13/22)
Example6:
25
Predicates and Quantifiers (13/22)
Example6:
T T F
F T F
26
Predicates and Quantifiers (15/22)
Solution
Every student in your school has a computer or has a
friend who has a computer.
27
Predicates and Quantifiers (16/22)
𝐀𝐧𝐬𝐰𝐞
28
Predicates and Quantifiers (16/22)
𝐀𝐧𝐬𝐰𝐞
29
Predicates and Quantifiers (16/22)
𝐀𝐧𝐬𝐰𝐞
30
Predicates and Quantifiers (16/22)
𝐀𝐧𝐬𝐰𝐞
31
Predicates and Quantifiers (17/22)
𝐀𝐧𝐬𝐰𝐞
32
Predicates and Quantifiers (17/22)
𝐀𝐧𝐬𝐰𝐞
33
Predicates and Quantifiers (17/22)
𝐀𝐧𝐬𝐰𝐞
34
Predicates and Quantifiers (17/22)
𝐀𝐧𝐬𝐰𝐞
35
Predicates and Quantifiers (18/22)
Precedence of Quantifiers:
36
Predicates and Quantifiers (18/22)
37
Predicates and Quantifiers (18/22)
1. We assume that ∀𝑥𝑃 𝑥 ∧ ∀𝑥𝑄 𝑥 is true for all values x in the domain.
2. Then,∀𝑥𝑃 𝑥 is true. And ∀𝑥𝑄 𝑥 is true. Then, 𝑃 𝑥 is true for all values x in
the domain. And 𝑥𝑄 𝑥 is true for all values x in the domain.
3. Then, 𝑃 𝑥 ∧ 𝑄 (𝑥) is true for all values x in the domain ∀𝑥 𝑃 𝑥 ∧ 𝑄 𝑥 is
true.
38
Predicates and Quantifiers (19/22)
39
Predicates and Quantifiers (19/22)
40
Predicates and Quantifiers (19/22)
41
Predicates and Quantifiers (19/22)
42
Predicates and Quantifiers (19/22)
45
Predicates and Quantifiers (20/22)
46
Predicates and Quantifiers (20/22)
47
Predicates and Quantifiers (20/22)
48
Predicates and Quantifiers (20/22)
49
Predicates and Quantifiers (20/22)
50
Predicates and Quantifiers (21/22)
Example1:
What are the negations of the statements
∀𝒙(𝒙𝟐 > 𝒙)
51
Predicates and Quantifiers (21/22)
Example1:
What are the negations of the statements
∀𝒙(𝒙𝟐 > 𝒙)
52
Predicates and Quantifiers (22/22)
Example2:
What are the negations of the statements
∃𝒙(𝒙𝟐 = 𝟐)
53
Predicates and Quantifiers (22/22)
Example2:
What are the negations of the statements
∃𝒙(𝒙𝟐 = 𝟐)
¬∃𝒙(𝒙𝟐 = 𝟐) ≡ ∀𝒙¬(𝒙𝟐 = 𝟐)
∀ 𝒙 (𝒙𝟐 ≠ 𝟐)
54
1.5 Nested Quantifiers
55
Nested Quantifiers
56
❑ EXAMPLE : Assume that the domain for the variables x
and y consists of all real numbers.
The statement
∀x∀y(x + y = y + x)
says that x + y = y + x for all real numbers x and
y. (the commutative law for addition)
the statement
∀x∃y(x + y = 0)
says that for every real number x there is a real number y
such that x + y = 0.
(every real number has an additive inverse)
57
Order of Quantifiers
Examples:
1. Let P(x,y) be the statement “x + y = y + x.” Assume that
U is the real numbers.
x yP(x,y) and y xP(x,y) have the same truth value.
“For all real numbers x, for all real numbers y, x + y = y + x.”
2.Let Q(x,y) be the statement “x + y = 0.” Assume that U is the real
numbers. Then x yQ(x,y) is true,
“For every real number x there is a real number y such that Q(x, y).”
But ∃y∀xQ(x, y) is false
“Thereis areal numbery suchthat for every real numberx, Q(x,y).”
58
Question on Order of Quantifiers
61