18 The Natural Numbers from the Identity: One Chain for PA, ZFC, Type Theory and Category Theory

The natural numbers are not defined by a closure condition. They are derived as the free algebra on the empty object for the successor functor,

\begin{equation} \mathbb N:=\mathrm {Free}(0), \tag{302}\end{equation}
and every ingredient of that definition is built from the identity, its involution (transpose and transpose back), and its diagonal. One declaration is made: the free algebra exists.

What is then a theorem.

The four foundations read the same chain.

18.1 Link 1: identity, involution, diagonal

Identity. \(\mathrm {id}_A\), with associative composition; \(x=x\); \(\mathsf {refl}_x\).

Involution. A bijection \(\varphi \) together with its inverse, with \(\varphi ^{-1}\circ \varphi =\mathrm {id}\) and \(\varphi \circ \varphi ^{-1}=\mathrm {id}\): going over and coming back is the identity.

Diagonal. \(\Delta =\langle \mathrm {id},\mathrm {id}\rangle \), \(x\mapsto (x,x)\). Its graph is equality: \(x=y\iff (x,y)\in \Delta \).

18.2 Link 2: adjunction

Definition. An adjunction \(F\dashv G\) is a natural involution between two hom-sets,

\begin{equation} \varphi :\mathcal D(FA,B)\rightleftarrows \mathcal C(A,GB):\varphi ^{-1}. \tag{303}\end{equation}

Unit and counit.

\begin{equation} \eta =\varphi (\mathrm {id}), \qquad \varepsilon =\varphi ^{-1}(\mathrm {id}). \tag{304}\end{equation}

Triangle identities. \(G\varepsilon \circ \eta G=\mathrm {id}\) and \(\varepsilon F\circ F\eta =\mathrm {id}\): the involution applied to identities.

Left adjoints preserve initial objects. If \(0\) is initial in \(\mathcal C\), then for every \(B\),

\begin{equation} \mathcal D(F0,B)\cong \mathcal C(0,GB), \tag{305}\end{equation}
which has exactly one element, so \(F0\) is initial in \(\mathcal D\).

18.3 Link 3: zero, one, plus from the identity

Zero and one. For the functor \(!:\mathcal C\to \mathbf 1\) to the category with one object and one arrow, the identity alone,

\begin{equation} 0\dashv \ !\ \dashv 1 . \tag{306}\end{equation}
In sets these are realised from identity:
\begin{equation} 0=\{x:\ x\neq x\}=\varnothing , \qquad 1=\{y:\ y=0\}=\{0\}, \tag{307}\end{equation}
the part where identity fails, and a fibre of the diagonal.

Plus.

\begin{equation} +\ \dashv \ \Delta . \tag{308}\end{equation}
In sets, \(A+B=(\{0\}\times A)\cup (\{1\}\times B)\), with tags \(0\) and \(1\).

Distinct tags, from identity. \(0\neq 1\): we have \(0\in 1\) because \(0=0\), while \(0\) has no element because \(x\neq x\) never holds. Hence \((0,a)\neq (1,b)\) always: the two summands are disjoint.

