Skip to content

Commit 07cc392

Browse files
committed
typos, more explanation in incompleteness/arithmetization-syntax/proofs-in-lk.tex
1 parent 0323bf6 commit 07cc392

4 files changed

Lines changed: 71 additions & 30 deletions

File tree

computability/recursive-functions/halting-problem.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
\end{cases}
4646
\]
4747
Note that $h(e, x) = 0$ if $\cfind{e}(x) \undefined$, but also
48-
when~$e$ is not he index of a partial recursive function at all.
48+
when~$e$ is not the index of a partial recursive function at all.
4949

5050
\begin{thm}
5151
\ollabel{thm:halting-problem}
52-
$h$ is not partial recursive.
52+
The halting function~$h$ is not partial recursive.
5353
\end{thm}
5454

5555
\begin{proof}

incompleteness/arithmetization-syntax/proofs-in-lk.tex

Lines changed: 52 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
The following relations are primitive recursive:
5757
\begin{enumerate}
5858
\item $!A \in \Gamma$.
59+
\item $\Gamma \subseteq \Delta$.
5960
\item $\Gamma \Sequent \Delta$ is an initial sequent.
6061
\item $\Gamma \Sequent \Delta$ follows from $\Gamma' \Sequent \Delta'$
6162
(and $\Gamma'' \Sequent \Delta''$) by a rule of $\Log{LK}$.
@@ -64,31 +65,67 @@
6465
\end{prop}
6566

