Statistiques
| Révision :

root / CSL16 / bc-convergence.tex @ 106

Historique | Voir | Annoter | Télécharger (11,32 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 75 adas
	\vlderivation{
50 75 adas
			\vliq{\beta}{}{!\word(\vec v) , \word (\vec x) \seqar \word(f (\epsilon , \vec v ; \vec x)) }{
51 75 adas
				\vliq{\alpha}{}{!\word (\vec v) , \word (\vec x) \seqar \word (g (\vec v ; \vec x) ) }{
52 75 adas
					\vltr{\IH}{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x)) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
53 75 adas
					}
54 75 adas
				}
55 75 adas
			}
56 33 adas
	\end{equation}
57 105 adas
	where $\alpha $ and $\beta$ are purely logical derivations using cuts.
58 75 adas
%	We first prove,
59 75 adas
%	\begin{equation}
60 75 adas
%	!\word (a) , !\word (\vec v) , \word (\vec x) \land \word (f( a , \vec v ; \vec x ) )
61 75 adas
%	\seqar
62 75 adas
%	\word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) )
63 75 adas
%	\end{equation}
64 75 adas
%	for $i=0,1$, whence we will apply $\ind$. We construct the following proofs:
65 105 adas
We also construct the proofs $\pi_i$, for $i=0,1$,
66 75 adas
	\begin{equation}
67 75 adas
	\label{eqn:prn-cvg-ind}
68 75 adas
	%\vlderivation{
69 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) ) }{
70 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) )   }{
71 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) )    }{
72 93 adas
	%			\vlin{\id}{}{\word(\vec x) \seqar \word (\vec x) }{\vlhy{}}
73 75 adas
	%			}{
74 93 adas
	%			\vliq{\beta}{}{  \word (\vec x) , \word (f(u , \vec v ; \vec x) ) \seqar \word ( f(\succ_i u , \vec v ; \vec x) ) }{
75 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 )) ) }{
76 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}}
77 75 adas
	%					}
78 75 adas
	%				}
79 75 adas
	%			}
80 75 adas
	%		}
81 75 adas
	%	}
82 75 adas
	%	}
83 75 adas
	\vlderivation{
84 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 ) ) }{
85 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 ) )}{
86 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 ) )}{
87 75 adas
	\vlin{\id}{}{\word (\vec x) \seqar \word (\vec x)}{\vlhy{}}
88 75 adas
	}{
89 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 ) )  }{
90 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 ) ) )   }{
91 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}}
92 75 adas
				}
93 75 adas
			}
94 75 adas
			}
95 75 adas
	}
96 75 adas
	}
97 75 adas
	}
