Statistiques
| Révision :

root / CSL16 / bc-convergence.tex @ 39

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

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