Discrete Math
Discrete Math
Reasoning - I
Discrete Structures
Instructor
Aamir Majeed Chaudhary
Logic!
“y > 5”
Is this a statement? no
It’s a request.
Is this a proposition? no
P P
true (T) false (F)
false (F) true (T)
P Q P Q
T T T
T F T
F T T
F F F
P Q PQ
T T F
T F T
F T T
F F F
P Q PQ
T T T
T F F
F T T
F F T
P Q PQ
T T T
T F F
F T F
F F T
P Q P Q (P)(Q)
T T F F F
T F F T T
F T T F T
F F T T T
•P Q R
• Why use XOR here? – example of ambiguity of
natural languages
• (Q R) P
• Precedence among operators:
, , , ,
T T F F T
T F T T T
F T T T T
F F T T T
Is it true? yes
Nobody is perfect
x (Person(x) Perfect(x))
x (Person(x) Perfect(x))
Mathematical
Reasoning
pq pq
_____ Hypothetical
Simplification qr
p _____ syllogism
p r (chaining)
p
pq
q Disjunctive
_____ Conjunction p
pq _____ syllogism
q (resolution)
Fall 2023 Discrete Structures 75
Rules of Inference
Another example:
“If it rains today, then we will not have a barbeque
today. If we do not have a barbeque today, then
we will have a barbeque tomorrow.
Therefore, if it rains today, then we will have a
barbeque tomorrow.”
pq
qr Hypothetical
______ syllogism
Pr
i: “Gary is intelligent.”
a: “Gary is a good actor.”
c: “Gary can count from 1 to 10.”
Step 1: c Hypothesis
Step 2: i c Hypothesis
Step 3: i Modus tollens Steps 1 & 2
Step 4: ai Hypothesis
Step 5: a Disjunctive Syllogism
Steps 3 & 4
x P(x)
______________________ Existential
P(c) for some element cU instantiation
Example:
x P(x)
__________ Universal
P(c) if cU instantiation
n is odd.
Therefore, 3n + 2 is even.