L3_Discrete_Math
L3_Discrete_Math
A. B. Dauletiyarova
email: [email protected]
A. B. Dauletiyarova Lecture 3
HW
HW 3
Section 1.4: 11-18, p.53-57.
Section 1.5: 1-40 (even numbers), p.64-68.
Section 1.6: 1-28 (even numbers), p.78-80.
A. B. Dauletiyarova Lecture 3
Predicates
A. B. Dauletiyarova Lecture 3
Example
A. B. Dauletiyarova Lecture 3
Example
A. B. Dauletiyarova Lecture 3
Binary Predicate
A. B. Dauletiyarova Lecture 3
Binary Predicate
A. B. Dauletiyarova Lecture 3
n-ary predicate
A. B. Dauletiyarova Lecture 3
THE UNIVERSAL QUANTIFIER
Definition 1. The universal quantification of P(x) is the
statement
We read ∀xP(x) as
”for all x P(x)”
”for every x P(x).”
A. B. Dauletiyarova Lecture 3
Examples
Example 3.
(i) Let P(x) be the statement “x + 1 > x.” What is the truth
value of the quantification ∀xP(x), where the domain consists of
all real numbers?
A. B. Dauletiyarova Lecture 3
Examples
Example 3.
(i) Let P(x) be the statement “x + 1 > x.” What is the truth
value of the quantification ∀xP(x), where the domain consists of
all real numbers?
A. B. Dauletiyarova Lecture 3
Examples
Example 3.
(i) Let P(x) be the statement “x + 1 > x.” What is the truth
value of the quantification ∀xP(x), where the domain consists of
all real numbers?
(ii) 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?
A. B. Dauletiyarova Lecture 3
Examples
Example 3.
(i) Let P(x) be the statement “x + 1 > x.” What is the truth
value of the quantification ∀xP(x), where the domain consists of
all real numbers?
(ii) 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?
A. B. Dauletiyarova Lecture 3
Examples
A. B. Dauletiyarova Lecture 3
Examples
A. B. Dauletiyarova Lecture 3
When all the elements in the domain can be listed—say,
x1 , x2 , . . . , xn – it follows that the universal quantification ∀xP(x)
is the same as the conjunction
A. B. Dauletiyarova Lecture 3
Example
A. B. Dauletiyarova Lecture 3
Example
A. B. Dauletiyarova Lecture 3
THE EXISTENTIAL QUANTIFIER
Definition 2. The existential quantification of P(x) is the
proposition
“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.
A. B. Dauletiyarova Lecture 3
Constructing New Logical Equivalence
Example 5.
(i) 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?
A. B. Dauletiyarova Lecture 3
Constructing New Logical Equivalence
Example 5.
(i) 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?
A. B. Dauletiyarova Lecture 3
Constructing New Logical Equivalence
Example 5.
(i) 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?
A. B. Dauletiyarova Lecture 3
Constructing New Logical Equivalence
Example 5.
(i) 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?
A. B. Dauletiyarova Lecture 3
When all elements in the domain can be listed—say,
x1 , x2 , . . . , xn – the existential quantification ∃xP(x) is the same as
the disjunction
A. B. Dauletiyarova Lecture 3
Example
A. B. Dauletiyarova Lecture 3
Example
Because P(4), which is the statement “42 > 10,” is true, it follows
that ∃xP(x) is true.
A. B. Dauletiyarova Lecture 3
THE UNIQUENESS QUANTIFIER
A. B. Dauletiyarova Lecture 3
Example
A. B. Dauletiyarova Lecture 3
Nested Quantifiers
A. B. Dauletiyarova Lecture 3
Examples
A. B. Dauletiyarova Lecture 3
Examples
A. B. Dauletiyarova Lecture 3
Examples
A. B. Dauletiyarova Lecture 3
The quantification ∀x∃yQ(x, y ) denotes the proposition
“For every real number x there is a real number y such that
Q(x, y ).”
A. B. Dauletiyarova Lecture 3
The quantification ∀x∃yQ(x, y ) denotes the proposition
“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 ∀x∃yQ(x, y ) is
true.
A. B. Dauletiyarova Lecture 3
The quantification ∀x∃yQ(x, y ) denotes the proposition
“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 ∀x∃yQ(x, y ) is
true.
“For all real numbers x and for all real numbers y there is a
real number z such that x + y = z,”
is true.
A. B. Dauletiyarova Lecture 3
The order of the quantification here is important, because the
quantification ∃z∀x∀yQ(x, y , z), which is the statement
A. B. Dauletiyarova Lecture 3
Logical Equivalences Involving Quantifiers
A. B. Dauletiyarova Lecture 3
Logical Equivalences Involving Quantifiers
A. B. Dauletiyarova Lecture 3
Translating English Sentences into Logical Expressions
Example 9. Express the statement “Every student in this
class has studied calculus” using predicates and quantifiers.
A. B. Dauletiyarova Lecture 3
Translating English Sentences into Logical Expressions
Example 9. Express the statement “Every student in this
class has studied calculus” using predicates and quantifiers.
A. B. Dauletiyarova Lecture 3
Translating English Sentences into Logical Expressions
Example 9. Express the statement “Every student in this
class has studied calculus” using predicates and quantifiers.
A. B. Dauletiyarova Lecture 3
Translating English Sentences into Logical Expressions
Example 9. Express the statement “Every student in this
class has studied calculus” using predicates and quantifiers.
A. B. Dauletiyarova Lecture 3
Translating English Sentences into Logical Expressions
Example 9. Express the statement “Every student in this
class has studied calculus” using predicates and quantifiers.
A. B. Dauletiyarova Lecture 3
We may be interested in a wider group of people than only
those in this class. If we change the domain to consist of all
people, we will need to express our statement as
∀x(S(x) → C (x)).
∀x(S(x) ∧ C (x))
because this statement says that all people are students in this
class and have studied calculus!]
A. B. Dauletiyarova Lecture 3
Finally, when we are interested in the background of people in
subjects besides calculus, we may prefer to 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) in both
approaches to obtain
∀xQ(x, calculus)
A. B. Dauletiyarova Lecture 3
Example 10. Express the statement “Some student in this
class has visited Mexico” using predicates and quantifiers.
“There is a student in this class with the property that the student
has visited Mexico.”
∃xM(x).
A. B. Dauletiyarova Lecture 3
However, if we are interested in people other than those in
this class, we look at the statement a little differently. Our
statement can be expressed as
In this case, the domain for the variable x consists of all people.
We introduce S(x) to represent “x is a student in this class.” Our
solution becomes
∃x(S(x) ∧ M(x))
because the statement is that there is a person x who is a student
in this class and who has visited Mexico.
[Caution! Our statement cannot be expressed as
∃x(S(x) → M(x)),
A. B. Dauletiyarova Lecture 3
Example 11. Express the statement ”Nancy can fool exactly
two people.” as a logical expression involving predicates, quantifiers
with a domain consisting of all people, and logical connectives.
A. B. Dauletiyarova Lecture 3
Example 11. Express the statement ”Nancy can fool exactly
two people.” as a logical expression involving predicates, quantifiers
with a domain consisting of all people, and logical connectives.
A. B. Dauletiyarova Lecture 3
Example 11. Express the statement ”Nancy can fool exactly
two people.” as a logical expression involving predicates, quantifiers
with a domain consisting of all people, and logical connectives.
A. B. Dauletiyarova Lecture 3
Example 12. Express the statement ”There is a student in
this class who has chatted with exactly one other student.” as a
logical expression involving predicates, quantifiers with a domain
consisting of all students in this class, and logical connectives.
A. B. Dauletiyarova Lecture 3
Example 12. Express the statement ”There is a student in
this class who has chatted with exactly one other student.” as a
logical expression involving predicates, quantifiers with a domain
consisting of all students in this class, and logical connectives.
A. B. Dauletiyarova Lecture 3
Example 12. Express the statement ”There is a student in
this class who has chatted with exactly one other student.” as a
logical expression involving predicates, quantifiers with a domain
consisting of all students in this class, and logical connectives.
A. B. Dauletiyarova Lecture 3
Example 13. Express the statement ”No student in this class
has sent e-mail to exactly two other students in this class.” as a
logical expression involving predicates, quantifiers with a domain
consisting of all students in this class, and logical connectives.
A. B. Dauletiyarova Lecture 3
Example 13. Express the statement ”No student in this class
has sent e-mail to exactly two other students in this class.” as a
logical expression involving predicates, quantifiers with a domain
consisting of all students in this class, and logical connectives.
A. B. Dauletiyarova Lecture 3
Example 13. Express the statement ”No student in this class
has sent e-mail to exactly two other students in this class.” as a
logical expression involving predicates, quantifiers with a domain
consisting of all students in this class, and logical connectives.
¬∃x∃y ∃z(y ̸= z ∧ x ̸= y ∧ x ̸= z ∧
∧ ∀w (w ̸= x → (E (x, w ) ↔ (w = y ∨ w = z)))).
A. B. Dauletiyarova Lecture 3
Valid Arguments in Propositional Logic
A. B. Dauletiyarova Lecture 3
Rules of Inference
1. Modus ponens
p
p→q
∴ q
A. B. Dauletiyarova Lecture 3
Rules of Inference
1. Modus ponens
p
p→q
∴ q
2. Modus tollens
¬q
p→q
∴ ¬p
A. B. Dauletiyarova Lecture 3
Rules of Inference
1. Modus ponens
p
p→q
∴ q
2. Modus tollens
¬q
p→q
∴ ¬p
3. Hypothetical
syllogism
p→q
q→r
∴ p→r
A. B. Dauletiyarova Lecture 3
Rules of Inference
A. B. Dauletiyarova Lecture 3
Rules of Inference
A. B. Dauletiyarova Lecture 3
Rules of Inference
A. B. Dauletiyarova Lecture 3
Rules of Inference
A. B. Dauletiyarova Lecture 3
Rules of Inference
A. B. Dauletiyarova Lecture 3
Example
Example 14. Show that the premises
“It is not sunny this afternoon and it is colder than
yesterday,”
“We will go swimming only if it is sunny,”
“If we do not go swimming, then we will take a canoe trip,”
and
“If we take a canoe trip, then we will be home by sunset”
lead to the conclusion
“We will be home by sunset.”
A. B. Dauletiyarova Lecture 3
Example
Example 14. Show that the premises
“It is not sunny this afternoon and it is colder than
yesterday,”
“We will go swimming only if it is sunny,”
“If we do not go swimming, then we will take a canoe trip,”
and
“If we take a canoe trip, then we will be home by sunset”
lead to the conclusion
“We will be home by sunset.”
Solution: Let
p be the proposition “It is sunny this afternoon,”
q the proposition “It is colder than yesterday,”
r the proposition “We will go swimming,”
s the proposition “We will take a canoe trip,”
t the proposition “We will be home by sunset.”
A. B. Dauletiyarova Lecture 3
Then the premises are ¬p ∧ q, r → p, ¬r → s, and s → t.
The desired conclusion is t.
A. B. Dauletiyarova Lecture 3
Then the premises are ¬p ∧ q, r → p, ¬r → s, and s → t.
The desired conclusion is t.
Step Reason
A. B. Dauletiyarova Lecture 3
Then the premises are ¬p ∧ q, r → p, ¬r → s, and s → t.
The desired conclusion is t.
Step Reason
1. ¬p ∧ q Premise
A. B. Dauletiyarova Lecture 3
Then the premises are ¬p ∧ q, r → p, ¬r → s, and s → t.
The desired conclusion is t.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
A. B. Dauletiyarova Lecture 3
Then the premises are ¬p ∧ q, r → p, ¬r → s, and s → t.
The desired conclusion is t.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r → p Premise
A. B. Dauletiyarova Lecture 3
Then the premises are ¬p ∧ q, r → p, ¬r → s, and s → t.
The desired conclusion is t.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r → p Premise
4. ¬r Modus tollens using (2) and (3)
A. B. Dauletiyarova Lecture 3
Then the premises are ¬p ∧ q, r → p, ¬r → s, and s → t.
The desired conclusion is t.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r → p Premise
4. ¬r Modus tollens using (2) and (3)
5. ¬r → s Premise
A. B. Dauletiyarova Lecture 3
Then the premises are ¬p ∧ q, r → p, ¬r → s, and s → t.
The desired conclusion is t.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r → p Premise
4. ¬r Modus tollens using (2) and (3)
5. ¬r → s Premise
6. s Modus ponens using (4) and (5)
A. B. Dauletiyarova Lecture 3
Then the premises are ¬p ∧ q, r → p, ¬r → s, and s → t.
The desired conclusion is t.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r → p Premise
4. ¬r Modus tollens using (2) and (3)
5. ¬r → s Premise
6. s Modus ponens using (4) and (5)
7. s → t Premise
A. B. Dauletiyarova Lecture 3
Then the premises are ¬p ∧ q, r → p, ¬r → s, and s → t.
The desired conclusion is t.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r → p Premise
4. ¬r Modus tollens using (2) and (3)
5. ¬r → s Premise
6. s Modus ponens using (4) and (5)
7. s → t Premise
8. t Modus ponens using (6) and (7)
A. B. Dauletiyarova Lecture 3
Fallacy
A. B. Dauletiyarova Lecture 3
Examples
A. B. Dauletiyarova Lecture 3
Examples
Solution: Let
p be the proposition “You did every problem in this book.”
q be the proposition “You learned discrete mathematics.”
Then this argument is of the form: if p → q and q, then p. This is
an example of an incorrect argument using the fallacy of affirming
the conclusion. Indeed, it is possible for you to learn discrete
mathematics in someway other than by doing every problem in this
book. (You may learn discrete mathematics by reading, listening to
lectures, doing some, but not all, the problems in this book, and so
on.)
A. B. Dauletiyarova Lecture 3
Rules of Inference for Quantified Statements
1. Universal instantiation
∀xP(x)
∴ P(c)
A. B. Dauletiyarova Lecture 3
Rules of Inference for Quantified Statements
1. Universal instantiation
∀xP(x)
∴ P(c)
2. Universal generalizationn
A. B. Dauletiyarova Lecture 3
Rules of Inference for Quantified Statements
1. Universal instantiation
∀xP(x)
∴ P(c)
2. Universal generalizationn
∃xP(x)
∴ P(c) for some element c
A. B. Dauletiyarova Lecture 3
Rules of Inference for Quantified Statements
1. Universal instantiation
∀xP(x)
∴ P(c)
2. Universal generalizationn
∃xP(x)
∴ P(c) for some element c
4. Universal generalizationn
A. B. Dauletiyarova Lecture 3
Example
Solution: Let
C (x) be “x is in this class,”
B(x) be “x has read the book,”
and
P(x) be “x passed the first exam.”
A. B. Dauletiyarova Lecture 3
Example
Solution: Let
C (x) be “x is in this class,”
B(x) be “x has read the book,”
and
P(x) be “x passed the first exam.”
The premises are ∃x(C (x) ∧ ¬B(x)) and ∀x(C (x) → P(x)). The
conclusion is ∃x(P(x) ∧ ¬B(x)).
A. B. Dauletiyarova Lecture 3
Step Reason
A. B. Dauletiyarova Lecture 3
Step Reason
1.∃x(C (x) ∧ ¬B(x)) Premise
A. B. Dauletiyarova Lecture 3
Step Reason
1.∃x(C (x) ∧ ¬B(x)) Premise
2.C (a) ∧ ¬B(a) Existential instantiation from (1)
A. B. Dauletiyarova Lecture 3
Step Reason
1.∃x(C (x) ∧ ¬B(x)) Premise
2.C (a) ∧ ¬B(a) Existential instantiation from (1)
3.C (a) Simplification from (2)
A. B. Dauletiyarova Lecture 3
Step Reason
1.∃x(C (x) ∧ ¬B(x)) Premise
2.C (a) ∧ ¬B(a) Existential instantiation from (1)
3.C (a) Simplification from (2)
4.∀x(C (x) → P(x)) Premise
A. B. Dauletiyarova Lecture 3
Step Reason
1.∃x(C (x) ∧ ¬B(x)) Premise
2.C (a) ∧ ¬B(a) Existential instantiation from (1)
3.C (a) Simplification from (2)
4.∀x(C (x) → P(x)) Premise
5.C (a) → P(a) niversal instantiation from (4)
A. B. Dauletiyarova Lecture 3
Step Reason
1.∃x(C (x) ∧ ¬B(x)) Premise
2.C (a) ∧ ¬B(a) Existential instantiation from (1)
3.C (a) Simplification from (2)
4.∀x(C (x) → P(x)) Premise
5.C (a) → P(a) niversal instantiation from (4)
6.P(a) Modus ponens from (3) and (5)
A. B. Dauletiyarova Lecture 3
Step Reason
1.∃x(C (x) ∧ ¬B(x)) Premise
2.C (a) ∧ ¬B(a) Existential instantiation from (1)
3.C (a) Simplification from (2)
4.∀x(C (x) → P(x)) Premise
5.C (a) → P(a) niversal instantiation from (4)
6.P(a) Modus ponens from (3) and (5)
7.¬B(a) Simplification from (2)
A. B. Dauletiyarova Lecture 3
Step Reason
1.∃x(C (x) ∧ ¬B(x)) Premise
2.C (a) ∧ ¬B(a) Existential instantiation from (1)
3.C (a) Simplification from (2)
4.∀x(C (x) → P(x)) Premise
5.C (a) → P(a) niversal instantiation from (4)
6.P(a) Modus ponens from (3) and (5)
7.¬B(a) Simplification from (2)
8.P(a) ∧ ¬B(a) Conjunction from (6) and (7)
A. B. Dauletiyarova Lecture 3
Step Reason
1.∃x(C (x) ∧ ¬B(x)) Premise
2.C (a) ∧ ¬B(a) Existential instantiation from (1)
3.C (a) Simplification from (2)
4.∀x(C (x) → P(x)) Premise
5.C (a) → P(a) niversal instantiation from (4)
6.P(a) Modus ponens from (3) and (5)
7.¬B(a) Simplification from (2)
8.P(a) ∧ ¬B(a) Conjunction from (6) and (7)
9.∃x(P(x) ∧ ¬B(x)) Existential generalization from (8)
A. B. Dauletiyarova Lecture 3
Example 17. For the collection of premises, what relevant
conclusion or conclusions can be drawn? Explain the rules of
inference used to obtain each conclusion from the premises.
“All rodents gnaw their food.”
“Mice are rodents.”
“Rabbits do not gnaw their food.”
“Bats are not rodents.”
A. B. Dauletiyarova Lecture 3
Example 17. For the collection of premises, what relevant
conclusion or conclusions can be drawn? Explain the rules of
inference used to obtain each conclusion from the premises.
“All rodents gnaw their food.”
“Mice are rodents.”
“Rabbits do not gnaw their food.”
“Bats are not rodents.”
Solution: Let
R(x) be “x is a rodent,”
F (x) be “x gnaws their food,”
A. B. Dauletiyarova Lecture 3
Step Reason
A. B. Dauletiyarova Lecture 3
Step Reason
1.∀x(R(x) → F (x)) Premise
A. B. Dauletiyarova Lecture 3
Step Reason
1.∀x(R(x) → F (x)) Premise
2.R(Mouse) Premise
A. B. Dauletiyarova Lecture 3
Step Reason
1.∀x(R(x) → F (x)) Premise
2.R(Mouse) Premise
3.R(Mouse) → F (Mouse) Universal instantiation from (1)
A. B. Dauletiyarova Lecture 3
Step Reason
1.∀x(R(x) → F (x)) Premise
2.R(Mouse) Premise
3.R(Mouse) → F (Mouse) Universal instantiation from (1)
4.F (Mouse) Modus ponens from (2) and (3)
A. B. Dauletiyarova Lecture 3
Step Reason
1.∀x(R(x) → F (x)) Premise
2.R(Mouse) Premise
3.R(Mouse) → F (Mouse) Universal instantiation from (1)
4.F (Mouse) Modus ponens from (2) and (3)
5.¬F (Rabbit) Premise
A. B. Dauletiyarova Lecture 3
Step Reason
1.∀x(R(x) → F (x)) Premise
2.R(Mouse) Premise
3.R(Mouse) → F (Mouse) Universal instantiation from (1)
4.F (Mouse) Modus ponens from (2) and (3)
5.¬F (Rabbit) Premise
6.R(Rabbit) → F (Rabbit) Universal instantiation from (1)
A. B. Dauletiyarova Lecture 3
Step Reason
1.∀x(R(x) → F (x)) Premise
2.R(Mouse) Premise
3.R(Mouse) → F (Mouse) Universal instantiation from (1)
4.F (Mouse) Modus ponens from (2) and (3)
5.¬F (Rabbit) Premise
6.R(Rabbit) → F (Rabbit) Universal instantiation from (1)
7.¬R(Rabbit) Modus tollens from (5) and (6)
A. B. Dauletiyarova Lecture 3
Thank you for attention!
A. B. Dauletiyarova Lecture 3