Math.3336: Discrete Mathematics. Proof Methods and Strategy

Similar documents
Example ( x.(p(x) Q(x))) ( x.p(x) x.q(x)) premise. 2. ( x.(p(x) Q(x))) -elim, 1 3. ( x.p(x) x.q(x)) -elim, x. P(x) x.

Math.3336: Discrete Mathematics. Cardinality of Sets

Math.3336: Discrete Mathematics. Propositional Equivalences

Math.3336: Discrete Mathematics. Nested Quantifiers/Rules of Inference

Math.3336: Discrete Mathematics. Applications of Propositional Logic

Math.3336: Discrete Mathematics. Nested Quantifiers

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

Math.3336: Discrete Mathematics. Combinatorics: Basics of Counting

Math.3336: Discrete Mathematics. Chapter 9 Relations

Math.3336: Discrete Mathematics. Mathematical Induction

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

Math.3336: Discrete Mathematics. Advanced Counting Techniques

Section 3.1: Direct Proof and Counterexample 1

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

9/5/17. Fermat s last theorem. CS 220: Discrete Structures and their Applications. Proofs sections in zybooks. Proofs.

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Mathematical Induction

3.6. Disproving Quantified Statements Disproving Existential Statements

Normal Forms Note: all ppts about normal forms are skipped.

Mat 243 Exam 1 Review

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

MATH CSE20 Homework 5 Due Monday November 4

Disjunction/Conjunction Normal Form

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

CSE 20 DISCRETE MATH. Winter

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

Proofs of Mathema-cal Statements. A proof is a valid argument that establishes the truth of a statement.

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

Section Summary. Proof by Cases Existence Proofs

Math Real Analysis

Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

Midterm Exam Solution

(3,1) Methods of Proof

Introduction to proofs. Niloufar Shafiei

The Foundations: Logic and Proofs. Chapter 1, Part III: Proofs

CS 340: Discrete Structures for Engineers

Homework 3: Solutions

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1)

Section 1.7 Proof Methods and Strategy. Existence Proofs. xp(x). Constructive existence proof:

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

Show Your Work! Point values are in square brackets. There are 35 points possible. Tables of tautologies and contradictions are on the last page.

Mathematics 220 Midterm Practice problems from old exams Page 1 of 8

Proofs. Joe Patten August 10, 2018

Sec$on Summary. Mathematical Proofs Forms of Theorems Trivial & Vacuous Proofs Direct Proofs Indirect Proofs

CSE 20 DISCRETE MATH. Fall

Some Review Problems for Exam 1: Solutions

Checkpoint Questions Due Monday, October 1 at 2:15 PM Remaining Questions Due Friday, October 5 at 2:15 PM

MATH 2200 Final LC Review

Basic Proof Examples

MATH 271 Summer 2016 Practice problem solutions Week 1

CSE 20 DISCRETE MATH. Winter

CSE 20 DISCRETE MATH WINTER

PROBLEM SET 3: PROOF TECHNIQUES

1. Mathematical Proofs

CSE 20 DISCRETE MATH SPRING

Announcements. CS243: Discrete Structures. Sequences, Summations, and Cardinality of Infinite Sets. More on Midterm. Midterm.

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

Math 3320 Foundations of Mathematics

1.1 Statements and Compound Statements

Elementary Linear Algebra, Second Edition, by Spence, Insel, and Friedberg. ISBN Pearson Education, Inc., Upper Saddle River, NJ.

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

(4) Using results you have studied, show that if x, y are real numbers,

Computer Science Section 1.6

MATH 2200 Final Review

EECS 1028 M: Discrete Mathematics for Engineers

Proofs. Chapter 2 P P Q Q

Lecture 2: Proof Techniques Lecturer: Lale Özkahya

3 The language of proof

Practice Midterm Exam Solutions

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

The Process of Mathematical Proof

Logic Overview, I. and T T T T F F F T F F F F

Math 230 Final Exam, Spring 2009

EECS 1028 M: Discrete Mathematics for Engineers

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive

Chapter 2: The Logic of Quantified Statements. January 22, 2010

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Proof by Contradiction

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Foundations of Discrete Mathematics

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

Readings: Conjecture. Theorem. Rosen Section 1.5

Proofs. Chapter 2 P P Q Q

Disproof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Disproof Fall / 16

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Math 10850, fall 2017, University of Notre Dame

Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Note 2

Arithmetic Algorithms: gcd, primality testing, the RSA cryptosystem. Polynomials and their Applications: error-correcting codes, secret sharing

Direct Proof and Counterexample I:Introduction. Copyright Cengage Learning. All rights reserved.

Math 300 Introduction to Mathematical Reasoning Autumn 2017 Proof Templates 1

Discrete Mathematics

