1
snick snack
CPSC 121: Models of Computation 2016W2
Proof Techniques (Part B) Steve Wolfman, based on notes by Patrice Belleville and others
1
Learning Goals: In-Class
By the end of this unit, you should be able to:
– Devise and attempt multiple different, appropriate proof strategies—including all those listed in the “pre-class” learning goals plus use of logical equivalences, rules of inference, universal modus ponens/tollens, and predicate logic premises—for a given theorem. – For theorems requiring only simple insights beyond strategic choices or for which the insight is given/hinted, additionally prove the theorem.
2
Outline
- More Proof Strategies
– Using Logical Equivalences – Using Predicate Logic Premises – Proof by contradiction
- Strategies Summary
- Problems and Discussion
- Next Lecture Notes
3
Using Logical Equivalences
Every logical equivalence that we’ve learned applies to predicate logic statements. For example, to prove ~x D, P(x), you can prove x D, ~P(x) and then convert it back with generalized De Morgan’s. To prove x D, P(x) Q(x), you can prove x D, ~Q(x) ~P(x) and convert it back using the contrapositive rule.
4
In other words, Epp’s “proof by contrapositive” is direct proof after applying a logical equivalence rule.
Worked Problem: Even Squares
Theorem: If the square of an integer n is even, then n is even. Problem: prove the theorem. This is a tricky problem, unless you try some different approaches. An approach that may work with conditional statements is to try the contrapositive (which is logically equivalent to the original conditional).
5
Worked Problem: Even Squares
Theorem: If the square of an integer n is even, then n is even. Approach: (1) Prove the contrapostive: If an integer n is
- dd, then its square is also odd.
(2) Transform the result back into our theorem. We now focus on proving the contrapositive.
6