Révision 109
| CSL16/preliminaries.tex (revision 109) | ||
|---|---|---|
| 40 | 40 |
|
| 41 | 41 |
We define the following calculus: |
| 42 | 42 |
\[ |
| 43 |
\small |
|
| 43 | 44 |
\begin{array}{l}
|
| 44 | 45 |
\begin{array}{cccc}
|
| 45 | 46 |
\vlinf{\lefrul{\bot}}{}{p, \lnot{p} \seqar }{}
|
| CSL16/bc-convergence.tex (revision 109) | ||
|---|---|---|
| 28 | 28 |
|
| 29 | 29 |
\begin{proof}[Proof sketch]
|
| 30 | 30 |
% We write function symbols in $\arith$ with arguments delimited by $;$, as for BC-programs. |
| 31 |
We appeal to Lemma~\ref{lemma:spec-norm-form} and show that $\closure{\eqspec} \cup I\sigzer$ proves,
|
|
| 32 |
\begin{equation}
|
|
| 33 |
\label{eqn:prv-cvg-ih}
|
|
| 34 |
\forall \vec{u}^{!\word} . \forall \vec{x}^\word . \word(f(\vec u ; \vec x))
|
|
| 35 |
\end{equation}
|
|
| 31 |
We appeal to Lemma~\ref{lemma:spec-norm-form} and show that $\closure{\eqspec} \cup I\sigzer$ proves $\forall \vec{u}^{!\word} . \forall \vec{x}^\word . \word(f(\vec u ; \vec x))$.
|
|
| 32 |
% \begin{equation}
|
|
| 33 |
% \label{eqn:prv-cvg-ih}
|
|
| 34 |
%\forall \vec{u}^{!\word} . \forall \vec{x}^\word . \word(f(\vec u ; \vec x))
|
|
| 35 |
% \end{equation}
|
|
| 36 | 36 |
We proceed by induction on the structure of a BC program for $f$, and sketch only the key cases here. |
| 37 | 37 |
% We give some key cases in what follows. |
| 38 | 38 |
|
| 39 |
Suppose $f$ is defined by PRN as: |
|
| 40 |
\[ |
|
| 41 |
\begin{array}{rcl}
|
|
| 42 |
f(\epsilon,\vec v ; \vec x) & = & g(\vec v ; \vec x) \\ |
|
| 43 |
f(\succ_i u , \vec v; \vec x) & = & h_i (u, \vec v ; \vec x , f(u , \vec v ; \vec x)) |
|
| 44 |
\end{array}
|
|
| 45 |
\] |
|
| 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$,
|
|
| 39 |
Suppose $f(u, \vec v ; \vec x)$ is defined by PRN from functions $g(\vec v ; \vec x), h_i ( u , \vec v ; \vec x , y )$. |
|
| 40 |
% \[ |
|
| 41 |
% \begin{array}{rcl}
|
|
| 42 |
% f(\epsilon,\vec v ; \vec x) & = & g(\vec v ; \vec x) \\ |
|
| 43 |
% f(\succ_i u , \vec v; \vec x) & = & h_i (u, \vec v ; \vec x , f(u , \vec v ; \vec x)) |
|
| 44 |
% \end{array}
|
|
| 45 |
% \] |
|
| 46 |
% By the inductive hypothesis we have \eqref{eqn:prv-cvg-ih} for $g,h_0,h_1$ in place of $f$.
|
|
| 47 |
From the inductive hypothesis for $g$, we construct the following proof, |
|
| 47 | 48 |
\begin{equation}
|
| 48 | 49 |
\label{eqn:prn-cvg-base}
|
| 49 | 50 |
\small |
| 50 | 51 |
\vlderivation{
|
| 51 | 52 |
\vliq{\beta}{}{!\word(\vec v) , \word (\vec x) \seqar \word(f (\epsilon , \vec v ; \vec x)) }{
|
| 52 | 53 |
\vliq{\alpha}{}{!\word (\vec v) , \word (\vec x) \seqar \word (g (\vec v ; \vec x) ) }{
|
| 53 |
\vltr{\IH}{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x)) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 54 |
% \vltr{\IH}{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x)) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 55 |
% \vliq{}{}{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x))}{\vlhy{}}
|
|
| 56 |
\vlhy{\seqar \forall \vec v^{!\word} . \forall \vec x^\word . \word (g (\vec v ; \vec x))}
|
|
| 54 | 57 |
} |
| 55 | 58 |
} |
| 56 | 59 |
} |
| 57 | 60 |
\end{equation}
|
| 58 |
where $\alpha $ and $\beta$ are purely logical derivations using cuts.
|
|
| 61 |
where $\alpha $ is purely logical and $\beta$ is obtained from $\closure{\eqspec}$ and equality.
|
|
| 59 | 62 |
% We first prove, |
| 60 | 63 |
% \begin{equation}
|
| 61 | 64 |
% !\word (a) , !\word (\vec v) , \word (\vec x) \land \word (f( a , \vec v ; \vec x ) ) |
| ... | ... | |
| 63 | 66 |
% \word (\vec x) \land \word (f( \succ_i a , \vec v ; \vec x ) ) |
| 64 | 67 |
% \end{equation}
|
| 65 | 68 |
% for $i=0,1$, whence we will apply $\ind$. We construct the following proofs: |
| 66 |
We also construct the proofs $\pi_i$, for $i=0,1$,
|
|
| 69 |
We also construct the proofs, |
|
| 67 | 70 |
\begin{equation}
|
| 68 | 71 |
\label{eqn:prn-cvg-ind}
|
| 69 | 72 |
%\vlderivation{
|
| ... | ... | |
| 90 | 93 |
}{
|
| 91 | 94 |
\vliq{\beta}{}{ !\word (u) , !\word(\vec v) , \word (\vec x) , \word (f ( u , \vec v ; \vec x ) ) \seqar \word (f (\succ_i u , \vec{v} ; \vec x ) ) }{
|
| 92 | 95 |
\vliq{\alpha}{}{ !\word (u) , !\word (\vec v) , \word (\vec x) , \word (f ( u , \vec v ; \vec x ) ) \seqar \word ( h_i ( u , \vec v ; \vec x , f( u , \vec v ; \vec x ) ) ) }{
|
| 93 |
\vltr{\IH}{ \seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word , y^\word . \word ( h_i ( u, \vec v ; \vec x, y ) ) }{ \vlhy{\quad} }{\vlhy{}}{\vlhy{\quad}}
|
|
| 96 |
% \vltr{\IH}{ \seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word , y^\word . \word ( h_i ( u, \vec v ; \vec x, y ) ) }{ \vlhy{\quad} }{\vlhy{}}{\vlhy{\quad}}
|
|
| 97 |
%\vliq{}{}{ \seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word , y^\word . \word ( h_i ( u, \vec v ; \vec x, y ) ) }{\vlhy{}}
|
|
| 98 |
\vlhy{\seqar \forall u^{!\word} , \vec v^{!\word} . \forall \vec x^\word , y^\word . \word ( h_i ( u, \vec v ; \vec x, y ) )}
|
|
| 94 | 99 |
} |
| 95 | 100 |
} |
| 96 | 101 |
} |
| ... | ... | |
| 98 | 103 |
} |
| 99 | 104 |
} |
| 100 | 105 |
\end{equation}
|
| 101 |
where $\alpha$ and $\beta$ are, again, purely logical.
|
|
| 106 |
from the inductive hypotheses for $h_i$, where $\alpha$ and $\beta$ are similar to before.
|
|
| 102 | 107 |
%% so let us suppose that $\word(\vec v)$ and prove, |
| 103 | 108 |
% \begin{equation}
|
| 104 | 109 |
%% \forall u^{!\word} . (\word(\vec x) \limp \word(f(u , \vec v ; \vec x) )
|
| ... | ... | |
| 125 | 130 |
\vliq{\lefrul{\cntr}}{}{ !\word (u), !\word (\vec v) , \word (\vec x) \seqar \word ( f(u , \vec v ;\vec x) ) }
|
| 126 | 131 |
{
|
| 127 | 132 |
\vliin{\cut}{}{ !\word (u), !\word(\vec v), !\word (\vec v) , \word (\vec x) , \word (\vec x) \seqar \word ( f(u , \vec v ;\vec x) ) }{
|
| 128 |
\vltr{\pi_\epsilon}{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 133 |
%\vltr{\pi_\epsilon}{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 134 |
\vlhy{ !\word (\vec v) , \word (\vec x) \seqar \word ( f( \epsilon , \vec v ; \vec x ) ) }
|
|
| 129 | 135 |
} |
| 130 | 136 |
{
|
| 131 | 137 |
\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 ) ) }{
|
| ... | ... | |
| 134 | 140 |
{
|
| 135 | 141 |
\vlhy{
|
| 136 | 142 |
\left\{
|
| 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}{}{}
|
|
| 143 |
%\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}{}{}
|
|
| 144 |
!\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 ) ) |
|
| 138 | 145 |
\right\}_i |
| 139 | 146 |
} |
| 140 | 147 |
} |
| ... | ... | |
| 185 | 192 |
%%\] |
| 186 | 193 |
%%TOFINISH |
| 187 | 194 |
|
| 188 |
Safe compositions are essentially handled by many cut steps, using $\alpha$ and $\beta$ like derivations again and, crucially, left-contractions on both $!\word$ and $\word $ formulae. |
|
| 195 |
Safe compositions are essentially handled by many cut steps, using $\alpha$ and $\beta$ like derivations again and, crucially, left-contractions on both $!\word$ and $\word $ formulae.\footnote{In the latter case, strictly speaking, we mean cuts against $\wordcntr$.} The initial functions are routine.
|
|
| 189 | 196 |
|
| 190 | 197 |
|
| 191 |
We also give the case of the conditional initial function, to exemplify the use of additives. The conditional is defined equationally as: |
|
| 192 |
\[ |
|
| 193 |
\begin{array}{rcl}
|
|
| 194 |
C (; \epsilon, y_\epsilon , y_0, y_1 ) & = & y_\epsilon \\ |
|
| 195 |
C(; \succ_0 x , y_\epsilon , y_0, y_1) & = & y_0 \\ |
|
| 196 |
C(; \succ_1 x , y_\epsilon , y_0, y_1) & = & y_1 |
|
| 197 |
\end{array}
|
|
| 198 |
\] |
|
| 199 |
Let $\vec y = ( y_\epsilon , y_0, y_1 )$ and construct the required proof as follows: |
|
| 200 |
\[ |
|
| 201 |
\small |
|
| 202 |
\vlderivation{
|
|
| 203 |
\vliq{}{}{ \word (x) , \word (\vec y) \seqar \word ( C(; x ,\vec y) )}{
|
|
| 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) ) }{
|
|
| 205 |
\vliq{}{}{ x = \epsilon , \word (\vec y) \seqar \word ( C(; x , \vec y) ) }{
|
|
| 206 |
\vliq{}{}{ \word (\vec y) \seqar \word ( C( ; \epsilon , \vec y ) ) }{
|
|
| 207 |
\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_\epsilon) }{
|
|
| 208 |
\vlin{\id}{}{\word (y_\epsilon) \seqar \word ( y_\epsilon )}{\vlhy{}}
|
|
| 209 |
} |
|
| 210 |
} |
|
| 211 |
} |
|
| 212 |
}{
|
|
| 213 |
\vlhy{
|
|
| 214 |
\left\{
|
|
| 215 |
\vlderivation{
|
|
| 216 |
\vlin{\lefrul{\exists}}{}{ \exists z^\word . x = \succ_i z , \word (\vec y) \seqar \word ( C(;x , \vec y) ) }{
|
|
| 217 |
\vliq{}{}{ x = \succ_i a , \word (\vec y ) \seqar \word (C(; x ,\vec y)) }{
|
|
| 218 |
\vliq{}{}{ \word (\vec y) \seqar \word ( C(; \succ_i a , \vec y ) ) }{
|
|
| 219 |
\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_i) }{
|
|
| 220 |
\vlin{\id}{}{\word (y_i) \seqar \word (y_i)}{\vlhy{}}
|
|
| 221 |
} |
|
| 222 |
} |
|
| 223 |
} |
|
| 224 |
} |
|
| 225 |
} |
|
| 226 |
\right\}_{i = 0,1}
|
|
| 227 |
} |
|
| 228 |
} |
|
| 229 |
} |
|
| 230 |
} |
|
| 231 |
\] |
|
| 232 |
whence the result follows by $\forall$-introduction. |
|
| 233 |
%The other initial functions are routine. |
|
| 198 |
%We also give the case of the conditional initial function $C (; x, y_\epsilon , y_0, y_1)$, to exemplify the use of additives. |
|
| 199 |
%%The conditional is defined equationally as: |
|
| 200 |
%%\[ |
|
| 201 |
%%\begin{array}{rcl}
|
|
| 202 |
%%C (; \epsilon, y_\epsilon , y_0, y_1 ) & = & y_\epsilon \\ |
|
| 203 |
%%C(; \succ_0 x , y_\epsilon , y_0, y_1) & = & y_0 \\ |
|
| 204 |
%%C(; \succ_1 x , y_\epsilon , y_0, y_1) & = & y_1 |
|
| 205 |
%%\end{array}
|
|
| 206 |
%%\] |
|
| 207 |
%Let $\vec y = ( y_\epsilon , y_0, y_1 )$ and construct the required proof as follows: |
|
| 208 |
%\[ |
|
| 209 |
%\small |
|
| 210 |
%\vlderivation{
|
|
| 211 |
%\vliq{}{}{ \word (x) , \word (\vec y) \seqar \word ( C(; x ,\vec y) )}{
|
|
| 212 |
%\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) ) }{
|
|
| 213 |
%\vliq{}{}{ x = \epsilon , \word (\vec y) \seqar \word ( C(; x , \vec y) ) }{
|
|
| 214 |
%\vliq{}{}{ \word (\vec y) \seqar \word ( C( ; \epsilon , \vec y ) ) }{
|
|
| 215 |
%\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_\epsilon) }{
|
|
| 216 |
%\vlin{\id}{}{\word (y_\epsilon) \seqar \word ( y_\epsilon )}{\vlhy{}}
|
|
| 217 |
%} |
|
| 218 |
%} |
|
| 219 |
%} |
|
| 220 |
%}{
|
|
| 221 |
%\vlhy{
|
|
| 222 |
%\left\{
|
|
| 223 |
%\vlderivation{
|
|
| 224 |
%\vlin{\lefrul{\exists}}{}{ \exists z^\word . x = \succ_i z , \word (\vec y) \seqar \word ( C(;x , \vec y) ) }{
|
|
| 225 |
%\vliq{}{}{ x = \succ_i a , \word (\vec y ) \seqar \word (C(; x ,\vec y)) }{
|
|
| 226 |
%\vliq{}{}{ \word (\vec y) \seqar \word ( C(; \succ_i a , \vec y ) ) }{
|
|
| 227 |
%\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_i) }{
|
|
| 228 |
%\vlin{\id}{}{\word (y_i) \seqar \word (y_i)}{\vlhy{}}
|
|
| 229 |
%} |
|
| 230 |
%} |
|
| 231 |
%} |
|
| 232 |
%} |
|
| 233 |
%} |
|
| 234 |
%\right\}_{i = 0,1}
|
|
| 235 |
%} |
|
| 236 |
%} |
|
| 237 |
%} |
|
| 238 |
%} |
|
| 239 |
%\] |
|
| 240 |
%whence the result follows by $\forall$-introduction. |
|
| 241 |
%%The other initial functions are routine. |
|
| 234 | 242 |
\end{proof}
|
| 235 | 243 |
|
| 236 | 244 |
|
| CSL16/bc.tex (revision 109) | ||
|---|---|---|
| 20 | 20 |
\end{cases}$.
|
| 21 | 21 |
\item The conditional function |
| 22 | 22 |
\[ |
| 23 |
\begin{array}{rcl}
|
|
| 24 |
C (; \epsilon, y_\epsilon , y_0, y_1 ) & = & y_\epsilon \\ |
|
| 25 |
C(; x0 , y_\epsilon , y_0, y_1) & = & y_0 \\ |
|
| 26 |
C(; x1 , y_\epsilon , y_0, y_1) & = & y_1 |
|
| 27 |
\end{array}
|
|
| 23 |
%\begin{array}{rcl}
|
|
| 24 |
%C (; \epsilon, y_\epsilon , y_0, y_1 ) & = & y_\epsilon \\ |
|
| 25 |
%C(; x0 , y_\epsilon , y_0, y_1) & = & y_0 \\ |
|
| 26 |
%C(; x1 , y_\epsilon , y_0, y_1) & = & y_1 |
|
| 27 |
%\end{array}
|
|
| 28 |
C (; \epsilon, y_\epsilon , y_0, y_1 ) := y_\epsilon |
|
| 29 |
\quad |
|
| 30 |
C(; x0 , y_\epsilon , y_0, y_1) := y_0 |
|
| 31 |
\quad |
|
| 32 |
C(; x1 , y_\epsilon , y_0, y_1) := y_1 |
|
| 28 | 33 |
\] |
| 29 | 34 |
% $\cond (;x,y,z) := \begin{cases}
|
| 30 | 35 |
% y & \mbox{ if } x=x' 0 \\
|
| ... | ... | |
| 82 | 87 |
\item The identity function is in BC. |
| 83 | 88 |
\item Let $t$ be a well-formed expression built from BC programs and variables, denote its free variables as $\{u_1,\dots, u_n,x_1,\dots, x_k\}$, and assume for for each $1\leq i\leq k$, $x_i$ is hereditarily safe in $t$. Then the function $f$ defined
|
| 84 | 89 |
by $f(u_1,\dots, u_n,x_1,\dots, x_k):=t$ is a BC program. |
| 85 |
\item Assume $f$ is a BC program, then the program $g$ defined as |
|
| 86 |
$$ g(\vec{u},v;\vec{x}):=f(\vec{u};v,\vec{x})$$
|
|
| 90 |
\item If $f$ is a BC program, then the program $g(\vec{u},v;\vec{x})$ defined as $f(\vec{u};v,\vec{x})$
|
|
| 87 | 91 |
is also a BC program. |
| 88 | 92 |
\end{enumerate}
|
| 89 | 93 |
|
| CSL16/appendix-bc-convergence.tex (revision 109) | ||
|---|---|---|
| 79 | 79 |
} |
| 80 | 80 |
\] |
| 81 | 81 |
where $\alpha$ and $\beta$ are similar to before. |
| 82 |
|
|
| 82 |
|
|
| 83 |
|
|
| 84 |
We also give the case of the conditional initial function $C (; x, y_\epsilon , y_0, y_1)$, to exemplify the use of additives. |
|
| 85 |
%The conditional is defined equationally as: |
|
| 86 |
%\[ |
|
| 87 |
%\begin{array}{rcl}
|
|
| 88 |
%C (; \epsilon, y_\epsilon , y_0, y_1 ) & = & y_\epsilon \\ |
|
| 89 |
%C(; \succ_0 x , y_\epsilon , y_0, y_1) & = & y_0 \\ |
|
| 90 |
%C(; \succ_1 x , y_\epsilon , y_0, y_1) & = & y_1 |
|
| 91 |
%\end{array}
|
|
| 92 |
%\] |
|
| 93 |
Let $\vec y = ( y_\epsilon , y_0, y_1 )$ and construct the required proof as follows: |
|
| 94 |
\[ |
|
| 95 |
\small |
|
| 96 |
\vlderivation{
|
|
| 97 |
\vliq{}{}{ \word (x) , \word (\vec y) \seqar \word ( C(; x ,\vec y) )}{
|
|
| 98 |
\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) ) }{
|
|
| 99 |
\vliq{}{}{ x = \epsilon , \word (\vec y) \seqar \word ( C(; x , \vec y) ) }{
|
|
| 100 |
\vliq{}{}{ \word (\vec y) \seqar \word ( C( ; \epsilon , \vec y ) ) }{
|
|
| 101 |
\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_\epsilon) }{
|
|
| 102 |
\vlin{\id}{}{\word (y_\epsilon) \seqar \word ( y_\epsilon )}{\vlhy{}}
|
|
| 103 |
} |
|
| 104 |
} |
|
| 105 |
} |
|
| 106 |
}{
|
|
| 107 |
\vlhy{
|
|
| 108 |
\left\{
|
|
| 109 |
\vlderivation{
|
|
| 110 |
\vlin{\lefrul{\exists}}{}{ \exists z^\word . x = \succ_i z , \word (\vec y) \seqar \word ( C(;x , \vec y) ) }{
|
|
| 111 |
\vliq{}{}{ x = \succ_i a , \word (\vec y ) \seqar \word (C(; x ,\vec y)) }{
|
|
| 112 |
\vliq{}{}{ \word (\vec y) \seqar \word ( C(; \succ_i a , \vec y ) ) }{
|
|
| 113 |
\vlin{\wk}{}{ \word (\vec y) \seqar \word (y_i) }{
|
|
| 114 |
\vlin{\id}{}{\word (y_i) \seqar \word (y_i)}{\vlhy{}}
|
|
| 115 |
} |
|
| 116 |
} |
|
| 117 |
} |
|
| 118 |
} |
|
| 119 |
} |
|
| 120 |
\right\}_{i = 0,1}
|
|
| 121 |
} |
|
| 122 |
} |
|
| 123 |
} |
|
| 124 |
} |
|
| 125 |
\] |
|
| 126 |
whence the result follows by $\forall$-introduction. |
|
| 127 |
%The other initial functions are routine. |
|
| CSL16/wfm.tex (revision 109) | ||
|---|---|---|
| 41 | 41 |
[Typing] |
| 42 | 42 |
To each $(\forall, ?)$-free $\word^+$-formula $A$ we associate a sorted tuple of variables $\type (A)$, intended to range over $\Word$, as follows: |
| 43 | 43 |
\[ |
| 44 |
% \begin{array}{rcll}
|
|
| 45 |
% \type (\word (t)) & := & (;x^{\word (t)} ) & \\
|
|
| 46 |
% \type(s = t) & := & ( ; x^{s = t}) & \\
|
|
| 47 |
% \type (s \neq t) & := & ( ;x^{s\neq t} )\\
|
|
| 48 |
%% \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)$.} \\
|
|
| 49 |
% \type (A \star B) & : = & (\vec u , \vec v ; \vec x , \vec y) & \text{if $\type(A) = (\vec u ; \vec x)$, $\type(B) = (\vec v ; \vec y)$ and $\star \in \{ \lor, \land, \laor, \laand \}$.} \\
|
|
| 50 |
% \type (! A) & : = & ( \vec u ,\vec x ; ) & \text{if $\type(A) = (\vec u ; \vec x )$.} \\
|
|
| 51 |
% \type (\exists x^\word . A) & := & (\vec u ; \vec x , y) & \text{if $\type (A) = (\vec u ; \vec x)$.}
|
|
| 52 |
% % \type (\forall x^N . A) & := & \Nat \to \type(A) |
|
| 53 |
% \end{array}
|
|
| 54 |
% |
|
| 44 | 55 |
\begin{array}{rcll}
|
| 45 | 56 |
\type (\word (t)) & := & (;x^{\word (t)} ) & \\
|
| 46 |
\type(s = t) & := & ( ; x^{s = t}) & \\
|
|
| 47 |
\type (s \neq t) & := & ( ;x^{s\neq t} )\\
|
|
| 48 |
% \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)$.} \\
|
|
| 49 |
\type (A \star B) & : = & (\vec u , \vec v ; \vec x , \vec y) & \text{if $\type(A) = (\vec u ; \vec x)$, $\type(B) = (\vec v ; \vec y)$ and $\star \in \{ \lor, \land, \laor, \laand \}$.} \\
|
|
| 50 |
\type (! A) & : = & ( \vec u ,\vec x ; ) & \text{if $\type(A) = (\vec u ; \vec x )$.} \\
|
|
| 51 |
\type (\exists x^\word . A) & := & (\vec u ; \vec x , y) & \text{if $\type (A) = (\vec u ; \vec x)$.}
|
|
| 52 |
% \type (\forall x^N . A) & := & \Nat \to \type(A) |
|
| 57 |
\type(s = t) & := & ( ; x^{s = t}) &
|
|
| 58 |
% \\ |
|
| 59 |
% \type (s \neq t) & := & ( ;x^{s\neq t} )\\
|
|
| 60 |
%% \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)$.} \\
|
|
| 61 |
% \type (A \star B) & : = & (\vec u , \vec v ; \vec x , \vec y) & \text{if $\type(A) = (\vec u ; \vec x)$, $\type(B) = (\vec v ; \vec y)$ and $\star \in \{ \lor, \land, \laor, \laand \}$.} \\
|
|
| 62 |
% \type (! A) & : = & ( \vec u ,\vec x ; ) & \text{if $\type(A) = (\vec u ; \vec x )$.} \\
|
|
| 63 |
% \type (\exists x^\word . A) & := & (\vec u ; \vec x , y) & \text{if $\type (A) = (\vec u ; \vec x)$.}
|
|
| 64 |
% % \type (\forall x^N . A) & := & \Nat \to \type(A) |
|
| 53 | 65 |
\end{array}
|
| 66 |
\quad |
|
| 67 |
\begin{array}{rcll}
|
|
| 68 |
% \type (\word (t)) & := & (;x^{\word (t)} ) & \\
|
|
| 69 |
% \type(s = t) & := & ( ; x^{s = t}) & \\
|
|
| 70 |
\type (s \neq t) & := & ( ;x^{s\neq t} )\\
|
|
| 71 |
% \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)$.} \\
|
|
| 72 |
% \type (A \star B) & : = & (\vec u , \vec v ; \vec x , \vec y) & \text{if $\type(A) = (\vec u ; \vec x)$, $\type(B) = (\vec v ; \vec y)$ and $\star \in \{ \lor, \land, \laor, \laand \}$.} \\
|
|
| 73 |
\type (! A) & : = & ( \vec u ,\vec x ; ) & |
|
| 74 |
% \text{if $\type(A) = (\vec u ; \vec x )$.} \\
|
|
| 75 |
% \type (\exists x^\word . A) & := & (\vec u ; \vec x , y) & \text{if $\type (A) = (\vec u ; \vec x)$.}
|
|
| 76 |
% % \type (\forall x^N . A) & := & \Nat \to \type(A) |
|
| 77 |
\end{array}
|
|
| 78 |
\quad |
|
| 79 |
\begin{array}{rcll}
|
|
| 80 |
% \type (\word (t)) & := & (;x^{\word (t)} ) & \\
|
|
| 81 |
% \type(s = t) & := & ( ; x^{s = t}) & \\
|
|
| 82 |
% \type (s \neq t) & := & ( ;x^{s\neq t} )\\
|
|
| 83 |
% % \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)$.} \\
|
|
| 84 |
\type (A \star B) & : = & (\vec u , \vec v ; \vec x , \vec y) & |
|
| 85 |
% \text{if $\type(A) = (\vec u ; \vec x)$, $\type(B) = (\vec v ; \vec y)$ and $\star \in \{ \lor, \land, \laor, \laand \}$.}
|
|
| 86 |
\\ |
|
| 87 |
% \type (! A) & : = & ( \vec u ,\vec x ; ) & \text{if $\type(A) = (\vec u ; \vec x )$.} \\
|
|
| 88 |
\type (\exists x^\word . A) & := & (\vec u ; \vec x , y) & |
|
| 89 |
% \text{if $\type (A) = (\vec u ; \vec x)$.}
|
|
| 90 |
% \type (\forall x^N . A) & := & \Nat \to \type(A) |
|
| 91 |
\end{array}
|
|
| 54 | 92 |
\] |
| 55 |
For a sorted tuple $(u_1 , \dots u_m ; x_1 , \dots ,x_n )$ we write $|(\vec u ; \vec x)|$ to denote its length, i.e.\ $m+n$.
|
|
| 93 |
where $\type(A) = (\vec u ; \vec x)$ and $\star \in \{ \lor , \land, \laor, \laand \}$.
|
|
| 56 | 94 |
% where $\nu$ designates that the inputs are normal. |
| 57 | 95 |
\end{definition}
|
| 58 | 96 |
|
| ... | ... | |
| 66 | 104 |
% On the other hand, since we are working in affine logic, we do in general have $!(A \land B) \cong !A \land !B$. |
| 67 | 105 |
% \end{remark}
|
| 68 | 106 |
|
| 69 |
This sorted tuple corresponds to the input variables, normal and safe respectively, for the BC programs that we will define. |
|
| 107 |
For a sorted tuple $(u_1 , \dots u_m ; x_1 , \dots ,x_n )$ we write $|(\vec u ; \vec x)|$ to denote its length, i.e.\ $m+n$. This sorted tuple corresponds to the input variables, normal and safe respectively, for the BC programs that we will define.
|
|
| 70 | 108 |
% \footnote{It becomes important here that we are considering proofs of a convergence statement, since a free-cut free $\arith$-proof of a convergence statement cannot contain any $\lor$ symbols in the scope of a $!$. This could cause an issue in the above definition since we do not in general have the equivalence $!(A \lor B) \equiv !A \lor !B$. On the other hand, the equivalence $!(A\land B) \equiv !A \land !B$ follows since we are in the affine setting.}
|
| 71 | 109 |
|
| 72 | 110 |
|
| ... | ... | |
| 117 | 155 |
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 | 156 |
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.
|
| 119 | 157 |
|
| 120 |
Suppose $\pi$ ends with a $\rigrul{\exists}$ step,
|
|
| 158 |
Suppose $\pi$ consists of a subproof $\pi'$ followed by a $\rigrul{\exists}$ step,
|
|
| 121 | 159 |
\[ |
| 122 | 160 |
\vlderivation{
|
| 123 | 161 |
\vlin{\rigrul{\exists}}{}{ \Gamma, \word(t) \seqar \Delta , \exists x^\word . A(x) }{
|
| 124 |
\vltr{\pi'}{ \Gamma \seqar \Delta , A(t) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 162 |
% \vltr{\pi'}{ \Gamma \seqar \Delta , A(t) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 163 |
\vlhy{ \Gamma \seqar \Delta , A(t) }
|
|
| 125 | 164 |
} |
| 126 | 165 |
} |
| 127 | 166 |
\] |
| 128 |
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:
|
|
| 129 |
\[ |
|
| 167 |
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
|
|
| 168 |
% $\vec f^\pi$ as follows: |
|
| 169 |
% \[ |
|
| 170 |
$ |
|
| 130 | 171 |
\vec f^\pi (\vec u ; \vec x , y) |
| 131 |
\quad := \quad |
|
| 172 |
% \quad := \quad |
|
| 173 |
$ as $ |
|
| 132 | 174 |
\left( |
| 133 | 175 |
\vec f^\Delta (\vec u ; \vec x) , |
| 134 | 176 |
{\id (;y)},
|
| 135 | 177 |
\vec f^{A(t)} (\vec u; \vec x)
|
| 136 | 178 |
\right) |
| 137 |
\] |
|
| 179 |
$. |
|
| 180 |
%\] |
|
| 138 | 181 |
% (The identity function on $y$ is defined from successor, predecessor and safe composition). |
| 139 | 182 |
|
| 140 | 183 |
|
| ... | ... | |
| 217 | 260 |
\vlderivation{
|
| 218 | 261 |
\vliin{\cut}{}{!\Gamma , \Sigma \seqar \Delta }{
|
| 219 | 262 |
\vlin{\rigrul{!}}{}{!\Gamma \seqar !\word(t)}{
|
| 220 |
\vltr{\pi_1'}{!\Gamma \seqar \word(t)}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 263 |
% \vltr{\pi_1'}{!\Gamma \seqar \word(t)}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 264 |
\vlhy{!\Gamma \seqar \word(t)}
|
|
| 221 | 265 |
} |
| 222 | 266 |
}{
|
| 223 |
\vltr{\pi_2}{ !\word(t), \Sigma\seqar \Delta}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 267 |
% \vltr{\pi_2}{ !\word(t), \Sigma\seqar \Delta}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
|
|
| 268 |
\vlhy{ !\word(t), \Sigma\seqar \Delta}
|
|
| 224 | 269 |
} |
| 225 | 270 |
} |
| 226 | 271 |
\] |
| 227 | 272 |
where |
| 228 | 273 |
% $\pi_2$ ends with a $\ind$ step for which $A(x)$ is the induction formula, and |
| 229 |
we assume there are no side-formulae on the right of the end-sequent of $\pi_1$ for the same reason as $\rigrul{\cntr}$: $\pi$ does not contain any occurrences of $?$. By the inductive hypothesis we have functions $ g( \vec u ; )$ and $\vec h ( v , \vec w ; \vec x)$ from $\pi_1'$ and $\pi_2$ respectively, where $\vec u$, $ v$ and $(\vec w ; \vec x)$ correspond to $!\Gamma$, $!\word(t)$ and $\Sigma$ respectively. We construct the functions $\vec f^\pi $ as follows:
|
|
| 274 |
we assume there are no side-formulae on the right of the end-sequent of the left subproof for the same reason as $\rigrul{\cntr}$: $\pi$ does not contain any occurrences of $?$. By the inductive hypothesis we have functions $ g( \vec u ; )$ and $\vec h ( v , \vec w ; \vec x)$ where $\vec u$, $ v$ and $(\vec w ; \vec x)$ correspond to $!\Gamma$, $!\word(t)$ and $\Sigma$ respectively. We construct the functions $\vec f^\pi $ as follows:
|
|
| 230 | 275 |
\[ |
| 231 | 276 |
\vec f^\pi (\vec u , \vec w ; \vec x) |
| 232 | 277 |
\quad := \quad |
| ... | ... | |
| 267 | 312 |
\[ |
| 268 | 313 |
\vlderivation{
|
| 269 | 314 |
\vliin{\ind}{}{ !\word (t), !\Gamma , A(\epsilon) \seqar A(t) }{
|
| 270 |
\vltr{\pi_0}{!\word(a) , !\Gamma , A(a) \seqar A(\succ_0 a)}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 315 |
% \vltr{\pi_0}{!\word(a) , !\Gamma , A(a) \seqar A(\succ_0 a)}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 316 |
\vlhy{!\word(a) , !\Gamma , A(a) \seqar A(\succ_0 a)}
|
|
| 271 | 317 |
}{
|
| 272 |
\vltr{\pi_1}{!\word(a), !\Gamma , A(a)\seqar A(\succ_1 a) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 318 |
% \vltr{\pi_1}{!\word(a), !\Gamma , A(a)\seqar A(\succ_1 a) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 319 |
\vlhy{!\word(a), !\Gamma , A(a)\seqar A(\succ_1 a)}
|
|
| 273 | 320 |
} |
| 274 | 321 |
} |
| 275 | 322 |
\] |
| ... | ... | |
| 277 | 324 |
|
| 278 | 325 |
By the inductive hypothesis we have functions $\vec g^0 (u , \vec v ; \vec x)$ and $\vec g^1 (u , \vec v ; \vec x)$ with $u$, $\vec v$ and $\vec x$ corresponding to $!\word(a)$, $!\Gamma$ and $A(a)$ respectively. We define $\vec f^\pi$ by simultaneous predicative recursion on notation as follows: |
| 279 | 326 |
\[ |
| 280 |
\begin{array}{rcll}
|
|
| 281 |
\vec f^\pi ( \epsilon, \vec v ; \vec x ) & := & \vec x & \\ |
|
| 282 |
\vec f^\pi ( \succ_i u , \vec v ; \vec x) & := & \vec g^i ( u, \vec v ; \vec f^\pi ( u, \vec v ; \vec x ) ) |
|
| 283 |
\end{array}
|
|
| 327 |
%\begin{array}{rcll}
|
|
| 328 |
%\vec f^\pi ( \epsilon, \vec v ; \vec x ) & := & \vec x & \\ |
|
| 329 |
%\vec f^\pi ( \succ_i u , \vec v ; \vec x) & := & \vec g^i ( u, \vec v ; \vec f^\pi ( u, \vec v ; \vec x ) ) |
|
| 330 |
%\end{array}
|
|
| 331 |
\vec f^\pi ( \epsilon, \vec v ; \vec x ) := \vec x \qquad |
|
| 332 |
\vec f^\pi ( \succ_i u , \vec v ; \vec x) := \vec g^i ( u, \vec v ; \vec f^\pi ( u, \vec v ; \vec x ) ) |
|
| 284 | 333 |
\] |
| 285 | 334 |
|
| 286 | 335 |
%\anupam{check this}
|
| ... | ... | |
| 313 | 362 |
|
| 314 | 363 |
% \todo{add cases for $\laor$ and $\neq$.}
|
| 315 | 364 |
|
| 316 |
\newcommand{\witness}[2]{\mathit{Witness}^{#1}_{#2}}
|
|
| 365 |
\newcommand{\witness}[2]{\mathit{Wit}^{#1}_{#2}}
|
|
| 317 | 366 |
\begin{definition}
|
| 318 | 367 |
[Witness predicate] |
| 319 | 368 |
For formulae $A, B$ satisfying properties \ref{item:no-neg-word}, \ref{item:no-forall}, \ref{item:no-quest} of Prop.~\ref{prop:freedom}, we define the following `witness' predicate as a quantifier-free formula of $\qfindth$:
|
| ... | ... | |
| 321 | 370 |
|
| 322 | 371 |
\renewcommand{\sigma}{a}
|
| 323 | 372 |
\[ |
| 324 |
\begin{array}{rcll}
|
|
| 325 |
\witness{}{A} (\sigma) & := & \sigma = t & \text{if $A$ is $\word (t)$.} \\
|
|
| 326 |
\witness{}{A} (\sigma) & := & s=t & \text{if $A$ is $s=t$.} \\
|
|
| 327 |
\witness{}{A} (\sigma) & := & s\neq t & \text{if $A$ is $s\neq t$.} \\
|
|
| 328 |
\witness{}{A \star B} ( \vec \sigma^A , \vec \sigma^B) & := & \witness{}{A} (\vec \sigma^A) \cor \witness{}{B} (\vec \sigma^B) &
|
|
| 329 |
\text{for $\star \in \{ \lor,\laor\}$.}
|
|
| 373 |
% \begin{array}{rcll}
|
|
| 374 |
% \witness{}{A} (\sigma) & := & \sigma = t & \text{if $A$ is $\word (t)$.} \\
|
|
| 375 |
% \witness{}{A} (\sigma) & := & s=t & \text{if $A$ is $s=t$.} \\
|
|
| 376 |
% \witness{}{A} (\sigma) & := & s\neq t & \text{if $A$ is $s\neq t$.} \\
|
|
| 377 |
% \witness{}{A \star B} ( \vec \sigma^A , \vec \sigma^B) & := & \witness{}{A} (\vec \sigma^A) \cor \witness{}{B} (\vec \sigma^B) &
|
|
| 378 |
% \text{for $\star \in \{ \lor,\laor\}$.}
|
|
| 379 |
% \\ |
|
| 380 |
% \witness{}{A \star B} ( \vec \sigma^A , \vec \sigma^B) & := & \witness{}{A} (\vec \sigma^A ) \cand \witness{}{B} (\vec \sigma^B ) &
|
|
| 381 |
% \text{for $\star \in \{ \land, \laand \}$.}
|
|
| 382 |
% \\ |
|
| 383 |
% \witness{}{\exists x^\word A} ( \sigma, \vec \sigma^A ) & := & \witness{}{A}(\vec \sigma^A , \sigma ) & \\
|
|
| 384 |
% \witness{}{!A} (\vec \sigma^A) & := & \witness{}{A} (\vec \sigma^A)
|
|
| 385 |
% \end{array}
|
|
| 386 |
\begin{array}{rcl}
|
|
| 387 |
\witness{}{\word (t)} (\sigma) & := & \sigma = t
|
|
| 388 |
% \text{if $A$ is $\word (t)$.}
|
|
| 330 | 389 |
\\ |
| 331 |
\witness{}{A \star B} ( \vec \sigma^A , \vec \sigma^B) & := & \witness{}{A} (\vec \sigma^A ) \cand \witness{}{B} (\vec \sigma^B ) &
|
|
| 332 |
\text{for $\star \in \{ \land, \laand \}$.}
|
|
| 390 |
\witness{}{s=t} (\sigma) & := & s=t
|
|
| 391 |
% \text{if $A$ is $s=t$.}
|
|
| 333 | 392 |
\\ |
| 334 |
\witness{}{\exists x^\word A} ( \sigma, \vec \sigma^A ) & := & \witness{}{A}(\vec \sigma^A , \sigma ) & \\
|
|
| 393 |
\witness{}{s \neq t} (\sigma) & := & s\neq t
|
|
| 394 |
% \text{if $A$ is $s\neq t$.}
|
|
| 395 |
\\ |
|
| 396 |
% \witness{}{A \star B} ( \vec \sigma^A , \vec \sigma^B) & := & \witness{}{A} (\vec \sigma^A) \cor \witness{}{B} (\vec \sigma^B) &
|
|
| 397 |
% \text{for $\star \in \{ \lor,\laor\}$.}
|
|
| 398 |
% \\ |
|
| 399 |
% \witness{}{A \star B} ( \vec \sigma^A , \vec \sigma^B) & := & \witness{}{A} (\vec \sigma^A ) \cand \witness{}{B} (\vec \sigma^B ) &
|
|
| 400 |
% \text{for $\star \in \{ \land, \laand \}$.}
|
|
| 401 |
% \\ |
|
| 402 |
% \witness{}{\exists x^\word A} ( \sigma, \vec \sigma^A ) & := & \witness{}{A}(\vec \sigma^A , \sigma ) & \\
|
|
| 335 | 403 |
\witness{}{!A} (\vec \sigma^A) & := & \witness{}{A} (\vec \sigma^A)
|
| 336 | 404 |
\end{array}
|
| 405 |
\quad |
|
| 406 |
\begin{array}{rcl}
|
|
| 407 |
% \witness{}{\word (t)} (\sigma) & := & \sigma = t & \text{if $A$ is $\word (t)$.} \\
|
|
| 408 |
% \witness{}{s=t} (\sigma) & := & s=t & \text{if $A$ is $s=t$.} \\
|
|
| 409 |
% \witness{}{s \neq t} (\sigma) & := & s\neq t &
|
|
| 410 |
% \text{if $A$ is $s\neq t$.}
|
|
| 411 |
% \\ |
|
| 412 |
\witness{}{A \bullet B} ( \vec \sigma^A , \vec \sigma^B) & := & \witness{}{A} (\vec \sigma^A) \cor \witness{}{B} (\vec \sigma^B)
|
|
| 413 |
% \text{for $\star \in \{ \lor,\laor\}$.}
|
|
| 414 |
\\ |
|
| 415 |
\witness{}{A \circ B} ( \vec \sigma^A , \vec \sigma^B) & := & \witness{}{A} (\vec \sigma^A ) \cand \witness{}{B} (\vec \sigma^B )
|
|
| 416 |
% \text{for $\star \in \{ \land, \laand \}$.}
|
|
| 417 |
\\ |
|
| 418 |
\witness{}{\exists x^\word A} ( \sigma, \vec \sigma^A ) & := & \witness{}{A}(\vec \sigma^A , \sigma )
|
|
| 419 |
% \\ |
|
| 420 |
% \witness{}{!A} (\vec \sigma^A) & := & \witness{}{A} (\vec \sigma^A)
|
|
| 421 |
\end{array}
|
|
| 422 |
% \begin{array}{rcl}
|
|
| 423 |
%% \witness{}{\word (t)} (\sigma) & := & \sigma = t & \text{if $A$ is $\word (t)$.} \\
|
|
| 424 |
%% \witness{}{s=t} (\sigma) & := & s=t & \text{if $A$ is $s=t$.} \\
|
|
| 425 |
%% \witness{}{s \neq t} (\sigma) & := & s\neq t & \text{if $A$ is $s\neq t$.} \\
|
|
| 426 |
%% \witness{}{A \star B} ( \vec \sigma^A , \vec \sigma^B) & := & \witness{}{A} (\vec \sigma^A) \cor \witness{}{B} (\vec \sigma^B) &
|
|
| 427 |
%% \text{for $\star \in \{ \lor,\laor\}$.}
|
|
| 428 |
%% \\ |
|
| 429 |
%% \witness{}{A \star B} ( \vec \sigma^A , \vec \sigma^B) & := & \witness{}{A} (\vec \sigma^A ) \cand \witness{}{B} (\vec \sigma^B ) &
|
|
| 430 |
%% \text{for $\star \in \{ \land, \laand \}$.}
|
|
| 431 |
%% \\ |
|
| 432 |
% \witness{}{\exists x^\word A} ( \sigma, \vec \sigma^A ) & := & \witness{}{A}(\vec \sigma^A , \sigma ) \\
|
|
| 433 |
% \witness{}{!A} (\vec \sigma^A) & := & \witness{}{A} (\vec \sigma^A)
|
|
| 434 |
% \end{array}
|
|
| 337 | 435 |
\] |
| 338 |
where $|\vec \sigma^A| = |\type (A)|$ and $|\vec \sigma^B| = |\type (B)| $. |
|
| 436 |
where $\bullet \in \{ \lor, \laor \}$, $\circ \in \{ \land,\laand \}$, $|\vec \sigma^A| = |\type (A)|$ and $|\vec \sigma^B| = |\type (B)| $.
|
|
| 339 | 437 |
\end{definition}
|
| 340 | 438 |
% \todo{problem: what about complexity of checking equality? }
|
| 341 | 439 |
|
| CSL16/arithmetic.tex (revision 109) | ||
|---|---|---|
| 54 | 54 |
[Basic axioms] |
| 55 | 55 |
The theory $\basic$ consists of the following axioms: |
| 56 | 56 |
\[ |
| 57 |
\small |
|
| 57 | 58 |
\begin{array}{rl}
|
| 58 | 59 |
%\wk & (A \land B )\limp A \\ |
| 59 |
\geneps & \word(\epsilon) \\ |
|
| 60 |
\genzer & \forall x^\word . \word(\succ_0 x) \\ |
|
| 61 |
\genone & \forall x^\word . \word(\succ_1 x) \\ |
|
| 60 |
%\geneps |
|
| 61 |
& \word(\epsilon) \\ |
|
| 62 |
%\genzer |
|
| 63 |
& \forall x^\word . \word(\succ_0 x) \\ |
|
| 64 |
%\genone |
|
| 65 |
& \forall x^\word . \word(\succ_1 x) \\ |
|
| 62 | 66 |
%\sepeps & \forall x^\word . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\ |
| 63 | 67 |
%\sepzer & \forall x^\word , y^\word. ( \succ_0 x = \succ_0 y \limp x=y ) \\ |
| 64 | 68 |
%\sepone & \forall x^\word , y^\word. ( \succ_1 x = \succ_1 y \limp x=y ) \\ |
| ... | ... | |
| 67 | 71 |
%\noalign{\smallskip}
|
| 68 | 72 |
%\wordcntr & \forall x^\word . (\word(x) \land \word(x)) |
| 69 | 73 |
\end{array}
|
| 70 |
\quad |
|
| 74 |
%\quad
|
|
| 71 | 75 |
\begin{array}{rl}
|
| 72 | 76 |
%\wk & (A \land B )\limp A \\ |
| 73 | 77 |
%\geneps & \word(\epsilon) \\ |
| 74 | 78 |
%\genzer & \forall x^\word . \word(\succ_0 x) \\ |
| 75 | 79 |
%\genone & \forall x^\word . \word(\succ_1 x) \\ |
| 76 |
\sepeps & \forall x^\word . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\ |
|
| 77 |
\sepzer & \forall x^\word , y^\word. ( \succ_0 x = \succ_0 y \limp x=y ) \\ |
|
| 78 |
\sepone & \forall x^\word , y^\word. ( \succ_1 x = \succ_1 y \limp x=y ) \\ |
|
| 80 |
%\sepeps |
|
| 81 |
& \forall x^\word . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\ |
|
| 82 |
%\sepzer |
|
| 83 |
& \forall x^\word , y^\word. ( \succ_0 x = \succ_0 y \limp x=y ) \\ |
|
| 84 |
%\sepone |
|
| 85 |
& \forall x^\word , y^\word. ( \succ_1 x = \succ_1 y \limp x=y ) \\ |
|
| 79 | 86 |
%\inj & \forall x^\word . \succ_0 x \neq \succ_1 x \\ |
| 80 | 87 |
%\surj & \forall x^\word . (x = \epsilon \laor \exists y^\word . x = \succ_0 y \laor \exists y^\word . x = \succ_1 y ) \\ |
| 81 | 88 |
%\noalign{\smallskip}
|
| 82 | 89 |
%\wordcntr & \forall x^\word . (\word(x) \land \word(x)) |
| 83 | 90 |
\end{array}
|
| 84 |
\quad |
|
| 91 |
%\quad
|
|
| 85 | 92 |
\begin{array}{rl}
|
| 86 | 93 |
%\wk & (A \land B )\limp A \\ |
| 87 | 94 |
%\geneps & \word(\epsilon) \\ |
| ... | ... | |
| 90 | 97 |
%\sepeps & \forall x^\word . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\ |
| 91 | 98 |
%\sepzer & \forall x^\word , y^\word. ( \succ_0 x = \succ_0 y \limp x=y ) \\ |
| 92 | 99 |
%\sepone & \forall x^\word , y^\word. ( \succ_1 x = \succ_1 y \limp x=y ) \\ |
| 93 |
\inj & \forall x^\word . \succ_0 x \neq \succ_1 x \\ |
|
| 94 |
\surj & \forall x^\word . (x = \epsilon \laor \exists y^\word . x = \succ_0 y \laor \exists y^\word . x = \succ_1 y ) \\ |
|
| 100 |
%\inj |
|
| 101 |
& \forall x^\word . \succ_0 x \neq \succ_1 x \\ |
|
| 102 |
%\surj |
|
| 103 |
& \forall x^\word . (x = \epsilon \laor \exists y^\word . x = \succ_0 y \laor \exists y^\word . x = \succ_1 y ) \\ |
|
| 95 | 104 |
%\noalign{\smallskip}
|
| 96 |
\wordcntr & \forall x^\word . (\word(x) \land \word(x)) |
|
| 105 |
%\wordcntr |
|
| 106 |
& \forall x^\word . (\word(x) \land \word(x)) |
|
| 97 | 107 |
\end{array}
|
| 98 | 108 |
\] |
| 99 | 109 |
\end{definition}
|
| ... | ... | |
| 131 | 141 |
\label{prop:equiv-rules}
|
| 132 | 142 |
$\basic$ is equivalent to the following set of rules, |
| 133 | 143 |
\[ |
| 144 |
\small |
|
| 134 | 145 |
\begin{array}{l}
|
| 135 | 146 |
\begin{array}{cccc}
|
| 136 | 147 |
\vlinf{\geneps}{}{\seqar \word (\epsilon)}{}&
|
| ... | ... | |
| 174 | 185 |
%\vspace{1em}
|
| 175 | 186 |
and $\ind$ is equivalent to, |
| 176 | 187 |
\[ |
| 188 |
\small |
|
| 177 | 189 |
\vliinf{\ind}{}{ !\word(t) , !\Gamma , A(\epsilon) \seqar A(t), ?\Delta }{ !\word(a) , !\Gamma, A(a) \seqar A(\succ_0 a) , ?\Delta }{ !\word(a) , !\Gamma, A(a) \seqar A(\succ_1 a) , ?\Delta }
|
| 178 | 190 |
\] |
| 179 | 191 |
where, in all cases, $t$ varies over arbitrary terms and the eigenvariable $a$ does not occur in the lower sequent of the $\ind$ rule. |
Formats disponibles : Unified diff