Module #15 – Inductive Proofs 12/6/2015(c)2001-2003, Michael P. Frank1 Inductive Proofs: a brief introduction Rosen 5 th ed., §3.3 ~35 slides, ~1.5 lecture.

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
Induction and recursion
Induction Sections 41. and 4.2 of Rosen Fall 2008 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
Induction Sections 4.1 and 4.2 of Rosen Fall 2010
1 Inductive Proofs Rosen 6 th ed., § Mathematical Induction A powerful, rigorous technique for proving that a predicate P(n) is true for every.
CSE115/ENGR160 Discrete Mathematics 02/01/11
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
CSE115/ENGR160 Discrete Mathematics 03/22/12 Ming-Hsuan Yang UC Merced 1.
Module #1 - Logic 1 Based on Rosen, Discrete Mathematics & Its Applications. Prepared by (c) , Michael P. Frank. Modified By Mingwu Chen Induction.
1 Section 3.3 Mathematical Induction. 2 Technique used extensively to prove results about large variety of discrete objects Can only be used to prove.
CSE115/ENGR160 Discrete Mathematics 03/29/11 Ming-Hsuan Yang UC Merced 1.
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.
Mathematical Induction
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
Methods of Proof & Proof Strategies
Mathematical Maxims and Minims, 1988
Lecture 9. Arithmetic and geometric series and mathematical induction
Induction and recursion
Chapter 6 Mathematical Induction
Discrete Mathematics, 1st Edition Kevin Ferland
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
Induction and Recursion §4.1 Mathematical Induction §4.2 Strong Induction and Well-Ordering §4.3 Recursive Definitions and Structural Inductions §4.4 Recursive.
Copyright © Peter Cappello Mathematical Induction Goals Explain & illustrate construction of proofs of a variety of theorems using mathematical induction.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
Discrete Mathematics Tutorial 11 Chin
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Module #13: Inductive Proofs Rosen 5 th ed., § inference of a generalized conclusion from particular instances 2. mathematical demonstration of the.
Inductive Proofs. Mathematical Induction A powerful, rigorous technique for proving that a predicate P(n) is true for every natural number n, no matter.
Chapter Mathematical Induction 4.2 Strong Induction and Well-Ordering 4.3 Recursive Definitions and Structural Induction 4.4 Recursive Algorithms.
Induction Proof. Well-ordering A set S is well ordered if every subset has a least element. [0, 1] is not well ordered since (0,1] has no least element.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
1 Inductive Proofs Rosen 6 th ed., § Mathematical Induction A powerful, rigorous technique for proving that a predicate P(n) is true for every.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
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.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
Foundations of Discrete Mathematics Chapters 5 By Dr. Dalia M. Gil, Ph.D.
1 INFO 2950 Prof. Carla Gomes Module Induction Rosen, Chapter 4.
Mathematical Induction
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Chapter 5. Section 5.1 Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach.
2012 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수학적 귀납법 (Mathematical Induction)
Section 5.1. Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach a particular.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Mathematical Induction
3.3 Mathematical Induction 1 Follow me for a walk through...
Chapter 5 1. Chapter Summary  Mathematical Induction  Strong Induction  Recursive Definitions  Structural Induction  Recursive Algorithms.
COT 3100, Spring 2001 Applications of Discrete Structures
Advanced Algorithms Analysis and Design
Induction and recursion
Module #10: Proof Strategies
Discrete Mathematics and its Applications
BaSIC Math Reviews.
Induction and recursion
Module #13: Inductive Proofs
Module #10: Proof Strategies
Induction Chapter
Advanced Analysis of Algorithms
Mathematical Induction
Mathematical Induction
Discrete Mathematics and its Applications
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank1 Inductive Proofs: a brief introduction Rosen 5 th ed., §3.3 ~35 slides, ~1.5 lecture

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank2 §3.3: Mathematical Induction A powerful, rigorous technique for proving that a predicate P(n) is true for every natural number n, no matter how large.A powerful, rigorous technique for proving that a predicate P(n) is true for every natural number n, no matter how large. Essentially a “domino effect” principle.Essentially a “domino effect” principle. Based on this inference rule: P(0)  n  0 (P(n)  P(n+1))  n  0 P(n)Based on this inference rule: P(0)  n  0 (P(n)  P(n+1))  n  0 P(n) “The First Principle of Mathematical Induction”

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank3 The “Domino Effect” Premise #1: Domino #0 falls.Premise #1: Domino #0 falls. Premise #2: For every n  N, if domino #n falls, then so does domino #n+1.Premise #2: For every n  N, if domino #n falls, then so does domino #n+1. Conclusion: All of the dominoes fall down!Conclusion: All of the dominoes fall down!

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank4 The “Domino Effect” … Premise #1: Domino #0 falls.Premise #1: Domino #0 falls. Premise #2: For every n  N, if domino #n falls, then so does domino #n+1.Premise #2: For every n  N, if domino #n falls, then so does domino #n+1. Conclusion: All of the dominoes fall down!Conclusion: All of the dominoes fall down! Note: this works even if there are infinitely many dominoes!

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank5 First premiss: the basis step (also: base case)First premiss: the basis step (also: base case) Second premiss: the induction stepSecond premiss: the induction step Why is mathematical induction valid?Why is mathematical induction valid?

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank6 Validity of Induction Proof that  k>0 P(k) is a valid conclusion: Consider any k>0. The 2 nd premiss  n  0 (P(n)  P(n+1)) implies that (P(0)  P(1))  (P(1)  P(2))  …  (P(k  1)  P(k)). Premiss #1 says that P(0). One application of Modus Ponens (in combination with (P(0)  P(1)) ) gives us P(1); another gives us P(2), and so on to P(k) (using k steps of Modus Ponens in total)). Thus  k>0 P(k). ■ Premiss #1 says that P(0). One application of Modus Ponens (in combination with (P(0)  P(1)) ) gives us P(1); another gives us P(2), and so on to P(k) (using k steps of Modus Ponens in total)). Thus  k>0 P(k). ■

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank7 The Well-Ordering Property A more general way to prove the validity of the inductive inference rule is by using the fact that (N,  ) is a well-ordering:A more general way to prove the validity of the inductive inference rule is by using the fact that (N,  ) is a well-ordering: –Every non-empty set of natural numbers has a least (“smallest”) element. –   S  N :  m  S :  n  S : m  n This implies that {n|  P(n)} (if non-empty!) has a min. element m, but then the assumption that P(m−1)  P((m−1)+1) would be contradicted.This implies that {n|  P(n)} (if non-empty!) has a min. element m, but then the assumption that P(m−1)  P((m−1)+1) would be contradicted.

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank8 Inductive Proofs have a fixed structure: Suppose we want to prove  n P(n)…Suppose we want to prove  n P(n)… –Basis step: Prove P(0). –Inductive step: Prove  n P(n)  P(n+1). E.g. you could use a direct proof, as follows:E.g. you could use a direct proof, as follows: Assume P(n). (inductive hypothesis = IH)Assume P(n). (inductive hypothesis = IH) Now, under this assumption, prove P(n+1).Now, under this assumption, prove P(n+1). –If you manage to do all this, then the inductive inference rule gives us  n P(n).

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank9 Induction is like heridity:Induction is like heridity: “If Adam had big feet, and big feet are heriditary then every person (except possibly Eve) has/had big feet”“If Adam had big feet, and big feet are heriditary then every person (except possibly Eve) has/had big feet” (Note: what if a person’s feet can be just slightly smaller than that of both of his parents?)(Note: what if a person’s feet can be just slightly smaller than that of both of his parents?)

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank10 Generalizing Induction slightly Rule can also be used to prove  n  c P(n) for a given constant c  Z, where maybe c  0.Rule can also be used to prove  n  c P(n) for a given constant c  Z, where maybe c  0. –In this circumstance, the base case is to prove P(c) rather than P(0), and the inductive step is to prove  n  c (P(n)  P(n+1)).

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank11 Proof by induction (1 st princ): a very simple example Theorem:  x  N (x  0). Proof:Theorem:  x  N (x  0). Proof: Basis step:Basis step: Inductive step:Inductive step:

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank12 Proof by induction (1 st princ): a very simple example Theorem:  x  N (x  0). Proof:Theorem:  x  N (x  0). Proof: Basis step: we show that 0  0. This is obvious, since  is reflexive.Basis step: we show that 0  0. This is obvious, since  is reflexive. Inductive step: we show that  x (x  0  x+1  0). Induction Hypothesis (IH): Suppose a  0. Clearly, a+1  a. Transitivity allows us to infer from these two propositions that a+1  0. QEDInductive step: we show that  x (x  0  x+1  0). Induction Hypothesis (IH): Suppose a  0. Clearly, a+1  a. Transitivity allows us to infer from these two propositions that a+1  0. QED

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank13 Find the error “Theorem”: All sets of horses are ‘uniform’, in the sense that all their elements have the same colour.“Theorem”: All sets of horses are ‘uniform’, in the sense that all their elements have the same colour. Method: induction over the cardinality of the setMethod: induction over the cardinality of the set P(x): all sets of cardinality x are uniformP(x): all sets of cardinality x are uniform“Proof”: Basis step: P(1) (This is trivial)Basis step: P(1) (This is trivial)

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank14 Find the error “Theorem”: All sets of horses are uniform“Theorem”: All sets of horses are uniform Induction Hypothesis: P(n). To prove: P(n+1). Proof: Consider a set S= {h 1,h 2,…,h n+1 } of n+1 horses. Split S into its subsets A and B: A= {h 1,h 2,…h n } B= {h 2,h 3,…,h n+1 } Induction Hyp implies that A is uniform and B is uniform. A  B , so A  B is uniform. QEDInduction Hypothesis: P(n). To prove: P(n+1). Proof: Consider a set S= {h 1,h 2,…,h n+1 } of n+1 horses. Split S into its subsets A and B: A= {h 1,h 2,…h n } B= {h 2,h 3,…,h n+1 } Induction Hyp implies that A is uniform and B is uniform. A  B , so A  B is uniform. QED

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank15 Second Example (1st princ.) Prove that the sum of the first n odd positive integers is n 2. That is, prove:Prove that the sum of the first n odd positive integers is n 2. That is, prove: Proof by induction.Proof by induction. –Base case: Let n=1. The sum of the first 1 odd positive integer is 1, which equals 1 2. (Cont…) P(n)P(n)

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank16 Example cont. –Inductive step: Prove  n  1: P(n)  P(n+1). Let n  1, assume P(n) (IH), and prove P(n+1). Let n  1, assume P(n) (IH), and prove P(n+1). By inductive hypothesis P(n)

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank17 Proving the induction step of the first principle of m.i. To prove the universally quantified statement  n  1: P(n)  P(n+1), you do this: –Taking an arbitrary n, you hypothesise P(n) –If this allows you to prove P(n+1) then you have proved  n  1: P(n)  P(n+1)

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank18 Second Principle of Induction Characterized by another inference rule: P(0)  n  0: (  0  k  n P(k))  P(n+1)  n  0: P(n)Characterized by another inference rule: P(0)  n  0: (  0  k  n P(k))  P(n+1)  n  0: P(n) The only difference between this and the 1st principle is that:The only difference between this and the 1st principle is that: –the inductive step here makes use of the stronger hypothesis that P(k) is true for all smaller numbers k<n+1, not just for k=n. P is true in all previous cases A.k.a. “Strong Induction”

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank19 Proving the induction step of the second principle of m.i. To prove the universally quantified statement  n  0: ((  0  k  n P(k))  P(n+1)) you do this: –Taking an arbitrary n  0, you hypothesise  0  k  n P(k) –If this allows you to prove P(n+1) then you have proved  n  0: ((  0  k  n P(k))  P(n+1))

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank20 Example of Second Principle Theorem: Show that every n>1 can be written as a product  p i = p 1 p 2 …p s of prime numbers. –Let P(n)=“n has that property” Definition: x is a prime number  x is only dividable by 1 and by xDefinition: x is a prime number  x is only dividable by 1 and by x Base case: n=2, let s=1, p 1 =2.Base case: n=2, let s=1, p 1 =2. Inductive step: Let n  2. IH: assume  2  k  n: P(k). Consider n+1. If it’s prime, then let s=1, p 1 =n+1. Else …..Inductive step: Let n  2. IH: assume  2  k  n: P(k). Consider n+1. If it’s prime, then let s=1, p 1 =n+1. Else …..

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank21 Example of Second Principle Theorem: Show that every n>1 can be written as a product  p i = p 1 p 2 …p s of some series of s prime numbers. –Let P(n)=“n has that property” Base case: n=2, let s=1, p 1 =2.Base case: n=2, let s=1, p 1 =2. Inductive step: Let n  2. IH: assume  2  k  n: P(k). Consider n+1. If it’s prime, then let s=1, p 1 =n+1. Else n+1=ab, where 1  a  n and 1  b  n. Then (by IH) a=p 1 p 2 …p t and b=q 1 q 2 …q u. Consequently, n+1 = p 1 p 2 …p t q 1 q 2 …q u, a product of s=t+u primes.Inductive step: Let n  2. IH: assume  2  k  n: P(k). Consider n+1. If it’s prime, then let s=1, p 1 =n+1. Else n+1=ab, where 1  a  n and 1  b  n. Then (by IH) a=p 1 p 2 …p t and b=q 1 q 2 …q u. Consequently, n+1 = p 1 p 2 …p t q 1 q 2 …q u, a product of s=t+u primes.

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank22 Application to the cardinality of sets Theorem: for all finite sets A, if |A|=n then P(A) = 2 n. Proof:Theorem: for all finite sets A, if |A|=n then P(A) = 2 n. Proof: Base step: if |A|=0 then P(A) = 2 0 =1. Why?Base step: if |A|=0 then P(A) = 2 0 =1. Why?

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank23 Application to the cardinality of sets Theorem: for all finite sets A, if |A|=n then P(A) = 2 n. Proof:Theorem: for all finite sets A, if |A|=n then P(A) = 2 n. Proof: Base step: if |A|=0 then P(A) = 2 0 =1. Why? P(  )={  } and |{  }|=1.Base step: if |A|=0 then P(A) = 2 0 =1. Why? P(  )={  } and |{  }|=1.

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank24 Application to the cardinality of sets Theorem: for all finite sets A, if |A|=n then P(A) = 2 n. Proof:Theorem: for all finite sets A, if |A|=n then P(A) = 2 n. Proof: Base step: if |A|=0 then P(A) = 2 0 =1. Why? P(  )={  } and |{  }|=1.Base step: if |A|=0 then P(A) = 2 0 =1. Why? P(  )={  } and |{  }|=1. I.H.: suppose for every set A such that |A|=n, it holds that P(A) = 2n Then consider any set B such that |B|=n+1. To prove: |P(B)|=2 n+1I.H.: suppose for every set A such that |A|=n, it holds that P(A) = 2n Then consider any set B such that |B|=n+1. To prove: |P(B)|=2 n+1

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank25 Application to the cardinality of sets I.H.: suppose for every set A such that |A|=n, it holds that P(A) = 2n. Then consider any set B such that |B|=n+1. To prove: |P(B)|=2 n+1I.H.: suppose for every set A such that |A|=n, it holds that P(A) = 2n. Then consider any set B such that |B|=n+1. To prove: |P(B)|=2 n+1 Proof: B has twice as many subsets as A. (Think of B as consisting of a set B’ such that |B’|=|A|=n, plus one other element b. Every subset of B’ comes in two flavours: one with and one without b.) Thus, |P(B)| = 2.|P(A)| = 2.2 n (because of IH) = 2 n+1Proof: B has twice as many subsets as A. (Think of B as consisting of a set B’ such that |B’|=|A|=n, plus one other element b. Every subset of B’ comes in two flavours: one with and one without b.) Thus, |P(B)| = 2.|P(A)| = 2.2 n (because of IH) = 2 n+1

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank26 Mathematical Induction is valid on all well- ordered structures (as we have proven).Mathematical Induction is valid on all well- ordered structures (as we have proven). We have seen examples where it is applied to the structure (N,  ). More generally, ({x  Z|x>n},  ).We have seen examples where it is applied to the structure (N,  ). More generally, ({x  Z|x>n},  ). Integers are everywhere, and this makes Mathematical Induction very powerfulIntegers are everywhere, and this makes Mathematical Induction very powerful

Module #15 – Inductive Proofs 12/6/2015(c) , Michael P. Frank27 Something else: `Nonmathematical` induction We have talked about mathematical induction.We have talked about mathematical induction. In physical sciences (and in ordinary life), people use a much less precise kind of inductive hypothesis to make inferences.In physical sciences (and in ordinary life), people use a much less precise kind of inductive hypothesis to make inferences. E.g.: “If the sun has come up every day up to a given day, then it will come up the next day”. E.g.: “If the sun has come up every day up to a given day, then it will come up the next day”. You can’t prove that! Non-mathematical induction may be highly plausible, but its induction step is never logically valid.You can’t prove that! Non-mathematical induction may be highly plausible, but its induction step is never logically valid.