Discrete Math
Discrete Math
• De Morgan’s Law
• The rules can be expressed in English as:
• Let P(x) denotes the statement “x<=4”. What are the truth values of
the following.
1. P(0)
2. P(4)
3. P(6)
4. P(5)
Let P(x) be the statement: x spends more than five hours every weekday
in class. Where the domain for x consist of All Students.
∃x P(x)
There is a student who spends more than 5 hours every weekday in
class.
∀x P(x)
Every Student spends more than 5 hours every weekday in class.
∃x ~P(x)
There is a student who does not spends more than 5 hours every
weekday in class.
∀x ~ P(x)
No students spends more than 5 hours every weekday in class.
Translate each of the statement into logical expressions
using predicates, quantifiers, and logical connectives.
Let P(x)=x is perfect. Let F(x) x is your friend, domain: all people
No one is perfect
∀x ~P(x)
Not everyone is perfect
~∀x P(x)
All your friends are perfect
∀x (F(x) -> P(x))
At least one of your friend is perfect
∃ x (F(x) -> P(x))
Nested Quantifier
• Let L(x,y) be the statement “x loves y” where the domain for both x and y consist
of all people in the world. Use quantifiers to express each of there statements.
• Everybody loves Jerry
• ∀x L(x,Jerry)
• Everybody loves somebody
• ∀x ∃y L(x,y)
• There is somebody where everybody loves
• ∃y ∀x L(x,y)
• Nobody loves everybody.
• ∀x ∃y ~L(x,y)
• There is somebody whom Lydia does not love.
• ∃x ~L(Lydia,y)
Rules of Inference
• What Rule of Inference is used in each of these arguments?
• Alice is a mathematics major. Therefore, Alice is either a mathematics major
or a computer science major.
• p=Alice is a mathematics major .
• q=Alice is a computer science major
p
.: pvq
Addition
Jerry is a mathematics major and a computer science major. Therefore, Jerry is
a mathematics major.
pq
p
Simplification
• If it is rainy, then the pool will be closed. It is rainy. Therefore, the pool is
closed.
pq
p
q
pq
q
p
p->q
q->r
.:p->r
• Hypothetical Syllogism
Conjunction