Chapter 17. Proof by Contradiction The method

Similar documents
Proof by contrapositive, contradiction

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers

Cool Results on Primes

MATH10040: Numbers and Functions Homework 1: Solutions

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

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

MATH 271 Summer 2016 Practice problem solutions Week 1

Proof worksheet solutions

Mathematics 228(Q1), Assignment 2 Solutions

Proofs. Chapter 2 P P Q Q

Solutions to Assignment 1

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

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

What is proof? Lesson 1

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

Appendix: a brief history of numbers

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Proofs. Chapter 2 P P Q Q

Methods of Proof. Zach Wagner Department of Mathematics University of California, Los Angeles Los Angeles, California USA.

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

Beautiful Mathematics

1 Proof by Contradiction

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

(e) Commutativity: a b = b a. (f) Distributivity of times over plus: a (b + c) = a b + a c and (b + c) a = b a + c a.

CSE 215: Foundations of Computer Science Recitation Exercises Set #5 Stony Brook University. Name: ID#: Section #: Score: / 4

The prime number is a natural number greater than 1, is divisible by itself and the only one.

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.

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

Section Summary. Proof by Cases Existence Proofs

1. Prove that the number cannot be represented as a 2 +3b 2 for any integers a and b. (Hint: Consider the remainder mod 3).

Math Real Analysis

MATH 2400 LECTURE NOTES: POLYNOMIAL AND RATIONAL FUNCTIONS. Contents 1. Polynomial Functions 1 2. Rational Functions 6

Math 38: Graph Theory Spring 2004 Dartmouth College. On Writing Proofs. 1 Introduction. 2 Finding A Solution

Rational Approximation by Continued Fractions

Argument. whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday.

3 The language of proof

MATH 135 Fall 2006 Proofs, Part IV

35 Chapter CHAPTER 4: Mathematical Proof

MATH CSE20 Homework 5 Due Monday November 4

PRIME NUMBERS YANKI LEKILI

CHAPTER 1 REAL NUMBERS KEY POINTS

Proof Techniques (Review of Math 271)

PROBLEM SOLVING. (2n +1) 3 =8n 3 +12n 2 +6n +1=2(4n 3 +6n 2 +3n)+1.

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


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

Proof by Contradiction

The prime number is a natural number greater than 1, is divisible by itself and the only one.

PGSS Discrete Math Solutions to Problem Set #4. Note: signifies the end of a problem, and signifies the end of a proof.

How to prove it (or not) Gerry Leversha MA Conference, Royal Holloway April 2017

7.11 A proof involving composition Variation in terminology... 88

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

The statement calculus and logic

Introduction: Pythagorean Triplets

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

Math 300: Foundations of Higher Mathematics Northwestern University, Lecture Notes

1 Implication and induction

Chapter 1 : The language of mathematics.

REVIEW Chapter 1 The Real Number System

Basic Proof Examples

CSE 1400 Applied Discrete Mathematics Proofs

Topics in Logic and Proofs

LECTURE 1. Logic and Proofs

7.2 Applications of Euler s and Fermat s Theorem.

COMP Intro to Logic for Computer Scientists. Lecture 15

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014

CHAPTER 1. REVIEW: NUMBERS

Chapter 5. Number Theory. 5.1 Base b representations

As the title suggests, we tackle three famous theorems in this chapter. 4.1 The Fundamental Theorem of Arithmetic

At the start of the term, we saw the following formula for computing the sum of the first n integers:

CSCE 222 Discrete Structures for Computing. Proofs. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

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

Direct Proof and Counterexample I:Introduction

Mathematics Foundation for College. Lesson Number 1. Lesson Number 1 Page 1

Proofs. 29th January 2014

Foundations of Discrete Mathematics

Supplementary Logic Notes CSE 321 Winter 2009

COT 2104 Homework Assignment 1 (Answers)

MATH 2112/CSCI 2112, Discrete Structures I Winter 2007 Toby Kenney Homework Sheet 5 Hints & Model Solutions

Basic Logic and Proof Techniques

FILE NAME: PYTHAGOREAN_TRIPLES_012-( WED).DOCX AUTHOR: DOUG JONES

Writing Mathematical Proofs

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

Algorithms (II) Yu Yu. Shanghai Jiaotong University

FERMAT S TEST KEITH CONRAD

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

Proofs. An (informal) proof is an essay that will persuade a logical reader that a mathematical theorem is true.

Foundations of Advanced Mathematics, version 0.8. Jonathan J. White

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

Introduction to Basic Proof Techniques Mathew A. Johnson

Cambridge University Press How to Prove it: A Structured Approach: Second edition Daniel J. Velleman Excerpt More information

In N we can do addition, but in order to do subtraction we need to extend N to the integers

One-to-one functions and onto functions

Inference and Proofs (1.6 & 1.7)

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

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

Transcription:

Chapter 17 Proof by Contradiction This chapter covers proof by contradiction. This is a powerful proof technique that can be extremely useful in the right circumstances. We ll need this method in Chapter 20, when we cover the topic of uncountability. However, contradiction proofs tend to be less convincing and harder to write than direct proofs or proofs by contrapositive. So this is a valuable technique which you should use sparingly. 17.1 The method In proof by contradiction, we show that a claim P is true by showing that its negation P leads to a contradiction. If P leads to a contradiction, then P can t be true, and therefore P must be true. A contradiction can be any statement that is well-known to be false or a set of statements that are obviously inconsistent with one another, e.g. n is odd and n is even, or x < 2 and x > 7. Proof by contradiction is typically used to prove claims that a certain type of object cannot exist. The negation of the claim then says that an object of this sort does exist. The existence of an object with specified properties is often a good starting point for a proof. For example: Claim 51 There is no largest even integer. 196

