1 Basic Proof Methods Rosen 6 th ed., §1.5-1.7 2 Nature & Importance of Proofs In mathematics, a proof is:In mathematics, a proof is: –A sequence of.

Slides:



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

Discrete Math Methods of proof 1.
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.
The Foundations: Logic and Proofs
CSE115/ENGR160 Discrete Mathematics 01/26/12 Ming-Hsuan Yang UC Merced 1.
Valid Arguments An argument is a sequence of propositions. All but the final proposition are called premises. The last statement is the conclusion. The.
2009/91 Methods of Proof (§1.7) Methods of mathematical argument (proof methods) can be formalized in terms of rules of logical inference. Mathematical.
Discrete Structures & Algorithms Propositional Logic EECE 320 : UBC : Spring
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
1 Basic Proof Methods Rosen 6 th ed., § Nature & Importance of Proofs In mathematics, a proof is:In mathematics, a proof is: –A sequence of.
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
CSI 2101 / Rules of Inference (§1.5)
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
Methods of Proof & Proof Strategies
Introduction to Proofs
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 03: PROOFS Section 1.5 Jarek Rossignac CS1050: Understanding.
MATH 224 – Discrete Mathematics
1 Methods of Proof CS/APMA 202 Epp, chapter 3 Aaron Bloomfield.
CS 103 Discrete Structures Lecture 07b
Review I Rosen , 3.1 Know your definitions!
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
Proofs1 Elementary Discrete Mathematics Jim Skon.
1 Basic Proof Methods I Basic Proof Methods II Proofs Involving Quantifiers.
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.
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)
Fallacies The proposition [(p  q)  q]  p is not a tautology, because it is false when p is false and q is true. This type of incorrect reasoning is.
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.
4.1 CompSci 102© Michael Frank Today’s topics Proof techniquesProof techniques – –Indirect, by cases, and direct – –Rules of logical inference – –Correct.
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,
CS2013 Mathematics for Computing Science Adam Wyner University of Aberdeen Computing Science Slides adapted from Michael P. Frank ' s course based on the.
資訊科學數學 7 : Proof, Number and Orders 陳光琦助理教授 (Kuang-Chi Chen)
Rules of Inference Section 1.6. Arguments in Propositional Logic A argument in propositional logic is a sequence of propositions. All but the final proposition.
Today’s topics Proof techniques Reading: Section 1.5 Upcoming
Module #1 - Logic Based on Rosen, Discrete Mathematics & Its Applications. Prepared by (c) , Michael P. Frank. Modified By Mingwu Chen 1 Module.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Rules of inference.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
CSci 2011 Discrete Mathematics Lecture 5 CSci 2011.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Nature & Importance of Proofs In mathematics, a proof is: –a correct (well-reasoned, logically valid) and complete (clear, detailed) argument that rigorously.
Chapter 1 Logic and proofs
CSE15 Discrete Mathematics 02/01/17
CSE15 Discrete Mathematics 01/30/17
Discrete Mathematics Logic.
Proof Techniques.
Discrete Mathematics and its Applications
Module #10: Proof Strategies
The Foundations: Logic and Proofs
Discrete Mathematics and its Applications
Proving Existentials A proof of a statement of the form x P(x) is called an existence proof. If the proof demonstrates how to actually find or construct.
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.
Discrete Mathematics and its Applications
Discrete Mathematics Logic.
Information Technology Department SKN-SITS,Lonavala.
Module #2: Basic Proof Methods
Module #10: Proof Strategies
Mathematical Reasoning
Discrete Mathematics and its Applications
Introduction to Proofs
Module #2: Basic Proof Methods
The Foundations: Logic and Proofs
Presentation transcript:

1 Basic Proof Methods Rosen 6 th ed., §

2 Nature & Importance of Proofs In mathematics, a proof is:In mathematics, a proof is: –A sequence of statements that form an argument. –Must be correct (well-reasoned, logically valid) and complete (clear, detailed) that rigorously & undeniably establishes the truth of a mathematical statement. Why must the argument be correct & complete?Why must the argument be correct & complete? –Correctness prevents us from fooling ourselves. –Completeness allows anyone to verify the result.

3 Rules of Inference Rules of inference are patterns of logically valid deductions from hypotheses to conclusions.Rules of inference are patterns of logically valid deductions from hypotheses to conclusions. We will review “inference rules” (i.e., correct & fallacious), and “proof methods”.We will review “inference rules” (i.e., correct & fallacious), and “proof methods”.

