|
23 | 23 | \begin{enumerate} |
24 | 24 | \item $\tuple{0, \Gn{\Gamma \Sequent \Delta}}$ if $\Pi$ consists only |
25 | 25 | 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$ |
27 | 27 | ends in an inference with one premise, $k$ is given by the following |
28 | 28 | table according to which rule was used in the last inference, and |
29 | 29 | $\Pi'$ is the immediate subproof ending in the premise of the last |
30 | 30 | inference. |
31 | 31 |
|
32 | | -\begin{tabular}{lcccccc} |
| 32 | +\begin{tabular}{lccccccc} |
33 | 33 | \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 \\ |
35 | 35 | $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 |
39 | 39 | \end{tabular} |
40 | | -\item $\tuple{2, k, \Gn{\Gamma \Sequent \Delta}, \Gn{\Pi'}, |
| 40 | +\item $\tuple{2, \Gn{\Gamma \Sequent \Delta}, k, \Gn{\Pi'}, |
41 | 41 | \Gn{\Pi''}}$ if $\Pi$ ends in an inference with two premises, $k$ is |
42 | 42 | given by the following table according to which rule was used in the |
43 | 43 | last inference, and $\Pi'$, $\Pi''$ are the the immediate subproof |
44 | 44 | ending in the laft and right premise of the last inference, |
45 | 45 | respectively. |
46 | 46 |
|
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 |
50 | 50 | \end{tabular} |
51 | 51 | \end{enumerate} |
52 | 52 | \end{defn} |
53 | 53 |
|
54 | 54 | \begin{prop} |
| 55 | +\ollabel{prop:followsby} |
55 | 56 | The following relations are primitive recursive: |
56 | 57 | \begin{enumerate} |
57 | 58 | \item $!A \in \Gamma$. |
58 | 59 | \item $\Gamma \Sequent \Delta$ is an initial sequent. |
59 | 60 | \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}$. |
61 | 62 | \item $\Pi$ is a correct $\Log{LK}$-!!{derivation}. |
62 | 63 | \end{enumerate} |
63 | 64 | \end{prop} |
64 | 65 |
|
65 | 66 | \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} |
67 | 119 | \end{proof} |
68 | 120 |
|
| 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 | + |
69 | 131 | \begin{prop} |
70 | 132 | 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. |
73 | 137 | \end{prop} |
74 | 138 |
|
| 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 | + |
75 | 165 | \end{document} |
0 commit comments