Idea
The natural numbers are the collection . They are characterised as the least collection containing a zero element and closed under a successor operation. This minimality principle — that contains nothing beyond what is forced by zero and successor — is what gives rise to the induction principle.
In Type Theory
In type theory, is sometimes assumed primitive and sometimes constructed from the general notion of an inductive type. The following rules characterise any well-behaved definition of :
In Agda, is defined as an inductive type:
data ℕ : Set where
zero : ℕ
suc : ℕ → ℕIn Category Theory
The natural numbers, can be defined as an initial algebra of the following endofunctor in Set:
In Set Theory
In ZF set theory, the natural numbers are constructed as von Neumann numerals, and their existence as a completed infinite set is guaranteed by the axiom of infinity.
Von Neumann Numerals
Each natural number is identified with the set of all smaller natural numbers: This gives:
Each numeral is a finite transitive set well-ordered by , and as a set.
Inductive Sets and the Axiom of Infinity
A set is called inductive if it contains and is closed under successor:
The axiom of infinity asserts that at least one inductive set exists:
Without this axiom, all sets in ZF could be finite; there would be no guarantee that as an infinite set exists.
Definition of
Given an inductive set , the natural numbers are the intersection of all inductive subsets of :
This is well-defined by the axiom of separation applied to , and is independent of the choice of . The result is the smallest inductive set: it contains exactly the von Neumann numerals and nothing else.
Properties in Set Theory
- is a transitive set: every element of a natural number is itself a natural number.
- is well-ordered by : for any , exactly one of , , holds, and every non-empty subset of has an -least element.
- is the first infinite ordinal, traditionally written .
- Mathematical induction on corresponds to -induction on : to prove for all , show and that .
- The axiom of foundation ensures for all , so the -ordering is strict and well-behaved.