Direct Proofs. CS 19: Discrete Mathematics. Direct Proof: Example. Indirect Proof: Example. Proofs by Contradiction and by Mathematical Induction

Similar documents
Handout #1: Mathematical Reasoning

Introduction. Appendix D Mathematical Induction D1

3. Mathematical Induction

SECTION 10-2 Mathematical Induction

Basic Proof Techniques

Sample Induction Proofs

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

Mathematical Induction. Mary Barnes Sue Gordon

Mathematical Induction

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

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

1.2. Successive Differences

Cosmological Arguments for the Existence of God S. Clarke

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

Math 55: Discrete Mathematics

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

Computing exponents modulo a number: Repeated squaring

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Graph Theory Problems and Solutions

Solutions to Homework 6 Mathematics 503 Foundations of Mathematics Spring 2014

CS 3719 (Theory of Computation and Algorithms) Lecture 4

Full and Complete Binary Trees

An Innocent Investigation

8 Divisibility and prime numbers

Cartesian Products and Relations

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

SCORE SETS IN ORIENTED GRAPHS

Answer Key for California State Standards: Algebra I

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.

MATH10040 Chapter 2: Prime and relatively prime numbers

Congruent Number Problem

Page 331, 38.4 Suppose a is a positive integer and p is a prime. Prove that p a if and only if the prime factorization of a contains p.

Mathematical Induction. Lecture 10-11

Set Theory Basic Concepts and Definitions

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

THE DIMENSION OF A VECTOR SPACE

THE BANACH CONTRACTION PRINCIPLE. Contents

Math 115 Spring 2011 Written Homework 5 Solutions

6.2 Permutations continued

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

Math Workshop October 2010 Fractions and Repeating Decimals

8 Primes and Modular Arithmetic

Row Echelon Form and Reduced Row Echelon Form

of Nebraska - Lincoln

Mathematical Induction

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

= = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

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

Solutions for Practice problems on proofs

Likewise, we have contradictions: formulas that can only be false, e.g. (p p).

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

LAKE ELSINORE UNIFIED SCHOOL DISTRICT

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

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

9.2 Summation Notation

Reading 13 : Finite State Automata and Regular Expressions

Chapter 3. Distribution Problems. 3.1 The idea of a distribution The twenty-fold way

Connectivity and cuts

Math Circle Beginners Group October 18, 2015

4.2 Euclid s Classification of Pythagorean Triples

Sequences. A sequence is a list of numbers, or a pattern, which obeys a rule.

RECURSIVE ENUMERATION OF PYTHAGOREAN TRIPLES

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

SYMBOL AND MEANING IN MATHEMATICS

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

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

Lecture 13 - Basic Number Theory.

The Mean Value Theorem

(0, 0) : order 1; (0, 1) : order 4; (0, 2) : order 2; (0, 3) : order 4; (1, 0) : order 2; (1, 1) : order 4; (1, 2) : order 2; (1, 3) : order 4.

Chapter 11 Number Theory

Permutation Groups. Tom Davis April 2, 2003

IB Math Research Problem

Continued Fractions and the Euclidean Algorithm

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

CMPSCI 250: Introduction to Computation. Lecture #19: Regular Expressions and Their Languages David Mix Barrington 11 April 2013

MATH 289 PROBLEM SET 4: NUMBER THEORY

Cardinality. The set of all finite strings over the alphabet of lowercase letters is countable. The set of real numbers R is an uncountable set.

Indiana State Core Curriculum Standards updated 2009 Algebra I

COMMUTATIVE RINGS. Definition: A domain is a commutative ring R that satisfies the cancellation law for multiplication:

10.2 Series and Convergence

The Ideal Class Group

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

Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm

6.3 Conditional Probability and Independence

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

5.3 The Cross Product in R 3

CONTRIBUTIONS TO ZERO SUM PROBLEMS

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.

Discrete Mathematics Problems

Real Roots of Univariate Polynomials with Real Coefficients

Stanford Math Circle: Sunday, May 9, 2010 Square-Triangular Numbers, Pell s Equation, and Continued Fractions

This chapter is all about cardinality of sets. At first this looks like a

arxiv: v1 [math.gm] 28 Apr 2008

CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association

Great Theoretical Ideas in Computer Science

Properties of Real Numbers

MI314 History of Mathematics: Episodes in Non-Euclidean Geometry

Transcription:

