Statistiques
| Révision :

root / CSL16 / bc.tex @ 92

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

1 71 adas
2 71 adas
\section{Bellantoni-Cook characterisation of polynomial-time functions}
3 71 adas
%We first recall the notion of safe recursion on notation from BC. TODO
4 71 adas
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 71 adas
6 71 adas
\anupam{Do we need simultaneous PRN? cf.\ Bellantoni's thesis.}
7 71 adas
8 71 adas
\todo{reformulate below for binary words, not natural numbers?}
9 71 adas
10 71 adas
\begin{definition}
11 71 adas
	[BC functions]
12 71 adas
	BC is the set of functions over $\Word$ generated by the following initial functions and closure schemes.
13 71 adas
14 71 adas
%	\paragraph{Initial functions}
15 71 adas
	There are the following initial functions:
16 71 adas
	\begin{enumerate}
17 71 adas
		\item The constant function $\epsilon$ which takes no arguments and outputs $\epsilon \in \Word$.
18 71 adas
		\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 71 adas
		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
20 71 adas
		\item The predecessor function $\pred (; x) := \begin{cases}
21 71 adas
		\epsilon &  \mbox{ if }  x = \epsilon \\
22 71 adas
		x' &  \mbox{ if }  x = x'i
23 71 adas
		\end{cases}$.
24 71 adas
		\item The conditional function $\cond (;x,y,z) := \begin{cases}
25 71 adas
		y & \mbox{ if } x=x' 0 \\
26 71 adas
		z & \text{otherwise}
27 71 adas
		\end{cases}$.
28 71 adas
	\end{enumerate}
29 71 adas
30 71 adas
	There are the following closure properties.
31 71 adas
	\begin{enumerate}
32 71 adas
	\setcounter{enumi}{5}
33 71 adas
	\item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
34 71 adas
	\[
35 71 adas
	\begin{array}{rcl}
36 71 adas
	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
37 71 adas
	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
38 71 adas
	\end{array}
39 71 adas
	\]
40 71 adas
	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
41 71 adas
	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
42 71 adas
	\[
43 71 adas
	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
44 71 adas
	\]
45 71 adas
	so long as the expression is well-formed.
46 71 adas
	\end{enumerate}
47 71 adas
	\end{definition}
48 71 adas
49 71 adas
%	\begin{definition}        %% former definition of BC over integers
50 71 adas
%	[BC functions]
51 71 adas
%	BC is the set of functions generated by the following initial functions and closure schemes.
52 71 adas
%
53 71 adas
%%	\paragraph{Initial functions}
54 71 adas
%	There are the following initial functions:
55 71 adas
%	\begin{enumerate}
56 71 adas
%		\item The constant function $0$ which takes no arguments and outputs $0 \in \Nat$.
57 71 adas
%		\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 71 adas
%		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
59 71 adas
%		\item The predecessor function $\pred (; x) := \begin{cases}
60 71 adas
%		0 & x = 0 \\
61 71 adas
%		x' & x = x'i
62 71 adas
%		\end{cases}$.
63 71 adas
%		\item The conditional function $\cond (;x,y,z) := \begin{cases}
64 71 adas
%		y & x \mod{2} = 0 \\
65 71 adas
%		z & \text{otherwise}
66 71 adas
%		\end{cases}$.
67 71 adas
%	\end{enumerate}
68 71 adas
%
69 71 adas
%	There are the following closure properties.
70 71 adas
%	\begin{enumerate}
71 71 adas
%	\setcounter{enumi}{5}
72 71 adas
%	\item Predicative recursion on notation. If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
73 71 adas
%	\[
74 71 adas
%	\begin{array}{rcl}
75 71 adas
%	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
76 71 adas
%	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
77 71 adas
%	\end{array}
78 71 adas
%	\]
79 71 adas
%	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
80 71 adas
%	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
81 71 adas
%	\[
82 71 adas
%	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
83 71 adas
%	\]
84 71 adas
%	so long as the expression is well-formed.
85 71 adas
%	\end{enumerate}
86 71 adas
%	\end{definition}
87 71 adas
88 71 adas
89 71 adas
90 71 adas
\anupam{simultaneous recursion?}
91 71 adas
92 71 adas
\anupam{also identity, hereditarily safe, expressions, etc.}
93 71 adas
94 73 adas
\anupam{we implicitly associate a BC program with its equational specification}
95 71 adas
96 73 adas
97 71 adas
\begin{proposition}
98 71 adas
[Properties of BC programs]
99 71 adas
\label{prop:bc-properties}
100 71 adas
We have the following properties:
101 71 adas
\begin{enumerate}
102 71 adas
\item Hereditarily safe expressions over BC programs are BC definable.
103 71 adas
\item Can pass safe input to normal input.
104 71 adas
\end{enumerate}
105 71 adas
106 71 adas
\todo{finish this, add properties as required.}
107 71 adas
\end{proposition}