12 Natural Numbers as Closed Loops of the Identity

A natural number is a count of closed loops. A loop is the identity of one object, bent into a circle by the unit and counit of its dual. Adding a loop and removing a loop are the two directions of the fixed-point isomorphism \(\mathbb N\cong 1+\mathbb N\), so \((n+1)-1=n\) is a round trip equal to the identity. Induction is the leastness of the fixed point. Addition, subtraction, multiplication, cancellation and distributivity are operations on wiring diagrams.

NL1 (duals). An object \(A\) in a symmetric monoidal category has a dual \(A^*\) when there are

\begin{equation} \eta :I\to A^*\otimes A, \qquad \varepsilon :A\otimes A^*\to I, \tag{194}\end{equation}
satisfying the snake equations: the triangle identities of the adjunction \(A\otimes -\dashv A^*\otimes -\) (Y9).

NL2 (the loop). Bending \(\mathrm {id}_A\) into a circle gives the scalar

\begin{equation} \delta =\varepsilon \circ \sigma _{A^*,A}\circ \eta =\mathrm {Tr}(\mathrm {id}_A)\ :\ I\to I , \tag{195}\end{equation}
a closed wire carrying nothing.

NL3 (scalars are loop collections). On \(\mathrm {End}(I)\), composition and placing side by side (\(\otimes \)) coincide and are commutative (Eckmann–Hilton), with the empty diagram \(\mathrm {id}_I\) as unit. In the free symmetric compact closed category on \(A\), a scalar is a finite collection of closed loops, two scalars are equal exactly when their loops correspond bijectively, and \(\mathrm {End}(I)\) is the free commutative monoid on \(\delta \) [1229]. Write \(\mathbb N\) for these scalars and \(n\) for a collection of \(n\) loops.

NL4 (zero, successor, predecessor).

\begin{equation} 0=\mathrm {id}_I\ \text {(no loop)}, \qquad S(n)=\delta \otimes n\ \text {(add a loop)}, \qquad P(\delta \otimes m)=m\ \text {(remove a loop)}. \tag{196}\end{equation}
\(P\) is defined on nonzero scalars. It does not depend on which loop is removed, since all loops are identical and any bijection of loops may be composed with the exchange of two of them (\(\sigma ^2=1\)).

NL5 (\(\mathbb N\) as a fixed point). The pair \([0,S]:1+\mathbb N\to \mathbb N\) is a bijection: every collection is either empty or a loop placed beside a smaller one. Its inverse sends \(0\) to the left summand and \(n\neq 0\) to \(P(n)\):

\begin{equation} \mathbb N\cong 1+\mathbb N, \qquad [0,S]^{-1}=(0\mapsto \ast ,\ n\mapsto P(n)). \tag{197}\end{equation}
Among all subcollections closed under \(0\) and \(S\), \(\mathbb N\) is the least:
\begin{equation} \mathbb N=\mu F, \qquad F(X)=\{0\}\cup S(X), \tag{198}\end{equation}
the Tarski meet of M4, and \(\mathbb N\cong 1+\mathbb N\) is Lambek’s lemma (M5).

NL6 (the round trip is the identity). The two directions of NL5 compose to identities:

\begin{equation} P(S(n))=n, \qquad S(P(n))=n\ \ (n\neq 0), \tag{199}\end{equation}
that is, \((n+1)-1=n\) and \((n-1)+1=n\). Adding the loop that is then removed returns the same collection: the round trip is \(\mathrm {refl}_n\), the statement \(n=n\). Consequently:

NL7 (induction). If \(Q\subseteq \mathbb N\) contains \(0\) and \(S(Q)\subseteq Q\), then \(F(Q)\subseteq Q\), so \(\mathbb N=\mu F\subseteq Q\). Induction is the leastness of the fixed point: the counit of the meet in M4.

NL8 (addition and subtraction).

\begin{equation} m+n=m\otimes n\ \text {(loops side by side)}, \qquad m-n=k\ \text {when}\ m=k+n\ \text {(remove $n$ marked loops)}. \tag{200}\end{equation}
Associativity is one diagram without brackets, commutativity is the exchange \(\sigma \), and \(0\) is the unit. Removing the loops just added gives back the start:
\begin{equation} (m+n)-n=m, \qquad (m-n)+n=m\ \ (n\le m), \tag{201}\end{equation}
which is NL6 applied to \(n\) loops at once.

NL9 (cancellation, i.e. injectivity of \(+n\)). If \(m+n=k+n\), then \(m=k\). By NL7 on \(n\): the case \(n=0\) is immediate, and if \(m+S(n)=k+S(n)\), applying \(P\) (NL6) gives \(m+n=k+n\). So \(+n\) is injective, and \(m-n\) is well defined.

NL10 (order). \(m\le n\) when the loops of \(m\) embed into the loops of \(n\), equivalently when \(n=m+k\) for some \(k\). By NL7 and NL9, \(\le \) is a total order, and \(k=n-m\) is unique.

NL11 (multiplication as a grid). Lay out an \(m\times n\) grid of parallel copies of \(\mathrm {id}_A\) and close each wire:

\begin{equation} m\cdot n=\text {the loops of }\mathrm {Tr}\bigl (\mathrm {id}_{A^{\otimes (m\times n)}}\bigr ). \tag{202}\end{equation}

