Statistiques
| Révision :

root / CSL16 / bc-convergence.tex @ 61

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 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 33 adas
\subsection{Convergence in arithmetic}
101 56 pbaillot
102 56 pbaillot
%\begin{theorem}
103 56 pbaillot
%	[Convergence]
104 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))$.
105 56 pbaillot
%\end{theorem}
106 56 pbaillot
107 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.
108 33 adas
\begin{theorem}
109 33 adas
	[Convergence]
110 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))$.
111 33 adas
\end{theorem}
112 33 adas
\begin{proof}
113 40 adas
%	We write function symbols in $\arith$ with arguments delimited by $;$, as for BC-programs.
114 40 adas
	We show by induction on the structure of a BC-program for $f(\vec u ; \vec x)$ that:
115 33 adas
	\begin{equation}
116 40 adas
	\label{eqn:prv-cvg-ih}
117 56 pbaillot
	\Phi(f) \proves \ \forall \vec{u}^{!\nat} . \forall \vec{x}^\word . \word(f(\vec u ; \vec x))
118 33 adas
	\end{equation}
119 33 adas
	We give some key cases in what follows.
120 33 adas
121 40 adas
	Suppose $f$ is defined by PRN as:
122 33 adas
	\[
123 33 adas
	\begin{array}{rcl}
124 40 adas
	f(0,\vec v ; \vec x) & = & g(\vec v ; \vec x) \\
125 40 adas
	f(\succ_i u , \vec v; \vec x) & = & h_i (u, \vec v ; \vec x , f(u , \vec v ; \vec x))
126 33 adas
	\end{array}
127 33 adas
	\]
128 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,
129 33 adas
	\begin{equation}
130 48 adas
% \forall u^{!\nat} .  (\nat(\vec x) \limp \nat(f(u , \vec v ; \vec x)  )
131 48 adas
!\nat (u) , !\nat (\vec v) , \nat (\vec x) \seqar \nat ( f(u, \vec v ; \vec x) )
132 33 adas
	\end{equation}
133 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$.
134 33 adas
135 41 adas
	In the base case we have the following proof,
136 33 adas
	\[
137 48 adas
%	\vlderivation{
138 48 adas
%	\vlin{\rigrul{\limp}}{}{ \seqar \nat (\vec x) \limp \nat (f(\epsilon , \vec v ; \vec x )) }{
139 48 adas
%		\vliq{\beta}{}{ \nat (\vec x) \seqar \nat ( f( \epsilon , \vec v ; \vec x) ) }{
140 48 adas
%			\vliq{\alpha}{}{ \nat (\vec x) \seqar \nat ( g (\vec v ; \vec x) ) }{
141 48 adas
%				\vltr{IH}{\seqar \forall v^{!\nat} . \forall x^\nat . \nat( g(\vec v ; \vec x) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
142 48 adas
%				}
143 48 adas
%			}
144 48 adas
%		}
145 48 adas
%		}
146 48 adas
\vlderivation{
147 48 adas
	\vliq{\beta}{}{!\nat(\vec v) , \nat (\vec x) \seqar \nat(f (\epsilon , \vec v ; \vec x)) }{
148 48 adas
		\vliq{\alpha}{}{!\nat (\vec v) , \nat (\vec x) \seqar \nat (g (\vec v ; \vec x) ) }{
149 48 adas
			\vltr{\IH}{\seqar \forall \vec v^{!\nat} . \forall \vec x^\nat . \nat (g (\vec v ; \vec x)) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
150 41 adas
			}
151 41 adas
		}
152 48 adas
	}
153 41 adas
\]
154 41 adas
where $\alpha$ is,
155 41 adas
\[
156 41 adas
\vlderivation{
157 48 adas
%	\vliin{\cut}{}{ \nat (\vec x) \seqar \nat ( g (\vec v ; \vec x)) }{
158 48 adas
%		\vlin{\rigrul{!}}{}{\seqar !\nat (v)}{
159 48 adas
%			\vlin{assump}{}{\seqar \nat (\vec v)}{\vlhy{}}
160 48 adas
%			}
161 48 adas
%		}{
162 41 adas
		\vliin{\cut}{}{ !\nat (\vec v ) , \nat (\vec x) \seqar \nat (g (\vec v ; \vec x )) }{
163 41 adas
			\vlhy{\seqar \forall \vec v^{!\nat} . \forall \vec x^\nat . \nat (g (\vec v ; \vec x)) }
164 41 adas
			}{
165 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 )) }{
166 41 adas
				\vlin{\id}{}{\nat (g(\vec v ; \vec x )) \seqar \nat (g(\vec v ; \vec x ))}{\vlhy{}}
167 41 adas
				}
168 41 adas
			}
169 48 adas
%		}
170 33 adas
	}
171 33 adas
\]
172 41 adas
and $\beta$ is:
173 41 adas
\[
174 41 adas
\vlderivation{
175 48 adas
	\vliin{\cut}{}{!\nat (\vec v) , \nat (\vec x) \seqar \nat ( f ( \epsilon , \vec v ; \vec x ) ) }{
176 48 adas
		\vlhy{!\nat (\vec v) , \nat (\vec x) \seqar \nat (g (\vec v ; \vec x) ) }
177 41 adas
		}{
178 41 adas
		\vliin{\cut}{}{ \nat (g (\vec v ; \vec x) ) \seqar \nat (f (\epsilon, \vec v ; \vec x) ) }{
179 41 adas
			\vlin{\Phi}{}{ \seqar f(\epsilon , \vec v ; \vec x) = g(\vec v ; \vec x) }{\vlhy{}}
180 41 adas
			}{
181 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{}}
182 41 adas
			}
183 41 adas
		}
184 41 adas
	}
185 41 adas
\]
186 33 adas
187 40 adas
For the inductive step, we suppose that $\nat (u)$ and the proof is as follows,
188 33 adas
\[
189 48 adas
%\vlderivation{
190 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) ) }{
191 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) )   }{
192 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) )    }{
193 48 adas
%			\vlin{\id}{}{\nat(\vec x) \seqar \nat (\vec x) }{\vlhy{}}
194 48 adas
%			}{
195 48 adas
%			\vliq{\beta}{}{  \nat (\vec x) , \nat (f(u , \vec v ; \vec x) ) \seqar \nat ( f(\succ_i u , \vec v ; \vec x) ) }{
196 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 )) ) }{
197 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}}
198 48 adas
%					}
199 48 adas
%				}
200 48 adas
%			}
201 48 adas
%		}
202 48 adas
%	}
203 48 adas
%	}
204 33 adas
\vlderivation{
205 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 ) )  }{
206 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 ) ) )   }{
207 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}}
208 33 adas
		}
