25 Levels, Membership and Stratification from the Identity

The levels of set-theoretic hierarchies are derived, not assumed.

Between consecutive levels there are exactly two canonical maps:

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.

25.0.1 L0: the floor

Primitives. Identity arrows, with objects as identities; composition; the idempotent law \(e\circ e=e\); the involution of transposition. Nothing else is assumed.

25.0.2 L1: zero

Definition.

\begin{equation} 0:=\{x:\ x\neq x\}=\varnothing . \tag{460}\end{equation}

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\).

25.0.3 L2: the power set from idempotence

Semilattices. A semilattice is an associative, commutative operation \(\vee \) with unit \(\bot \) and the idempotent law

\begin{equation} x\vee x=x , \tag{461}\end{equation}
ordered by \(a\le b\iff a\vee b=b\).

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

\begin{equation} L\dashv U: \qquad \mathbf {SLat}(LX,M)\cong \mathbf {Set}(X,UM). \tag{462}\end{equation}

Unit and counit.

\begin{equation} \eta _X=\varphi (\mathrm {id}):x\mapsto \{x\}, \qquad \varepsilon _M=\psi (\mathrm {id}):\{m_1,\ldots ,m_k\}\mapsto m_1\vee \cdots \vee m_k . \tag{463}\end{equation}

The power-set monad.

\begin{equation} \mathcal P:=U\circ L, \qquad \eta :\mathrm {Id}\Rightarrow \mathcal P, \qquad \mu =U\varepsilon L:\mathcal P\mathcal P\Rightarrow \mathcal P\ \ (\text {union}). \tag{464}\end{equation}
25.0.4 L3: levels are composites of one functor

Composites.

\begin{equation} \mathcal P^0:=\mathrm {Id}, \qquad \mathcal P^{n+1}:=\mathcal P\circ \mathcal P^n . \tag{465}\end{equation}
The composites of \(\mathcal P\) with itself form a monoid under composition, with unit the identity functor and one generator \(\mathcal P\).

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.

\begin{equation} T_n:=\mathcal P^n(0). \tag{466}\end{equation}

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.

25.0.5 L4: two canonical maps between levels

Cumulative inclusion, from initiality.

\begin{equation} i_0:=!_{T_1}:0\to T_1, \qquad i_{n+1}:=\mathcal P(i_n):T_{n+1}\to T_{n+2}. \tag{467}\end{equation}
Each \(i_n\) is injective and regards a set of level \(n\) as a set of level \(n+1\), with the same members. This is the Adámek chain, now derived from \(0\) and \(\mathcal P\).

Raising, from the unit.

\begin{equation} \eta _{T_n}:T_n\to T_{n+1}, \qquad x\mapsto \{x\}. \tag{468}\end{equation}
This regards \(x\) as a single member of a set one level higher.

They differ.

\begin{equation} i_n(x)=x\ \text {(same members)}, \qquad \eta (x)=\{x\}\ \text {(one member, namely }x\text {)}. \tag{469}\end{equation}
25.0.6 L5: membership and equality

Membership. For \(y\in T_n\) and \(x\in T_{n+1}\),

\begin{equation} y\in x\quad :\iff \quad \eta (y)\le x\quad \iff \quad \eta (y)\vee x=x \tag{470}\end{equation}
in the semilattice \(T_{n+1}\). Membership is the unit followed by the idempotent order. It relates level \(n\) to level \(n+1\), and to no other pair.

Equality.

\begin{equation} x=y\iff (x,y)\in \Delta _{T_n}, \tag{471}\end{equation}
the diagonal at one level.
25.0.7 L6: two notions of level

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\).

25.0.8 L7: Foundation is the equaliser of the two maps

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.

25.0.9 L8: stratification

The weighted graph of a formula. Each atomic subformula gives a weighted edge:

\begin{equation} y\in x:\ \ y\xrightarrow {+1}x\quad \text {(one application of }\eta \text {)}, \qquad x=y:\ \ x\xrightarrow {\ 0\ }y\quad \text {(the diagonal)}. \tag{472}\end{equation}

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
25.0.10 L9: three readings of one tower

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.

25.0.11 Summary

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