Statistiques
| Révision :

root / CSL16 / bc-convergence.tex @ 70

Historique | Voir | Annoter | Télécharger (14,43 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 59 adas
8 59 adas
9 60 adas
10 33 adas
\subsection{Bellantoni-Cook programs}
11 56 pbaillot
%We first recall the notion of safe recursion on notation from BC. TODO
12 56 pbaillot
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.
13 33 adas
14 33 adas
\anupam{Do we need simultaneous PRN? cf.\ Bellantoni's thesis.}
15 33 adas
16 33 adas
\todo{reformulate below for binary words, not natural numbers?}
17 33 adas
18 33 adas
\begin{definition}
19 33 adas
	[BC functions]
20 55 pbaillot
	BC is the set of functions over $\Word$ generated by the following initial functions and closure schemes.
21 33 adas
22 33 adas
%	\paragraph{Initial functions}
23 33 adas
	There are the following initial functions:
24 33 adas
	\begin{enumerate}
25 55 pbaillot
		\item The constant function $\epsilon$ which takes no arguments and outputs $\epsilon \in \Word$.
26 55 pbaillot
		\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$.
27 33 adas
		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
28 33 adas
		\item The predecessor function $\pred (; x) := \begin{cases}
29 55 pbaillot
		\epsilon &  \mbox{ if }  x = \epsilon \\
30 55 pbaillot
		x' &  \mbox{ if }  x = x'i
31 33 adas
		\end{cases}$.
32 33 adas
		\item The conditional function $\cond (;x,y,z) := \begin{cases}
33 55 pbaillot
		y & \mbox{ if } x=x' 0 \\
34 33 adas
		z & \text{otherwise}
35 33 adas
		\end{cases}$.
36 33 adas
	\end{enumerate}
37 33 adas
38 33 adas
	There are the following closure properties.
39 33 adas
	\begin{enumerate}
40 33 adas
	\setcounter{enumi}{5}
41 55 pbaillot
	\item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
42 33 adas
	\[
43 33 adas
	\begin{array}{rcl}
44 33 adas
	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
45 33 adas
	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
46 33 adas
	\end{array}
47 33 adas
	\]
48 33 adas
	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
49 33 adas
	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
50 33 adas
	\[
51 33 adas
	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
52 33 adas
	\]
53 33 adas
	so long as the expression is well-formed.
54 33 adas
	\end{enumerate}
55 33 adas
	\end{definition}
56 55 pbaillot
57 56 pbaillot
%	\begin{definition}        %% former definition of BC over integers
58 55 pbaillot
%	[BC functions]
59 55 pbaillot
%	BC is the set of functions generated by the following initial functions and closure schemes.
60 55 pbaillot
%
61 55 pbaillot
%%	\paragraph{Initial functions}
62 55 pbaillot
%	There are the following initial functions:
63 55 pbaillot
%	\begin{enumerate}
64 55 pbaillot
%		\item The constant function $0$ which takes no arguments and outputs $0 \in \Nat$.
65 55 pbaillot
%		\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$.
66 55 pbaillot
%		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
67 55 pbaillot
%		\item The predecessor function $\pred (; x) := \begin{cases}
68 55 pbaillot
%		0 & x = 0 \\
69 55 pbaillot
%		x' & x = x'i
70 55 pbaillot
%		\end{cases}$.
71 55 pbaillot
%		\item The conditional function $\cond (;x,y,z) := \begin{cases}
72 55 pbaillot
%		y & x \mod{2} = 0 \\
73 55 pbaillot
%		z & \text{otherwise}
74 55 pbaillot
%		\end{cases}$.
75 55 pbaillot
%	\end{enumerate}
76 55 pbaillot
%
77 55 pbaillot
%	There are the following closure properties.
78 55 pbaillot
%	\begin{enumerate}
79 55 pbaillot
%	\setcounter{enumi}{5}
80 55 pbaillot
%	\item Predicative recursion on notation. If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
81 55 pbaillot
%	\[
82 55 pbaillot
%	\begin{array}{rcl}
83 55 pbaillot
%	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
84 55 pbaillot
%	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
85 55 pbaillot
%	\end{array}
86 55 pbaillot
%	\]
87 55 pbaillot
%	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
88 55 pbaillot
%	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
89 55 pbaillot
%	\[
90 55 pbaillot
%	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
91 55 pbaillot
%	\]
92 55 pbaillot
%	so long as the expression is well-formed.
93 55 pbaillot
%	\end{enumerate}
94 55 pbaillot
%	\end{definition}
95 33 adas
96 33 adas
97 55 pbaillot
98 40 adas
\anupam{simultaneous recursion?}
99 33 adas
100 69 adas
\anupam{also identity, hereditarily safe, expressions, etc.}
101 69 adas
102 69 adas
103 69 adas
\begin{proposition}
104 69 adas
[Properties of BC programs]
105 69 adas
\label{prop:bc-properties}
106 69 adas
We have the following properties:
107 69 adas
\begin{enumerate}
108 69 adas
\item Hereditarily safe expressions over BC programs are BC definable.
109 69 adas
\item Can pass safe input to normal input.
110 69 adas
\end{enumerate}
111 69 adas
112 69 adas
\todo{finish this, add properties as required.}
113 69 adas
\end{proposition}
114 69 adas
115 33 adas
\subsection{Convergence in arithmetic}
116 56 pbaillot
117 56 pbaillot
%\begin{theorem}
118 56 pbaillot
%	[Convergence]
119 56 pbaillot
%	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))$.
120 56 pbaillot
%\end{theorem}
121 56 pbaillot
122 56 pbaillot
We first want to show that the system ${\Sigma^{\word}_1}-{\pind}$ is expressive enough, that is to say that all poynomial-time functions can be represented by some equational specifications that are provably total. To do so   we consider equational specifications of BC-programs.
123 33 adas
\begin{theorem}
124 33 adas
	[Convergence]
