The levels of set-theoretic hierarchies are derived, not assumed.
Zero is where identity fails.
The power-set functor is the monad of the free semilattice, whose law \(x\vee x=x\) is idempotence.
Levels are the composites \(\mathcal P^n\) of one endofunctor with itself, starting from the identity functor, so the level index is the free monoid on one generator.
Between consecutive levels there are exactly two canonical maps:
the cumulative inclusion \(i\), from the initial object;
the raising map \(\eta \), the unit of the adjunction.
Membership is defined by the unit and the idempotent order, so it crosses exactly one level. Equality is the diagonal, so it stays within a level. Foundation is the emptiness of the equaliser of \(i\) and \(\eta \). Stratification is exactness of the resulting level cochain, and types, ZF and NF are three readings of the same tower.
Primitives. Identity arrows, with objects as identities; composition; the idempotent law \(e\circ e=e\); the involution of transposition. Nothing else is assumed.
Definition.
Initiality. \(0\) is initial, the left adjoint of \(!:\mathbf C\to \mathbf 1\): there is exactly one arrow \(!_X:0\to X\) for every \(X\).
Semilattices. A semilattice is an associative, commutative operation \(\vee \) with unit \(\bot \) and the idempotent law
The free semilattice. The free semilattice on \(X\) is constructed, not declared: formal finite joins of elements of \(X\), modulo the semilattice laws. Its elements are the finite subsets of \(X\). This gives an adjunction
Unit and counit.
The power-set monad.
Composites.
The index is \(\mathbb N\). This monoid is free on its generator: \(\mathcal P^m\neq \mathcal P^n\) for \(m\neq n\), by the sizes computed below. So the level index is the free monoid on one generator, which is \(\mathbb N\) (Subsection 21). The assignment \(n\mapsto \mathcal P^n\) is \(\mathsf {fold}\) into the monoid of endofunctors, with point \(\mathrm {Id}\) and step \(\mathcal P\circ (-)\).
The levels.
Sizes. \(\mathcal P\) sends a finite set of size \(k\) to one of size \(2^k\):
| \(n\) | \(T_n\) | \(|T_n|\) | Recognised as |
| \(0\) | \(\varnothing \) | \(0\) | zero |
| \(1\) | \(\{\bot \}\) | \(1\) | terminal object \(1\) |
| \(2\) | \(\{\bot ,\{\bot \}\}\) | \(2\) | \(1+1=\Omega \), truth values |
| \(3\) | \(4\) | ||
| \(4\) | \(16\) | ||
| \(5\) | \(65536\) | ||
The sizes form a tower of twos, strictly increasing because \(2^k>k\) (Cantor, finite case). Truth values appear at level \(2\) as two applications of \(\mathcal P\) to nothing.
Cumulative inclusion, from initiality.
Raising, from the unit.
They differ.
Membership. For \(y\in T_n\) and \(x\in T_{n+1}\),
Equality.
| Notion | Definition | Behaviour of \(\in \) |
| exact level | the \(n\) with \(x\in T_n\), along \(\eta \) only | \(y\in x\Rightarrow \mathrm {lev}(x)=\mathrm {lev}(y)+1\) |
| cumulative rank | least \(n\) with \(x\in i(T_n)\) | \(y\in x\Rightarrow \mathrm {rk}(y)<\mathrm {rk}(x)\) |
The exact level is the type of a set; the cumulative rank is its rank in the union \(\mathrm {HF}=\mathrm {colim}_nT_n\) along \(i\).
Statement. No set satisfies \(x=\{x\}\). Equivalently, in the cumulative union, the equaliser of \(i\) and \(\eta \) is empty.
Proof. If \(x=\{x\}\), then \(x\in x\). By L6, \(\mathrm {rk}(x)<\mathrm {rk}(x)\), which is impossible. \(\square \)
More generally. \(\mathrm {rk}\) strictly decreases along \(\in \), so there are no membership cycles and no infinite descending chains. This is Foundation (Subsection 23), now as a statement about the two canonical maps between levels.
The dual. Anti-foundation is the case where the equaliser is nonempty: \(\Omega =\{\Omega \}\) is a point at which inclusion and raising agree.
The weighted graph of a formula. Each atomic subformula gives a weighted edge:
Stratification. An assignment \(\ell \) of exact levels with \(d\ell =w\) on every edge.
Criterion. \(\varphi \) is stratified if and only if every cycle of its graph has signed weight \(0\). If \(d\ell =w\), the sum around a cycle telescopes to \(0\). Conversely, define \(\ell \) by summing weights along paths from a base vertex. The obstruction is the class of \(w\) in the first cohomology of the graph.
| Formula | Cycle weight | Stratified |
| \(x=x\) | \(0\) | yes |
| \(x\in x\) | \(1\) | no |
| \(x\in y\wedge y\in x\) | \(2\) | no |
| \(x\notin f(x)\) | \(1\) | no |
| \(x\in y\wedge y\in z\) | no cycle | yes |
The shift. \(\sigma \) applies \(\mathcal P\) once more everywhere, raising every level by one. Stratified formulas are invariant under it, since \(d(\ell +1)=d\ell \).
| Reading | Maps used | Treatment of \(\sigma \) | Diagonal formula |
| simple type theory | \(\eta \) only, exact levels | levels kept apart | ill-typed |
| ZF | \(i\), cumulative colimit | levels ordered by rank | excluded by L7 |
| NF | levels identified | \(\sigma \simeq \mathrm {id}\), so \(\mathcal P(V)=V\) | nonzero weight, not split |
Type theory reads the tower along the unit, ZF along the inclusion, and NF through the quotient by the shift. The quotient admits the Lambek isomorphism \(\mathcal P(V)\cong V\), which Cantor forbids for sets, because the only diagonals that could contradict it have nonzero weight and are never formed.
| Item | Derived as | From |
| \(0\) | \(\{x:\ x\neq x\}\), initial | identity |
| \(\mathcal P\) | monad \(UL\) of the free semilattice | idempotence \(x\vee x=x\) |
| \(\{x\}\), \(\bigcup \) | unit and multiplication | transposes of \(\mathrm {id}\) |
| levels | \(\mathcal P^n\), free monoid on \(\mathcal P\) | composition |
| \(T_1\cong 1\), \(T_2\cong \Omega \) | \(\mathcal P(0)\), \(\mathcal P^2(0)\) | — |
| cumulative inclusion \(i\) | \(\mathcal P^n(!)\) | initiality |
| raising \(\eta \) | unit | adjunction |
| \(\in \) | \(\eta (y)\le x\) | unit and idempotent order |
| \(=\) | diagonal | identity |
| Foundation | equaliser of \(i\) and \(\eta \) is empty | rank |
| stratification | \(d\ell =w\) exact | cycle weights |
| types, ZF, NF | \(\eta \), \(i\), quotient by \(\sigma \) | one tower |