Discrete Structure-Chapter 1 Part 3
Discrete Structure-Chapter 1 Part 3
and Proofs
Chapter 1, Part III: Proofs
With Question/Answer
Animations
Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Summary
Valid Arguments and Rules of Inference
Proof Methods
Proof Strategies
Rules of Inference
Section 1.6
Section Summary
Valid Arguments
Inference Rules for Propositional Logic
Using Rules of Inference to Build Arguments
Rules of Inference for Quantified Statements
Building Arguments for Quantified
Statements
Revisiting the Socrates Example
We have the two premises:
“All men are mortal.”
“Socrates is a man.”
And the conclusion:
“Socrates is mortal.”
How do we get the conclusion from the
premises?
The Argument
We can express the premises (above the line)
and the conclusion (below the line) in
predicate logic as an argument:
(p1 ∧ p2 ∧ … ∧ pn ) → q is a tautology.
Inference rules are all argument simple argument forms that
will be used to construct more complex argument forms.
Rules of Inference for Propositional Logic:
Modus Ponens
(p ∧ (p →q)) → q
Corresponding Tautology:
Example:
Let p be “It is snowing.”
Let q be “I will study discrete math.”
(¬q∧(p →q))→¬p
Tautology:
Example:
Let p be “it is snowing.”
Let q be “I will study discrete math.”
Example:
Let p be “it snows.”
Let q be “I will study discrete math.”
Let r be “I will get an A.”
(¬p∧(p ∨q))→q
Tautology:
Example:
Let p be “I will study discrete math.”
Let q be “I will study English literature.”
p →(p ∨q)
Corresponding Tautology:
Example:
Let p be “I will study discrete math.”
Let q be “I will visit Las Vegas.”
(p∧q) →p
Corresponding Tautology:
Example:
Let p be “I will study discrete math.”
Let q be “I will study English literature.”
Example:
Let p be “I will study discrete math.”
Let q be “I will study English literature.”
Example:
Let p be “I will study discrete math.”
Let r be “I will study English literature.”
Let q be “I will study databases.”
C
Valid Arguments
Example 1: From the single proposition
Example:
Example:
Example:
p → q is true as well.
Trivial Proof: If we know q is true, then
p → q is true as well.
Vacuous Proof: If we know p is false then
1,
where r = 2k2 + 2k , an integer.
We have proved that if n is an odd integer, then n2 is
an odd integer.
( marks the end of the proof. Sometimes
QED is used instead. )
Proving Conditional Statements: p → q
Definition: The real number r is rational if
there exist integers p and q where q≠0 such
that r = p/q
Example: Prove that the sum of two rational
numbers is rational.
Solution: Assume r and s are two rational
numbers. Then there must be integers p, q and
where v = pu + qt
also t, u such that
w = qu ≠ 0
n2 = 4k2 = 2 (2k2)
and n2 is even(i.e., not odd).
We have shown that if n is an even integer, then
n2 is even. Therefore by contraposition, for an
integer n, if n2 is odd, then n is odd.
Proving Conditional Statements: p → q
To prove p, assume ¬p and derive a contradiction such
Proof by Contradiction: (AKA reductio ad absurdum).
1. a ≥ b ≥ c
Then one of the following 6 cases must hold.
2. a ≥ c ≥ b
3. b ≥ a ≥c
4. b ≥ c ≥a
5. c ≥ a ≥ b
6. c ≥ b ≥ a Continued on next slide
Proof by Cases
Case 1: a ≥ b ≥ c
(a @ b) = a, a @ c = a, b @ c = b
Hence (a @ b) @ c = a = a @ (b @ c)
Therefore the equality holds for the first case.
We only cover the case where x is odd because the case where y is odd is
similar. The use phrase without loss of generality (WLOG) indicates
this.
Existence Proofs (1887-1920)
Srinivasa Ramanujan
(1877-1947)
Godfrey Harold Hardy
Nonconstructive Existence Proofs
In a nonconstructive existence proof, we assume
no c exists which makes P(c) true and derive a
contradiction.
Example: Show that there exist irrational
property.
Example: Show that if a and b are real numbers and a ≠0,
then there is a unique real number r such that ar + b = 0.
Solution:
Existence: The real number r = −b/a is a solution of ar + b = 0
because a(−b/a) + b = −b + b =0.
Uniqueness: Suppose that s is a real number such that as + b
= 0. Then ar + b = as + b, where r = −b/a. Subtracting b from
both sides and dividing by a shows that r = s.
Proof Strategies for proving p → q
Choose a method.
1. First try a direct method of proof.
2. If this does not work, try an indirect method (e.g., try
to prove the contrapositive).
For whichever method you are trying, choose a
strategy.
1. First try forward reasoning. Start with the axioms
and known theorems and construct a sequence of
Step n-5: Player2 needs to be faced with 12 stones to be forced to leave 9,10, or 11.
left.
of case 2.
which is odd and hence not even. This completes the proof
Two
Dominoes
Nonstandard Dominoes
Checkerboard
Continued on next slide
Tilings
Solution:
There are 62 squares in this board.
To tile it we need 31 dominos.
Key fact: Each domino covers one black and one
white square.
Therefore the tiling covers 31 black squares and
31 white squares.
Our board has either 30 black squares and 32
white squares or 32 black squares and 30 white
squares.
Contradiction!
The Role of Open Problems
Unsolved problems have motivated much
work in mathematics. Fermat’s Last Theorem
was conjectured more than 300 years ago. It
yn = zn