Chapter 4 (Part 1): Induction & Recursion

Slides:



Advertisements
Similar presentations
Lecture 3 – February 17, 2003.
Advertisements

With examples from Number Theory
Introduction to Proofs
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Induction and recursion
22C:19 Discrete Structures Logic and Proof Spring 2014 Sukumar Ghosh.
More Number Theory Proofs Rosen 1.5, 3.1. Prove or Disprove If m and n are even integers, then mn is divisible by 4. The sum of two odd integers is odd.
Logic and Proof. Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement.
CSE115/ENGR160 Discrete Mathematics 02/07/12
CMSC 250 Discrete Structures Number Theory. 20 June 2007Number Theory2 Exactly one car in the plant has color H( a ) := “ a has color”  x  Cars –H(
So far we have learned about:
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
Copyright © Cengage Learning. All rights reserved.
ELEMENTARY NUMBER THEORY AND METHODS OF PROOF
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
CS 2210 (22C:019) Discrete Structures Logic and Proof Spring 2015 Sukumar Ghosh.
C OURSE : D ISCRETE STRUCTURE CODE : ICS 252 Lecturer: Shamiel Hashim 1 lecturer:Shamiel Hashim second semester Prepared by: amani Omer.
Methods of Proof & Proof Strategies
Introduction to Proofs
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!
Introduction to Proofs
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
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.
Section 1.8. Section Summary Proof by Cases Existence Proofs Constructive Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness Proofs.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
1 Proof Strategies CS/APMA 202 Rosen section 3.1 Aaron Bloomfield.
Chapter 5 Existence and Proof by contradiction
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Introduction to Proofs.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
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.
4.1 Proofs and Counterexamples. Even Odd Numbers Find a property that describes each of the following sets E={…, -4, -2, 0, 2, 4, 6, …} O={…, -3, -1,
Foundations of Discrete Mathematics Chapters 5 By Dr. Dalia M. Gil, Ph.D.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
22C:19 Discrete Structures Logic and Proof Fall 2014 Sukumar Ghosh.
CS104:Discrete Structures Chapter 2: Proof Techniques.
1 CMSC 250 Chapter 3, Number Theory. 2 CMSC 250 Introductory number theory l A good proof should have: –a statement of what is to be proven –"Proof:"
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.
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.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 09a: PROOF STRATEGIES Section 3.1 Jarek Rossignac CS1050:
ICS 253: Discrete Structures I
Section 1.8. Proof by Cases Example: Let b = max{a, b} = a if a ≥ b, otherwise b = max{a, b} = b. Show that for all real numbers a, b, c
Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.
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.
Lecture 1.5: Proof Techniques
Chapter 1 Logic and Proof.
Chapter 1 Logic and Proof.
The Foundations: Logic and Proofs
CS 2210:0001 Discrete Structures Logic and Proof
CS 210 Discrete Mathematics The Integers and Division (Section 3.4)
Chapter 4 (Part 3): Mathematical Reasoning, Induction & Recursion
CSE15 Discrete Mathematics 02/08/17
Argument An argument is a sequence of statements.
Lecture 1.5: Proof Techniques
Induction and recursion
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Induction and recursion
CS 220: Discrete Structures and their Applications
First Order Logic Rosen Lecture 3: Sept 11, 12.
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept 24, 25.
Copyright © Cengage Learning. All rights reserved.
Elementary Number Theory & Proofs
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Chapter 4 (Part 2): Mathematical Reasoning, Induction & Recursion
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept, 2019.
Presentation transcript:

Chapter 4 (Part 1): Induction & Recursion Proof Strategy (4.1)

Proof Strategy (4.1) Introduction Provide advice on how to find a proof of a theorem How proofs are constructed Method of proof by cases CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Proof Strategies Proof of a statement Replace terms by their definition Analyze what the hypotheses and conclusions mean CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Prove the result using one of the available methods of proof Example: p  q Go from p and derive q Assume q false and p true and derive a contradiction Prove the contrapositive q  p. CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Strategy of proof of an implication The forward reasoning Start with hypotheses Use axioms and known theorem with hypotheses Use a sequence of logical steps to derive the conclusion  This is the most common type of reasoning to prove relatively simple results. CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) CSE 504 Discrete Structures & Foundations of Computer Science Proof Strategy (4.1) (cont.) Dr. Djamel Bouchaffra The backward reasoning Start with the negation of the conclusion Use a sequence of logical steps to derive the negation of the hypotheses Unfortunately, forward reasoning is often difficult to use to prove more complicated results. We often use backward reasoning. CS 210 Discrete Structures, Chapter 4 (Part 1) Ch. 3 (Part 1): Sections 3.1 & 3.2

Proof Strategy (4.1) (cont.) Example: Prove that the arithmetic mean is always greater than the geometric mean for positive real numbers. Proof: (a + b)/2 > ab (a + b)2/4 > ab (a + b)2 > 4ab a2 + 2ab + b2 > 4ab a2 – 2ab + b2 > 0 (a – b)2 > 0 since this last inequality is always true if a  b and since all these inequalities are equivalent, it follows that (a + b)/2 > ab (a  b). CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Example: Show that there are no solutions in integers x and y of x2 + 3y2 = 8. Proof: when |x|  3  x2 > 8 when |y|  2  3y2 > 8 The remaining cases are those when x takes one of the values –2, -1, 0, 1 or 2 and y takes one of the values –1, 0 or 1. By computing x2 and 3y2 with all these possible values and by combining the sum x2 + 3y2, we find that the largest sum is equal to 7. Therefore, it is impossible for x2 + 3y2 = 8 to hold when x and y are integers. CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Conjecture and Proof Conjecture: Statement whose truth value is unknown No matter how a conjecture was made, once it has been formulated, the goal is to prove or disprove it When mathematicians believe a conjecture may be true, they try to find a proof If proofs cannot be found by mathematicians, they may look for a counterexample Few conjecture resist attack for hundred of years and lead to the development of new parts of mathematics CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Example: Conjecture: Do other primes of the special form an –1, where a and n are positive integers, exist? 26 –1 = 63, 28 –1 = 255 34 –1 = 80, 45 –1 = 1023 These numbers are not prime! We cannot find any primes beside the Mersenne primes (2p-1) We can conjecture that an-1 is composite when a > 2 or when a = 2 and n is composite CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Proof: We need to find a factor of an-1 when a > 2 or a = 2 and n is composite. an-1 = (a –1) (an-1 + an-2 + … + a + 1) when a =2  a –1 = 2 –1 = 1 we cannot conclude! when a > 2  a –1 is a factor of an –1 with 1 < a –1 < an –1  an –1 is not prime. when a = 2 and n is composite  r and s with 1 < r < n and 1 < s < n such that n = rs an-1 = ars –1 = (ar –1) (ar(s-1) + …+ ar +1)  ar –1 is a factor of an –1. CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Theorem 1: The integer an-1 is composite when a > 2 or when a = 2 and n is composite CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Conjectures & Counterexamples The role of open problems One famous problem unsolved for approximately three hundred years led to the development of an entire branch of number theory This problem asked whether the statement known as Fermat’s last theorem is true CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Theorem 2: Fermat’s Last Theorem The equation xn + yn = zn has no solutions in integers x, y, and z with xyz  0 whenever n is an integer with n > 2. Proof: Refer to Andrew Wiles (Theory of Elliptic Curves) CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) Example: The 3x + 1 conjecture When we repeatedly apply the function f, we will eventually reach the integer 1. CS 210 Discrete Structures, Chapter 4 (Part 1)

Proof Strategy (4.1) (cont.) x = 13  f(13) = 3 * 13 + 1 = 40 x = 40  f(40) = 40/2 = 20 x = 20  f(20) = 20/2 = 10 x = 10  f(10) = 10/2 = 5 x = 5  f(5) = 3 * 5 + 1 = 16 x = 16  f(16) =16/2 = 8 x = 8  f(8) = 8/2 = 4 x = 4  f(4) = 4/2 =2 x = 2  f(2) = 1 This conjecture has been verified for all integers x up to 5 * 6 * 1013. CS 210 Discrete Structures, Chapter 4 (Part 1)

Exercises Section 3.1: #6, 8, 10 and 12. CS 210 Discrete Structures, Chapter 4 (Part 1)