Statistiques
| Révision :

root / CSL16 / bc-convergence.tex @ 33

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

1 33 adas
2 33 adas
\section{Convergence of Bellantoni-Cook programs}
3 33 adas
4 33 adas
\subsection{Bellantoni-Cook programs}
5 33 adas
We first recall the notion of safe recursion on notation from BC. TODO
6 33 adas
7 33 adas
\anupam{Do we need simultaneous PRN? cf.\ Bellantoni's thesis.}
8 33 adas
9 33 adas
\todo{reformulate below for binary words, not natural numbers?}
10 33 adas
11 33 adas
\begin{definition}
12 33 adas
	[BC functions]
13 33 adas
	BC is the set of functions generated by the following initial functions and closure schemes.
14 33 adas
15 33 adas
%	\paragraph{Initial functions}
16 33 adas
	There are the following initial functions:
17 33 adas
	\begin{enumerate}
18 33 adas
		\item The constant function $0$ which takes no arguments and outputs $0 \in \Nat$.
19 33 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$.
20 33 adas
		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
21 33 adas
		\item The predecessor function $\pred (; x) := \begin{cases}
22 33 adas
		0 & x = 0 \\
23 33 adas
		x' & x = x'i
24 33 adas
		\end{cases}$.
25 33 adas
		\item The conditional function $\cond (;x,y,z) := \begin{cases}
26 33 adas
		y & x \mod{2} = 0 \\
27 33 adas
		z & \text{otherwise}
28 33 adas
		\end{cases}$.
29 33 adas
	\end{enumerate}
30 33 adas
31 33 adas
	There are the following closure properties.
32 33 adas
	\begin{enumerate}
33 33 adas
	\setcounter{enumi}{5}
34 33 adas
	\item Predicative recursion on notation. If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
35 33 adas
	\[
36 33 adas
	\begin{array}{rcl}
37 33 adas
	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
38 33 adas
	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
39 33 adas
	\end{array}
40 33 adas
	\]
41 33 adas
	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
42 33 adas
	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
43 33 adas
	\[
44 33 adas
	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
45 33 adas
	\]
46 33 adas
	so long as the expression is well-formed.
47 33 adas
	\end{enumerate}
48 33 adas
	\end{definition}
49 33 adas
50 33 adas
51 33 adas
52 33 adas
\subsection{Convergence in arithmetic}
53 33 adas
\begin{theorem}
54 33 adas
	[Convergence]
55 33 adas
	If $\Phi(f)$ is an equational specification corresponding to a BC-program defining $f()$, then $\cax{\Sigma^N_1}{\pind} \proves  \ !\Phi(f) \limp \forall \vec{x}^{!N} . N(f(\vec x))$.
56 33 adas
\end{theorem}
57 33 adas
\begin{proof}
58 33 adas
	We show by induction on the structure of a BC-program for $f(\vec x ; \vec y)$ that:
59 33 adas
	\begin{equation}
60 33 adas
	\Phi(f) , \cax{\Sigma^N_1}{\pind} \proves \ \forall \vec{x}^{!N} . \forall \vec{y}^N . N(f(\vec x ; \vec y))
61 33 adas
	\end{equation}
62 33 adas
	We give some key cases in what follows.
63 33 adas
64 33 adas
	Suppose $f$ is defined by PRN by:
65 33 adas
	\[
66 33 adas
	\begin{array}{rcl}
67 33 adas
	f(0,\vec x ; \vec y) & = & g(\vec x ; \vec y) \\
68 33 adas
	f(\succ_i x , \vec x ; \vec y) & = & h_i (x, \vec x ; \vec y , f(x , \vec x ; \vec y))
69 33 adas
	\end{array}
70 33 adas
	\]
71 33 adas
	By the inductive hypothesis we already have that $g, h_0, h_1$ are provably convergent, so let us suppose that $N(\vec x)$ and prove,
72 33 adas
	\begin{equation}
73 33 adas
	\forall x^{!N} . ( N(\vec y) \limp N(f(x , \vec x ; \vec y)  )
74 33 adas
	\end{equation}
75 33 adas
	by $\cax{\Sigma^N_1}{\pind}$ on $x$.
76 33 adas
77 33 adas
	In the base case we have the following proof:
78 33 adas
	\[
79 33 adas
	\vlderivation{
80 33 adas
		\vliin{}{}{N(\vec y) \limp N(f(0, \vec x ; \vec y))}{
81 33 adas
			\vltr{IH}{N(\vec y) \limp N(g(\vec x ; \vec y))}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
82 33 adas
		}{
83 33 adas
		\vlin{}{}{N(g (\vec x ; \vec y) ) \limp N(f(0, \vec x ; \vec y)) }{
84 33 adas
			\vlin{}{}{g(\vec x ; \vec y) = f(0 , \vec x ; \vec y)}{\vlhy{}}
85 33 adas
		}
86 33 adas
	}
87 33 adas
}
88 33 adas
\]
89 33 adas
90 33 adas
For the inductive step, we need to show that,
91 33 adas
\[
92 33 adas
\forall x^{!N} . (( N(\vec y) \limp N( f(x, \vec x ; \vec y) ) ) \limp N(\vec y) \limp N(f(\succ_i x , \vec x ; \vec y) )   )
93 33 adas
\]
94 33 adas
so let us suppose that $N(x)$ and we give the following proof:
95 33 adas
\[
96 33 adas
\vlderivation{
97 33 adas
	\vlin{N\cntr}{}{N(y) \limp ( N(y ) \limp N(f( x , \vec x ; \vec y ) ) ) \limp N(f (\succ_i x , \vec x ; \vec y)  ) }{
98 33 adas
		\vliin{}{}{N(y) \limp N(y) \limp ( N(y ) \limp N(f( x , \vec x ; \vec y ) ) ) \limp N(f (\succ_i x , \vec x ; \vec y)  ) }{
99 33 adas
			\vliin{}{}{ N(y) \limp N(y) \limp ( N(y) \limp N( f(x, \vec x ; \vec y) ) ) \limp N( h_i (x , \vec x ; \vec y , f(x , \vec x ; \vec y) ) ) }{
100 33 adas
				\vltr{MLL}{( N(\vec y) \limp (N (\vec y) \limp N(f(x, \vec x ; \vec y) )) \limp N(f(x, \vec x ; \vec y)) }{\vlhy{\quad }}{\vlhy{\ }}{\vlhy{\quad }}
101 33 adas
			}{
102 33 adas
			\vlhy{2}
103 33 adas
		}
104 33 adas
	}{
105 33 adas
	\vlhy{3}
106 33 adas
}
107 33 adas
}
108 33 adas
}
109 33 adas
\]
110 33 adas
TOFINISH
111 33 adas
\end{proof}