Statistiques
| Révision :

root / CSL16 / final-version / bc-convergence.tex @ 118

Historique | Voir | Annoter | Télécharger (12,52 ko)

1 118 adas
2 118 adas
\section{Convergence of Bellantoni-Cook programs in $\arith$}
3 118 adas
\label{sect:bc-convergence}
4 118 adas
%\anupam{In this section, use whatever form of the deduction theorem is necessary and reverse engineer precise statement later.}
5 118 adas
6 118 adas
In this section we show that $I\sigzer$, and so also $\arith$, proves the convergence of any equational specification induced by a BC program, hence any function in $\FP$.
7 118 adas
%Since BC programs can compute any polynomial-time function, we obtain a completeness result. In the next section we will show the converse, that any provably convergent function of $\arith$ is polynomial-time computable.
8 118 adas
%
9 118 adas
The underlying construction of the proof here is similar in spirit to those occurring in \cite{Cantini02} and \cite{Leivant94:found-delin-ptime}. In fact, like in those works, only quantifier-free positive induction is required, but here we moreover must take care to respect additive and multiplicative behaviour of linear connectives.
10 118 adas
11 118 adas
We will assume the formulation of BC programs with regular PRN, not simultaneous PRN.
12 118 adas
13 118 adas
14 118 adas
%\subsection{Convergence in arithmetic}
15 118 adas
16 118 adas
%\begin{theorem}
17 118 adas
%	[Convergence]
18 118 adas
%	If $\Phi(f)$ is an equational specification corresponding to a BC-program defining $f$, then $\cax{\Sigma^N_1}{\pind} \proves  \ !\Phi(f) \limp \forall \vec{x}^{!N} . N(f(\vec x))$.
19 118 adas
%\end{theorem}
20 118 adas
21 118 adas
%We first want to show that the system ${\Sigma^{\word}_1}-{\pind}$ is expressive enough, that is to say that all polynomial-time functions can be represented by some equational specifications that are provably total. To do so   we consider equational specifications of BC-programs.
22 118 adas
\begin{theorem}
23 118 adas
%	[Convergence]
24 118 adas
\label{thm:arith-proves-bc-conv}
25 118 adas
	If $\eqspec$ is a BC program defining a function $f$, then $I\sigzer$ proves $\conv(f, \eqspec)$.
26 118 adas
\end{theorem}
27 118 adas
28 118 adas
%\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.}
29 118 adas
30 118 adas
\begin{proof}[Proof sketch]
31 118 adas
%	We write function symbols in $\arith$ with arguments delimited by $;$, as for BC-programs.
32 118 adas
	We appeal to Lemma~\ref{lemma:spec-norm-form} and show that $\closure{\eqspec} \cup I\sigzer$ proves $\forall \vec{u}^{!\word} . \forall \vec{x}^\word . \word(f(\vec u ; \vec x))$.
33 118 adas
%	\begin{equation}
34 118 adas
%	\label{eqn:prv-cvg-ih}
35 118 adas
%\forall \vec{u}^{!\word} . \forall \vec{x}^\word . \word(f(\vec u ; \vec x))
36 118 adas
%	\end{equation}
37 118 adas
	We proceed by induction on the structure of a BC program for $f$, and sketch only the key cases here.
38 118 adas
%	We give some key cases in what follows.
39 118 adas
40 118 adas
	Suppose $f(u, \vec v ; \vec x)$ is defined by PRN from functions $g(\vec v ; \vec x), h_i ( u , \vec v ; \vec x , y )$.
41 118 adas
%	\[
42 118 adas
%	\begin{array}{rcl}
43 118 adas
%	f(\epsilon,\vec v ; \vec x) & = & g(\vec v ; \vec x) \\
44 118 adas
%	f(\succ_i u , \vec v; \vec x) & = & h_i (u, \vec v ; \vec x , f(u , \vec v ; \vec x))
45 118 adas
%	\end{array}
46 118 adas
%	\]
47 118 adas
%	By the inductive hypothesis we have \eqref{eqn:prv-cvg-ih} for $g,h_0,h_1$ in place of $f$.
48 118 adas
	From the inductive hypothesis for $g$, we construct the following proof,