4 Visualization of Proofs … Various Theorems The Axioms of the Theory A Particular Theory A proof RulesOfInference

5 Inference Rules - General Form Inference Rule –Inference Rule – –Pattern establishing that if we know that a set of hypotheses are all true, then a certain related conclusion statement is true. Hypothesis 1 Hypothesis 2 …  conclusion “  ” means “therefore” Hypothesis 1 Hypothesis 2 …  conclusion “  ” means “therefore”

6 Inference Rules & Implications Each logical inference rule corresponds to an implication that is a tautology.Each logical inference rule corresponds to an implication that is a tautology. Hypothesis 1 Inference rule Hypothesis 2 …  conclusion Hypothesis 1 Inference rule Hypothesis 2 …  conclusion Corresponding tautology:Corresponding tautology: ((Hypoth. 1)  (Hypoth. 2)  …)  conclusion

7 Some Inference Rules pRule of Addition  p  q “It is below freezing now. Therefore, it is either below freezing or raining now.” pRule of Addition  p  q “It is below freezing now. Therefore, it is either below freezing or raining now.” p  qRule of Simplification  p “It is below freezing and raining now. Therefore, it is below freezing now. p  qRule of Simplification  p “It is below freezing and raining now. Therefore, it is below freezing now.

8 Some Inference Rules p q  p  q Rule of Conjunction q  p  q Rule of Conjunction “It is below freezing.“It is below freezing. It is raining now.It is raining now. Therefore, it is below freezing and it is raining now.Therefore, it is below freezing and it is raining now.

9 Modus Ponens & Tollens pRule of modus ponens p  q (a.k.a. law of detachment)  q “If it is snows today, then we will go skiing” and pRule of modus ponens p  q (a.k.a. law of detachment)  q “If it is snows today, then we will go skiing” and “It is snowing today” imply “We will go skiing”  q p  q Rule of modus tollens  p  q p  q Rule of modus tollens  p “the mode of affirming” “the mode of denying”

10 Syllogism Inference Rules p  qRule of hypothetical q  rsyllogism  p  r p  qRule of hypothetical q  rsyllogism  p  r p  qRule of disjunctive  psyllogism  qp  qRule of disjunctive  psyllogism  q

11 Formal Proofs A formal proof of a conclusion C, given premises p 1, p 2,…,p n consists of a sequence of steps, each of which applies some inference rule to premises or to previously- proven statements (as hypotheses) to yield a new true statement (the conclusion).A formal proof of a conclusion C, given premises p 1, p 2,…,p n consists of a sequence of steps, each of which applies some inference rule to premises or to previously- proven statements (as hypotheses) to yield a new true statement (the conclusion). A proof demonstrates that if the premises are true, then the conclusion is true (i.e., valid argument).A proof demonstrates that if the premises are true, then the conclusion is true (i.e., valid argument).

12 Formal Proof - Example Suppose we have the following premises: “It is not sunny and it is cold.” “if it is not sunny, we will not swim” “If we do not swim, then we will canoe.” “If we canoe, then we will be home early.”Suppose we have the following premises: “It is not sunny and it is cold.” “if it is not sunny, we will not swim” “If we do not swim, then we will canoe.” “If we canoe, then we will be home early.” Given these premises, prove the theorem “We will be home early” using inference rules.Given these premises, prove the theorem “We will be home early” using inference rules.

13 Proof Example cont. Let us adopt the following abbreviations:Let us adopt the following abbreviations: sunny = “It is sunny”; cold = “It is cold”; swim = “We will swim”; canoe = “We will canoe”; early = “We will be home early”. sunny = “It is sunny”; cold = “It is cold”; swim = “We will swim”; canoe = “We will canoe”; early = “We will be home early”. Then, the premises can be written as: (1)  sunny  cold (2)  sunny   swim (3)  swim  canoe (4) canoe  earlyThen, the premises can be written as: (1)  sunny  cold (2)  sunny   swim (3)  swim  canoe (4) canoe  early

14 Proof Example cont. StepProved by 1.  sunny  cold Premise #1. 2.  sunnySimplification of  sunny   swimPremise #2. 4.  swimModus tollens on 2,3. 5.  swim  canoe Premise #3. 6. canoeModus ponens on 4,5. 7. canoe  earlyPremise #4. 8. earlyModus ponens on 6,7.

