CSE 103: Discrete Mathematics: Predicate Rules of Inference
CSE 103: Discrete Mathematics: Predicate Rules of Inference
Predicate
Rules of Inference
Predicates - more examples
L(x) = “x is a lion.” Universe of discourse
is all creatures.
F(x) = “x is fierce.”
C(x) = “x drinks coffee.”
x (F(x)
C(x))
10/15/20
Predicates - quantifier negation
10/15/20
Predicates - quantifier negation
No large birds live on honey.
10/15/20
Predicates - free and bound variables
A variable is bound if it is known or quantified.
Otherwise, it is free.
Examples:
P(x) x is free
P(5) x is bound to 5
x P(x) x is bound by quantifier
Reminder: in a
proposition, all
variables must be
bound.
10/15/20
Predicates - multiple quantifiers
To bind many variables, use many quantifiers!
10/15/20
Proofs - how do you know?
The following statements are true:
If I am Mila, then I am a great swimmer.
I am Mila.
How do we
know it?
10/15/20
Proofs - how do you know?
A theorem is a statement that can be shown
to be true.
A proof is the means of doing so.
Axiom, postulates,
hypotheses and
previously proven
theorems.
Rules of inference
Proof
10/15/20
Proofs - how do you know?
The following statements are true:
If I am Mila, then I am a great swimmer.
I am Mila.
10/15/20
Proofs - Modus Ponens
I am Mila.
If I am Mila, then I am a great swimmer.
I am a great swimmer!
p Inference
Tautology: Rule:
pq
(p (p q)) q Modus
q Ponens
10/15/20
Proofs - Modus Tollens
I am not Erik!
q Inference
Tautology: Rule:
pq
(q (p q)) p Modus
p Tollens
10/15/20
Proofs - Addition
Inference
Tautology: Rule:
p
p (p q) Addition
pq
10/15/20
Proofs - Simplification
Inference
Tautology: Rule:
pq
(p q) p Simplification
p
10/15/20
Proofs - Disjunctive Syllogism
I am a great eater!
pq Inference
Tautology: Rule:
q
((p q) q) p Disjunctive
p Syllogism
10/15/20
Proofs - Hypothetical Syllogism
10/15/20
Proofs - A little proof…
1. M C Given
2. D C Given
3. D S Given
4. M Given
5. C DS (1,4)
6. D MT (2,5)
7. S MP (3,6)
Ellen is smart!
10/15/20
Proofs - A little proof…
1. M C Given
2. D C Given
3. D S Given
4. M Given
Ellen is smart!
10/15/20
10/15/20
•
10/15/20
10/15/20
•
10/15/20
10/15/20
Proof Techniques - direct proofs
37 = 1 mod 4
37 = 61 mod 4 94 = 2 mod 4 94 = 6 mod 4
16 = 0 mod 4 16 = 1024 mod 4
10/15/20
Proof Techniques - direct proofs
10/15/20
Proofs - valid arg or fallacy?
Affirming the
If I am Bonnie Blair, then I skate fast
conclusion.
I skate fast!
10/15/20
Proofs - valid arg or fallacy?
10/15/20