Révision 71

CSL16/bc-convergence.tex (revision 71)
1 1

  
2
\section{Convergence of Bellantoni-Cook programs}
2
\section{Convergence of Bellantoni-Cook programs in $\arith$}
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

  
......
7 7

  
8 8

  
9 9

  
10
\subsection{Bellantoni-Cook programs}
11
%We first recall the notion of safe recursion on notation from BC. TODO
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.
13 10

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

  
16
\todo{reformulate below for binary words, not natural numbers?}
17

  
18
\begin{definition}
19
	[BC functions]
20
	BC is the set of functions over $\Word$ generated by the following initial functions and closure schemes.
21
	
22
%	\paragraph{Initial functions}
23
	There are the following initial functions:
24
	\begin{enumerate}
25
		\item The constant function $\epsilon$ which takes no arguments and outputs $\epsilon \in \Word$.
26
		\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$.
27
		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
28
		\item The predecessor function $\pred (; x) := \begin{cases}
29
		\epsilon &  \mbox{ if }  x = \epsilon \\
30
		x' &  \mbox{ if }  x = x'i
31
		\end{cases}$.
32
		\item The conditional function $\cond (;x,y,z) := \begin{cases}
33
		y & \mbox{ if } x=x' 0 \\
34
		z & \text{otherwise}
35
		\end{cases}$.
36
	\end{enumerate}
37
	
38
	There are the following closure properties.
39
	\begin{enumerate}
40
	\setcounter{enumi}{5}
41
	\item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
42
	\[
43
	\begin{array}{rcl}
44
	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
45
	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
46
	\end{array}
47
	\]
48
	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
49
	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
50
	\[
51
	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
52
	\]
53
	so long as the expression is well-formed.
54
	\end{enumerate}
55
	\end{definition}
56
	
57
%	\begin{definition}        %% former definition of BC over integers
58
%	[BC functions]
59
%	BC is the set of functions generated by the following initial functions and closure schemes.
60
%	
61
%%	\paragraph{Initial functions}
62
%	There are the following initial functions:
63
%	\begin{enumerate}
64
%		\item The constant function $0$ which takes no arguments and outputs $0 \in \Nat$.
65
%		\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$.
66
%		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
67
%		\item The predecessor function $\pred (; x) := \begin{cases}
68
%		0 & x = 0 \\
69
%		x' & x = x'i
70
%		\end{cases}$.
71
%		\item The conditional function $\cond (;x,y,z) := \begin{cases}
72
%		y & x \mod{2} = 0 \\
73
%		z & \text{otherwise}
74
%		\end{cases}$.
75
%	\end{enumerate}
76
%	
77
%	There are the following closure properties.
78
%	\begin{enumerate}
79
%	\setcounter{enumi}{5}
80
%	\item Predicative recursion on notation. If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
81
%	\[
82
%	\begin{array}{rcl}
83
%	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
84
%	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
85
%	\end{array}
86
%	\]
87
%	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
88
%	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
89
%	\[
90
%	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
91
%	\]
92
%	so long as the expression is well-formed.
93
%	\end{enumerate}
94
%	\end{definition}
95

  
96

  
97

  
98
\anupam{simultaneous recursion?}
99

  
100
\anupam{also identity, hereditarily safe, expressions, etc.}
101

  
102

  
103
\begin{proposition}
104
[Properties of BC programs]
105
\label{prop:bc-properties}
106
We have the following properties:
107
\begin{enumerate}
108
\item Hereditarily safe expressions over BC programs are BC definable.
109
\item Can pass safe input to normal input.
110
\end{enumerate}
111

  
112
\todo{finish this, add properties as required.}
113
\end{proposition}
114

  
115 11
\subsection{Convergence in arithmetic}
116 12

  
117 13
%\begin{theorem}
CSL16/bc.tex (revision 71)
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

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

  
104
\todo{finish this, add properties as required.}
105
\end{proposition}
CSL16/main.tex (revision 71)
76 76

  
77 77
\input{arithmetic}
78 78

  
79
\input{bc}
80

  
79 81
\input{bc-convergence}
80 82

  
81 83
\input{wfm}

Formats disponibles : Unified diff