Statistiques
| Révision :

root / CSL16 / bc-convergence.tex @ 56

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