From 2220eac382f9af37dacfc750e24dde59876d439c Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:31 +0100 Subject: [PATCH 1/5] incompleteness/arithmetization-syntax: corrections (62 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit coding-formulas.tex: - l. 25: Reported atomic arity and nested argument-code witness bound defects. - l. 50: The code of s is not less than itself, and codes of sequences exceed the code of s: an explicit bound for the search is given. - l. 87: Sent(x) lacks Frm(x). Added. coding-symbols.tex: - l. 46: ⊤ and ↔ had no code when they are primitive symbols. coding-terms.tex: - l. 66: Index j unquantified in case (3). Quantified. - l. 85: Arbitrary formation sequences may contain unused terms; for example c0,c1,c0 ends in c0 but includes c1. The stated bound needs a chosen sequence of actual subterm occurrences. proofs-in-ax.tex: - l. 90: Axiom schemas permit open formulas. - l. 110: The constant must occur neither in B nor in A(x). - l. 113: The schemas also have instances with free variables. - l. 117: Freshness only in B allows invalid generalization when the constant already occurs in the schematic matrix: take A(x)=(x=c), B a closed tautology, and the valid premise B→c=c. The proposed conclusion B→∀x(x=c) is false in a two-element structure. - l. 121: The text confuses the bound for c with a and assumes the chosen constant occurs in the premise, which need not hold for a vacuous quantifier. - l. 124: The displayed definition uses j without quantifying it. - l. 131: Unbound prior-line index and inconsistent formula domain. - l. 136: The prose reverses c and x when calling them variable and constant. - l. 145, 204: A vacuous line test accepts empty encodings, which have no last formula; unguarded numbers need not be valid sequence codes. - l. 165: The final construction changes x from a direct derivation from Γ into a derivation without assumptions of a nested conditional. These are different code relations, though their existential provability claims agree. - l. 174, 182: x codes a derivation, without assumptions, of the nested conditional, not a derivation from Γ. - l. 193: The equivalence with Γ ⊢ A rests on the deduction theorem. - l. 201: The recursion calls a three-argument Cond although Cond is defined with two arguments; the recursive helper is hCond. proofs-in-lk.tex: - l. 42: The one-premise case has only pi 1, whereas the two-premise case has two subproofs and two premises. State the alternatives consistently with the two coding clauses immediately below. - l. 79: tuple(0,Gn(A⇒A)) is the code of a one-node derivation, not merely the sequent code. - l. 98: EndSeq/EndSequent and InitSeq/InitialSeq names drift within the same definition. - l. 102: Length/coordinate tests do not imply valid prime-power sequence encoding. For example 42 has apparent length 2 and zero first coordinates but is not a valid pair code. Node tuple lengths/arity are also unguarded. - l. 109, 163, 164, 206: Tests of length and first entry do not show that a number codes a sequence of the right shape: Node and SentSeq do. - l. 118: There are more than two cases. - l. 120, 190, 191: This chapter codes sentence sequents, and the actual equality rule explicitly requires a closed term. - l. 127, 130: The term in the identity axiom is closed, and the initial sequents for ⊤ and ⊥ were missing. - l. 184: The equality rule requires a closed term. - l. 212: The explanation of Correct(p) refers to unrelated d. - l. 236: The intended exact characterization is stated with iff at the beginning of the proof; make the proposition agree, and remove the subject-predicate comma. The one-way if was true but incomplete as a defining characterization. - l. 243: The proof switches d/p and omits a closing parenthesis in Correct. - l. 274: The explanatory right-end-sequent singleton formula equates the conclusion code to x, the proof code, instead of y. proofs-in-nd.tex: - l. 25: Counting labelled leaves works only if every label refers to one discharging inference: labels are renamed before coding. - l. 101: Tests of single entries do not show that a number codes a derivation: Node checks the shape. - l. 125: Already a one-edge tree has d+1 entries after d iterations, so its length need not be ≤d. - l. 127, 130: The bound is the length of the list SubtreeSeq(d), not d. - l. 133: The sentence starts We want to show that Discharge..., which holds if..., but stops before its main predicate. Complete the primitive-recursiveness assertion and remove the repeated all. - l. 184: The displayed individual FollowsBy predicates omit the required rule codes for equality introduction, implication introduction and existential introduction. The overall Correct disjunction compensates, but their standalone descriptions are inaccurate. - l. 196: With label 0 meaning no discharge, testing all label 0 assumptions against the introduced antecedent wrongly rejects valid vacuous implication introduction. - l. 196: The coding definition requires label 0 when an inference discharges no assumptions. - l. 210: The test for ∃ introduction must also check that the last rule is ∃ introduction (13). - l. 219, 223: The English disjunction lacks enclosing brackets, so the sentence guard applies only to the first case. - l. 251: The proof immediately uses the exact iff characterization. Align the proposition with it and remove the subject-predicate comma. - l. 261, 262: The proposition needs the convention on labels: Labels(d) checks it. - l. 267: State the intended exact OpenAssum relation and remove the comma between subject and predicate. - l. 274, 284: Label 0 means that nothing is discharged; only positive labels count. - l. 289: A sequence of codes of subderivations need not be a subsequence of the list; what is needed is that every entry occurs in it. - l. 294: Slot 0 is the child count, not the first child. - l. 297: Range containment does not define an ordered subsequence, and arbitrary sequences from a finite list need not be its subsequences. The asserted strict code bound also fails for a one-node path. - l. 301, 302: For an unlabelled assumption n=0, every non-discharge inference also has label 0, so the predicate falsely treats that assumption as discharged. It can certify a theorem from an open assumption. Co-Authored-By: Claude Opus 5.5 --- .../coding-formulas.tex | 15 +-- .../arithmetization-syntax/coding-symbols.tex | 3 + .../arithmetization-syntax/coding-terms.tex | 9 +- .../arithmetization-syntax/proofs-in-ax.tex | 66 ++++++++------ .../arithmetization-syntax/proofs-in-lk.tex | 58 ++++++++---- .../arithmetization-syntax/proofs-in-nd.tex | 91 +++++++++++++------ 6 files changed, 159 insertions(+), 83 deletions(-) diff --git a/content/incompleteness/arithmetization-syntax/coding-formulas.tex b/content/incompleteness/arithmetization-syntax/coding-formulas.tex index 336b55f7c..c6d1d2254 100644 --- a/content/incompleteness/arithmetization-syntax/coding-formulas.tex +++ b/content/incompleteness/arithmetization-syntax/coding-formulas.tex @@ -22,8 +22,9 @@ The number $x$ is the G\"odel number of an atomic !!{formula} iff one of the following holds: \begin{enumerate} -\item There are $n$, $j < x$, and $z < x$ such that for each $i < n$, - $\fn{Term}((z)_i)$ and $x = $ +\item There are $n$, $j < x$, and $z \le p_{k-1}^{k(x+1)}$, where + $k = \len{x}$, such that $\len{z} = n$, for each $i < n$, + $\fn{Term}((z)_i)$, and $x = $ \[ \Gn{\Obj P^n_j(} \concat \fn{flatten}(z) \concat \Gn{)}. \] @@ -47,9 +48,11 @@ A sequence of symbols~$s$ is !!a{formula} iff there is formation sequence~$s_0$, \dots, $s_{k-1} = s$ of !!{formula} which records how~$s$ was formed from atomic !!{formula}s according to the -formation rules. The code for each $s_i$ (and indeed of the code of -the sequence $\tuple{s_0, \dots, s_{k-1}}$) is less than the code~$x$ -of~$s$. +formation rules. Choose such a sequence consisting only of subformulas +of~$s$. If $x$ is the code of~$s$ and $k=\len{x}$, this sequence has +some length $m\leq k$, each code $\Gn{s_i}$ is at most~$x$, and the +sequence code $\tuple{\Gn{s_0}, \dots, \Gn{s_{m-1}}}$ is at most +$p_{k-1}^{k(x+1)}$. \end{proof} \begin{prob} @@ -84,7 +87,7 @@ A !!{sentence} is !!a{formula} without free occurrences of !!{variable}s. So $\fn{Sent}(x)$ holds iff \begin{multline*} -\bforall{i<\len{x}}{\bforall{z0 \land {}\\ + \bforall{i < \len{d}}{(\fn{Frm}((d)_i) \land + (\fn{IsAx}((d)_i) \lor \fn{MP}(d,i) \lor \fn{QR}(d, i)))} + \end{multline*} \end{enumerate} \end{proof} @@ -162,8 +164,9 @@ \begin{prop} Suppose $\Gamma$ is a primitive recursive set of !!{sentence}s. Then the relation $\Prf[\Gamma](x, y)$ expressing ``$x$ is the code of -!!a{derivation}~$\delta$ of $!A$ from~$\Gamma$ and $y$ is the G\"odel -number of~$!A$'' is primitive recursive. +!!a{derivation}~$\delta$ from no assumptions of a nested conditional +with antecedents in~$\Gamma$ and consequent~$!A$, and $y$ is the +G\"odel number of~$!A$'' is primitive recursive. \end{prop} \begin{proof} @@ -171,7 +174,8 @@ predicate~$R_\Gamma(y)$. We have to show that the relation $\Prf[\Gamma](x, y)$ is primitive recursive, where $\Prf[\Gamma](x, y)$ holds iff $y$ is the G\"odel number of !!a{sentence}~$!A$ and -$x$~is the code of !!a{derivation} of~$!A$ from $\Gamma$. +$x$~is the code of an assumption-free !!{derivation} of a nested +conditional with antecedents in~$\Gamma$ and consequent~$!A$. By the previous proposition, the property $\fn{Deriv}(x)$ which holds iff $x$ is the code of a correct !!{derivation}~$\delta$ is primitive @@ -179,8 +183,8 @@ $\Gamma$ as an additional way to justify lines in the !!{derivation}. Our primitive recursive test of whether a line is justified by \QR{} also left out of consideration the requirement that the constant~$c$ is not -allowed to occur in~$\Gamma$. It is possible to amend our definition so -that it takes into account $\Gamma$ directly, but it is easier to use +allowed to occur in the finite set of assumptions used from~$\Gamma$. +It is possible to code that finite support and check it directly, but it is easier to use $\fn{Deriv}$ and the deduction theorem. $\Gamma \Proves !A$ iff there is some finite list of !!{sentence}s $!B_1$, \dots, $!B_n \in \Gamma$ such that $\{!B_1, \dots, !B_n\} \Proves !A$. And by the @@ -190,7 +194,8 @@ instead of considering $x$ as the G\"odel number of !!a{derivation} of the !!{sentence} with G\"odel number~$y$ \emph{from $\Gamma$}, we consider $x$ as the G\"odel number of !!a{derivation} of a nested conditional -of the above form from~$\emptyset$. +of the above form from~$\emptyset$. The deduction theorem ensures +that such a certificate exists exactly when $\Gamma\Proves !A$. First, if we have a sequence of !!{sentence}s, we can primitive recursively form the conditional with all these sentences as @@ -198,10 +203,11 @@ \begin{align*} \fn{hCond}(s, y, 0) & = y \\ \fn{hCond}(s, y, n+1) & = \Gn{(} \concat (s)_{n} \concat \Gn{\lif} - \concat \fn{Cond}(s, y, n) \concat \Gn{)}\\ + \concat \fn{hCond}(s, y, n) \concat \Gn{)}\\ \fn{Cond}(s, y) & = \fn{hCond}(s, y, \len{s})\\ \intertext{So we can define $\Prf[\Gamma](x, y)$ by} - \Prf[\Gamma](x, y) & \defiff \bexists{s < \fn{sequenceBound}(x,x)}{(} \\ + \Prf[\Gamma](x, y) & \defiff \fn{Sent}(y) \land {} + \bexists{s < \fn{sequenceBound}(x,x)}{(\fn{Seq}(s) \land {}} \\ &\qquad (x)_{\len{x}-1} = \fn{Cond}(s,y) \land {} \\ &\qquad\bforall{i<\len{s}}{(s)_i \in \Gamma} \land {} \\ &\qquad\fn{Deriv}(x)). diff --git a/content/incompleteness/arithmetization-syntax/proofs-in-lk.tex b/content/incompleteness/arithmetization-syntax/proofs-in-lk.tex index 337b3c0f7..99a4169f5 100644 --- a/content/incompleteness/arithmetization-syntax/proofs-in-lk.tex +++ b/content/incompleteness/arithmetization-syntax/proofs-in-lk.tex @@ -39,8 +39,8 @@ \tuple{0, \Gn{\Gamma \Sequent \Delta}}. \] \item If $\pi$ ends in an inference with one or two premises, has - $\Gamma \Sequent \Delta$ as its conclusion, and $\pi_1$ and $\pi_2$ are the immediate subproof ending - in the premise of the last inference, then $\Gn{\pi}$ is + $\Gamma \Sequent \Delta$ as its conclusion, and $\pi_1$ (and $\pi_2$ in the two-premise case) are the immediate + subproofs ending in the respective premises of the last inference, then $\Gn{\pi}$ is \begin{align*} & \tuple{1, \Gn{\pi_1}, \Gn{\Gamma \Sequent \Delta}, k} \text{ or}\\ & \tuple{2, \Gn{\pi_1}, \Gn{\pi_2}, \Gn{\Gamma \Sequent \Delta}, k}, @@ -76,7 +76,7 @@ \RightLabel{\RightR{\lif}} \UnaryInf$\fCenter (!A \land !B) \lif !A$ \end{prooftree} - The G\"odel number of the initial sequent would be $p_0 = \tuple{0, + The G\"odel number of the one-node !!{derivation} would be $p_0 = \tuple{0, \Gn{!A \Sequent !A}}$. The G\"odel number of the !!{derivation} ending in the conclusion of~$\LeftR{\land}$ would be $p_1 = \tuple{1, p_0, \Gn{!A \land !B \Sequent !A}, 9}$ ($1$ since @@ -95,11 +95,12 @@ show that we can manipulate such !!{derivation}s primitive recursively, and express their essential properties and relations so. Some operations are simple: e.g., given a G\"odel number~$p$ of -!!a{derivation}, $\fn{EndSeq}(p) = (p)_{(p)_0+1}$ gives us the G\"odel +!!a{derivation}, $\fn{EndSequent}(p) = (p)_{(p)_0+1}$ gives us the G\"odel number of its end-sequent and $\fn{LastRule}(p) = (p)_{(p)_0+2}$ the code of its last rule. The property $\fn{Sequent}(s)$ defined by \[ - \len{s} = 2 \land \bforall{i<\len{(s)_0} + \len{(s)_1}}{\fn{Sent}(((s)_0 \concat (s)_1)_i)} + \fn{Seq}(s) \land \len{s} = 2 \land + \fn{SentSeq}((s)_0) \land \fn{SentSeq}((s)_1) \] holds of $s$ iff $s$ is the G\"odel number of a sequent consisting of !!{sentence}s. Some are much harder. We'll at least sketch how to do @@ -107,6 +108,18 @@ !!a{derivation} of~$!A$ from~$\Gamma$'' is a primitive recursive relation of the G\"odel numbers of $\pi$ and~$!A$. \end{explain} +Here $\fn{SentSeq}(u)$ abbreviates +$\fn{Seq}(u)\land\bforall{i<\len{u}}{\fn{Sent}((u)_i)}$. +We will also use the primitive recursive predicate $\fn{Node}(p)$: +\begin{multline*} +\fn{Seq}(p)\land\fn{Sequent}(\fn{EndSequent}(p))\land{}\\ +[((p)_0=0\land\len{p}=2)\lor + ((p)_0=1\land\len{p}=4)\lor{}\\ + ((p)_0=2\land\len{p}=5)]. +\end{multline*} +It checks the prescribed tuple shape and end-sequent; correctness of +an inference and of its subderivations is checked separately. + \begin{prop}\ollabel{prop:followsby} The property $\fn{Correct}(p)$ which holds iff the last inference in @@ -115,19 +128,26 @@ \end{prop} \begin{proof} - $\Gamma \Sequent \Delta$ is an initial sequent if either there + $\Gamma \Sequent \Delta$ is an initial sequent if there is !!a{sentence}~$!A$ such that $\Gamma \Sequent \Delta$ is $!A - \Sequent !A$, or there is a term~$t$ such that $\Gamma \Sequent + \Sequent !A$, or there is a closed term~$t$ such that $\Gamma \Sequent \Delta$ is $\emptyset \Sequent \eq[t][t]$. In terms of G\"odel numbers, $\fn{InitSeq}(s)$ holds iff \begin{align*} \bexists{x < s}{} (\fn{Sent}(x) & \land s = \tuple{\tuple{x},\tuple{x}}) \lor {}\\ - \bexists{t0\land {}} \\ + \fn{AllIn}(s, \fn{SubtreeSeq}(d)) \land (s)_0 = d \land {} \\ \bexists{n Date: Mon, 30 Nov 2026 22:30:32 +0100 Subject: [PATCH 2/5] incompleteness/incompleteness-provability: corrections (9 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit introduction.tex: - l. 33: Even this informal statement needs consistency: an inconsistent theory proves its consistency sentence as well as its negation. lob-thm.tex: - l. 18: This introductory unprovability assertion requires consistency; an inconsistent theory derives every sentence. provability-conditions.tex: - l. 35: The object-language formula must use the representing formula OPrf, not the numerical relation Prf. rosser-thm.tex: - l. 43, 48: This blanket claim needs a coding restriction. Let T have every sentence as an axiom and use syntax codes g with g(not A)>g(A). - l. 51: Whether there are such sentences depends on the coding. second-incompleteness-thm.tex: - l. 43: This is the arithmetical provability formula, so OProv is required. - l. 56, 83: Con is defined with 0 = 1 but used with ⊥; the equivalence of the two is derived from P1 and P2. Co-Authored-By: Claude Opus 5.5 --- .../incompleteness-provability/introduction.tex | 4 +++- .../incompleteness-provability/lob-thm.tex | 2 +- .../provability-conditions.tex | 2 +- .../incompleteness-provability/rosser-thm.tex | 10 +++++----- .../second-incompleteness-thm.tex | 8 ++++++-- 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/content/incompleteness/incompleteness-provability/introduction.tex b/content/incompleteness/incompleteness-provability/introduction.tex index b22550c22..2b59a5531 100644 --- a/content/incompleteness/incompleteness-provability/introduction.tex +++ b/content/incompleteness/incompleteness-provability/introduction.tex @@ -30,7 +30,9 @@ incompleteness theorem was a much bigger blow. The second incompleteness theorem can be stated in vague terms, like the first incompleteness theorem. Roughly speaking, it says that no sufficiently -strong theory of arithmetic can prove its own consistency. We will +strong, consistent, !!{axiomatizable} theory of arithmetic can prove +its own consistency, for the provability predicate satisfying the +!!{derivability} conditions specified below. We will have to take ``sufficiently strong'' to include a little bit more than~$\Th{Q}$. diff --git a/content/incompleteness/incompleteness-provability/lob-thm.tex b/content/incompleteness/incompleteness-provability/lob-thm.tex index 5b93347f4..4e5d70090 100644 --- a/content/incompleteness/incompleteness-provability/lob-thm.tex +++ b/content/incompleteness/incompleteness-provability/lob-thm.tex @@ -15,7 +15,7 @@ \[ \Th{T} \Proves \lnot \OProv[\Th{T}](\gn{!G}) \liff !G. \] -It is not !!{derivable}, because if $\Th{T} \Proves !G$, (a) by !!{derivability} +If $\Th{T}$ is consistent, it is not !!{derivable}, because if $\Th{T} \Proves !G$, (a) by !!{derivability} condition~(1), $\Th{T} \Proves \OProv[\Th{T}](\gn{!G})$, and (b) $\Th{T} \Proves !G$ together with $\Th{T} \Proves \lnot \OProv[\Th{T}](\gn{!G}) \liff !G$ gives $\Th{T} \Proves \lnot \OProv[\Th{T}](\gn{!G})$, and so diff --git a/content/incompleteness/incompleteness-provability/provability-conditions.tex b/content/incompleteness/incompleteness-provability/provability-conditions.tex index 51e21872c..d3da5c6dc 100644 --- a/content/incompleteness/incompleteness-provability/provability-conditions.tex +++ b/content/incompleteness/incompleteness-provability/provability-conditions.tex @@ -32,7 +32,7 @@ in~$\Th{Q}$ (and so, in~$\Th{PA}$). As before, we will take $\OPrf[\Th{PA}](x,y)$ to denote the formula representing the relation. Let $\OProv[\Th{PA}](y)$ be the formula -$\lexists[x][\Prf[\Th{PA}](x,y)]$, which, intuitively says, ``$y$ is +$\lexists[x][\OPrf[\Th{PA}](x,y)]$, which, intuitively says, ``$y$ is !!{derivable} from the axioms of $\Th{PA}$.'' The reason we need a little bit more than the axioms of $\Th{Q}$ is we need to know that the theory we are using is strong enough to !!{derive} a few basic diff --git a/content/incompleteness/incompleteness-provability/rosser-thm.tex b/content/incompleteness/incompleteness-provability/rosser-thm.tex index b4cf6667c..81d6d9fc1 100644 --- a/content/incompleteness/incompleteness-provability/rosser-thm.tex +++ b/content/incompleteness/incompleteness-provability/rosser-thm.tex @@ -40,16 +40,16 @@ \ORefut[\Th{T}](z,y))])]. \] Roughly, $\ORProv[\Th{T}](y)$ says ``there is a proof of $y$ in $\Th{T}$, -and there is no shorter refutation of~$y$.'' Assuming $\Th{T}$ is +and there is no refutation of~$y$ with a smaller G\"odel number.'' Assuming $\Th{T}$ is consistent, $\ORProv[\Th{T}](y)$ is true of the same numbers as $\OProv[\Th{T}](y)$; but from the point of view of \emph{provability} in~$\Th{T}$ (and we now know that there is a difference between truth and provability!) the two have different properties. If $\Th{T}$ is -\emph{in}consistent, then the two do \emph{not} hold of the same -numbers!{} ($\ORProv[\Th{T}](y)$ is often read as ``$y$ is Rosser +\emph{in}consistent, then agreement is no longer guaranteed and +can depend on the proof coding. ($\ORProv[\Th{T}](y)$ is often read as ``$y$ is Rosser provable.'' Since, as just discussed, Rosser provability is not some -special kind of provability---in inconsistent theories, there are -!!{sentence}s that are provable but not Rosser provable---this may be +special kind of provability---in an inconsistent theory, a sentence +can be provable but not Rosser provable---this may be confusing. To avoid the confusion, you could instead read it as ``$y$ is shmovable.'') diff --git a/content/incompleteness/incompleteness-provability/second-incompleteness-thm.tex b/content/incompleteness/incompleteness-provability/second-incompleteness-thm.tex index 31bc519d5..37185ce26 100644 --- a/content/incompleteness/incompleteness-provability/second-incompleteness-thm.tex +++ b/content/incompleteness/incompleteness-provability/second-incompleteness-thm.tex @@ -40,7 +40,7 @@ \OCon[\Th{PA}] \lif \lnot \OProv[\Th{PA}](\gn{!G_\Th{PA}}). \] Now suppose $\Th{PA}$ !!{derive}s $\OCon[\Th{PA}]$. Then it !!{derive}s $\lnot -\Prov[\Th{PA}](\gn{!G_\Th{PA}})$. But since $!G_\Th{PA}$ is a G\"odel +\OProv[\Th{PA}](\gn{!G_\Th{PA}})$. But since $!G_\Th{PA}$ is a G\"odel sentence, this is equivalent to $!G_\Th{PA}$. So $\Th{PA}$ !!{derive}s $!G_\Th{PA}$. @@ -54,6 +54,9 @@ !G_\Th{PA}$. This will show that $\Th{PA}$ doesn't !!{derive} $\OCon[\Th{PA}]$. Here is a sketch of the proof, in~$\Th{PA}$. (For simplicity, we drop the $\Th{PA}$ subscripts.) +Since $\Th{PA}$ proves $\eq[0][1]\liff\lfalse$, conditions P1 and P2 +give the corresponding equivalence of their provability statements. +Thus $\Th{PA}$ proves $\OCon\liff\lnot\OProv(\gn{\lfalse})$. \begin{align} & !G \liff \lnot \OProv(\gn{!G}) \ollabel{G2-1}\\ & \qquad\text{$!G$ is a G\"odel sentence}\notag \\ @@ -80,7 +83,8 @@ & \OProv(\gn{!G}) \lif \OProv(\gn{\lfalse}) \ollabel{G2-8}\\ & \qquad \text{from \olref{G2-6} and \olref{G2-7} by logic}\notag\\ & \OCon \lif \lnot \OProv(\gn{!G}) \ollabel{G2-9}\\ - & \qquad\text{contraposition of \olref{G2-8} and $\OCon \ident \lnot \OProv(\gn{\lfalse})$}\notag \\ + & \qquad\text{contraposition of \olref{G2-8} and the provable}\notag \\ + & \qquad\text{equivalence $\OCon \liff \lnot \OProv(\gn{\lfalse})$}\notag \\ & \OCon \lif !G \notag\\ & \qquad\text{from \olref{G2-1} and \olref{G2-9} by logic}\notag \end{align} From 3c024c3da7a74e9c733a00b9074076e570b2e9ca Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:32 +0100 Subject: [PATCH 3/5] incompleteness/introduction: corrections (16 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit definitions.tex: - l. 90: A computable enumeration can specify an axiom set without decidable membership, so decidability is not the minimum possible way to specify axioms. historical-background.tex: - l. 65: The attribution includes geometry, although Frege expressly accepts its synthetic a priori status. - l. 122: Russell 'discovered' the paradox in 1902 (1901; letter to Frege 16 June 1902). Corrected. - l. 186: The immediately preceding numbered list gives formalization first and finitary consistency second; the next two paragraphs discuss each. Completeness is an additional aim here, so calling it the second misidentifies the stated enumeration. - l. 199: For the effective systems under discussion, completeness yields decidability, as the preceding sentence itself states. A decision procedure is not a stronger logical property than completeness. - l. 204: Inconsistent systems and the noneffectively axiomatized true arithmetic can be complete; incompleteness requires consistency, effectiveness and sufficient arithmetic. - l. 204: Mere consistency of an effective arithmetic extension does not prevent it from proving its own inconsistency. - l. 216: The vague hedge almost does not state the strength, consistency and effectiveness restrictions; many complete weak or inconsistent systems are counterexamples. overview.tex: - l. 44: The standard Gödel sentence is not in general independent under consistency alone. Its usual non-refutability proof uses an additional soundness/1-consistency or omega-consistency assumption; - l. 67, 77: The paragraph announces the chapters in the order in which they come (arithmetization before representability). - l. 88: The paragraph introduces the object-language arithmetic formula OProv, and the subsequent provability claim and consistency sentence must use that same formula. Prov is the distinct numerical/metalinguistic predicate. Restore OProv in both occurrences. - l. 92: The formula in the object language is OProv. undecidability.tex: - l. 38, 40: A(n) for A_n(n). A_n. - l. 63: Inconsistent extensions of Q are decidable. 'if they are consistent'. - l. 89: The equivalence compares a sentence with its own negation, but the first mention merely says A sentence in ordinary English and fails to label that arbitrary sentence by the formula metavariable used in the negation. Co-Authored-By: Claude Opus 5.5 --- .../introduction/definitions.tex | 4 +-- .../introduction/historical-background.tex | 25 +++++++++++-------- .../incompleteness/introduction/overview.tex | 16 ++++++------ .../introduction/undecidability.tex | 12 ++++----- 4 files changed, 31 insertions(+), 26 deletions(-) diff --git a/content/incompleteness/introduction/definitions.tex b/content/incompleteness/introduction/definitions.tex index cddb016e7..3d75cc3f7 100644 --- a/content/incompleteness/introduction/definitions.tex +++ b/content/incompleteness/introduction/definitions.tex @@ -87,8 +87,8 @@ case, $\Gamma$ is the ``closure'' of $\Gamma_0$ under entailment. Specifying a theory this way is only interesting if $\Gamma_0$ is explicitly specified, e.g., if the !!{element}s of~$\Gamma_0$ are -listed. At the very least, $\Gamma_0$ has to be decidable, i.e., there -has to be a computable test for when !!a{sentence} counts as an +listed. For the effective axiomatizations considered here, we require +$\Gamma_0$ to be decidable, i.e., there must be a computable test for when !!a{sentence} counts as an element of~$\Gamma_0$ or not. We call the !!{sentence}s in~$\Gamma_0$ \emph{axioms} for~$\Gamma$, and $\Gamma$ \emph{axiomatized} by~$\Gamma_0$. diff --git a/content/incompleteness/introduction/historical-background.tex b/content/incompleteness/introduction/historical-background.tex index 397b90124..88e073a24 100644 --- a/content/incompleteness/introduction/historical-background.tex +++ b/content/incompleteness/introduction/historical-background.tex @@ -62,8 +62,8 @@ course, since logic plays an important role in mathematics, there is a good deal of interaction with the developments just described. For example, Frege developed his logic with the explicit purpose of -showing that all of mathematics could be based solely on his logical -framework; in particular, he wished to show that mathematics consists +showing that arithmetic could be based solely on his logical +framework; in particular, he wished to show that arithmetic consists of a priori \emph{analytic} truths instead of, as Kant had maintained, a priori \emph{synthetic} ones. @@ -119,7 +119,8 @@ general set-theoretic understanding of mathematics that is now widely accepted. This brings us to twentieth century developments in logic and foundations. -In 1902 Russell discovered the paradox in Frege's logical system. In +In 1902 Russell communicated the paradox in Frege's logical system, +which he had discovered in 1901, to Frege. In 1904 Zermelo proved Cantor's well-ordering principle, using the so-called ``axiom of choice''; the legitimacy of this axiom prompted a good deal of debate. Between 1910 and 1913 the three volumes of @@ -183,7 +184,7 @@ in question, especially if its proof requires only very restricted, ``finitary'' means. -The second aim, that the axiom systems developed would settle every +A further aim, that the axiom systems developed would settle every mathematical question, can be made precise in two ways. In one way, we can formulate it as follows: For any sentence~$!A$ in the language of an axiom system for mathematics, either $!A$ or $\lnot !A$ is provable @@ -196,15 +197,16 @@ so. In fact, for the axiom and !!{derivation} systems considered by Hilbert, completeness would imply that such a method exists---although Hilbert did not realize this. The second way to interpret the -question would be this stronger requirement: that there be a +question would be this requirement: that there be a mechanical, computational method which would determine, for a given sentence~$!A$, whether it is derivable from the axioms or not. In 1931, G\"odel proved the two ``incompleteness theorems,'' which -showed that this program could not succeed. There is no axiom system -for mathematics which is complete, specifically, the sentence that -expresses the consistency of the axioms is a sentence which can -neither be proved nor refuted. +showed that this program could not succeed. In its modern form, the first theorem says that no consistent, +effectively axiomatized theory containing sufficient arithmetic is complete. +Under the derivability conditions of the second theorem, the sentence expressing its consistency cannot be proved in the theory. +If the theory is sound in the standard model, this true sentence cannot +be refuted either. This struck a lethal blow to Hilbert's original program. However, as is so often the case in mathematics, it also opened up exciting new @@ -213,8 +215,9 @@ systems and investigate what can be proved in them. It also makes sense to develop less restricted methods of proof for establishing the consistency of these systems, and to find ways to measure how hard it -is to prove their consistency. Since G\"odel showed that (almost) -every formal system has questions it cannot settle, it makes sense to +is to prove their consistency. Since the incompleteness theorems show that every consistent, effectively +axiomatized formal system containing sufficient arithmetic has questions +it cannot settle, it makes sense to look for ``interesting'' questions a given formal system cannot settle, and to figure out how strong a formal system has to be to settle them. To the present day, logicians have been pursuing these diff --git a/content/incompleteness/introduction/overview.tex b/content/incompleteness/introduction/overview.tex index 857935f6d..ba6632237 100644 --- a/content/incompleteness/introduction/overview.tex +++ b/content/incompleteness/introduction/overview.tex @@ -41,8 +41,10 @@ !A$. Such !!a{sentence} is called \emph{independent} (of~$\Gamma)$. We can in fact relatively quickly prove that there must be independent sentences. But the power of G\"odel's proof of the theorem lies in the -fact that it exhibits a \emph{specific example} of such an independent -!!{sentence}. The intriguing construction produces +fact that, with the additional assumption of $\omega$-consistency, it +exhibits a \emph{specific example} of such an independent !!{sentence}. +Rosser's refinement gives a different independent sentence under +consistency alone. The intriguing construction produces !!a{sentence}~$!G_\Gamma$, called a \emph{G\"odel sentence} for~$\Gamma$, which is unprovable because in $\Gamma$, $!G_\Gamma$ is equivalent to the claim that $!G_\Gamma$ is unprovable in~$\Gamma$. It @@ -64,7 +66,7 @@ correspond to computable functions on natural numbers. This is called ``arithmetization of syntax.'' -Before we investigate how syntax can be arithmetized, however, we will +To apply the result, we must also consider the condition that~$\Gamma$ is ``strong enough,'' i.e., !!{represents} all computable functions and !!{decidable} relations. This requires that we give a precise definition of ``computable.'' @@ -74,8 +76,8 @@ !!{represents}s these functions and relations in a theory in the language~$\Lang L_A$, however, it is best to pick a simple definition of computability of just numerical functions. This is the notion of -\emph{recursive function}. So we will first discuss the recursive -functions. We will then show that $\Th{Q}$ already !!{represents} all +\emph{recursive function}. We use the recursive +functions discussed earlier. After arithmetizing syntax, we will show that $\Th{Q}$ already !!{represents} all recursive functions and relations. This will allow us to apply the incompleteness theorem to specific theories such as $\Th{Q}$ and $\Th{PA}$, since we will have established that these are examples of @@ -85,11 +87,11 @@ !!a{formula} $\OProv[\Gamma](x)$ which, via the coding of !!{formula}s as numbers, expresses provability from the axioms of~$\Gamma$. Specifically, if $!A$ is coded by the number~$n$, and $\Gamma \Proves -!A$, then $\Gamma \Proves \Prov[\Gamma](\num{n})$. This ``provability +!A$, then $\Gamma \Proves \OProv[\Gamma](\num{n})$. This ``provability predicate'' for $\Gamma$ allows us also to express, in a certain sense, the consistency of $\Gamma$ as !!a{sentence} of~$\Lang L_A$: let the ``consistency statement'' for~$\Gamma$ be the !!{sentence} -$\lnot \Prov[\Gamma](\num{n})$, where we take $n$ to be the code of a +$\lnot \OProv[\Gamma](\num{n})$, where we take $n$ to be the code of a contradiction, e.g., of~$\lfalse$. The second incompleteness theorem states that consistent !!{axiomatizable} theories also do not prove their own consistency statements. The conditions required for this diff --git a/content/incompleteness/introduction/undecidability.tex b/content/incompleteness/introduction/undecidability.tex index a6589b489..3934fd2ee 100644 --- a/content/incompleteness/introduction/undecidability.tex +++ b/content/incompleteness/introduction/undecidability.tex @@ -35,9 +35,9 @@ The set $D$ is !!{decidable}, since we can test if $n \in D$ by first computing $!A_n(x)$, and from this $\lnot !A_n(\num{n})$. Obviously, substituting the term $\num{n}$ for every free occurrence of $x$ in -$!A_n(x)$ and prefixing $!A(\num{n})$ by $\lnot$ is a mechanical +$!A_n(x)$ and prefixing $!A_n(\num{n})$ by $\lnot$ is a mechanical matter. By assumption, $\Gamma$ is !!{decidable}, so we can test if -$\lnot !A(\num{n}) \in \Gamma$. If it is, $n \in D$, and if it isn't, +$\lnot !A_n(\num{n}) \in \Gamma$. If it is, $n \in D$, and if it isn't, $n \notin D$. So $D$ is likewise !!{decidable}. Since $\Gamma$ !!{represents} all !!{decidable} properties, it @@ -60,9 +60,9 @@ !!{represents} all !!{decidable} relations can be !!{decidable}. We will show that $\Th{Q}$ does !!{represents}s all !!{decidable} relations; this means that all theories that include $\Th{Q}$, such as -$\Th{PA}$ and $\Th{TA}$, also do, and hence also are not -!!{decidable}. (Since all these theories are true in the standard -model, they are all consistent.) +$\Th{PA}$ and $\Th{TA}$, also do, and hence, if they are consistent, +are not !!{decidable}. (Since $\Th{Q}$, $\Th{PA}$, and $\Th{TA}$ are true +in the standard model, they are consistent.) We can also use this result to obtain a weak version of the first incompleteness theorem. Any theory that is !!{axiomatizable} and @@ -86,7 +86,7 @@ enumerate all the correct !!{derivation}s from the axioms of~$\Gamma$ by a computable function. From a correct !!{derivation} we can compute the !!{sentence} it !!{derive}s, and so together there is a computable -function that enumerates all theorems of~$\Gamma$. A !!{sentence} is +function that enumerates all theorems of~$\Gamma$. A !!{sentence}~$!A$ is a theorem of~$\Gamma$ iff $\lnot !A$ is not a theorem, since $\Gamma$ is consistent and !!{complete}. We can therefore decide if $!A \in \Gamma$ as follows. Enumerate all theorems of $\Gamma$. When $!A$ From c60ac6fd5903e7d497d4b2cc3e9d731328b90e68 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:33 +0100 Subject: [PATCH 4/5] incompleteness/representability-in-q: corrections (33 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit basic-representable.tex: - l. 19: Representability is by a formula, not by another function. - l. 113, 117, 120, 130: The proof uses the undeclared abbreviation A_= instead of the defined representing formula A_Char(=). beta-function.tex: - l. 55, 143: The equivalence with a remainder is undefined at c=0, although c is not restricted. A total numerical rem function also needs a zero-divisor convention. - l. 62: The divisors must be positive. c-representable.tex: - l. 54: The representing object is a formula. - l. 129: The last equality also uses Q5 under successor, in the reverse direction. - l. 153, 156: The conclusion that no y has y′ + x = 0 can be drawn only after both cases. - l. 178: Older c-representable converse omits consistency although proof checking is effective. comp-representable.tex: - l. 23: The referenced lemma concerns definition by primitive recursion; the unrestricted phrase omits this premise. - l. 47: Consistency is necessary: an inconsistent theory proves every required instance and uniqueness sentence, so representability alone does not imply computability. - l. 50, 56: For an inconsistent theory representability says nothing: consistency is needed. minimization-representable.tex: - l. 58: This equality also uses axiom Q5 and equality congruence/transitivity. - l. 60: The step also uses axiom Q_5 and identity. - l. 179: The existential witness for u in u′+b′ is c, not c′. prim-rec.tex: - l. 14: The introductory h(x,vec z) argument list disagrees with the recursion h(vec x,y). - l. 41: The natural-number-valued auxiliary returns a beta-code for the list, not the list itself. - l. 55: The lemma is relative to arbitrary given f,g. The final sentence omits them; if f is noncomputable, h(vec x,0)=f(vec x) cannot be defined from the numerical basic functions alone. representable-comp.tex: - l. 19: The lemma names A but uses A_f in the displayed conclusion and proof. - l. 99: The explanatory formula drops the !A_f token and uses the number (s)_1 in object syntax without its numeral. sigma1-completeness.tex: - l. 26, 30: A bounded quantifier requires its bound term not to contain the quantified variable. Allowing t=x′ permits unbounded quantification and invalidates the later Δ0/Σ1 classification. - l. 116: Second numeral must be m, the interpretation of t2. - l. 131: The stated transitivity step has the summands reversed. Although Q can compute both numeral sums, the displayed calculation should use k′+n to match the next line. - l. 144: Peeling a successor from both sides also requires successor injectivity Q1, not Q5 alone. - l. 146, 148: The derived equation is z′=0; nonzero successors is Q2, not Q3. - l. 207: The Delta 0 proof says its cases are exhaustive while writing only negation, conjunction, disjunction and bounded quantifiers; the definition permits all propositional connectives. Its induction must also survive substitution of arbitrarily long numerals. Co-Authored-By: Claude Opus 5.5 --- .../basic-representable.tex | 12 ++++++------ .../representability-in-q/beta-function.tex | 6 +++--- .../representability-in-q/c-representable.tex | 11 ++++++----- .../comp-representable.tex | 12 +++++++----- .../minimization-representable.tex | 6 +++--- .../representability-in-q/prim-rec.tex | 7 +++---- .../representable-comp.tex | 6 +++--- .../sigma1-completeness.tex | 19 +++++++++++-------- 8 files changed, 42 insertions(+), 37 deletions(-) diff --git a/content/incompleteness/representability-in-q/basic-representable.tex b/content/incompleteness/representability-in-q/basic-representable.tex index 0264ce611..431cd64a4 100644 --- a/content/incompleteness/representability-in-q/basic-representable.tex +++ b/content/incompleteness/representability-in-q/basic-representable.tex @@ -16,7 +16,7 @@ We will be able to represent zero, successor, plus, times, the characteristic function for equality, and projections. In each case, -the appropriate representing function is entirely straightforward; for +the appropriate representing formula is entirely straightforward; for example, zero is represented by the formula $y = \Obj 0$, successor is represented by the !!{formula} $x_0' = y$, and addition is represented by the !!{formula} $(x_0 + x_1) = y$. The work involves showing that @@ -110,15 +110,15 @@ \begin{proof}[Proof of \olref{prop:rep-id}] If $n = m$, then $\num{n}$ and $\num{m}$ are the same term, and $\Char{=}(n, m) = 1$. But $\Th{Q} \Proves (\eq[\num{n}][\num{m}] \land -\eq[\num{1}][\num{1}])$, so it proves $!A_=(\num{n}, \num{m}, +\eq[\num{1}][\num{1}])$, so it proves $!A_{\Char{=}}(\num{n}, \num{m}, \num{1})$. If $n \neq m$, then $\Char=(n, m) = 0$. By \olref{lem:q-proves-neq}, $\Th{Q} \Proves \eq/[\num{n}][\num{m}]$ and so also $(\eq/[\num{n}][\num{m}] \land \Obj 0 = \Obj 0)$. Thus $\Th{Q} -\Proves !A_=(\num{n}, \num{m}, \num{0})$. +\Proves !A_{\Char{=}}(\num{n}, \num{m}, \num{0})$. For the second part, we also have two cases. If $n = m$, we have to -show that $\Th{Q} \Proves \lforall[y][(!A_=(\num{n}, \num{m}, y) - \lif \eq[y][\num{1}])]$. Arguing informally, suppose $!A_=(\num{n}, +show that $\Th{Q} \Proves \lforall[y][(!A_{\Char{=}}(\num{n}, \num{m}, y) + \lif \eq[y][\num{1}])]$. Arguing informally, suppose $!A_{\Char{=}}(\num{n}, \num{m}, y)$, i.e., \[ (\eq[\num{n}][\num{n}] \land \eq[y][\num{1}]) \lor @@ -127,7 +127,7 @@ The left disjunct implies $\eq[y][\num{1}]$ by logic; the right contradicts $\eq[\num{n}][\num{n}]$ which is provable by logic. -Suppose, on the other hand, that $n \neq m$. Then $!A_=(\num{n}, +Suppose, on the other hand, that $n \neq m$. Then $!A_{\Char{=}}(\num{n}, \num{m}, y)$ is \[ (\eq[\num{n}][\num{m}] \land \eq[y][\num{1}]) \lor diff --git a/content/incompleteness/representability-in-q/beta-function.tex b/content/incompleteness/representability-in-q/beta-function.tex index 33127ea6f..32c50b7fe 100644 --- a/content/incompleteness/representability-in-q/beta-function.tex +++ b/content/incompleteness/representability-in-q/beta-function.tex @@ -52,14 +52,14 @@ \end{defn} \begin{defn} -Natural numbers $a$ and $b$ are \emph{congruent modulo~$c$}, +For $c>0$, natural numbers $a$ and $b$ are \emph{congruent modulo~$c$}, $a \equiv b \mod c$, iff $c \mid (a-b)$, i.e., $a$ and $b$ have the same remainder when divided by~$c$. \end{defn} Here is Sunzi's Theorem: \begin{thm} -Suppose $x_0$, \dots,~$x_n$ are (pairwise) relatively prime. Let +Suppose $x_0$, \dots,~$x_n$ are positive and (pairwise) relatively prime. Let $y_0$, \dots,~$y_n$ be any numbers. Then there is a number $z$ such that \begin{align*} z & \equiv y_0 \mod x_0 \\ @@ -140,7 +140,7 @@ % \bforall{y \leq x}{(y \mid x \lif y = 1 \lor y = x)}. % \] \item the function $\fn{rem}(x,y)$ which returns the remainder when - $y$ is divided by~$x$. + $y$ is divided by~$x>0$, and has value $\fn{rem}(0,y)=0$. \end{enumerate} Now define \begin{align*} diff --git a/content/incompleteness/representability-in-q/c-representable.tex b/content/incompleteness/representability-in-q/c-representable.tex index 94a409477..f9b5ba539 100644 --- a/content/incompleteness/representability-in-q/c-representable.tex +++ b/content/incompleteness/representability-in-q/c-representable.tex @@ -51,7 +51,7 @@ We will be able to represent zero, successor, plus, times, the characteristic function for equality, and projections. In each case, -the appropriate representing function is entirely straightforward; for +the appropriate representing formula is entirely straightforward; for example, zero is represented by the formula \[ y = 0, @@ -126,7 +126,7 @@ n')']$. The following chain of equalities can be derived in $\Th{Q}$: \begin{eqnarray*} (x' + \num n') & \eq & (x' + \num n)' \quad \text{axiom 5} \\ -& \eq & (x + \num n')' \quad \text{from the inductive hypothesis} +& \eq & (x + \num n')' \quad \text{from the inductive hypothesis and axiom 5} \end{eqnarray*} \end{proof} @@ -150,10 +150,10 @@ x)][0]]$. Here is the idea: suppose $\eq[(y'+x)][0]$. If $x$ is 0, we have $\eq[(y' + 0)][0]$. But by axiom 4 of $\Th{Q}$, we have $\eq[(y' + 0)][y']$, and by axiom 2 we have $\eq/[y'][0]$, a -contradiction. So $\lforall[y][\eq/[(y' +x)][0]]$. If $x$ is not $0$, +contradiction. If $x$ is not $0$, by axiom 3 there is a $z$ such that $\eq[x][z']$. But then we have $\eq[(y' + z')][0]$. By axiom~5, we have $\eq[(y' + z)'][0]$, again -contradicting axiom~2. +contradicting axiom~2. So $\lforall[y][\eq/[(y' +x)][0]]$. For part 2, use induction on $n$. Let us consider the base case, when $n =0$. In that case, we need to show $x < \num 1 \lif \eq[x][\num @@ -175,7 +175,8 @@ is not hard to see that any theory extending $\Th{Q}$ (or in which one can interpret $\Th{Q}$) can represent the computable functions; but, conversely, in any !!{derivation} system in which the notion of proof is -computable, every representable function is computable. So, for +computable, every function representable in a consistent theory is +computable. So, for example, the set of computable functions can be characterized as the set of functions represented in Peano arithmetic, or even Zermelo Fraenkel set theory. As G\"odel noted, this is somewhat surprising. diff --git a/content/incompleteness/representability-in-q/comp-representable.tex b/content/incompleteness/representability-in-q/comp-representable.tex index 027daff4b..e85bc3541 100644 --- a/content/incompleteness/representability-in-q/comp-representable.tex +++ b/content/incompleteness/representability-in-q/comp-representable.tex @@ -20,7 +20,7 @@ function~$\Zero$, the successor function~$\Succ$, and the projection function~$\Proj{n}{i}$ using composition, primitive recursion, and regular minimization. By \olref[pri]{lem:prim-rec}, any function~$h$ -that can be defined from $f$ and~$g$ can also be defined using +that can be defined from $f$ and~$g$ by primitive recursion can also be defined using composition and regular minimization from $f$, $g$, and $\Zero$, $\Succ$, $\Proj{n}{i}$, $\Add$, $\Mult$, $\Char{=}$. Consequently, a function is general recursive iff it can be defined from $\Zero$, @@ -44,16 +44,18 @@ representability, it is not hard to see that any theory extending $\Th{Q}$ (or in which one can interpret $\Th{Q}$) can represent the computable functions. But, conversely, in any !!{derivation} system in -which the notion of !!{derivation} is computable, every representable -function is computable. So, for example, the set of computable +which the notion of !!{derivation} is computable, every function +representable in a consistent theory that distinguishes distinct +numerals is computable. So, for example, the set of computable functions can be characterized as the set of functions representable -in Peano arithmetic, or even Zermelo--Fraenkel set theory. As G\"odel +in Peano arithmetic, or even Zermelo--Fraenkel set theory, assuming +the respective theory is consistent and using its arithmetic interpretation. As G\"odel noted, this is somewhat surprising. We will see that when it comes to provability, questions are very sensitive to which theory you consider; roughly, the stronger the axioms, the more you can prove. But across a wide range of axiomatic theories, the representable functions are exactly the computable ones; stronger theories do not -represent more functions as long as they are axiomatizable. +represent more functions as long as they remain consistent and axiomatizable. \end{explain} \end{document} diff --git a/content/incompleteness/representability-in-q/minimization-representable.tex b/content/incompleteness/representability-in-q/minimization-representable.tex index ec9813809..7f71f4fa8 100644 --- a/content/incompleteness/representability-in-q/minimization-representable.tex +++ b/content/incompleteness/representability-in-q/minimization-representable.tex @@ -55,9 +55,9 @@ \begin{align} \Th{Q} & \Proves \eq[(a' + \num n')][(a' + \num n)'] \quad \text{by axiom $!Q_5$} \ollabel{step5}\\ - \Th{Q} & \Proves \eq[(a' + \num n')][(a + \num n')'] \quad - \text{inductive hypothesis} \ollabel{step6}\\ \Th{Q} & \Proves \eq[(a' + \num n)'][(a + \num n')'] \quad + \text{inductive hypothesis, $!Q_5$, and identity} \ollabel{step6}\\ + \Th{Q} & \Proves \eq[(a' + \num n')][(a + \num n')'] \quad \text{by \olref{step5} and \olref{step6}.} \notag \end{align} \end{proof} @@ -176,7 +176,7 @@ If $\eq[(c' + b)][\num{m}]$, then also $\eq[(c' + b)'][\num{m}']$. By $!Q_5$, $\eq[(c' + b)'][(c' + b')]$. Hence, $\eq[(c' + b')][\num{m}']$. We get $\lexists[u][\eq[(u' + b')][\num{m+1}]]$ by -existentially generalizing on~$c'$ and keeping in mind that $\num{m}' +existentially generalizing on~$c$ and keeping in mind that $\num{m}' \ident \num{m+1}$. Hence, if $b < \num{m}$ then $b' < \num{m+1}$ and so $a < \num{m+1}$. diff --git a/content/incompleteness/representability-in-q/prim-rec.tex b/content/incompleteness/representability-in-q/prim-rec.tex index 5471d7e87..13cc9d013 100644 --- a/content/incompleteness/representability-in-q/prim-rec.tex +++ b/content/incompleteness/representability-in-q/prim-rec.tex @@ -11,8 +11,7 @@ Now we can show that definition by primitive recursion can be ``simulated'' by regular minimization using the beta function. Suppose -we have $f(\vec x)$ and $g(\vec x, y, z)$. Then the function~$h(x,\vec -z)$ defined from $f$ and~$g$ by primitive recursion is +we have $f(\vec x)$ and $g(\vec x, y, z)$. Then the function~$h(\vec x,y)$ defined from $f$ and~$g$ by primitive recursion is \begin{align*} h(\vec x, 0) & = f(\vec x) \\ h(\vec x, y+1) & = g(\vec x, y, h(\vec x, y)). @@ -38,7 +37,7 @@ \item for each $i < y$, $(d)_{i+1} = g(\vec x, i, (d)_i)$, \end{enumerate} where now $(d)_i$ is short for $\beta(d,i)$. In other words, $\hat h$ -returns the sequence $\tuple{h(\vec x, 0), h(\vec x, 1), \dots, h(\vec +returns a code for the sequence $\tuple{h(\vec x, 0), h(\vec x, 1), \dots, h(\vec x, y)}$. We can write $\hat h$ as \[ \hat h(\vec x, y) = \umin{d}{(\beta(d,0) = f(\vec x) \land \bforall{i < @@ -52,7 +51,7 @@ \[ h(\vec x, y) = \beta(\hat h(\vec x, y), y), \] -so $h$ can be defined from the basic functions using just composition +so $h$ can be defined from $f$, $g$, and the basic functions using just composition and regular minimization. \end{proof} diff --git a/content/incompleteness/representability-in-q/representable-comp.tex b/content/incompleteness/representability-in-q/representable-comp.tex index 422ff1618..815c7ec36 100644 --- a/content/incompleteness/representability-in-q/representable-comp.tex +++ b/content/incompleteness/representability-in-q/representable-comp.tex @@ -16,7 +16,7 @@ \begin{lem}\ollabel{lem:rep-q} If $f(x_0, \dots, x_k)$ is representable in~$\Th{Q}$, there is - !!a{formula}~$!A(x_0, \dots, x_k, y)$ such that + !!a{formula}~$!A_f(x_0, \dots, x_k, y)$ such that \[ \Th{Q} \Proves !A_f(\num{n_0}, \dots, \num{n_k}, \num{m}) \quad\text{iff}\quad m = f(n_0, \dots, n_k). @@ -96,8 +96,8 @@ \] If we can find an~$s$ such that $R(n_0, \dots, n_k, s)$ holds, we have found a pair of numbers---$(s)_0$ and~$(s)_1$---such that $(s)_0$ is -the G\"odel number of !!a{derivation} of~$A_f(\num{n_0}, \dots, -\num{n_k}, (s)_1)$. So looking for~$s$ is like looking for the pair +the G\"odel number of !!a{derivation} of~$!A_f(\num{n_0}, \dots, +\num{n_k}, \num{(s)_1})$. So looking for~$s$ is like looking for the pair $d$ and $m$ in the informal proof. And a computable function that ``looks for'' such an $s$ can be defined by regular minimization. Note that $R$ is regular: for every $n_0$, \dots, $n_k$, there is diff --git a/content/incompleteness/representability-in-q/sigma1-completeness.tex b/content/incompleteness/representability-in-q/sigma1-completeness.tex index 0e68769ff..3d78ee2cd 100644 --- a/content/incompleteness/representability-in-q/sigma1-completeness.tex +++ b/content/incompleteness/representability-in-q/sigma1-completeness.tex @@ -23,11 +23,11 @@ \begin{defn} \ollabel{defn:bd-quant} A \emph{bounded existential !!{formula}} is one of the form -$\lexists[x][(x < t \land !A(x))]$ where $t$ is any term, which we +$\lexists[x][(x < t \land !A(x))]$ where $t$ is a term not containing $x$, which we conventionally write as $\bexists{x < t}{!A(x)}$. % A \emph{bounded universal !!{formula}} is one of the form -$\lforall[x][(x < t \lif !A(x))]$ where $t$ is any term, which we +$\lforall[x][(x < t \lif !A(x))]$ where $t$ is a term not containing $x$, which we conventionally write as $\bforall{x < t}{!A(x)}$. \end{defn} @@ -113,7 +113,7 @@ $m = \Value{t_2}{N}$. Suppose $!A \ident t_1 = t_2$. By \olref{lem:q-proves-clterm-id}, -$\Th{Q} \Proves \eq[t_1][\num n]$ and $\Th{Q} \Proves \eq[t_2][\num n]$. +$\Th{Q} \Proves \eq[t_1][\num n]$ and $\Th{Q} \Proves \eq[t_2][\num m]$. If $n = m$, then $\Th{Q} \Proves \eq[\num n][\num m]$ and hence $\Th{Q} \Proves \eq[t_1][t_2]$ by the transitivity of identity. If $n \neq m$ then $\Th{Q} \Proves \eq/[\num n][\num m]$, @@ -128,7 +128,7 @@ such that $n + k + 1 = m$. By \olref{lem:q-proves-clterm-id}, $\Th{Q} \Proves \eq[t_1][\num n]$ and $\Th{Q} \Proves \eq[t_2][\num m]$, and by the first part of this lemma, -$\Th{Q} \Proves \eq[\num n + {\num k}'][\num m]$. +$\Th{Q} \Proves \eq[{\num k}' + \num n][\num m]$. By the transitivity of identity it follows that $\Th{Q} \Proves \eq[{\num k}' + t_1][t_2]$, so $\Th{Q} \Proves \lexists[z][\eq[z' + t_1][t_2]]$. @@ -141,11 +141,11 @@ Since $\Th{Q} \Proves \eq[t_1][\num n]$ and $\Th{Q} \Proves \eq[t_2][\num m]$, $\eq[z' + \num n][\num m]$. % -By an external induction on~$m$ using~$!Q_5$, +By an external induction on~$m$ using~$!Q_5$ and~$!Q_1$, $\eq[z' + \num{n - m}][\Obj 0]$. -If $m = n$ then $\eq/[z'][\Obj 0]$, giving a contradiction via~$!Q_3$. +If $m = n$ then $\eq[z'][\Obj 0]$ by~$!Q_4$, giving a contradiction via~$!Q_2$. If $m < n$ then $\eq[(z' + \num{n - m - 1})'][\Obj 0]$ by~$!Q_5$ again, -giving a contradiction via~$!Q_3$. +giving a contradiction via~$!Q_2$. So $\Th{Q} \Proves \lnot(t_1 < t_2)$. \end{proof} @@ -204,7 +204,10 @@ \end{lem} \begin{proof} -We prove this by induction on !!{formula} complexity. +First replace the other propositional connectives by their usual +expressions using $\lnot$, $\land$, and $\lor$; truth constants are +handled by logic. We induct on the number of these connectives and +bounded quantifiers. Substituting numerals does not change this number. % The base case is given by \olref{lem:atomic-completeness}, so we move to the induction step. For simplicity we split From a7de11cb1b3ab2d6c340f7a4556746d37dab5c0b Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:33 +0100 Subject: [PATCH 5/5] incompleteness/theories-computability: corrections (12 places) complete-decidable.tex: - l. 34, 36: The theory contains sentences; the equivalence is on sentence codes. Non-sentence codes need separate handling in the complement in all N. computably-axiomatizable.tex: - l. 26: Proof search semi-decides membership; it need not halt for a non-theorem. extensions-of-q-not-decidable.tex: - l. 60, 65: S is a numerical computable relation, so its argument is natural number n; numerals belong in the representing object-language formula D_S. inseparability.tex: - l. 36, 41: The relation S is applied to the number n, not to its numeral. - l. 45: The code must name the one-free-variable formula D_S(u); u is a variable, not a natural number for numeralization. interpretability.tex: - l. 37: 'There is no decidable extension of ZFC': the inconsistent extension is decidable. 'consistent, decidable'. q-is-ce.tex: - l. 30, 46: No indexed algorithm A_x is defined here; formal earlier K uses cfind_x(x) definedness. - l. 49: The final reduction must use object-language representing formula A_T, not metatheoretic Kleene predicate T. Co-Authored-By: Claude Opus 5.5 --- .../theories-computability/complete-decidable.tex | 6 ++++-- .../computably-axiomatizable.tex | 5 +++-- .../extensions-of-q-not-decidable.tex | 4 ++-- .../theories-computability/inseparability.tex | 6 +++--- .../theories-computability/interpretability.tex | 2 +- .../theories-computability/q-is-ce.tex | 12 ++++++++---- 6 files changed, 21 insertions(+), 14 deletions(-) diff --git a/content/incompleteness/theories-computability/complete-decidable.tex b/content/incompleteness/theories-computability/complete-decidable.tex index b19c4c48e..2ecc8211e 100644 --- a/content/incompleteness/theories-computability/complete-decidable.tex +++ b/content/incompleteness/theories-computability/complete-decidable.tex @@ -31,9 +31,11 @@ Put in different terms, we already know that $\Th{T}$ is !!{c.e.}; so by a theorem we proved before, it suffices to show that the complement -of~$\Th{T}$ is !!{c.e.} also. But !!a{formula}~$!A$ is in~$\Th{\bar +of~$\Th{T}$ is !!{c.e.} also. But !!a{sentence}~$!A$ is in~$\Th{\bar T}$ if and only if $\lnot !A$ is in~$\Th{T}$; so $\Th{\bar T} \leq_m -\Th{T}$. +\Th{T}$. Here this complement is taken among sentence codes. +Non-sentence codes form a decidable set, so adjoining them gives a +computably enumerable complement in all of $\Nat$. \end{proof} \end{document} diff --git a/content/incompleteness/theories-computability/computably-axiomatizable.tex b/content/incompleteness/theories-computability/computably-axiomatizable.tex index 96992303b..a0ee95d58 100644 --- a/content/incompleteness/theories-computability/computably-axiomatizable.tex +++ b/content/incompleteness/theories-computability/computably-axiomatizable.tex @@ -23,8 +23,9 @@ \end{lem} \begin{proof} -Suppose $A$ is a computable set of axioms for $\Th{T}$. To determine -if $!A \in T$, just search for !!a{derivation} of $!A$ from the axioms. +Suppose $A$ is a computable set of axioms for $\Th{T}$. To semi-decide +if $!A \in T$, search for !!a{derivation} of $!A$ from the axioms; +accept if one is found. The search need not terminate otherwise. Put slightly differently, $!A$ is in $\Th{T}$ if and only if there is a finite list of axioms $!B_1$, \dots, $!B_k$ in $A$ and !!a{derivation} of diff --git a/content/incompleteness/theories-computability/extensions-of-q-not-decidable.tex b/content/incompleteness/theories-computability/extensions-of-q-not-decidable.tex index cc78dc914..47e731d99 100644 --- a/content/incompleteness/theories-computability/extensions-of-q-not-decidable.tex +++ b/content/incompleteness/theories-computability/extensions-of-q-not-decidable.tex @@ -57,12 +57,12 @@ it is representable in $\Th{Q}$ (and hence $\Th{T}$) by a formula $!D_S(u)$. Then for every $n$, we have \begin{eqnarray*} -S(\num n) & \lif & T \vdash !D_S(\num n) \\ +S(n) & \lif & T \vdash !D_S(\num n) \\ & \lif & R(\Gn{!D_S(u)}, n) \end{eqnarray*} and \begin{eqnarray*} -\lnot S(\num n) & \lif & T \vdash \lnot !D_S(\num n) \\ +\lnot S(n) & \lif & T \vdash \lnot !D_S(\num n) \\ & \lif & T \not\vdash !D_S(\num n) \quad \text{(since $\Th{T}$ is consistent)} \\ & \lif & \lnot R(\Gn{!D_S(u)}, n). diff --git a/content/incompleteness/theories-computability/inseparability.tex b/content/incompleteness/theories-computability/inseparability.tex index 30d205fb2..e529df15e 100644 --- a/content/incompleteness/theories-computability/inseparability.tex +++ b/content/incompleteness/theories-computability/inseparability.tex @@ -33,16 +33,16 @@ Suppose $S(y)$ is computable, represented by $!D_S(u)$ in $\Th{Q}$. Then \begin{eqnarray*} -S(\num n) & \lif & \Th{Q} \Proves !D_S(\num n) \\ +S(n) & \lif & \Th{Q} \Proves !D_S(\num n) \\ & \lif & !D_S(\num n) \in C \end{eqnarray*} and \begin{eqnarray*} -\lnot S(\num n) & \lif & \Th{Q} \Proves \lnot !D_S(\num n) \\ +\lnot S(n) & \lif & \Th{Q} \Proves \lnot !D_S(\num n) \\ & \lif & !D_S(\num n) \in \Th{\bar Q} \\ & \lif & !D_S(\num n) \not\in C \end{eqnarray*} -So $S(y)$ is equivalent to $R(\#(!D_S(\num u)),y)$. +So $S(y)$ is equivalent to $R(\#(!D_S(u)),y)$. \end{proof} \end{document} diff --git a/content/incompleteness/theories-computability/interpretability.tex b/content/incompleteness/theories-computability/interpretability.tex index 56264246a..2f6e615f6 100644 --- a/content/incompleteness/theories-computability/interpretability.tex +++ b/content/incompleteness/theories-computability/interpretability.tex @@ -34,7 +34,7 @@ axioms of $\Th{Q}$ are true. So we have \begin{cor} -There is no decidable extension of $\Th{ZFC}$. +There is no consistent, decidable extension of $\Th{ZFC}$. \end{cor} \begin{cor} diff --git a/content/incompleteness/theories-computability/q-is-ce.tex b/content/incompleteness/theories-computability/q-is-ce.tex index 9efd98be5..551ab4f6c 100644 --- a/content/incompleteness/theories-computability/q-is-ce.tex +++ b/content/incompleteness/theories-computability/q-is-ce.tex @@ -27,7 +27,7 @@ recursive), and any set that can be written in the above form is c.e. Saying that it is a complete c.e.\ set is equivalent to saying that $K -\leq_m Q$, where $K = \Setabs{x}{!A_x(x) \downarrow}$. So let us show +\leq_m Q$, where $K = \Setabs{x}{\cfind{x}(x) \fdefined}$. So let us show that $K$ is reducible to $\Th{Q}$. Since Kleene's predicate $T(e,x,s)$ is primitive recursive, it is representable in $\Th{Q}$, say, by $!A_T$. Then for every $x$, we have @@ -43,11 +43,15 @@ $\Th{Q}$ would prove $\lnot !A_T(\num x, \num x, \num n)$, since $!A_T$ represents $T$. But then $\Th{Q}$ proves a false formula, which is a contradiction. So $T(x,x,n)$ must be true, which implies -$!A_x(x) \downarrow$. +$\cfind{x}(x) \fdefined$. In short, we have that for every $x$, $x$ is in $K$ if and only if -$\Th{Q}$ proves $\lexists[s][T(\num x,\num x,s)]$. So the function $f$ -which takes $x$ to (a code for) the sentence $\lexists[s][T(\num x, +$\Th{Q}$ proves +\[ +\lexists[s][!A_T(\num x,\num x,s)]. +\] +So the function $f$ +which takes $x$ to (a code for) the sentence $\lexists[s][!A_T(\num x, \num x, s)]$ is a reduction of $K$ to $\Th{Q}$. \end{proof}