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