Monic injections. \((t,a)=(t,a')\) implies \(a=a'\) by the characteristic property of pairs (Section 232).

\(0\) \(1\) \(A+B\), disjoint and monic
ZFC \(\{x:x\neq x\}\) \(\{0\}\) tagged union, \(0\neq 1\)
type theory \(\sum _x\neg (x=x)\simeq \mathbf 0\) \(\sum _y(y=a)\simeq \mathbf 1\) sum type, encode–decode
category theory left adjoint of \(!\) right adjoint of \(!\) left adjoint of \(\Delta \)

18.4 Link 4: the successor functor and its algebras

The functor.

\begin{equation} S(X)=\mathbf 1+X, \qquad S(f)=\mathrm {id}_{\mathbf 1}+f . \tag{309}\end{equation}

Algebras. An \(S\)-algebra is an arrow \(\alpha :\mathbf 1+X\to X\). By the adjunction \(+\dashv \Delta \), this is a pair: a point \(\alpha _0=\alpha \circ \iota _1\) and an endomorphism \(\alpha _s=\alpha \circ \iota _2\).

Morphisms. A morphism \(h:(X,\alpha )\to (Y,\beta )\) satisfies \(h\circ \alpha =\beta \circ S(h)\), that is,

\begin{equation} h(\alpha _0)=\beta _0, \qquad h\circ \alpha _s=\beta _s\circ h . \tag{310}\end{equation}

The forgetful functor. \(U:\mathbf {Alg}_S\to \mathcal C\) forgets the structure map.

18.5 Link 5: the declaration and the definition of \(\mathbb N\)

Declaration. \(U\) has a left adjoint, \(\mathrm {Free}\dashv U\).

Definition.

\begin{equation} \mathbb N:=\mathrm {Free}(0), \qquad [0,s]:\mathbf 1+\mathbb N\to \mathbb N\ \text {its structure map}. \tag{311}\end{equation}

P1 and P2. These are the two components of the structure map, by Link 4:

\begin{equation} 0:=[0,s]\circ \iota _1\in \mathbb N, \qquad s:=[0,s]\circ \iota _2:\mathbb N\to \mathbb N . \tag{312}\end{equation}

Foundation Form of the declaration
PA the domain of quantification is \(\mathbb N\)
ZFC Infinity, from which \(\mathrm {Free}(0)\) is constructed and its universal property proved
type theory the inductive type \(\mathbb N\), or an impredicative encoding
category theory a natural numbers object

18.6 Link 6: initiality

By Links 2 and 5, for every algebra \((X,\alpha )\),

\begin{equation} \mathbf {Alg}_S\bigl (\mathbb N,(X,\alpha )\bigr ) =\mathbf {Alg}_S\bigl (\mathrm {Free}\,0,(X,\alpha )\bigr ) \cong \mathcal C(0,X), \tag{313}\end{equation}
which has exactly one element. So there is exactly one algebra morphism from \(\mathbb N\) to every algebra.

18.7 Link 7: recursion and uniqueness

Recursion is a transpose.

\begin{equation} \mathsf {rec}_{(X,\alpha )}:=\varphi ^{-1}(!_X):\mathbb N\to X, \tag{314}\end{equation}
the transpose of the unique arrow \(0\to X\). Being an algebra morphism means
\begin{equation} \mathsf {rec}(0)=\alpha _0, \qquad \mathsf {rec}(s\,n)=\alpha _s(\mathsf {rec}(n)). \tag{315}\end{equation}

Uniqueness is the bijection. For any algebra morphism \(h\), \(\varphi (h)\) is an arrow \(0\to X\), so \(\varphi (h)=!_X\). Applying \(\varphi ^{-1}\) gives \(h=\varphi ^{-1}(!_X)=\mathsf {rec}\).

18.8 Link 8: Lambek’s lemma

Statement. \([0,s]:\mathbf 1+\mathbb N\to \mathbb N\) is an isomorphism.

Proof. \((\mathbf 1+\mathbb N,\ S[0,s])\) is an algebra. Link 7 gives an algebra morphism \(u:\mathbb N\to \mathbf 1+\mathbb N\). Then \([0,s]\circ u\) is an algebra morphism \(\mathbb N\to \mathbb N\), and so is \(\mathrm {id}\); by uniqueness, \([0,s]\circ u=\mathrm {id}\). Moreover,

\begin{equation} u\circ [0,s]=S[0,s]\circ S(u)=S([0,s]\circ u)=S(\mathrm {id})=\mathrm {id}. \tag{316}\end{equation}
\(\square \)

18.9 Link 9: P3 and P4

\([0,s]\) is a bijection (Link 8). Its domain \(\mathbf 1+\mathbb N\) has disjoint summands and monic injections (Link 3). Therefore:

As statements about the diagonal.

\begin{equation} (0\times s)^{-1}(\Delta )=\varnothing , \qquad (s\times s)^{-1}(\Delta )=\Delta . \tag{317}\end{equation}

18.10 Link 10: P5, induction

Statement. If \(m:P\hookrightarrow \mathbb N\) is a subalgebra, that is \(0\in P\) and \(s(P)\subseteq P\), then \(P=\mathbb N\).

Proof. \(P\) is an algebra and \(m\) an algebra morphism. Link 7 gives \(u:\mathbb N\to P\). Then \(m\circ u:\mathbb N\to \mathbb N\) is an algebra morphism, so \(m\circ u=\mathrm {id}\) by uniqueness. Hence \(m\) is surjective, and being an inclusion, \(P=\mathbb N\). \(\square \)

Dependent form. For a family \(P(n)\) with \(p_0\in P(0)\) and \(p_s(n):P(n)\to P(s\,n)\), the total algebra \(\sum _nP(n)\) receives \(H\) by Link 7. Then \(\mathrm {pr}_1\circ H=\mathrm {id}\) by uniqueness, and \(\mathrm {pr}_2\circ H\) is the induced section.

18.11 Link 11: PA

Addition and multiplication are transposes.

\begin{equation} m+(-):=\mathsf {rec}_{(\mathbb N,\ m,\ s)}, \qquad m\cdot (-):=\mathsf {rec}_{(\mathbb N,\ 0,\ (-)+m)} . \tag{318}\end{equation}
Link 7 gives
\begin{equation} m+0=m, \quad m+s(n)=s(m+n), \qquad m\cdot 0=0, \quad m\cdot s(n)=m\cdot n+m . \tag{319}\end{equation}

The axioms of PA.

Axiom of PA Link
\(s(n)\neq 0\) 9
\(s(m)=s(n)\to m=n\) 9
defining equations of \(+\) and \(\cdot \) 11
induction schema for each formula \(\varphi \) 10, applied to \(\{n:\ \varphi (n)\}\)

All axioms of PA are theorems about \(\mathrm {Free}(0)\). The induction schema is P5 restricted to definable subalgebras.

18.12 The chain

Link PA ZFC Type theory Category theory
1. identity \(x=x\) \(x=x\) \(\mathsf {refl}\) \(\mathrm {id}\)
2. adjunction — Galois connections \(\lambda \), \(\mathrm {ev}\) \(\varphi \), \(\eta \), \(\varepsilon \)
3. \(0,1,+\) constant \(0\) \(\{x:x\neq x\}\), \(\{0\}\), tags \(\mathbf 0,\mathbf 1,+\) adjoints of \(!\) and \(\Delta \)
4. successor \(s\) \(\mathbf 1+X\) \(X+\mathbf 1\) \(\mathbf 1+X\)
5. \(\mathbb N\) domain from Infinity inductive type \(\mathrm {Free}(0)\)
6. initiality — theorem contractible maps \(F\) preserves \(0\)
7. recursion — theorem \(\mathsf {rec}\) \(\varphi ^{-1}(!)\)
8. Lambek — \(0\) or successor \(\mathbf 1+\mathbb N\simeq \mathbb N\) iso
9. P3, P4 axioms disjoint tags encode–decode disjoint, monic
10. P5 schema subalgebra eliminator subobject
11. \(+\), \(\cdot \) axioms recursion \(\mathsf {rec}\) transposes

Only Link 5 is declared. Every other link is derived from the identity through its involution and its diagonal: a transpose of an identity, which the involution returns, and the uniqueness that forces an endomorphism of a free object to be the identity.

18.13 Separation is splitting an idempotent

Separation needs no principle beyond those already derived. It splits an idempotent on an object that is already given.

The cut. A property \(P\) on an object \(A\) determines a cut \(e_P:A\to A\) with \(e_P^2=e_P\) and \(e_P\le \mathrm {id}_A\). The part \(\{x\in A:\ P(x)\}\) is its splitting:

\begin{equation} e_P=s\circ r, \qquad r\circ s=\mathrm {id}. \tag{320}\end{equation}

In each foundation.

Foundation Splitting of \(e_P\)
ZFC \(\{x\in A:\ P(x)\}\)
category theory equaliser of \(e_P\) and \(\mathrm {id}_A\)
type theory \(\sum _{a:A}P(a)\), for \(P\) a family of propositions

Why it is free. The input is an object \(A\) and an idempotent on it. Splitting adds no new object beyond a retract of \(A\): no existence is asserted that was not already contained in \(A\). Intersections of parts are splittings of products of commuting cuts, so they are free as well.

Why comprehension is not. Unrestricted comprehension would split a cut on the collection of all sets. That would require a universal set, which the fixed-point argument excludes (Section 350): complement has no fixed point on sharp values. Separation is exactly the part of comprehension that stays below an existing object.

Its uses in the chain.

Each splits a cut on an object constructed earlier in the chain.

18.14 Link 12: Foundation

Thesis. Foundation is induction for the free algebra of the power-set functor. For hereditarily finite sets this algebra is built from \(\mathbb N\), so Foundation there follows from Links 5–10 with no new declaration. For the whole universe, Lambek’s lemma and Cantor’s theorem together force the free algebra to be a proper class.

18.14.1 The power-set functor and its algebras

The functor. \(\mathcal P_{\mathrm {fin}}(X)\) is the set of finite subsets of \(X\), and \(\mathcal P_{\mathrm {fin}}(f)\) is direct image. Its subsets are cut out by Separation (Remark 18.13).

Algebras. A \(\mathcal P_{\mathrm {fin}}\)-algebra is \(\alpha :\mathcal P_{\mathrm {fin}}(X)\to X\), a rule turning each finite collection of elements into an element.

18.14.2 The free algebra from \(\mathbb N\)

Ackermann coding. On \(\mathbb N\), define

\begin{equation} \alpha (S):=\sum _{k\in S}2^{k} \tag{321}\end{equation}
for finite \(S\subseteq \mathbb N\), with exponentiation defined by recursion (Link 11).

\(\alpha \) is a bijection. Every \(n\) has a unique binary expansion \(n=\sum _{k\in S}2^k\), by strong induction (Link 10). So \(\alpha :\mathcal P_{\mathrm {fin}}(\mathbb N)\to \mathbb N\) is an isomorphism: Lambek’s condition holds.

Membership.

\begin{equation} k\in n\iff k\in \alpha ^{-1}(n)\iff \text {bit }k\text { of }n\text { is }1 . \tag{322}\end{equation}

Initiality. \((\mathbb N,\alpha )\) is the initial \(\mathcal P_{\mathrm {fin}}\)-algebra \(\mathrm {HF}\). For an algebra \((X,\beta )\), define \(h:\mathbb N\to X\) by strong recursion on \(n\):

\begin{equation} h(n)=\beta \bigl (\{h(k):\ k\in \alpha ^{-1}(n)\}\bigr ), \tag{323}\end{equation}
well defined because \(k\in \alpha ^{-1}(n)\) implies \(2^k\le n\), so \(k<n\). Uniqueness follows by strong induction on agreement. No declaration beyond Link 5 is used.
18.14.3 Foundation as induction

\(\in \)-induction. Let \(\Phi \) be a property such that, for every \(x\),

\begin{equation} \bigl (\forall y\in x\ \ \Phi (y)\bigr )\ \Rightarrow \ \Phi (x). \tag{324}\end{equation}
Then \(\{x:\ \Phi (x)\}\) is a subalgebra: whenever a finite collection lies inside it, so does the element \(\alpha \) assigns to that collection. By the argument of Link 10 applied to \(\mathcal P_{\mathrm {fin}}\), it is everything:
\begin{equation} \forall x\ \ \Phi (x). \tag{325}\end{equation}

No set is a member of itself. Take \(\Phi (x)=(x\notin x)\). If every \(y\in x\) satisfies \(y\notin y\), and \(x\in x\), then \(x\) is one of these \(y\), so \(x\notin x\), a contradiction. Hence \(x\notin x\) for all \(x\).

No descending chains. Take \(\Phi (x)\) to be: no sequence \(x=x_0\ni x_1\ni x_2\ni \cdots \) exists. If \(x_0\ni x_1\ni \cdots \), then \(x_1\in x_0\) starts such a sequence, against the hypothesis on members.

Rank. \((\mathbb N,\ S\mapsto \max \{k+1:\ k\in S\})\), with \(\max \varnothing =0\), is a \(\mathcal P_{\mathrm {fin}}\)-algebra. Initiality gives the rank

\begin{equation} \mathrm {rk}(x)=\max \{\mathrm {rk}(y)+1:\ y\in x\}, \qquad y\in x\Rightarrow \mathrm {rk}(y)<\mathrm {rk}(x). \tag{326}\end{equation}

The axiom of Foundation. Every nonempty \(x\) has an element \(y\) with \(y\cap x=\varnothing \). Take \(y\in x\) of least rank, which exists by the least-number principle (strong induction, Link 10). If \(z\in y\cap x\), then \(\mathrm {rk}(z)<\mathrm {rk}(y)\) with \(z\in x\), against minimality.

Von Neumann numerals inside. The algebra map \(v:\mathbb N\to \mathrm {HF}\) of Link 11 has \(\mathrm {rk}(v(n))=n\), and \(v(n)\in v(n)\) is excluded by the preceding argument. The irreflexivity of Remark 8.1 is this case of Foundation.

18.14.4 The whole universe: Lambek meets Cantor

No set-sized free algebra for the full power set. For the full power-set functor \(\mathcal P\), an initial algebra \(V\) would satisfy Lambek’s lemma (Link 8):

\begin{equation} \mathcal P(V)\cong V . \tag{327}\end{equation}
For a set \(V\) this contradicts Cantor’s theorem, since there is no surjection \(V\to \mathcal P(V)\). So the initial \(\mathcal P\)-algebra is not a set.

The universe as a class. In ZFC the cumulative hierarchy \(V=\bigcup _\alpha V_\alpha \), with \(V_{\alpha +1}=\mathcal P(V_\alpha )\), is that initial algebra taken as a proper class. Its existence uses Power Set and Replacement, beyond the declaration of Link 5. Foundation for \(V\) is again its \(\in \)-induction, and the rank takes ordinal values.

Three statements, one obstruction. Russell’s paradox, Cantor’s theorem and the impossibility of a set-sized \(\mathcal P\)-algebra satisfying Lambek are the same fact: the missing fixed point of Section 350.

18.14.5 Anti-foundation

The dual. Dually, a final \(\mathcal P\)-coalgebra \(\gamma :V'\to \mathcal P(V')\) admits corecursive definitions. The one-point coalgebra \(\ast \mapsto \{\ast \}\) maps uniquely to some \(\Omega \) with \(\Omega =\{\Omega \}\).

