Révision 60

CSL16/arithmetic.tex (revision 60)
189 189
%}
190 190

  
191 191

  
192
\subsection{Provably convergent functions}
192 193

  
194
As in the work of Bellantoni and Hofmann \cite{BelHof:02} and Leivant before [cite], our programs are \emph{equational specifications}, sets of equations. These are expressive enough to define every partial recursive function, which is the reason why we also need the $\word$ predicate to have a meaningful notion of `provably total function'.
195

  
196
\begin{definition}
197
	[Equational specifications and convergence]
198
	An \emph{equational specification} is a set of equations between terms.
199
	
200
	The \emph{convergence statement} $\conv (f , \eqspec)$ for an equational specification $\eqspec$ and a function symbol $f$ (that occurs in $\eqspec$) is the following formula:
201
	\[
202
	\bigotimes_{A \in \eqspec} ! \forall \vec x . A
203
	\ \limp \ 
204
	\forall \vec x^\word . \word (f (\vec x) )
205
	\]
206
	\end{definition}
207

  
208
	One issue is that a convergence statement contains universal quantifiers, which is problematic for the extraction of functions by the witness function method later on.
209
%	\footnote{Intuitively universal quantifiers can be interpreted by type 1 functions. From here, in an intuitionistic setting, a $\forall$-right step can be directly realised, but in the classical setting the presence of side-formulae on the right can cause issues for constructivity.}
210
	We avoid this problem by appealing to the deduction theorem and further invertibility arguments:
211
	
212
	
213
	Let us write $\closure{\eqspec}$ for the closure of a specification $\eqspec$ under substitution of terms.
214
	
215
	\begin{proposition}
216
	For any system $\system$, we have that $\system$ proves $\conv (f , \eqspec)$ if and only if $\system \cup \closure{\eqspec}$ proves $\word (\vec a) \seqar \word ( f (\vec a) )$.
217
	\end{proposition}
218
	\begin{proof}
219
		\todo{}
220
	\end{proof}	
221
	
222
	Notice that, if the axioms of 
223

  
224

  
193 225
\subsection{$\word$-guarded quantifiers, rules and cut-reduction cases}
194 226

  
195 227
\begin{definition}
CSL16/wfm.tex (revision 60)
65 65
		
66 66
		This sorted tuple corresponds to the input variables, normal and safe, for the BC programs that we will define. It becomes important here that we are considering proofs of a convergence statement, since a free-cut free $\arith$-proof of a convergence statement cannot contain any $\lor$ symbols in the scope of a $!$. This could cause an issue in the above definition since we do not in general have the equivalence $!(A \lor B) \equiv !A \lor !B$. On the other hand, the equivalence $!(A\land B) \equiv !A \land !B$ follows since we are in the affine setting.
67 67
		
68
		One issue is that a convergence statement contains universal quantifiers (from the equational specification), which is problematic for the extraction of functions by the WFM, and we have not given a typing case for it above.\footnote{Intuitively universal quantifiers can be interpreted by type 1 functions. From here, in an intuitionistic setting, a $\forall$-right step can be directly realised, but in the classical setting the presence of side-formulae on the right can cause issues for constructivity.}
69
		We avoid this problem by use of the deduction theorem and invertibility arguments, as we did before for the axioms.\anupam{Reference earlier lemmas/theorems}
70
		
68
	
71 69
		Let us fix a particular convergence statement for an equational specification $\eqspec$. 
72 70
		
73 71
		
CSL16/preliminaries.tex (revision 60)
162 162
   $\Sigma', \Delta'$ in rule (R).
163 163
  
164 164
 
165
 \anupam{15/04: add definitions of theories and systems, unions, rules vs axioms etc.}
166
 
165 167
\subsection{Deduction theorem}
166 168

  
167 169
[cite Avron:`semantics and proof theory of linear logic']
......
178 180

  
179 181
\begin{theorem}
180 182
	[Deduction]
183
	\label{thm:deduction}
181 184
	If $\mathcal T , A \proves B$ then $\mathcal{T} \proves !A \limp B$.
182 185
\end{theorem}
183 186

  
CSL16/bc-convergence.tex (revision 60)
3 3

  
4 4
\anupam{In this section, use whatever form of the deduction theorem is necessary and reverse engineer precise statement later.}
5 5

  
6
\subsection{Equational specifications and convergence statements}
7 6

  
8 7

  
9 8

  
9

  
10 10
\subsection{Bellantoni-Cook programs}
11 11
%We first recall the notion of safe recursion on notation from BC. TODO
12 12
We recall the Bellantoni-Cook  algebra BC of programs defined by safe recursion on notation. These will be employed for proving both the completeness   (all polynomial time functions are provably total) and the soundness result (all provably total functions are polynomial time) of our system.
CSL16/macros.tex (revision 60)
34 34
	%specification
35 35
	
36 36
	\newcommand{\eqspec}{\mathcal E}
37
	\newcommand{\closure}[1]{\overline{#1}}
37 38
	
39
	\newcommand{\conv}{\mathit{Conv}}
40
	
38 41
	% theories
39
	
42
	\newcommand{\theory}{\mathcal T}
43
	\newcommand{\system}{\mathcal S}
40 44

  
41 45
	
42 46
	%terms

Formats disponibles : Unified diff