Statistiques
| Révision :

root / CSL16 / submitted / bc-convergence.tex @ 124

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

1 112 adas
2 112 adas
\section{Convergence of Bellantoni-Cook programs in $\arith$}
3 112 adas
\label{sect:bc-convergence}
4 112 adas
%\anupam{In this section, use whatever form of the deduction theorem is necessary and reverse engineer precise statement later.}
5 112 adas
6 112 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 112 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 112 adas
%
9 112 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 112 adas
11 112 adas
We will assume the formulation of BC programs with regular PRN, not simultaneous PRN.
12 112 adas
13 112 adas
14 112 adas
%\subsection{Convergence in arithmetic}
15 112 adas
16 112 adas
%\begin{theorem}
17 112 adas
%	[Convergence]
18 112 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 112 adas
%\end{theorem}
20 112 adas
21 112 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 112 adas
\begin{theorem}
23 112 adas
%	[Convergence]
24 112 adas
\label{thm:arith-proves-bc-conv}
25 112 adas
	If $\eqspec$ is a BC program defining a function $f$, then $I\sigzer$ proves $\conv(f, \eqspec)$.
26 112 adas
\end{theorem}
27 112 adas
28 112 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 112 adas
30 112 adas
\begin{proof}[Proof sketch]
31 112 adas
%	We write function symbols in $\arith$ with arguments delimited by $;$, as for BC-programs.
32 112 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 112 adas
%	\begin{equation}
34 112 adas
%	\label{eqn:prv-cvg-ih}
35 112 adas
%\forall \vec{u}^{!\word} . \forall \vec{x}^\word . \word(f(\vec u ; \vec x))
36 112 adas
%	\end{equation}
37 112 adas
	We proceed by induction on the structure of a BC program for $f$, and sketch only the key cases here.
38 112 adas
%	We give some key cases in what follows.
39 112 adas
40 112 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 112 adas
%	\[
42 112 adas
%	\begin{array}{rcl}
43 112 adas
%	f(\epsilon,\vec v ; \vec x) & = & g(\vec v ; \vec x) \\
44 112 adas
%	f(\succ_i u , \vec v; \vec x) & = & h_i (u, \vec v ; \vec x , f(u , \vec v ; \vec x))
45 112 adas
%	\end{array}
46 112 adas
%	\]
47 112 adas
%	By the inductive hypothesis we have \eqref{eqn:prv-cvg-ih} for $g,h_0,h_1$ in place of $f$.
48 112 adas
	From the inductive hypothesis for $g$, we construct the following proof,
49 112 adas
	\begin{equation}
50 112 adas
	\label{eqn:prn-cvg-base}
51 112 adas
	\small
52 112 adas
	\vlderivation{
53 112 adas
			\vliq{\beta}{}{!\word(\vec v) , \word (\vec x) \seqar \word(f (\epsilon , \vec v ; \vec x)) }{
54 112 adas
				\vliq{\alpha}{}{!\word (\vec v) , \word (\vec x) \seqar \word (g (\vec v ; \vec x) ) }{
55 112 adas
%					\vltr{\IH}{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x)) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
56 112 adas
%				\vliq{}{}{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x))}{\vlhy{}}
57 112 adas
\vlhy{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x))}
58 112 adas
					}
59 112 adas
				}
60 112 adas
			}
61 112 adas
	\end{equation}
62 112 adas
 where $\alpha $ is purely logical and $\beta$ is obtained from $\closure{\eqspec}$ and equality.
63 112 adas
%	We first prove,
64 112 adas
%	\begin{equation}
65 112 adas
%	!\word (a) , !\word (\vec v) , \word (\vec x) \land \word (f( a , \vec v ; \vec x ) )
66 112 adas
%	\seqar
67 112 adas
%	\word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) )
68 112 adas
%	\end{equation}
69 112 adas
%	for $i=0,1$, whence we will apply $\ind$. We construct the following proofs:
70 112 adas
We also construct the proofs,
71 112 adas
	\begin{equation}
72 112 adas
	\label{eqn:prn-cvg-ind}
73 112 adas
	%\vlderivation{
74 112 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 112 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 112 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 112 adas
	%			\vlin{\id}{}{\word(\vec x) \seqar \word (\vec x) }{\vlhy{}}
78 112 adas
	%			}{
79 112 adas
	%			\vliq{\beta}{}{  \word (\vec x) , \word (f(u , \vec v ; \vec x) ) \seqar \word ( f(\succ_i u , \vec v ; \vec x) ) }{
80 112 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 112 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 112 adas
	%					}
83 112 adas
	%				}