49 118 adas
	\begin{equation}
50 118 adas
	\label{eqn:prn-cvg-base}
51 118 adas
	\small
52 118 adas
	\vlderivation{
53 118 adas
			\vliq{\beta}{}{!\word(\vec v) , \word (\vec x) \seqar \word(f (\epsilon , \vec v ; \vec x)) }{
54 118 adas
				\vliq{\alpha}{}{!\word (\vec v) , \word (\vec x) \seqar \word (g (\vec v ; \vec x) ) }{
55 118 adas
%					\vltr{\IH}{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x)) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
56 118 adas
%				\vliq{}{}{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x))}{\vlhy{}}
57 118 adas
\vlhy{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x))}
58 118 adas
					}
59 118 adas
				}
60 118 adas
			}
61 118 adas
	\end{equation}
62 118 adas
 where $\alpha $ is purely logical and $\beta$ is obtained from $\closure{\eqspec}$ and equality.
63 118 adas
%	We first prove,
64 118 adas
%	\begin{equation}
65 118 adas
%	!\word (a) , !\word (\vec v) , \word (\vec x) \land \word (f( a , \vec v ; \vec x ) )
66 118 adas
%	\seqar
67 118 adas
%	\word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) )
68 118 adas
%	\end{equation}
69 118 adas
%	for $i=0,1$, whence we will apply $\ind$. We construct the following proofs:
70 118 adas
We also construct the proofs,
71 118 adas
	\begin{equation}
72 118 adas
	\label{eqn:prn-cvg-ind}
