WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Similar documents
Basic Proof Techniques

5544 = = = Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

3. Mathematical Induction

Handout #1: Mathematical Reasoning

An Innocent Investigation

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

Mathematical Induction. Mary Barnes Sue Gordon

Mathematical Induction

Mathematical Induction. Lecture 10-11

The Chinese Remainder Theorem

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

Full and Complete Binary Trees

8 Primes and Modular Arithmetic

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.

Session 7 Fractions and Decimals

6.2 Permutations continued

Math 319 Problem Set #3 Solution 21 February 2002

Cartesian Products and Relations

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

The last three chapters introduced three major proof techniques: direct,

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Section 4.1 Rules of Exponents

Kenken For Teachers. Tom Davis June 27, Abstract

SECTION 10-2 Mathematical Induction

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

Solutions for Practice problems on proofs

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

Session 6 Number Theory

mod 10 = mod 10 = 49 mod 10 = 9.

Chapter 11 Number Theory

Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

Lecture 13 - Basic Number Theory.

Dedekind s forgotten axiom and why we should teach it (and why we shouldn t teach mathematical induction in our calculus classes)

The Taxman Game. Robert K. Moniot September 5, 2003

1.6 The Order of Operations

Linear Programming Notes VII Sensitivity Analysis

So let us begin our quest to find the holy grail of real analysis.

Homework until Test #2

Solution to Exercise 2.2. Both m and n are divisible by d, som = dk and n = dk. Thus m ± n = dk ± dk = d(k ± k ),som + n and m n are divisible by d.

Introduction. Appendix D Mathematical Induction D1

WHERE DOES THE 10% CONDITION COME FROM?

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Mathematical Induction

Math 55: Discrete Mathematics

Reading 13 : Finite State Automata and Regular Expressions

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

How To Proofread

k, then n = p2α 1 1 pα k

GCDs and Relatively Prime Numbers! CSCI 2824, Fall 2014!

How to write proofs: a quick guide

Student Outcomes. Lesson Notes. Classwork. Discussion (10 minutes)

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system

Math 3000 Section 003 Intro to Abstract Math Homework 2

Pigeonhole Principle Solutions

CONTENTS 1. Peter Kahn. Spring 2007

Math 4310 Handout - Quotient Vector Spaces

8 Divisibility and prime numbers

Solutions to Homework 6 Mathematics 503 Foundations of Mathematics Spring 2014

Understanding Options: Calls and Puts

Notes on Determinant

MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

MATH 289 PROBLEM SET 4: NUMBER THEORY

The application of prime numbers to RSA encryption

Today s Topics. Primes & Greatest Common Divisors

26 Integers: Multiplication, Division, and Order

Every Positive Integer is the Sum of Four Squares! (and other exciting problems)

Solution to Homework 2

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Public Key Cryptography: RSA and Lots of Number Theory

A Few Basics of Probability

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

Working with whole numbers

6.3 Conditional Probability and Independence

Lies My Calculator and Computer Told Me

MATH10040 Chapter 2: Prime and relatively prime numbers

If n is odd, then 3n + 7 is even.

of Nebraska - Lincoln

Invalidity in Predicate Logic

Where's Gone? LEAD GENERATION PRINTABLE WORKBOOK

Club Accounts Question 6.

Top Ten Mistakes in the FCE Writing Paper (And How to Avoid Them) By Neil Harris

Point and Interval Estimates

Greatest Common Factor and Least Common Multiple

def: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.

RSA Encryption. Tom Davis October 10, 2003

Cosmological Arguments for the Existence of God S. Clarke

0.8 Rational Expressions and Equations

4/1/2017. PS. Sequences and Series FROM 9.2 AND 9.3 IN THE BOOK AS WELL AS FROM OTHER SOURCES. TODAY IS NATIONAL MANATEE APPRECIATION DAY

Section 1.3 P 1 = 1 2. = P n = 1 P 3 = Continuing in this fashion, it should seem reasonable that, for any n = 1, 2, 3,..., =

3 Some Integer Functions

The Euclidean Algorithm

4.2 Euclid s Classification of Pythagorean Triples

Transcription:

