Révision 105 CSL16/bc-convergence.tex
| bc-convergence.tex (revision 105) | ||
|---|---|---|
| 24 | 24 |
If $\eqspec$ is a BC program defining a function $f$, then $I\sigzer$ proves $\conv(f, \eqspec)$. |
| 25 | 25 |
\end{theorem}
|
| 26 | 26 |
|
| 27 |
\anupam{Consider informalising some of these arguments under (some version of) the deduction theorem. Formal stuff can be put in an appendix. Maybe add a remark somewhere about arguing informally under deduction, taking care for non-modalised formulae.}
|
|
| 27 |
%\anupam{Consider informalising some of these arguments under (some version of) the deduction theorem. Formal stuff can be put in an appendix. Maybe add a remark somewhere about arguing informally under deduction, taking care for non-modalised formulae.}
|
|
| 28 | 28 |
|
| 29 |
\begin{proof}
|
|
| 29 |
\begin{proof}[Proof sketch]
|
|
| 30 | 30 |
% We write function symbols in $\arith$ with arguments delimited by $;$, as for BC-programs. |
| 31 | 31 |
We appeal to Lemma~\ref{lemma:spec-norm-form} and show that $\closure{\eqspec} \cup I\sigzer$ proves,
|
| 32 | 32 |
\begin{equation}
|
| 33 | 33 |
\label{eqn:prv-cvg-ih}
|
| 34 | 34 |
\forall \vec{u}^{!\word} . \forall \vec{x}^\word . \word(f(\vec u ; \vec x))
|
| 35 | 35 |
\end{equation}
|
| 36 |
We proceed by induction on the structure of a BC program for $f$. |
|
| 36 |
We proceed by induction on the structure of a BC program for $f$, and sketch only the key cases here.
|
|
| 37 | 37 |
% We give some key cases in what follows. |
| 38 | 38 |
|
| 39 | 39 |
Suppose $f$ is defined by PRN as: |
| 40 | 40 |
\[ |
| 41 | 41 |
\begin{array}{rcl}
|
| 42 |
f(0,\vec v ; \vec x) & = & g(\vec v ; \vec x) \\
|
|
| 42 |
f(\epsilon,\vec v ; \vec x) & = & g(\vec v ; \vec x) \\
|
|
| 43 | 43 |
f(\succ_i u , \vec v; \vec x) & = & h_i (u, \vec v ; \vec x , f(u , \vec v ; \vec x)) |
| 44 | 44 |
\end{array}
|
| 45 | 45 |
\] |
| 46 |
By the inductive hypothesis we already have \eqref{eqn:prv-cvg-ih} for $g,h_0,h_1$ in place of $f$. We construct the following proof:
|
|
| 46 |
By the inductive hypothesis we have \eqref{eqn:prv-cvg-ih} for $g,h_0,h_1$ in place of $f$. We construct the proof $\pi_\epsilon$,
|
|
| 47 | 47 |
\begin{equation}
|
| 48 | 48 |
\label{eqn:prn-cvg-base}
|
| 49 | 49 |
\vlderivation{
|
| ... | ... | |
| 54 | 54 |
} |
| 55 | 55 |
} |
| 56 | 56 |
\end{equation}
|
| 57 |
where $\alpha$ is, |
|
| 58 |
\[ |
|
| 59 |
\vlderivation{
|
|
| 60 |
% \vliin{\cut}{}{ \word (\vec x) \seqar \word ( g (\vec v ; \vec x)) }{
|
|
| 61 |
% \vlin{\rigrul{!}}{}{\seqar !\word (v)}{
|
|
| 62 |
% \vlin{assump}{}{\seqar \word (\vec v)}{\vlhy{}}
|
|
| 63 |
% } |
|
| 64 |
% }{
|
|
| 65 |
\vliin{\cut}{}{ !\word (\vec v ) , \word (\vec x) \seqar \word (g (\vec v ; \vec x )) }{
|
|
| 66 |
\vlhy{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x)) }
|
|
| 67 |
}{
|
|
| 68 |
\vliq{\lefrul{\forall}}{ }{ !\word (\vec v) , \word (\vec x) , \forall \vec v^{!\word} . \forall \vec x^\word \word (g(\vec v ; \vec x )) \seqar \word (g(\vec v ; \vec x )) }{
|
|
| 69 |
\vlin{\id}{}{\word (g(\vec v ; \vec x )) \seqar \word (g(\vec v ; \vec x ))}{\vlhy{}}
|
|
| 70 |
} |
|
| 71 |
} |
|
| 72 |
% } |
|
| 73 |
} |
|
| 74 |
\] |
|
| 75 |
and $\beta$ is: |
|
| 76 |
\[ |
|
| 77 |
\vlderivation{
|
|
| 78 |
\vliin{\cut}{}{!\word (\vec v) , \word (\vec x) \seqar \word ( f ( \epsilon , \vec v ; \vec x ) ) }{
|
|
| 79 |
\vlhy{!\word (\vec v) , \word (\vec x) \seqar \word (g (\vec v ; \vec x) ) }
|
|
| 80 |
}{
|
|
| 81 |
\vliin{\cut}{}{ \word (g (\vec v ; \vec x) ) \seqar \word (f (\epsilon, \vec v ; \vec x) ) }{
|
|
| 82 |
\vlin{\closure{\eqspec}}{}{ \seqar f(\epsilon , \vec v ; \vec x) = g(\vec v ; \vec x) }{\vlhy{}}
|
|
| 83 |
}{
|
|
| 84 |
\vlin{=}{}{\word ( g(\vec v ; \vec x) ) , f(\epsilon , \vec v ; \vec x) = g(\vec v ; \vec x) \seqar \word (f (\epsilon, \vec v ; \vec x) ) }{\vlhy{}}
|
|
| 85 |
} |
|
| 86 |
} |
|
| 87 |
} |
|
| 88 |
\] |
|
| 89 |
|
|
| 57 |
where $\alpha $ and $\beta$ are purely logical derivations using cuts. |
|
| 90 | 58 |
% We first prove, |
| 91 | 59 |
% \begin{equation}
|
| 92 | 60 |
% !\word (a) , !\word (\vec v) , \word (\vec x) \land \word (f( a , \vec v ; \vec x ) ) |
| ... | ... | |
| 94 | 62 |
% \word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) ) |
| 95 | 63 |
% \end{equation}
|
| 96 | 64 |
% for $i=0,1$, whence we will apply $\ind$. We construct the following proofs: |
| 97 |
|
|
| 98 |
We also construct, for $i=0,1$, the proofs, |
|
| 65 |
We also construct the proofs $\pi_i$, for $i=0,1$, |
|
| 99 | 66 |
\begin{equation}
|
| 100 | 67 |
\label{eqn:prn-cvg-ind}
|
| 101 | 68 |
%\vlderivation{
|
| ... | ... | |
| 129 | 96 |
} |
| 130 | 97 |
} |
| 131 | 98 |
\end{equation}
|
| 132 |
where $\alpha$ and $\beta$ are constructed similarly to before. |
|
| 133 |
|
|
| 99 |
where $\alpha$ and $\beta$ are, again, purely logical. |
|
| 134 | 100 |
%% so let us suppose that $\word(\vec v)$ and prove, |
| 135 | 101 |
% \begin{equation}
|
| 136 | 102 |
%% \forall u^{!\word} . (\word(\vec x) \limp \word(f(u , \vec v ; \vec x) )
|
| ... | ... | |
| 149 | 115 |
% } |
| 150 | 116 |
% } |
| 151 | 117 |
% } |
| 152 |
|
|
| 153 |
|
|
| 154 | 118 |
Finally we compose these proofs as follows: |
| 155 | 119 |
|
| 156 | 120 |
\[ |
| ... | ... | |
| 179 | 143 |
} |
| 180 | 144 |
} |
| 181 | 145 |
\] |
| 182 |
where the steps \todo{minor steps}
|
|
| 146 |
where the steps $\inv{\land}$ are obtained from invertibility of $\lefrul{\land}$.
|
|
| 183 | 147 |
|
| 184 | 148 |
%For the inductive step, we suppose that $\word (u)$ and the proof is as follows, |
| 185 | 149 |
% |
| ... | ... | |
| 219 | 183 |
%%\] |
| 220 | 184 |
%%TOFINISH |
| 221 | 185 |
|
| 222 |
Suppose $f$ is defined by safe composition as follows: |
|
| 223 |
\[ |
|
| 224 |
f( \vec u ; \vec x ) |
|
| 225 |
\quad = \quad |
|
| 226 |
h( \vec g (\vec u ; ) ; \vec g' ( \vec u ; \vec x ) ) |
|
| 227 |
\] |
|
| 186 |
Safe compositions are essentially handled by many cut steps, using $\alpha$ and $\beta$ like derivations again and, crucially, left-contractions on both $!\word$ and $\word $ formulae. |
|
| 228 | 187 |
|
| 229 |
By the inductive hypothesis we already have \eqref{eqn:prv-cvg-ih} for $h$ and each $g_i$ and $g_j'$ in place of $f$. We construct the required proof as follows:
|
|
| 230 |
\[ |
|
| 231 |
\vlderivation{
|
|
| 232 |
\vliq{\rigrul{\forall}}{}{ \seqar \forall\vec u^{!\word} . \forall \vec x^\word . \word( f(\vec u ; \vec x ) ) }{
|
|
| 233 |
\vliq{\beta}{}{ !\word (\vec u) , \word (\vec x) \seqar \word ( f( \vec u ; \vec x ) ) }{
|
|
| 234 |
\vliq{\cntr}{}{ !\word (\vec u) , \word (\vec x) \seqar \word ( h( \vec g(\vec u ;) ; \vec g' ( \vec u ; \vec x ) ) ) }{
|
|
| 235 |
\vliiiq{\cut}{}{!\word (\vec u) , \dots , !\word (\vec u) , \word (\vec x) , \dots , \word (\vec x) \seqar \word ( h( \vec g(\vec u ;) ; \vec g' ( \vec u ; \vec x ) ) ) }{
|
|
| 236 |
\vlhy{
|
|
| 237 |
\left\{
|
|
| 238 |
\vlderivation{
|
|
| 239 |
\vlin{\rigrul{!}}{}{ !\word (\vec u) \seqar !\word ( g_i (\vec u ;) ) }{
|
|
| 240 |
\vliq{\alpha}{}{ !\word (\vec u) \seqar \word ( g_i (\vec u ;) }{
|
|
| 241 |
\vltr{\IH}{ \forall \vec u^{!\word} . \word (g_i (\vec u ;) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 242 |
} |
|
| 243 |
} |
|
| 244 |
} |
|
| 245 |
\right\}_{i \leq |\vec g| }
|
|
| 246 |
} |
|
| 247 |
}{
|
|
| 248 |
\vlhy{
|
|
| 249 |
\left\{
|
|
| 250 |
\vlderivation{
|
|
| 251 |
\vliq{\alpha}{}{ !\word ( \vec u ) , \word (\vec x) \seqar \word ( g_j' ( \vec u ; \vec x ) ) }{
|
|
| 252 |
\vltr{\IH}{ \seqar \forall \vec u^{!\word}. \forall \vec x^\word . \word ( g_j' (\vec u ; \vec x) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 253 |
} |
|
| 254 |
} |
|
| 255 |
\right\}_{j \leq |\vec g'|}
|
|
| 256 |
} |
|
| 257 |
}{
|
|
| 258 |
\vliq{\alpha}{}{ !\word ( \vec g (\vec u ;) ) , \word ( \vec g ' ( \vec u ; \vec x ) ) \seqar \word ( h( \vec g(\vec u ;) ; \vec g' ( \vec u ; \vec x ) ) ) ) }{
|
|
| 259 |
\vltr{\IH}{ \seqar \forall \vec v^{!\word} . \forall \vec y^\word . \word ( h( \vec v ; \vec y ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 260 |
} |
|
| 261 |
} |
|
| 262 |
} |
|
| 263 |
} |
|
| 264 |
} |
|
| 265 |
} |
|
| 266 |
\] |
|
| 267 |
where $\alpha$ and $\beta$ are similar to before. |
|
| 268 | 188 |
|
| 269 |
\todo{reformat a bit}
|
|
| 270 |
|
|
| 271 |
It remains to check the initial functions. |
|
| 272 |
|
|
| 273 |
Consider the conditional function, defined equationally as: |
|
| 189 |
We also give the case of the conditional initial function, to exemplify the use of additives. The conditional is defined equationally as: |
|
| 274 | 190 |
\[ |
| 275 | 191 |
\begin{array}{rcl}
|
| 276 | 192 |
C (; \epsilon, y_\epsilon , y_0, y_1 ) & = & y_\epsilon \\ |
| ... | ... | |
| 311 | 227 |
} |
| 312 | 228 |
\] |
| 313 | 229 |
whence the result follows by $\forall$-introduction. |
| 314 |
\todo{reformat a bit}
|
|
| 315 |
|
|
| 316 |
Other initial functions are far simpler. |
|
| 317 |
|
|
| 230 |
%The other initial functions are routine. |
|
| 318 | 231 |
\end{proof}
|
| 319 | 232 |
|
| 320 | 233 |
|
Formats disponibles : Unified diff