March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.

Slides:



Advertisements
Similar presentations
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Mathematical Reasoning Methods of Proof.
Advertisements

Fall 2002CMSC Discrete Structures1 Follow me for a walk through... MathematicalInduction.
Mathematical Induction
Introduction to Proofs
Announcements Grading policy No Quiz next week Midterm next week (Th. May 13). The correct answer to the quiz.
1 Section 1.5 Rules of Inference. 2 Definitions Theorem: a statement that can be shown to be true Proof: demonstration of truth of theorem –consists of.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Chapter 3. Mathematical Reasoning 3.1 Methods of proof A theorem is a statement that can be shown to be true. A proof is to demonstrate that a theorem.
Induction and recursion
CS128 – Discrete Mathematics for Computer Science
Logic 3 Tautological Implications and Tautological Equivalences
Recursive Definitions Rosen, 3.4. Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
So far we have learned about:
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Induction and Recursion by: Mohsin tahir (GL) Numan-ul-haq Waqas akram Rao arslan Ali asghar.
Methods of Proof & Proof Strategies
Induction and recursion
CSNB143 – Discrete Structure Topic 5 – Induction Part I.
Copyright © Peter Cappello Mathematical Induction Goals Explain & illustrate construction of proofs of a variety of theorems using mathematical induction.
CS 103 Discrete Structures Lecture 07b
Proofs1 Elementary Discrete Mathematics Jim Skon.
Methods of Proofs PREDICATE LOGIC The “Quantifiers” and are known as predicate quantifiers. " means for all and means there exists. Example 1: If we.
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Discrete Structures (DS)
Chap 3 –A theorem is a statement that can be shown to be true –A proof is a sequence of statements to show that a theorem is true –Axioms: statements which.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Rules of inference.
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.
CS104:Discrete Structures Chapter 2: Proof Techniques.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Mathematical Induction
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Chapter 1 Logic and proofs
Fall 2002CMSC Discrete Structures1 Chapter 3 Sequences Mathematical Induction Recursion Recursion.
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.
Chapter 1 Logic and Proof.
CSE15 Discrete Mathematics 02/01/17
Discrete Mathematics Logic.
Applied Discrete Mathematics Week 5: Mathematical Reasoning
Advanced Algorithms Analysis and Design
Induction and recursion
Proof Techniques.
Methods of Proof A mathematical theorem is usually of the form pq
Mathematical Induction Recursion
Mathematical Reasoning
Methods of Proof. Methods of Proof Definitions A theorem is a valid logical assertion which can be proved using Axioms: statements which are given.
Follow me for a walk through...
CMSC Discrete Structures
Applied Discrete Mathematics Week 2: Proofs
CS 220: Discrete Structures and their Applications
Applied Discrete Mathematics Week 1: Logic
Applied Discrete Mathematics Week 9: Integer Properties
Discrete Mathematics Logic.
Follow me for a walk through...
Induction Chapter
Advanced Analysis of Algorithms
Mathematical Reasoning
Mathematical Induction
Mathematical Induction
Follow me for a walk through...
Recursion.
Presentation transcript:

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more hypotheses and a conclusion. We say that an argument is valid, if whenever all its hypotheses are true, its conclusion is also true. However, if any hypothesis is false, even a valid argument can lead to an incorrect conclusion.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 2ArgumentsExample: “If 101 is divisible by 3, then is divisible by is divisible by 3. Consequently, is divisible by 9.” Although the argument is valid, its conclusion is incorrect, because one of the hypotheses is false (“101 is divisible by 3.”). If in the above argument we replace 101 with 102, we could correctly conclude that is divisible by 9.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 3Arguments Which rule of inference was used in the last argument? p: “101 is divisible by 3.” q: “101 2 is divisible by 9.” p p  q p  q_____  q Modus ponens Unfortunately, one of the hypotheses (p) is false. Therefore, the conclusion q is not guaranteed to be correct.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 4Arguments Another example: “If it rains today, then we will not have a barbeque today. If we do not have a barbeque today, then we will have a barbeque tomorrow. Therefore, if it rains today, then we will have a barbeque tomorrow.” This is a valid argument: If its hypotheses are true, then its conclusion is also true.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 5Arguments Let us formalize the previous argument: p: “It is raining today.” q: “We will not have a barbecue today.” r: “We will have a barbecue tomorrow.” So the argument is of the following form: p  q p  q q  r q  r_____  p  r Hypothetical syllogism

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 6Arguments Another example: Gary is either intelligent or a good actor. If Gary is intelligent, then he can count from 1 to 10. Gary can only count from 1 to 2. Therefore, Gary is a good actor. i: “Gary is intelligent.” a: “Gary is a good actor.” c: “Gary can count from 1 to 10.”

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 7Arguments i: “Gary is intelligent.” a: “Gary is a good actor.” c: “Gary can count from 1 to 10.” Step 1:  cHypothesis Step 2: i  c Hypothesis Step 3:  i Modus Tollens Steps 1 & 2 Step 4: a  iHypothesis Step 5: aDisjunctive Syllogism Steps 3 & 4 Conclusion: a (“Gary is a good actor.”)

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 8Arguments Yet another example: If you listen to me, you will pass CS 320L. You passed CS 320L. Therefore, you have listened to me. Is this argument valid? No, it assumes ((p  q)  q)  p. This statement is not a tautology. It is false if p is false and q is true.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 9 Proving Theorems Direct proof: An implication p  q can be proved by showing that if p is true, then q is also true. Example: Give a direct proof of the theorem “If n is odd, then n 2 is odd.” Idea: Assume that the hypothesis of this implication is true (n is odd). Then use rules of inference and known theorems to show that q must also be true (n 2 is odd).

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 10 Proving Theorems n is odd. Then n = 2k + 1, where k is an integer. Consequently, n 2 = (2k + 1) 2. = 4k 2 + 4k + 1 = 4k 2 + 4k + 1 = 2(2k 2 + 2k) + 1 = 2(2k 2 + 2k) + 1 Since n 2 can be written in this form, it is odd.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 11 Proving Theorems Indirect proof: An implication p  q is equivalent to its contra- positive  q   p. Therefore, we can prove p  q by showing that whenever q is false, then p is also false. Example: Give an indirect proof of the theorem “If 3n + 2 is odd, then n is odd.” Idea: Assume that the conclusion of this implication is false (n is even). Then use rules of inference and known theorems to show that p must also be false (3n + 2 is even).

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 12 Proving Theorems n is even. Then n = 2k, where k is an integer. It follows that 3n + 2 = 3(2k) + 2 = 6k + 2 = 2(3k + 1) Therefore, 3n + 2 is even. We have shown that the contrapositive of the implication is true, so the implication itself is also true (If 2n + 3 is odd, then n is odd).

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 13 Induction The principle of mathematical induction is a useful tool for proving that a certain predicate is true for all natural numbers. It cannot be used to discover theorems, but only to prove them.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 14 Induction If we have a propositional function P(n), and we want to prove that P(n) is true for any natural number n, we do the following: Show that P(0) is true. (basis step) Show that P(0) is true. (basis step) Show that if P(n) then P(n + 1) for any n  N. (inductive step) Show that if P(n) then P(n + 1) for any n  N. (inductive step) Then P(n) must be true for any n  N. (conclusion) Then P(n) must be true for any n  N. (conclusion)

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 15 Induction Example: Show that n < 2 n for all positive integers n. Let P(n) be the proposition “n < 2 n.” 1. Show that P(1) is true. (basis step) P(1) is true, because 1 < 2 1 = 2.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 16 Induction 2. Show that if P(n) is true, then P(n + 1) is true. (inductive step) Assume that n < 2 n is true. We need to show that P(n + 1) is true, i.e. n + 1 < 2 n+1 We start from n < 2 n : n + 1 < 2 n + 1  2 n + 2 n = 2 n+1 Therefore, if n < 2 n then n + 1 < 2 n+1

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 17 Induction 3.Then P(n) must be true for any positive integer. (conclusion) n < 2 n is true for any positive integer. End of proof.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 18 Induction Another Example (“Gauss”): … + n = n (n + 1)/2 1.Show that P(0) is true. (basis step) For n = 0 we get 0 = 0. True.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 19 Induction 2.Show that if P(n) then P(n + 1) for any n  N. (inductive step) … + n = n (n + 1)/ … + n + (n + 1) = n (n + 1)/2 + (n + 1) = (n + 1) (n/2 + 1) = (n + 1) (n/2 + 1) = (n + 1) (n + 2)/2 = (n + 1) (n + 2)/2 = (n + 1) ((n + 1) + 1)/2 = (n + 1) ((n + 1) + 1)/2

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 20 Induction 3.Then P(n) must be true for any n  N. (conclusion) … + n = n (n + 1)/2 is true for all n  N. End of proof.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 21 Recursive Definitions Recursion is a principle closely related to mathematical induction. In a recursive definition, an object is defined in terms of itself. We can recursively define sequences, functions and sets.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 22 Recursively Defined Sequences Example: The sequence {a n } of powers of 2 is given by a n = 2 n for n = 0, 1, 2, …. The same sequence can also be defined recursively: a 0 = 1 a n+1 = 2a n for n = 0, 1, 2, … Obviously, induction and recursion are similar principles.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 23 Recursively Defined Functions We can use the following method to define a function with the natural numbers as its domain: 1. Specify the value of the function at zero. 2. Give a rule for finding its value at any integer from its values at smaller integers. Such a definition is called recursive or inductive definition.

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 24 Recursively Defined Functions Example: f(0) = 3 f(n + 1) = 2f(n) + 3 f(0) = 3 f(1) = 2f(0) + 3 = 2  = 9 f(2) = 2f(1) + 3 = 2  = 21 f(3) = 2f(2) + 3 = 2  = 45 f(4) = 2f(3) + 3 = 2  = 93

March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 25 Recursively Defined Functions How can we recursively define the factorial function f(n) = n! ? f(0) = 1 f(n + 1) = (n + 1)f(n) f(0) = 1 f(1) = 1f(0) = 1  1 = 1 f(2) = 2f(1) = 2  1 = 2 f(3) = 3f(2) = 3  2 = 6 f(4) = 4f(3) = 4  6 = 24