Statistiques
| Révision :

root / CSL16 / bc-convergence.tex @ 107

Historique | Voir | Annoter | Télécharger (11,38 ko)

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