Statistiques
| Révision :

root / CSL16 / bc-convergence.tex @ 108

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

1

    
2
\section{Convergence of Bellantoni-Cook programs in $\arith$}
3
\label{sect:bc-convergence}
4
%\anupam{In this section, use whatever form of the deduction theorem is necessary and reverse engineer precise statement later.}
5

    
6
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

    
8
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

    
10
We will assume the formulation of BC programs with regular PRN, not simultaneous PRN.
11

    
12

    
13
%\subsection{Convergence in arithmetic}
14

    
15
%\begin{theorem}
16
%	[Convergence]
17
%	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
%\end{theorem}
19

    
20
%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
\begin{theorem}
22
%	[Convergence]
23
\label{thm:arith-proves-bc-conv}
24
	If $\eqspec$ is a BC program defining a function $f$, then $I\sigzer$ proves $\conv(f, \eqspec)$.
25
\end{theorem}
26

    
27
%\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

    
29
\begin{proof}[Proof sketch]
30
%	We write function symbols in $\arith$ with arguments delimited by $;$, as for BC-programs. 
31
	We appeal to Lemma~\ref{lemma:spec-norm-form} and show that $\closure{\eqspec} \cup I\sigzer$ proves,
32
	\begin{equation}
33
	\label{eqn:prv-cvg-ih}
34
\forall \vec{u}^{!\word} . \forall \vec{x}^\word . \word(f(\vec u ; \vec x))
35
	\end{equation}
36
	We proceed by induction on the structure of a BC program for $f$, and sketch only the key cases here.
37
%	We give some key cases in what follows.
38
	
39
	Suppose $f$ is defined by PRN as:
40
	\[
41
	\begin{array}{rcl}
42
	f(\epsilon,\vec v ; \vec x) & = & g(\vec v ; \vec x) \\
43
	f(\succ_i u , \vec v; \vec x) & = & h_i (u, \vec v ; \vec x , f(u , \vec v ; \vec x))
44
	\end{array}
45
	\]
46
	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
	\begin{equation}
48
	\label{eqn:prn-cvg-base}
49
	\small
50
	\vlderivation{
51
			\vliq{\beta}{}{!\word(\vec v) , \word (\vec x) \seqar \word(f (\epsilon , \vec v ; \vec x)) }{
52
				\vliq{\alpha}{}{!\word (\vec v) , \word (\vec x) \seqar \word (g (\vec v ; \vec x) ) }{
53
					\vltr{\IH}{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x)) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
54
					}
55
				}
56
			}
57
	\end{equation}
58
	where $\alpha $ and $\beta$ are purely logical derivations using cuts.	
59
%	We first prove,
60
%	\begin{equation}
61
%	!\word (a) , !\word (\vec v) , \word (\vec x) \land \word (f( a , \vec v ; \vec x ) )
62
%	\seqar
63
%	\word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) )
64
%	\end{equation}
65
%	for $i=0,1$, whence we will apply $\ind$. We construct the following proofs:
66
We also construct the proofs $\pi_i$, for $i=0,1$,
67
	\begin{equation}
68
	\label{eqn:prn-cvg-ind}
69
	%\vlderivation{
70
	%	\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
	%	\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
	%		\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
	%			\vlin{\id}{}{\word(\vec x) \seqar \word (\vec x) }{\vlhy{}}
74
	%			}{
75
	%			\vliq{\beta}{}{  \word (\vec x) , \word (f(u , \vec v ; \vec x) ) \seqar \word ( f(\succ_i u , \vec v ; \vec x) ) }{
76
	%				\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
	%					\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
	%					}
79
	%				}
80
	%			}
81
	%		}
82
	%	}
83
	%	}
84
	\small
85
	\vlderivation{
86
	\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
	\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
	\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
	\vlin{\id}{}{\word (\vec x) \seqar \word (\vec x)}{\vlhy{}}
90
	}{
91
		\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
				\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
					\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
				}
95
			}
96
			}
97
	}
98
	}
99
	}
