Lecture 1.5: Proof Techniques CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren 1.

Slides:



Advertisements
Similar presentations
With examples from Number Theory
Advertisements

Introduction to Proofs
Lecture 1.4: Rules of Inference CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Lecture 2.3: Set Theory, and Functions* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Copyright © Zeph Grunschlag,
Lecture 4.5: POSets and Hasse Diagrams CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Methods of Proof & Proof Strategies
9/8/2011Lecture Functions1 Lecture 2.4: Functions CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda.
Introduction to Proofs
Lecture 3.1: Mathematical Induction CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
1 Methods of Proof CS/APMA 202 Epp, chapter 3 Aaron Bloomfield.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
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.
Lecture 3.4: Recursive Algorithms CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
Lecture 2.2: Set Theory* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
1 Lecture 3.3: Recursion CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Lecture 4.3: Closures and Equivalence Relations CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
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.
Lecture 2.1: Sets and Set Operations CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Lecture 1.3: Predicate Logic CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Lecture 4.1: Relations Basics CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Lecture 4.2: Relations Basics CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Lecture 2.2: Set Theory CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Lecture 4.2: Relations CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Lecture 1.2: Equivalences, and Predicate Logic CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph.
Lecture 1.4: Rules of Inference, and Proof Techniques* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Introduction to Proofs
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.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Lecture 4.1: Relations Basics CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
9/29/2011Lecture Strong Induction1 Lecture 3.2: Strong Induction CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
9/27/2011 Lecture Mathematical Induction1 Lecture 3.1: Mathematical Induction* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from.
Proof Techniques CS160/CS122 Rosen: 1.5, 1.6, 1.7.
Lecture 1.5: Proof Techniques
Lecture 1.2: Equivalences, and Predicate Logic
Lecture 1.4: Rules of Inference
Direct Proof by Contraposition Direct Proof by Contradiction
Lecture 4.1: Relations Basics
Lecture 1.5: Proof Techniques
Lecture 4.3: Closures and Equivalence Relations
Lecture 3.2: Induction and Strong Induction (contd.)
The Foundations: Logic and Proofs
Lecture 3.2: Induction, and Strong Induction
CS 220: Discrete Structures and their Applications
CS 250, Discrete Structures, Fall 2011 Nitesh Saxena
CS 220: Discrete Structures and their Applications
Lecture 3.2: Induction and Strong Induction (contd.)
CS 250, Discrete Structures, Fall 2014
Lecture 3.2: Induction, and Strong Induction
CS 250, Discrete Structures, Fall 2015
Lecture 4.3: Closures and Equivalence Relations
Lecture 3.2: Induction, and Strong Induction
Lecture 1.6: Proof Techniques (contd)
Lecture 1.3: Predicate Logic
Lecture 2.1: Sets and Set Operations*
CS 250, Discrete Structures, Fall 2013
Lecture 3.1: Mathematical Induction
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
Lecture 1.6: Proof Techniques (contd)
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
Lecture 1.4: Rules of Inference
Lecture 3.1: Mathematical Induction
CS 250, Discrete Structures, Fall 2015 Nitesh Saxena
CS 250, Discrete Structures, Fall 2015 Nitesh Saxena
Introduction to Proofs
Lecture 1.3: Predicate Logic
CS 250, Discrete Structures, Fall 2012
Presentation transcript:

Lecture 1.5: Proof Techniques CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren 1

3/12/2016Lecture Proof Techniques2 Course Admin Slides from previous lectures all posted Expect HW1 to be coming in around coming Monday Graded competency exams will be returned next week

3/12/2016Lecture Proof Techniques3 Outline Proof Techniques

Main techniques Direct proofs Proofs using contraposition Proofs using contradiction 3/12/2016Lecture Proof Techniques4

3/12/2016Lecture Proof Techniques5 Direct Proofs An example: Prove that if n = 3 mod 4, then n 2 = 1 mod 4. HUH?7 = 3 mod 437 = 1 mod 494 = 2 mod 416 = 0 mod 47 = 111 mod 437 = 61 mod 494 = 6 mod 416 = 1024 mod 4

