9 Everything from the Identity: Universal Properties, Initial Algebras and the von Neumann Numbers

Everything in this section is built from one primitive: the identity arrow, together with composition.

The engine. An object whose only endomorphism is the identity, and which has a unique arrow to (or from) every object, is unique up to a unique isomorphism. Every universal construction below is an instance of this one lemma.

The constructions. All of the following are defined by uniqueness of arrows:

Existence. The initial algebra of \(X\mapsto 1+X\) is the colimit of the chain \(0\to 1\to 1+1\to \cdots \), whose \(n\)-th stage is a row of \(n\) marks. The initial algebra of the finite power set is the colimit of the cumulative hierarchy \(V_0\subseteq V_1\subseteq \cdots \). Passing to these colimits is the declaration of Infinity.

The numbers. Natural numbers, their order, the von Neumann successor, the Zermelo encoding, Foundation, anti-foundation and Benacerraf’s question all follow.

9.1 Level 0: the identity

Category. A category has objects, arrows \(f:A\to B\), an identity \(\mathrm {id}_A\) for each object, and an associative composition for which the identities are units.

The terminal category. The smallest category with an object is the identity alone: one object and one arrow. Call it \(\mathbf 1\). Every later "point" is an arrow out of a copy of \(\mathbf 1\).

9.2 Level 1: the engine

Lemma (universality forces identity). Suppose \(X\) has exactly one arrow to every object, and so does \(Y\). Then there are unique arrows \(f:X\to Y\) and \(g:Y\to X\), and

\begin{equation} g\circ f=\mathrm {id}_X, \qquad f\circ g=\mathrm {id}_Y . \tag{133}\end{equation}

Proof. \(g\circ f\) and \(\mathrm {id}_X\) are both arrows \(X\to X\), of which there is only one. The other side is the same. \(\square \)

The same argument applies with all arrows reversed. Every object defined below by a universal property is therefore unique up to a unique isomorphism, and the only fact used is that the identity is an arrow.

9.3 Level 2: initial and terminal objects

Definitions.

In sets, \(0=\varnothing \) and \(1\) is a singleton, a copy of the identity alone.

Points. A point of \(X\) is an arrow \(1\to X\).

9.4 Level 3: the diagonal, products and coproducts

Diagonal. The identity paired with itself is the diagonal functor

\begin{equation} \Delta =\langle \mathrm {id},\mathrm {id}\rangle :\mathcal C\to \mathcal C\times \mathcal C, \qquad X\mapsto (X,X). \tag{134}\end{equation}

Products and coproducts. They are the adjoints of the diagonal, defined by uniqueness of arrows:

\begin{equation} \mathcal C(X+Y,Z)\cong \mathcal C(X,Z)\times \mathcal C(Y,Z), \qquad \mathcal C(Z,X\times Y)\cong \mathcal C(Z,X)\times \mathcal C(Z,Y) \tag{135}\end{equation}
(Section 232). An arrow out of \(X+Y\) is a pair of arrows, one from each summand.

The functor \(1+X\). In particular, an arrow \(1+X\to Z\) is a point of \(Z\) together with an arrow \(X\to Z\). In sets, coproduct injections are injective and have disjoint images.

9.5 Level 4: functors, natural transformations, Yoneda

Functors. A functor \(F\) sends objects to objects and arrows to arrows, and preserves both primitives:

\begin{equation} F(\mathrm {id}_A)=\mathrm {id}_{FA}, \qquad F(g\circ f)=F(g)\circ F(f). \tag{136}\end{equation}
The two functors used below are \(X\mapsto 1+X\), and the finite power set \(\mathcal P_{\mathrm {fin}}\), acting on arrows by direct image.