Foundation Anti-foundation
universal property initial algebra final coalgebra
principle \(\in \)-induction, recursion coinduction, corecursion
\(x\in x\) excluded \(\Omega =\{\Omega \}\)
finite case \(\mathrm {HF}\) from \(\mathbb N\) —
18.14.6 Summary

Statement Derived from
\(\mathrm {HF}\cong (\mathbb N,\ S\mapsto \sum _{k\in S}2^k)\) Links 5–11, binary expansion
initiality of \(\mathrm {HF}\) strong recursion on \(\mathbb N\)
\(\in \)-induction subalgebra argument, Link 10
\(x\notin x\), no descending chains \(\in \)-induction
rank recursion into \((\mathbb N,\max +1)\)
Foundation axiom least rank, least-number principle
\(V\) is a proper class Lambek and Cantor
anti-foundation final coalgebra

18.15 Ordinals Derived from the Chain

Thesis. Ordinals are not introduced by a definition. They are obtained in the chain as the values of collapse maps, one for each well-ordered set.

An ordinal is a value of a collapse. The usual characterisation, transitive and well-ordered by \(\in \), is then a theorem. Zero, successor and suprema are collapses of the empty order, of \(W+\mathbf 1\) (the successor functor of Link 4 placed on top) and of unions of chains. \(\omega \) is the collapse of the order on \(\mathrm {Free}(0)\). Trichotomy, transfinite induction and recursion, arithmetic and Burali-Forti follow.

