Set6 - Induction and Recursion - Lecture Notes
Induction and Recursion
Themes of the Lecture
- Principle of Mathematical Induction: This is the most important topic, especially concerning the exam, providing a method to prove statements for an infinite number of parameters like all natural numbers.
- Well-Ordering Principle: It is logically equivalent to the principle of mathematical induction. This principle can help to show the principle of mathematical induction is true.
- Sequences and Recursion: They're related to mathematical induction by providing examples where mathematical induction can be applied. This serves as the core motivation.
- Transitive Closure: This topic relates back to lecture two and focuses on relations, ordering relations, and equivalence relations to complete the discussion.
Principle of Mathematical Induction
- Used for theorems involving a statement that depends on an integer , denoted as , to prove it holds for all integers greater than or equal to a starting integer .
- Proves an infinite number of statements by proving just two things:
- Base Case: Prove the statement holds for the integer . This is usually straightforward.
- Inductive Step: Prove that if the statement holds for , then it also holds for , i.e., for all .
- After proving the inductive step showing that , we can show that holds true.
- Knowing that holds true, as , we can argue that holds true.
- Iterating this way, we can prove that holds for any arbitrary integer .
- The inductive step needs to be iterated times to reach the integer .
- The principle of mathematical induction goes beyond first-order logic.
- Formal Statement: Assuming holds true (base case), and for all , (inductive step), then for all , holds true.
Practical Application of Mathematical Induction
- Base Case: Prove that is true. Often, this is trivial.
- Inductive Step: For any , prove that .
- Choose an arbitrary . This is standard.
- Assume that holds true (Induction Hypothesis or IH).
- Show that this assumption implies for .
Example 1
Prove that for all non-negative integers .
- Base Case: For , the sum is just . And .
- Inductive Step:
- Let be arbitrary.
- Assume that (IH).
- We want to show that .
- Starting with the left side, we have:
- Using the induction hypothesis, we replace the sum up to :
- This matches the right side of the desired result.
Example 2
Prove that for all integers .
- Base Case: For , the sum is just . And .
- Inductive Step:
- Let be arbitrary.
- Assume that (IH).
- We want to show that .
- Starting with the left side, we have:
- Using the induction hypothesis, we replace the sum up to :
- This matches the right side of the desired result.
Well-Ordering Principle
- Given a partially ordered set and a subset of , an element is a lower bound for if for all .
- Zero is a lower bound for the set of all positive integers, rational numbers, and real numbers.
- The Well-Ordering Principle states that every non-empty subset of the set of integers that has a lower bound also has a smallest element.
- The set of rational numbers does not satisfy the well-ordering principle. Zero is a lower bound for the set of all positive rational numbers, but there is no smallest positive rational number.
- The well-ordering principle is logically equivalent to the principle of mathematical induction.
Well-Ordering Implies Mathematical Induction
- Assume the base case holds true, and the inductive step is true for all .
- Define the set as the set of all integers for which is false.
- If A is non-empty, it has a lower bound, . If true then A has a smallest element. Let it be . The n must be greater than .
- Therefore, is false, but is true. However, the inductive step states that if is true, then must also be true. This is a contradiction.
- Therefore, A must be empty, implying that is true for all .
Mathematical Induction Implies Well-Ordering
- Assume that every subset of the integers having a lower bound has a smallest element and assume by contradiction that a subset has no smallest element, then we deduce that it must be empty.
- For all integers k < n, and for all integers , show that k cannot belong to A.
- Prove the base case. In the case where , and for all k < n, k will not belong to A because b is the lower bound.
- Apply the inductive step and you can conclude that A has to be empty.
Sequences and Recursion
- A sequence is a function from the set of natural numbers to an arbitrary set A. For any natural number , it assigns an element in the set A.
- A common notation is , where n is a parameter and is the nth term of the sequence.
- Sequences are often defined recursively.
- Geometric Sequence: Defined recursively with a base case and , where r is a real number. The closed formula is .
- Factorials: Defined recursively with and . This results in multiplying all natural numbers up to n. No closed formula for this, and it is abbreviated by .
Example: Number of Diagonals of an -gon
- is the number of diagonals of an n-gon.
- Recursive definition:
- , ,
- Closed formula:
Proof using Mathematical Induction:
- Base Case: For , . And .
- Inductive Step:
- Let be arbitrary.
- Assume that (IH).
- We want to show that .
- Using the recursion formula and the induction hypothesis:
- This matches the right side of the desired result.
Transitive Closure
- A binary relation in a set is a subset of the Cartesian product of with itself, .
- The relation is defined recursively by and , where denotes the composition of relations.
- represents a path of exactly steps from to in the directed graph representation of .
- The transitive closure of a binary relation , denoted as , is the smallest transitive relation containing .
- is defined as the union of all for , i.e., there's a path of finite length from to in the directed graph.
- If the relation is already transitive, nothing changes.
- If using a Hasse Diagram start by adding the reflexive arrows, that you may have an easier time interpreting it.