Natural transformations. A natural transformation is a family \(\eta _B:F(B)\to G(B)\) with \(G(f)\circ \eta _B=\eta _{B'}\circ F(f)\) for every \(f:B\to B'\).

Yoneda lemma, from the identity. For a presheaf \(G\) and the representable presheaf \(y(A)=\mathrm {Hom}(-,A)\),

\begin{equation} \mathrm {Nat}\bigl (y(A),G\bigr )\cong G(A), \qquad \eta \mapsto \eta _A(\mathrm {id}_A). \tag{137}\end{equation}

Proof. For \(f:B\to A\) we have \(f=\mathrm {id}_A\circ f\), so naturality gives

\begin{equation} \eta _B(f)=G(f)\bigl (\eta _A(\mathrm {id}_A)\bigr ). \tag{138}\end{equation}
A natural transformation out of a representable is therefore determined by where it sends the identity. \(\square \)

9.6 Level 5: cuts, order, antisymmetry, irreflexivity

Cuts. The identity is idempotent. An idempotent \(e\) splits if \(e=s\circ r\) with \(r\circ s=\mathrm {id}\). A cut is a split idempotent; adding formal splittings of all idempotents gives the Karoubi completion. With an involution, cuts are taken self-adjoint, \(e^{*}=e\).

Order.

\begin{equation} e\le f\iff fe=e , \tag{139}\end{equation}
meaning that \(e\) factors through \(f\); this is the order of subobjects.

Antisymmetry is skeletality. Without the involution, distinct idempotents with the same image factor through each other, so the relation is only a preorder. The involution fixes \(\ker e=(\mathrm {im}\,e)^\perp \), which leaves one cut per subobject, and then \(e=(ef)^{*}=fe=f\) (Remark 8.1).

Irreflexivity is the strict part. A thin category is a preorder; removing its identity arrows gives the strict order. Irreflexivity is the absence of the identity.

9.7 Level 6: pairing, counting and the Grothendieck group

Pairing. Cuts are paired, \(e\sim f\), when a partial isometry \(u\) satisfies \(u^{*}u=e\) and \(uu^{*}=f\). Equivalently, the split objects are isomorphic, \(e\mathcal A\cong f\mathcal A\).

Atoms and rows.

Grothendieck group. Classes of finite cuts under orthogonal sum form a commutative monoid. Its group completion \(K_0\) is defined by a universal property: every monoid map into a group factors uniquely through \(K_0\).

Counting. The dimension map \(D:K_0\to \mathbb R\) sends the class of an atom to \(1\), so a row of \(n\) atoms has \(D=n\).

Algebra \(K_0\) Dimension
\(M_n(\mathbb C)\) \(\mathbb Z\) rank
compact operators on \(\ell ^2\) \(\mathbb Z\) rank
hyperfinite \(\mathrm {II}_1\) factor \(\mathbb R\) trace
\(\mathcal B(\ell ^2)\) \(0\) —

Infinity as swindle. A cut paired with a proper part of itself is Dedekind infinite. If \(1\sim 1\oplus 1\), as for the shift on \(\ell ^2\), then \([1]=[1]+[1]\) in \(K_0\), hence \([1]=0\), and every class collapses. This is why \(K_0(\mathcal B(\ell ^2))=0\).

Multiplication. The tensor product makes \(K_0\) a ring, with

\begin{equation} D(e\otimes f)=D(e)\,D(f). \tag{140}\end{equation}

9.8 Level 7: algebras and the initial algebra

Algebras. For an endofunctor \(F\), an \(F\)-algebra is an arrow \(\alpha :F(X)\to X\). A morphism of algebras is an arrow \(h:X\to Y\) with \(h\circ \alpha =\beta \circ F(h)\).

The case \(F(X)=1+X\). An algebra is a point \(x_0:1\to X\) together with an endomorphism \(f:X\to X\).

Initial algebra. An initial object of the category of algebras: an algebra with exactly one morphism to every algebra. By the engine of Level 1 it is unique up to unique isomorphism.

The natural numbers. Define \((\mathbb N,0,s)\) as the initial \((1+X)\)-algebra. Initiality says that for every \((X,x_0,f)\) there is exactly one \(u:\mathbb N\to X\) with

\begin{equation} u(0)=x_0, \qquad u(s(n))=f(u(n)). \tag{141}\end{equation}
This is definition by recursion.

Lambek’s lemma. The structure map \([0,s]:1+\mathbb N\to \mathbb N\) is an isomorphism.

Proof. \(1+\mathbb N\) is itself an algebra, with structure \(1+[0,s]\). Initiality gives \(u:\mathbb N\to 1+\mathbb N\). The composite \([0,s]\circ u\) is an algebra endomorphism of \(\mathbb N\), so it is \(\mathrm {id}\) by Level 1. Applying \(1+(-)\) shows that \(u\circ [0,s]=\mathrm {id}\) as well. \(\square \)

Peano’s conditions from initiality.

Categoricity. Two initial algebras are related by exactly one isomorphism (Level 1). This is Dedekind’s theorem, and it is again the identity being the only endomorphism.

9.9 Level 8: existence, the chain of rows

Adámek’s construction. Starting from the initial object, apply \(F\) repeatedly:

\begin{equation} 0\xrightarrow {\ !\ }F(0)\xrightarrow {F(!)}F^2(0)\xrightarrow {F^2(!)}\cdots \tag{142}\end{equation}
If the colimit \(L\) of this chain exists and \(F\) preserves it, then
\begin{equation} F(L)\cong \mathrm {colim}\,F^{n+1}(0)=L, \tag{143}\end{equation}
and \(L\) with this isomorphism is the initial \(F\)-algebra.

Proof of initiality. Given an algebra \(\beta :F(Y)\to Y\), define \(h_0=!:0\to Y\) and \(h_{n+1}=\beta \circ F(h_n)\). These form a cocone on the chain, which induces \(h:L\to Y\). The \(h_n\) are forced at every stage, so \(h\) is the only algebra morphism. \(\square \)

For \(F(X)=1+X\).

\begin{equation} F^0(0)=0, \qquad F^1(0)=1, \qquad F^2(0)=1+1, \qquad F^n(0)=\underbrace {1+\cdots +1}_{n}. \tag{144}\end{equation}
The \(n\)-th stage is a row of \(n\) marks (Section 7). Its elements are \(0,s(0),\ldots ,s^{n-1}(0)\), each step keeping the old marks and appending one, and the connecting maps are inclusions.

The declaration. Every stage is finite. The colimit \(\mathbb N\), the whole chain taken at once, exists only once Infinity is declared (Subsection 458). Within the finite stages, rows, recursion up to \(n\), and induction up to \(n\) are all available without it.

9.10 Level 9: the order on \(\mathbb N\) and the successor

Order from the chain. \(m\le n\) when the stage of \(m\) includes into the stage of \(n\). The thin category \((\mathbb N,\le )\) has one arrow \(m\to n\) exactly when \(m\le n\).

Order as inclusion. Under the Yoneda embedding,

\begin{equation} y(n)(m)=\mathrm {Hom}(m,n)= \begin {cases} \{\ast \}, & m\le n,\\ \varnothing , & m>n, \end {cases} \qquad m\le n\iff y(m)\subseteq y(n). \tag{145}\end{equation}

Strict segment and successor. Removing the identity arrow gives the strict segment:

\begin{equation} v(n):=\mathrm {supp}\,y(n)\setminus \{n\}=\{0,\ldots ,n-1\}, \qquad v(n+1)=\mathrm {supp}\,y(n)=v(n)\cup \{n\}. \tag{146}\end{equation}
The element added from \(v(n)\) to \(v(n+1)\) is the identity arrow \(\mathrm {id}_n\in y(n)(n)\), the element the Yoneda lemma singles out.

Covering. Nothing lies strictly between \(n\) and \(n+1\), since the stage \(n+1\) adds exactly one mark to the stage \(n\). Cut by cut, this is the covering argument of Subsection 8.12: the difference of nested cuts lies below an atom, so it is \(0\) or the whole atom.

9.11 Level 10: the cumulative hierarchy and the numerals

Adámek for the power set. For \(F=\mathcal P_{\mathrm {fin}}\),

\begin{equation} \mathcal P_{\mathrm {fin}}^n(\varnothing )=V_n, \qquad V_0=\varnothing , \quad V_{n+1}=\mathcal P_{\mathrm {fin}}(V_n), \tag{147}\end{equation}
with inclusions as connecting maps: the Adámek chain is the cumulative hierarchy. Its colimit \(\mathrm {HF}=\bigcup _nV_n\), the hereditarily finite sets, is the initial \(\mathcal P_{\mathrm {fin}}\)-algebra, with \(\mathcal P_{\mathrm {fin}}(\mathrm {HF})\cong \mathrm {HF}\).

Two successors on \(\mathrm {HF}\). \(\mathrm {HF}\) carries two structures of \((1+X)\)-algebra:

\begin{equation} \bigl (\mathrm {HF},\ \varnothing ,\ \sigma _{\mathrm {vN}}(x)=x\cup \{x\}\bigr ), \qquad \bigl (\mathrm {HF},\ \varnothing ,\ \sigma _Z(x)=\{x\}\bigr ). \tag{148}\end{equation}

Two numerals. Initiality of \(\mathbb N\) gives unique algebra morphisms

\begin{equation} v:\mathbb N\to \mathrm {HF}\quad \text {for }\sigma _{\mathrm {vN}}, \qquad z:\mathbb N\to \mathrm {HF}\quad \text {for }\sigma _Z , \tag{149}\end{equation}
the von Neumann and Zermelo numerals. By induction from \(v(s(n))=v(n)\cup \{v(n)\}\),
\begin{equation} v(n)=\{v(m):\ m<n\}, \qquad v(m)\in v(n)\iff m<n, \qquad |v(n)|=n . \tag{150}\end{equation}
The von Neumann numeral realises the order; the Zermelo numeral realises only the covering relation, \(z(m)\in z(n)\iff n=m+1\).

Benacerraf. Both encodings are images of the one initial algebra \(\mathbb N\) under different algebra morphisms. "\(1\in 3\)" is a statement about the target, about which successor was chosen on \(\mathrm {HF}\), and its answer differs. Every statement about \(\mathbb N\) itself is preserved by both, since both are morphisms out of the same initial object.

9.12 Level 11: Foundation, anti-foundation, collapse

Coalgebras. A relation \(R\) on \(X\) is a coalgebra \(c:X\to \mathcal P(X)\), \(c(x)=\{y:\ yRx\}\). It is well-founded if the only \(S\subseteq X\) with \(c(x)\subseteq S\Rightarrow x\in S\) is \(X\) itself.

Recursion and collapse. A well-founded coalgebra has a unique map \(f\) into the initial \(\mathcal P\)-algebra \(V\) satisfying

\begin{equation} f(x)=\{f(y):\ y\in c(x)\}. \tag{151}\end{equation}
For an extensional relation, \(f\) is injective: this is the Mostowski collapse. For the order on \(\mathbb N\), \(f=v\).

The two foundations.

Foundation Anti-foundation
universe initial \(\mathcal P\)-algebra final \(\mathcal P\)-coalgebra
definitions recursion corecursion
\(x\in x\) impossible \(\Omega =\{\Omega \}\) exists, uniquely
membership on numerals strict, irreflexive reflexive cycles allowed

Under anti-foundation the one-point coalgebra \(\ast \mapsto \{\ast \}\), the identity with nothing removed, maps uniquely to \(\Omega =\{\Omega \}\). Foundation is initiality: every set is reached through the Adámek chain from the empty set.

9.13 Summary

Level Object Reduces to
0 category, terminal category \(\mathbf 1\) identity, composition
1 uniqueness up to unique isomorphism only endomorphism is \(\mathrm {id}\)
2 initial \(0\), terminal \(1\), points unique arrows
3 \(+\), \(\times \), \(1+X\) adjoints of \(\langle \mathrm {id},\mathrm {id}\rangle \)
4 functors, Yoneda preserve \(\mathrm {id}\); determined by \(\mathrm {id}_A\)
5 cuts, order, antisymmetry, irreflexivity \(\mathrm {id}^2=\mathrm {id}\), skeletality, strict part
6 pairing, \(K_0\), dimension, swindle isomorphism, group completion
7 \(\mathbb N\), Lambek, Peano, categoricity initiality
8 rows \(1+\cdots +1\), colimit \(\mathbb N\) Adámek chain, declaration of Infinity
9 order on \(\mathbb N\), \(v(n+1)=v(n)\cup \{v(n)\}\) Yoneda; adjoining \(\mathrm {id}_n\)
10 \(V_n\), \(\mathrm {HF}\), von Neumann, Zermelo, Benacerraf Adámek for \(\mathcal P_{\mathrm {fin}}\), algebra maps
11 Foundation, anti-foundation, Mostowski initial versus final

At each level the new object is characterised by a universal property, and each universal property is the statement that some identity arrow is the only arrow of its kind.