18.15.1 O1: order

Source. A strict order \(<\) on a set \(W\) is the strict part of the cut order (Section 8, Remark 8.1): irreflexive and transitive. Write

\begin{equation} {\downarrow }w=\{u\in W:\ u<w\}, \tag{328}\end{equation}
cut out of \(W\) by Separation (Remark 18.13).
18.15.2 O2: accessibility and well-founded induction

The operator. On subsets of \(W\), define

\begin{equation} \Box S:=\{w\in W:\ {\downarrow }w\subseteq S\}, \tag{329}\end{equation}
"every predecessor lies in \(S\)". It is monotone.

Accessibility. A subset \(S\) is progressive if \(\Box S\subseteq S\). Let

\begin{equation} \mathrm {Acc}:=\bigcap \{S\subseteq W:\ \Box S\subseteq S\}, \tag{330}\end{equation}
the least progressive subset, formed by Separation. Since \(\Box \) is monotone, \(\mathrm {Acc}\) is itself progressive. This is the construction of \(\mathbb N\) in Link 10, with \(\Box \) in place of \(0\) and \(s\).

Well-foundedness. \((W,<)\) is well-founded if \(\mathrm {Acc}=W\).

Well-founded induction. If \((W,<)\) is well-founded and \(S\) is progressive, then \(W=\mathrm {Acc}\subseteq S\). In words: if \(\Phi (w)\) follows from \(\Phi \) on \({\downarrow }w\), then \(\Phi \) holds everywhere.

