Statistiques
| Révision :

root / CSL16 / wfm.tex @ 33

Historique | Voir | Annoter | Télécharger (15,21 ko)

1 33 adas
\section{Witness function method}
2 33 adas
3 33 adas
Key features/differences from realisability:
4 33 adas
\begin{itemize}
5 33 adas
	\item De Morgan normal form: reduces type level to $0$, complementary to double-negation translation that \emph{increases} type level.
6 33 adas
	\item Free-cut elimination: allows us to handles formulae of fixed logical complexity throughout the proof.
7 33 adas
	\item Respects logical properties of formulae, e.g.\ quantifier complexity, exponential complexity.
8 33 adas
\end{itemize}
9 33 adas
10 33 adas
\todo{say some more here}
11 33 adas
12 33 adas
\todo{compare with applicative theories}
13 33 adas
14 33 adas
\anupam{in particular, need to point out that this argument is actually something in between, since usually the WFM requires programs to be defined by formulae, not equational specifications.}
15 33 adas
16 33 adas
\newcommand{\type}{\mathtt{t}}
17 33 adas
\newcommand{\norm}{\nu}
18 33 adas
\newcommand{\safe}{\sigma}
19 33 adas
20 33 adas
\subsection{Witness/realisability predicate}
21 33 adas
22 33 adas
\begin{definition}
23 33 adas
	[Typing]
24 33 adas
	To each $\Sigma^\nat_1$-formula $A$ we associate a sorted tuple of variables $\type (A)$, intended to range over $\Nat$, as follows:
25 33 adas
	\[
26 33 adas
	\begin{array}{rcll}
27 33 adas
	\type (\nat (t)) & := & (;x^{\nat (t)} ) & \\
28 33 adas
	\type(s = t) & := & ( ; x^{s = t}) & \\
29 33 adas
	\type (A \lor B)  & : = & (\vec u , \vec v ; \vec x , \vec y) & \text{if $\type(A) = (\vec u ; \vec x)$ and $\type(B) = (\vec v ; \vec y)$.} \\
30 33 adas
	\type (A \land B)  & : = & (\vec u , \vec v ; \vec x , \vec y) & \text{if $\type(A) = (\vec u ; \vec x)$ and $\type(B) = (\vec v ; \vec y)$.} \\
31 33 adas
	\type (! A) & : = & ( \vec u ,\vec x  ; ) & \text{if $\type(A) = (\vec u ; \vec x )$.} \\
32 33 adas
	\type (\exists x^\nat . A) & := & (\vec u ; \vec x , y) & \text{if $\type (A) = (\vec u ; \vec x)$.}
33 33 adas
	%	\type (\forall x^N . A) & := & \Nat \to \type(A)
34 33 adas
	\end{array}
35 33 adas
	\]
36 33 adas
	%	where $\nu$ designates that the inputs are normal.
37 33 adas
\end{definition}
38 33 adas
39 33 adas
40 33 adas
\anupam{need to account for normality and safety somewhere. Attempting inlined and leaving types without this decoration.}
41 33 adas
42 33 adas
\begin{remark}
43 33 adas
	[Distribution of $!$]
44 33 adas
	There is a potential issue that the $!$ contains $\lor$ symbols in its scope, whence we do not in general have $!(A \lor B) \cong !A \lor !B$. However this will not be a problem here by inspection of a convergence statement: there are no $\lor$ symbols in the scope of a $!$. Therefore, after free-cut elimination, no formula in the proof will have this property either.
45 33 adas
46 33 adas
	On the other hand, since we are working in affine logic, we do in general have $!(A \land B) \cong !A \land !B$.
