September 9, 2004 Prof. Marie desJardins (for Prof. Matt Gaston)

Slides:



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

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.
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 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
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.
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.
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)
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
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,
資訊科學數學 7 : Proof, Number and Orders 陳光琦助理教授 (Kuang-Chi Chen)
Module #1 - Logic Based on Rosen, Discrete Mathematics & Its Applications. Prepared by (c) , Michael P. Frank. Modified By Mingwu Chen 1 Module.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
CS104:Discrete Structures Chapter 2: Proof Techniques.
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.
September1999 CMSC 203 / 0201 Fall 2002 Exam #1 Review – 27 September 2002 Prof. Marie desJardins.
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
Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.
Lecture 2: Proofs and Recursion. Lecture 2-1: Proof Techniques Proof methods : –Inductive reasoning Lecture 2-2 –Deductive reasoning Using counterexample.
Making Inferences with Propositions (Rules of Inference)
Chapter 7. Propositional and Predicate Logic
2. The Logic of Compound Statements Summary
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.
Truth Tables and Equivalent Statements
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Methods of Proof CS 202 Epp, chapter 3.
Proof Techniques.
Explorations in Artificial Intelligence
Discrete Mathematics and its Applications
Module #10: Proof Strategies
Discrete Structures CSC 281
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
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
CS 220: Discrete Structures and their 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 #10: Proof Strategies
Foundations of Discrete Mathematics
Mathematical Reasoning
Discrete Mathematics and its Applications
Introduction to Proofs
CS201: Data Structures and Discrete Mathematics I
Rules of inference Section 1.5 Monday, December 02, 2019
Presentation transcript:

September 9, 2004 Prof. Marie desJardins (for Prof. Matt Gaston) CMSC 203 Fall 2004 September 9, 2004 Prof. Marie desJardins (for Prof. Matt Gaston)

PROOF METHODS

CONCEPTS / VOCABULARY Theorems Rules of inference Axioms / postulates / premises Hypothesis / conclusion Lemma, corollary, conjecture Rules of inference Modus ponens (P and P→Q imply Q) Modus tollens (P→Q and ¬Q imply ¬P) Hypothetical syllogism (P→Q and Q→R imply that P→R) Disjunctive syllogism (PQ and ¬P imply Q) Universal instantiation, universal generalization, existential instantiation (skolemization or Everybody Loves Raymond), existential generalization

CONCEPTS / VOCABULARY II Fallacies Affirming the conclusion [abductive reasoning] P→Q and Q do not imply P Denying the hypothesis P→Q and ¬P do not imply ¬Q Begging the question (circular reasoning) Proof methods Direct proof (show that P→Q by a series of logical steps from P to Q) Indirect proof (show that P→Q by proving that ¬Q→¬P) Proof by contradiction (show P by showing that ¬P implies FALSE) Trivial proof (show that P→Q by showing that Q is always true) Proof by cases Existence proofs (constructive, nonconstructive)

Let’s make a proof Prove that the premises P1, P2, and P3 imply the conclusion Q: P1: Students who work hard will do well on the test. P2: Students who do well on the test and study will get an A. P3: Bill is a student who gets a B. Q: Bill either didn’t work hard or didn’t study. General problem-solving approach to proof construction: Restate the problem, writing the premise and conclusion in mathematical language. Decide what type of proof to use. Apply any relevant definitions, axioms, laws, or theorems to simplify the premise, make it look more like the conclusion, or connect (relate) multiple premises. Carefully write down and justify each step of the proof, in a sequence of connected steps. Write a conclusion statement. Write “Q.E.D.” or □.

Restate the problem Prove that the premises P1, P2, and P3 imply the conclusion Q. P1: Students who work hard will do well on the test. P2: Students who do well on the test and study will get a good grade. P3: Bill is a student who doesn’t get a good grade. Q: Bill either didn’t work hard or didn’t study. P1: x student(x)  work-hard(x) → do-well(x) P2: x student(x)  do-well(x)  study(x) → good-grade(x) P3: student(Bill)  ¬good-grade(Bill) Q: ¬work-hard(Bill)  ¬study(Bill)

Restate the problem We wish to prove that if x student(x)  work-hard(x) → do-well(x) (P1) and x student(x)  do-well(x)  study(x) → good-grade(x) (P2) and student(Bill)  ¬good-grade(x), (P3) then ¬work-hard(Bill)  ¬study(Bill). (Q)

