Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.

Slides:



Advertisements
Similar presentations
Discrete Math Methods of proof 1.
Advertisements

Mathematical Induction
Review for CS1050. Review Questions Without using truth tables, prove that  (p  q)   q is a tautology. Prove that the sum of an even integer and an.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
1 Intro to Induction Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
CSE115/ENGR160 Discrete Mathematics 02/01/11
Copyright © Zeph Grunschlag,
Methods of Proof Leo Cheung. A Quick Review Direct proof Proof by contrapositive Proof by contradiction Proof by induction.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Methods of Proof Lecture 4: Sep 16 (chapter 3 of the book)
1 Strong Mathematical Induction. Principle of Strong Mathematical Induction Let P(n) be a predicate defined for integers n; a and b be fixed integers.
Methods of Proof & Proof Strategies
Introduction to Proofs
1 Methods of Proof CS/APMA 202 Epp, chapter 3 Aaron Bloomfield.
Proofs 1/25/12.
Methods of Proof. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical theorems. Direct.
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
Methods of Proofs PREDICATE LOGIC The “Quantifiers” and are known as predicate quantifiers. " means for all and means there exists. Example 1: If we.
CSci 2011 Discrete Mathematics Lecture 6
1 Methods of Proof. 2 Consider (p  (p→q)) → q pqp→q p  (p→q)) (p  (p→q)) → q TTTTT TFFFT FTTFT FFTFT.
Discrete Mathematics Tutorial 11 Chin
Methods of Proof Lecture 3: Sep 9. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical.
9.4 Mathematical Induction
P. 270 #47-49.
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
Methods of Proof Dr. Yasir Ali. Proof A (logical) proof of a statement is a finite sequence of statements (called the steps of the proof) leading from.
Chapter 1: Introduction
Method of proofs.  Consider the statements: “Humans have two eyes”  It implies the “universal quantification”  If a is a Human then a has two eyes.
2.3 Methods of Proof.
Mathematical Induction
CS104:Discrete Structures Chapter 2: Proof Techniques.
Introduction to Proofs
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
Direct Proof and Counterexample I Lecture 11 Section 3.1 Fri, Jan 28, 2005.
1 Formal Proofs. 2 Deductive Proofs From the given statement(s) to a conclusion statement (what we want to prove) Logical progression by direct implications.
EXAMPLE 3 Write an indirect proof Write an indirect proof that an odd number is not divisible by 4. GIVEN : x is an odd number. PROVE : x is not divisible.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Notions & Notations - 1ICOM 4075 (Fall 2010) UPRM Department of Electrical and Computer Engineering University of Puerto Rico at Mayagüez Fall 2010 ICOM.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
3.3 Mathematical Induction 1 Follow me for a walk through...
Mathematical Induction. The Principle of Mathematical Induction Let S n be a statement involving the positive integer n. If 1.S 1 is true, and 2.the truth.
Lecture 2: Proofs and Recursion. Lecture 2-1: Proof Techniques Proof methods : –Inductive reasoning Lecture 2-2 –Deductive reasoning Using counterexample.
CS151: Mathematical Foundations of Computing Mathematical Induction.
Chapter 1 Logic and Proof.
Hubert Chan (Chapters 1.6, 1.7, 4.1)
11.7 – Proof by Mathematical Induction
The Foundations: Logic and Proofs
CSE15 Discrete Mathematics 02/01/17
Proof methods We will discuss ten proof methods: Direct proofs
Methods of Proof CS 202 Epp, chapter 3.
Methods of Proof A mathematical theorem is usually of the form pq
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Proofs, Recursion and Analysis of Algorithms
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
PROOF BY CONTRADICTION
Follow me for a walk through...
CS 220: Discrete Structures and their Applications
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept 24, 25.
Direct Proof and Counterexample I
Follow me for a walk through...
Induction Chapter
Mathematical Induction
Follow me for a walk through...
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Introduction to Proofs
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept, 2019.
Presentation transcript:

Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a finite collection   o        Direct Proof: to prove PQ is true, Assume P is true, and deduce Q. (like what we have done in Chap1)   o        Contraposition: to prove P Q is true By proving Q P   CS130 Young

