Ch 1.5: Basic Proof Methods II Proof by Contraposition of P => Q Suppose ~Q …proof details here…. Therefore, ~P (via a direct proof) Thus, ~Q => ~P. Therefore,

Slides:



Advertisements
Similar presentations
With examples from Number Theory
Advertisements

Introduction to Proofs
PROOF BY CONTRADICTION
Chapter 3 Elementary Number Theory and Methods of Proof.
1 In this lecture  Number Theory ● Rational numbers ● Divisibility  Proofs ● Direct proofs (cont.) ● Common mistakes in proofs ● Disproof by counterexample.
Appetizer: True or False 1.2  2 2.If 2 = 3, then 5 = 6. 3.If 1 = 2, then I am the Pope. 4.Open the window. 5.If the proof is wrong, then the proposition.
Chapter 3 Elementary Number Theory and Methods of Proof.
3.3 Divisibility Definition If n and d are integers, then n is divisible by d if, and only if, n = dk for some integer k. d | n  There exists an integer.
Basic properties of the integers
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
CMSC 250 Discrete Structures Number Theory. 20 June 2007Number Theory2 Exactly one car in the plant has color H( a ) := “ a has color”  x  Cars –H(
1 Inference Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
Copyright © Zeph Grunschlag,
Proof Must Have Statement of what is to be proven.
1 Indirect Argument: Contradiction and Contraposition.
Methods of Proof Leo Cheung. A Quick Review Direct proof Proof by contrapositive Proof by contradiction Proof by induction.
Introduction to Proofs ch. 1.6, pg. 87,93 Muhammad Arief download dari
Methods of Proof Lecture 4: Sep 16 (chapter 3 of the book)
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.
CS 2210 (22C:019) Discrete Structures Logic and Proof Spring 2015 Sukumar Ghosh.
Methods of Proof & Proof Strategies
(CSC 102) Discrete Structures Lecture 10.
Introduction to Proofs
Introduction to Proofs
Methods of Proof. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical theorems. Direct.
Conditional Statements CS 2312, Discrete Structures II Poorvi L. Vora, GW.
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.
1 Section 1.1 A Proof Primer A proof is a demonstration that some statement is true. We normally demonstrate proofs by writing English sentences mixed.
CSci 2011 Discrete Mathematics Lecture 6
Chapter 5 Existence and Proof by contradiction
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.
Chapter 4 More on Directed Proof and Proof by Contrapositive 4.1 Proofs Involving Divisibility of Integers 4.2 Proofs Involving Congruence of Integers.
Ch 1.4: Basic Proof Methods I A theorem is a proposition, often of special interest. A proof is a logically valid deduction of a theorem, using axioms,
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,
Do you agree with the following proofs? 1.Prove that  2 is irrational. Proof: Suppose that  2 is not irrational, then  2 = p/q for some natural numbers.
Methods of Proof for Boolean Logic Chapter 5 Language, Proof and Logic.
Direct Proof and Counterexample III
22C:19 Discrete Structures Logic and Proof Fall 2014 Sukumar Ghosh.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Introduction to Proofs
1 CMSC 250 Chapter 3, Number Theory. 2 CMSC 250 Introductory number theory l A good proof should have: –a statement of what is to be proven –"Proof:"
Week 4 - Wednesday.  What did we talk about last time?  Divisibility  Proof by cases.
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.
EXAMPLE 3 Write an indirect proof Write an indirect proof that an odd number is not divisible by 4. GIVEN : x is an odd number. PROVE : x is not divisible.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
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.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Chapter 1 Logic and Proof.
CSE15 Discrete Mathematics 02/01/17
Indirect Argument: Two Classical Theorems
Indirect Argument: Contradiction and Contraposition
Direct Proof by Contraposition Direct Proof by Contradiction
Predicate Calculus Validity
Indirect Argument: Contradiction and Contraposition
Discrete Math for CS CMPSC 360 LECTURE 4 Last time and recitations:
Check It Out! Example 1 Write an indirect proof that a triangle cannot have two right angles. Step 1 Identify the conjecture to be proven. Given: A triangle’s.
Sets and Logic…. Chapter 3
The Foundations: Logic and Proofs
Indirect Proof by Contradiction Direct Proof by Cases
PROOF BY CONTRADICTION
CS 220: Discrete Structures and their Applications
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept 24, 25.
Indirect Argument: Contradiction and Contraposition
Dr. Halimah Alshehri MATH 151 Dr. Halimah Alshehri Dr. Halimah Alshehri.
5.6 Inequalities in Two Triangles and Indirect Proof
From the last time: gcd(a, b) can be characterized in two different ways: It is the least positive value of ax + by where x and y range over integers.
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept, 2019.
Presentation transcript:

Ch 1.5: Basic Proof Methods II Proof by Contraposition of P => Q Suppose ~Q …proof details here…. Therefore, ~P (via a direct proof) Thus, ~Q => ~P. Therefore, P => Q

Example 1 Let m be an integer. Prove that if m^2 is even, then m is even. Proof: Suppose that m is odd. Then m = 2k +1 for some integer k. It follows that m^2 = (2k+1)^2 = 4k^2 + 4k + 1  m^2 = 2(2k^2 + 2k) + 1  m^2 = 2n+1, where n = 2n+1 is an integer. Thus m^2 is odd. Therefore, m odd implies m^2 is odd. Hence m^2 even implies m even, by contraposition.

Example 2 Prove Let x be a positive real number. Prove that if x > 1, then x^2 – 1 > 0. Proof: Suppose x is positive and x^2-1 <= 0. Then (x-1)(x+1) <= 0. It follows that 0 < x <= 1. Therefore, x^2-1 <= 0 implies x <= 1. Hence for x positive, x > 1 implies x^2 – 1 > 0, by contraposition.

Contradiction Proof by Contradiction. Want to prove P. Suppose ~P …proof details here…. Therefore, Q. …proof details here…. Therefore, ~Q. Thus, Q/\ ~Q, a contradiction. Therefore, P. Note: Q is not necessarily known at onset of proof.

Example 3 Prove that sqrt(2) is irrational. Proof: Assume false: sqrt(2) = p/q for integers p, q. WLOG, assume p & q have no common factors. Then 2 = p^2/q^2 => 2q^2 = p^2. Thus p^2 is even, and hence p is even (by Example 1). Since p & q have no common factors, q is odd. Now p is even, so p = 2k for some integer k. Thus p^2 = 4k^2, hence 2q^2 = 4k^2 (since 2q^2 = p^2). Then q^2 = 2k^2, and therefore q is even (by Example 1). This is a contradiction. Hence sqrt(2) is irrational.

Example 4 Prove that the set of primes is infinite. Proof: Assume false: Let {p1,p2,…pk} be the set of primes, k in N. Let n = (p1*p2*…*pk) + 1. Since n is in N, it has a prime divisor q > 1. (See Ch 2.5.) Thus q divides n. Now q is in {p1,p2,…pk}, so it divides p1*p2*…*pk. Therefore, q divides n - p1*p2*…*pk. (See Ch 1.4, p32.) But n - p1*p2*…*pk = 1. Thus q divides 1, which implies q = 1. This is a contradiction. Hence the set of primes is infinite.

Biconditional Two-Part Proof of a Biconditional P  Q. Show P => Q by any method Also, show Q => P by any method. Therefore, P  Q.

Example 5 Let a be a prime; b, c in N. Prove that a|bc iff a|b or a|c. Proof: Let a be a prime and b,c in N. (=>) Suppose a|bc. Then bc = ka, for some k in N. Also, b = p1p2…pm, c = q1q2…qn, pi and qi prime. Then bc = (p1p2…pm)(q1q2…qn) Since a is prime and a|bc, a = pi for some i or a = qj for some j. Thus either b is an integer multiple of a or c is an integer multiple of a. Therefore a|b or a|c.

Example 5 Let a be a prime; b, c in N. Prove that a|bc iff a|b or a|c. Proof: Let a be a prime and b,c in N. (<=) Suppose a|b or a|c. Then b = ma for some m in N or c = na, for some n in N. Thus bc = (ma)c = (mc)a = ka, k = mc in N or bc = b(na) = (bn)a = ja, j = bn in N Therefore a|b or a|c.

Example 6 Sometimes it is possible to prove both case of a biconditional simultaneously.

Basic Proof Methods Summary In this section and the last one we learned how to prove P => Q using a direct proof and a proof by contraposition. We learned how to prove P using contradiction. We learned how to prove P  Q by proving the cases P => Q and Q => P separately or simultaneously. Sometimes we can prove a proposition by more than one method. See example on page 41. Most propositions can be proved true or false. Some cannot, and they are called undecidables. (This doesn’t happen in Math 240!).

Homework Read Ch 1.5 Do 43(3a-d,4a,b,6a-c,7a,b,12a-d)