Methods of Proof & Proof Strategies

Slides:



Advertisements
Similar presentations
Methods of Proof. Methods of Proof The Vicky Pollard Proof Technique Prove that when n is even n2 is even. Assume n is 0, then n2 is 0, and that is.
Advertisements

With examples from Number Theory
Discrete Math Methods of proof 1.
Introduction to Proofs
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.
Chapter 3 Elementary Number Theory and Methods of Proof.
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,
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Elementary Number Theory and Methods of Proof
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
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:
Copyright © Zeph Grunschlag,
1 Indirect Argument: Contradiction and Contraposition.
Introduction to Proofs ch. 1.6, pg. 87,93 Muhammad Arief download dari
Methods of Proof Lecture 4: Sep 16 (chapter 3 of the book)
Lecture , 3.1 Methods of Proof. Last time in 1.5 To prove theorems we use rules of inference such as: p, p  q, therefore, q NOT q, p  q, therefore.
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.
Introduction to Proofs
Discrete Mathematics, Part II CSE 2353 Fall 2007 Margaret H. Dunham Department of Computer Science and Engineering Southern Methodist University Some slides.
Introduction to Proofs
1 Methods of Proof CS/APMA 202 Epp, chapter 3 Aaron Bloomfield.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
Section 1.8. Section Summary Proof by Cases Existence Proofs Constructive Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness Proofs.
Review I Rosen , 3.1 Know your definitions!
Proofs1 Elementary Discrete Mathematics Jim Skon.
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.
1 Math/CSE 1019C: Discrete Mathematics for Computer Science Fall 2011 Suprakash Datta Office: CSEB 3043 Phone: ext
Chapter 5 Existence and Proof by contradiction
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.
Discrete Structures (DS)
CISC 2315 Discrete Structures Professor William G. Tanner, Jr. Spring 2011 Slides created by James L. Hein, author of Discrete Structures, Logic, and Computability,
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.
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.
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
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.
22C:19 Discrete Structures Logic and Proof Fall 2014 Sukumar Ghosh.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Week 3 - Monday.  What did we talk about last time?  Predicate logic  Multiple quantifiers  Negating multiple quantifiers  Arguments with quantified.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
Introduction to Proofs
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:"
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 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.
Chapter 1 Logic and Proof.
The Foundations: Logic and Proofs
CSE15 Discrete Mathematics 02/01/17
CSE15 Discrete Mathematics 02/08/17
Direct Proof by Contraposition Direct Proof by Contradiction
Proof methods We will discuss ten proof methods: Direct proofs
Methods of Proof CS 202 Epp, chapter 3.
Chapter 1: The Foundations: Logic and Proofs
Proof Techniques.
The Foundations: Logic and Proofs
Indirect Proof by Contradiction Direct Proof by Cases
Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.
Introduction to Proofs
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

Methods of Proof & Proof Strategies Sections 1.6 & 1.7 Methods of Proof & Proof Strategies

Methods of Proof Many theorems are implications 4/21/2017 Methods of Proof Many theorems are implications Recall that an implication (p  q) is true when both p and q are true, or when p is false; it is only false if q is false To prove an implication, we need only prove that q is true if p is true (it is not common to prove q itself) ch1.5&3.1

4/21/2017 Direct Proof Show that if p is true, q must also be true (so that the combination of p true, q false never occurs) Assume p is true Use rules of inference and theorems to show q must also be true ch1.5&3.1

Example of Direct Proof 4/21/2017 Example of Direct Proof Prove “if n is odd, n2 must be odd” Let p = “n is odd” Let q = “n2 is odd” Assume n is odd; then n = 2k + 1 for some integer k (by definition of an odd number) This means n2 = (2k + 1)2 = 2(2k2 + 2k) + 1 Thus, by definition, n2 is odd ch1.5&3.1

4/21/2017 Indirect Proof Uses the fact that an implication (p  q) and its contrapositive q  p have the same truth value Therefore proving the contrapositive proves the implication ch1.5&3.1

Indirect Proof Example 4/21/2017 Indirect Proof Example Prove “if 3n + 2 is odd, then n is odd” Let p = “3n + 2 is odd” Let q = “n is odd” To prove q  p , begin by assuming q is true So n is even, and n = 2k for some integer k (by definition of even numbers) Then 3n + 2 = 3(2k) +2 = 6k + 2 = 2(3k + 1) Thus, 3n + 2 is even, q  p and p  q ch1.5&3.1

Vacuous Proof Suppose p is false - if so, then p  q is true 4/21/2017 Vacuous Proof Suppose p is false - if so, then p  q is true Thus, if p can be proven false, the implication is proven true This technique is often used to establish special cases of theorems that state an implication is true for all positive integers ch1.5&3.1

Vacuous Proof Example Show that P(0) is true where P(n) is: 4/21/2017 Vacuous Proof Example Show that P(0) is true where P(n) is: “if n > 1, then n2 > n” Let p = n>1 and q = n2 > n Since P(n) = P(0) and 0>1 is false, p is false Since the premise is false, p  q is true for P(0) Note that it doesn’t matter that the conclusion (02 > 0 ) is false for P(0) - since the premise is false, the implication is true ch1.5&3.1

4/21/2017 Trivial Proof If q can be proven true, then p  q is true for all possible p’s, since: T  T and F  T are both true ch1.5&3.1

Example of Trivial Proof 4/21/2017 Example of Trivial Proof Let P(n) = “if a >= b then an >= bn” where a and b are positive integers; show that P(0) is true so p = a >=b and q = a0 >= b0 Since a0 = b0, q is true for P(0) Since q is true, p  q is true Note that this proof didn’t require examining the hypothesis ch1.5&3.1