47 33 adas
\end{remark}
48 33 adas
49 33 adas
50 33 adas
		\newcommand{\witness}[2]{\mathit{Witness}^{#1}_{#2}}
51 33 adas
		\begin{definition}
52 33 adas
			[Witness predicate]
53 33 adas
			We define the following `witness' predicate for $\Sigma^\nat_1$-formulae $A$ with free variables amongst $\vec a$:
54 33 adas
			\[
55 33 adas
			\begin{array}{rcll}
56 33 adas
			\witness{\vec a}{A} (w, \vec b) & := & w = t(\vec b) & \text{if $A(\vec a)$ is $\nat (t(\vec a))$.} \\
57 33 adas
			\witness{\vec a}{A} (w, \vec b) & := & s(\vec b) = t(\vec b) & \text{if $A(\vec a)$ is $s(\vec a) = t (\vec b)$.} \\
58 33 adas
			\witness{\vec a}{A \lor B} ( \vec w^1 , \vec w^2, \vec b ) & := &  \witness{\vec a}{A} (\vec w^1 , \vec b) \cor \witness{\vec a}{B} (\vec w^2 , \vec b) &
59 33 adas
			%			\text{for $\star \in \{ \land, \lor, \laand , \laor\}$.}
60 33 adas
			\\
61 33 adas
			\witness{\vec a}{A \land B} ( \vec w^1 , \vec w^2, \vec b ) & := &  \witness{\vec a}{A} (\vec w^1 , \vec b) \cand \witness{\vec a}{B} (\vec w^2 , \vec b) &
62 33 adas
			%			\text{for $\star \in \{ \land, \lor, \laand , \laor\}$.}
63 33 adas
			\\
64 33 adas
			\witness{\vec a}{\exists x^\nat . A(x)} ( w, \vec w  , \vec b) & := & \witness{\vec{a}, a}{A(a)}(\vec w , \vec b, w ) & \\
65 33 adas
			\end{array}
66 33 adas
			\]
67 33 adas
			where $|\vec w^1| = |\type (A)|$ and $|\vec w^2| = |\type (B)| $.
68 33 adas
		\end{definition}
69 33 adas
		%	\todo{problem: what about complexity of checking equality? }
70 33 adas
71 33 adas
		\todo{Reformulate above later if necessary.}
72 33 adas
73 33 adas
		%	\todo{What about $\nat (t)$? What does it mean? Replace with true?}
74 33 adas
75 33 adas
		%	\todo{either use the witness predicate above, or use realizability predicate at meta-level and a model theory, like BH.}
76 33 adas
77 33 adas
		%	\anupam{Need to check above properly. $N(t)$ should be witnessed by the value of $t $ in the model. For equality of terms the witness should not do anything.}
78 33 adas
79 33 adas
		\anupam{to consider/remark: formally, is witness predicate checked in model or some logical theory?}
80 33 adas
81 33 adas
		\subsection{The translation}
82 33 adas
83 33 adas
		\begin{definition}
84 33 adas
			[Translation]
85 33 adas
			We give a translation of free-cut free $\Sigma^\nat_1$-$\pind$ proofs $\pi$ of sequents $\Gamma(\vec a) \seqar \Delta(\vec a)$ to BC-programs for a vector of functions $\vec f^\pi$ with argument of type $\type \left(\bigotimes\Gamma\right)$ such that $|\vec f^\pi | = | \type\left(\bigparr\Delta\right)|$ and:
86 33 adas
			\[
87 33 adas
			\witness{\vec a}{\bigotimes \Gamma} (\vec w , \vec b) \implies \witness{\vec a}{\bigparr \Delta } (\vec f(\vec w , \vec b), \vec b)
88 33 adas
			\]
89 33 adas
90 33 adas
			\anupam{to consider: do we need parameters $\vec a$ in argument of $f$? Or does $\nat$ predicate take care of this?}
91 33 adas
92 33 adas
			%	We will be explicit about normal and safe inputs when necessary, for the most part we will simply rearrange inputs into lists $(\vec u; \vec a)$ as in BC framework.
93 33 adas
94 33 adas
			We often suppress the parameters $\vec a$ when it is not important.
95 33 adas
96 33 adas
			\anupam{Is this implication provable in Bellantoni's version of PV based on BC?}
97 33 adas
98 33 adas
			%	\anupam{for moment try ignore decoration on right? what about negation?}
99 33 adas
100 33 adas
101 33 adas
102 33 adas
			The translation is by induction on the size of a free-cut free proof, so we proceed by analysis of the final step of a proof.
103 33 adas
104 33 adas
			Suppose $\pi$ ends with a $\rigrul{\land}$ step:
105 33 adas
			\[
106 33 adas
			\vlderivation{
107 33 adas
				\vliin{\land}{}{ \Gamma, \Sigma \seqar \Delta, \Pi, A\land B }{
108 33 adas
					\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
109 33 adas
				}{
110 33 adas
				\vltr{\pi_2}{ \Sigma \seqar \Pi, B }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
111 33 adas
			}
112 33 adas
		}
113 33 adas
		\]
114 33 adas
		By the inductive hypothesis let us suppose we have functions $\vec g (\vec u; \vec x)$ and $\vec h (\vec v ; \vec y)$ from $\pi_1$ and $\pi_2$ respectively, where $\type\left( \bigotimes\Gamma \right) = (\vec u; \vec x)$ and $\type \left( \bigotimes \Sigma \right) = (\vec v ; \vec y)$. Let us write $\vec g = (\vec g^\Delta , \vec g^A)$ and $\vec h = (\vec h^\Pi , \vec h^B)$, to denote the $\Delta$ and $A$ parts of $\vec g$ and the $\Pi$ and $B$ parts of $\vec h$.
115 33 adas
		%	So we have $\vec f^{1} (\vec x ; \vec a)$ and $\vec f^2 (\vec y ; \vec b)$ for $\pi_1 $ and $\pi_2$ respectively, by the inductive hypothesis.
116 33 adas
		We simply construct $\vec f^\pi$ by rearranging these tuples of functions:
117 33 adas
		\[
118 33 adas
		\vec f^\pi (\vec u , \vec v ; \vec x , \vec y)
119 33 adas
		\quad := \quad
120 33 adas
		\left(
121 33 adas
		\vec g^\Delta (\vec u ; \vec x) , \vec h^\Pi (\vec v ; \vec y)  , \vec g^A (\vec u ; \vec x) , \vec h^B (\vec v ; \vec y)
122 33 adas
		\right)
123 33 adas
		\]
124 33 adas
125 33 adas
		We will continue with a similar notational convention as above in the remainder of this argument.
126 33 adas
127 33 adas
		%	\anupam{bad notation since need to include free variables of sequent too. (also of theory.) Reconsider.}
128 33 adas
129 33 adas
		The case when $\pi$ ends with a $\lefrul{\lor}$ step is analogous to the $\rigrul{\land}$ case above.
130 33 adas
131 33 adas
		If $\pi$ consists of a subproof $\pi'$ ending with a $\lefrul{\land}$ or $\rigrul{\lor}$-step, then $\vec f^\pi$ is exactly $\vec f^{\pi'}$.
132 33 adas
133 33 adas
		Suppose $\pi$ ends with a $\lefrul{\cntr}$ step,
134 33 adas
		\[
135 33 adas
		\vlderivation{
136 33 adas
			\vlin{\lefrul{\cntr}}{}{ !A , \Gamma \seqar \Delta }{
137 33 adas
				\vltr{\pi'}{  !A, !A , \Gamma \seqar \Delta}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
138 33 adas
			}
139 33 adas
		}
140 33 adas
		\]
141 33 adas
		so we have functions $\vec f ( \vec u^1, \vec u^2 , \vec v ; \vec x)$ with $\vec u^1$ and $\vec u^2$ corresponding to the two copies of $!A$ in the conclusion of $\pi'$, respectively, and $\type (\Gamma) = (\vec v; \vec x)$. (Recall that the typing corresponding to $!$ means that all inputs for each $!A$ are normal). We define $\vec f^\pi$ as expected, duplicating the arguments for $!A$:
142 33 adas
		\[
143 33 adas
		\vec f^\pi (\vec u , \vec v ; \vec x)
144 33 adas
		\quad := \quad
145 33 adas
		\vec f (\vec u, \vec u , \vec v ; \vec x)
146 33 adas
		\]
147 33 adas
		(Notice that this is obtainable in BC by a trivial instance of safe composition.)
148 33 adas
149 33 adas
150 33 adas
		%	cntr right
151 33 adas
		%	\[
152 33 adas
		%	\vlderivation{
153 33 adas
		%	\vlin{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{
154 33 adas
		%	\vltr{\pi'}{  \Gamma \seqar \Delta, ?A, ?A}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
155 33 adas
		%	}
156 33 adas
		%	}
157 33 adas
		%	\]
158 33 adas
		%	(need test function against witness predicate?)
159 33 adas
		%
160 33 adas
		%	\anupam{problem: how to test even equality of two terms? Maybe treat $?$ as $!$ on left?}
161 33 adas
		%
162 33 adas
		%	\anupam{Not a problem by free-cut elimination! Can assume there are no $?$ in the proof! Is this equivalent to treaing $?$ as $!$ on left?}
163 33 adas
		%
164 33 adas
		%	\anupam{Yes I think so. We can work in a left-sided calculus. only problem is for induction. But this can never be a problem for modalities since induction formulae are modality-free.}
165 33 adas
		%
166 33 adas
		%	\anupam{this is actually the main point.}
167 33 adas
168 33 adas
		For $\rigrul{\cntr}$, notice that no $?$-symbol occurs in a convergence statement, an initial step or an induction formula, so a free-cut free proof is free of $\rigrul{\cntr}$-steps.
169 33 adas
170 33 adas
		\anupam{This is important, so expand on this here or in a remark before/after.}
171 33 adas
172 33 adas
173 33 adas
		%	\[
174 33 adas
		%	\vlderivation{
175 33 adas
		%	\vliin{\rigrul{\laand}}{}{\Gamma \seqar \Delta, A \laand B}{
176 33 adas
		%	\vltr{\pi_1}{  \Gamma \seqar \Delta, A}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
177 33 adas
		%	}{
178 33 adas
		%	\vltr{\pi_2}{  \Gamma \seqar \Delta, B}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
179 33 adas
		%	}
180 33 adas
		%	}
181 33 adas
		%	\]
182 33 adas
		%
183 33 adas
		%	Suppose we have $\vec f^i (\vec x , \vec a ; \vec y , \vec b)$ from $\pi_i$.
184 33 adas
		%
185 33 adas
		%	\anupam{problem: does this require many tests, just like for contraction? Can we isolate a different complexity class? e.g.\ PH or Grzegorzyck?}
186 33 adas
		%	\anupam{skip this case and consider later.}
187 33 adas
188 33 adas
		\anupam{commented stuff on additives. To remark later perhaps.}
189 33 adas
190 33 adas
191 33 adas
192 33 adas
		Suppose $\pi$ ends with a $\rigrul{\exists}$ step,
193 33 adas
		\[
194 33 adas
		\vlderivation{
195 33 adas
			\vlin{\rigrul{\exists}}{}{ \Gamma, \nat(t) \seqar \Delta , \exists x^\nat . A(x) }{
196 33 adas
				\vltr{\pi'}{ \Gamma \seqar \Delta , A(t) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
197 33 adas
			}
198 33 adas
		}
199 33 adas
		\]
200 33 adas
		so by the inductive hypothesis we have functions $\vec f^\Delta , \vec f^{A(t)}$ with arguments $(\vec u ; \vec x )= \type(\bigotimes \Gamma)$. We define $\vec f^\pi$ as follows:
201 33 adas
		\[
202 33 adas
		\vec f^\pi (\vec u ; \vec x , y)
203 33 adas
		\quad := \quad
204 33 adas
		\left( \vec f^\Delta (\vec u ; \vec x) , \id (;y), \vec{ f}^{A(t)} (\vec u; \vec x)  \right)
205 33 adas
		\]
206 33 adas
		(The identity function on $y$ is defined from successor, predecessor and safe composition).
207 33 adas
208 33 adas
209 33 adas
		%Suppose we have functions $\vec f^X (\vec x ; \vec y)$ from $\pi'$ for $X = \Delta$ or $ X=A$.
210 33 adas
		%\[
211 33 adas
		%\vec f(\vec x ; \vec y , z) \quad := \quad ( \vec f^\Delta (\vec x ; \vec y)   ,  z , \vec f^A ( \vec x ; \vec y ) )
212 33 adas
		%\]
213 33 adas
214 33 adas
215 33 adas
		Suppose $\pi$ ends with a $\lefrul{\exists}$ step:
216 33 adas
		\[
217 33 adas
		\vlderivation{
218 33 adas
			\vlin{\lefrul{\exists}}{}{ \Gamma, \exists x^N . A(x) \seqar \Delta }{
219 33 adas
				\vltr{\pi'(a)}{ \Gamma , A(a),  N(a) \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
220 33 adas
			}
221 33 adas
		}
222 33 adas
		\]
223 33 adas
		%
224 33 adas
		%Suppose we have functions $\vec f' (\vec u , \vec v ; x , \vec y , \vec z)$ from $\pi'$ with $(\vec u ; \vec x )$ corresponding to $\Gamma$, $(;x)$ corresponding to $N(a)$ and $(\vec v ; \vec z)$ corresponding to $A(a)$. We define:
225 33 adas
		%\[
226 33 adas
		%\vec f ( \vec u , \vec v ;  )
227 33 adas
		%\]
228 33 adas
229 33 adas
		\anupam{should just be same? Consider variable naming, just in case.}
230 33 adas
		\anupam{This is probably where the consideration for free variables is.}
231 33 adas
232 33 adas
		%Suppose we have functions $\vec g (\vec v  , \vec w ; \vec x , y , \vec z)$ where $(\vec v ; \vec x) $ corresponds to $\Gamma$, $y$ corresponds to $\nat(a)$ and $(\vec w ; \vec z) $ corresponds to $A(a)$. Then we define:
233 33 adas
		%\[
234 33 adas
		%\vec f ( \vec v , \vec w ; \vec x , y , \vec z )
235 33 adas
		%\]
236 33 adas
237 33 adas
238 33 adas
		Suppose $\pi$ ends with a $\cut$ step:
239 33 adas
		\[
240 33 adas
		\vlderivation{
241 33 adas
			\vliin{\cut}{}{\Gamma , \Sigma \seqar \Delta , \Pi}{
242 33 adas
				\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
243 33 adas
			}{
244 33 adas
			\vltr{\pi_2}{\Sigma , A \seqar \Pi}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
245 33 adas
		}
246 33 adas
	}
247 33 adas
	\]
248 33 adas
249 33 adas
	We have two cases. First, if $A$ is free of modalities, then $\type (A)$ consists of only safe inputs. Therefore we have functions $\vec g (\vec u; \vec x)$ and $\vec h (\vec v ; \vec y, \vec z)$ from $\pi_1$ and $\pi_2 $ respectively, such that $\type(\Gamma) = (\vec u ; \vec x)$, $\type(\Sigma) = (\vec v ; \vec y )$ and $\type (A) = (;\vec z)$. Let us write $\vec g = (\vec g^\Delta , \vec g^A)$ as before, and we define $\vec f^\pi$ as follows:
250 33 adas
251 33 adas
	\[
252 33 adas
	\vec f^\pi ( \vec u , \vec v ; \vec x, \vec y)
253 33 adas
	\quad := \quad
254 33 adas
	\left(
255 33 adas
	\vec g^\Delta (\vec u ; \vec x)
256 33 adas
	,
257 33 adas
	\vec h ( \vec v ; \vec y , \vec g^A ( \vec u ; \vec x ) )
258 33 adas
	\right)
259 33 adas
	\]
260 33 adas
	(Notice that all safe inputs are hereditarily safe in these expressions, so they are definable by safe composition and projection).
261 33 adas
262 33 adas
263 33 adas
264 33 adas
265 33 adas
	In the other case, where $A$ may be modal, it must be of the form $!\nat (t)$ since it is a cut formula, and so must directly descend from an induction step or axiom. The only such occurrence of a modality is in the conclusion of an induction step, whence such a formula has the form $!\nat (t)$. By free-cut elimination we can also assume that this cut formula is principal on \emph{both} sides, i.e.\ $\pi$ is of the form:
266 33 adas
267 33 adas
	\todo{finish this case}
268 33 adas
269 33 adas
270 33 adas
271 33 adas
	Suppose $\pi$ ends with a $\lefrul{!}$ step:
272 33 adas
	\[
273 33 adas
	\vlderivation{
274 33 adas
		\vlin{!}{}{\Gamma, !A \seqar \Delta}{
275 33 adas
			\vltr{\pi'}{ \Gamma , A \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
276 33 adas
		}
277 33 adas
	}
278 33 adas
	\]
279 33 adas
	\todo{finish this case, just passing a safe input to a normal input.}
280 33 adas
281 33 adas
282 33 adas
	Suppose $\pi$ ends with a $\rigrul{!}$ step:
283 33 adas
284 33 adas
	\todo{finish this case, should not change function at all, but maybe there is a consideration.}
285 33 adas
286 33 adas
	Suppose $\pi$ ends with a $\lefrul{\wk}$ step:
287 33 adas
288 33 adas
	\todo{finish this case, just add a dummy input.}
289 33 adas
290 33 adas
	Suppose $\pi$ ends with a $\rigrul{\wk}$ step:
291 33 adas
292 33 adas
	\todo{finish this case, just add a dummy function.}
293 33 adas
294 33 adas
295 33 adas
296 33 adas
	Suppose $\pi$ ends with a $\pind$ step. For the same reason as $\rigrul{\cntr}$ we can assume there are no $?$ formulae and so no side formulae on the right. Thus a $\pi$ has the following form:
297 33 adas
	\[
298 33 adas
	\vlderivation{
299 33 adas
		\vliin{\ind}{}{ !\Gamma , !\nat (t) ,  A(\epsilon) \seqar A(t) }{
300 33 adas
			\vltr{\pi_0}{ !\Gamma , !\nat(a) , A(a) \seqar A(\succ_0 a)}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
301 33 adas
		}{
302 33 adas
		\vltr{\pi_1}{ !\Gamma , !\nat(a), A(a)\seqar A(\succ_1 a) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
303 33 adas
	}
304 33 adas
}
305 33 adas
\]
306 33 adas
307 33 adas
By the inductive hypothesis we have functions:
308 33 adas
309 33 adas
Suppose we have functions $\vec f^i (\vec x , y ; \vec u)$ from proofs $\pi_i$ where $\vec x $ corresponds to $!\Gamma$, $y$ corresponds to $!N(a)$ and $\vec u$ corresponds to $A(a)$.
310 33 adas
311 33 adas
312 33 adas
\anupam{role of $!N(a)$ versus having $a$ as a parameter to function. To consider!}
313 33 adas
314 33 adas
Define the function $f_k$ (for $k = 1 , \dots , |\vec u|$) by PRN:
315 33 adas
\[
316 33 adas
\begin{array}{rcl}
317 33 adas
f_k(\epsilon, \vec x , y ; \vec u) & := & u_k \\
318 33 adas
f_k (\succ_i w , \vec x , y ; \vec u) & : = & f^i_k ( \vec x ,  y ; \vec f ( w, \vec x , y ; \vec u ) )
319 33 adas
\end{array}
320 33 adas
\]
321 33 adas
322 33 adas
\anupam{check this, esp use of parameters, cf.\ above.}
323 33 adas
324 33 adas
\anupam{Is this not using a simultaneous version of PRN? Might need concatenation of words/basic coding to deal with this.}
325 33 adas
326 33 adas
327 33 adas
\end{definition}
328 33 adas
329 33 adas
\newcommand{\concat}{\mathit{concat}}
330 33 adas
\paragraph{Some points on concatenation \anupam{if necessary}}
331 33 adas
We can define the concatenation operation by PRN:
332 33 adas
\[
333 33 adas
\begin{array}{rcl}
334 33 adas
\concat (\epsilon ; y) & : = & x \\
335 33 adas
\concat (\succ_i x ; y) & := & \succ_i \concat (x ; y)
336 33 adas
\end{array}
337 33 adas
\]
338 33 adas
339 33 adas
From here we can define iterated concatenation:
340 33 adas
\[
341 33 adas
\concat (x_1 , \dots x_n ; y) \quad := \quad \concat (x_n ; \concat (x_{n-1} ; \vldots \concat (x_1 ; y) \vldots ) )
342 33 adas
\]
343 33 adas
344 33 adas
(notice all safe inputs are hereditarily to the right of $;$ so this is definable by safe composition and projection.)