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:
- is true.
- 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
- Let
- Basis step: . Therefore, is true.
- Assume is true for . That is,
- Inductive step: (to show P(k+1) is true) 4.1. (because for all integers ) 4.2. Therefore is true
- 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:
- are all true (basis step)
- 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
- hold
- For every ( implies something further down)
Then holds for all
Variation 2
If
- hold
- For every (, where implies )
Then holds for all
Example
Prove that any whole amount \geq \124 and $5 coins
- Let , for some
- Basis step: Show that hold: (etc. not written here)
- Assume holds for given some
- Inductive step: (To show is true) 4.1. holds (by induction hypothesis), so for some 4.2. 4.3. Hence, is true
- Therefore, is true for