Select a proof type Proof by contradiction Negate the proposition to be proved and derive FALSE The negation of P1  P2  P3 → Q is P1  P2  P3  ¬Q Mini-quiz: why? The negated conclusion ¬Q is ¬Q  ¬ (¬work-hard(Bill)  ¬study(Bill))  ¬¬work-hard(Bill)  ¬¬study(Bill) De Morgan’s law  work-hard(Bill)  study(Bill) Double negation (see Table 5, p. 24) So if we can prove FALSE from P1  P2  P3  ¬Q, then we can conclude that P1  P2  P3 → Q.

Apply relevant knowledge / Justify P1: x student(x)  work-hard(x) → do-well(x) (1) student(Bill)  work-hard(Bill) → do-well(Bill) by P1 and univ. instantiation [Table 2, p. 62] P2: x student(x)  do-well(x)  study(x) → good-grade(x) (2) student(Bill)  do-well(Bill)  study(Bill) → good-grade(Bill) by P2 and univ. instantiation P3: student(Bill)  ¬good-grade(Bill) (3) student(Bill) by P3 and simplification [Table 1, p. 58] (4) ¬good-grade(Bill) by P3 and simplification ¬Q: work-hard(Bill)  study(Bill) (5) work-hard(Bill) by ¬Q and simplification (6) study(Bill) by ¬Q and simplification (7) student(Bill)  work-hard(Bill) by (3), (5) and conjunction (8) do-well(Bill) by (1), (7) and modus ponens (9) student(Bill)  do-well(Bill) study(Bill) by (3), (8), (6) and conjunction (10) good-grade(Bill) by (2), (9) and modus ponens (11) good-grade(Bill)  ¬good-grade(Bill) by (4), (10) and conjunction FALSE by (11) and the negation law [Table 2, p. 24]

Write a conclusion statement Therefore, P1  P2  P3 → Q.

Write “Q.E.D.” Q.E.D. or □

The Proof Theorem. If students who work hard will do well on the test (P1), students who do well on the test and study will get an A (P2), and Bill is a student who gets a B (P3), then Bill either didn’t work hard or didn’t study (Q). Proof. By contradiction. Suppose that the premises hold and the conclusion Q is false (i.e., Bill did work hard and did study). Then [insert the sequence of steps on slide 13] Therefore, P1  P2  P3 → Q. □

Perfect numbers A perfect number is an integer that is equal to the sum of its proper divisors. 6 is a perfect number, since 1 + 2 + 3 = 6 28 is a perfect number, since 1 + 2 + 4 + 7 + 14 = 28 Show that x=2p-1(2p-1) is a perfect number when 2p-1 is prime.

Restate the problem Show that x=2p-1(2p-1) is a perfect number when 2p-1 is prime. Use the definition of a perfect number to restate more precisely/mathematically/explicitly. Show that the sum of the proper divisors of x=2p-1(2p-1) is equal to x when 2p-1 is prime.

Select a proof type It seems like we should be able to work forward, so we’ll try a direct proof. Common error: Proof by cases, applied to a few cases. Not valid, because the cases must be exhaustive, i.e., cover all possible situations: odd numbers and even numbers negative numbers, positive numbers, and zero integers that are 0, 1, or 2 mod 3

Apply relevant knowledge Often it’s useful to verify the proposition for some specific instances. x=2p-1(2p-1) is a perfect number when 2p-1 is prime. Let p=2. Then 2p-1=3, which is prime, and x=6, which we already showed to be a perfect number. Let p=3. Then 2p-1=7, which is prime, and x=28, which is also a perfect number. Let p=5. Then 2p-1=31, which is prime, and x=16*31=406. Is that a perfect number? How will we list its divisors?

Apply relevant knowledge, cont. Premises: x=2p-1(2p-1) 2p-1 is prime What we know about divisors: The divisors of x are 2p-1, 2p-1, their divisors, and the products of their divisors. The divisors of 2p-1 are 1, 2, 22, …, 2p-1. Since 2p-1 is prime, its only divisors are 1 and 2p-1. The proper divisors of x are the unique combinations of these divisors (except x itself) One more step: figure out all the divisors and their sum

The Proof Theorem. x=2p-1(2p-1) is a perfect number when 2p-1 is prime. Proof. For x to be a perfect number, it must be equal to the sum of its proper divisors. The divisors of 2p-1 are 1, 2, 22, ..., 2p-1. Since 2p-1 is prime, its only divisors are 1 and itself. Therefore, the proper divisors of x are 1, 2, 22, ..., 2p-1, 2(2p-1), 22(2p-1 ), …, 2p-2(2p-1). The sum of these divisors is i=0p-1 2i + (2p-1) i=0p-2 2i = 2p-1 + (2p-1) (2p-1 – 1) = (2p-1) (1 + 2p-1 – 1) = 2p-1 (2p-1) Therefore, x=2p-1 (2p-1) is a perfect number. Q.E.D.