Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

Similar documents
Lecture 2: Proof Techniques Lecturer: Lale Özkahya

9/5/17. Fermat s last theorem. CS 220: Discrete Structures and their Applications. Proofs sections in zybooks. Proofs.

Lecture 4: Probability, Proof Techniques, Method of Induction Lecturer: Lale Özkahya

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

Sec$on Summary. Mathematical Proofs Forms of Theorems Trivial & Vacuous Proofs Direct Proofs Indirect Proofs

Ch 3.2: Direct proofs

Proofs. Joe Patten August 10, 2018

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

CSE 20 DISCRETE MATH. Fall

CSE 20 DISCRETE MATH. Winter

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Proofs of Mathema-cal Statements. A proof is a valid argument that establishes the truth of a statement.

MATH CSE20 Homework 5 Due Monday November 4

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

a. See the textbook for examples of proving logical equivalence using truth tables. b. There is a real number x for which f (x) < 0. (x 1) 2 > 0.

Mat 243 Exam 1 Review

Example ( x.(p(x) Q(x))) ( x.p(x) x.q(x)) premise. 2. ( x.(p(x) Q(x))) -elim, 1 3. ( x.p(x) x.q(x)) -elim, x. P(x) x.

MATH 271 Summer 2016 Practice problem solutions Week 1

Strategies for Proofs

PHIL12A Section answers, 28 Feb 2011

Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

(3,1) Methods of Proof

For all For every For each For any There exists at least one There exists There is Some

Introduction to proofs. Niloufar Shafiei

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

EECS 1028 M: Discrete Mathematics for Engineers

1. Propositions: Contrapositives and Converses

1.1 Statements and Compound Statements

Proof by contrapositive, contradiction

Meaning of Proof Methods of Proof

Discrete Mathematics

Section 3.1: Direct Proof and Counterexample 1

Sums of Squares. Bianca Homberg and Minna Liu

means is a subset of. So we say A B for sets A and B if x A we have x B holds. BY CONTRAST, a S means that a is a member of S.

COT 2104 Homework Assignment 1 (Answers)

MACM 101 Discrete Mathematics I. Exercises on Predicates and Quantifiers. Due: Tuesday, October 13th (at the beginning of the class)

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

Basic Proof Examples

The Process of Mathematical Proof

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Propositional natural deduction

1. Mathematical Proofs

Introducing Proof 1. hsn.uk.net. Contents

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH SPRING

CSCE 222 Discrete Structures for Computing. Proofs. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

Homework 3: Solutions

CSE 20 DISCRETE MATH. Winter

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

Proof by Contradiction

PROOFS IN MATHEMATICS

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Proofs. Chapter 2 P P Q Q

MAT 243 Test 1 SOLUTIONS, FORM A

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013

3 The language of proof

Foundations of Discrete Mathematics

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

COMP Intro to Logic for Computer Scientists. Lecture 15

Direct Proof and Counterexample I:Introduction. Copyright Cengage Learning. All rights reserved.

Normal Forms Note: all ppts about normal forms are skipped.

Mathematics 220 Midterm Practice problems from old exams Page 1 of 8

Propositional Logic. Spring Propositional Logic Spring / 32

Disjunction/Conjunction Normal Form

Deductive Systems. Lecture - 3

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

First order Logic ( Predicate Logic) and Methods of Proof

Week 2. Week 1 Recap. Week 2

Solutions to Sample Problems for Midterm

Proofs. Chapter 2 P P Q Q

Introduction to Basic Proof Techniques Mathew A. Johnson

Math Real Analysis

Propositional Equivalence

Midterm Exam Solution

Mathematical Induction

Introduction to Logic

Math.3336: Discrete Mathematics. Proof Methods and Strategy

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

STUDY PROBLEMS FOR EXAM I CMSC 203 DISCRETE STRUCTURES. n (n +1)(2n +1), 6. j 2 = 1(1+1)(2 1+1) 6. k (k +1)(2k +1) 6

Equivalence of Propositions