Least elements. In a well-founded order, every nonempty \(S\subseteq W\) has a minimal element. Otherwise \(W\setminus S\) is progressive, hence all of \(W\), so \(S=\varnothing \).

18.15.3 O3: well-orders

Definition. A well-order is a well-founded strict order that is total. In a total order the minimal element of O2 is least.

Examples.

18.15.4 O4: well-founded recursion

Statement. For a well-founded \((W,<)\) and a rule \(G\) assigning to each \(w\) and each function \(f\) on \({\downarrow }w\) a value \(G(w,f)\), there is exactly one function \(F\) on \(W\) with

\begin{equation} F(w)=G\bigl (w,\ F{\restriction }{\downarrow }w\bigr ). \tag{331}\end{equation}

Proof by the least relation. Let \(R\) be the least relation on \(W\times V\) closed under the rule: if \(f\) is a function on \({\downarrow }w\) with \((u,f(u))\in R\) for all \(u<w\), then \((w,G(w,f))\in R\). Let \(D\) be the set of \(w\) at which \(R\) has exactly one value.

For \(\mathbb N\) this is the argument of Link 7. In ZFC the values form a set by Replacement, the statement that images of sets are sets; in category and type theory a function already has its image as an object.

18.15.5 O5: the collapse

Definition by O4. For a well-founded \((W,<)\), let

