Skip to content

Commit 7ae67c2

Browse files
committed
more detail in inc/artihmetization-of-syntax
1 parent b5d78d1 commit 7ae67c2

3 files changed

Lines changed: 117 additions & 27 deletions

File tree

incompleteness/arithmetization-syntax/coding-formulas.tex

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,19 @@
1717
\begin{proof}
1818
The number $x$ is the G\"odel number of an atomic !!{formula} iff
1919
\begin{enumerate}
20-
\item there are $n$, $j < x$, and $z_1$, \dots, $z_n < x$ such that
20+
\item there are $n$, $j < x$, and $z < x$ such that for each $i < n$,
21+
$\fn{Term}((z)_i)$ and
2122
\[
22-
x = \Gn{\Obj P^n_j(} \concat z_1 \concat \Gn{,} \concat \dots \concat
23-
\Gn{,} \concat z_n \concat \Gn{)}
23+
x = \Gn{\Obj P^n_j(} \concat \fn{flatten}(z) \concat \Gn{)} \text{, or}
2424
\]
25-
and for each $l < n$, $z_l$ is the G\"odel number of a term, or
26-
\item there are $z1, z_2 < x$ such that $x = z_1 \concat \Gn{\eq}
27-
\concat \eq z_2$ and $z_1$ and $z_2$ are terms.
25+
\item there are $z_1, z_2 < x$ such that $x = z_1 \concat \Gn{\eq}
26+
\concat \eq z_2$ and $\fn{Term}(z_1)$ and $\fn{Term}(z_2)$.
2827
\end{enumerate}
2928
\end{proof}
3029

3130
\begin{prop}
3231
The relation $\fn{Frm}(x)$ which holds iff $x$ is the G\"odel number
33-
of a !!a{formula} is primitive recursive.
32+
of !!a{formula} is primitive recursive.
3433
\end{prop}
3534

3635
\begin{proof}

incompleteness/arithmetization-syntax/coding-terms.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
A sequence of symbols~$s$ is a term iff there is a sequence~$s_0$,
3030
\dots, $s_{k-1} = s$ of terms which records how the term~$s$ was formed
3131
from !!{constant}s and !!{variable}s according the the formation rules
32-
for terms. To express that a putative such formation sequence follows
32+
for terms. To express that such a putative formation sequence follows
3333
the formation rules it has to be the case that, for each $i < k$, either
3434
\begin{enumerate}
3535
\item $s_i$ is a variable~$\Obj v_j$, or
@@ -43,22 +43,23 @@
4343
bounded quantification.
4444