CHAPTER 17. PROOF BY CONTRADICTION 197 Proof: Suppose not. That is, suppose that there were a largest even integer. Let s call it k. Sincek iseven, ithastheform2n, wherenisaninteger. Consider k +2. k +2 = (2n)+2 = 2(n+1). So k +2 is even. But k +2 is larger than k. This contradicts our assumption that k was the largest even integer. So our original claim must have been true. The proof starts by informing the reader that you re about to use proof by contradiction. The phrase suppose not is one traditional way of doing this. Next, you should spell out exactly what the negation of the claim is. Then use mathematical reasoning (e.g. algebra) to work forwards until you deduce some type of contradiction. 17.2 2 is irrational One of the best known examples of proof by contradiction is the proof that 2 is irrational. This proof, and consequently knowledge of the existence of irrational numbers, apparently dates back to the Greek philosopher Hippasus in the 5th century BC. We defined a rational number to be a real number that can be written as a fraction a, where a and b are integers and b is not zero. If a number can b be written as such a fraction, it can be written as a fraction in lowest terms, i.e. where a and b have no common factors. If a and b have common factors, it s easy to remove them. Also, we proved (above) that, for any integer k, if k is odd then k 2 is odd. So the contrapositive of this statement must also be true: (*) if k 2 is even then k is even. Now, we can prove our claim: Suppose not. That is, suppose that 2 were rational. Then we can write 2 as a fraction a where a and b are integers b with no common factors.

CHAPTER 17. PROOF BY CONTRADICTION 198 Since 2 = a b, 2 = a2 b 2. So 2b 2 = a 2. By the definition of even, this means a 2 is even. But then a must be even, by (*) above. So a = 2n for some integer n. If a = 2n and 2b 2 = a 2, then 2b 2 = 4n 2. So b 2 = 2n 2. This means that b 2 is even, so b must be even. We now have a contradiction. a and b were chosen not to have any common factors. But they are both even, i.e. they are both divisible by 2. Because assuming that 2 was rational led to a contradiction, it must be the case that 2 is irrational. 17.3 There are infinitely many prime numbers Contradiction also provides provides a nice proof of a classic theorem about prime numbers, dating back to Euclid, who lived around 300 B.C. Euclid s Theorem: There are infinitely many prime numbers. This is a lightly disguised type of non-existence claim. The theorem could be restated as there is no largest prime or there is no finite list of all primes. So this is a good situation for applying proof by contradiction. Proof: Suppose not. That is, suppose there were only finitely many prime numbers. Let s call them p 1, p 2, up through p n. Consider Q = p 1 p 2 p n + 1. If you divide Q by one of the primes on our list, you get a remainder of 1. So Q isn t divisible by any of the primes p 1, p 2, up through p n. However, by the Fundamental Theorem of Arithmetic, Q must have a prime factor (which might be either itself or some smaller number). This contradicts our assumption that p 1, p 2,...p n was a list of all the prime numbers.

CHAPTER 17. PROOF BY CONTRADICTION 199 Notice one subtlety. We re not claiming that Q must be prime. Rather, we re making the much weaker claim that Q isn t divisible by any of the first n primes. It s possible that Q might be divisible by another prime larger than p n. 17.4 Lossless compression A final example concerns file compression. A file compression algorithm attempts to reduce the size of files, by transforming each input file to an output file with fewer bits. A lossless algorithm allows you to reconstruct the original file exactly from its compressed version, whereas a lossy algorithm only allows you to reconstruct an approximation to the original file. Or, said another way, a lossless algorithm must convert input files to output files in a one-to-one-manner, so that two distinct input files are never compressed to the same output file. Claim 52 A lossless compression algorithm that makes some files smaller must make some (other) files larger. Proof: Suppose not. That is, suppose that we had a lossless compression algorithm A that makes some files smaller and does not make any files larger. Let x be the shortest file whose compressed size is smaller than its original size. (If there are two such files of the same length, pick either at random.) Suppose that the input size of x is m characters. Suppose that S is the set of distinct files with fewer than m characters. Because x shrinks, A compresses x to a file in S. Because no files smaller than x shrink, each file in S compresses to a file (perhaps the same, perhaps different) in S. Now we have a problem. A is supposed to be lossless, therefore one-to-one. But A maps a set containing at least S +1 files to a set containing S files, so the Pigeonhole Principle states that two input files must be mapped to the same output file. This is a contradiction.

CHAPTER 17. PROOF BY CONTRADICTION 200 So, on the face of it, lossless file compression algorithms can t win. How do they work so well in practice? One secret is that compression algorithms can ensure that file sizes never increase much. If a file would increase in size, the algorithm stores the original version unchanged, preceded with a one-bit marker. This bounds the potential damage if we encounter a bad input file. The second secret is that commonly-occurring files are not created at random but have definite patterns. Text files contain natural language text. Digitized images contain values that tend to change gradually. Compression algorithms are tuned so that common types of files shrink. The fact that some files might get bigger isn t a serious practical problem if those files are unlikely to occur on your disk. 17.5 Philosophy Proof by contradiction strikes many people as mysterious, because the argument starts with an assumption known to be false. The whole proof consists of building up a fantasy world and then knocking it down. Although the method is accepted as valid by the vast majority of theoreticians, these proofs are less satisfying than direct proofs which construct the world as we believe it to be. The best mathematical style avoids using proof by contradiction except when it will definitely result in a much simpler argument. There is, in fact, a minority but long-standing thread within theoretical mathematics, called constructive mathematics, which does not accept this proof method. They have shown that most of standard mathematics can be re-built without it. For example, the irrationality of 2 can be proved constructively, by showing that there is an error separating 2 from any chosen fraction a b.