125 56 pbaillot
	If $\Phi(f)$ is an equational specification corresponding to a BC-program defining $f$, then $\cax{\Sigma^{\word}_1}{\pind} \proves  \ !\Phi(f) \limp \forall \vec{x}^{!\word} . \word(f(\vec x))$.
126 33 adas
\end{theorem}
127 33 adas
\begin{proof}
128 40 adas
%	We write function symbols in $\arith$ with arguments delimited by $;$, as for BC-programs.
129 40 adas
	We show by induction on the structure of a BC-program for $f(\vec u ; \vec x)$ that:
130 33 adas
	\begin{equation}
131 40 adas
	\label{eqn:prv-cvg-ih}
132 56 pbaillot
	\Phi(f) \proves \ \forall \vec{u}^{!\nat} . \forall \vec{x}^\word . \word(f(\vec u ; \vec x))
133 33 adas
	\end{equation}
134 33 adas
	We give some key cases in what follows.
135 33 adas
136 40 adas
	Suppose $f$ is defined by PRN as:
137 33 adas
	\[
138 33 adas
	\begin{array}{rcl}
139 40 adas
	f(0,\vec v ; \vec x) & = & g(\vec v ; \vec x) \\
140 40 adas
	f(\succ_i u , \vec v; \vec x) & = & h_i (u, \vec v ; \vec x , f(u , \vec v ; \vec x))
141 33 adas
	\end{array}
142 33 adas
	\]
143 40 adas
	By the inductive hypothesis we already have \eqref{eqn:prv-cvg-ih} for $g,h_0,h_1$ in place of $f$, so let us suppose that $\nat(\vec v)$ and prove,
144 33 adas
	\begin{equation}