6667
\begin{proof}
68+
We have to show that the corresponding relations between G\"odel
69+
numbers of !!{formula}s, sequences of G\"odel numbers of !!{formula}s
70+
(which code sets of !!{formula}s), and G\"odel numbers of sequents,
71+
are primitive recursive.
6772
\begin{enumerate}
68-
\item $\fn{IsIn}(x, g) = \lexists[i < \len{g}][(g)_i = x]$.
69-
\item $\fn{InitSeq}(s) = \lexists[x < s][(\fn{Sent}(x) \land s =
70-
\tuple{\tuple{x},\tuple{x}})] \lor \lexists[t<s][(\fn{Term}(t) \land
71-
s = \tuple{0, t\concat \eq \concat t})]$.
73+
\item $!A \in \Gamma$ iff $\Gn{!A}$ occurs in the
74+
sequence~$\Gn{\Gamma}$, i.e, $\fn{IsIn}(x, g) \defiff \lexists[i <
75+
\len{g}][(g)_i = x]$. We'll abbreviate this as $x \in g$.
76+
\item $\Gamma \subseteq \Delta$ iff every element of $\Gn{\Gamma}$ is
77+
also an an element of $\Gn{\Delta}$, i.e., $\fn{SubSet}(g, d)
78+
\defiff \lforall[i < \len{g}][(g)_i \in d]$. We'll abbreviate this
79+
as $g \subseteq d$.
80+
\item $\Gamma \Sequent \Delta$ is an initial sequent if either there
81+
is a !!{sentence}~$!A$ such that $\Gamma \Sequent \Delta$ is $!A
82+
\Sequent !A$, or there is a term~$t$ such that $\Gamma \Sequent
83+
\Delta$ is $\emptyset \Sequent \eq[t][t]$. In terms of G\"odel
84+
numbers,
85+
\begin{align*}
86+
\fn{InitSeq}(s) \defiff &
87+
\lexists[x < s][(\fn{Sent}(x) \land
88+
s = \tuple{\tuple{x},\tuple{x}})]
89+
\lor {}\\
90+
& \lexists[t<s][(\fn{Term}(t) \land
91+
s = \tuple{0, t\concat \Gn{\eq} \concat t})].
92+
\end{align*}
7293
\item Here we have to show that for each rule of inference~$R$ the
7394
relation $\fn{FollowsBy}_R(s, s')$ which holds if $s$ and $s'$ are
7495
the G\"odel numbers of conclusion and premise of a correct
7596
application of~$R$ is primitive recursive. If $R$ has two premises,
7697
$\fn{FollowsBy}_R$ of course has three arguments.
7798

78-
For instance, $\Gamma \Sequent \Delta$ follows from $\Gamma' \Sequent
79-
\Delta'$ by $\lexists$right iff there is a formula~$!A$, a
80-
variable~$x$ and a closed term~$t$ such that $\Gamma = \Gamma'$,
81-
$\Subst{!A}{t}{x} \in \Delta'$, $\lexists[x][!A] \in \Delta$, and for
99+
For instance, $\Gamma \Sequent \Delta$ follows correctly from $\Gamma'
100+
\Sequent \Delta'$ by $\lexists$right iff $\Gamma = \Gamma'$ and there
101+
is a formula~$!A$, a variable~$x$ and a closed term~$t$ such that
102+
$\Subst{!A}{t}{x} \in \Delta'$ and $\lexists[x][!A] \in \Delta$, for
82103
every $!B \in \Delta$, either $!B = \lexists[x][!A]$ or $!B \in
83-
\Delta'$. We just have to translate into G\"odel numbers. If $s =
84-
\Gn{\Gamma \Sequent \Delta}$ then $(s)_0 = \Gn{\Gamma}$ and $(s)_1 =
85-
\Gn{\Gamma}$. So:
104+
\Delta'$, and for every $!B \in \Delta'$, $!B = \Subst{!A}{t}{x}$ or
105+
$!B \in \Delta$. We just have to translate this into G\"odel numbers.
106+
If $s = \Gn{\Gamma \Sequent \Delta}$ then $(s)_0 = \Gn{\Gamma}$ and
107+
$(s)_1 = \Gn{\Delta}$. So:
86108
\begin{align*}
87109
\fn{FollowsBy}_{\lexists \text{right}}(s, s') \defiff {} &
110+
(s)_0 \subseteq (s')_0 \land (s')_0 \subseteq (s)_0 \land {}\\
111+
&
88112
\lexists[f<s][\lexists[x<s][\lexists[t<s'][(\fn{Frm}(f) \land \fn{Var}(x) \land \fn{Term}(t) \land {}]]] \\
89113
& \fn{Subst}(f,t,x) \in (s')_1 \land \#(\lexists) \concat x \concat f \in (s)_1 \land {}\\
90-
& \lforall[i < \len{(s)_1}][(((s)_1)_i = \#(\lexists) \concat x \concat f \lor ((s)_1)_i \in (s')_1)])
114+
& \lforall[i < \len{(s)_1}][(((s)_1)_i = \#(\lexists) \concat x \concat f \lor ((s)_1)_i \in (s')_1)] \land {} \\
115+
& \lforall[i < \len{(s')_1}][(((s)_1')_i = \fn{Subst}(f, t, x) \lor ((s')_1)_i \in (s)_1)])
91116
\end{align*}
117+
The individual lines express, respectively, ``$\Gamma \subseteq
118+
\Gamma' \land \Gamma' \subseteq \Gamma$,'' ``there is a !!{formula}
119+
with G\"odel number~$f$, a variable with G\"odel number $x$, and a
120+
term with G\"odel number~$t$,'' ``$\Subst{!A}{t}{x} \in \Delta' \land
121+
\lexists[x][!A] \in \Delta$,'' ``for all $!B \in \Delta$, either $!B =
122+
\lexists[x][!A]$ or $!B \in \Delta'$,'' ``for all $!B \in \Delta'$,
123+
either $!B = \Subst{!A}{t}{x}$ or $!B \in \Delta$. Note that in the
124+
last two lines, we quantify over the elements~$!B$ of~$\Delta$ and
125+
$\Delta'$ not directly, but via their place~$i$ in the G\"odel numbers
126+
of $\Delta$ and $\Delta'$. (Remember that $\Gn{\Delta}$ is the number
127+
of a sequence of G\"odel numbers of !!{formula}s in $\Delta$.)
128+
92129
\item We first define a helper relation $\fn{hDeriv}(s,n)$ which holds
93130
if $s$ codes a correct derivation at least to $n$ inferences up from
94131
the end sequent. If $n=0$ we let the relation be satisfied by
@@ -110,10 +147,11 @@
110147
& \quad ((s)_2 = 4 \land \fn{FollowsBy}_{\lif\text{left}}((s)_1, ((s)_3)_1), ((s)_4)_1)) \land {}\\
111148
& \quad \fn{nDeriv}((s)_3, n) \land \fn{nDeriv}((s)_4, n))
112149
\end{align*}
113-
This is a primitive recursive definition, if the number~$n$ is large
150+
This is a primitive recursive definition. If the number~$n$ is large
114151
enough, e.g., larger than the maximum number of inferences between an
115152
initial sequent and the end sequent in~$s$, it holds of $s$ iff $s$ is
116-
the G\"odel number of a correct !!{derivation}. So we can now define
153+
the G\"odel number of a correct !!{derivation}. The number $s$ itself
154+
is larger than that maximum number of inferences. So we can now define
117155
$\fn{Deriv}(s)$ by $\fn{nDeriv}(s,s)$.
118156
\end{enumerate}
119157
\end{proof}

incompleteness/incompleteness-provability/tarski-thm.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
$\Th{Q}$ defines the same relation in $\Struct{N}$.
4343
\end{proof}
4444

45-
Now one can ask, is ``definable in $\Struct{N}$'' the same as
46-
``representable in $\Th{Q}$''? The answer is no. For example:
45+
Now one can ask, is the converse also true? That is, is every
46+
replation definable in~$\Struct{N}$ computable? The answer is no. For
47+
example:
4748

4849
\begin{lem}
4950
The halting relation is definable in $\Struct{N}$.

incompleteness/representability-in-q/undecidability.tex

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
We call a theory $\Th{T}$ \emph{undecidable} if there is no
1313
computational procedure which, after finitely many steps and
1414
unfailingly, provides a correct answer to the question ``does $\Th{T}$
15-
prove~$!A$'' for any sentence~$!A$ in the language of~$\Th{T}$. So
15+
prove~$!A$?'' for any sentence~$!A$ in the language of~$\Th{T}$. So
1616
$\Th{Q}$ would be decidable iff there were a computational procedure
1717
which decides, given a sentence~$!A$ in the language of arithmetic,
1818
whether $\Th{Q} \Proves !A$ or not. We can make this more precise by
@@ -30,23 +30,25 @@
3030
\end{thm}
3131

3232
\begin{proof}
33-
% You haven't defined omega-consistency yet but use it in this proof.
3433
Suppose it were. Then we could solve the halting problem as follows:
3534
Given $e$ and $n$, we know that $\cfind{e}(n) \defined$ iff there is
3635
an~$s$ such that $T(e, n, s)$, where $T$ is Kleene's predicate from
3736
\olref[cmp][rec][nft]{thm:kleene-nf}. Since $T$ is primitive recursive
3837
it is representable in~$\Th{Q}$ by a formula $!B_T$, that is, $\Th{Q}
3938
\Proves !B_T(\num{e}, \num{n}, \num{s})$ iff $T(e, n, s)$. If $\Th{Q}
40-
\Proves !B_T(\num{e}, \num{n}, \num{s})$ then also $
41-
\Th{Q} \Proves \lexists[y][!B_T(\num{e}, \num{n}, y)]$. If no such $s$
42-
exists, then $\Th{Q} \Proves \lnot !B_T(\num{e}, \num{n}, \num{s})$
43-
for every~$s$. Since $\Th{Q}$ is $\omega$-consistent, $\Th{Q} \Proves/
44-
\lexists[y][!B_T(\num{e}, \num{n}, y)]$. In other words,
45-
$\Th{Q} \Proves \lexists[y][!B_T(\num{e}, \num{n}, y)]$ iff
46-
there is an $s$ such that $T(e, n, s)$, i.e., iff $\cfind{e}(n)
47-
\defined$. From $e$ and~$n$ we can compute
48-
$\Gn{\lexists[y][!B_T(\num{e}, \num{n}, y)]}$, let $g(e, n)$
49-
be the primitive recursive function which does that. So
39+
\Proves !B_T(\num{e}, \num{n}, \num{s})$ then also $ \Th{Q} \Proves
40+
\lexists[y][!B_T(\num{e}, \num{n}, y)]$. If no such $s$ exists, then
41+
$\Th{Q} \Proves \lnot !B_T(\num{e}, \num{n}, \num{s})$ for
42+
every~$s$. But $\Th{Q}$ is $\omega$-consistent, i.e., if $\Th{Q}
43+
\Proves \lnot !A(\num{n})$ for every~$n \in \Nat$, then $\Th{Q}
44+
\Proves/ \lexists[y][!A(y)]$. We know this because the axioms of
45+
$\Th{Q}$ are true in the standard model~$\Struct{N}$. So, $\Th{Q}
46+
\Proves/ \lexists[y][!B_T(\num{e}, \num{n}, y)]$. In other words,
47+
$\Th{Q} \Proves \lexists[y][!B_T(\num{e}, \num{n}, y)]$ iff there is
48+
an $s$ such that $T(e, n, s)$, i.e., iff $\cfind{e}(n) \defined$.
49+
From $e$ and~$n$ we can compute $\Gn{\lexists[y][!B_T(\num{e},
50+
\num{n}, y)]}$, let $g(e, n)$ be the primitive recursive function
51+
which does that. So
5052
\[
5153
h(e, n) =
5254
\begin{cases}

0 commit comments

Comments
 (0)