Statistiques
| Révision :

root / CSL17 / preliminaries.tex @ 158

Historique | Voir | Annoter | Télécharger (5,97 ko)

1 154 adas
2 154 adas
\section{Preliminaries}
3 154 adas
We introduce the polynomial hierarchy and its basic properties, then the Bellantoni characterisation.
4 154 adas
5 157 adas
\anupam{Should recall polymax bounded functions and the polychecking lemma, e.g.\ from Bellantoni's FPH paper or thesis. Quite important, even if proof not given.}
6 157 adas
7 154 adas
\subsection{Polynomial hierarchy}
8 154 adas
(include closure properties)
9 154 adas
10 154 adas
\subsection{Bellantoni's characterisation using predicative minimisation}
11 156 adas
(perhaps compare with Cobham's using limited recursion)
12 156 adas
13 156 adas
\anupam{copied below from last year's paper}
14 156 adas
15 156 adas
We recall the Bellantoni-Cook  algebra BC of functions defined by \emph{safe} (or \emph{predicative}) recursion on notation \cite{BellantoniCook92}. These will be employed for proving both the completeness   (all polynomial time functions are provably convergent) and the soundness result (all provably total functions are polynomial time) of THEORY. We consider function symbols $f$ over the domain  $\Word$ with sorted arguments $(\vec u ; \vec x)$, where the inputs $\vec u$ are called \textit{normal} and $\vec x$ are called \textit{safe}.
16 156 adas
%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.
17 156 adas
%We say that an expression is well-sorted if the arities of function symbols in it is respected.
18 156 adas
19 156 adas
%\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.}
20 156 adas
\begin{definition}
21 156 adas
	[BC programs]
22 156 adas
	BC is the set of functions generated as follows:
23 156 adas
	%	\paragraph{Initial functions}
24 156 adas
	%	The initial functions are:
25 156 adas
	\begin{enumerate}
26 156 adas
		\item The constant functions $\epsilon^k$ which takes $k$ arguments and outputs $\epsilon \in \Word$.
27 156 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$.
28 156 adas
		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
29 156 adas
		\item The predecessor function $\pred (; x) := \begin{cases}
30 156 adas
		\epsilon &  \mbox{ if }  x = \epsilon \\
31 156 adas
		x' &  \mbox{ if }  x = x'i
32 156 adas
		\end{cases}$.
33 156 adas
		\item The conditional function
34 156 adas
		\[
35 156 adas
		%\begin{array}{rcl}
36 156 adas
		%C (; \epsilon, y_\epsilon , y_0, y_1  ) & = & y_\epsilon \\
37 156 adas
		%C(; x0 , y_\epsilon , y_0, y_1) & = & y_0 \\
38 156 adas
		%C(; x1 , y_\epsilon , y_0, y_1) & = & y_1
39 156 adas
		%\end{array}
40 156 adas
		C (; \epsilon, y_\epsilon , y_0, y_1  ) := y_\epsilon
41 156 adas
		\quad
42 156 adas
		C(; x0 , y_\epsilon , y_0, y_1) := y_0
43 156 adas
		\quad
44 156 adas
		C(; x1 , y_\epsilon , y_0, y_1) := y_1
45 156 adas
		\]
46 156 adas
		%		$\cond (;x,y,z) := \begin{cases}
47 156 adas
		%		y & \mbox{ if } x=x' 0 \\
48 156 adas
		%		z & \text{otherwise}
49 156 adas
		%		\end{cases}$.
50 156 adas
	\end{enumerate}
51 156 adas
52 156 adas
	%	One considers the following closure schemes:
53 156 adas
	\begin{enumerate}
54 156 adas
		\setcounter{enumi}{5}
55 156 adas
		\item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is $f$ defined by,
56 156 adas
		\[
57 156 adas
		\begin{array}{rcl}
58 156 adas
		f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
59 156 adas
		f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
60 156 adas
		\end{array}
61 156 adas
		\]
62 156 adas
		for $i = 0,1$,  so long as the expressions are well-formed. % (i.e.\ in number/sort of arguments).
63 156 adas
		\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
64 156 adas
		\[
65 156 adas
		f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
66 156 adas
		\]
67 156 adas
		so long as the expression is well-formed.
68 156 adas
	\end{enumerate}
69 156 adas
\end{definition}
70 156 adas
%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.
71 156 adas
72 156 adas
We will implicitly identify a BC function with the equational specification it induces.
73 156 adas
The main property of BC programs is:
74 156 adas
\begin{theorem}[\cite{BellantoniCook92}]
75 156 adas
	The class of functions representable by BC programs is $\fptime$.
76 156 adas
\end{theorem}
77 156 adas
Actually this property remains true if one replaces the PRN scheme by the following more general simultaneous PRN scheme \cite{BellantoniThesis}:
78 156 adas
79 156 adas
$(f^j)_{1\leq j\leq n}$ are defined by simultaneous PRN scheme  from $(g^j)_{1\leq j\leq n}$, $(h^j_0, h^j_1)_{1\leq j\leq n}$ if for $1\leq j\leq n$ we have:
80 156 adas
\[
81 156 adas
\begin{array}{rcl}
82 156 adas
f^j(0, \vec v ; \vec x) & := & g^j(\vec v ; \vec x) \\
83 156 adas
f^j(\succ_i u , \vec v ; \vec x ) & := & h^j_i ( u , \vec v ; \vec x , \vec{f} (u , \vec v ; \vec x) )
84 156 adas
\end{array}
85 156 adas
\]
86 156 adas
for $i = 0,1$,  so long as the expressions are well-formed.
87 156 adas
88 156 adas
%\anupam{simultaneous recursion?}
89 156 adas
90 156 adas
%\anupam{also identity, hereditarily safe, expressions, etc.}
91 156 adas
92 156 adas
%\anupam{we implicitly associate a BC program with its equational specification}
93 156 adas
94 156 adas
Consider a well-formed expression $t$ built from function symbols and variables. We say that a variable $y$ occurs \textit{hereditarily safe} in $t$ if, for every subexpression $f(\vec{r}; \vec{s})$ of $t$, the terms in $\vec{r}$ do not contain $y$.
95 156 adas
For instance $y$ occurs hereditarily safe in $f(u;y,g(v;y))$, but not in $f(g(v;y);x)$.
96 156 adas
\begin{proposition}
97 156 adas
	[Properties of BC programs]
98 156 adas
	\label{prop:bc-properties}
99 156 adas
	We have the following properties:
100 156 adas
	\begin{enumerate}
101 156 adas
		\item The identity function is in BC.
102 156 adas
		\item Let $t$ be a well-formed expression built from BC functions and variables, denote its free variables as $\{u_1,\dots, u_n,x_1,\dots, x_k\}$, and assume for each $1\leq i\leq k$, $x_i$ is hereditarily safe in $t$. Then the function $f(u_1,\dots, u_n; x_1,\dots, x_k):=t$ is in BC.
103 156 adas
		\item If $f$ is a BC function, then the function $g(\vec{u},v;\vec{x})$ defined as $f(\vec{u};v,\vec{x})$
104 156 adas
		is also a BC program.
105 156 adas
	\end{enumerate}
106 156 adas
107 156 adas
	%\begin{proposition}
108 156 adas
	%[Properties of BC programs]
109 156 adas
	%\label{prop:bc-properties}
110 156 adas
	%We have the following properties:
111 156 adas
	%\begin{enumerate}
112 156 adas
	%\item Hereditarily safe expressions over BC programs are BC definable.
113 156 adas
	%\item Can pass safe input to normal input.
114 156 adas
	%\end{enumerate}
115 156 adas
\end{proposition}
116 156 adas
117 156 adas
\nb{TODO: extend with $\mu$s.}
118 158 adas
119 158 adas
120 158 adas
\nb{Remember polymax bounded checking lemma! Quite important. Also need to bear this in mind when adding functions.}