145 48 adas
% \forall u^{!\nat} .  (\nat(\vec x) \limp \nat(f(u , \vec v ; \vec x)  )
146 48 adas
!\nat (u) , !\nat (\vec v) , \nat (\vec x) \seqar \nat ( f(u, \vec v ; \vec x) )
147 33 adas
	\end{equation}
148 48 adas
	by $\cax{\Sigma^N_1}{\pind}$ on $u$. After this the result will follow by $\forall$-introduction for $u, \vec v , \vec x$.
149 33 adas
150 41 adas
	In the base case we have the following proof,
151 33 adas
	\[
152 48 adas
%	\vlderivation{
153 48 adas
%	\vlin{\rigrul{\limp}}{}{ \seqar \nat (\vec x) \limp \nat (f(\epsilon , \vec v ; \vec x )) }{
154 48 adas
%		\vliq{\beta}{}{ \nat (\vec x) \seqar \nat ( f( \epsilon , \vec v ; \vec x) ) }{
155 48 adas
%			\vliq{\alpha}{}{ \nat (\vec x) \seqar \nat ( g (\vec v ; \vec x) ) }{
156 48 adas
%				\vltr{IH}{\seqar \forall v^{!\nat} . \forall x^\nat . \nat( g(\vec v ; \vec x) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
157 48 adas
%				}
158 48 adas
%			}
159 48 adas
%		}
160 48 adas
%		}
161 48 adas
\vlderivation{
162 48 adas
	\vliq{\beta}{}{!\nat(\vec v) , \nat (\vec x) \seqar \nat(f (\epsilon , \vec v ; \vec x)) }{
163 48 adas
		\vliq{\alpha}{}{!\nat (\vec v) , \nat (\vec x) \seqar \nat (g (\vec v ; \vec x) ) }{
164 48 adas
			\vltr{\IH}{\seqar \forall \vec v^{!\nat} . \forall \vec x^\nat . \nat (g (\vec v ; \vec x)) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
165 41 adas
			}
166 41 adas
		}
167 48 adas
	}
168 41 adas
\]
169 41 adas
where $\alpha$ is,
170 41 adas
\[
171 41 adas
\vlderivation{
172 48 adas
%	\vliin{\cut}{}{ \nat (\vec x) \seqar \nat ( g (\vec v ; \vec x)) }{
173 48 adas
%		\vlin{\rigrul{!}}{}{\seqar !\nat (v)}{
174 48 adas
%			\vlin{assump}{}{\seqar \nat (\vec v)}{\vlhy{}}
175 48 adas
%			}
176 48 adas
%		}{
177 41 adas
		\vliin{\cut}{}{ !\nat (\vec v ) , \nat (\vec x) \seqar \nat (g (\vec v ; \vec x )) }{
178 41 adas
			\vlhy{\seqar \forall \vec v^{!\nat} . \forall \vec x^\nat . \nat (g (\vec v ; \vec x)) }
179 41 adas
			}{
180 41 adas
			\vliq{\lefrul{\forall}}{  }{ !\nat (\vec v) , \nat (\vec x) , \forall \vec v^{!\nat} . \forall \vec x^\nat \nat (g(\vec v ; \vec x )) \seqar \nat (g(\vec v ; \vec x )) }{
181 41 adas
				\vlin{\id}{}{\nat (g(\vec v ; \vec x )) \seqar \nat (g(\vec v ; \vec x ))}{\vlhy{}}
182 41 adas
				}
183 41 adas
			}
184 48 adas
%		}
185 33 adas
	}
186 33 adas
\]
187 41 adas
and $\beta$ is:
188 41 adas
\[
189 41 adas
\vlderivation{
190 48 adas
	\vliin{\cut}{}{!\nat (\vec v) , \nat (\vec x) \seqar \nat ( f ( \epsilon , \vec v ; \vec x ) ) }{
191 48 adas
		\vlhy{!\nat (\vec v) , \nat (\vec x) \seqar \nat (g (\vec v ; \vec x) ) }
192 41 adas
		}{
193 41 adas
		\vliin{\cut}{}{ \nat (g (\vec v ; \vec x) ) \seqar \nat (f (\epsilon, \vec v ; \vec x) ) }{
194 41 adas
			\vlin{\Phi}{}{ \seqar f(\epsilon , \vec v ; \vec x) = g(\vec v ; \vec x) }{\vlhy{}}
195 41 adas
			}{
196 41 adas
			\vlin{=}{}{\nat ( g(\vec v ; \vec x) ) , f(\epsilon , \vec v ; \vec x) = g(\vec v ; \vec x)  \seqar \nat (f (\epsilon, \vec v ; \vec x) ) }{\vlhy{}}
197 41 adas
			}
198 41 adas
		}
199 41 adas
	}
200 41 adas
\]
201 33 adas
202 40 adas
For the inductive step, we suppose that $\nat (u)$ and the proof is as follows,
203 33 adas
\[
204 48 adas
%\vlderivation{
205 48 adas
%	\vlin{\rigrul{\limp}}{}{ \nat(\vec x) \limp \nat ( f(u, \vec v ; \vec x) )  \seqar \nat (\vec x) \limp \nat( f(\succ_i u , \vec v ; \vec x) ) }{
206 48 adas
%	\vliq{\gamma}{}{\nat(\vec x), \nat(\vec x) \limp \nat ( f(u, \vec v ; \vec x) )  \seqar \nat( f(\succ_i u , \vec v ; \vec x) )   }{
207 48 adas
%		\vliin{\lefrul{\limp}}{}{\nat(\vec x), \nat(\vec x), \nat(\vec x) \limp \nat ( f(u, \vec v ; \vec x) )  \seqar \nat( f(\succ_i u , \vec v ; \vec x) )    }{
208 48 adas
%			\vlin{\id}{}{\nat(\vec x) \seqar \nat (\vec x) }{\vlhy{}}
209 48 adas
%			}{
210 48 adas
%			\vliq{\beta}{}{  \nat (\vec x) , \nat (f(u , \vec v ; \vec x) ) \seqar \nat ( f(\succ_i u , \vec v ; \vec x) ) }{
211 48 adas
%				\vliq{\alpha}{}{ \nat (\vec x) , \nat (f(u , \vec v ; \vec x) ) \seqar \nat ( h_i( u , \vec v ; \vec x , f( u, \vec v ; \vec x )) ) }{
212 48 adas
%					\vltr{IH}{ \seqar \forall  u^{!\nat}, \vec v^{!\nat} . \forall \vec x^\nat , y^\nat . \nat( h_i (u, \vec v ; \vec x, y) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
213 48 adas
%					}
214 48 adas
%				}
215 48 adas
%			}
216 48 adas
%		}
217 48 adas
%	}
218 48 adas
%	}
219 33 adas
\vlderivation{
220 48 adas
	\vliq{\beta}{}{ !\nat (u) , !\nat (\vec v)  , \nat (\vec x) , \nat (f ( u , \vec v ; \vec x ) ) \seqar \nat (f (\succ_i u , \vec{v} ; \vec x ) )  }{
221 48 adas
		\vliq{\alpha}{}{  !\nat (u) , !\nat (\vec v)  , \nat (\vec x) , \nat (f ( u , \vec v ; \vec x ) ) \seqar \nat ( h_i ( u , \vec v ; \vec x , f( u , \vec v ; \vec x ) ) )   }{
222 48 adas
			\vltr{\IH}{ \seqar \forall u^{!\nat} , \vec v^{!\nat} . \forall \vec x^\nat , y^\nat  .  \nat ( h_i ( u, \vec v ; \vec x, y ) ) }{ \vlhy{\quad} }{\vlhy{}}{\vlhy{\quad}}
223 33 adas
		}
224 40 adas
	}
225 48 adas
}
226 33 adas
\]
227 50 adas
where the steps indicated $\alpha$ and $\beta$ are analogous to those for the base case.
228 50 adas
%, and $\gamma$ is an instance of the general scheme:
229 50 adas
%\begin{equation}
230 50 adas
%\label{eqn:nat-cntr-left-derivation}
231 50 adas
%\vlderivation{
232 50 adas
%	\vliin{\cut}{}{ \nat (t) , \Gamma \seqar \Delta }{
233 50 adas
%		\vlin{\natcntr}{}{ \nat (t) \seqar \nat (t) \land \nat (t) }{\vlhy{}}
234 50 adas
%		}{
235 50 adas
%		\vlin{\lefrul{\land}}{}{\nat (t)  \land \nat (t) , \Gamma \seqar \Delta}{ \vlhy{\nat (t)  ,\nat (t) , \Gamma \seqar \Delta} }
236 50 adas
%		}
237 50 adas
%	}
238 50 adas
%\end{equation}
239 40 adas
240 40 adas
%
241 40 adas
%For the inductive step, we need to show that,
242 40 adas
%\[
243 40 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) )   )
244 40 adas
%\]
245 40 adas
%so let us suppose that $N(x)$ and we give the following proof:
246 40 adas
%\[
247 40 adas
%\vlderivation{
248 40 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)  ) }{
249 40 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)  ) }{
250 40 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) ) ) }{
251 40 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 }}
252 40 adas
%			}{
253 40 adas
%			\vlhy{2}
254 40 adas
%		}
255 40 adas
%	}{
256 40 adas
%	\vlhy{3}
257 40 adas
%}
258 40 adas
%}
259 40 adas
%}
260 40 adas
%\]
261 40 adas
%TOFINISH
262 50 adas
263 50 adas
Suppose $f$ is defined by safe composition as follows:
264 50 adas
\[
265 50 adas
f( \vec u ; \vec x )
266 50 adas
\quad = \quad
267 50 adas
h( \vec g (\vec u ; )  ; \vec g' ( \vec u ; \vec x ) )
268 50 adas
\]
269 50 adas
270 50 adas
By the inductive hypothesis we already have \eqref{eqn:prv-cvg-ih} for $h$ and each $g_i$ and $g_j'$ in place of $f$. We construct the required proof as follows:
271 50 adas
\[
272 50 adas
\vlderivation{
273 50 adas
	\vliq{\rigrul{\forall}}{}{ \seqar \forall\vec u^{!\nat} . \forall \vec x^\nat . \nat( f(\vec u ; \vec x ) ) }{
274 50 adas
		\vliq{\beta}{}{ !\nat (\vec u) , \nat (\vec x) \seqar \nat ( f( \vec u ; \vec x ) ) }{
275 50 adas
			\vliq{\cntr}{}{  !\nat (\vec u) , \nat (\vec x) \seqar \nat ( h( \vec g(\vec u ;) ; \vec g' ( \vec u ; \vec x )  ) )  }{
276 50 adas
				\vliiiq{\cut}{}{!\nat (\vec u) , \dots ,  !\nat (\vec u) , \nat (\vec x) , \dots , \nat (\vec x) \seqar \nat ( h( \vec g(\vec u ;) ; \vec g' ( \vec u ; \vec x )  ) )   }{
277 50 adas
					\vlhy{
278 50 adas
						\left\{
279 50 adas
						\vlderivation{
280 50 adas
							\vlin{\rigrul{!}}{}{ !\nat (\vec u) \seqar !\nat ( g_i (\vec u ;) ) }{
281 50 adas
								\vliq{\alpha}{}{ !\nat (\vec u) \seqar \nat ( g_i (\vec u ;) }{
282 50 adas
									\vltr{\IH}{ \forall \vec u^{!\nat} . \nat (g_i (\vec u ;) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
283 50 adas
									}
284 50 adas
								}
285 50 adas
							}
286 50 adas
						\right\}_{i \leq |\vec g| }
287 50 adas
						}
288 50 adas
					}{
289 50 adas
					\vlhy{
290 50 adas
						\left\{
291 50 adas
						\vlderivation{
292 50 adas
							\vliq{\alpha}{}{ !\nat ( \vec u )  , \nat (\vec x) \seqar \nat  ( g_j' ( \vec u ; \vec x ) ) }{
293 50 adas
								\vltr{\IH}{ \seqar \forall \vec u^{!\nat}. \forall \vec x^\nat . \nat ( g_j' (\vec u ; \vec x) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
294 50 adas
								}
295 50 adas
							}
296 50 adas
						\right\}_{j \leq |\vec g'|}
297 50 adas
						}
298 50 adas
					}{
299 50 adas
					\vliq{\alpha}{}{ !\nat ( \vec g (\vec u ;) ) , \nat ( \vec g ' ( \vec u ; \vec x ) ) \seqar \nat ( h( \vec g(\vec u ;) ; \vec g' ( \vec u ; \vec x )  )  ) ) }{
300 50 adas
						\vltr{\IH}{ \seqar \forall \vec v^{!\nat} . \forall \vec y^\nat . \nat ( h( \vec v ; \vec y ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
301 50 adas
						}
302 50 adas
					}
303 50 adas
				}
304 50 adas
			}
305 50 adas
		}
306 50 adas
	}
307 50 adas
\]
308 50 adas
where $\alpha$ and $\beta$ are similar to before.
309 50 adas
310 50 adas
\todo{reformat a bit}
311 50 adas
312 53 adas
It remains to check the initial functions.
313 50 adas
314 53 adas
Consider the conditional function, defined equationally as:
315 53 adas
\[
316 53 adas
\begin{array}{rcl}
317 53 adas
C (; \epsilon, y_\epsilon , y_0, y_1  ) & = & y_\epsilon \\
318 53 adas
C(; \succ_0 x , y_\epsilon , y_0, y_1) & = & y_0 \\
319 53 adas
C(; \succ_1 x , y_\epsilon , y_0, y_1) & = & y_1
320 53 adas
\end{array}
321 53 adas
\]
322 53 adas
Let $\vec y = ( y_\epsilon , y_0, y_1 )$ and construct the required proof as follows:
323 53 adas
\[
324 53 adas
\vlderivation{
325 53 adas
\vliq{}{}{ \nat (x) , \nat (\vec y) \seqar \nat ( C(; x ,\vec y) )}{
326 53 adas
\vliin{2\cdot \laor}{}{ x = \epsilon \laor \exists z^\nat . x = \succ_0 z \laor \exists z^\nat x = \succ_1 z , \nat (\vec y) \seqar \nat ( C(;x \vec y) ) }{
327 53 adas
\vliq{}{}{ x = \epsilon , \nat (\vec y) \seqar \nat ( C(; x , \vec y) ) }{
328 53 adas
\vliq{}{}{ \nat (\vec y) \seqar \nat ( C( ; \epsilon , \vec y ) ) }{
329 53 adas
\vlin{\wk}{}{ \nat (\vec y) \seqar \nat (y_\epsilon) }{
330 53 adas
\vlin{\id}{}{\nat (y_\epsilon) \seqar \nat ( y_\epsilon )}{\vlhy{}}
331 53 adas
}
332 53 adas
}
333 53 adas
}
334 53 adas
}{
335 53 adas
\vlhy{
336 53 adas
\left\{
337 53 adas
\vlderivation{
338 53 adas
\vlin{\lefrul{\exists}}{}{ \exists z^\nat . x = \succ_i z , \nat (\vec y) \seqar \nat ( C(;x , \vec y) ) }{
339 53 adas
\vliq{}{}{ x = \succ_i a , \nat (\vec y ) \seqar \nat (C(; x ,\vec y)) }{
340 53 adas
\vliq{}{}{ \nat (\vec y) \seqar \nat ( C(; \succ_i a , \vec y ) ) }{
341 53 adas
\vlin{\wk}{}{ \nat (\vec y) \seqar \nat (y_i) }{
342 53 adas
\vlin{\id}{}{\nat (y_i) \seqar \nat (y_i)}{\vlhy{}}
343 53 adas
}
344 53 adas
}
345 53 adas
}
346 53 adas
}
347 53 adas
}
348 53 adas
\right\}_{i = 0,1}
349 53 adas
}
350 53 adas
}
351 53 adas
}
352 53 adas
}
353 53 adas
\]
354 53 adas
whence the result follows by $\forall$-introduction.
355 53 adas
\todo{reformat a bit}
356 53 adas
357 53 adas
Other initial functions are far simpler.
358 53 adas
359 33 adas
\end{proof}
360 40 adas
361 40 adas
362 53 adas
363 53 adas
364 53 adas
365 53 adas
366 53 adas
367 53 adas
368 53 adas
369 53 adas
370 53 adas
371 53 adas
372 53 adas
373 53 adas
374 53 adas
375 53 adas
376 53 adas
377 53 adas
378 53 adas
379 53 adas
380 53 adas
381 53 adas
382 53 adas
383 53 adas
384 53 adas
385 53 adas
386 53 adas
387 53 adas
388 53 adas
389 53 adas
390 53 adas
391 53 adas
392 53 adas
393 53 adas
394 53 adas
395 53 adas
396 53 adas
397 53 adas
398 53 adas
399 53 adas
400 53 adas