73 118 adas
	%\vlderivation{
74 118 adas
	%	\vlin{\rigrul{\limp}}{}{ \word(\vec x) \limp \word ( f(u, \vec v ; \vec x) )  \seqar \word (\vec x) \limp \word( f(\succ_i u , \vec v ; \vec x) ) }{
75 118 adas
	%	\vliq{\gamma}{}{\word(\vec x), \word(\vec x) \limp \word ( f(u, \vec v ; \vec x) )  \seqar \word( f(\succ_i u , \vec v ; \vec x) )   }{
76 118 adas
	%		\vliin{\lefrul{\limp}}{}{\word(\vec x), \word(\vec x), \word(\vec x) \limp \word ( f(u, \vec v ; \vec x) )  \seqar \word( f(\succ_i u , \vec v ; \vec x) )    }{
77 118 adas
	%			\vlin{\id}{}{\word(\vec x) \seqar \word (\vec x) }{\vlhy{}}
78 118 adas
	%			}{
79 118 adas
	%			\vliq{\beta}{}{  \word (\vec x) , \word (f(u , \vec v ; \vec x) ) \seqar \word ( f(\succ_i u , \vec v ; \vec x) ) }{
80 118 adas
	%				\vliq{\alpha}{}{ \word (\vec x) , \word (f(u , \vec v ; \vec x) ) \seqar \word ( h_i( u , \vec v ; \vec x , f( u, \vec v ; \vec x )) ) }{
81 118 adas
	%					\vltr{IH}{ \seqar \forall  u^{!\word}, \vec v^{!\word} . \forall \vec x^\word , y^\word . \word( h_i (u, \vec v ; \vec x, y) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
82 118 adas
	%					}
83 118 adas
	%				}
84 118 adas
	%			}
85 118 adas
	%		}
86 118 adas
	%	}
87 118 adas
	%	}
88 118 adas
	\small
89 118 adas
	\vlderivation{
90 118 adas
	\vlin{\lefrul{\land}}{}{ !\word (a) , !\word (\vec v) , \word (\vec x) \land \word (f( a , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) ) }{
91 118 adas
	\vlin{\lefrul{\cntr}}{}{  !\word (a) , !\word (\vec v) , \word (\vec x) , \word (f( a , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) )}{
92 118 adas
	\vliin{\rigrul{\land}}{}{   !\word (a) , !\word (\vec v) , \word(\vec x),  \word (\vec x) , \word (f( a , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) )}{
93 118 adas
	\vlin{\id}{}{\word (\vec x) \seqar \word (\vec x)}{\vlhy{}}
94 118 adas
	}{
95 118 adas
		\vliq{\beta}{}{ !\word (u) , !\word(\vec v)  , \word (\vec x) , \word (f ( u , \vec v ; \vec x ) ) \seqar \word (f (\succ_i u , \vec{v} ; \vec x ) )  }{
96 118 adas
				\vliq{\alpha}{}{  !\word (u) , !\word (\vec v)  , \word (\vec x) , \word (f ( u , \vec v ; \vec x ) ) \seqar \word ( h_i ( u , \vec v ; \vec x , f( u , \vec v ; \vec x ) ) )   }{
97 118 adas
%					\vltr{\IH}{ \seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word , y^\word  .  \word ( h_i ( u, \vec v ; \vec x, y ) ) }{ \vlhy{\quad} }{\vlhy{}}{\vlhy{\quad}}
98 118 adas
%\vliq{}{}{ \seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word , y^\word  .  \word ( h_i ( u, \vec v ; \vec x, y ) ) }{\vlhy{}}
99 118 adas
\vlhy{\seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word , y^\word  .  \word ( h_i ( u, \vec v ; \vec x, y ) )}
100 118 adas
				}
101 118 adas
			}
102 118 adas
			}
103 118 adas
	}
104 118 adas
	}
105 118 adas
	}
106 118 adas
\end{equation}
107 118 adas
	from the inductive hypotheses for $h_i$, where $\alpha$ and $\beta$ are similar to before.
108 118 adas
%%	so let us suppose that $\word(\vec v)$ and prove,
109 118 adas
%	\begin{equation}
110 118 adas
%% \forall u^{!\word} .  (\word(\vec x) \limp \word(f(u , \vec v ; \vec x)  )
111 118 adas
%!\word (u) , !\word (\vec v) , \word (\vec x) \seqar \word ( f(u, \vec v ; \vec x) )
112 118 adas
%	\end{equation}
113 118 adas
%	by $\cax{\Sigma^N_1}{\pind}$ on $u$. After this the result will follow by $\forall$-introduction for $u, \vec v , \vec x$.
114 118 adas
115 118 adas
%	In the base case we have the following proof,
116 118 adas
%	\[
117 118 adas
%	\vlderivation{
118 118 adas
%	\vlin{\rigrul{\limp}}{}{ \seqar \word (\vec x) \limp \word (f(\epsilon , \vec v ; \vec x )) }{
119 118 adas
%		\vliq{\beta}{}{ \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x) ) }{
120 118 adas
%			\vliq{\alpha}{}{ \word (\vec x) \seqar \word ( g (\vec v ; \vec x) ) }{
121 118 adas
%				\vltr{IH}{\seqar \forall v^{!\word} . \forall x^\word . \word( g(\vec v ; \vec x) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
122 118 adas
%				}
123 118 adas
%			}
124 118 adas
%		}
125 118 adas
%		}
126 118 adas
Finally we compose these proofs as follows:
127 118 adas
\[
128 118 adas
\small
129 118 adas
\vlderivation{
130 118 adas
\vliq{\rigrul{\forall}}{}{ \seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word . \word ( f(u , \vec v ;\vec x)  ) }{
131 118 adas
\vliq{\lefrul{\cntr}}{}{ !\word (u), !\word (\vec v) , \word (\vec x) \seqar  \word ( f(u , \vec v ;\vec x)  )  }
132 118 adas
{
133 118 adas
\vliin{\cut}{}{  !\word (u), !\word(\vec v), !\word (\vec v) , \word (\vec x) , \word (\vec x) \seqar  \word ( f(u , \vec v ;\vec x)  )   }{
134 118 adas
%\vltr{\pi_\epsilon}{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
135 118 adas
\vlhy{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }
136 118 adas
}
137 118 adas
{
138 118 adas
\vliq{\wk}{}{ !\word (u), !\word (\vec v) , \word (\vec x), \word ( f( \epsilon , \vec v ; \vec x ) ) \seqar \word ( f( u , \vec v ; \vec x ) ) }{
139 118 adas
\vliq{\land\text{-}\mathit{inv}}{}{  !\word (u), !\word (\vec v) , \word (\vec x) ,\word ( f( \epsilon , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word ( f( u , \vec v ; \vec x ) )  }{
140 118 adas
\vlin{\ind}{}{   !\word (u), !\word (\vec v) , \word (\vec x) \land \word ( f( \epsilon , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word ( f( u , \vec v ; \vec x ) )  }
141 118 adas
{
142 118 adas
\vlhy{
143 118 adas
\left\{
144 118 adas
%\vltreeder{\pi_i}{   !\word (a), !\word (\vec v) , \word (\vec x) \word ( f( a , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word ( f( \succ_i u , \vec v ; \vec x ) )  }{\quad}{}{}
145 118 adas
   !\word (a), !\word (\vec v) , \word (\vec x) \word ( f( a , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word ( f( \succ_i u , \vec v ; \vec x ) )
146 118 adas
\right\}_i
147 118 adas
}
148 118 adas
}
149 118 adas
}
150 118 adas
}
151 118 adas
}
152 118 adas
}
153 118 adas
}
154 118 adas
}
155 118 adas
\]
156 118 adas
for $i=0,1$, where the steps $\inv{\land}$ are obtained from invertibility of $\lefrul{\land}$.
157 118 adas
158 118 adas
%For the inductive step, we suppose that $\word (u)$ and the proof is as follows,
159 118 adas
%
160 118 adas
%where the steps indicated $\alpha$ and $\beta$ are analogous to those for the base case.
161 118 adas
%%, and $\gamma$ is an instance of the general scheme:
162 118 adas
%%\begin{equation}
163 118 adas
%%\label{eqn:nat-cntr-left-derivation}
164 118 adas
%%\vlderivation{
165 118 adas
%%	\vliin{\cut}{}{ \word (t) , \Gamma \seqar \Delta }{
166 118 adas
%%		\vlin{\wordcntr}{}{ \word (t) \seqar \word (t) \land \word (t) }{\vlhy{}}
167 118 adas
%%		}{
168 118 adas
%%		\vlin{\lefrul{\land}}{}{\word (t)  \land \word (t) , \Gamma \seqar \Delta}{ \vlhy{\word (t)  ,\word (t) , \Gamma \seqar \Delta} }
169 118 adas
%%		}
170 118 adas
%%	}
171 118 adas
%%\end{equation}
172 118 adas
%
173 118 adas
%%
174 118 adas
%%For the inductive step, we need to show that,
175 118 adas
%%\[
176 118 adas
%%\forall x^{!N} . (( N(\vec y) \limp N( f(x, \vec x ; \vec y) ) ) \limp N(\vec y) \limp N(f(\succ_i x , \vec x ; \vec y) )   )
177 118 adas
%%\]
178 118 adas
%%so let us suppose that $N(x)$ and we give the following proof:
179 118 adas
%%\[
180 118 adas
%%\vlderivation{
181 118 adas
%%	\vlin{N\cntr}{}{N(y) \limp ( N(y ) \limp N(f( x , \vec x ; \vec y ) ) ) \limp N(f (\succ_i x , \vec x ; \vec y)  ) }{
182 118 adas
%%		\vliin{}{}{N(y) \limp N(y) \limp ( N(y ) \limp N(f( x , \vec x ; \vec y ) ) ) \limp N(f (\succ_i x , \vec x ; \vec y)  ) }{
183 118 adas
%%			\vliin{}{}{ N(y) \limp N(y) \limp ( N(y) \limp N( f(x, \vec x ; \vec y) ) ) \limp N( h_i (x , \vec x ; \vec y , f(x , \vec x ; \vec y) ) ) }{
184 118 adas
%%				\vltr{MLL}{( N(\vec y) \limp (N (\vec y) \limp N(f(x, \vec x ; \vec y) )) \limp N(f(x, \vec x ; \vec y)) }{\vlhy{\quad }}{\vlhy{\ }}{\vlhy{\quad }}
185 118 adas
%%			}{
186 118 adas
%%			\vlhy{2}
187 118 adas
%%		}
188 118 adas
%%	}{
189 118 adas
%%	\vlhy{3}
190 118 adas
%%}
191 118 adas
%%}
192 118 adas
%%}
193 118 adas
%%\]
194 118 adas
%%TOFINISH
195 118 adas
196 118 adas
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.\footnote{In the latter case, strictly speaking, we mean cuts against $\wordcntr$.} The initial functions are routine.
197 118 adas
198 118 adas
199 118 adas
%We also give the case of the conditional initial function $C (; x, y_\epsilon , y_0, y_1)$, to exemplify the use of additives.
200 118 adas
%%The conditional is defined equationally as:
201 118 adas
%%\[
202 118 adas
%%\begin{array}{rcl}
203 118 adas
%%C (; \epsilon, y_\epsilon , y_0, y_1  ) & = & y_\epsilon \\
204 118 adas
%%C(; \succ_0 x , y_\epsilon , y_0, y_1) & = & y_0 \\
205 118 adas
%%C(; \succ_1 x , y_\epsilon , y_0, y_1) & = & y_1
206 118 adas
%%\end{array}
207 118 adas
%%\]
208 118 adas
%Let $\vec y = ( y_\epsilon , y_0, y_1 )$ and construct the required proof as follows:
209 118 adas
%\[
210 118 adas
%\small
211 118 adas
%\vlderivation{
212 118 adas
%\vliq{}{}{ \word (x) , \word (\vec y) \seqar \word ( C(; x ,\vec y) )}{
213 118 adas
%\vliin{2\cdot \laor}{}{ x = \epsilon \laor \exists z^\word . x = \succ_0 z \laor \exists z^\word x = \succ_1 z , \word (\vec y) \seqar \word ( C(;x \vec y) ) }{
214 118 adas
%\vliq{}{}{ x = \epsilon , \word (\vec y) \seqar \word ( C(; x , \vec y) ) }{
215 118 adas
%\vliq{}{}{ \word (\vec y) \seqar \word ( C( ; \epsilon , \vec y ) ) }{
216 118 adas
%\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_\epsilon) }{
217 118 adas
%\vlin{\id}{}{\word (y_\epsilon) \seqar \word ( y_\epsilon )}{\vlhy{}}
218 118 adas
%}
219 118 adas
%}
220 118 adas
%}
221 118 adas
%}{
222 118 adas
%\vlhy{
223 118 adas
%\left\{
224 118 adas
%\vlderivation{
225 118 adas
%\vlin{\lefrul{\exists}}{}{ \exists z^\word . x = \succ_i z , \word (\vec y) \seqar \word ( C(;x , \vec y) ) }{
226 118 adas
%\vliq{}{}{ x = \succ_i a , \word (\vec y ) \seqar \word (C(; x ,\vec y)) }{
227 118 adas
%\vliq{}{}{ \word (\vec y) \seqar \word ( C(; \succ_i a , \vec y ) ) }{
228 118 adas
%\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_i) }{
229 118 adas
%\vlin{\id}{}{\word (y_i) \seqar \word (y_i)}{\vlhy{}}
230 118 adas
%}
231 118 adas
%}
232 118 adas
%}
233 118 adas
%}
234 118 adas
%}
235 118 adas
%\right\}_{i = 0,1}
236 118 adas
%}
237 118 adas
%}
238 118 adas
%}
239 118 adas
%}
240 118 adas
%\]
241 118 adas
%whence the result follows by $\forall$-introduction.
242 118 adas
%%The other initial functions are routine.
243 118 adas
\end{proof}
244 118 adas
245 118 adas
246 118 adas
247 118 adas
248 118 adas
249 118 adas
250 118 adas
251 118 adas
252 118 adas
253 118 adas
254 118 adas
255 118 adas
256 118 adas
257 118 adas
258 118 adas
259 118 adas
260 118 adas
261 118 adas
262 118 adas
263 118 adas
264 118 adas
265 118 adas
266 118 adas
267 118 adas
268 118 adas
269 118 adas
270 118 adas
271 118 adas
272 118 adas
273 118 adas
274 118 adas
275 118 adas
276 118 adas
277 118 adas
278 118 adas
279 118 adas
280 118 adas
281 118 adas
282 118 adas
283 118 adas
284 118 adas