Law Grid operation Reason
\(m\cdot n=n\cdot m\) transpose the grid exchange \(\sigma \)
\(m\cdot (n+k)=m\cdot n+m\cdot k\) split the \(n+k\) columns into blocks of \(n\) and \(k\) side by side (NL8)
\((m\cdot n)\cdot k=m\cdot (n\cdot k)\) one \(m\times n\times k\) block one diagram
\(m\cdot 1=m\) one column NL4
\(m\cdot 0=0\) no columns empty diagram

Distributivity is the splitting of the columns of a grid: the closed loops of the whole grid are the disjoint union of the loops of the two blocks.

NL12 (one loop, many readings).

Category Value of \(\delta \) Effect on counting
free compact closed formal \(\mathbb N\) exactly
finite-dimensional vector spaces \(\dim A\) \(n\mapsto (\dim A)^n\)
relations “\(A\) is inhabited”, \(\delta ^2=\delta \) collapses to \(\{0,1\}\)
Temperley–Lieb \(q+q^{-1}\) loop weight of the Jones polynomial
cut tower, one cell \(M_2\) \(\mathrm {Tr}(1)=2\) \(n\) cells give \(2^n\)

NL13 (the chain).

Step Result Source
NL1–NL3 loops; \(\mathbb N\) as loop collections snake equations; Eckmann–Hilton
NL4–NL5 \(0\), \(S\), \(P\); \(\mathbb N\cong 1+\mathbb N\); \(\mathbb N=\mu F\) Lambek; Tarski
NL6 \(P\circ S=\mathrm {id}\): \((n+1)-1=n\) round trip \(=\mathrm {refl}\)
NL7 induction leastness of \(\mu F\)
NL8–NL10 \(+\), \(-\), cancellation, order side by side; NL6, NL7
NL11 \(\times \), distributivity splitting a grid
NL12 readings of \(\delta \) choice of category
\begin{equation} \begin {gathered} \mathrm {id}_A\xrightarrow {\ \eta ,\ \varepsilon \ }\delta =\mathrm {Tr}(\mathrm {id}_A)\xrightarrow {\ \text {free}\ }\{\delta ^n\}\cong \mathbb N,\\[2pt] +=\text {side by side},\qquad \times =\text {closing bundles}. \end {gathered} \tag{203}\end{equation}

FL0 (\(a=a\): identity preserved). Reading \(a=a\) as an act on marks gives \(\mathrm {id}_A:A\to A\), \(\mathrm {id}_A(a)=a\), the act that preserves every mark. Reversing a reading twice returns it, so \(\neg \neg a=a\) is \(\mathrm {id}\) again. Double negation is identity, seen through two reversals.

FL1 (two places: \(\Delta \)). \(a=a\) writes one mark in two places. As a map,

\begin{equation} \Delta _A:A\to A\times A,\qquad \Delta _A(a)=(a,a), \tag{204}\end{equation}
the pair \((\mathrm {id}_A,\mathrm {id}_A)\). The two places, first and second, form the two-point kind \(\mathbf 2\).

FL2 (\(\sigma \) and \(\sigma ^2=1\)). Exchanging the two places of \(a=a\) gives \(a=a\), since both places hold the same mark: \(\sigma \Delta =\Delta \). Exchanging twice puts each place back, \(\sigma ^2=\mathrm {id}\), which is FL0. On the two outcomes of a reading, inside and outside, \(\sigma \) is negation, and \(\sigma ^2=\mathrm {id}\) is \(\neg \neg a=a\).

FL3 (Yoneda, from \(\mathrm {id}\)). For a functor \(F\) and an object \(A\), \(\mathrm {Nat}(\mathrm {Hom}(A,-),F)\cong F(A)\) via \(\eta \mapsto \eta _A(\mathrm {id}_A)\). Writing \(f=f\circ \mathrm {id}_A\), naturality gives \(\eta _B(f)=F(f)(\eta _A(\mathrm {id}_A))\), so \(\eta \) is fixed by its value at \(\mathrm {id}\) (D0). The only input is that \(\mathrm {id}_A\) exists, which is FL0.

FL4 (the two adjoints of \(\Delta \), with \(\eta \) and \(\varepsilon \)).

By FL3, a representing object is unique up to unique isomorphism, so

\begin{equation} \sqcup \dashv \Delta \dashv \times \tag{205}\end{equation}
involves no choice. Units and counits are images of identities: \(\eta =\iota _1,\iota _2\) and \(\varepsilon =\nabla \) for \(\sqcup \); \(\eta =\Delta \) and \(\varepsilon =\pi _1,\pi _2\) for \(\times \). The empty sum is \(\varnothing =\{a:\neg (a=a)\}\), the empty product is \(1=\sum _b(a=b)\), and the counits give \(A\sqcup \varnothing \cong A\) and \(A\times 1\cong A\).

FL5 (order from splitting \(\mathrm {id}\); \(x^2=x\) appears). Say that \(\mathrm {id}_A\) factors through \(B\) when \(A\xrightarrow {s}B\xrightarrow {r}A\) with \(rs=\mathrm {id}_A\). Then \(e=sr\) satisfies

\begin{equation} e^2=s(rs)r=s\,\mathrm {id}_A\,r=e . \tag{206}\end{equation}
The first idempotent is a split identity.