Basics of Proofs. 1 The Basics. 2 Proof Strategies. 2.1 Understand What s Going On

RED. Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam

MATH 341, Section 001 FALL 2014 Introduction to the Language and Practice of Mathematics

First order Logic ( Predicate Logic) and Methods of Proof

MATH 135 Fall 2006 Proofs, Part IV

Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction

Chapter 1 Elementary Logic

Transcription:

Math.3336: Discrete Mathematics Proof Methods and Strategy Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu Fall 2018 Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 1/31

Assignments to work on Exam #1 on Friday, 9/21, 12:00pm-1:00pm Homework #3 due Wednesday, 9/12, 11:59pm Homework #4 due Wednesday, 9/19, 11:59pm No credit unless turned in by 11:59pm on due date Late submissions not allowed, but lowest homework score dropped when calculating grades Homework will be submitted online in your CASA accounts. You can find the instructions on how to upload your homework in our class webpage. Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 2/31

Chapter 1 - The Foundations: Logic and Proofs Chapter 1 - Overview Propositional Logic The Language of Propositions Section 1.1 Applications* Section 1.2 Logical Equivalences Section 1.3 Predicate Logic The Language of Quantifiers Section 1.4 Logical Equivalences Section 1.4 Nested Quantifiers Section 1.5 Proofs Rules of Inference Section 1.6 Proof Methods Section 1.7 Proof Strategy Section 1.8 Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 3/31

Part III Proofs Proofs Summary Valid Arguments and Rules of Inference Proof Methods Proof Strategies Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 4/31

Section 1.7 Introduction to Proofs Proofs Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 5/31

Section 1.8 Proof Methods and Strategy Proof by Cases Existence Proofs Constructive/Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness Proofs Proof Strategies Proving Universally Quantified Assertions Open Problems Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 6/31

Some Terminology Important mathematical statements that can be shown to be true are theorems Many famous mathematical theorems, e.g., Pythagorean theorem, Fermat s last theorem Pythagorean theorem: Let a, b the length of the two sides of a right triangle, and let c be the hypotenuse. Then, a 2 + b 2 = c 2 Fermat s Last Theorem: For any integer n greater than 2, the equation a n + b n = c n has no solutions for non-zero a, b, c. Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 8/31

Theorems, Lemmas, and Propositions There are many correct mathematical statements, but not all of them called theorems Less important statements that can be proven to be correct are propositions Another variation is a lemma: minor auxiliary result which aids in the proof of a theorem/proposition Corollary is a result whose proof follows immediately from a theorem or proposition Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 9/31

Conjectures vs. Theorems Conjecture is a statement that is suspected to be true by experts but not yet proven Goldbach s conjecture: Every even integer greater than 2 can be expressed as the sum of two prime numbers. This conjecture is one of the oldest unsolved problems in number theory Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 10/31

General Strategies for Proving Theorems Many different strategies for proving theorems: Direct proof: p q proved by directly showing that if p is true, then q must follow Proof by contraposition: Prove p q by proving q p Proof by contradiction: Prove that the negation of the theorem yields a contradiction Proof by cases: Exhaustively enumerate different possibilities, and prove the theorem for each case In many proofs, one needs to combine several different strategies! Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 11/31

Useful Definitions: Even and Odd Integers Every integer is either even or odd and no integer is both even and odd. Even Integers: The integer n is even if there exists an integer k such that n = 2k. Odd Integers: The integer n is odd if there exists an integer k such that n = 2k + 1. Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 12/31

Proof by Cases In some cases, it is very difficult to prove a theorem by applying the same argument in all cases For example, we might need to consider different arguments for negative and non-negative integers Proof by cases allows us to apply different arguments in different cases and combine the results Specifically, suppose we want to prove statement p, and we know that we have either q or r If we can show q p and r p, then we can conclude p Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 13/31

Proof by Cases, cont. In general, there may be more than two cases to consider Proof by cases says that to show (p 1 p 2... p k ) q it suffices to show: p 1 q p 2 q... p k q Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 14/31

Example Prove that xy = x y Here, proof by cases is useful because definition of absolute value depends on whether number is negative or not. There are four possibilities: 1 x, y are both non-negative 2 x non-negative, but y negative 3 x negative, y non-negative 4 x, y are both negative We ll prove the property by proving these four cases separately Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 15/31

Proof Case 1: x, y 0. In this case, xy = xy = x y Case 2: x 0, y < 0. Here, xy = xy = x ( y) = x y Case 3: x < 0, y 0. Here, xy = xy = ( x) y = x y Case 4: x, y < 0. Here, xy = xy = ( x) ( y) = x y Since we proved it for all cases, the theorem is valid. Caveat: Your cases must cover all possibilites; otherwise, the proof is not valid! Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 16/31

