349 Gödel’s Theorems Rest on Identity

Claim. The proofs of Gödel’s incompleteness theorems use the identity laws

\begin{equation} x=x, \qquad x=y\rightarrow \bigl (\varphi (x)\rightarrow \varphi (y)\bigr ). \tag{21420}\end{equation}
Without them, the coding is not injective and the diagonal argument does not go through.

Proof.

1.
Coding needs unique factorisation. The coding is \(N(\varphi )=\prod _ip_i^{\varphi _i}\). It is injective, \(N(\varphi )=N(\psi )\Rightarrow \varphi =\psi \), by uniqueness of prime factorisation.
2.
Unique factorisation needs identity. Uniqueness follows from Euclid’s lemma by cancelling equal primes from both sides. Cancellation is substitution of equals, \(p_i=q_j\Rightarrow \) the two products agree after removing them, and it terminates at \(1=1\), an instance of reflexivity.
3.
Decoding needs injectivity. Without injectivity, a code does not determine a formula: the relation \(\mathrm {Prf}(m,n)\) ("\(m\) codes a proof of the formula coded by \(n\)") is not well defined.
4.
The diagonal lemma needs both. The fixed point \(\vdash G\leftrightarrow \neg \mathrm {Prov}(\ulcorner G\urcorner )\) requires the code \(\ulcorner G\urcorner \) to name exactly \(G\), which is injectivity (steps 1–2). It also requires substituting that code into \(\neg \mathrm {Prov}(x)\), which is the substitution law of equality.

The diagonal lemma is used in both incompleteness theorems, so each proof depends on the identity laws. \(\square \)

Consequence.

