Proof Methods.

Slides:



Advertisements
Similar presentations
With examples from Number Theory
Advertisements

Discrete Math Methods of proof 1.
Mathematical Induction
Introduction to Proofs
Methods of Proofs October 20, A Good Proof State your plan Avoid excessive symbols Simplify as much as possible Good notation 2.
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.
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
Induction and recursion
Discussion #131/18 Discussion #13 Induction (the process of deriving generalities from particulars) Mathematical Induction (deductive reasoning over the.
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Discrete Structures Chapter 5: Sequences, Mathematical Induction, and Recursion 5.2 Mathematical Induction I [Mathematical induction is] the standard proof.
CSE115/ENGR160 Discrete Mathematics 03/29/11 Ming-Hsuan Yang UC Merced 1.
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.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
What it is? Why is it a legitimate proof method? How to use it?
Methods of Proof & Proof Strategies
Mathematical Maxims and Minims, 1988
Induction and recursion
CISC 2315 Discrete Structures Professor William G. Tanner, Jr. Fall 2010 Slides created by James L. Hein, author of Discrete Structures, Logic, and Computability,
Introduction to Proofs
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
MATH 224 – Discrete Mathematics
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
Conditional Statements CS 2312, Discrete Structures II Poorvi L. Vora, GW.
Review I Rosen , 3.1 Know your definitions!
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Math Review Data Structures & File Management Computer Science Dept Va Tech July 2000 ©2000 McQuain WD 1 Summation Formulas Let N > 0, let A, B, and C.
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
Section 3.1: Proof Strategy Now that we have a fair amount of experience with proofs, we will start to prove more difficult theorems. Our experience so.
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.
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.
CISC 2315 Discrete Structures Professor William G. Tanner, Jr. Spring 2011 Slides created by James L. Hein, author of Discrete Structures, Logic, and Computability,
Proofs, Induction and Recursion Basic Proof Techniques Mathematical Induction Recursive Functions and Recurrence Relations.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Proof Methods.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Today’s Topics Introduction to Proofs Rules of Inference Rules of Equivalence.
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
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.
Mathematical Induction
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
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.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Mathematical Induction I Lecture 5: Sep 20 (chapter of the textbook and chapter of the course notes)
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:
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Introduction to Proofs. The use of Reasoning and Logic in proofs Inductive Reasoning- “reasoning from detailed facts to general principles” – Specific.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Chapter 5 1. Chapter Summary  Mathematical Induction  Strong Induction  Recursive Definitions  Structural Induction  Recursive Algorithms.
CS151: Mathematical Foundations of Computing Mathematical Induction.
Chapter 1 Logic and Proof.
CSE15 Discrete Mathematics 03/22/17
Chapter 3 The Real Numbers.
Induction and recursion
Methods of Proof A mathematical theorem is usually of the form pq
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Induction and recursion
CS 220: Discrete Structures and their Applications
Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.
Mathematical Induction
Copyright © Cengage Learning. All rights reserved.
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

Proof Methods

Introduction Formal Proofs vs. Informal Proofs Many proof methods exist however none is guaranteed to prove a true theorem i.e., no general proof algorithm exists Rather we must intelligently choose our proof technique based on the particulars of the problem Exhaustive, direct, contraposition, contradiction, induction Important Terms Inductive Reasoning – a general conclusion is drawn from a set of experiences. Deductive Reasoning – a specific conclusion is shown to follow from a set of premises Hypothesis generation Hypothesis confirmation

Direct Proof To prove P  Q, assume P is true and use formal logic to show that Q is also true Example: Our previous proofs were direct proofs Problem: Too slow and cumbersome to be practical Can use same idea of direct proof but less formal notation (called informal direct proof) Example: Conjecture: “If an integer is divisible by 6, then twice that integer is divisible by 4” (taken from text, p.93) Informal Proof

