|
56 | 56 | The following relations are primitive recursive: |
57 | 57 | \begin{enumerate} |
58 | 58 | \item $!A \in \Gamma$. |
| 59 | +\item $\Gamma \subseteq \Delta$. |
59 | 60 | \item $\Gamma \Sequent \Delta$ is an initial sequent. |
60 | 61 | \item $\Gamma \Sequent \Delta$ follows from $\Gamma' \Sequent \Delta'$ |
61 | 62 | (and $\Gamma'' \Sequent \Delta''$) by a rule of $\Log{LK}$. |
|
64 | 65 | \end{prop} |
65 | 66 |
|
66 | 67 | \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. |
67 | 72 | \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*} |
72 | 93 | \item Here we have to show that for each rule of inference~$R$ the |
73 | 94 | relation $\fn{FollowsBy}_R(s, s')$ which holds if $s$ and $s'$ are |
74 | 95 | the G\"odel numbers of conclusion and premise of a correct |
75 | 96 | application of~$R$ is primitive recursive. If $R$ has two premises, |
76 | 97 | $\fn{FollowsBy}_R$ of course has three arguments. |
77 | 98 |
|
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 |
82 | 103 | 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: |
86 | 108 | \begin{align*} |
87 | 109 | \fn{FollowsBy}_{\lexists \text{right}}(s, s') \defiff {} & |
| 110 | +(s)_0 \subseteq (s')_0 \land (s')_0 \subseteq (s)_0 \land {}\\ |
| 111 | +& |
88 | 112 | \lexists[f<s][\lexists[x<s][\lexists[t<s'][(\fn{Frm}(f) \land \fn{Var}(x) \land \fn{Term}(t) \land {}]]] \\ |
89 | 113 | & \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)]) |
91 | 116 | \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 | +
|
92 | 129 | \item We first define a helper relation $\fn{hDeriv}(s,n)$ which holds |
93 | 130 | if $s$ codes a correct derivation at least to $n$ inferences up from |
94 | 131 | the end sequent. If $n=0$ we let the relation be satisfied by |
|
110 | 147 | & \quad ((s)_2 = 4 \land \fn{FollowsBy}_{\lif\text{left}}((s)_1, ((s)_3)_1), ((s)_4)_1)) \land {}\\ |
111 | 148 | & \quad \fn{nDeriv}((s)_3, n) \land \fn{nDeriv}((s)_4, n)) |
112 | 149 | \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 |
114 | 151 | enough, e.g., larger than the maximum number of inferences between an |
115 | 152 | 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 |
117 | 155 | $\fn{Deriv}(s)$ by $\fn{nDeriv}(s,s)$. |
118 | 156 | \end{enumerate} |
119 | 157 | \end{proof} |
|
0 commit comments