Statistiques
| Révision :

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

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

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