Statistiques
| Révision :

root / CSL16 / bc.tex @ 92

Historique | Voir | Annoter | Télécharger (4,2 ko)

1

    
2
\section{Bellantoni-Cook characterisation of polynomial-time functions}
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.
5

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

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

    
10
\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:
16
	\begin{enumerate}
17
		\item The constant function $\epsilon$ which takes no arguments and outputs $\epsilon \in \Word$.
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$.
19
		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
20
		\item The predecessor function $\pred (; x) := \begin{cases}
21
		\epsilon &  \mbox{ if }  x = \epsilon \\
22
		x' &  \mbox{ if }  x = x'i
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}$.
28
	\end{enumerate}
29
	
30
	There are the following closure properties.
31
	\begin{enumerate}
32
	\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,
34
	\[
35
	\begin{array}{rcl}
36
	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
37
	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
38
	\end{array}
39
	\]
40
	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
41
	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
42
	\[
43
	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
44
	\]
45
	so long as the expression is well-formed.
46
	\end{enumerate}
47
	\end{definition}
48
	
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
\anupam{simultaneous recursion?}
91

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

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

    
96

    
97
\begin{proposition}
98
[Properties of BC programs]
99
\label{prop:bc-properties}
100
We have the following properties:
101
\begin{enumerate}
102
\item Hereditarily safe expressions over BC programs are BC definable.
103
\item Can pass safe input to normal input.
104
\end{enumerate}
105

    
106
\todo{finish this, add properties as required.}
107
\end{proposition}