ArticleslgStudy

mathematics

Natural numbers object

Natural numbers object is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Natural numbers object rather than just read about it. In short: In category theory in mathematics, a natural numbers 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: a global element z : 1 → N, and an arrow s : N → N, such that for any object A of E, global element q : 1 → A, and arrow f : A → A, there exists a unique arrow u : N → A such that: u ∘ z = q, and u…

Natural numbers object — main illustration
Natural numbers object — illustration

Key takeaways

  • Natural numbers object belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Natural numbers object to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Natural numbers object from memory before moving on to harder problems.

Reference excerpt

In category theory in mathematics, a natural numbers 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:

a global element z : 1 → N, and an arrow s : N → N, such that for any object A of E, global element q : 1 → A, and arrow f : A → A, there exists a unique arrow u : N → A such that:

u ∘ z = q, and u ∘ s = f ∘ u. In other words, the triangle and square in the following diagram commute.

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

⊢ u (z) = q y ∈E N ⊢ u (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, that is, uniqueness is not required, then N is called a weak NNO.

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

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

1 → q A → f A {\displaystyle 1{\xrightarrow {~\quad q\quad ~}}A{\xrightarrow {~\quad f\quad ~}}A}

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. (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. Assume that E {\displaystyle {\mathcal {E}}} is a Grothendieck topos with terminal object ⊤ {\displaystyle \top } and that E ≃ S h v ( C , J ) {\displaystyle {\mathcal {E}}\simeq \mathbf {Shv} ({\mathfrak {C}},J)} for some Grothendieck topology J {\displaystyle J} on the category C {\displaystyle {\mathfrak {C}}} . Then if Γ N {\displaystyle \Gamma _{\mathbb {N} }} is the constant presheaf on C {\displaystyle {\mathfrak {C}}} , then the NNO in E {\displaystyle {\mathcal {E}}} is the sheafification of Γ N {\displaystyle \Gamma _{\mathbb {N} }} and may be shown to take the form N E ≅ ( Γ N ) + + ≅ ∐ n ∈ N ⊤ . {\displaystyle \mathbb {N} _{\mathcal {E}}\cong \left(\Gamma _{\mathbb {N} }\right)^{++}\cong \coprod _{n\in \mathbb {N} }\top .}

See also Peano's axioms of arithmetic Categorical logic

References

Johnstone, Peter T. (2002). Sketches of an Elephant: a Topos Theory Compendium. Oxford: Oxford University Press. ISBN 0198534256. OCLC 50164783. Lawvere, William (2005) [1964]. "An elementary theory of the category of sets (long version) with commentary". Reprints in Theory and Applications of Categories. 11: 1–35.

External links Lecture notes from Robert Harper which discuss NNOs in Section 2.2: https://www.cs.cmu.edu/~rwh/courses/hott/notes/notes_week3.pdf A blog post by Clive Newstead on the n-Category Cafe: https://golem.ph.utexas.edu/category/2014/01/an_elementary_theory_of_the_ca.html Notes on datatypes as algebras for endofunctors by computer scientist Philip Wadler: http://homepages.inf.ed.ac.uk/wadler/papers/free-rectypes/free-rectypes.txt Notes on the nLab: https://ncatlab.org/nlab/show/ETCS

Illustrations

Natural numbers object illustration
Natural numbers object illustration

Worked examples

Example 1 — a first encounter with Natural numbers object

Start with the simplest possible case. Write down what Natural numbers object claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Natural numbers object before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Natural numbers object ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Natural numbers object

In research
Natural numbers object appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Natural numbers object in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Natural numbers object is common in secondary-school and first-year university syllabi. It links to neighbouring topics Categorical logic, Objects (category theory), Topos theory, so understanding it makes those chapters shorter.
In everyday life
Look for Natural numbers object outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Natural numbers object in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Natural numbers object means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Natural numbers object out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Natural numbers object in simple terms?

In category theory in mathematics, a natural numbers 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: a global element z : 1 → N, and an arrow s : N → N, such that for any object…

Why does Natural numbers object matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Natural numbers object?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Natural numbers object.

Tags

  • Categorical logic
  • Objects (category theory)
  • Topos theory

Keep exploring