\begin{equation} \text {G\"odel's theorems} \;\Longrightarrow \; \text {diagonal lemma} \;\Longrightarrow \; \text {injective coding and substitution} \;\Longrightarrow \; x=x . \tag{21421}\end{equation}
Incompleteness is a theorem about theories that already contain identity, and its proof stands on that ground.
\begin{equation} \boxed { \parbox {0.9\textwidth }{\centering If $A = A$ fails, Gödel's theorems fail with it: the encoding depends on unique prime factorisation, and that too is an instance of $A = A$. Gödel stands on the same ground --- a ground he would not dare step outside of.} } \tag{21422}\end{equation}

349.1 The Two Fundamental Theorems from the Floor

Thesis. Both fundamental theorems are statements about decomposition, derived from the free monoid \(\mathbb N=\{1\}^{*}\), its order and its group completion \(\mathbb Z\).

Arithmetic. Every \(n\ge 2\) is uniquely a product of primes. Existence comes from well-ordering, uniqueness from Euclid’s lemma, which comes from division with remainder.

Calculus. A sum of differences telescopes, \(\sum _{k<n}\Delta F(k)=F(n)-F(0)\). This is an identity in \(\mathbb Z\) proved by induction from \(a+(-a)=0\), and the calculus of finite differences, including the Leibniz rule, is arithmetic.

The continuous case. The continuous fundamental theorem keeps the telescoping identity exactly and adds one limit, which needs the completeness of \(\mathbb R\) and therefore the declaration of Section 458.

349.1.1 Floor: induction and well-ordering

Induction. \(\mathbb N\) is generated from \(0\) by \(n\mapsto n+1\): it is the least collection containing \(0\) and closed under the generator. Hence any property holding at \(0\) and preserved by \(n\mapsto n+1\) holds at every \(n\):

\begin{equation} P(0)\ \wedge \ \forall n\,\bigl (P(n)\rightarrow P(n+1)\bigr ) \ \Longrightarrow \ \forall n\,P(n). \tag{21423}\end{equation}

Order. The order is \(m\le n\) iff \(n=m+k\) for some \(k\), the cone of the monoid.

Well-ordering. Every nonempty \(A\subseteq \mathbb N\) has a least element. Suppose \(A\) has none, and let \(P(n)\) say that no element of \(A\) is \(\le n\).

By induction \(A=\varnothing \), a contradiction.

Integers. \(\mathbb Z\) is the group completion of \(\mathbb N\), so \(a+(-a)=0\) and cancellation \(a+c=b+c\Rightarrow a=b\) hold.

349.1.2 The fundamental theorem of arithmetic

1. Division with remainder. For \(a\ge 1\) and \(b\ge 0\) there are unique \(q,r\) with

\begin{equation} b=qa+r, \qquad 0\le r<a . \tag{21424}\end{equation}
Existence: \(\{b-qa:\ q\ge 0,\ b-qa\ge 0\}\) contains \(b\), so it has a least element \(r\); if \(r\ge a\), then \(r-a\) would be smaller. Uniqueness: if \(qa+r=q'a+r'\), then \(a\mid r-r'\) with \(|r-r'|<a\), so \(r=r'\), and \(q=q'\) by cancellation.

2. Bézout. For \(a,b\) not both zero, let \(d\) be the least positive element of \(\{xa+yb:\ x,y\in \mathbb Z\}\). Dividing \(a=qd+r\) gives \(r=a-q(xa+yb)\), again of that form, with \(0\le r<d\); so \(r=0\) and \(d\mid a\). Likewise \(d\mid b\). Every common divisor of \(a\) and \(b\) divides \(xa+yb=d\). Hence

\begin{equation} \gcd (a,b)=xa+yb . \tag{21425}\end{equation}

3. Euclid’s lemma. Let \(p\) be prime, \(p\mid ab\) and \(p\nmid a\). Then \(\gcd (p,a)=1\), so \(1=xp+ya\), and

\begin{equation} b=xpb+y(ab) \tag{21426}\end{equation}
is divisible by \(p\). By induction on the number of factors, \(p\mid a_1\cdots a_k\Rightarrow p\mid a_i\) for some \(i\).

4. Existence of factorisation. Suppose some \(n\ge 2\) is not a product of primes, and take the least such \(n\) (well-ordering). It is not prime, so \(n=ab\) with \(1<a,b<n\). Both \(a\) and \(b\) are products of primes by minimality, and so is \(n\), a contradiction.

5. Uniqueness of factorisation. Suppose

\begin{equation} p_1\cdots p_k=q_1\cdots q_l \tag{21427}\end{equation}
with all factors prime, and argue by induction on \(k\). If \(k=0\) the product is \(1\), so \(l=0\). Otherwise \(p_1\) divides the right side, so \(p_1\mid q_j\) for some \(j\) by Euclid’s lemma, and \(p_1=q_j\) since \(q_j\) is prime. Cancelling \(p_1=q_j\) gives a shorter equality, and the induction hypothesis matches the rest up to order.

Conclusion.

\begin{equation} \forall n\ge 2:\qquad n=\prod _ip_i^{\alpha _i}\quad \text {uniquely up to order,} \tag{21428}\end{equation}
so \((\mathbb N_{\ge 1},\cdot )\) is the free commutative monoid on the primes.

What each step used.

Step Uses
induction generation by \(n\mapsto n+1\)
well-ordering induction
division with remainder well-ordering, cancellation
Bézout division, completion \(\mathbb Z\)
Euclid’s lemma Bézout
existence well-ordering
uniqueness Euclid’s lemma, cancellation, induction
349.1.3 The fundamental theorem of calculus as arithmetic

For \(F:\mathbb N\to \mathbb Z\) define the difference and the sum:

\begin{equation} \Delta F(k)=F(k+1)-F(k), \qquad \Bigl (\sum f\Bigr )(n)=\sum _{k=0}^{n-1}f(k). \tag{21429}\end{equation}

First form.

\begin{equation} \sum _{k=0}^{n-1}\Delta F(k)=F(n)-F(0). \tag{21430}\end{equation}
Proof. At \(n=0\) both sides are \(0\), by \(F(0)+(-F(0))=0\). If it holds at \(n\), then
\begin{equation} \sum _{k=0}^{n}\Delta F(k)=F(n)-F(0)+F(n+1)-F(n)=F(n+1)-F(0), \tag{21431}\end{equation}
since \(-F(n)+F(n)=0\). Induction completes the proof. \(\square \)

Second form.

\begin{equation} \Delta \Bigl (\sum f\Bigr )(n)=\sum _{k=0}^{n}f(k)-\sum _{k=0}^{n-1}f(k)=f(n). \tag{21432}\end{equation}
Difference and sum are inverse operations, as subtraction undoes addition.

Leibniz rule and summation by parts.

\begin{equation} \Delta (FG)(k)=\Delta F(k)\,G(k)+F(k+1)\,\Delta G(k), \tag{21433}\end{equation}
by adding and subtracting \(F(k+1)G(k)\). Summing and telescoping,
\begin{equation} \sum _{k=0}^{n-1}F(k+1)\,\Delta G(k)=F(n)G(n)-F(0)G(0)-\sum _{k=0}^{n-1}\Delta F(k)\,G(k). \tag{21434}\end{equation}

Power rule. With falling powers \(k^{\underline m}=k(k-1)\cdots (k-m+1)\),

\begin{equation} \Delta k^{\underline m}=m\,k^{\underline {m-1}}, \qquad \sum _{k=0}^{n-1}k^{\underline {m}}=\frac {n^{\underline {m+1}}}{m+1}. \tag{21435}\end{equation}
For example, \(\sum _{k<n}k=\tfrac {n(n-1)}{2}\) and \(\sum _{k<n}k(k-1)=\tfrac {n(n-1)(n-2)}{3}\), by telescoping.
349.1.4 The continuous form

Let \(F\) be differentiable on \([a,b]\) with continuous derivative \(f\), and take a partition \(a=x_0<x_1<\cdots <x_n=b\).

Exact telescoping. The first form applies exactly, with no limit:

\begin{equation} F(b)-F(a)=\sum _{k=0}^{n-1}\bigl (F(x_{k+1})-F(x_k)\bigr ). \tag{21436}\end{equation}

Mean value step. Each term equals \(f(\xi _k)(x_{k+1}-x_k)\) for some \(\xi _k\in (x_k,x_{k+1})\), so

\begin{equation} F(b)-F(a)=\sum _kf(\xi _k)\,\Delta x_k \tag{21437}\end{equation}
for every partition.

Limit. As the mesh tends to \(0\), these sums converge to \(\int _a^bf\), giving

\begin{equation} \int _a^bF'(x)\,dx=F(b)-F(a), \qquad \frac {d}{dx}\int _a^xf=f(x). \tag{21438}\end{equation}

Where the declaration enters. The telescoping identity is finite arithmetic. The mean value theorem and the convergence of Riemann sums use the least upper bound property of \(\mathbb R\). That property needs \(\mathbb R\) as a completed set, so the continuous theorem has the form \(\mathrm {Inf}\rightarrow \mathrm {FTC}\) (Section 458).

349.1.5 Two decompositions

Arithmetic Calculus
decomposition \(n=\prod p_i^{\alpha _i}\) \(F(n)-F(0)=\sum \Delta F\)
atoms primes differences \(\Delta F(k)\)
operation \(\cdot \) in \(\mathbb N_{\ge 1}\) \(+\) in \(\mathbb Z\)
key step cancellation of equal primes cancellation \(-F(k)+F(k)=0\)
uniqueness Euclid’s lemma \(\Delta \) and \(\sum \) inverse
proof method induction, well-ordering induction
infinite part none limit, \(\mathrm {Inf}\rightarrow \mathrm {FTC}\)

Both theorems end at an identity: the factorisation reduces to \(1=1\), and the telescoping sum to \(F(n)-F(0)=F(n)-F(0)\).

\(A = A\) is the ground of both theorems. The fundamental theorem of arithmetic is the ground of Gödel’s incompleteness theorems. The fundamental theorem of calculus is the ground of the continuous mathematics that supports physics. Both theorems are statements about decomposition, and both are grounded in the identity of the decomposed with itself. Incompleteness also stands on the ground of completeness.

\(A = A\) is above all.