Jump to content

Natural numbers object

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Siddharthist (talk | contribs) at 18:53, 26 December 2017 (Replace png by svg image). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In category theory, a natural number object (NNO) is an object endowed with a recursive structure similar to natural numbers. More precisely, in a category E with a terminal object 1, an NNO N is given by:

  1. a global element z : 1 → N, and
  2. an arrow s : NN,

such that for any object A of E, global element q : 1 → A, and arrow f : AA, there exists a unique arrow u : NA such that:

  1. uz = q, and
  2. us = fu.[1]

In other words, the triangle and square in the following diagram commute.

A commutative diagram expressing the equations in the definition of an NNO

The pair (q, f) is sometimes called the recursion data for u, given in the form of a recursive definition:

  1. u (z) = q
  2. yE Nu (s y) = f (u (y))

The above definition is the universal property of NNOs, meaning they are defined up to canonical isomorphism. If the arrow u as defined above merely has to exist, i.e. uniqueness is not required, then N is called a weak NNO.

Equivalent definitions

NNOs in cartesian closed categories (CCCs) or topoi are sometimes defined in the following equivalent way (due to Lawvere): for every pair of arrows g : AB and f : BB, there is a unique h : N × AB such that the squares in the following diagram commute.

alternate NNO definition

This same construction defines weak NNOs in cartesian categories that are not cartesian closed.

In a category with a terminal object 1 and binary coproducts (denoted by +), an NNO can be defined as the initial algebra of the endofunctor that acts on objects by X ↦ 1 + X and on arrows by f ↦ [id1, f].

Properties

  • Every NNO is an initial object of the category of diagrams of the form
  • If a cartesian closed category has weak NNOs, then every slice of it also has a weak NNO.
  • NNOs can be used for non-standard models of type theory in a way analogous to non-standard models of analysis. Such categories (or topoi) tend to have "infinitely many" non-standard natural numbers.[clarification needed] (Like always, there are simple ways to get non-standard NNOs; for example, if z = s z, in which case the category or topos E is trivial.)
  • Freyd showed that z and s form a coproduct diagram for NNOs; also, !N : N → 1 is a coequalizer of s and 1N, i.e., every pair of global elements of N are connected by means of s; furthermore, this pair of facts characterize all NNOs.

Examples

  • 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 z is a function from a singleton to 𝐍 whose image is zero, and s is the successor function. (We could actually allow z 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.

References

  1. ^ Johnstone, Peter T. (2002). Sketches of an Elephant: a Topos Theory Compendium. Oxford: Oxford University Press. A2.5.1. ISBN 0198534256. OCLC 50164783.

See also