landscape with house and ploughman van gogh · van gogh 1. proof by induction 2. prove instead its...

18
Proof Techniques Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois Landscape with House and Ploughman Van Gogh 1

Upload: others

Post on 07-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Proof Techniques

Discrete Structures (CS 173)

Madhusudan Parthasarathy, University of Illinois

Landscape with Houseand Ploughman

Van Gogh

1

Page 2: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Proof by induction

2

Page 3: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Prove instead its equivalent:

­ � 0 ⋀

∀� � 0���∀��� � � � ⇒ � � � ⇒ � � �

Proof by induction

Page 4: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Simple math example

Claim: ∑ � �������

����� for all natural integers �.

4

Page 5: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Simple math example

Claim: ∑ � �������

����� for all natural integers �.

5

Page 6: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Does domino n fall?

6

Page 7: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Does domino n fall?

• Suppose dominoes 1,.. k fall. Then domino k+1 falls.

Typeequationhere.

7

Page 8: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Does domino n fall?

• Suppose the first k dominoes fall.

Then domino k+1 falls.

fall 1 ���… fall � → fall�� � 1�• The first domino falls

fall 1 � �

8

Page 9: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Induction

9

Inductive hypothesis: Suppose first k dominoes k fall.

Inductive conclusion: Domino k+1 falls.

Base case: The first domino falls.

Page 10: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Basic structure of induction proof

Claim: � � forall� � 0, 1, 2, 3…Base case: ��0� is true.

Inductive step:

��. � 0 , � 1 ,…� � → ��� � 1�

��.��0�� � �. � � � → ��� � 1�

.

.

10

Strong Induction

Inductive hypothesis

Inductive conclusion

Page 11: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Claim: For any natural integer �, �� � � is divisible by 3.

11

Page 12: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Claim: For any natural integer �, �� � � is divisible by 3.

12

Page 13: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Achilles and the tortoise paradox

13

Page 14: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

14

Page 15: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Induction doesn’t quite work over ��

If I show P(0) holds and for every � � 0 there is

some � such that P holds for all elements y in

the range ��, � � �), then it need not be true

that P holds for all non­negative reals.

15

Page 16: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Example

� � : � � 2Incorrect proof that

for every � ∈ ���, � � holds.

16

Page 17: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Induction on

• Induction is particular to structures like �

• In particular discrete finite structures admit induction (as we can talk about the number of elements in the structures and map it to �).

• Induction: particularly useful for proving properties of discrete finite structures

• Recursion: particularly useful for defining functions on discrete finite structures

(and hence gives a basis for all computation)17

Page 18: Landscape with House and Ploughman Van Gogh · Van Gogh 1. Proof by induction 2. Prove instead its equivalent:  0 ⋀

Later…

• Induction on well­ordered sets.

• Induction and its relation to a proof by

contradiction.

• ``Weak’’ and ``strong’’ induction

• Induction on discrete structures– graphs,

trees, words, lists, etc.

18