k[ P(k) true  P(k+1) true] P(n) true,n o       Contradiction: to prove PQ is true, (indirect proof) Assume both the hypothesis and the negation of the conclusion are true, then try to deduce some contradiction from this assumption.   o        Counterexample: to disprove something   o        Induction: to prove that P(n) is true, n Use the principle of mathematical induction:   P(1) is true k[ P(k) true  P(k+1) true] P(n) true,n CS130 Young

n n! 2n 1 2 4 3 6 8 · Proof by Exhaustion: eg: “For any positive integer n less than or equal to 3, n! < 2n” n n! 2n 1 2 4 3 6 8 CS130 Young

eg:. “If an integer between 5and 15 is divisible by 6, then it eg: “If an integer between 5and 15 is divisible by 6, then it is also divisible by 3” (Note: If the above problem is about all integers, then we cannot use exhaustive proof) Number Divisible by 6 Divisible by 3 5 No 6 Yes: 6 = 1X6 Yes: 6 = 2X3 7 8 9 Yes 10 11 12 Yes: 12 = 2X6 Yes: 12 = 4X3 13 14 15 CS130 Young

eg: “Every integer less than 10 is bigger than 5” Proof by Counterexample: eg: “Every integer less than 10 is bigger than 5” To prove the statement is not true, find a counterexample, integer = 4 < 10, but not > 5.   eg: disprove that “the sum of any three consecutive integers is even.” counterexample : 2+3+4=9 CS130 Young

eg: “for all x [x is divisible by 6  x is divisible by 3]” ·        Direct Proof: eg: “for all x [x is divisible by 6  x is divisible by 3]” X is divisible by 6  x = k*6, for some integer k (hypothesis)  x = k*2*3  x = (k*2)*3   (k*2) is some integer x is divisible by 3 CS130 Young

eg: “the product of two even integers is even” Let x = 2m, y = 2n for some integer m, n (hypothesis)  xy = (2m)(2n) = 2(2mn), which is even. eg: “the sum of two odd integers is even” Let x = 2m+1, y = 2n+1 for some integer m,n (hypothesis)  x + y = 2m + 2n+ 2 = 2(m+n+1), where m+n+1 is an integer x+y is even. CS130 Young

Prove: n even  n2 even (P  Q  Q  P) ·        Contraposition: eg: “If the square of an integer is odd, then the integer must be odd.” “n2 odd  n odd” Prove: n even  n2 even (P  Q  Q  P) Let n = 2m for some integer m (hypothesis)  n2 = n * n = 2m*2m = 2(2m2)  n2 is even. CS130 Young

· eg: “xy is odd iff both x and y are odd.” () by direct proof: Let x = 2m+1, y=2n+1 for some m, n  integers  xy = (2m+1)(2n+1) = 4mn + 2m + 2n +1 = 2(2mn+m+n) +1  since 2mn + m + n is an integer, xy is odd. () by contraposition: to prove that : x even or y even, then xy even case1 x even, y odd: Let x = 2m, y = 2n+1 xy = 2(2mn + m), which is even case2 x odd, y even: similar to case1. case3 x even, y even: Let x = 2m, y = 2n xy = 2(2mn), which is even CS130 Young

· Proof by Contradiction: Since (P  Q F)  (P  Q) is a tautology, It is sufficient to prove P  Q F, then P  Q is true. eg: “If a number added to itself gives itself, then the number is 0.” i.e. “x + x = x, then x = 0”: Assume x + x = x and x  0  2x = x and x  0  2 = 1, which is a contradiction the assumption must be wrong CS130 Young

 4 + 4 – 3 = 0 or 5 = 0, which is a contradiction. ·eg: “if x2 + 2x – 3 = 0, then x  2” Let x2 + 2x – 3 = 0 and assume x = 2,  4 + 4 – 3 = 0 or 5 = 0, which is a contradiction.   ( by direct proof: if x2 + 2x – 3 = 0  (x + 3)(x –1)= 0  x = -3 or x = 1  x  2 ) (by contraposition: if x = 2  x2 + 2x – 3 = 5  0 ) CS130 Young