\begin{equation} c(w):=\{c(u):\ u<w\}, \qquad c(W):=\{c(w):\ w\in W\}. \tag{332}\end{equation}
This is recursion into the initial \(\mathcal P\)-algebra \(V\): each element is sent to the set formed from the images of its predecessors.

Properties.

Property Proof
\(c(W)\) is transitive an element of \(c(w)\) is some \(c(u)\in c(W)\)
\(u<w\Rightarrow c(u)\in c(w)\) definition
\(c(u)\in c(w)\Rightarrow u<w\), for total \(<\) O4 induction, trichotomy of \(<\), and \(x\notin x\)
\(c\) injective, for total \(<\) \(c(u)=c(w)\) with \(u<w\) gives \(c(u)\in c(u)\)

For a well-order, \(c:(W,<)\to (c(W),\in )\) is an isomorphism onto a transitive set.

18.15.6 O6: ordinals

Definition. An ordinal is a set of the form \(c(W)\) for a well-ordered set \((W,<)\).

Characterisation (theorem). A set \(\alpha \) is an ordinal if and only if it is transitive and well-ordered by \(\in \).

Invariance. Isomorphic well-orders have equal collapses: if \(\phi :W\cong W'\), then \(c'(\phi (w))=c(w)\) by O2 induction. An ordinal is therefore an invariant of the isomorphism class of a well-order, and the collapse is the canonical representative.

