Module #10: Proof Strategies

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.
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.
February 26, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1 Addition of Integers Example: Add a = (1110) 2 and b = (1011) 2. a 0 + b.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
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
So far we have learned about:
Discrete Mathematics and its Applications
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
February 25, 2002Applied Discrete Mathematics Week 5: Mathematical Reasoning 1 Addition of Integers How do we (humans) add two integers? Example: 7583.
Introduction to Proofs
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 03: PROOFS Section 1.5 Jarek Rossignac CS1050: Understanding.
Proofs1 Elementary Discrete Mathematics Jim Skon.
1 Basic Proof Methods I Basic Proof Methods II Proofs Involving Quantifiers.
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.
Proofs1 Advanced Discrete Mathematics Jim Skon. Proofs2  Definition: A theorem is a valid logical assertion which can be proved using other theorems.
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,
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)
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.
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
The Foundations: Logic and Proofs
Applied Discrete Mathematics Week 5: Mathematical Reasoning
CSE15 Discrete Mathematics 01/30/17
In this slide set… Rules of inference for propositions
Discrete Mathematics Logic.
COT 3100, Spring 2001 Applications of Discrete Structures
Methods of Proof CS 202 Epp, chapter 3.
Proof Techniques.
Explorations in Artificial Intelligence
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.
Week #6 – 30 September / 2/4 October 2002 Prof. Marie desJardins
Discrete Mathematics and its Applications
Applied Discrete Mathematics Week 1: Logic
First Order Logic Rosen Lecture 3: Sept 11, 12.
Inference Rules: Tautologies
Discrete Mathematics Logic.
Information Technology Department SKN-SITS,Lonavala.
Module #2: Basic Proof Methods
Discrete Mathematics and its Applications
September 9, 2004 Prof. Marie desJardins (for Prof. Matt Gaston)
Foundations of Discrete Mathematics
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Mathematical Reasoning
Discrete Mathematics and its Applications
Introduction to Proofs
Module #2: Basic Proof Methods
The Foundations: Logic and Proofs
Rules of inference Section 1.5 Monday, December 02, 2019
Presentation transcript:

Module #10: Proof Strategies Rosen 5th ed., §3.1 ~28 slides, ~1 lecture 2/25/2019 (c)2001-2002, Michael P. Frank

Overview of Section 3.1 Methods of mathematical argument (proof methods) can be formalized in terms of rules of logical inference. Mathematical proofs can themselves be represented formally as discrete structures. We will review both correct & fallacious inference rules, & several proof methods. 2/25/2019 (c)2001-2002, Michael P. Frank

Applications of Proofs An exercise in clear communication of logical arguments in any area. The fundamental activity of mathematics is the discovery and elucidation of proofs of interesting new theorems. Theorem-proving has applications in program verification, computer security, automated reasoning systems, etc. 2/25/2019 (c)2001-2002, Michael P. Frank

Proof Terminology Theorem - A statement that has been proven to be true. Axioms, postulates, hypotheses, premises - Assumptions (often unproven) defining the structures about which we are reasoning. Rules of inference - Patterns of logically valid deductions from hypotheses to conclusions. 2/25/2019 (c)2001-2002, Michael P. Frank

More Proof Terminology Lemma - A minor theorem used as a stepping-stone to proving a major theorem. Corollary - A minor theorem proved as an easy consequence of a major theorem. Conjecture - A statement whose truth value has not been proven. (A conjecture may be widely believed to be true, regardless.) 2/25/2019 (c)2001-2002, Michael P. Frank

Inference Rules - General Form Inference Rule - Pattern establishing that if we know that a set of antecedent statements of certain forms are all true, then a certain related consequent statement is true. antecedent 1 antecedent 2 …   consequent “” means “therefore” 2/25/2019 (c)2001-2002, Michael P. Frank

Inference Rules & Implications Each logical inference rule corresponds to an implication that is a tautology. antecedent 1 Inference rule antecedent 2 …   consequent Corresponding tautology: ((antecedent 1)  (antecedent 2)  …)  consequent 2/25/2019 (c)2001-2002, Michael P. Frank

Some Inference Rules p Rule of Addition  pq pq Rule of Simplification  p p Rule of Conjunction q  pq 2/25/2019 (c)2001-2002, Michael P. Frank

Modus Ponens & Tollens p Rule of modus ponens pq q q Rule of modus tollens pq p 2/25/2019 (c)2001-2002, Michael P. Frank

Syllogism Inference Rules pq Rule of hypothetical qr syllogism pr p  q Rule of disjunctive p syllogism  q 2/25/2019 (c)2001-2002, Michael P. Frank

Formal Proofs A formal proof of a conclusion C, given premises p1, p2,…,pn consists of a sequence of steps, each of which applies some inference to premises or previously-proven statements (as antecedents) to yield a new true statement (the consequent). A proof demonstrates that if the premises are true, then the conclusion is true. 2/25/2019 (c)2001-2002, Michael P. Frank

Formal Proof Example Premises: “It is not sunny and it is cold.” “We will swim only if it is sunny.” “If we do not swim, then we will canoe.” “If we canoe, then we will be home early.” Given these premises, prove “We will be home early” using inference rules. 2/25/2019 (c)2001-2002, Michael P. Frank

Proof Example cont. Let sunny=“It is sunny”; cold=“It is cold;” swim=“We will swim;” canoe=“We will canoe;” early=“We will be home early.” Premises: (1) sunny  cold (2) swimsunny (3) swimcanoe (4) canoeearly 2/25/2019 (c)2001-2002, Michael P. Frank

