diff --git a/content/incompleteness/arithmetization-syntax/coding-formulas.tex b/content/incompleteness/arithmetization-syntax/coding-formulas.tex index 336b55f7..c6d1d225 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 337b3c0f..99a4169f 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{n0$, 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 94a40947..f9b5ba53 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 027daff4..e85bc354 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 ec981380..7f71f4fa 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 5471d7e8..13cc9d01 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 422ff161..815c7ec3 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 0e68769f..3d78ee2c 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 diff --git a/content/incompleteness/theories-computability/complete-decidable.tex b/content/incompleteness/theories-computability/complete-decidable.tex index b19c4c48..2ecc8211 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 96992303..a0ee95d5 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 cc78dc91..47e731d9 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 30d205fb..e529df15 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 56264246..2f6e615f 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 9efd98be..551ab4f6 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}