Révision 94

CSL16/biblio.bib (revision 94)
31 31
  
32 32
}
33 33

  
34
@Phdthesis{BellantoniThesis,
35
author={Stephen J. Bellantoni},
36
title={Predicative Recursion and Computational Complexity},
37
school={University of Toronto},
38
year={1992}
39
}
40

  
34 41
@article{BelHof:02,
35 42
  author    = {Stephen Bellantoni and
36 43
               Martin Hofmann},
CSL16/bc.tex (revision 94)
1 1

  
2 2
\section{Bellantoni-Cook characterisation of polynomial-time functions}
3 3
%We first recall the notion of safe recursion on notation from BC. TODO
4
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.
4
We recall the Bellantoni-Cook  algebra BC of programs defined by safe recursion on notation \cite{BellantoniCook92}. 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. We consider function symbols $f$ over the domain  $\Word$ which have \textit{normal} and \textit{safe} arguments. Each symbol is given with an arity $m$ and a number $n\leq m$ of normal arguments, and will be denoted as $f(\vec{u};\vec{x})$ where $\vec{u}$ (resp. $\vec{x}$) are the normal (resp. safe) arguments.
5
We say that an expression is well-sorted if the arities of function symbols in it is respected.
6
%\cite{BellantoniThesis}
5 7

  
6 8
\anupam{Do we need simultaneous PRN? cf.\ Bellantoni's thesis.}
7 9

  
8
\todo{reformulate below for binary words, not natural numbers?}
9

  
10
\patrick{Note that below I used the terminology 'BC programs', to distinguish them from 'functions' in the extensional sense, which I find clearer. But if you prefer to keep 'BC functions' it is all right for me.}
10 11
\begin{definition}
11
	[BC functions]
12
	BC is the set of functions over $\Word$ generated by the following initial functions and closure schemes.
13
	
14
%	\paragraph{Initial functions}
15
	There are the following initial functions:
12
	[BC programs]
13
	BC is the set of programs over $\Word$ generated by the following initial functions and closure schemes.
14
	%	\paragraph{Initial functions}
15
%	The initial functions are:
16 16
	\begin{enumerate}
17 17
		\item The constant function $\epsilon$ which takes no arguments and outputs $\epsilon \in \Word$.
18 18
		\item The projection functions $\pi^{m,n}_k ( x_1 , \dots , x_m ; x_{m+1} , \dots, x_{m+n} )  := x_k$ for $n,m \in \Word$ and $1 \leq k \leq m+n$.
......
21 21
		\epsilon &  \mbox{ if }  x = \epsilon \\
22 22
		x' &  \mbox{ if }  x = x'i
23 23
		\end{cases}$.
24
		\item The conditional function $\cond (;x,y,z) := \begin{cases}
25
		y & \mbox{ if } x=x' 0 \\
26
		z & \text{otherwise}
27
		\end{cases}$.
24
		\item The conditional function 
25
		\[
26
\begin{array}{rcl}
27
C (; \epsilon, y_\epsilon , y_0, y_1  ) & = & y_\epsilon \\
28
C(; x0 , y_\epsilon , y_0, y_1) & = & y_0 \\
29
C(; x1 , y_\epsilon , y_0, y_1) & = & y_1 
30
\end{array}
31
\]
32
%		$\cond (;x,y,z) := \begin{cases}
33
%		y & \mbox{ if } x=x' 0 \\
34
%		z & \text{otherwise}
35
%		\end{cases}$.
28 36
	\end{enumerate}
29 37
	
30
	There are the following closure properties.
38
	One considers the following closure schemes:
31 39
	\begin{enumerate}
32 40
	\setcounter{enumi}{5}
33
	\item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
41
	\item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is $f$ defined by,
34 42
	\[
35 43
	\begin{array}{rcl}
36 44
	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
37 45
	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
38 46
	\end{array}
39 47
	\]
40
	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
48
	for $i = 0,1$,  so long as the expressions are well-formed. % (i.e.\ in number/sort of arguments).
41 49
	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
42 50
	\[
43 51
	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
......
45 53
	so long as the expression is well-formed.
46 54
	\end{enumerate}
47 55
	\end{definition}
56
Note that the  programs of this class can be defined by equational specifications in a natural way, and in the following we will thus silently identify a BC program with the corresponding equational specification.
48 57
	
49
%	\begin{definition}        %% former definition of BC over integers
50
%	[BC functions]
51
%	BC is the set of functions generated by the following initial functions and closure schemes.
52
%	
53
%%	\paragraph{Initial functions}
54
%	There are the following initial functions:
55
%	\begin{enumerate}
56
%		\item The constant function $0$ which takes no arguments and outputs $0 \in \Nat$.
57
%		\item The projection functions $\pi^{m,n}_k ( x_1 , \dots , x_m ; x_{m+1} , \dots, x_{m+n} )  := x_k$ for $n,m \in \Nat$ and $1 \leq k \leq m+n$.
58
%		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
59
%		\item The predecessor function $\pred (; x) := \begin{cases}
60
%		0 & x = 0 \\
61
%		x' & x = x'i
62
%		\end{cases}$.
63
%		\item The conditional function $\cond (;x,y,z) := \begin{cases}
64
%		y & x \mod{2} = 0 \\
65
%		z & \text{otherwise}
66
%		\end{cases}$.
67
%	\end{enumerate}
68
%	
69
%	There are the following closure properties.
70
%	\begin{enumerate}
71
%	\setcounter{enumi}{5}
72
%	\item Predicative recursion on notation. If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
73
%	\[
74
%	\begin{array}{rcl}
75
%	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
76
%	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
77
%	\end{array}
78
%	\]
79
%	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
80
%	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
81
%	\[
82
%	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
83
%	\]
84
%	so long as the expression is well-formed.
85
%	\end{enumerate}
86
%	\end{definition}
87

  
88

  
89

  
90 58
\anupam{simultaneous recursion?}
91 59

  
92 60
\anupam{also identity, hereditarily safe, expressions, etc.}
93 61

  
94
\anupam{we implicitly associate a BC program with its equational specification}
62
%\anupam{we implicitly associate a BC program with its equational specification} 
95 63

  
96

  
64
Consider a well-formed expression $t$ built from function symbols, initial functions and variables. One says that a variable $y$ is \textit{hereditarily safe} in $t$ if  for every subexpression $f(\vec{r}; \vec{s})$ of $t$ the terms in $\vec{r}$ do not contain any occurrence of $y$.  For instance $y$ is hereditarily safe in $f(u;y,g(v;y))$, but not in $f(g(v;y);x)$.
97 65
\begin{proposition}
98 66
[Properties of BC programs]
99 67
\label{prop:bc-properties}
100 68
We have the following properties:
101 69
\begin{enumerate}
102
\item Hereditarily safe expressions over BC programs are BC definable.
103
\item Can pass safe input to normal input.
70
\item Let $t$ be a well-formed expression built from BC programs and variables, denote its free variables as $\{u_1,\dots, u_n,x_1,\dots, x_k\}$, and assume for for each $1\leq i\leq k$, $x_i$ is hereditarily safe in $t$. Then the function $f$ defined
71
by $f(u_1,\dots, u_n,x_1,\dots, x_k):=t$ is a BC program.
72
\item Assume $f$ is a BC program, then the program $g$ defined as
73
$$ g(\vec{u},v;\vec{x}):=f(\vec{u};v,\vec{x})$$
74
is also a BC program.
104 75
\end{enumerate}
105 76

  
106
\todo{finish this, add properties as required.}
77
%\begin{proposition}
78
%[Properties of BC programs]
79
%\label{prop:bc-properties}
80
%We have the following properties:
81
%\begin{enumerate}
82
%\item Hereditarily safe expressions over BC programs are BC definable.
83
%\item Can pass safe input to normal input.
84
%\end{enumerate}
107 85
\end{proposition}

Formats disponibles : Unified diff