6 Proof: If n = 3 mod 4, then n = 4k + 3 for some int k. This means that: Coming back to our Theorem: If n = 3 mod 4, then n 2 = 1 mod 4. Direct Proofs = (4k + 3)(4k + 3)n2n2 = 16k k + 9 = 16k k = 4(4k 2 + 6k + 2) + 1 = 4j + 1 for some int j = 1 mod 4. 3/12/2016Lecture Proof Techniques

7 Proof: If n is odd, then n = 2k + 1 for some int k. This means that: Theorem: If n is an odd natural number, then n 2 is also an odd natural number. Direct Proofs: another example = (2k+1)(2k+1)n2n2 = 4k 2 + 4k + 1 = 2(2k 2 + 2k) + 1 = 2j + 1 for some int j  n 2 is odd 3/12/2016Lecture Proof Techniques

3/12/2016Lecture Proof Techniques8 Proofs by Contraposition Recall: Contrapositive: p  q and  q   p Ex. “If it is noon, then I am hungry.” “If I am not hungry, then it is not noon.” We also know that: p  q   q   p Therefore, if establishing a direct proof (p  q) is difficult for some reason, we can instead prove its contraposition (  q   p), which may be easier.

3/12/2016Lecture Proof Techniques9 Proof: If n is not odd, then n = 2k for some int k. This means that: Theorem: If 3n + 2 is an odd natural number, then n is also an odd natural number. Proofs by Contraposition: example = 3(2k) + 23n+2 = 2(3k) + 2 = 2j for some int j  3n+2 is not odd = 2(3k + 1)

3/12/2016Lecture Proof Techniques10 Proof: If a > sqrt(N) AND b > sqrt(N), then by multiplying the two inequalities, we get Theorem: If N = ab where a and b are natural numbers, then a <= sqrt(N) or b <= sqrt(N). Proofs by Contraposition: another example > N This negates the proposition N=ab ab

3/12/2016Lecture Proof Techniques11 Proofs by Contradiction Recall: Contradiction is a proposition that is always False To prove that a proposition p is True, we try to find a contradiction q such that  p  q is True. If  p  q is True and q is False, it must be the case that p is True. We suppose that p is False and use this to find a contradiction of the form r   r

12 Proof: A: n is prime B: n is odd We need to show that A  B is true We need to find a contradiction q such that:  (A  B)  q We know:  (A  B)   (  A  B)  A   B This means that we suppose (n is prime) AND (n is even) is True But, if n is even, it means n has 2 as its factor, and this means that n is not prime. This is a contradiction because (n is prime) AND (n is not prime) is True Theorem: Every prime number is an odd number Proofs by Contradiction: example 3/12/2016Lecture Proof Techniques

13 Proof: A: 3n + 2 is odd B: n is odd We need to show that A  B is true We need to find a contradiction q such that:  (A  B)  q We know:  (A  B)   (  A  B)  A   B This means that we suppose that (3n + 2 is odd) AND (n is even) is True. But, if n is even, it means n = 2k for some int k, and this means that 3n + 2 = 6K+2 = 2(3K+1)  even. This is a contradiction: (3n + 2 is odd) AND (3n +2 is even) Theorem: If 3n + 2 is an odd natural number, then n is also an odd natural number. Proofs by Contradiction: example

3/12/2016Lecture Proof Techniques14 Disproving something: counterexamples If we are asked to show that a proposition is False, then we just need to provide one counter-example for which the proposition is False In other words, to show that  x P(x) is False, we can just show  x P(x) =  x  P(x) to be True Example: “Every positive integer is the sum of the squares of two integers” is False. Proof: counter-examples: 3, 6,…

3/12/2016Lecture Proof Techniques15 Today’s Reading Rosen 1.7 Please start solving the exercises at the end of each chapter section. They are fun.