18.15.7 O7: comparison and trichotomy

Comparison. For well-orders \(W,W'\), match least with least, recursively (O4). The matching stops when one side is used up, so one is isomorphic to an initial segment of the other.

Initial segments. The collapse of \({\downarrow }w\) is \(c(w)\in c(W)\). Proper initial segments collapse to elements.

Trichotomy. For ordinals \(\alpha ,\beta \), exactly one of \(\alpha \in \beta \), \(\alpha =\beta \), \(\beta \in \alpha \) holds. Existence is comparison; exclusivity is \(x\notin x\).

Order three ways.

\begin{equation} \alpha <\beta \iff \alpha \in \beta \iff \alpha \subsetneq \beta . \tag{333}\end{equation}
18.15.8 O8: zero, successor, supremum as collapses

Zero. \(c(\varnothing )=\varnothing =0\).

Successor. For \(W\) with collapse \(\alpha \), form \(W+\mathbf 1\): the successor functor \(S(X)=X+\mathbf 1\) of Link 4, ordered with the new point on top. The new point \(\top \) has \({\downarrow }\top =W\), so

\begin{equation} c(\top )=\{c(w):\ w\in W\}=\alpha , \qquad c(W+\mathbf 1)=\alpha \cup \{\alpha \}=\alpha +1 . \tag{334}\end{equation}
The von Neumann successor is derived, as in Subsection 8.12.

Supremum. For a set of ordinals \(S\), the union \(\bigcup S\) is the collapse of the union of the corresponding chain of initial segments. It is transitive and well-ordered by \(\in \) by O7, hence an ordinal by O6, and it is the least upper bound of \(S\).

Kinds. Every ordinal is \(0\), a successor \(\beta +1\), or a limit \(\lambda =\bigcup \lambda \), according as \(W\) is empty, has a greatest element, or neither.

18.15.9 O9: \(\omega \) from \(\mathrm {Free}(0)\)

Finite ordinals. The finite well-orders are \(S^n(0)=\mathbf 1+\cdots +\mathbf 1\), the rows of Link 4. By O8, their collapses are

\begin{equation} c(S^n(0))=v(n), \tag{335}\end{equation}
the von Neumann numerals of Link 11.

\(\omega \). The order on \(\mathbb N=\mathrm {Free}(0)\) is a well-order (O3), and

\begin{equation} \omega :=c(\mathbb N,<)=\{v(0),v(1),v(2),\ldots \}. \tag{336}\end{equation}
It has no greatest element, so it is a limit (O8). Its elements are the finite ordinals, so it is the least limit ordinal.
18.15.10 O10: transfinite induction and recursion

Induction. For each ordinal \(\alpha \), \((\alpha ,\in )\) is a well-order, so O2 applies below every ordinal. Since every ordinal lies below some ordinal, this gives induction over the whole class: if \(\Phi (\alpha )\) follows from \(\Phi \) below \(\alpha \), then \(\Phi \) holds for every ordinal.

Recursion. O4, applied below each \(\alpha \) and glued by uniqueness, gives a unique \(F\) with \(F(\alpha )=G(F{\restriction }\alpha )\) on all ordinals.

Three-case form. Given \(a\), \(g\) and \(h\), there is a unique \(F\) with

\begin{equation} F(0)=a, \qquad F(\alpha +1)=g(F(\alpha )), \qquad F(\lambda )=h\bigl (\{F(\beta ):\ \beta <\lambda \}\bigr ). \tag{337}\end{equation}

Universal property. The ordinals, with zero, successor and suprema, admit exactly one map to any structure with a point, a successor rule and a limit rule that respects these. This extends the initiality of \(\mathbb N\) (Link 6) by one clause, for limits.

18.15.11 O11: arithmetic as collapses

Order operations.

\begin{equation} \alpha +\beta :=c(W\oplus W'), \qquad \alpha \cdot \beta :=c(W\otimes W'), \tag{338}\end{equation}
where \(W\oplus W'\) places \(W'\) after \(W\) (the coproduct of Link 3, ordered) and \(W\otimes W'\) replaces each point of \(W'\) by a copy of \(W\) (the product, ordered lexicographically).

Recursion equations (theorems).

\begin{equation} \alpha +(\beta +1)=(\alpha +\beta )+1, \qquad \alpha +\lambda =\sup _{\beta <\lambda }(\alpha +\beta ), \qquad \alpha \cdot (\beta +1)=\alpha \cdot \beta +\alpha . \tag{339}\end{equation}
These hold because \(W\oplus (W'+\mathbf 1)=(W\oplus W')+\mathbf 1\) and because collapses commute with unions of chains (O8).

Non-commutativity.

\begin{equation} 1+\omega =\omega <\omega +1, \qquad 2\cdot \omega =\omega <\omega \cdot 2 . \tag{340}\end{equation}
One point placed before \(\mathbb N\) is absorbed; placed after, it is a new greatest element.
18.15.12 O12: Burali-Forti

Statement. The ordinals do not form a set.

Proof. If they did, \((\mathrm {On},\in )\) would be a well-order (O7, O10) whose collapse is itself (O6), so \(\mathrm {On}\) would be an ordinal, and \(\mathrm {On}\in \mathrm {On}\), against \(x\notin x\) (Link 12). \(\square \)

This is the same obstruction as Russell’s paradox, Cantor’s theorem and the absence of a set-sized initial \(\mathcal P\)-algebra.

18.15.13 The ordinal chain

Step Derived object From Principle used
O1 strict order, \({\downarrow }w\) cuts Separation
O2 \(\mathrm {Acc}\), induction, least elements least progressive set \(\Box \) monotone
O3 well-orders O1, O2 totality
O4 well-founded recursion least relation O2
O5 collapse \(c\) O4 into \(V\) initial \(\mathcal P\)-algebra
O6 ordinals, characterisation values of \(c\) O2
O7 comparison, trichotomy matching least with least O4, \(x\notin x\)
O8 \(0\), \(\alpha +1\), \(\sup \) \(c(\varnothing )\), \(c(W+\mathbf 1)\), unions successor functor
O9 \(v(n)\), \(\omega \) \(c(S^n0)\), \(c(\mathbb N)\) \(\mathrm {Free}(0)\)
O10 transfinite induction, recursion O2, O4 on each \(\alpha \) gluing
O11 \(+\), \(\cdot \), non-commutativity \(c(W\oplus W')\), \(c(W\otimes W')\) coproduct, product
O12 Burali-Forti \(\mathrm {On}\in \mathrm {On}\) \(x\notin x\)

Step ZFC Category theory Type theory
O2 least progressive subset initial algebra of \(\Box \) inductive \(\mathsf {Acc}\)
O4 least relation, Replacement recursion on initial algebras eliminator of \(\mathsf {Acc}\)
O5 Mostowski collapse unique map into \(V\) map into the HIT \(V\)
O6 transitive, \(\in \)-well-ordered initial segments extensional, transitive, accessible
O9 \(\omega \) NNO \(\mathbb N\)
O12 \(\mathrm {On}\) a proper class — ordinals of \(\mathcal U_i\) in \(\mathcal U_{i+1}\)