15 Common Fallacies A fallacy is an inference rule or other proof method that is not logically valid.A fallacy is an inference rule or other proof method that is not logically valid. –May yield a false conclusion! Fallacy of affirming the conclusion:Fallacy of affirming the conclusion: –“p  q is true, and q is true, so p must be true.” (No, because F  T is true.) Fallacy of denying the hypothesis:Fallacy of denying the hypothesis: –“p  q is true, and p is false, so q must be false.” (No, again because F  T is true.)

16 Common Fallacies - Examples “If you do every problem in this book, then you will learn discrete mathematics. You learned discrete mathematics.” “If you do every problem in this book, then you will learn discrete mathematics. You learned discrete mathematics.” p: “You did every problem in this book” q: “You learned discrete mathematics” Fallacy of affirming the conclusion:Fallacy of affirming the conclusion: p  q and q does not imply p Fallacy of denying the hypothesis:Fallacy of denying the hypothesis: p  q and  p does not imply  q

17 Inference Rules for Quantifiers  x P(x)  P(o)(substitute any object o)  x P(x)  P(o)(substitute any object o) P(g)(for g a general element of u.d.)  x P(x)P(g)(for g a general element of u.d.)  x P(x)  x P(x)  P(c)(substitute a new constant c)  x P(x)  P(c)(substitute a new constant c) P(o) (substitute any extant object o)  x P(x)P(o) (substitute any extant object o)  x P(x)

18 Example “Everyone in this discrete math class has taken a course in computer science” and “Marla is a student in this class” imply “Marla has taken a course in computer science” D(x): “x is in discrete math class” D(x): “x is in discrete math class” C(x): “x has taken a course in computer science” C(x): “x has taken a course in computer science”  x (D(x)  C(x))  x (D(x)  C(x)) D(Marla) D(Marla)  C(Marla)  C(Marla)

19 Example – cont. StepProved by 1.  x (D(x)  C(x)) Premise #1. 2. D(Marla)  C(Marla)Univ. instantiation. 3. D(Marla)Premise #2. 4. C(Marla)Modus ponens on 2,3.

20 Another Example “A student in this class has not read the book” and “Everyone in this class passed the first exam” imply “Someone who passed the first exam has not read the book” C(x): “x is in this class” C(x): “x is in this class” B(x): “x has read the book” B(x): “x has read the book” P(x): “x passed the first exam” P(x): “x passed the first exam”  x(C(x)   B(x))  x(C(x)   B(x))  x (C(x)  P(x))  x (C(x)  P(x))   x(P(x)   B(x))   x(P(x)   B(x))

21 Another Example – cont. StepProved by 1.  x(C(x)   B(x))Premise #1. 2. C(a)   B(a) Exist. instantiation. 3. C(a)Simplification on  x (C(x)  P(x)) Premise #2. 5. C(a)  P(a) Univ. instantiation. 6. P(a)Modus ponens on 3,5 7.  B(a) 7.  B(a) Simplification on 2   B(a) Conjunction on 6,7 8. P(a)   B(a) Conjunction on 6,7 9.  x(P(x)   B(x))Exist. generalization

22 More Examples... Is this argument correct or incorrect?Is this argument correct or incorrect? –“All TAs compose easy quizzes. Ramesh is a TA. Therefore, Ramesh composes easy quizzes.” First, separate the premises from conclusions:First, separate the premises from conclusions: –Premise #1: All TAs compose easy quizzes. –Premise #2: Ramesh is a TA. –Conclusion: Ramesh composes easy quizzes.

23 Answer Next, re-render the example in logic notation. Premise #1: All TAs compose easy quizzes.Premise #1: All TAs compose easy quizzes. –Let U.D. = all people –Let T(x) :≡ “x is a TA” –Let E(x) :≡ “x composes easy quizzes” –Then Premise #1 says:  x, T(x)→E(x)

24 Answer cont… Premise #2: Ramesh is a TA.Premise #2: Ramesh is a TA. –Let R :≡ Ramesh –Then Premise #2 says: T(R) Conclusion says: E(R)Conclusion says: E(R) The argument is correct, because it can be reduced to a sequence of applications of valid inference rules, as follows:The argument is correct, because it can be reduced to a sequence of applications of valid inference rules, as follows:

25 The Proof in Detail Statement How obtainedStatement How obtained 1.  x, T(x) → E(x) (Premise #1) 2.T(Ramesh) → E(Ramesh) (Universal instantiation) 3.T(Ramesh) (Premise #2) 4.E(Ramesh)(Modus Ponens from statements #2 and #3)

26 Another example Correct or incorrect? At least one of the 280 students in the class is intelligent. Y is a student of this class. Therefore, Y is intelligent.Correct or incorrect? At least one of the 280 students in the class is intelligent. Y is a student of this class. Therefore, Y is intelligent. First: Separate premises/conclusion, & translate to logic:First: Separate premises/conclusion, & translate to logic: –Premises: (1)  x InClass(x)  Intelligent(x) (2) InClass(Y) –Conclusion: Intelligent(Y)

27 Answer No, the argument is invalid; we can disprove it with a counter-example, as follows:No, the argument is invalid; we can disprove it with a counter-example, as follows: Consider a case where there is only one intelligent student X in the class, and X≠Y.Consider a case where there is only one intelligent student X in the class, and X≠Y. –Then the premise  x InClass(x)  Intelligent(x) is true, by existential generalization of InClass(X)  Intelligent(X) –But the conclusion Intelligent(Y) is false, since X is the only intelligent student in the class, and Y≠X. Therefore, the premises do not imply the conclusion.Therefore, the premises do not imply the conclusion.

28 Proof Methods Proving p  qProving p  q –Direct proof: Assume p is true, and prove q. –Indirect proof: Assume  q, and prove  p. –Trivial proof: Prove q true. –Vacuous proof: Prove  p is true. Proving pProving p –Proof by contradiction: Prove  p  (r   r) (r   r is a contradiction); therefore  p must be false. Prove (a  b)  pProve (a  b)  p –Proof by cases: prove (a  p) and (b  p). More …More …

29 Direct Proof Example Definition: An integer n is called odd iff n=2k+1 for some integer k; n is even iff n=2k for some k.Definition: An integer n is called odd iff n=2k+1 for some integer k; n is even iff n=2k for some k. Axiom: Every integer is either odd or even.Axiom: Every integer is either odd or even. Theorem: (For all numbers n) If n is an odd integer, then n 2 is an odd integer.Theorem: (For all numbers n) If n is an odd integer, then n 2 is an odd integer. Proof: If n is odd, then n = 2k+1 for some integer k. Thus, n 2 = (2k+1) 2 = 4k 2 + 4k + 1 = 2(2k 2 + 2k) + 1. Therefore n 2 is of the form 2j + 1 (with j the integer 2k 2 + 2k), thus n 2 is odd. □Proof: If n is odd, then n = 2k+1 for some integer k. Thus, n 2 = (2k+1) 2 = 4k 2 + 4k + 1 = 2(2k 2 + 2k) + 1. Therefore n 2 is of the form 2j + 1 (with j the integer 2k 2 + 2k), thus n 2 is odd. □

30 Another Example Definition: A real number r is rational if there exist integers p and q ≠ 0, with no common factors other than 1 (i.e., gcd(p,q)=1), such that r=p/q. A real number that is not rational is called irrational.Definition: A real number r is rational if there exist integers p and q ≠ 0, with no common factors other than 1 (i.e., gcd(p,q)=1), such that r=p/q. A real number that is not rational is called irrational. Theorem: Prove that the sum of two rational numbers is rational.Theorem: Prove that the sum of two rational numbers is rational.

31 Indirect Proof Proving p  qProving p  q –Indirect proof: Assume  q, and prove  p.

32 Indirect Proof Example Theorem: (For all integers n) If 3n+2 is odd, then n is odd.Theorem: (For all integers n) If 3n+2 is odd, then n is odd. Proof: Suppose that the conclusion is false, i.e., that n is even. Then n=2k for some integer k. Then 3n+2 = 3(2k)+2 = 6k+2 = 2(3k+1). Thus 3n+2 is even, because it equals 2j for integer j = 3k+1. So 3n+2 is not odd. We have shown that ¬(n is odd)→¬(3n+2 is odd), thus its contra- positive (3n+2 is odd) → (n is odd) is also true. □Proof: Suppose that the conclusion is false, i.e., that n is even. Then n=2k for some integer k. Then 3n+2 = 3(2k)+2 = 6k+2 = 2(3k+1). Thus 3n+2 is even, because it equals 2j for integer j = 3k+1. So 3n+2 is not odd. We have shown that ¬(n is odd)→¬(3n+2 is odd), thus its contra- positive (3n+2 is odd) → (n is odd) is also true. □

33 Another Example Theorem: Prove that if n is an integer and n 2 is odd, then n is odd.Theorem: Prove that if n is an integer and n 2 is odd, then n is odd.

34 Trivial Proof Proving p  qProving p  q –Trivial proof: Prove q true.

35 Trivial Proof Example Theorem: (For integers n) If n is the sum of two prime numbers, then either n is odd or n is even.Theorem: (For integers n) If n is the sum of two prime numbers, then either n is odd or n is even. Proof: Any integer n is either odd or even. So the conclusion of the implication is true regardless of the truth of the hypothesis. Thus the implication is true trivially. □Proof: Any integer n is either odd or even. So the conclusion of the implication is true regardless of the truth of the hypothesis. Thus the implication is true trivially. □

36 Vacuous Proof Proving p  qProving p  q –Vacuous proof: Prove  p is true.

37 Vacuous Proof Example Theorem: (For all n) If n is both odd and even, then n 2 = n + n.Theorem: (For all n) If n is both odd and even, then n 2 = n + n. Proof: The statement “n is both odd and even” is necessarily false, since no number can be both odd and even. So, the theorem is vacuously true. □Proof: The statement “n is both odd and even” is necessarily false, since no number can be both odd and even. So, the theorem is vacuously true. □

38 Proof by Contradiction Proving pProving p –Assume  p, and prove that  p  (r   r) –(r   r) is a trivial contradiction, equal to F –Thus  p  F is true only if  p=F

39 Proof by Cases To prove we need to prove we need to prove Example: Show that |xy|=|x| |y|, where x,y are real numbers.

40 Proof of Equivalences To prove we need to prove Example: Prove that n is odd iff n 2 is odd.

41 Equivalence of a group of propositions To prove we need to prove

42 Example Show that the statements below are equivalent:Show that the statements below are equivalent: p 1 : n is even p 1 : n is even p 2 : n-1 is odd p 2 : n-1 is odd p 3 : n 2 is even p 3 : n 2 is even

43 Counterexamples When we are presented with a statement of the form  xP(x) and we believe that it is false, then we look for a counterexample.When we are presented with a statement of the form  xP(x) and we believe that it is false, then we look for a counterexample. ExampleExample –Is it true that “every positive integer is the sum of the squares of three integers?”

44 Proving Existentials A proof of a statement of the form  x P(x) is called an existence proof.A proof of a statement of the form  x P(x) is called an existence proof. If the proof demonstrates how to actually find or construct a specific element a such that P(a) is true, then it is called a constructive proof.If the proof demonstrates how to actually find or construct a specific element a such that P(a) is true, then it is called a constructive proof. Otherwise, it is called a non-constructive proof.Otherwise, it is called a non-constructive proof.

45 Constructive Existence Proof Theorem: There exists a positive integer n that is the sum of two perfect cubes in two different ways:Theorem: There exists a positive integer n that is the sum of two perfect cubes in two different ways: –equal to j 3 + k 3 and l 3 + m 3 where j, k, l, m are positive integers, and {j,k} ≠ {l,m} Proof: Consider n = 1729, j = 9, k = 10, l = 1, m = 12. Now just check that the equalities hold.Proof: Consider n = 1729, j = 9, k = 10, l = 1, m = 12. Now just check that the equalities hold.

46 Non-constructive Existence Proof Example 11: Page 91 of the textExample 11: Page 91 of the text

47 Limits on Proofs Some very simple statements of number theory haven’t been proved or disproved!Some very simple statements of number theory haven’t been proved or disproved! –E.g. Goldbach’s conjecture: Every integer n≥2 is exactly the average of some two primes. –  n≥2  primes p,q: n=(p+q)/2. There are true statements of number theory (or any sufficiently powerful system) that can never be proved (or disproved) (Gödel).There are true statements of number theory (or any sufficiently powerful system) that can never be proved (or disproved) (Gödel).

48 Circular Reasoning The fallacy of (explicitly or implicitly) assuming the very statement you are trying to prove in the course of its proof. Example:The fallacy of (explicitly or implicitly) assuming the very statement you are trying to prove in the course of its proof. Example: Prove that an integer n is even, if n 2 is even.Prove that an integer n is even, if n 2 is even. Attempted proof: “Assume n 2 is even. Then n 2 =2k for some integer k. Dividing both sides by n gives n = (2k)/n = 2(k/n). So there is an integer j (namely k/n) such that n=2j. Therefore n is even.”Attempted proof: “Assume n 2 is even. Then n 2 =2k for some integer k. Dividing both sides by n gives n = (2k)/n = 2(k/n). So there is an integer j (namely k/n) such that n=2j. Therefore n is even.” Begs the question: How do you show that j=k/n=n/2 is an integer, without first assuming n is even?