Direct Proof and Counterexample I:Introduction

MATH 135 Fall 2006 Proofs, Part IV

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Geometry Unit 2 Notes Logic, Reasoning and Proof

Reasoning and Proof Unit

Homework 4 Solutions

PROBLEM SET 3: PROOF TECHNIQUES

Section 1.2: Propositional Logic

Warm-Up Problem. Is the following true or false? 1/35

Chapter III. Basic Proof Techniques. Proving the obvious has never been easy. Marty Rubin

Propositional Logic. Fall () Propositional Logic Fall / 30

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Equivalence and Implication

2.2: Logical Equivalence: The Laws of Logic

Properties of the Integers

Transcription:

Proof Terminology Proof Techniques (Rosen, Sections 1.7 1.8) TOPICS Direct Proofs Proof by Contrapositive Proof by Contradiction Proof by Cases Theorem: statement that can be shown to be true Proof: a valid argument that establishes the truth of a theorem Axioms: statements we assume to be true Lemma: a less important theorem that is helpful in the proof of other results Corollary: theorem that can be established directly from a theorem that has been proved Conjecture: statement that is being proposed to be a true statement 2 Learning objectives Technique #1: Direct Proof Direct proofs Proof by contrapositive Proof by contradiction Proof by cases Direct Proof: First step is to clearly state the premise Subsequent steps use rules of inference or other premises Last step proves the conclusion 3 4

Direct Proof Example More formal version Prove If n is an odd integer, then n 2 is odd. If n is odd, then n = 2k+1 for some integer k. n 2 = (2k+1) 2 = 4k 2 + 4k +1 Therefore, n 2 = 2(2k 2 + 2k) + 1, which is odd. 2 * any # even Add 1 to any even # odd # 5 6 Class Exercise Prove: If n is an even integer, then n 2 is even. Tips: If n is even, then n = 2k for some integer k. If n is odd, then n = 2k+1 for some integer k. To use substitution: n 2 = (2k) 2 We prove this by using algebra to either simplify the expression back down to an even or odd definition, in this case n = 2(2k 2 ), which is even. 1. E(n) E(n 2 ) Premise 2. n = 2k Even definition 3. n 2 = (2k) 2 Substitution 4. = 4k 2 Algebra 5. = 2(2k 2 ) Algebra 6. E( 2(2k 2 ) ) = true Even definition 7. n 2 is even Proves Hypothesis 7 8