Direct Proofs CS 19: Discrete Mathematics Amit Chakrabarti Proofs by Contradiction and by Mathematical Induction At this point, we have seen a few examples of mathematical proofs. These have the following structure: Start with the given fact(s). Use logical reasoning to deduce other facts. Keep going until we reach our goal. Direct Proof: Example Indirect Proof: Example Theorem: 1 + 2 + 3 + + n = n(n+1)/2. Proof: Let x = 1 + 2 + 3 + + n. [starting point] Then x = n + (n-1) + (n-2) + + 1. [commutativity] So, 2x = (n+1) + (n+1) + (n+1) + + (n+1) = n(n+1). [add the previous two equations] So, x = n(n+1)/2. [Goal reached!] Note: each step of the proof is a grammatical sentence. Theorem: There are infinitely many primes. Proof: Suppose that s not the case. Then! finitely many primes p 1 < p 2 < < p n. Let N = p 1 p 2 p n + 1. Then N is not divisible by any smaller prime number. So N must itself be prime. But N > p n, the largest prime. Contradiction!

Indirect Proofs Instead of starting with the given/known facts, we start by assuming the opposite of what we seek to prove. Mathematical Induction Acknowledgment: The following slides are adapted from Anupam Gupta s CMU course Great Ideas in Theoretical Computer Science Use logical reasoning to deduce a sequence of facts. Eventually arrive at some logical absurdity, e.g. two facts that contradict each other. a.k.a. proof by contradiction or reductio ad absurdum We shall now talk about Let s start with dominoes INDUCTION

n dominoes numbered 1 to n Domino Principle: Line up any number of dominos in a row; knock the first one over and they will all fall. F k = the k th domino falls If we set them all up in a row then we know that each one is set up to knock over the next one: For all 1! k < n: F k " F k+1 n dominoes numbered 1 to n n dominoes numbered 0 to n-1 F k = the k th domino falls For all 1! k < n: F k " F k+1 F 1 " F 2 " F 3 " F 1 " All Dominoes Fall F k = the k th domino falls For all 0! k < n-1: F k " F k+1 F 0 " F 1 " F 2 " F 0 " All Dominoes Fall

The Natural Numbers n dominoes numbered 0 to n-1 # = { 0, 1, 2, 3,...} One domino for each natural number: 0 1 2 3 4 5. F k = the k th domino falls $ k, 0! k < n-1: F k " F k+1 F 0 " F 1 " F 2 " F 0 " All Dominoes Fall Plato: The Domino Principle works for an infinite row of dominoes Aristotle: Never seen an infinite number of anything, much less dominoes. Plato s Dominoes One for each natural number An infinite row, 0, 1, 2, of dominoes, one domino for each natural number. Knock the first domino over and they all will fall. Proof: Suppose they don t all fall. Let k > 0 be the lowest numbered domino that remains standing. Domino k-1 " 0 did fall, but k-1 will knock over domino k. Thus, domino k must fall and remain standing. Contradiction.

The Infinite Domino Principle Mathematical Induction: statements proved instead of dominoes fallen F k = the k th domino will fall Assume we know that for every natural number k, F k " F k+1 Infinite sequence of dominoes. F k = domino k fell Infinite sequence of statements: S 0, S 1, F k = S k proved F 0 " F 1 " F 2 " F 0 " All Dominoes Fall Establish 1) F 0 2) For all k, F k " F k+1 Conclude that F k is true for all k Inductive Proof / Reasoning To Prove $k%# (S k ) Inductive Proof / Reasoning To Prove $k%# (S k ) Establish Base Case : S 0 Establish Base Case : S 0 Establish that $k (S k " S k+1 ) Assume hypothetically that $k (S k " S k+1 ) S k for any particular k; Conclude that S k+1 Establish that $k (S k " S k+1 ) $k (S k " S k+1 ) Inductive Hypothesis S k Induction Step Use I.H. to show S k+1