98 75 adas
\end{equation}
99 105 adas
where $\alpha$ and $\beta$ are, again, purely logical.
100 93 adas
%%	so let us suppose that $\word(\vec v)$ and prove,
101 75 adas
%	\begin{equation}
102 93 adas
%% \forall u^{!\word} .  (\word(\vec x) \limp \word(f(u , \vec v ; \vec x)  )
103 93 adas
%!\word (u) , !\word (\vec v) , \word (\vec x) \seqar \word ( f(u, \vec v ; \vec x) )
104 75 adas
%	\end{equation}
105 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$.
106 75 adas
107 75 adas
%	In the base case we have the following proof,
108 75 adas
%	\[
109 48 adas
%	\vlderivation{
110 93 adas
%	\vlin{\rigrul{\limp}}{}{ \seqar \word (\vec x) \limp \word (f(\epsilon , \vec v ; \vec x )) }{
111 93 adas
%		\vliq{\beta}{}{ \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x) ) }{
112 93 adas
%			\vliq{\alpha}{}{ \word (\vec x) \seqar \word ( g (\vec v ; \vec x) ) }{
113 93 adas
%				\vltr{IH}{\seqar \forall v^{!\word} . \forall x^\word . \word( g(\vec v ; \vec x) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
114 48 adas
%				}
115 48 adas
%			}
116 48 adas
%		}
117 48 adas
%		}
118 77 adas
Finally we compose these proofs as follows:
119 75 adas
120 77 adas
\[
121 77 adas
\vlderivation{
122 77 adas
\vliq{\rigrul{\forall}}{}{ \seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word . \word ( f(u , \vec v ;\vec x)  ) }{
123 77 adas
\vliq{\lefrul{\cntr}}{}{ !\word (u), !\word (\vec v) , \word (\vec x) \seqar  \word ( f(u , \vec v ;\vec x)  )  }
124 77 adas
{
125 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)  )   }{
126 77 adas
\vltr{}{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
127 77 adas
}
128 77 adas
{
129 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 ) ) }{
130 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 ) )  }{
131 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 ) )  }
132 77 adas
{
133 77 adas
\vlhy{
134 77 adas
\left\{
135 77 adas
\vltreeder{}{   !\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}{}{}
136 77 adas
\right\}_{i=0,1}
137 77 adas
}
138 77 adas
}
139 77 adas
}
140 77 adas
}
141 77 adas
}
142 77 adas
}
143 77 adas
}
144 77 adas
}
145 77 adas
\]
146 105 adas
where the steps $\inv{\land}$ are obtained from invertibility of $\lefrul{\land}$.
147 40 adas
148 93 adas
%For the inductive step, we suppose that $\word (u)$ and the proof is as follows,
149 40 adas
%
150 77 adas
%where the steps indicated $\alpha$ and $\beta$ are analogous to those for the base case.
151 77 adas
%%, and $\gamma$ is an instance of the general scheme:
152 77 adas
%%\begin{equation}
153 77 adas
%%\label{eqn:nat-cntr-left-derivation}
154 77 adas
%%\vlderivation{
155 93 adas
%%	\vliin{\cut}{}{ \word (t) , \Gamma \seqar \Delta }{
156 93 adas
%%		\vlin{\wordcntr}{}{ \word (t) \seqar \word (t) \land \word (t) }{\vlhy{}}
157 77 adas
%%		}{
158 93 adas
%%		\vlin{\lefrul{\land}}{}{\word (t)  \land \word (t) , \Gamma \seqar \Delta}{ \vlhy{\word (t)  ,\word (t) , \Gamma \seqar \Delta} }
159 77 adas
%%		}
160 77 adas
%%	}
161 77 adas
%%\end{equation}
162 77 adas
%
163 77 adas
%%
164 77 adas
%%For the inductive step, we need to show that,
165 77 adas
%%\[
166 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) )   )
167 77 adas
%%\]
168 77 adas
%%so let us suppose that $N(x)$ and we give the following proof:
169 77 adas
%%\[
170 77 adas
%%\vlderivation{
171 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)  ) }{
172 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)  ) }{
173 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) ) ) }{
174 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 }}
175 77 adas
%%			}{
176 77 adas
%%			\vlhy{2}
177 77 adas
%%		}
178 77 adas
%%	}{
179 77 adas
%%	\vlhy{3}
180 77 adas
%%}
181 77 adas
%%}
182 77 adas
%%}
183 77 adas
%%\]
184 77 adas
%%TOFINISH
185 50 adas
186 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.
187 50 adas
188 50 adas
189 105 adas
We also give the case of the conditional initial function, to exemplify the use of additives. The conditional is defined equationally as:
190 53 adas
\[
191 53 adas
\begin{array}{rcl}
192 53 adas
C (; \epsilon, y_\epsilon , y_0, y_1  ) & = & y_\epsilon \\
193 53 adas
C(; \succ_0 x , y_\epsilon , y_0, y_1) & = & y_0 \\
194 53 adas
C(; \succ_1 x , y_\epsilon , y_0, y_1) & = & y_1
195 53 adas
\end{array}
196 53 adas
\]
197 53 adas
Let $\vec y = ( y_\epsilon , y_0, y_1 )$ and construct the required proof as follows:
198 53 adas
\[
199 53 adas
\vlderivation{
200 93 adas
\vliq{}{}{ \word (x) , \word (\vec y) \seqar \word ( C(; x ,\vec y) )}{
201 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) ) }{
202 93 adas
\vliq{}{}{ x = \epsilon , \word (\vec y) \seqar \word ( C(; x , \vec y) ) }{
203 93 adas
\vliq{}{}{ \word (\vec y) \seqar \word ( C( ; \epsilon , \vec y ) ) }{
204 93 adas
\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_\epsilon) }{
205 93 adas
\vlin{\id}{}{\word (y_\epsilon) \seqar \word ( y_\epsilon )}{\vlhy{}}
206 53 adas
}
207 53 adas
}
208 53 adas
}
209 53 adas
}{
210 53 adas
\vlhy{
211 53 adas
\left\{
212 53 adas
\vlderivation{
213 93 adas
\vlin{\lefrul{\exists}}{}{ \exists z^\word . x = \succ_i z , \word (\vec y) \seqar \word ( C(;x , \vec y) ) }{
214 93 adas
\vliq{}{}{ x = \succ_i a , \word (\vec y ) \seqar \word (C(; x ,\vec y)) }{
215 93 adas
\vliq{}{}{ \word (\vec y) \seqar \word ( C(; \succ_i a , \vec y ) ) }{
216 93 adas
\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_i) }{
217 93 adas
\vlin{\id}{}{\word (y_i) \seqar \word (y_i)}{\vlhy{}}
218 53 adas
}
219 53 adas
}
220 53 adas
}
221 53 adas
}
222 53 adas
}
223 53 adas
\right\}_{i = 0,1}
224 53 adas
}
225 53 adas
}
226 53 adas
}
227 53 adas
}
228 53 adas
\]
229 53 adas
whence the result follows by $\forall$-introduction.
230 105 adas
%The other initial functions are routine.
231 33 adas
\end{proof}
232 40 adas
233 40 adas
234 53 adas
235 53 adas
236 53 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