WRITING PROOFS Christopher Heil Georgia Institute of Technology A theorem is just a statement of fact A proof of the theorem is a logical explanation of why the theorem is true Many theorems have this form: Theorem I If statement A is true then statement B is true This just means that whenever statement A is valid, then statement B must be valid as well A proof is an explanation of WHY statement B must be true whenever statement A is true 1 Direct Proofs There are several ways to write a proof of the theorem If statement A is true then statement B is true We ll discuss several of them in these pages It may not be obvious at first which variety of proof to use, but a good rule of thumb is to try a direct proof first A direct proof Start by assuming that statement A is true After all, if statement A is false then there s nothing to worry about; it doesn t matter then whether B is true or false So, suppose that statement A is true write that down as the first step This is information that you can use and build on Now try to proceed logically, one step at a time, building on this information until you have shown that statement B is true An important point is that a proof is always written in English! There are mathematical symbols mixed in with the words, but you must write clear, complete, English sentences, one after another until you ve made your way through to statement B Finally, write an end-of-proof symbol like QED or to show that you ve finished the proof Here is an example of a simple theorem and a simple direct proof Theorem 1 If p is a prime number bigger than, then p is odd Proof Suppose that p is a prime number and p > (That s where we ve assumed that statement A is true Now we build on this until we ve shown that statement B is true) To show that p is odd, we have to show that p is not divisible by Now, because p is a prime number, it is divisible only by 1 and itself Since 1 and p, the number is not one of the numbers that divides p Therefore p is not divisible by, and hence p is an odd number Admittedly, that was a pretty easy theorem and a pretty easy proof, which I ve made excessively long just to give you the idea Most theorems are harder, and you have to sit and think before you get the proof straight DON T BE DISAPPOINTED IF YOU DON T SEE HOW TO DO THE PROOF RIGHT AWAY! Most of the time, it takes THREE sheets of paper to write a proof: c 011 by Christopher Heil 1

WRITING PROOFS (1) Scratch paper, where you just try out all kinds of ideas, most of which don t work, until you see something that will work () Second sheet, where you make your first attempt to write the proof You try to write the proof neatly, but chances are that when you try to do this you ll realize that your proof isn t quite correct So, you work on it some more, turning this sheet into scratchwork also, until you think you ve got it right (3) Third sheet, where you do write the proof neatly (in English, in complete sentences!) This time you ll probably get it right Remember that what you see in class and read in the book is the THIRD SHEET ONLY! The author doesn t show you his scratchwork! Usually, you can t just sit down and work a problem straight through; it takes thought, a lot of scribbling, and a lot of messed-up scratchwork Also remember that the goal is to COMMUNICATE the proof to the reader, so you must write CLEARLY and COMPLETELY! Contrapositive Proofs Here is another approach to writing a proof of Theorem I Logically, Theorem I is exactly the same as the following theorem, which is called the contrapositive of Theorem I Theorem II If statement B is false then statement A is false For example, the contrapositive of the theorem if it rains then there are clouds in the sky is the theorem if there are no clouds in the sky then it is not raining These are logically the SAME statement So, if you want to prove Theorem I but don t see how, you can try proving Theorem II instead That is, start by assuming that statement B is false, and try to build on this until you show that statement A is false 3 Proofs by Contradiction Here is another way to prove Theorem I: by contradiction Assume as before that statement A is true But now, in addition, assume that statement B is false Build on all this information until you obtain a contradiction This means that your assumption that statement B is false is impossible Here is an example Theorem If a positive integer m is evenly divisible by some integer n > 1, then m + 1 is not evenly divisible by n Proof Suppose that m is evenly divisible by n (This is where you assume that statement A is true) This means that m = kn for some integer k Suppose that m + 1 was also divisible by n (This is where you assume that statement B is false Now use this information!) The fact that m + 1 is evenly divisible by n means that m + 1 = jn for some integer j Since we have both m = kn and m + 1 = jn, this implies that jn = m + 1 = kn + 1, and therefore (j k)n = 1 But n is an integer greater than 1 and j k is also an integer, so it is impossible for their product to be 1 (This is the contradiction, because the pairs of integers you can multiply together and get 1 are 1 times 1 and 1 and 1) Hence m + 1 cannot be evenly divisible by n

