195 The Diagonal Theorems

Cantor’s theorem, its intuitionistic form, and the results of Gödel, Tarski and Turing are one argument applied to different data. The argument needs only the diagonal \(\Delta \), which \(A=A\) supplies, and a self-map without fixed points. Negation is not required, which is why the theorem survives in intuitionistic type theory; and the absence of a fixed point for the successor is a consequence of the order axioms derived earlier, requiring neither subtraction nor the universe of small types.

The diagonal argument

Let \(\phi :A\to B^{A}\) be given and let \(f:B\to B\). Form

\begin{equation} d:=f\circ \mathrm {ev}\circ (\phi \times \mathrm {id})\circ \Delta \ :\ A\longrightarrow B, \qquad d(x)=f\bigl (\phi (x)(x)\bigr ), \tag{10954}\end{equation}
using only the diagonal \(\Delta (x)=(x,x)\), the evaluation map, and composition — each of which was obtained from the identity in Subsection 585. If \(\phi \) is surjective there is \(a\in A\) with \(\phi (a)=d\), and evaluating at \(a\),
\begin{equation} d(a)=\phi (a)(a)=f\bigl (\phi (a)(a)\bigr )=f\bigl (d(a)\bigr ), \tag{10955}\end{equation}
so \(d(a)\) is a fixed point of \(f\). Contrapositively:
\begin{equation} \bigl (\exists f:B\to B\bigr )\bigl (\forall b\bigr )\ \neg \bigl (f(b)=b\bigr ) \quad \Longrightarrow \quad \text {no surjection }A\to B^{A} . \tag{10956}\end{equation}
This is Lawvere’s fixed-point theorem, and no negation enters the construction of \(d\); negation appears only in the hypothesis on \(f\).
The successor has no fixed point

The published proof reaches the contradiction through truncated subtraction. Solving the recursions

\begin{equation} n+0=n,\quad n+s(x)=s(n+x), \qquad p(0)=0,\quad p(s(x))=x, \qquad n\dot -0=n,\quad n\dot -s(x)=p(n\dot -x), \tag{10957}\end{equation}
one proves by induction that \((n+x)\dot -x=n\), and at \(n=0\), using \(0+x=x\),
\begin{equation} x\dot -x=0\qquad \text {for every }x . \tag{10958}\end{equation}
A second induction gives \(\omega \dot -x=\omega \) for the putative fixed point \(\omega =s(\omega )\), since \(\omega \dot -s(x)=p(\omega \dot -x)=p(\omega )=p(s(\omega ))=\omega \). Setting \(x=\omega \) in each yields
\begin{equation} \omega \dot -\omega =0 \qquad \text {and}\qquad \omega \dot -\omega =\omega , \tag{10959}\end{equation}
hence \(0=\omega =s(\omega )\), and a third argument in the universe \(U_0\) derives \(\bot \) from \(0=s(x)\) by forming \(\operatorname {Rec}(y,\bot ,(u,v)\top )\).
What the subtraction was computing

Truncated subtraction is not a group operation — \(\mathbb {N}\) has no inverses — but an order comparison in disguise:

\begin{equation} a\dot -b=\max (a-b,0), \qquad \text {so}\qquad a\dot -b=0\iff a\le b . \tag{10960}\end{equation}
Reading the two lemmas this way:




Lemma Statement Order content



\(x\dot -x=0\) every \(x\) reflexivity, \(x\le x\)
\(\omega \dot -x=\omega \) every \(x\) \(\omega \) behaves as a maximum



The first says \(\omega \le \omega \); the second says \(\omega \not \le x\) for every \(x\), including \(x=\omega \). The contradiction is therefore that \(\omega \) is simultaneously maximal and reflexive — an order statement, obtained by computing with a subtraction that encodes the order.

The order argument directly

Stated in the order established earlier, the same contradiction takes two lines. The rank function \(\operatorname {rk}:\mathbb {N}\to \mathrm {Ord}\) is strictly monotone, so

\begin{equation} \operatorname {rk}\bigl (s(n)\bigr )=\operatorname {rk}(n)+1 >\operatorname {rk}(n), \qquad \text {hence}\qquad \alpha <\alpha +1\ \ \text {for every }\alpha . \tag{10961}\end{equation}
A fixed point \(\omega =s(\omega )\) would give \(\operatorname {rk}(\omega )=\operatorname {rk}(\omega )+1\) and therefore \(\alpha <\alpha \), contradicting irreflexivity of the strict order, which is the cone condition \(P\cap (-P)=\{0\}\) in relational form.



Route Ingredients


via subtraction two inductions, the recursions for \(+,p,\dot -\), and \(U_0\)
via order \(\alpha <\alpha +1\) and \(\neg (\alpha <\alpha )\)


Both conclude

\begin{equation} (\forall x\in \mathbb {N})\ \neg \bigl (x=s(x)\bigr ), \tag{10962}\end{equation}
and with \(A=B=\mathbb {N}\), \(f=s\), the diagonal argument gives
\begin{equation} \neg \bigl (\exists \phi \in \mathbb {N}\to (\mathbb {N}\to \mathbb {N})\bigr ) \bigl (\forall y\in \mathbb {N}\to \mathbb {N}\bigr ) \bigl (\exists x\in \mathbb {N}\bigr )\ \phi (x)=y . \tag{10963}\end{equation}
Note that in \(\mathbb {Z}\), where inverses exist, \(x-x=0\) is the inverse axiom outright — \([(a,b)]+[(b,a)]=[(a+b,a+b)]\sim (0,0)\) — so the first lemma is free there and only the order content of the second remains.
The general form

