ICS141: Discrete Mathematics For Computer Science I
ICS141: Discrete Mathematics For Computer Science I
ICS141:
Discrete Mathematics for
Computer Science I
Dept. Information & Computer Sci., University of Hawaii
Jan Stelovsky
based on slides by Dr. Baek and Dr. Still
Originals by Dr. M. P. Frank and Dr. J.L. Gross
Provided by McGraw-Hill
Lecture 6
Chapter 1. The Foundations
1.5 Rules of Inference
n Resolution
n Addition
n Simplification
n When q = r:
[(p ∨ q) ∧ (¬p ∨ q)] → q
n When r = F:
[(p ∨ q) ∧ (¬p)] → q (Disjunctive syllogism)
p∨q
¬p ∨ r
∴q∨r
(p ∨ q) ∧ (¬p ∨ r) → (q ∨ r)
ICS 141: Discrete Mathematics I - Fall 2011 6-5
Formal Proofs
University of Hawaii
(¬q)
n ∀x P(x)
∴P(c) (substitute any specific member c in the domain)
n ∃x P(x)
∴P(c) (substitute an element c for which P(c) is true)
1. ∀x [M(x) → L(x)]
2. M(J)
∴ L(J)
ICS 141: Discrete Mathematics I - Fall 2011 6-13
∀x (M(x) → L(x))
Example cont.
University of Hawaii
M(J)
∴ L(J)
n The proof is
1. ∀x [M(x) → L(x)] Premise 1
2. M(J) → L(J) U. I. from (1)
3. M(J) Premise 2
4. L(J) Modus Ponens from (2) and (3)
∴ I(John)
Mike is a TA.
Therefore, Mike composes easy quizzes.”
n First, separate the premises from conclusion:
n Premise 1: All TAs compose easy quizzes.
n Theorem:
∀x,y : Rational(x) ∧ Irrational(y) → Irrational(x+y)
n Proof: Let x, y be any rational and irrational numbers,
respectively. … (universal generalization)
n Now, just from this, what do we know about x and y?
Think back to the definition of a rational number:
n … Since x is rational, we know (from the very definition
of rational) that there must be some integers i and j
such that x = i /j. So, let ix,jx be such integers …
n Notice that gave them the unique names ix and jx so we
can refer to them later.
a universal statement.
This is always invalid!
n Even as an example, it’s incomplete, because