WRITING PROOFS 3 Here is a final example of a proof by contradiction This theorem was proved by Euclid a LONG time ago Note that the statement of the theorem is slightly different than what we ve discussed: it has the form statement B is true without any dependence on some statement A All the same principles apply, however Theorem 3 (Euclid) There are infinitely many prime numbers Proof Suppose that only finitely many prime numbers existed (Here is where we assume that statement B is false) Let s call these finitely many prime numbers p 1,p,,p N Now consider the number m = p 1 p p N, the product of all of those prime numbers This number m is evenly divisible by each of p 1,p,,p N Therefore, by Theorem, m + 1 is NOT divisible by any of p 1,p,,p N! Thus m + 1 is only evenly divisible by 1 and itself But then m + 1 is a NEW prime number, bigger than any of p 1,p,,p N This is a contradiction, because we said that p 1,p,,p N were ALL the prime numbers that there were in the universe Since we have obtained a contradiction, our assumption that there existed only finitely many prime numbers must be incorrect Hence, there must be infinitely many prime numbers It might surprise you learn that the existence of arbitrarily large prime numbers is of vital importance in cryptography Governments and businesses are paying huge sums of money to encode data using schemes based on huge prime numbers A fast factoring algorithm is the holy grail of much computing research! Question: Look carefully at the proof of Euclid s theorem Does that proof show that if p 1,p,,p N are prime numbers then m = p 1 p p N + 1 is also a prime number? Let s check: + 1 = 3 is prime 3 + 1 = 7 is prime 3 5 + 1 = 31 is prime 3 5 7 + 1 = 11 is prime 3 5 7 11 + 1 = 311 is prime 3 5 7 11 13 + 1 = 30031 = 59 509 is NOT prime!! What went wrong? NOTHING! There s nothing wrong with the proof of Euclid s theorem Just be careful about what it says All that the proof says is that IF there were only finitely many prime numbers p 1,p,,p N THEN m = p 1 p p N + 1 would be prime But we showed that there AREN T finitely many prime numbers, so the statement IF there were only finitely many prime numbers p 1,p,,p N THEN m = p 1 p p N +1 would be prime is vacuous, ie, it simply doesn t apply 4 If and Only If Theorems Here is another typical type of theorem: Theorem III Statement A is true if and only if statement B is true This is logically equivalent to two theorems:

4 WRITING PROOFS If statement A is true then statement B is true AND If statement B is true then statement A is true Therefore, when you try to write a proof for Theorem III you need to write TWO proofs, one for each direction For example, you could write two direct proofs: start by assuming that statement A is true and then proceed until you ve shown that statement B is true Then, start all over: assume statement B is true and work until you ve shown that statement A is true IF YOU ONLY WRITE ONE OF THESE THEN YOU HAVEN T PROVED THE THEOREM! Here is an example Theorem 4 Let n be a positive integer Then n is even if and only if n is even Proof We have to write TWO PROOFS (In this part, we ll use a direct proof to show that if n is even, then n is even) Suppose that n is even This means that n = k for some integer k Therefore n = 4k Since 4k is divisible by, we conclude that n = 4k is even (In this part, we ll use a contrapositive proof to show that if n is even, then n is even To do this, we must show that if n is not even, then n is not even) Suppose that n is odd That means that n = k + 1 for some integer k Therefore, n = 4k + 4k + 1 But the number 4k + 4k is divisible by, so by Theorem, the number 4k + 4k + 1 cannot be divisible by Hence n = 4k + 4k + 1 is odd Here is another situation where you have to write two proofs If X and Y are sets (collections of objects) and you want to show that X = Y then you must show two things: (1) First show that if x X then x Y This shows that X Y () Next show that if y Y then y X This shows that Y X The combination of the two proofs establishes that every object in X is also in Y and vice versa, and therefore that the two sets are the same 5 Proof by Induction Here is one more proof method It s used when you have a lot of statements, one for each integer, say, statements A n for n = 1,,3,, that you need to prove The theorem looks like this: Theorem IV Statement A n is true for n = 1,,3, The proof is by a method that should be familiar to anyone in computer science: recursion! It s used when you don t see how to prove each statement individually, but you do see how to get from one statement to the next Here is how to write a proof by induction: Step 1 Show that the first statement A 1 is true Step Prove the following: IF statement A n is true then statement A n+1 is true

WRITING PROOFS 5 That s all there is: once you ve done those two things you ve written a complete proof Why does this show that, say, A 13 is true? Because of the recursion We have NOT shown directly that A 13 is true What we ve shown is that IF A 1 is true THEN A 13 is true Of course, we don t know that A 1 is true, but we have shown that IF A 11 is true THEN A 1 is true, and so forth, down to IF A 1 is true THEN A is true And we HAVE shown that A 1 is true (that s why you need Step 1), so the recursion works Follow the links back, and you conclude that A 13 is true Here is an example of a proof by induction Theorem For each integer n 1 we have 1 + + n = n(n+1) Proof Step 1 It s true for n = 1 because 1 = 1(1+1) Step We have to show that IF 1 + + n = n(n+1) is true for some particular n, then the analogous statement is also true for the number n + 1 So, ASSUME that 1 + + n = n(n+1) is true for some n, and USE this information to show that the formula is also valid for n + 1 We calculate: 1 + + n + (n + 1) = n(n + 1) + (n + 1) = n + n + n + = (n + 1)(n + ) We used the formula for n, and what we end up with is the correct formula for n+1 Note that we didn t prove the formula for n + 1 directly! All we did is show that IF it s true for some n THEN it s true for n + 1 And that s enough to make the recursion work