Chapter 1 P 3
Chapter 1 P 3
and Proofs
Chapter 1, Part III: Proofs
With Question/Answer
Animations
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:
(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) → q
Corresponding Tautology:
Example:
Let p be “I will study discrete math.”
Let q be “I will study English literature.”
(p ∧ q) →(p ∧ q)
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 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:
where v = pu + qt
w = qu ≠ 0
then
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 by symmetry. The use of the 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.
it is an integer divisible by 2.
This completes the proof of case 1.
proof of case 2.
which is odd and hence not even. This completes the
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.
A 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