For arbitrary \(A\) the same construction gives the explicit witness

\begin{equation} g:=\lambda k.\lambda y.\,f\bigl (k(y)(y)\bigr ) \ \in \ \bigl (A\to (A\to A)\bigr )\to (A\to A), \tag{10964}\end{equation}
that is \(g=\Lambda \bigl (f\circ \mathrm {ev}\circ \Delta \bigr )\), and
\begin{equation} \bigl (\exists f\in A\to A\bigr )\bigl (\forall x\in A\bigr )\neg \bigl (f(x)=x\bigr ) \ \longrightarrow \ \bigl (\forall h\in A\to (A\to A)\bigr )\bigl (\forall x\in A\bigr ) \neg \bigl (g(h)=h(x)\bigr ), \tag{10965}\end{equation}
since \(g(h)=h(x)\) would give \(h(x)(x)=g(h)(x)=f\bigl (h(x)(x)\bigr )\).
One argument, five theorems





Theorem \(A\) \(B\) \(f\) without fixed point




Cantor \(X\) \(\{0,1\}\) \(\neg \)
Gödel sentences \(\{T,F\}\) \(\neg \)
Tarski sentences truth values \(\neg \)
Turing programs \(\{\text {halt},\text {loop}\}\) swap
Maguolo–Valentini \(\mathbb {N}\) \(\mathbb {N}\) \(s\)




In the first four the self-map is the involution \(\vartheta \) met throughout, with \(\vartheta ^{2}=\operatorname {id}\) and no fixed point because \(p=\neg p\) is excluded; in the last it is the successor, whose lack of a fixed point comes from the order. In projector language, writing \(\Pi _{\mathrm {Fix}}\) for the projector onto \(\mathrm {Fix}(f)\),

\begin{equation} \Pi _{\mathrm {Fix}}=0 \quad \Longrightarrow \quad \text {no surjection }A\to B^{A}, \tag{10966}\end{equation}
so the five theorems are the single statement that a vanishing fixed-point projector obstructs surjectivity.
Why the intuitionistic version holds

Classically \(\neg \neg A\equiv A\), so \(\neg \) is an involution; intuitionistically only \(A\Rightarrow \neg \neg A\) is available, as discussed in Subsection 272.3. The diagonal argument above is insensitive to this: \(d\) is built from \(\Delta \), \(\mathrm {ev}\) and \(\circ \), all of which exist in any cartesian closed category and in particular in intuitionistic type theory. Negation occurs only inside the hypothesis \(\neg (f(b)=b)\) and inside the conclusion, never in the construction. This is what the intuitionistic proof establishes, and in the present framework it is the statement that the diagonal — hence \(A=A\) — is all the argument consumes.

Remark 195.1 (Monus is not group subtraction). The subtraction used in the intuitionistic proof of Subsection 195 is truncated subtraction on \(\mathbb {N}\),

\begin{equation} a\dotminus b=\max (a-b,0)\qquad (a,b\in \mathbb {N}), \tag{10967}\end{equation}
defined by recursion through the predecessor:
\begin{equation} a\dotminus 0=a, \qquad a\dotminus S(b)=P(a\dotminus b), \qquad P(0)=0,\quad P(S(n))=n . \tag{10968}\end{equation}

It encodes the order. The defining property is

\begin{equation} a\dotminus b=0 \iff a\le b \iff \exists c\in \mathbb {N}:\ a+c=b , \tag{10969}\end{equation}
so the vanishing of a monus is a statement about the cone \(\mathbb {N}\subset \mathbb {Z}\), not about inverses. In particular
\begin{equation} \forall x\in \mathbb {N},\quad x\dotminus x=0, \tag{10970}\end{equation}
which is reflexivity \(x\le x\), with \(0\dotminus 0=0\) as the base case.

Its algebra. Monus satisfies

\begin{equation} (a+b)\dotminus b=a, \qquad (a\dotminus b)\dotminus c=a\dotminus (b+c), \tag{10971}\end{equation}
but not commutativity, since in general \(a\dotminus b\neq b\dotminus a\). The structure carried is \((\mathbb {N},\le ,0,S,\dotminus )\), an ordered monoid with residuation, and the residuation law
\begin{equation} a\dotminus b\le c \iff a\le c+b \tag{10972}\end{equation}
exhibits \((-)\dotminus b\) as left adjoint to \((-)+b\) for the order — the same adjoint pattern as \(F\dashv U\) and \(\Sigma \dashv f^{*}\).

Three subtractions. The identity \(0-0=0\) holds in every setting, but the reason differs:




Setting Operation Why \(x\) minus \(x\) is \(0\)



\(\mathbb {N}\) \(a\dotminus b\) reflexivity, \(x\le x\)
\(\mathbb {Z}\) \(a+(-b)\) inverse axiom, \([(a,b)]+[(b,a)]\sim (0,0)\)
\(\mathbb {F}_2\) \(a+b\) \(A+A=0\), every element self-inverse



In \(\mathbb {N}\) the vanishing is an order fact, in \(\mathbb {Z}\) a group fact, and in \(\mathbb {F}_2\) subtraction and addition coincide because \(-A=A\) — the involution \(\vartheta \) acting trivially on the two-element structure. The chain \(\mathbb {N}\to \mathbb {Z}\to \mathbb {F}_2\) thus passes from subtraction as comparison, through subtraction as inversion, to subtraction as addition, and the intuitionistic proof works in the first of these, which is why its two lemmas are order statements in disguise.