100
\end{equation}
101
where $\alpha$ and $\beta$ are, again, purely logical.
102
%%	so let us suppose that $\word(\vec v)$ and prove,
103
%	\begin{equation}
104
%% \forall u^{!\word} .  (\word(\vec x) \limp \word(f(u , \vec v ; \vec x)  )
105
%!\word (u) , !\word (\vec v) , \word (\vec x) \seqar \word ( f(u, \vec v ; \vec x) )
106
%	\end{equation}
107
%	by $\cax{\Sigma^N_1}{\pind}$ on $u$. After this the result will follow by $\forall$-introduction for $u, \vec v , \vec x$.
108
	
109
%	In the base case we have the following proof,
110
%	\[
111
%	\vlderivation{
112
%	\vlin{\rigrul{\limp}}{}{ \seqar \word (\vec x) \limp \word (f(\epsilon , \vec v ; \vec x )) }{
113
%		\vliq{\beta}{}{ \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x) ) }{
114
%			\vliq{\alpha}{}{ \word (\vec x) \seqar \word ( g (\vec v ; \vec x) ) }{
115
%				\vltr{IH}{\seqar \forall v^{!\word} . \forall x^\word . \word( g(\vec v ; \vec x) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
116
%				}
117
%			}
118
%		}		
119
%		}
120
Finally we compose these proofs as follows:
121
\[
122
\small
123
\vlderivation{
124
\vliq{\rigrul{\forall}}{}{ \seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word . \word ( f(u , \vec v ;\vec x)  ) }{
125
\vliq{\lefrul{\cntr}}{}{ !\word (u), !\word (\vec v) , \word (\vec x) \seqar  \word ( f(u , \vec v ;\vec x)  )  }
126
{
127
\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
\vltr{\pi_\epsilon}{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
129
}
130
{
131
\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
\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
\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
{
135
\vlhy{
136
\left\{
137
\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
\right\}_i
139
}
140
}
141
}
142
}
143
}
144
}
145
}
146
}
147
\]
148
for $i=0,1$, where the steps $\inv{\land}$ are obtained from invertibility of $\lefrul{\land}$.
149

    
150
%For the inductive step, we suppose that $\word (u)$ and the proof is as follows,
151
%
152
%where the steps indicated $\alpha$ and $\beta$ are analogous to those for the base case.
153
%%, and $\gamma$ is an instance of the general scheme:
154
%%\begin{equation}
155
%%\label{eqn:nat-cntr-left-derivation}
156
%%\vlderivation{
157
%%	\vliin{\cut}{}{ \word (t) , \Gamma \seqar \Delta }{
158
%%		\vlin{\wordcntr}{}{ \word (t) \seqar \word (t) \land \word (t) }{\vlhy{}}
159
%%		}{
160
%%		\vlin{\lefrul{\land}}{}{\word (t)  \land \word (t) , \Gamma \seqar \Delta}{ \vlhy{\word (t)  ,\word (t) , \Gamma \seqar \Delta} }
161
%%		}
162
%%	}
163
%%\end{equation}
164
%
165
%%
166
%%For the inductive step, we need to show that,
167
%%\[
168
%%\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
%%\]
170
%%so let us suppose that $N(x)$ and we give the following proof:
171
%%\[
172
%%\vlderivation{
173
%%	\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
%%		\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
%%			\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
%%				\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
%%			}{
178
%%			\vlhy{2}
179
%%		}
180
%%	}{
181
%%	\vlhy{3}
182
%%}
183
%%}
184
%%}
185
%%\]
186
%%TOFINISH
187

    
188
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

    
190

    
191
We also give the case of the conditional initial function, to exemplify the use of additives. The conditional is defined equationally as:
192
\[
193
\begin{array}{rcl}
194
C (; \epsilon, y_\epsilon , y_0, y_1  ) & = & y_\epsilon \\
195
C(; \succ_0 x , y_\epsilon , y_0, y_1) & = & y_0 \\
196
C(; \succ_1 x , y_\epsilon , y_0, y_1) & = & y_1 
197
\end{array}
198
\]
199
Let $\vec y = ( y_\epsilon , y_0, y_1 )$ and construct the required proof as follows:
200
\[
201
\small
202
\vlderivation{
203
\vliq{}{}{ \word (x) , \word (\vec y) \seqar \word ( C(; x ,\vec y) )}{
204
\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
\vliq{}{}{ x = \epsilon , \word (\vec y) \seqar \word ( C(; x , \vec y) ) }{
206
\vliq{}{}{ \word (\vec y) \seqar \word ( C( ; \epsilon , \vec y ) ) }{
207
\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_\epsilon) }{ 
208
\vlin{\id}{}{\word (y_\epsilon) \seqar \word ( y_\epsilon )}{\vlhy{}}
209
}
210
}
211
}
212
}{
213
\vlhy{
214
\left\{ 
215
\vlderivation{
216
\vlin{\lefrul{\exists}}{}{ \exists z^\word . x = \succ_i z , \word (\vec y) \seqar \word ( C(;x , \vec y) ) }{
217
\vliq{}{}{ x = \succ_i a , \word (\vec y ) \seqar \word (C(; x ,\vec y)) }{
218
\vliq{}{}{ \word (\vec y) \seqar \word ( C(; \succ_i a , \vec y ) ) }{
219
\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_i) }{
220
\vlin{\id}{}{\word (y_i) \seqar \word (y_i)}{\vlhy{}}
221
}
222
}
223
}
224
}
225
}
226
\right\}_{i = 0,1}
227
}
228
}
229
}
230
}
231
\]
232
whence the result follows by $\forall$-introduction.
233
%The other initial functions are routine.
234
\end{proof}
235

    
236

    
237

    
238

    
239

    
240

    
241

    
242

    
243

    
244

    
245

    
246

    
247

    
248

    
249

    
250

    
251

    
252

    
253

    
254

    
255

    
256

    
257

    
258

    
259

    
260

    
261

    
262

    
263

    
264

    
265

    
266

    
267

    
268

    
269

    
270

    
271

    
272

    
273

    
274

    
275

    
276