Proof by Contradiction 4/21/2017 Proof by Contradiction Suppose q is false and p  q is true This is possible only if p is true If q is a contradiction (e.g. r  r), can prove p via p  (r  r) ch1.5&3.1

Example of proof by contradiction 4/21/2017 Example of proof by contradiction Prove 2 is irrational Suppose p is true - then 2 is rational If 2 is rational, then 2 = a/b for some numbers a and b with no common factors So (2 )2 = (a/b)2 or 2 = a2/b2 If 2 = a2/b2 then 2b2 = a2 So a2 must be even, and a must be even ch1.5&3.1

Example of proof by contradiction 4/21/2017 Example of proof by contradiction If a is even, then a = 2c and a2 = 4c2 Thus 2b2 = 4c2 and b2 = 2c2 - which means b2 is even, and b must be even If a and b are both even, they have a common factor (2) This is a contradiction of the original premise, which states that a and b have no common factors ch1.5&3.1

Example of proof by contradiction 4/21/2017 Example of proof by contradiction So p  (r  r) where p = 2 is rational, r = a & b have no common factors, and r = a & b have a common factor r  r is a contradiction so p must be false thus p is true and 2 is irrational ch1.5&3.1

Proof by contradiction and indirect proof 4/21/2017 Proof by contradiction and indirect proof Can write an indirect proof as a proof by contradiction Prove p  q by proving q  p Suppose p and q are both true Go through direct proof of q  p to show p is also true Now we have a contradiction: p  p is true ch1.5&3.1

Proof by Cases To prove (p1 p2 …  pn)  q, can use the tautology: 4/21/2017 Proof by Cases To prove (p1 p2 …  pn)  q, can use the tautology: ((p1 p2 …  pn)  q)  ((p1  q)  (p2  q)  …  (pn  q)) as a rule for inference In other words, show that pi  q for all values of i from 1 through n ch1.5&3.1

Proof by Cases To prove an equivalence (p  q), can use the tautology: 4/21/2017 Proof by Cases To prove an equivalence (p  q), can use the tautology: (p  q)  ((p q)  (q  p)) If a theorem states that several propositions are equivalent (p1  p2  …  pn), can use the tautology: (p1  p2  …  pn)  ((p1  p2)  (p2  p3)  …  (pn  p1)) ch1.5&3.1

Theorems & Quantifiers 4/21/2017 Theorems & Quantifiers Existence proof: proof of a theorem asserting that objects of a particular type exist, aka propositions of the form xP(x) Proof by counter-example: proof of a theorem of the form xP(x) ch1.5&3.1

Types of Existence Proofs 4/21/2017 Types of Existence Proofs Constructive: find an element a such that P(a) is true Non-constructive: prove xP(x) without finding a specific element - often uses proof by contradiction to show xP(x) implies a contradiction ch1.5&3.1

Constructive Existence Proof Example 4/21/2017 Constructive Existence Proof Example For every positive integer n, there is an integer divisible by >n primes Stated formally, this is: nx(x:x is divisible by >n primes) Assume we know the prime numbers and can list them: p1, p2, … If so, the number p1 * p2 * … * pn+1 is divisible by >n primes ch1.5&3.1

Non-constructive Existence Proof Example 4/21/2017 Non-constructive Existence Proof Example Show that for every positive integer n there is a prime greater than n This is xQ(x) where Q(x) is the proposition x is prime and x > n Let n be a positive integer; to show there is a prime > n, consider n! + 1 Every integer has a prime factor, so n! + 1 has at least one prime factor When n! + 1 is divided by an integer <= n, remainder is 1 Thus, any prime factor of this integer must be > n Proof is non-constructive because we never have to actually produce a prime (or n) ch1.5&3.1

Proof by Counter-example 4/21/2017 Proof by Counter-example To prove xP(x) is false, need find only one element e such that P(e) is false Example: Prove or disprove that every positive integer can be written as the sum of 2 squares We need to show xP(x) is true Many examples exist - 3, 6 and 7 are all candidates ch1.5&3.1

Choosing a method of proof 4/21/2017 Choosing a method of proof When confronted with a statement to prove: Replace terms by their definitions Analyze what hypotheses & conclusion mean If statement is an implication, try direct proof; If that fails, try indirect proof If neither of the above works, try proof by contradiction ch1.5&3.1

Forward reasoning Start with the hypothesis 4/21/2017 Forward reasoning Start with the hypothesis Together with axioms and known theorems, construct a proof using a sequence of steps that leads to the conclusion With indirect reasoning, can start with negation of conclusion, work through a similar sequence to reach negation of hypothesis ch1.5&3.1

4/21/2017 Backward reasoning To reason backward to prove a statement q, we find a statement p that we can prove with the property p  q The next slide provides an example of this type of reasoning ch1.5&3.1

Backward reasoning - example 4/21/2017 Backward reasoning - example Prove that the square of every odd integer has the form 8k + 1 for some integer k: Begin with some odd integer n, which by definition has the form n = 2i + 1 for some integer i. Then n2 = (2i + 1)2 = 4i2 + 4i + 1 We need to show that n2 has the form 8k + 1 Reasoning backwards, this follows if 4i2 + 4i can be written as 8k But 4i2 + 4i = 4i(i + 1) i(i+ 1) is the product of 2 consecutive integers Since every other integer is even, either i or i+1 is even This means their product is even, and can be written 2k for some integer k Therefore, 4i2 + 4i = 4i(i + 1) = 4(2k) = 8k; it follows that, since n2 = 4i2 + 4i + 1 and 4i2 + 4i = 8k, that n2 = 8k + 1 ch1.5&3.1