Math 2.0

concept

Definition by recursion

Summary

A definition by recursion defines a function on the natural numbers in two parts. It gives the value at 00, and a rule that gives the value at n+1n + 1 from the value at nn. The recursion theorem says that such a definition always gives exactly one function. Precisely, let XX be a set, let aa be an element of XX and let g ⁣:N×X→Xg \colon \mathbb{N} \times X \to X be a function. Then there is exactly one function f ⁣:N→Xf \colon \mathbb{N} \to X with f(0)=af(0) = a and f(n+1)=g(n,f(n))f(n + 1) = g(n, f(n)) for each nn in N\mathbb{N}.

Remarks

The factorial is an example: 0!=10! = 1 and (n+1)!=(n+1)⋅n!(n + 1)! = (n + 1) \cdot n!. The addition and the multiplication of natural numbers have definitions by recursion. The proof of the recursion theorem uses the principle of mathematical induction.

Explanations

L1 human

A recursive definition tells you where to start and how to take one step. For the factorial, you start with 0!=10! = 1, and each step multiplies by the next number. Step by step, this gives 1!=11! = 1, 2!=22! = 2, 3!=63! = 6 and 4!=244! = 24.

What this node needs for W1
  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a node is. They do not measure its truth.

What depends on this

9 nodes use this node, directly or through other nodes.

Sources

  1. Web https://en.wikipedia.org/wiki/Recursive_definition, lead section
  2. Web https://en.wikipedia.org/wiki/Recursive_definition, Principle of recursive definition