Counterexample A single counterexample to a conjecture is sufficient to disprove that conjecture Example: Finding large prime numbers (for cryptography) We observe that f(n) = n2 – n + 41 produces prime numbers for n = 1 (41), 2 (43), 3 (47), and 4 (53) Conjecture: f(n) is prime for all positive integers n. Counterexample: n = 41 f(41) = 412 – 41 + 41 = 412

Exhaustive Proof Can one prove a conjecture by example? In general, no In rare cases, yes Conjecture deals with finite collection Can show conjecture true for each element in collection Called proof by exhaustion Example: f(n) is prime where 0  n  40

More Examples Prove or disprove for all positive integers. If 2n + 3 is odd then the number n is odd. If 3n + 2 is odd then the number n is odd. If x + y = 7, then either x or y must be even.

Contraposition Proof To prove P  Q, prove that Q  P Converse (Q  P)  (P  Q) is a tautology Example: n2 is odd  n is odd Contrapositive: n is even  n2 is even Proof: Converse The contrapositive is not the converse Converse of Q  P is P  Q “If and only if” conjectures require Proof of the implication Proof of the converse Examples If x is positive then so is x + 1. If the product of 2 integers is not divisible by n then neither integer is.

Contradiction Proof Example: Prove that all numbers are interesting Not an implication: Assume Q What do we mean by interesting?

Contradiction Proof A contradiction is a wff whose truth value is always false Example: (A  A) Notice the following are tautologies (Q  false)  (Q) (P  Q  false)  (P  Q) Try to develop the truth table for the above formulae To prove a conjecture true, prove that the negation of the conjecture is false To prove a simple Q, assume Q and show that this leads to a contradiction. To prove an implication P  Q, assume P and Q and show that this leads to a contradiction Remember this doesn’t prove that Q is true only that P  Q is true

Contradiction Proof Example: Prove that if 3n + 2 is odd then n is odd Let P be “3n + 2 is odd” Let Q be “n is odd” Assume P  Q More Examples No integer is both even and odd. If the sum of two primes is prime, then one of the primes must be 2.

Practice Problems Mathematical Structures for Computer Science Section 2.1: 12, 14, 15, 19, 24, 26, 35, 36, 38, 40, 47, 48, 51, 55, 62 Section 2.2: 1, 5, 8, 12, 13, 16, 22, 29, 36, 43, 44, 51, 66, 74

Project 1

Contradiction Proof Example: The Halting Problem Program “There is an algorithm that takes as input a computer program and input to that program and determines whether the program will eventually stop when run with this input.” Recall that an algorithm must terminate, therefore you can’t just run the program on the input to see if it terminates – what if it doesn’t? Program Halting Algorithm Halt/Never Input

The Halting Problem P H(P, I) Halt/Never I Assume there is a solution to the Halting Problem, call it H(P, I) H(P,I) == “halt” when P terminates on I H(P,I) == “never” when P does not terminate on I We need a way to represent the Program and Input when it’s given to the Halting Algorithm. Represent both using 0s and 1s So we can run H(P,P) and according to our assumption, it will return either “halt” or “never” H(P, I) P I Halt/Never

The Halting Problem Consider the following algorithm K(P) temp = H(P,P) if temp == “halt” then while (true) do {} end if What happens if we try K(K)? if H(K,K) is “never”, then by definition K(K) halts a contradiction if H(K,K) is “halt”, then by definition K(K) doesn’t halt Therefore, no such Halting Algorithm can exist! Often used in computer science as the base line “If we could write program X we could write H and therefore program X is not possible.” H(K, K) K Halt/Never

