Révision 107
| CSL16/appendix-wfm.tex (revision 107) | ||
|---|---|---|
| 1 |
\section{Appendix for Sect.~\ref{sect:wfm}}
|
|
| 2 |
\label{sect:app-wfm}
|
|
| 3 |
|
|
| 4 |
The other initial steps of $\arith$ are translated as follows: |
|
| 5 |
\[ |
|
| 6 |
\begin{array}{ccc}
|
|
| 7 |
% \vlinf{\word_\epsilon}{}{\seqar \word (\epsilon)}{}
|
|
| 8 |
% & : & |
|
| 9 |
% \epsilon |
|
| 10 |
% \\ |
|
| 11 |
\vlinf{\genzer}{}{\word(t) \seqar \word(\succ_0 t)}{}
|
|
| 12 |
& \quad :\quad & |
|
| 13 |
\succ_0 ( ;x) |
|
| 14 |
\\ |
|
| 15 |
\vlinf{\genone}{}{\word(t) \seqar \word(\succ_1 t)}{}
|
|
| 16 |
& \quad : \quad & |
|
| 17 |
\succ_1 (; x) |
|
| 18 |
\\ |
|
| 19 |
% \vlinf{\epsilon^0}{}{ \word (t) , \epsilon = \succ_0 t \seqar }{}
|
|
| 20 |
% & : & |
|
| 21 |
% \epsilon |
|
| 22 |
% \\ |
|
| 23 |
% \vlinf{\epsilon^1}{}{ \word (t) , \epsilon = \succ_1 t \seqar }{}
|
|
| 24 |
% & : & |
|
| 25 |
% \epsilon |
|
| 26 |
% \\ |
|
| 27 |
% \vlinf{\succ_0}{}{\word (s) , \word (t) , \succ_0 s = \succ_0 t\seqar s = t }{}
|
|
| 28 |
% & : & |
|
| 29 |
% \epsilon |
|
| 30 |
% \\ |
|
| 31 |
% \vlinf{\succ_1}{}{\word (s) , \word (t) , \succ_1 s = \succ_1 t\seqar s = t }{}
|
|
| 32 |
% & : & |
|
| 33 |
% \epsilon |
|
| 34 |
% \\ |
|
| 35 |
% \vlinf{\inj}{}{\word(t), \succ_0 t = \succ_1 t \seqar}{}
|
|
| 36 |
% & : & |
|
| 37 |
% \epsilon |
|
| 38 |
% \\ |
|
| 39 |
\vlinf{\surj}{}{\word (t) \seqar t = \epsilon \laor \exists y^\word . t = \succ_0 y \laor \exists y^\word. t = \succ_1 y }{}
|
|
| 40 |
&\quad : \quad & |
|
| 41 |
( \epsilon , \pred ( ;x) , \pred (;x ) ) |
|
| 42 |
\\ |
|
| 43 |
\vlinf{\wordcntr}{}{\word(t) \seqar \word(t) \land \word(t) }{}
|
|
| 44 |
& \quad : \quad & |
|
| 45 |
( \id (;x) , \id (;x) ) |
|
| 46 |
\end{array}
|
|
| 47 |
\] |
|
| 48 |
|
|
| 49 |
|
|
| 50 |
Suppose $\pi$ ends with a $\rigrul{\land}$ step:
|
|
| 51 |
\[ |
|
| 52 |
\vlderivation{
|
|
| 53 |
\vliin{\land}{}{ \Gamma, \Sigma \seqar \Delta, \Pi, A\land B }{
|
|
| 54 |
\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 55 |
}{
|
|
| 56 |
\vltr{\pi_2}{ \Sigma \seqar \Pi, B }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 57 |
} |
|
| 58 |
} |
|
| 59 |
\] |
|
| 60 |
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$. |
|
| 61 |
% 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.
|
|
| 62 |
We construct $\vec f^\pi$ by simply rearranging these tuples of functions: |
|
| 63 |
\[ |
|
| 64 |
\vec f^\pi (\vec u , \vec v ; \vec x , \vec y) |
|
| 65 |
\quad := \quad |
|
| 66 |
\left( |
|
| 67 |
\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) |
|
| 68 |
\right) |
|
| 69 |
\] |
|
| 70 |
|
|
| 71 |
|
|
| 72 |
If $\pi$ ends with a $\lefrul{\exists}$ step,
|
|
| 73 |
\[ |
|
| 74 |
\vlderivation{
|
|
| 75 |
\vlin{\lefrul{\exists}}{}{ \Gamma, \exists x^\word . A(x) \seqar \Delta }{
|
|
| 76 |
\vltr{\pi'}{ \Gamma , A(a), \word(a) \seqar \Delta }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 77 |
} |
|
| 78 |
} |
|
| 79 |
\] |
|
| 80 |
then $\vec f^{\pi}$ is exactly the same as $\vec f^{\pi'}$.
|
|
| 81 |
|
|
| 82 |
|
|
| 83 |
Suppose $\pi$ ends with a $\cut$ step: |
|
| 84 |
\[ |
|
| 85 |
\vlderivation{
|
|
| 86 |
\vliin{\cut}{}{\Gamma , \Sigma \seqar \Delta , \Pi}{
|
|
| 87 |
\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 88 |
}{
|
|
| 89 |
\vltr{\pi_2}{\Sigma , A \seqar \Pi}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 90 |
} |
|
| 91 |
} |
|
| 92 |
\] |
|
| 93 |
|
|
| 94 |
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: |
|
| 95 |
|
|
| 96 |
\[ |
|
| 97 |
\vec f^\pi ( \vec u , \vec v ; \vec x, \vec y) |
|
| 98 |
\quad := \quad |
|
| 99 |
\left( |
|
| 100 |
\vec g^\Delta (\vec u ; \vec x) |
|
| 101 |
, |
|
| 102 |
\vec h ( \vec v ; \vec y , \vec g^A ( \vec u ; \vec x ) ) |
|
| 103 |
\right) |
|
| 104 |
\] |
|
| 105 |
Notice that all safe inputs on the left occur hereditarily safe on the right, and so these expressions are definable in BC by Prop.~\ref{prop:bc-properties}.
|
|
| 106 |
|
|
| CSL16/bc-convergence.tex (revision 107) | ||
|---|---|---|
| 46 | 46 |
By the inductive hypothesis we have \eqref{eqn:prv-cvg-ih} for $g,h_0,h_1$ in place of $f$. We construct the proof $\pi_\epsilon$,
|
| 47 | 47 |
\begin{equation}
|
| 48 | 48 |
\label{eqn:prn-cvg-base}
|
| 49 |
\small |
|
| 49 | 50 |
\vlderivation{
|
| 50 | 51 |
\vliq{\beta}{}{!\word(\vec v) , \word (\vec x) \seqar \word(f (\epsilon , \vec v ; \vec x)) }{
|
| 51 | 52 |
\vliq{\alpha}{}{!\word (\vec v) , \word (\vec x) \seqar \word (g (\vec v ; \vec x) ) }{
|
| ... | ... | |
| 80 | 81 |
% } |
| 81 | 82 |
% } |
| 82 | 83 |
% } |
| 84 |
\small |
|
| 83 | 85 |
\vlderivation{
|
| 84 | 86 |
\vlin{\lefrul{\land}}{}{ !\word (a) , !\word (\vec v) , \word (\vec x) \land \word (f( a , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) ) }{
|
| 85 | 87 |
\vlin{\lefrul{\cntr}}{}{ !\word (a) , !\word (\vec v) , \word (\vec x) , \word (f( a , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) )}{
|
| ... | ... | |
| 116 | 118 |
% } |
| 117 | 119 |
% } |
| 118 | 120 |
Finally we compose these proofs as follows: |
| 119 |
|
|
| 120 | 121 |
\[ |
| 122 |
\small |
|
| 121 | 123 |
\vlderivation{
|
| 122 | 124 |
\vliq{\rigrul{\forall}}{}{ \seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word . \word ( f(u , \vec v ;\vec x) ) }{
|
| 123 | 125 |
\vliq{\lefrul{\cntr}}{}{ !\word (u), !\word (\vec v) , \word (\vec x) \seqar \word ( f(u , \vec v ;\vec x) ) }
|
| 124 | 126 |
{
|
| 125 | 127 |
\vliin{\cut}{}{ !\word (u), !\word(\vec v), !\word (\vec v) , \word (\vec x) , \word (\vec x) \seqar \word ( f(u , \vec v ;\vec x) ) }{
|
| 126 |
\vltr{}{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 128 |
\vltr{\pi_\epsilon}{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 127 | 129 |
} |
| 128 | 130 |
{
|
| 129 | 131 |
\vliq{\wk}{}{ !\word (u), !\word (\vec v) , \word (\vec x), \word ( f( \epsilon , \vec v ; \vec x ) ) \seqar \word ( f( u , \vec v ; \vec x ) ) }{
|
| ... | ... | |
| 132 | 134 |
{
|
| 133 | 135 |
\vlhy{
|
| 134 | 136 |
\left\{
|
| 135 |
\vltreeder{}{ !\word (a), !\word (\vec v) , \word (\vec x) \word ( f( a , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word ( f( \succ_i u , \vec v ; \vec x ) ) }{\quad}{}{}
|
|
| 136 |
\right\}_{i=0,1}
|
|
| 137 |
\vltreeder{\pi_i}{ !\word (a), !\word (\vec v) , \word (\vec x) \word ( f( a , \vec v ; \vec x ) ) \seqar \word (\vec x) \land \word ( f( \succ_i u , \vec v ; \vec x ) ) }{\quad}{}{}
|
|
| 138 |
\right\}_i
|
|
| 137 | 139 |
} |
| 138 | 140 |
} |
| 139 | 141 |
} |
| ... | ... | |
| 143 | 145 |
} |
| 144 | 146 |
} |
| 145 | 147 |
\] |
| 146 |
where the steps $\inv{\land}$ are obtained from invertibility of $\lefrul{\land}$.
|
|
| 148 |
for $i=0,1$, where the steps $\inv{\land}$ are obtained from invertibility of $\lefrul{\land}$.
|
|
| 147 | 149 |
|
| 148 | 150 |
%For the inductive step, we suppose that $\word (u)$ and the proof is as follows, |
| 149 | 151 |
% |
| ... | ... | |
| 196 | 198 |
\] |
| 197 | 199 |
Let $\vec y = ( y_\epsilon , y_0, y_1 )$ and construct the required proof as follows: |
| 198 | 200 |
\[ |
| 201 |
\small |
|
| 199 | 202 |
\vlderivation{
|
| 200 | 203 |
\vliq{}{}{ \word (x) , \word (\vec y) \seqar \word ( C(; x ,\vec y) )}{
|
| 201 | 204 |
\vliin{2\cdot \laor}{}{ x = \epsilon \laor \exists z^\word . x = \succ_0 z \laor \exists z^\word x = \succ_1 z , \word (\vec y) \seqar \word ( C(;x \vec y) ) }{
|
| CSL16/wfm.tex (revision 107) | ||
|---|---|---|
| 97 | 97 |
The translation is by induction on the size of $\pi$, so we proceed by inspection of its final step. |
| 98 | 98 |
|
| 99 | 99 |
If $\pi$ is an instance of the initial rules $\geneps, \sepeps^0 , \sepeps^1, \sepzer, \sepone$ or $\inj$ then $\vec f^\pi$ is simply the constant function $\epsilon$ (possibly with dummy inputs as required by $\type$).\footnote{This is because proofs of (in)equalities can be seen to carry no computational content.}
|
| 100 |
The other initial steps of $\arith$ are translated as follows: |
|
| 101 |
\[ |
|
| 102 |
\begin{array}{ccc}
|
|
| 103 |
% \vlinf{\word_\epsilon}{}{\seqar \word (\epsilon)}{}
|
|
| 104 |
% & : & |
|
| 105 |
% \epsilon |
|
| 106 |
% \\ |
|
| 107 |
\vlinf{\genzer}{}{\word(t) \seqar \word(\succ_0 t)}{}
|
|
| 108 |
& \quad :\quad & |
|
| 109 |
\succ_0 ( ;x) |
|
| 110 |
\\ |
|
| 111 |
\vlinf{\genone}{}{\word(t) \seqar \word(\succ_1 t)}{}
|
|
| 112 |
& \quad : \quad & |
|
| 113 |
\succ_1 (; x) |
|
| 114 |
\\ |
|
| 115 |
% \vlinf{\epsilon^0}{}{ \word (t) , \epsilon = \succ_0 t \seqar }{}
|
|
| 116 |
% & : & |
|
| 117 |
% \epsilon |
|
| 118 |
% \\ |
|
| 119 |
% \vlinf{\epsilon^1}{}{ \word (t) , \epsilon = \succ_1 t \seqar }{}
|
|
| 120 |
% & : & |
|
| 121 |
% \epsilon |
|
| 122 |
% \\ |
|
| 123 |
% \vlinf{\succ_0}{}{\word (s) , \word (t) , \succ_0 s = \succ_0 t\seqar s = t }{}
|
|
| 124 |
% & : & |
|
| 125 |
% \epsilon |
|
| 126 |
% \\ |
|
| 127 |
% \vlinf{\succ_1}{}{\word (s) , \word (t) , \succ_1 s = \succ_1 t\seqar s = t }{}
|
|
| 128 |
% & : & |
|
| 129 |
% \epsilon |
|
| 130 |
% \\ |
|
| 131 |
% \vlinf{\inj}{}{\word(t), \succ_0 t = \succ_1 t \seqar}{}
|
|
| 132 |
% & : & |
|
| 133 |
% \epsilon |
|
| 134 |
% \\ |
|
| 135 |
\vlinf{\surj}{}{\word (t) \seqar t = \epsilon \laor \exists y^\word . t = \succ_0 y \laor \exists y^\word. t = \succ_1 y }{}
|
|
| 136 |
&\quad : \quad & |
|
| 137 |
( \epsilon , \pred ( ;x) , \pred (;x ) ) |
|
| 138 |
\\ |
|
| 139 |
\vlinf{\wordcntr}{}{\word(t) \seqar \word(t) \land \word(t) }{}
|
|
| 140 |
& \quad : \quad & |
|
| 141 |
( \id (;x) , \id (;x) ) |
|
| 142 |
\end{array}
|
|
| 143 |
\] |
|
| 144 |
If $\pi$ is an $\closure{\eqspec}$ initial step it is also translated simply to $\epsilon$.
|
|
| 100 |
If $\pi$ is an $\closure{\eqspec}$ or $=$ initial step it is also translated simply to $\epsilon$.
|
|
| 101 |
|
|
| 102 |
The initial steps $\genzer, \genone , \surj$ and $\wordcntr$ are translated to $\succ_0( ; x) , \succ_1 (; x), ( \epsilon , \pred ( ;x) , \pred (; x) )$ and $(\id (;x) , \id(;x))$ respectively. |
|
| 145 | 103 |
|
| 146 | 104 |
Finally, suppose $\pi$ is a logical initial step. If $\pi $ is an instance of $\id$, i.e.\ $p \seqar p$, then we translate it to $\id$. Notice that, if $\pi$ is an instance of $\lefrul{\bot}$ (i.e.\ $p, p^\bot \seqar $ ) or $\rigrul{\bot}$ (i.e.\ $\seqar p, p^\bot$) then $p$ must be an equality $s=t$ for some terms $s,t$, since $p$ must be atomic and, by assumption, $\word$ does not occur negatively. Therefore $\pi$ is translated to tuples of $\epsilon$ as appropriate.
|
| 147 | 105 |
|
| ... | ... | |
| 149 | 107 |
|
| 150 | 108 |
|
| 151 | 109 |
Now we consider the inductive cases. |
| 152 |
Suppose $\pi$ ends with a $\rigrul{\land}$ step:
|
|
| 153 |
\[ |
|
| 154 |
\vlderivation{
|
|
| 155 |
\vliin{\land}{}{ \Gamma, \Sigma \seqar \Delta, \Pi, A\land B }{
|
|
| 156 |
\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 157 |
}{
|
|
| 158 |
\vltr{\pi_2}{ \Sigma \seqar \Pi, B }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 159 |
} |
|
| 160 |
} |
|
| 161 |
\] |
|
| 162 |
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$. |
|
| 163 |
% 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.
|
|
| 164 |
We construct $\vec f^\pi$ by simply rearranging these tuples of functions: |
|
| 165 |
\[ |
|
| 166 |
\vec f^\pi (\vec u , \vec v ; \vec x , \vec y) |
|
| 167 |
\quad := \quad |
|
| 168 |
\left( |
|
| 169 |
\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) |
|
| 170 |
\right) |
|
| 171 |
\] |
|
| 172 |
|
|
| 173 |
We will continue with similar notational conventions in the remainder of this argument. |
|
| 174 |
|
|
| 175 |
% \anupam{bad notation since need to include free variables of sequent too. (also of theory.) Reconsider.}
|
|
| 176 |
|
|
| 177 |
The case when $\pi$ ends with a $\lefrul{\lor}$ step is analogous to the $\rigrul{\land}$ case above.
|
|
| 178 |
|
|
| 110 |
% |
|
| 111 |
% We will continue with similar notational conventions in the remainder of this argument. |
|
| 112 |
% |
|
| 113 |
% % \anupam{bad notation since need to include free variables of sequent too. (also of theory.) Reconsider.}
|
|
| 114 |
% |
|
| 115 |
If $\pi$ ends with a $\rigrul{\land}$ or $\lefrul{\lor}$ step then we just rearrange the tuple of functions obtained from the inductive hypothesis.
|
|
| 116 |
% The case when $\pi$ ends with a $\lefrul{\lor}$ step is analogous to the $\rigrul{\land}$ case above.
|
|
| 179 | 117 |
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'}$.
|
| 118 |
By assumption, there are no $\laor$, $\laand$, $?$ or $\forall$ steps occurring in $\pi$, and if $\pi$ consists of a subproof $\pi'$ followed by a $\lefrul{\exists}$ step then $\vec f^\pi$ is exactly the same as $\vec f^{\pi'}$, under possible reordering of the tuple.
|
|
| 180 | 119 |
|
| 181 |
|
|
| 182 |
By assumption, there are no $\laor$, $\laand$, $?$ or $\forall$ steps occurring in $\pi$. |
|
| 183 |
|
|
| 184 |
|
|
| 185 | 120 |
Suppose $\pi$ ends with a $\rigrul{\exists}$ step,
|
| 186 | 121 |
\[ |
| 187 | 122 |
\vlderivation{
|
| ... | ... | |
| 209 | 144 |
%\] |
| 210 | 145 |
|
| 211 | 146 |
|
| 212 |
If $\pi$ ends with a $\lefrul{\exists}$ step,
|
|
| 213 |
\[ |
|
| 214 |
\vlderivation{
|
|
| 215 |
\vlin{\lefrul{\exists}}{}{ \Gamma, \exists x^\word . A(x) \seqar \Delta }{
|
|
| 216 |
\vltr{\pi'}{ \Gamma , A(a), \word(a) \seqar \Delta }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 217 |
} |
|
| 218 |
} |
|
| 219 |
\] |
|
| 220 |
then $\vec f^{\pi}$ is exactly the same as $\vec f^{\pi'}$.
|
|
| 147 |
|
|
| 221 | 148 |
% |
| 222 | 149 |
%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: |
| 223 | 150 |
%\[ |
| ... | ... | |
| 254 | 181 |
|
| 255 | 182 |
If $\pi$ consists of a subproof $\pi'$ followed by a $\rigrul{!}$ step then $\vec f^\pi$ is exactly the same as $\vec f^{\pi'}$. If $\pi$ ends with a $\lefrul{!}$ step then we just appeal to Prop.~\ref{prop:bc-properties} to turn a safe input into a normal input.
|
| 256 | 183 |
|
| 257 |
Since there are no $?$ symbols in $\pi$, we can assume also that there are no $\rigrul{\cntr}$ steps in $\pi$.
|
|
| 184 |
Since there are no $?$ symbols in $\pi$, we can assume also that there are no $\rigrul{\cntr}$ steps in $\pi$.\footnote{Again, this is crucially important, since we cannot test the equality between arbitrary terms in the presence of nonlogical function symbols.}
|
|
| 258 | 185 |
|
| 259 | 186 |
% \anupam{This is important, so expand on this here or in a remark before/after.}
|
| 260 | 187 |
|
| ... | ... | |
| 296 | 223 |
% \anupam{this is actually the main point.}
|
| 297 | 224 |
|
| 298 | 225 |
|
| 299 |
|
|
| 300 |
|
|
| 301 |
|
|
| 302 |
Suppose $\pi$ ends with a $\cut$ step: |
|
| 303 |
\[ |
|
| 304 |
\vlderivation{
|
|
| 305 |
\vliin{\cut}{}{\Gamma , \Sigma \seqar \Delta , \Pi}{
|
|
| 306 |
\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 307 |
}{
|
|
| 308 |
\vltr{\pi_2}{\Sigma , A \seqar \Pi}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 309 |
} |
|
| 310 |
} |
|
| 311 |
\] |
|
| 312 |
|
|
| 313 |
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: |
|
| 314 |
|
|
| 315 |
\[ |
|
| 316 |
\vec f^\pi ( \vec u , \vec v ; \vec x, \vec y) |
|
| 317 |
\quad := \quad |
|
| 318 |
\left( |
|
| 319 |
\vec g^\Delta (\vec u ; \vec x) |
|
| 320 |
, |
|
| 321 |
\vec h ( \vec v ; \vec y , \vec g^A ( \vec u ; \vec x ) ) |
|
| 322 |
\right) |
|
| 323 |
\] |
|
| 324 |
Notice that all safe inputs on the left occur hereditarily safe on the right, and so these expressions are definable in BC by Prop.~\ref{prop:bc-properties}.
|
|
| 325 |
|
|
| 326 |
|
|
| 327 |
|
|
| 328 |
|
|
| 329 |
In the other case, where $A$ may be modal, it must be of the form $!\word (t)$ since it must directly descend from the left-hand side of an induction step, by free-cut freeness. |
|
| 226 |
If $\pi$ ends with a $\cut$ step whose cut-formula is free of modalities, then it can be directly translated to a safe composition of functions obtained by the inductive hypothesis, by relying on Prop.~\ref{prop:bc-properties}. Otherwise, the cut-formula must be of the form $!\word (t)$ since it must directly descend from the left-hand side of an induction step, by free-cut freeness.
|
|
| 330 | 227 |
% or axiom on one side. The only such occurrence of a modality is in the conclusion of an induction step, whence such a formula has the form $!\word (t)$. |
| 331 |
Since the cut is anchored, we can also assume that the cut formula is principal on the other side, i.e.\ $\pi$ is of the form: |
|
| 332 |
|
|
| 228 |
Since the cut is anchored, we can also assume that the cut formula is principal on the other side, i.e.\ $\pi$ is of the form: |
|
| 333 | 229 |
% \anupam{need to check this assumption against free-cut elimination conditions. To discuss.}
|
| 334 |
|
|
| 335 | 230 |
\[ |
| 336 | 231 |
\vlderivation{
|
| 337 | 232 |
\vliin{\cut}{}{!\Gamma , \Sigma \seqar \Delta }{
|
Formats disponibles : Unified diff