84 112 adas
	%			}
85 112 adas
	%		}
86 112 adas
	%	}
87 112 adas
	%	}
88 112 adas
	\small
89 112 adas
	\vlderivation{
90 112 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 112 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 112 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 112 adas
	\vlin{\id}{}{\word (\vec x) \seqar \word (\vec x)}{\vlhy{}}
94 112 adas
	}{
95 112 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 112 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 112 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 112 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 112 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 112 adas
				}
101 112 adas
			}
102 112 adas
			}
103 112 adas
	}
104 112 adas
	}
105 112 adas
	}
106 112 adas
\end{equation}
107 112 adas
	from the inductive hypotheses for $h_i$, where $\alpha$ and $\beta$ are similar to before.
108 112 adas
%%	so let us suppose that $\word(\vec v)$ and prove,
109 112 adas
%	\begin{equation}
110 112 adas
%% \forall u^{!\word} .  (\word(\vec x) \limp \word(f(u , \vec v ; \vec x)  )
111 112 adas
%!\word (u) , !\word (\vec v) , \word (\vec x) \seqar \word ( f(u, \vec v ; \vec x) )
112 112 adas
%	\end{equation}
113 112 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 112 adas
115 112 adas
%	In the base case we have the following proof,
116 112 adas
%	\[
117 112 adas
%	\vlderivation{
118 112 adas
%	\vlin{\rigrul{\limp}}{}{ \seqar \word (\vec x) \limp \word (f(\epsilon , \vec v ; \vec x )) }{
119 112 adas
%		\vliq{\beta}{}{ \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x) ) }{
120 112 adas
%			\vliq{\alpha}{}{ \word (\vec x) \seqar \word ( g (\vec v ; \vec x) ) }{
121 112 adas
%				\vltr{IH}{\seqar \forall v^{!\word} . \forall x^\word . \word( g(\vec v ; \vec x) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
122 112 adas
%				}
123 112 adas
%			}
124 112 adas
%		}
125 112 adas
%		}
126 112 adas
Finally we compose these proofs as follows:
127 112 adas
\[
128 112 adas
\small
129 112 adas
\vlderivation{
130 112 adas
\vliq{\rigrul{\forall}}{}{ \seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word . \word ( f(u , \vec v ;\vec x)  ) }{
131 112 adas
\vliq{\lefrul{\cntr}}{}{ !\word (u), !\word (\vec v) , \word (\vec x) \seqar  \word ( f(u , \vec v ;\vec x)  )  }
132 112 adas
{
133 112 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 112 adas
%\vltr{\pi_\epsilon}{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
135 112 adas
\vlhy{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }
136 112 adas
}
137 112 adas
{
138 112 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 112 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 112 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 112 adas
{
142 112 adas
\vlhy{
143 112 adas
\left\{
144 112 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 112 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 112 adas
\right\}_i
147 112 adas
}
148 112 adas
}
149 112 adas
}
150 112 adas
}
151 112 adas
}
152 112 adas
}
153 112 adas
}
154 112 adas
}
155 112 adas
\]
156 112 adas
for $i=0,1$, where the steps $\inv{\land}$ are obtained from invertibility of $\lefrul{\land}$.
157 112 adas
158 112 adas
%For the inductive step, we suppose that $\word (u)$ and the proof is as follows,
159 112 adas
%
160 112 adas
%where the steps indicated $\alpha$ and $\beta$ are analogous to those for the base case.
161 112 adas
%%, and $\gamma$ is an instance of the general scheme:
162 112 adas
%%\begin{equation}
163 112 adas
%%\label{eqn:nat-cntr-left-derivation}
164 112 adas
%%\vlderivation{
165 112 adas
%%	\vliin{\cut}{}{ \word (t) , \Gamma \seqar \Delta }{
166 112 adas
%%		\vlin{\wordcntr}{}{ \word (t) \seqar \word (t) \land \word (t) }{\vlhy{}}
167 112 adas
%%		}{
168 112 adas
%%		\vlin{\lefrul{\land}}{}{\word (t)  \land \word (t) , \Gamma \seqar \Delta}{ \vlhy{\word (t)  ,\word (t) , \Gamma \seqar \Delta} }
169 112 adas
%%		}
170 112 adas
%%	}
171 112 adas
%%\end{equation}
172 112 adas
%
173 112 adas
%%
174 112 adas
%%For the inductive step, we need to show that,
175 112 adas
%%\[
176 112 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 112 adas
%%\]
178 112 adas
%%so let us suppose that $N(x)$ and we give the following proof:
179 112 adas
%%\[
180 112 adas
%%\vlderivation{
181 112 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 112 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 112 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 112 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 112 adas
%%			}{
186 112 adas
%%			\vlhy{2}
187 112 adas
%%		}
188 112 adas
%%	}{
189 112 adas
%%	\vlhy{3}
190 112 adas
%%}
191 112 adas
%%}
192 112 adas
%%}
193 112 adas
%%\]
194 112 adas
%%TOFINISH
195 112 adas
196 112 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 112 adas
198 112 adas
199 112 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 112 adas
%%The conditional is defined equationally as:
201 112 adas
%%\[
202 112 adas
%%\begin{array}{rcl}
203 112 adas
%%C (; \epsilon, y_\epsilon , y_0, y_1  ) & = & y_\epsilon \\
204 112 adas
%%C(; \succ_0 x , y_\epsilon , y_0, y_1) & = & y_0 \\
205 112 adas
%%C(; \succ_1 x , y_\epsilon , y_0, y_1) & = & y_1
206 112 adas
%%\end{array}
207 112 adas
%%\]
208 112 adas
%Let $\vec y = ( y_\epsilon , y_0, y_1 )$ and construct the required proof as follows:
209 112 adas
%\[
210 112 adas
%\small
211 112 adas
%\vlderivation{
212 112 adas
%\vliq{}{}{ \word (x) , \word (\vec y) \seqar \word ( C(; x ,\vec y) )}{
213 112 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 112 adas
%\vliq{}{}{ x = \epsilon , \word (\vec y) \seqar \word ( C(; x , \vec y) ) }{
215 112 adas
%\vliq{}{}{ \word (\vec y) \seqar \word ( C( ; \epsilon , \vec y ) ) }{
216 112 adas
%\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_\epsilon) }{
217 112 adas
%\vlin{\id}{}{\word (y_\epsilon) \seqar \word ( y_\epsilon )}{\vlhy{}}
218 112 adas
%}
219 112 adas
%}
220 112 adas
%}
221 112 adas
%}{
222 112 adas
%\vlhy{
223 112 adas
%\left\{
224 112 adas
%\vlderivation{
225 112 adas
%\vlin{\lefrul{\exists}}{}{ \exists z^\word . x = \succ_i z , \word (\vec y) \seqar \word ( C(;x , \vec y) ) }{
226 112 adas
%\vliq{}{}{ x = \succ_i a , \word (\vec y ) \seqar \word (C(; x ,\vec y)) }{
227 112 adas
%\vliq{}{}{ \word (\vec y) \seqar \word ( C(; \succ_i a , \vec y ) ) }{
228 112 adas
%\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_i) }{
229 112 adas
%\vlin{\id}{}{\word (y_i) \seqar \word (y_i)}{\vlhy{}}
230 112 adas
%}
231 112 adas
%}
232 112 adas
%}
233 112 adas
%}
234 112 adas
%}
235 112 adas
%\right\}_{i = 0,1}
236 112 adas
%}
237 112 adas
%}
238 112 adas
%}
239 112 adas
%}
240 112 adas
%\]
241 112 adas
%whence the result follows by $\forall$-introduction.
242 112 adas
%%The other initial functions are routine.
243 112 adas
\end{proof}
244 112 adas
245 112 adas
246 112 adas
247 112 adas
248 112 adas
249 112 adas
250 112 adas
251 112 adas
252 112 adas
253 112 adas
254 112 adas
255 112 adas
256 112 adas
257 112 adas
258 112 adas
259 112 adas
260 112 adas
261 112 adas
262 112 adas
263 112 adas
264 112 adas
265 112 adas
266 112 adas
267 112 adas
268 112 adas
269 112 adas
270 112 adas
271 112 adas
272 112 adas
273 112 adas
274 112 adas
275 112 adas
276 112 adas
277 112 adas
278 112 adas
279 112 adas
280 112 adas
281 112 adas
282 112 adas
283 112 adas
284 112 adas