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,
What is then a theorem.
P1 and P2, the components of the structure map;
initiality, from the adjunction;
recursion, a transpose;
uniqueness, the hom-bijection;
Lambek’s lemma;
P3 and P4, from Lambek and distinct tags;
P5, induction, from initiality;
addition, multiplication and all of PA.
The four foundations read the same chain.
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 \).
Definition. An adjunction \(F\dashv G\) is a natural involution between two hom-sets,
Unit and counit.
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\),
Zero and one. For the functor \(!:\mathcal C\to \mathbf 1\) to the category with one object and one arrow, the identity alone,
Plus.
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 \) |
The functor.
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,
The forgetful functor. \(U:\mathbf {Alg}_S\to \mathcal C\) forgets the structure map.
Declaration. \(U\) has a left adjoint, \(\mathrm {Free}\dashv U\).
Definition.
P1 and P2. These are the two components of the structure map, by Link 4:
| 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 |
By Links 2 and 5, for every algebra \((X,\alpha )\),
Recursion is a transpose.
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}\).
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,
\([0,s]\) is a bijection (Link 8). Its domain \(\mathbf 1+\mathbb N\) has disjoint summands and monic injections (Link 3). Therefore:
\(0\notin s(\mathbb N)\): the images of the two summands are disjoint.
\(s\) is injective: it is a monic injection followed by a bijection.
Every element is \(0\) or a successor: \([0,s]\) is surjective.
As statements about the diagonal.
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.
Addition and multiplication are transposes.
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.
| 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.
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:
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.
zero, \(\{x:\ x\neq x\}\);
singletons, \(\{y:\ y=x\}\);
the diagonal \(\Delta _A\subseteq A\times A\);
subalgebras and equalisers in the proofs of induction and uniqueness;
the agreement set \(\{n:\ h(n)=h'(n)\}\).
Each splits a cut on an object constructed earlier in the chain.
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.
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.
Ackermann coding. On \(\mathbb N\), define
\(\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.
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\):
\(\in \)-induction. Let \(\Phi \) be a property such that, for every \(x\),
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
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.
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):
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.
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\) | — |
| 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 |
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.
The order comes from cuts (Section 8).
Well-foundedness is accessibility, the least predicate closed under "every predecessor is accessible". It yields well-founded induction.
Well-founded recursion is derived by the least-relation argument.
The collapse \(c(w)=\{c(u):\ u<w\}\) is a recursion into the initial \(\mathcal P\)-algebra \(V\) (Subsection 18.14).
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.
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
The operator. On subsets of \(W\), define
Accessibility. A subset \(S\) is progressive if \(\Box S\subseteq S\). Let
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 \).
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.
\((\mathbb N,<)\) with \(\mathbb N=\mathrm {Free}(0)\), where \(m<n\) means \(n=m+k+1\) for some \(k\). Well-foundedness follows from Link 10: the set of \(n\) such that every \(m\le n\) is accessible is closed under \(0\) and \(s\).
The empty order, and any finite total order.
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
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.
\(D\) is progressive. If \({\downarrow }w\subseteq D\), the values on \({\downarrow }w\) form a unique function \(f\), so \((w,G(w,f))\in R\). If \((w,y)\in R\) with \(y\neq G(w,f)\), then removing \((w,y)\) from \(R\) leaves a relation that is still closed: it could only have been added through the unique \(f\). This contradicts minimality.
By O2, \(D=W\), and \(F(w)\) is the unique value.
Uniqueness of \(F\) follows from O2 applied to the agreement set.
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.
Definition by O4. For a well-founded \((W,<)\), let
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.
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 \).
By O5, \(c(W)\) is transitive and \(\in \) on it is the image of the well-order \(<\).
If \(\alpha \) is transitive and well-ordered by \(\in \), collapse \((\alpha ,\in )\). By O2 induction, \(c(\beta )=\{c(\gamma ):\ \gamma \in \beta \}=\{\gamma :\ \gamma \in \beta \}=\beta \), using transitivity for \(\gamma \in \beta \Rightarrow \gamma \in \alpha \). So \(c=\mathrm {id}\) and \(\alpha =c(\alpha )\).
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.
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.
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
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.
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
\(\omega \). The order on \(\mathbb N=\mathrm {Free}(0)\) is a well-order (O3), and
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
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.
Order operations.
Recursion equations (theorems).
Non-commutativity.
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.
| 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}\) |