Purpose

Used to prove properties for sequences (e.g. natural numbers)

Closed Form of Sequence

Closed form formula represents a sequence. It shows how the value of sequence term depends on , e.g. for all integers

Sequence Comprehension

Sequences can be represented:
Type signature:

Recurrence Relation

A formula that relates each term to some of its predecessors
e.g. factorial:
0! = 1 n! = n (n-1)! for n 1

Recursive definition of set

For a set ,

  • base clause: Specify that certain elements, called founders are in
  • recursion clause: Specify certain functions, called constructors, under which set is closed: if is a constructor and , then
  • minimiality clause: Membership for can always be demonstrated by finitely many successive applications of the clauses above

Principle of MI (1PI)

Let be a property that is defined for integers and let be a fixed integer. Suppose the following statements are true:

  1. is true.
  2. For all integers , if is true then is true.
    Then the statement β€œfor all integers ” is true.

Formally

To use

To prove β€œFol all integers , a property is true”
Step 1 (basis step): Show that is true
Step 2 (inductive step): Show that for all integers , if is true, then is true, by the following:
Suppose that is true, where is any particular but arbitrarilty chosen integer with (This is called the inductive hypothesis)
Then, show that is true.

Example

Prove that for all integers

  1. Let
  2. Basis step: . Therefore, is true.
  3. Assume is true for . That is,
  4. Inductive step: (to show P(k+1) is true) 4.1. (because for all integers ) 4.2. Therefore is true
  5. Therefore, is true for all integers

Principle of Strong MI (2PI)

Let be a property that is defined for integers and let and be fixed integers with . Suppose these statements are true:

  1. are all true (basis step)
  2. For any integer , if is true for all integers from through , then is true ( ) (inductive step)
    Then the statement β€œfor all integers ” is true

Variation 1

If

  1. hold
  2. For every ( implies something further down)
    Then holds for all

Variation 2

If

  1. hold
  2. For every (, where implies )
    Then holds for all

Example

Prove that any whole amount \geq \124 and $5 coins

  1. Let , for some
  2. Basis step: Show that hold: (etc. not written here)
  3. Assume holds for given some
  4. Inductive step: (To show is true) 4.1. holds (by induction hypothesis), so for some 4.2. 4.3. Hence, is true
  5. Therefore, is true for