• In
Set, the
category of sets, the standard natural numbers are an NNO. A terminal object in
Set is a
singleton, and a function out of a singleton picks out a single
element of a set. The natural numbers 𝐍 are an NNO where is a function from a singleton to 𝐍 whose
image is zero, and is the
successor function. (We could actually allow to pick out
any element of 𝐍, and the resulting NNO would be isomorphic to this one.) One can prove that the diagram in the definition commutes using
mathematical induction. • In the category of types of
Martin-Löf type theory (with types as objects and functions as arrows), the standard natural numbers type
nat is an NNO. One can use the recursor for
nat to show that the appropriate diagram commutes. • Assume that \mathcal{E} is a
Grothendieck topos with terminal object \top and that \mathcal{E} \simeq \mathbf{Shv}(\mathfrak{C},J) for some
Grothendieck topology J on the category \mathfrak{C} . Then if \Gamma_{\mathbb{N}} is the constant presheaf on \mathfrak{C} , then the NNO in \mathcal{E} is the sheafification of \Gamma_{\mathbb{N}} and may be shown to take the form \mathbb{N}_{\mathcal{E}} \cong \left(\Gamma_{\mathbb{N}}\right)^{++} \cong \coprod_{n \in \mathbb{N}} \top. ==See also==