Class Exercise Prove: If x is even and y is odd, then x * y is even Tips: When doing substitution, you have to use different variables for x and y to show that they can be different numbers. 1. E(x) ^ O(y) E(x*y) Premise 2. x = 2k, y = 2j + 1 Even definition and Odd Definition 3. 2k * (2j + 1) Substitution 4. 4kj + 2k Algebra 5. E ( (2(2kj + k) ) = true Even Definition 6. E(x*y) Proves Hypothesis 9 10 Technique #2: Proof by Contrapositive Proof by Contrapositive A direct proof, but starting with the contrapositive equivalence: p q q p If you are asked to prove p q,, you instead prove q p! Why? Sometimes, it may be easier to directly prove q p then p q p q p q p q q p T T F F T T T F F T F F F T T F T T F F T T T T 11 Logically Equivalent! So if we prove the contradiction, we have proven the hypothesis too! 12

Proof by Contrapositive Example More formal version Prove: If n 2 is an even integer, then n is even. (n 2 even) (n even) By the contrapositive: This is the same as showing that (n even) (n 2 even) If n is odd, then n 2 is odd. (proved on slides 5 and 6) Since we have proved the contrapositive: (n even) (n 2 even) We have also proved the original hypothesis: (n 2 even) (n even) 13 14 Class Exercise Prove: if x multiplied by y is an even, then x is even or y is even Tips: You will need to use DeMorgan s Law for this Will need 10 steps for this problem so add a few more to the bottom. 1. E(x * y) E(x) v E(y) Premise 2. (E(x) v E(y)) E(x * y) Contrapositive Proof 3. E(x) ^ E(y) E(x * y) DeMorgan s Law 4. O(x) ^ O(y) O(x * y) Even == Odd 5. x = 2k+1, y = 2j + 1 Odd Definition 6. (2k + 1) * (2j + 1) Substitution 7. 4kj + 2k + 2j + 1 Algebra 8. 2(2kj + k + j) + 1 Algebra 9. O(2(2kj + k + j) + 1 ) = true Odd Definition 15 10. 2(k+j) +1 is odd Proves Contrapositive 16

Class Exercise Prove: If 5x-7 is even, then x is odd Tips: You NEED to simplify to the odd or even definition. So your last expression should always be either: 2(something) for even 2(something) + 1 for odd Think about how the following algebraic transformation will help you achieve that: 7 == 6 + 1 or -7 == -8 + 1 1. E(5x-7) O(x) Premise 2. O(x) E(5x - 7) Contrapositive Proof 3. E(x) O(5x - 7) Even == Odd, Odd == Even 4. x = 2k Even definition 5. 5(2k) -7 Substitution 6. 10k - 8 + 1 Algebra 7. 2(5k - 4) + 1 Algebra 8. odd(2(5k - 4) + 1) = true Odd Definition 9. odd(5x - 7) = true Proves Contrapositive 17 18 Technique #3: Proof by Contradiction Proof by Contradiction: The Mechanics Prove: If p then q. Proof strategy: -Assume p and the negation of q. -In other words, assume that p q is true. -Then arrive at a contradiction p p (or something that contradicts a known fact). -Since this cannot happen, our assumption must be wrong, thus, q is false. q is true. 19 20

Proof by Contradiction Example More Formal Version Prove: If (3n+2) is odd, then n is odd. Proof: -Given: (3n+2) is odd. -Assume that n is not odd, that is n is even. -If n is even, there is some integer k such that n=2k. -(3n+2) = (3(2k)+2)=6k+2 = 2(3k+1), which is 2 times a number. -Thus 3n+2 turned out to be even, but we know it s odd. -This is a contradiction. Our assumption was wrong. -Thus, n must be odd. 21 22 Class Exercise Work on the following exercise: if n 3 + 5 is odd, then n is even Tips: - For the algebraic portion of the proof - I need enough detail that I know that you know how to simplify the expression down to the even or odd definition. 23 1. O(n 3 + 5) E(n) Premise 2. O(n 3 + 5) ^ E(n) Contradiction 3. 4. 5. 6. 7. 8. 9. 10. O(n 3 + 5) ^ O(n) n = 2k + 1 Even == Odd Odd definition (2k + 1) 3 + 5 Substitution (4k 2 +4k + 1)(2k+1) + 5 Algebra 8k 3 + 8k 2 + 6k + 1 + 5 8k 3 + 8k 2 + 6k + 6 Even ( 2(4k 3 + 4k 2 + 3k + 3)) = true O(n 3 + 5) = false Algebra Algebra Even Definition Disproves Contradiction and therefore proves Hypothesis 24

Technique #4: Proof by Cases Proof by Cases Example Given a problem of the form: (p 1 p 2 p n ) q where p 1, p 2, p n are the cases p q This is equivalent to the following: [(p 1 q) (p 2 q) (p n q)] So prove all the clauses are true. Prove: If n is an integer, then n 2 n (n = 0 n 1 n -1) n 2 n Show for all the three cases, i.e., (n = 0 n 2 n) p (n q 1 n 2 n) (n -1 n 2 n) 25 26 Proof by Cases (cont d) Proof by Cases (cont d) Case 1: Show that n = 0 n 2 n - When n=0, n 2 = 0. - 0 0 p q Case 2: Show that n 1 n 2 n - Multiply both sides of the inequality by n - We get n 2 n Case 3: Show that n -1 n 2 n Given n -1, We know that n 2 cannot be negative, i.e., n 2 > 0 We know that 0 > -1p q Thus, n 2 > -1. We also know that -1 n (given) Therefore, n 2 n 27 28