Index: CSL16/bc-convergence.tex
===================================================================
--- CSL16/bc-convergence.tex	(revision 70)
+++ CSL16/bc-convergence.tex	(revision 71)
@@ -1,5 +1,5 @@
 
-\section{Convergence of Bellantoni-Cook programs}
+\section{Convergence of Bellantoni-Cook programs in $\arith$}
 
 \anupam{In this section, use whatever form of the deduction theorem is necessary and reverse engineer precise statement later.}
 
@@ -7,111 +7,7 @@
 
 
 
-\subsection{Bellantoni-Cook programs}
-%We first recall the notion of safe recursion on notation from BC. TODO
-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.
 
-\anupam{Do we need simultaneous PRN? cf.\ Bellantoni's thesis.}
-
-\todo{reformulate below for binary words, not natural numbers?}
-
-\begin{definition}
-	[BC functions]
-	BC is the set of functions over $\Word$ generated by the following initial functions and closure schemes.
-	
-%	\paragraph{Initial functions}
-	There are the following initial functions:
-	\begin{enumerate}
-		\item The constant function $\epsilon$ which takes no arguments and outputs $\epsilon \in \Word$.
-		\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$.
-		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
-		\item The predecessor function $\pred (; x) := \begin{cases}
-		\epsilon &  \mbox{ if }  x = \epsilon \\
-		x' &  \mbox{ if }  x = x'i
-		\end{cases}$.
-		\item The conditional function $\cond (;x,y,z) := \begin{cases}
-		y & \mbox{ if } x=x' 0 \\
-		z & \text{otherwise}
-		\end{cases}$.
-	\end{enumerate}
-	
-	There are the following closure properties.
-	\begin{enumerate}
-	\setcounter{enumi}{5}
-	\item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
-	\[
-	\begin{array}{rcl}
-	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
-	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
-	\end{array}
-	\]
-	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
-	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
-	\[
-	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
-	\]
-	so long as the expression is well-formed.
-	\end{enumerate}
-	\end{definition}
-	
-%	\begin{definition}        %% former definition of BC over integers
-%	[BC functions]
-%	BC is the set of functions generated by the following initial functions and closure schemes.
-%	
-%%	\paragraph{Initial functions}
-%	There are the following initial functions:
-%	\begin{enumerate}
-%		\item The constant function $0$ which takes no arguments and outputs $0 \in \Nat$.
-%		\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$.
-%		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
-%		\item The predecessor function $\pred (; x) := \begin{cases}
-%		0 & x = 0 \\
-%		x' & x = x'i
-%		\end{cases}$.
-%		\item The conditional function $\cond (;x,y,z) := \begin{cases}
-%		y & x \mod{2} = 0 \\
-%		z & \text{otherwise}
-%		\end{cases}$.
-%	\end{enumerate}
-%	
-%	There are the following closure properties.
-%	\begin{enumerate}
-%	\setcounter{enumi}{5}
-%	\item Predicative recursion on notation. If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
-%	\[
-%	\begin{array}{rcl}
-%	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
-%	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
-%	\end{array}
-%	\]
-%	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
-%	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
-%	\[
-%	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
-%	\]
-%	so long as the expression is well-formed.
-%	\end{enumerate}
-%	\end{definition}
-
-
-
-\anupam{simultaneous recursion?}
-
-\anupam{also identity, hereditarily safe, expressions, etc.}
-
-
-\begin{proposition}
-[Properties of BC programs]
-\label{prop:bc-properties}
-We have the following properties:
-\begin{enumerate}
-\item Hereditarily safe expressions over BC programs are BC definable.
-\item Can pass safe input to normal input.
-\end{enumerate}
-
-\todo{finish this, add properties as required.}
-\end{proposition}
-
 \subsection{Convergence in arithmetic}
 
 %\begin{theorem}
Index: CSL16/main.tex
===================================================================
--- CSL16/main.tex	(revision 70)
+++ CSL16/main.tex	(revision 71)
@@ -76,6 +76,8 @@
 
 \input{arithmetic}
 
+\input{bc}
+
 \input{bc-convergence}
 
 \input{wfm}
Index: CSL16/bc.tex
===================================================================
--- CSL16/bc.tex	(revision 0)
+++ CSL16/bc.tex	(revision 71)
@@ -0,0 +1,105 @@
+
+\section{Bellantoni-Cook characterisation of polynomial-time functions}
+%We first recall the notion of safe recursion on notation from BC. TODO
+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.
+
+\anupam{Do we need simultaneous PRN? cf.\ Bellantoni's thesis.}
+
+\todo{reformulate below for binary words, not natural numbers?}
+
+\begin{definition}
+	[BC functions]
+	BC is the set of functions over $\Word$ generated by the following initial functions and closure schemes.
+	
+%	\paragraph{Initial functions}
+	There are the following initial functions:
+	\begin{enumerate}
+		\item The constant function $\epsilon$ which takes no arguments and outputs $\epsilon \in \Word$.
+		\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$.
+		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
+		\item The predecessor function $\pred (; x) := \begin{cases}
+		\epsilon &  \mbox{ if }  x = \epsilon \\
+		x' &  \mbox{ if }  x = x'i
+		\end{cases}$.
+		\item The conditional function $\cond (;x,y,z) := \begin{cases}
+		y & \mbox{ if } x=x' 0 \\
+		z & \text{otherwise}
+		\end{cases}$.
+	\end{enumerate}
+	
+	There are the following closure properties.
+	\begin{enumerate}
+	\setcounter{enumi}{5}
+	\item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
+	\[
+	\begin{array}{rcl}
+	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
+	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
+	\end{array}
+	\]
+	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
+	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
+	\[
+	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
+	\]
+	so long as the expression is well-formed.
+	\end{enumerate}
+	\end{definition}
+	
+%	\begin{definition}        %% former definition of BC over integers
+%	[BC functions]
+%	BC is the set of functions generated by the following initial functions and closure schemes.
+%	
+%%	\paragraph{Initial functions}
+%	There are the following initial functions:
+%	\begin{enumerate}
+%		\item The constant function $0$ which takes no arguments and outputs $0 \in \Nat$.
+%		\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$.
+%		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
+%		\item The predecessor function $\pred (; x) := \begin{cases}
+%		0 & x = 0 \\
+%		x' & x = x'i
+%		\end{cases}$.
+%		\item The conditional function $\cond (;x,y,z) := \begin{cases}
+%		y & x \mod{2} = 0 \\
+%		z & \text{otherwise}
+%		\end{cases}$.
+%	\end{enumerate}
+%	
+%	There are the following closure properties.
+%	\begin{enumerate}
+%	\setcounter{enumi}{5}
+%	\item Predicative recursion on notation. If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
+%	\[
+%	\begin{array}{rcl}
+%	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
+%	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
+%	\end{array}
+%	\]
+%	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
+%	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
+%	\[
+%	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
+%	\]
+%	so long as the expression is well-formed.
+%	\end{enumerate}
+%	\end{definition}
+
+
+
+\anupam{simultaneous recursion?}
+
+\anupam{also identity, hereditarily safe, expressions, etc.}
+
+
+\begin{proposition}
+[Properties of BC programs]
+\label{prop:bc-properties}
+We have the following properties:
+\begin{enumerate}
+\item Hereditarily safe expressions over BC programs are BC definable.
+\item Can pass safe input to normal input.
+\end{enumerate}
+
+\todo{finish this, add properties as required.}
+\end{proposition}
\ No newline at end of file