Proof Example cont. Step Proved by 1. sunny  cold Premise #1. 2. sunny Simplification of 1. 3. swimsunny Premise #2. 4. swim Modus tollens on 2,3. 5. swimcanoe Premise #3. 6. canoe Modus ponens on 4,5. 7. canoeearly Premise #4. 8. early Modus ponens on 6,7. 2/25/2019 (c)2001-2002, Michael P. Frank

Common Fallacies A fallacy is an inference rule or other proof method that is not logically valid. Fallacy of affirming the conclusion: “pq is true, and q is true, so p must be true.” (Consider FT.) Fallacy of denying the hypothesis: “pq is true, and p is false, so q must be false.” (Consider FT.) 2/25/2019 (c)2001-2002, Michael P. Frank

Circular Reasoning The fallacy of (explicitly or implicitly) assuming the very statement you are trying to prove in the course of its proof. Prove that an integer n is even if n2 is even. Attempted proof: “Assume n2 is even. Then n2=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 assuming n is even? 2/25/2019 (c)2001-2002, Michael P. Frank

Removing the Circularity Suppose n2 is even 2|n2  n2 mod 2 = 0. Of course n mod 2 is either 0 or 1. If it’s 1, then n1 (mod 2), so n21 (mod 2), using the theorem that if ab (mod m) and cd (mod m) then acbd (mod m), with a=c=n and b=d=1. Now n21 (mod 2) implies that n2 mod 2 = 1. So by the hypothetical syllogism rule, (n mod 2 = 1) implies (n2 mod 2 = 1). Since we know n2 mod 2 = 0  1, by modus tollens we know that n mod 2  1. So by disjunctive syllogism we have that n mod 2 = 0 2|n  n is even. 2/25/2019 (c)2001-2002, Michael P. Frank

Inference Rules for Quantifiers x P(x) P(o) (substitute any object o) P(g) (for g a general element of u.d.) x P(x) x P(x) P(c) (substitute a new constant c) P(o) (substitute any extant object o) x P(x) Universal instantiation Universal generalization Existential instantiation Existential generalization 2/25/2019 (c)2001-2002, Michael P. Frank

Proof Methods For proving implications pq, we have: Direct proof: Assume p is true, and prove q. Indirect proof: Assume q, and prove p. Vacuous proof: Prove p by itself. Trivial proof: Prove q by itself. Proof by cases: Show p(a  b) and (aq) and (bq). 2/25/2019 (c)2001-2002, Michael P. Frank

Proof by Contradiction A method for proving p. Assume p, and prove both q and q for some proposition q. Thus p (q  q) (q  q) is a trivial contradition, equal to F Thus pF, which is only true if p=F Thus p is true. 2/25/2019 (c)2001-2002, Michael P. Frank

Review: Proof Methods So Far Direct, indirect, vacuous, and trivial proofs of statements of the form pq. Proof by contradiction of any statements. Constructive and nonconstructive existence proofs. 2/25/2019 (c)2001-2002, Michael P. Frank

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 a specific element a such that P(a) is true, then it is a constructive proof. Otherwise, it is nonconstructive. 2/25/2019 (c)2001-2002, Michael P. Frank

A Constructive Existence Proof (Example 23, p.179) Show that for any n>0 there exists a sequence of n consecutive composite integers. Same statement in predicate logic: n>0 x i (1in)(x+i is composite) 2/25/2019 (c)2001-2002, Michael P. Frank

The proof... Given n>0, let x = (n + 1)! + 1. Let i  1 and i  n, and consider x+i. Note x+i = (n + 1)! + (i + 1). Note (i+1)|(n+1)!, since 2  i+1  n+1. Also (i+1)|(i+1). So, (i+1)|(x+i).  x+i is composite.  n x 1in : x+i is composite. Q.E.D. 2/25/2019 (c)2001-2002, Michael P. Frank

Nonconstructive Existence Proof (Example 24, p. 180) Show that there are infinitely many primes. Show there is no largest prime. Show that for any prime number, there is a larger number that is also prime. Show that for any number,  a larger prime. Show that n p>n : p is prime. 2/25/2019 (c)2001-2002, Michael P. Frank

Da proof... Given n>0, prove there is a prime p>n. Consider x=n!+1. Since x>1, we have (x is prime)(x is composite). Case 1: x is prime. Obviously x>n, so let p=x and we’re done. Case 2: x has a prime factor p. But if pn, then p mod x = 1. So p>n, and we’re done. 2/25/2019 (c)2001-2002, Michael P. Frank

The Halting Problem (Turing‘36) Involves a non-existence proof. The first mathematical function proven to have no algorithm that computes it! The desired function is Halts(P,I) = the truth value of the statement ‘Program P, given input I, eventually halts’. Implies general impossibility of predictive analysis of arbitrary computer programs. 2/25/2019 (c)2001-2002, Michael P. Frank

The Proof Given any arbitrary program H(P,I), Consider algorithm Breaker, defined as: procedure Breaker(P: a program) halts := H(P,P) if halts then while T begin end Note that Breaker(Breaker) halts iff H(Breaker,Breaker) = F. So H does not compute the function Halts! 2/25/2019 (c)2001-2002, Michael P. Frank

Limits on Proofs 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). 2/25/2019 (c)2001-2002, Michael P. Frank