209 40 adas
	}
210 48 adas
}
211 33 adas
\]
212 50 adas
where the steps indicated $\alpha$ and $\beta$ are analogous to those for the base case.
213 50 adas
%, and $\gamma$ is an instance of the general scheme:
214 50 adas
%\begin{equation}
215 50 adas
%\label{eqn:nat-cntr-left-derivation}
216 50 adas
%\vlderivation{
217 50 adas
%	\vliin{\cut}{}{ \nat (t) , \Gamma \seqar \Delta }{
218 50 adas
%		\vlin{\natcntr}{}{ \nat (t) \seqar \nat (t) \land \nat (t) }{\vlhy{}}
219 50 adas
%		}{
220 50 adas
%		\vlin{\lefrul{\land}}{}{\nat (t)  \land \nat (t) , \Gamma \seqar \Delta}{ \vlhy{\nat (t)  ,\nat (t) , \Gamma \seqar \Delta} }
221 50 adas
%		}
222 50 adas
%	}
223 50 adas
%\end{equation}
224 40 adas
225 40 adas
%
226 40 adas
%For the inductive step, we need to show that,
227 40 adas
%\[
228 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) )   )
229 40 adas
%\]
230 40 adas
%so let us suppose that $N(x)$ and we give the following proof:
231 40 adas
%\[
232 40 adas
%\vlderivation{
233 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)  ) }{
234 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)  ) }{
235 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) ) ) }{
236 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 }}
237 40 adas
%			}{
238 40 adas
%			\vlhy{2}
239 40 adas
%		}
240 40 adas
%	}{
241 40 adas
%	\vlhy{3}
242 40 adas
%}
243 40 adas
%}
244 40 adas
%}
245 40 adas
%\]
246 40 adas
%TOFINISH
247 50 adas
248 50 adas
Suppose $f$ is defined by safe composition as follows:
249 50 adas
\[
250 50 adas
f( \vec u ; \vec x )
251 50 adas
\quad = \quad
252 50 adas
h( \vec g (\vec u ; )  ; \vec g' ( \vec u ; \vec x ) )
253 50 adas
\]
254 50 adas
255 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:
256 50 adas
\[
257 50 adas
\vlderivation{
258 50 adas
	\vliq{\rigrul{\forall}}{}{ \seqar \forall\vec u^{!\nat} . \forall \vec x^\nat . \nat( f(\vec u ; \vec x ) ) }{
259 50 adas
		\vliq{\beta}{}{ !\nat (\vec u) , \nat (\vec x) \seqar \nat ( f( \vec u ; \vec x ) ) }{
260 50 adas
			\vliq{\cntr}{}{  !\nat (\vec u) , \nat (\vec x) \seqar \nat ( h( \vec g(\vec u ;) ; \vec g' ( \vec u ; \vec x )  ) )  }{
261 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 )  ) )   }{
262 50 adas
					\vlhy{
263 50 adas
						\left\{
264 50 adas
						\vlderivation{
265 50 adas
							\vlin{\rigrul{!}}{}{ !\nat (\vec u) \seqar !\nat ( g_i (\vec u ;) ) }{
266 50 adas
								\vliq{\alpha}{}{ !\nat (\vec u) \seqar \nat ( g_i (\vec u ;) }{
267 50 adas
									\vltr{\IH}{ \forall \vec u^{!\nat} . \nat (g_i (\vec u ;) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
268 50 adas
									}
269 50 adas
								}
270 50 adas
							}
271 50 adas
						\right\}_{i \leq |\vec g| }
272 50 adas
						}
273 50 adas
					}{
274 50 adas
					\vlhy{
275 50 adas
						\left\{
276 50 adas
						\vlderivation{
277 50 adas
							\vliq{\alpha}{}{ !\nat ( \vec u )  , \nat (\vec x) \seqar \nat  ( g_j' ( \vec u ; \vec x ) ) }{
278 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}}
279 50 adas
								}
280 50 adas
							}
281 50 adas
						\right\}_{j \leq |\vec g'|}
282 50 adas
						}
283 50 adas
					}{
284 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 )  )  ) ) }{
285 50 adas
						\vltr{\IH}{ \seqar \forall \vec v^{!\nat} . \forall \vec y^\nat . \nat ( h( \vec v ; \vec y ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
286 50 adas
						}
287 50 adas
					}
288 50 adas
				}
289 50 adas
			}
290 50 adas
		}
291 50 adas
	}
292 50 adas
\]
293 50 adas
where $\alpha$ and $\beta$ are similar to before.
294 50 adas
295 50 adas
\todo{reformat a bit}
296 50 adas
297 53 adas
It remains to check the initial functions.
298 50 adas
299 53 adas
Consider the conditional function, defined equationally as:
300 53 adas
\[
301 53 adas
\begin{array}{rcl}
302 53 adas
C (; \epsilon, y_\epsilon , y_0, y_1  ) & = & y_\epsilon \\
303 53 adas
C(; \succ_0 x , y_\epsilon , y_0, y_1) & = & y_0 \\
304 53 adas
C(; \succ_1 x , y_\epsilon , y_0, y_1) & = & y_1
305 53 adas
\end{array}
306 53 adas
\]
307 53 adas
Let $\vec y = ( y_\epsilon , y_0, y_1 )$ and construct the required proof as follows:
308 53 adas
\[
309 53 adas
\vlderivation{
310 53 adas
\vliq{}{}{ \nat (x) , \nat (\vec y) \seqar \nat ( C(; x ,\vec y) )}{
311 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) ) }{
312 53 adas
\vliq{}{}{ x = \epsilon , \nat (\vec y) \seqar \nat ( C(; x , \vec y) ) }{
313 53 adas
\vliq{}{}{ \nat (\vec y) \seqar \nat ( C( ; \epsilon , \vec y ) ) }{
314 53 adas
\vlin{\wk}{}{ \nat (\vec y) \seqar \nat (y_\epsilon) }{
315 53 adas
\vlin{\id}{}{\nat (y_\epsilon) \seqar \nat ( y_\epsilon )}{\vlhy{}}
316 53 adas
}
317 53 adas
}
318 53 adas
}
319 53 adas
}{
320 53 adas
\vlhy{
321 53 adas
\left\{
322 53 adas
\vlderivation{
323 53 adas
\vlin{\lefrul{\exists}}{}{ \exists z^\nat . x = \succ_i z , \nat (\vec y) \seqar \nat ( C(;x , \vec y) ) }{
324 53 adas
\vliq{}{}{ x = \succ_i a , \nat (\vec y ) \seqar \nat (C(; x ,\vec y)) }{
325 53 adas
\vliq{}{}{ \nat (\vec y) \seqar \nat ( C(; \succ_i a , \vec y ) ) }{
326 53 adas
\vlin{\wk}{}{ \nat (\vec y) \seqar \nat (y_i) }{
327 53 adas
\vlin{\id}{}{\nat (y_i) \seqar \nat (y_i)}{\vlhy{}}
328 53 adas
}
329 53 adas
}
330 53 adas
}
331 53 adas
}
332 53 adas
}
333 53 adas
\right\}_{i = 0,1}
334 53 adas
}
335 53 adas
}
336 53 adas
}
337 53 adas
}
338 53 adas
\]
339 53 adas
whence the result follows by $\forall$-introduction.
340 53 adas
\todo{reformat a bit}
341 53 adas
342 53 adas
Other initial functions are far simpler.
343 53 adas
344 33 adas
\end{proof}
345 40 adas
346 40 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
383 53 adas
384 53 adas
385 53 adas