4545
Suppose $y$ is the number that codes the sequence $s_0$, \dots, $s_{k-1}$,
46-
i.e., $S = \tuple{\Gn{s_0}, \dots, \Gn{s_k}}$. It codes a formation
46+
i.e., $y = \tuple{\Gn{s_0}, \dots, \Gn{s_k}}$. It codes a formation
4747
sequence for the term with G\"odel number~$x$ iff for all $i < k$:
4848
\begin{enumerate}
4949
\item there is a $j$ such that $(y)_i = \Gn{\Obj v_j}$, or
5050
\item there is a $j$ such that $(y)_i = \Gn{\Obj c_j}$, or
5151
\item there is an $n$ and a number~$z = \tuple{z_1, \dots, z_n}$ such
5252
that each $z_l$ is equal to some $(y)_{i'}$ for $i' < i$ and
5353
\[
54-
(y)_i = \Gn{\Obj f^n_j(} \concat z_1 \concat \Gn{,} \concat \dots
55-
\concat \Gn{,} \concat z_n \concat \Gn{)},
54+
(y)_i = \Gn{\Obj f^n_j(} \concat \fn{flatten}(z) \concat \Gn{)},
5655
\]
5756
\end{enumerate}
58-
and moreover $s_{k-1} = x$.
57+
and moreover $(y)_{k-1} = x$. The function
58+
$\fn{flatten}(z)$ turns the sequence $\tuple{\Gn{t_1}, \dots,
59+
\Gn{t_n}}$ into $\Gn{t_1, \dots, t_n}$ and is primitive recursive.
5960

6061
The indices $j$, $n$, the G\"odel numbers $z_l$ of the terms $t_l$,
61-
and the code~$z$ of the sequence~$\tuple{t_1, \dots, t_n}$, in (3) are
62+
and the code~$z$ of the sequence~$\tuple{z_1, \dots, z_n}$, in (3) are
6263
all less than~$y$. We can replace $k$ above with $\len{y}$. Hence we
6364
can express ``$y$ is the code of a formation sequence of the term with
6465
G\"odel number~$x$'' in a way that shows that this relation is

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

Lines changed: 104 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,53 +23,143 @@
2323
\begin{enumerate}
2424
\item $\tuple{0, \Gn{\Gamma \Sequent \Delta}}$ if $\Pi$ consists only
2525
of the initial sequent $\Gamma \Sequent \Delta$.
26-
\item $\tuple{1, k, \Gn{\Gamma \Sequent \Delta}, \Gn{\Pi'}}$ if $\Pi$
26+
\item $\tuple{1, \Gn{\Gamma \Sequent \Delta}, k, \Gn{\Pi'}}$ if $\Pi$
2727
ends in an inference with one premise, $k$ is given by the following
2828
table according to which rule was used in the last inference, and
2929
$\Pi'$ is the immediate subproof ending in the premise of the last
3030
inference.
3131

32-
\begin{tabular}{lcccccc}
32+
\begin{tabular}{lccccccc}
3333
\text{Rule:} & \text{Contr} & $\lnot$ left & $\lnot$ right &
34-
$\land$ left$_{1}$ & $\land$ left$_{2}$ & $\lor$ right$_1$ \\
34+
$\land$ left & $\lor$ right & $\lif$ right \\
3535
$k$: & 1 & 2 & 3 & 4 & 5 & 6 \\[2ex]
36-
\text{Rule:} & $\lor$ right$_2$ & $\lif$ right & $\lforall$ left &
37-
$\lforall$ right & $\lexists$ left & $\lexists$ right \\
38-
$k$: & 7 & 8 & 9 & 10 & 11 & 12
36+
\text{Rule:} & $\lforall$ left &
37+
$\lforall$ right & $\lexists$ left & $\lexists$ right & = \\
38+
$k$: & 7 & 8 & 9 & 10 & 11
3939
\end{tabular}
40-
\item $\tuple{2, k, \Gn{\Gamma \Sequent \Delta}, \Gn{\Pi'},
40+
\item $\tuple{2, \Gn{\Gamma \Sequent \Delta}, k, \Gn{\Pi'},
4141
\Gn{\Pi''}}$ if $\Pi$ ends in an inference with two premises, $k$ is
4242
given by the following table according to which rule was used in the
4343
last inference, and $\Pi'$, $\Pi''$ are the the immediate subproof
4444
ending in the laft and right premise of the last inference,
4545
respectively.
4646

47-
\begin{tabular}{lcccccccccccc}
48-
\text{Rule:} & \text{Cut} & $\land$ right & $\lor$ left & $\lif$ left & $=$\\
49-
$k$: & 1 & 2 & 3 & 4 & 5
47+
\begin{tabular}{lcccc}
48+
\text{Rule:} & \text{Cut} & $\land$ right & $\lor$ left & $\lif$ left \\
49+
$k$: & 1 & 2 & 3 & 4
5050
\end{tabular}
5151
\end{enumerate}
5252
\end{defn}
5353

5454
\begin{prop}
55+
\ollabel{prop:followsby}
5556
The following relations are primitive recursive:
5657
\begin{enumerate}
5758
\item $!A \in \Gamma$.
5859
\item $\Gamma \Sequent \Delta$ is an initial sequent.
5960
\item $\Gamma \Sequent \Delta$ follows from $\Gamma' \Sequent \Delta'$
60-
(and $\Gamma' \Sequent \Delta'$) by a rule of $\Log{LK}$.
61+
(and $\Gamma'' \Sequent \Delta''$) by a rule of $\Log{LK}$.
6162
\item $\Pi$ is a correct $\Log{LK}$-!!{derivation}.
6263
\end{enumerate}
6364
\end{prop}
6465

6566
\begin{proof}
66-
Exercise.
67+
\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})]$.
72+
\item Here we have to show that for each rule of inference~$R$ the
73+
relation $\fn{FollowsBy}_R(s, s')$ which holds if $s$ and $s'$ are
74+
the G\"odel numbers of conclusion and premise of a correct
75+
application of~$R$ is primitive recursive. If $R$ has two premises,
76+
$\fn{FollowsBy}_R$ of course has three arguments.
77+
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
82+
every $!B \in \Delta$, either $!B = \lexists[x][!A]$ or $!B \in
83+
\Gamma'$. 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:
86+
\begin{align*}
87+
\fn{FollowsBy}_{\lexists \text{right}}(s, s') \defiff {} &
88+
\lexists[f<s][\lexists[x<s][\lexists[t<s'][(\fn{Frm}(f) \land \fn{Var}(x) \land \fn{Term}(t) \land {}]]] \\
89+
& \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)])
91+
\end{align*}
92+
\item We first define a helper relation $\fn{hDeriv}(s,n)$ which holds
93+
if $s$ codes a correct derivation at least to $n$ inferences up from
94+
the end sequent. If $n=0$ we let the relation be satisfied by
95+
default. Otherwise, $\fn{hDeriv}(s, n+1)$ iff either $s$ consists
96+
just of an initial sequent, or it ends in a correct inference and
97+
the codes of the immediate sub!!{derivation}s satisfy
98+
$\fn{nDeriv}(s, n)$.
99+
\begin{align*}
100+
\fn{nDeriv}(s, 0) \defiff {} & \True\\
101+
\fn{nDeriv}(s, n+1) \defiff {} & ((s)_0 = 0 \land \fn{InitialSeq}((s)_1)) \lor{}\\
102+
& ((s)_0 = 1 \land {}\\
103+
& \quad ((s)_2 = 1 \land \fn{FollowsBy}_{\text{Contr}}((s)_1, ((s)_3)_1)) \lor{}\\
104+
& \qquad \vdots\\
105+
& \quad ((s)_2 = 11 \land \fn{FollowsBy}_{=}((s)_1, ((s)_3)_1)) \land {}\\
106+
& \quad \fn{nDeriv}((s)_3, n)) \lor {}\\
107+
& ((s)_0 = 2 \land {}\\
108+
& \quad ((s)_2 = 1 \land \fn{FollowsBy}_{\text{Cut}}((s)_1, ((s)_3)_1), ((s)_4)_1)) \lor{}\\
109+
& \qquad \vdots\\
110+
& \quad ((s)_2 = 4 \land \fn{FollowsBy}_{\lif\text{left}}((s)_1, ((s)_3)_1), ((s)_4)_1)) \land {}\\
111+
& \quad \fn{nDeriv}((s)_3, n) \land \fn{nDeriv}((s)_4, n))
112+
\end{align*}
113+
This is a primitive recursive definition, if the number~$n$ is large
114+
enough, e.g., larger than the maximum number of inferences between an
115+
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
117+
$\fn{Deriv}(s)$ by $\fn{nDeriv}(s,s)$.
118+
\end{enumerate}
67119
\end{proof}
68120

121+
\begin{prob}
122+
Define the following relations as in
123+
\olref[inc][art][plk]{prop:followsby}:
124+
\begin{enumerate}
125+
\item $\fn{FollowsBy}_{\land\text{right}}(s, s', s'')$,
126+
\item $\fn{FollowsBy}_{\eq}(s, s')$,
127+
\item $\fn{FollowsBy}_{\lforall\text{right}}(s, s', s'')$.
128+
\end{enumerate}
129+
\end{prob}
130+
69131
\begin{prop}
70132
Suppose $\Gamma$ is a primitive recursive set of !!{sentence}s. Then
71-
the relation ``$\Pi$ is !!a{derivation} of $\Gamma_0 \Sequent !A$ for
72-
some finite $\Gamma_0 \subseteq \Gamma$'' is primitive recursive.
133+
the relation $\fn{Pr}_\Gamma(x, y)$ expressing ``$x$ is the G\"odel
134+
number of a sentence~$!A$ and $y$ is the code of !!a{derivation}~$\Pi$
135+
of $\Gamma_0 \Sequent !A$ for some finite $\Gamma_0 \subseteq
136+
\Gamma$'' is primitive recursive.
73137
\end{prop}
74138

139+
\begin{proof}
140+
Suppose ``$x \in \Gamma$'' is given by the primitive recursive
141+
predicate~$R_\Gamma(x)$. We have to show that $\fn{Pr}_\Gamma(x, y)$
142+
which holds iff $x$ is the G\"odel number of a sentence~$!A$ and $y$
143+
is the code of an $\Log{LK}$-!!{derivation} with end sequent
144+
$\Gamma_0 \Sequent !A$ is primitive recursive.
145+
146+
By the previous proposition, the property $\fn{Deriv}(y)$ which holds
147+
iff $y$`is the code of a correct derivation~$\Pi$ in $\Log{LK}$ is
148+
primitive recursive. If $y$ is such a code, then $(y)_1$ is the code
149+
of the end sequent of`$\Pi$, and so $((y)_1)_0$ is the code of the
150+
left side of the end sequent and $((y)_1)_1$ the right side. So we can
151+
express ``the right side of the end sequent of~$\Pi$ is~$!A$'' as
152+
$\len{((y)_1)_1} = 1 \land (((y)_1)_1)_0 = x$. The left side of the
153+
end sequent of $\Pi$ is of course automatically finite, we just have
154+
to express that every sentence in it is in~$\Gamma$. Thus we can
155+
define $\fn{Pr}_\Gamma(x, y)$ by
156+
\begin{align*}
157+
\Prov_\Gamma(x, y) \defiff {}&
158+
\fn{Sent}(x) \land \fn{Deriv}(y) \land {} \\
159+
& \lforall[i <
160+
\len{((y)_1)_0}][(((y)_1)_0)_i \in \Gamma] \land {}\\
161+
& \len{((y)_1)_1} = 1 \land (((y)_1)_1)_0 = x
162+
\end{align*}
163+
\end{proof}
164+
75165
\end{document}

0 commit comments

Comments
 (0)