More Proof Methods If the proof of a theorem is not immediately apparent, it may be because you are trying the wrong approach…. Proof by calculus: "This proof requires calculus, so we'll skip it." Proof by lack of interest: "Does anyone really want to see this?" Proof by illegibility: Proof by logic: "If it is on the problem sheet, it must be true!" Proof by clever variable choice: "Let A be the number such that this proof works..." Proof by tessellation: "This proof is the same as the last." Proof by divine word: "...And the Lord said, 'Let it be true,' and it was true." Proof by stubbornness: "I don't care what you say- it is true." Proof by simplification: "This proof reduced to the statement 1 + 1 = 2." Proof by hasty generalization: "Well, it works for 17, so it works for all reals." Proof by deception: "Now everyone turn their backs..." Proof by supplication: "Oh please, let it be true." Proof by poor analogy: "Well, it's just like..." Proof by avoidance: Limit of proof by postponement as it approaches infinity Proof by design: If it's not true in today's math, invent a new system in which it is. Proof by authority: "Well, Don Knuth says it's true, so it must be!" Proof by intuition: "I have this gut feeling." Proof by obviousness: "The proof is so clear that it need not be mentioned." Proof by general agreement: "All in favor?..." Proof by majority rule: Only to be used if general agreement is impossible. Proof by imagination: "Well, we'll pretend it's true..." Proof by convenience: "It would be very nice if it were true, so..." Proof by necessity: "It had better be true, or the entire structure of mathematics would crumble to the ground." Proof by plausibility: "It sounds good, so it must be true." Proof by intimidation: "Don't be stupid; of course it's true!“ Proof by terror: When intimidation fails... Proof by lack of sufficient time: "Because of the time constraint, I'll leave the proof to you." Proof by postponement: "The proof for this is long and arduous, so it is given to you in the appendix." Proof by accident: "Hey, what have we here?!" Proof by insignificance: "Who really cares anyway?“ Proof by profanity: (example omitted) Proof by definition: "We define it to be true." Proof by tautology: "It's true because it's true." Proof by plagiarism: "As we see on page 289,..." Proof by lost reference: "I know I saw it somewhere...."

Induction Proof Highly useful proof method in computer science used in statement counting used as basis of recursion Induction involves the properties of positive integers Proof by induction involves two steps Prove conjecture for the first case Prove that if the conjecture is true for a given case, it is true for the next case Leads to the following first principle of induction P(1) is true k P(k) true  P(k+1) true Basis step Inductive step P(n) true for all positive integers n.

Induction Proof Example: Use Induction to prove that n < 2n for all positive integers n. Basis: P(1): 1 < 2 Induction: P(k+1): Assume that if k < 2k, we can prove (k+1) < 2(k+1) Note: Don’t be confused – mathematical induction is a deductive technique, not a method of inductive reasoning!

Induction Proof Example: Use Induction to prove that for all positive integers n. Basis: 1 = 1(2) / 2 Induction: Basic Process: 1. Establish theorem 2. Show true for base case 3. Assume inductive hypothesis LHSih = RHSih 4. State “want to show” as LHSwts = RHSwts 5. Give definition of LHSwts 6. Translate to use LHSih 7. Substitute RHSih for LHSih 8. Manipulate to find RHSwts

Induction Proof More Examples ∑ 5i= 5n (n+1)/2 1 ≤ i ≤ n (b) ∑ i3 = [n2 (n+1)2]/4 1 ≤ i ≤ n

Induction Proof Sometimes it is convenient to use the second principle of induction P(1) is true k[ P(r) true for 1  r  k  P(k+1) is true ] Example: Show that if n is an integer greater than 1, then n can be written as the product of primes. Let P(n) be the statement that “n can be written as a product of primes” Basis: P(2) = 2 Induction: Assume P(i) is true for all integers 1 < i  k.

Induction Proof Example: Your bank ATM delivers cash using only $20 and $50 bills. Prove that you can collect, in addition to $20, any multiple of $10 that is $40 or greater (text, p. 117).

Practice Problems Mathematical Structures for Computer Science Section 2.1: 12, 14, 15, 19, 24, 26, 35, 36, 38, 40, 47, 48, 51, 55, 62 Section 2.2: 1, 5, 8, 12, 13, 16, 22, 29, 36, 43, 44, 51, 66, 74