Combining Proof Techniques So far, our proofs used a single strategy, but often it s necessary to combine multiple strategies in one proof Example: Prove that every rational number can be expressed as a product of two irrational numbers. Proof: Let s first employ direct proof. Observe that any rational number r can be written as 2 r 2 We already proved 2 is irrational. r If we can show that 2 is also irrational, we have a direct proof. Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 17/31

Combining Proofs, cont. Now, employ proof by contradiction to show r 2 is irrational. Suppose r 2 was rational. Then, for some integers p, q: r 2 = p q This can be rewritten as 2 = rq p Since r is rational, it can be written as quotient of integers: a 2 = b p q = ap bq But this would mean 2 is rational, a contradiction. Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 18/31

Lesson from Example In this proof, we combined direct and proof-by-contradiction strategies In more complex proofs, it might be necessary to combine two or even more strategies and prove helper lemmas It is often a good idea to think about how to decompose your proof, what strategies to use in different subgoals, and what helper lemmas could be useful Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 19/31

If and Only if Proofs Some theorems are of the form P if and only if Q (P Q) The easiest way to prove such statements is to show P Q and Q P Therefore, such proofs correspond to two subproofs One shows P Q (typically labeled ) Another subproof shows Q P (typically labeled ) Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 20/31

Example Prove A positive integer n is odd if and only if n 2 is odd. We have already shown this using a direct proof earlier. We have already shown this by a proof by contraposition. Since we have proved both directions, the proof is complete. Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 21/31

Counterexamples So far, we have learned about how to prove statements are true using various strategies But how to prove a statement is false? counterexample! What is a counterexample for the claim The product of two irrational numbers is irrational? Counterexample: 2 2 = 2, which is rational Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 22/31

Prove or Disprove Which of the statements below are true, which are false? Prove your answer. For all integers n, if n 2 is positive, n is also positive. For all integers n, if n 3 is positive, n is also positive. For all integers n such that n 0, n 2 2n Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 23/31

More Complex Counterexamples Sometimes when giving a counterexample, you may need to prove why this value contradicts the statement Example: Every positive integer is the sum of squares of two even integers Counterexample: 2 is not the sum of squares of any even integers - but this is not obvious; (By contradiction) Suppose 2 = n 2 + m 2 for some even integers n, m Then, n = 2a and m = 2b for some integers a, b Thus, 2 = 4(a 2 + b 2 ). But this would imply a, b are not integers, a contradiction. Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 24/31

Existence and Uniqueness Common math proofs involve showing existence and uniqueness of certain objects Existence proofs require showing that an object with the desired property exists Uniqueness proofs require showing that there is a unique object with the desired property Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 25/31

Existence Proofs One simple way to prove existence is to provide an object that has the desired property This sort of proof is called constructive proof Example: Prove there exists an integer that is the sum of two perfect squares Proof: 4 = 2 2 + 2 2 this is a constructive proof! But not all existence proofs are constructive can prove existence through other methods (e.g., proof by contradiction or proof by cases) Such indirect existence proofs called nonconstructive proofs Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 26/31

Non-Constructive Proof Example Prove: There exist irrational numbers x, y s.t. x y is rational We ll prove this using a non-constructive proof (by cases), without providing irrational x, y Consider 2 2. Either (i) it is rational or (ii) it is irrational Case 1: We have x = y = 2 s.t. x y is rational Case 2: Let x = 2 2 and y = 2, so both are irrational. Then, 2 2 2 = 2 2 = 2. Thus, x y is rational Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 27/31

Proving Uniqueness Some statements in mathematics assert uniqueness of an object satisfying a certain property To prove uniqueness, must first prove existence of an object x that has the property Second, we must show that for any other y s.t. y x, then y does not have the property Alternatively, can show that if y has the desired property that x = y Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 28/31

Example of Uniqueness Proof Prove: If a and b are real numbers with a 0, then there exists a unique real number r such that ar + b = 0 Existence: Using a constructive proof, we can see r = b/a satisfies ar + b = 0 Uniqueness: Suppose there is another number s such that s r and as + b = 0. But since ar + b = as + b, we have ar = as, which implies r = s. Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 29/31

Summary of Proof Strategies Direct proof: p q proved by directly showing that if p is true, then q must follow Proof by contraposition: Prove p q by proving q p Proof by contradiction: Prove that the negation of the theorem yields a contradiction Proof by cases: Exhaustively enumerate different possibilities, and prove the theorem for each case Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 30/31

Invalid Proof Strategies Proof by obviousness: The proof is so clear it need not be mentioned! Proof by intimidation: Don t be silly of course it s true! Proof by mumbo-jumbo: α θ β α β γ Proof by intuition: I have this gut feeling.. Proof by resource limits: Due to lack of space, we omit this part of the proof... Proof by illegibility: sdjikfhiugyhjlaks??fskl; QED. Don t use anything like these in Math3336!! Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Proof Methods and Strategy 31/31