Inductive Proof / Reasoning To Prove $k " b (S k ) Theorem? Establish Base Case : S b Establish that $k " b (S k " S k+1 ) The sum of the first n odd numbers is n 2. Assume k " b Inductive Hypothesis : Assume S k Inductive Step : Prove that S k+1 follows Theorem:? The sum of the first n odd numbers is n 2. Theorem:? The sum of the first n odd numbers is n 2. Check on small values: 1 = 1 1+3 = 4 1+3+5 = 9 1+3+5+7 = 16 The k th odd number is expressed by the formula (2k 1), when k>0.

S n & The sum of the first n odd numbers is n 2. S n & The sum of the first n odd numbers is n 2. 1 + 3 + 5 + (2k-1) +.. +(2n-1) = n 2 Equivalently, S n is the statement that: 1 + 3 + 5 + (2k-1) +.. +(2n-1) = n 2 Assume Inductive Hypothesis : S k (for any particular k ' 1) 1+3+5+ + (2k-1) = k 2 Add (2k+1) to both sides. 1+3+5+ + (2k-1)+(2k+1) = k 2 +(2k+1) Sum of first k+1 odd numbers = (k+1) 2 CONCLUDE: S k+1 S n & The sum of the first n odd numbers is n 2. 1 + 3 + 5 + (2k-1) +.. +(2n-1) = n 2 In summary: 1) Establish base case: S 1 THEOREM: The sum of the first n odd numbers is n 2. 2) Establish domino property: $k " 1 (S k " S k+1 ) By induction on n, we conclude that: $k " 1 (S k )

Theorem? The sum of the first n numbers is n(n+1)/2. Theorem? The sum of the first n numbers is n(n+1)/2. Try it out on small numbers! 1 = 1 = 1(1+1)/2. 1+2 = 3 = 2(2+1)/2. 1+2+3 = 6 = 3(3+1)/2. 1+2+3+4 = 10 = 4(4+1)/2. Theorem? The sum of the first n numbers is n(n+1)/2. = 0 = 0(0+1)/2. 1 = 1 = 1(1+1)/2. 1+2 = 3 = 2(2+1)/2. 1+2+3 = 6 = 3(3+1)/2. 1+2+3+4 = 10 = 4(4+1)/2. Notation: ( 0 = 0 ( n = 1 + 2 + 3 +... + n-1 + n Let S n be the statement ( n =n(n+1)/2

S n & ( n = n(n+1)/2 Use induction to prove $k " 0, S k Theorem: Establish Base Case : S 0. ( 0 =The sum of the first 0 numbers = 0. Setting n=0, the formula gives 0(0+1)/2 = 0. The sum of the first n numbers is n(n+1)/2. Establish that $k " 0, S k " S k+1 Inductive Hypothesis S k : ( k = k(k+1)/2 ( k+1 = ( k + (k+1) = k(k+1)/2 + (k+1) [Using I.H.] = (k+1)(k+2)/2 [which proves S k+1 ] Induction: Other Uses Theorem? Not just for proving the validity of algebraic equations. Induction is a powerful tool that can be used to prove many other sorts of statements. The set {1,2,3,,n} has exactly 2 n subsets.

S n & {1,2,3,,n} has exactly 2 n subsets. S n & {1,2,3,,n} has exactly 2 n subsets. Establish base case : S 1 The set {1} has exactly 2 subsets: { } and {1}. 2 = 2 1. So, S 1 is true. Assume Inductive Hypothesis : S k {1,2,3,,k} has exactly 2 k subsets. The subsets of {1,2,3,,k+1} are either subsets of {1,2,3,,k} and there are 2 k of these [by I.H.] or A ) {k+1}, where A * {1,2,3,,k} and there are 2 k of these. [by I.H.] Together, there are 2 k + 2 k = 2 k+1 subsets. CONCLUDE: S k+1 S n & {1,2,3,,n} has exactly 2 n subsets. S n & {1,2,3,,n} has exactly 2 n subsets. Assume Inductive Hypothesis : S k {1,2,3,,k} has exactly 2 k subsets. The subsets of {1,2,3,,k+1} are either subsets of {1,2,3,,k} and there are 2 k of these [by I.H.] or A ) {k+1}, where A * {1,2,3,,k} and there are 2 k of these. [by I.H.] Together, there are 2 k + 2 k = 2 k+1 subsets. CONCLUDE: S k+1 Assume Inductive Hypothesis : S k {1,2,3,,k} has exactly 2 k subsets. The subsets of {1,2,3,,k+1} are either subsets of {1,2,3,,k} and there are 2 k of these [by I.H.] or A ) {k+1}, where A * {1,2,3,,k} and there are 2 k of these. [by I.H.] Together, there are 2 k + 2 k = 2 k+1 subsets. CONCLUDE: S k+1

In Summary We have learnt two very important proof techniques today. Proof by contradiction Proof by mathematical induction. We shall soon be seeing these on a daily basis. Learn them well!