With examples from Number Theory

Slides:



Advertisements
Similar presentations
Methods of Proof. Methods of Proof The Vicky Pollard Proof Technique Prove that when n is even n2 is even. Assume n is 0, then n2 is 0, and that is.
Advertisements

Lecture 3 – February 17, 2003.
Discrete Math Methods of proof 1.
Mathematical Induction
Introduction to Proofs
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.
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.
Direct Proof and Counterexample II Lecture 12 Section 3.2 Thu, Feb 9, 2006.
Copyright © Cengage Learning. All rights reserved.
More Number Theory Proofs Rosen 1.5, 3.1. Prove or Disprove If m and n are even integers, then mn is divisible by 4. The sum of two odd integers is odd.
Logic and Proof. Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement.
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(
So far we have learned about:
Copyright © Zeph Grunschlag,
1 Indirect Argument: Contradiction and Contraposition.
Methods of Proof Lecture 4: Sep 16 (chapter 3 of the book)
C OURSE : D ISCRETE STRUCTURE CODE : ICS 252 Lecturer: Shamiel Hashim 1 lecturer:Shamiel Hashim second semester Prepared by: amani Omer.
Methods of Proof & Proof Strategies
Introduction to Proofs
Mathematics Review Exponents Logarithms Series Modular arithmetic Proofs.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 03: PROOFS Section 1.5 Jarek Rossignac CS1050: Understanding.
1 Methods of Proof CS/APMA 202 Epp, chapter 3 Aaron Bloomfield.
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
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.
Chapter 3 Elementary Number Theory and Methods of Proof.
Review I Rosen , 3.1 Know your definitions!
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.
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
1 Introduction to Abstract Mathematics Chapter 3: Elementary Number Theory and Methods of Proofs Instructor: Hayk Melikya Direct.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
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.
Slides for CISC 2315: Discrete Structures Chapters CISC 2315 Discrete Structures Professor William G. Tanner, Jr. SPRING 2010 Slides created by James.
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.
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
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,
Copyright © Curt Hill Proofs An Introduction.
Method of proofs.  Consider the statements: “Humans have two eyes”  It implies the “universal quantification”  If a is a Human then a has two eyes.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Introduction to Proofs
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.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Proof Techniques CS160/CS122 Rosen: 1.5, 1.6, 1.7.
Lecture 2: Proofs and Recursion. Lecture 2-1: Proof Techniques Proof methods : –Inductive reasoning Lecture 2-2 –Deductive reasoning Using counterexample.
Indirect Argument: Contradiction and Contraposition
CSE15 Discrete Mathematics 02/01/17
Methods of Proof CS 202 Epp, chapter 3.
Lesson 5 – 4 Indirect Proof
An indirect proof uses a temporary assumption that
CS 220: Discrete Structures and their Applications
CS 220: Discrete Structures and their Applications
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept 24, 25.
Elementary Number Theory & Proofs
Indirect Argument: Contradiction and Contraposition
Geometry.
Copyright © Cengage Learning. All rights reserved.
Foundations of Discrete Mathematics
Introduction to Proofs
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept, 2019.
Presentation transcript:

With examples from Number Theory Methods of Proof With examples from Number Theory (Rosen 1.5, 3.1, sections on methods of proving theorems and fallacies)

Basic Definitions Theorem - A statement that can be shown to be true. Proof - A series of statements that form a valid argument. Start with your hypothesis or assumption Each statement in the series must be: Basic fact or definition Logical step (based on rules or basic logic) Previously proved theorem (lemma or corollary) Must end with what you are trying to prove (conclusion).

Basic Number Theory Definitions from Chapters 1.6, 2 Z = Set of all Integers Z+ = Set of all Positive Integers N = Set of Natural Numbers (Z+ and Zero) R = Set of Real Numbers Addition and multiplication on integers produce integers. (a,b  Z)  [(a+b)  Z]  [(ab)  Z]

Number Theory Defs (cont.)  = “such that” Number Theory Defs (cont.) n is even is defined as k  Z  n = 2k n is odd is defined as k  Z  n = 2k+1 x is rational is defined as a,b  Z  x = a/b, b0 x is irrational is defined as a,b  Z  x = a/b, b0 or a,b  Z, x  a/b, b0 p  Z+ is prime means that the only positive factors of p are p and 1. If p is not prime we say it is composite.

Methods of Proof p q (Example: if n is even, then n2 is even) Direct proof: Assume p is true and use a series of previously proven statements to show that q is true. Indirect proof: Show q p is true (contrapositive), using any proof technique (usually direct proof). Proof by contradiction: Assume negation of what you are trying to prove (pq). Show that this leads to a contradiction.

Direct Proof Prove: nZ, if n is even, then n2 is even. Tabular-style proof: n is even hypothesis n=2k for some kZ definition of even n2 = 4k2 algebra n2 = 2(2k2) which is algebra and mult of 2*(an integer) integers gives integers n2 is even definition of even

Same Direct Proof Prove: nZ, if n is even, then n2 is even. Sentence-style proof: Assume that n is even. Thus, we know that n = 2k for some integer k. It follows that n2 = 4k2 = 2(2k2). Therefore n2 is even since it is 2 times 2k2, which is an integer.

Structure of a Direct Proof Prove: nZ, if n is even, then n2 is even. Proof: Assume that n is even. Thus, we know that n = 2k for some integer k. It follows that n2 = 4k2 = 2(2k2). Therefore n2 is even since it is 2 times 2k2 which is an integer.

Another Direct Proof Prove: The sum of two rational numbers is a rational number. Proof: Let s and t be rational numbers. Then s = a/b and t = c/d where a,b,c,d Z, b,d 0. Then s+t = a/b + c/d = (ad+cb)/bd . But since (ad+cb) Z and bd Z 0 (why?), then (ad+cb)/bd is rational.

Structure of this Direct Proof Prove: The sum of two rational numbers is a rational number. Proof: Let s and t be rational numbers. Then s = a/b and t = c/d where a,b,c,d Z , b,d 0. Then s+t = a/b + c/d = (ad+cb)/bd . But since (ad+cb) Z and bd Z 0, then (ad+cb)/bd is rational. Assumed Def Basic facts of arithmetic Conclusion from Def

Example of an Indirect Proof Prove: If n3 is even, then n is even. Proof: The contrapositive of “If n3 is even, then n is even” is “If n is odd, then n3 is odd.” If the contrapositive is true then the original statement must be true. Assume n is odd. Then kZ  n = 2k+1. It follows that n3 = (2k+1)3 = 8k3+8k2+4k+1 = 2(4k3+4k2+2k)+1. (4k3+4k2+2k) is an integer. Therefore n3 is 1 plus an even integer. Therefore n3 is odd. Assumption, Definition, Arithmetic, Conclusion

Discussion of Indirect Proof Could we do a direct proof of If n3 is even, then n is even? Assume n3 is even . . . then what? We don’t have a rule about how to take n3 apart!

Example: Proof by Contradiction Prove: The sum of an irrational number and a rational number is irrational. Proof: Let q be an irrational number and r be a rational number. Assume that their sum is rational, i.e., q+r=s where s is a rational number. Then q = s-r. But by our previous proof the sum of two rational numbers must be rational, so we have an irrational number on the left equal to a rational number on the right. This is a contradiction. Therefore q+r can’t be rational and must be irrational.

Structure of Proof by Contradiction Basic idea is to assume that the opposite of what you are trying to prove is true and show that it results in a violation of one of your initial assumptions. In the previous proof we showed that assuming that the sum of a rational number and an irrational number is rational and showed that it resulted in the impossible conclusion that a number could be rational and irrational at the same time. (It can be put in a form that implies n  n is true, which is a contradiction.)

2nd Proof by Contradiction Prove: If 3n+2 is odd, then n is odd. Proof: Assume 3n+2 is odd and n is even. Since n is even, then n=2k for some integer k. It follows that 3n+2 = 6k+2 = 2(3k+1). Thus, 3n+2 is even. This contradicts the assumption that 3n+2 is odd.

Is this true? Counterexample? What Proof Approach? (n  Z  n3+5 is odd)  n is even The sum of two odd integers is even Product of two irrational numbers is irrational The sum of two even integers is even 2 is irrational If n  Z and 3n+2 is odd, then n is odd If a2 is even, then a is even indirect direct Is this true? Counterexample? direct contradiction indirect indirect

Using Cases Prove: n Z, n3 + n is even. Separate into cases based on whether n is even or odd. Prove each separately using direct proof. Proof: We can divide this problem into two cases. n can be even or n can be odd. Case 1: n is even. Then kZ  n = 2k. n3+n = 8k3 + 2k = 2(4k3+k) which is even since 4k3+k must be an integer.

Cases (cont.) Case 2: n is odd. Then kZ  n = 2k+1. n3 + n = (8k3 +12k2 + 6k + 1) + (2k + 1) = 2(4k3 + 6k2 + 4k + 1) which is even since 4k3 + 6k2 + 4k + 1 must be an integer. Therefore n Z, n3 + n is even

Even/Odd is a Special Case of Divisibility We say that x is divisible by y if  k  Z  x=yk n is divisible by 2 if  k  Z  n = 2k (even) The other case is n = 2k+1(odd,remainder of 1) n is divisible by 3 if  k  Z  n = 3k Other cases n = 3k + 1 n = 3k + 2 n is divisible by 4 if  k  Z  n = 4k This leads to modulo arithmetic

Lemmas and Corollaries A lemma is a simple theorem used in the proof of other theorems. A corollary is a proposition that can be established directly from a theorem that has already been proved.

Remainder Lemma Lemma: Let a=3k+1 where k is an integer. Then the remainder when a2 is divided by 3 is 1. Proof: Assume a =3k+1. Then a2 = 9k2 + 6k + 1 = 3(3k2+2k) + 1. Since 3(3k2+2k) is divisible by 3, the remainder must be 1.

Divisibility Example Prove: n2 - 2 is never divisible by 3 if n is an integer. Discussion: What does it mean for a number to be divisible by 3? If a is divisible by 3 then  b  Z  a = 3b. Remainder when n is divided by 3 is 0. Other options are a remainder of 1 and 2. So we need to show that the remainder when n2 - 2 is divided by 3 is always 1 or 2 but never 0.

Divisibility Example (cont.) Prove: n2 - 2 is never divisible by 3 if n is an integer. Let’s use cases! There are three possible cases: Case 1: n = 3k Case 2: n = (3k+1) Case 3: n= (3k+2); kZ

n2-2 is never divisible by 3 if n  Z Proof: Case 1: n = 3k for kZ then n2-2 = 9k2 - 2 = 3(3k2) - 2 = 3(3k2 - 1) + 1 The remainder when dividing by 3 is 1.

n2-2 is never divisible by 3 if nZ Case 2: n = 3k+1 for kZ n2-2 = (3k+1)2 - 2 = 9k2 + 6k +1-2 = 3(3k2 + 2k) - 1 = 3(3k2 + 2k -1) + 2 Thus the remainder when dividing by 3 is 2.

n2-2 is never divisible by 3 if nZ Case 3: n = 3k+2 for kZ n2-2 = (3k+2)2 - 2 = 9k2 + 12k +4 -2 = 3(3k2 + 4k) + 2 Thus the remainder when dividing by 3 is 2. In each case the remainder when dividing n2-2 by 3 is nonzero. This proves the theorem.

More Complex Proof Prove: 2 is irrational. Direct proof is difficult. Must show that there are no a,b, Z, b≠0 such that a/b = 2 . Try proof by contradiction.

More Complex Proof (cont.) Proof by Contradiction of 2 is irrational: Assume 2 is rational, i.e., 2 = a/b for some a,b Z, b0. Since any fraction can be reduced until there are no common factors in the numerator and denominator, we can further assume that: 2 = a/b for some a,b Z, b0 and a and b have no common factors.

More Complex Proof (cont.) (2)2 = (a/b)2 = a2/b2 = 2. Now what do we want to do? Let’s show that a2/b2 = 2 implies that both a and b are even! Since a and b have no common factors, this is a contradiction since both a and b even implies that 2 is a common factor. Clearly a2 is even (why?). Does that mean a is even?

More Complex Proof (cont.) Lemma 1: If a2 is even, then a is even. Proof (indirect): If a is odd, then a2 is odd. Assume a is odd. Then kZ  a = 2k+1. a2 = (2k+1)2 = 4k2 + 4k + 1= 2(2k2+2k) + 1. Therefore a is odd. So the Lemma must be true.

More Complex Proof (cont.) Back to the example! So far we have shown that a2 is even. Then by Lemma 1, a is even. Thus kZ  a = 2k. Now, we will show that b is even. From before, a2/b2 = 2  2b2 = a2 = (2k)2. Dividing by 2 gives b2 = 2k2. Therefore b2 is even and from Lemma 1, b is even.

More Complex Proof (cont.) But, if a is even and b is even then they have a common factor of 2. This contradicts our assumption that our a/b has been reduced to have no common factors. Therefore 2  a/b for some a,b Z, b0. Therefore 2 is irrational.

Fallacies Incorrect reasoning occurs in the following cases when the propositions are assumed to be tautologies (since they are not). Fallacy of affirming the conclusion [(p  q)  q]  p Fallacy of denying the hypothesis [(p  q)  p]  q Fallacy of circular reasoning One or more steps in the proof are based on the truth of the statement being proved.

Proof? Prove if n3 is even then n is even. Proof: Assume n3 is even. Then kZ  n3 = 8k3 for some integer k. It follows that n = 38k3 = 2k. Therefore n is even. Statement is true but argument is false. Argument assumes that n is even in making the claim n3=8k3, rather than n3 = 2k. This is circular reasoning.