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 \)
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\):
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\).
\(P(0)\) holds: otherwise \(0\in A\) would be least.
If \(P(n)\) holds and \(n+1\in A\), then \(n+1\) would be least; so \(P(n+1)\) holds.
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
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
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.
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:
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.