Révision 108
| CSL16/appendix-preliminaries.tex (revision 108) | ||
|---|---|---|
| 1 |
\section{Appendix for Sect.~\ref{sect:preliminaries}}
|
|
| 2 |
\label{sect:app-preliminaries}
|
|
| 3 |
|
|
| 4 |
Equality axioms: |
|
| 5 |
\[ |
|
| 6 |
\begin{array}{rl}
|
|
| 7 |
\refl & \forall x . x = x \\ |
|
| 8 |
\symm & \forall x, y. (x = y \limp y = x )\\ |
|
| 9 |
\trans & \forall x , y , z . ( x = y \limp y = z \limp x = z ) \\ |
|
| 10 |
\subst_f & \forall \vec x , \vec y . (\vec x = \vec y \limp f(\vec x) = f(\vec y) ) \\ |
|
| 11 |
\subst_P & \forall \vec x , \vec y. (\vec x = \vec y \limp P(\vec x) \limp P(\vec y) ) |
|
| 12 |
\end{array}
|
|
| 13 |
\] |
|
| CSL16/bc.tex (revision 108) | ||
|---|---|---|
| 4 | 4 |
We recall the Bellantoni-Cook algebra BC of programs defined by safe recursion on notation \cite{BellantoniCook92}. 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. We consider function symbols $f$ over the domain $\Word$ which have \textit{normal} and \textit{safe} arguments. Each symbol is given with an arity $m$ and a number $n\leq m$ of normal arguments, and will be denoted as $f(\vec{u};\vec{x})$ where $\vec{u}$ (resp. $\vec{x}$) are the normal (resp. safe) arguments.
|
| 5 | 5 |
We say that an expression is well-sorted if the arities of function symbols in it is respected. |
| 6 | 6 |
|
| 7 |
\patrick{Note that below I used the terminology 'BC programs', to distinguish them from 'functions' in the extensional sense, which I find clearer. But if you prefer to keep 'BC functions' it is all right for me.}
|
|
| 7 |
%\patrick{Note that below I used the terminology 'BC programs', to distinguish them from 'functions' in the extensional sense, which I find clearer. But if you prefer to keep 'BC functions' it is all right for me.}
|
|
| 8 | 8 |
\begin{definition}
|
| 9 | 9 |
[BC programs] |
| 10 | 10 |
BC is the set of programs over $\Word$ generated by the following initial functions and closure schemes. |
| ... | ... | |
| 69 | 69 |
|
| 70 | 70 |
%\anupam{simultaneous recursion?}
|
| 71 | 71 |
|
| 72 |
\anupam{also identity, hereditarily safe, expressions, etc.}
|
|
| 72 |
%\anupam{also identity, hereditarily safe, expressions, etc.}
|
|
| 73 | 73 |
|
| 74 | 74 |
%\anupam{we implicitly associate a BC program with its equational specification}
|
| 75 | 75 |
|
| ... | ... | |
| 79 | 79 |
\label{prop:bc-properties}
|
| 80 | 80 |
We have the following properties: |
| 81 | 81 |
\begin{enumerate}
|
| 82 |
\item The identity function is in BC. |
|
| 82 | 83 |
\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
|
| 83 | 84 |
by $f(u_1,\dots, u_n,x_1,\dots, x_k):=t$ is a BC program. |
| 84 | 85 |
\item Assume $f$ is a BC program, then the program $g$ defined as |
| CSL16/arithmetic.tex (revision 108) | ||
|---|---|---|
| 3 | 3 |
For the remainder of this article we will consider an implementation of arithmetic in the sequent calculus based on the theory $\bharith$ of Bellantoni and Hofmann in \cite{BelHof:02}. The axioms that we present are obtained from $\bharith$ by using linear logic connectives in place of their analogues, calibrating the use of additives or multiplicatives in order to be compatible with the completeness and witnessing arguments that we present in Sects.~\ref{sect:bc-convergence} and \ref{sect:wfm}. We also make use of free variables and the structural delimiters of the sequent calculus to control the logical complexity of nonlogical rules.
|
| 4 | 4 |
|
| 5 | 5 |
|
| 6 |
We will work in the \emph{affine} variant of linear logic, which validates weakening: $(A \land B )\limp A$. There are many reasons for this; essentially it does not have much effect on complexity while also creating a more robust proof theory. For example it induces the following equivalence:\footnote{Notice that the right-left direction is already valid in usual linear logic, but the left-right direction requires weakening.}
|
|
| 7 |
\[
|
|
| 6 |
We will work in the \emph{affine} variant of linear logic, which validates weakening: $(A \land B )\limp A$. There are many reasons for this; essentially it does not have much effect on complexity while also creating a more robust proof theory. For example it induces the equivalence:
|
|
| 7 |
\(
|
|
| 8 | 8 |
!(A\land B) \equiv (!A \land !B) |
| 9 |
\]
|
|
| 9 |
\).\footnote{Notice that the right-left direction is already valid in usual linear logic, but the left-right direction requires weakening.}
|
|
| 10 | 10 |
|
| 11 | 11 |
|
| 12 | 12 |
%We define a variant of arithmetic inspired by Bellantoni and Hofmann's $A^1_2$. We describe later some connections to bounded arithmetic. |
| ... | ... | |
| 59 | 59 |
\geneps & \word(\epsilon) \\ |
| 60 | 60 |
\genzer & \forall x^\word . \word(\succ_0 x) \\ |
| 61 | 61 |
\genone & \forall x^\word . \word(\succ_1 x) \\ |
| 62 |
%\sepeps & \forall x^\word . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\ |
|
| 63 |
%\sepzer & \forall x^\word , y^\word. ( \succ_0 x = \succ_0 y \limp x=y ) \\ |
|
| 64 |
%\sepone & \forall x^\word , y^\word. ( \succ_1 x = \succ_1 y \limp x=y ) \\ |
|
| 65 |
%\inj & \forall x^\word . \succ_0 x \neq \succ_1 x \\ |
|
| 66 |
%\surj & \forall x^\word . (x = \epsilon \laor \exists y^\word . x = \succ_0 y \laor \exists y^\word . x = \succ_1 y ) \\ |
|
| 67 |
%\noalign{\smallskip}
|
|
| 68 |
%\wordcntr & \forall x^\word . (\word(x) \land \word(x)) |
|
| 69 |
\end{array}
|
|
| 70 |
\quad |
|
| 71 |
\begin{array}{rl}
|
|
| 72 |
%\wk & (A \land B )\limp A \\ |
|
| 73 |
%\geneps & \word(\epsilon) \\ |
|
| 74 |
%\genzer & \forall x^\word . \word(\succ_0 x) \\ |
|
| 75 |
%\genone & \forall x^\word . \word(\succ_1 x) \\ |
|
| 62 | 76 |
\sepeps & \forall x^\word . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\ |
| 63 | 77 |
\sepzer & \forall x^\word , y^\word. ( \succ_0 x = \succ_0 y \limp x=y ) \\ |
| 64 | 78 |
\sepone & \forall x^\word , y^\word. ( \succ_1 x = \succ_1 y \limp x=y ) \\ |
| 79 |
%\inj & \forall x^\word . \succ_0 x \neq \succ_1 x \\ |
|
| 80 |
%\surj & \forall x^\word . (x = \epsilon \laor \exists y^\word . x = \succ_0 y \laor \exists y^\word . x = \succ_1 y ) \\ |
|
| 81 |
%\noalign{\smallskip}
|
|
| 82 |
%\wordcntr & \forall x^\word . (\word(x) \land \word(x)) |
|
| 83 |
\end{array}
|
|
| 84 |
\quad |
|
| 85 |
\begin{array}{rl}
|
|
| 86 |
%\wk & (A \land B )\limp A \\ |
|
| 87 |
%\geneps & \word(\epsilon) \\ |
|
| 88 |
%\genzer & \forall x^\word . \word(\succ_0 x) \\ |
|
| 89 |
%\genone & \forall x^\word . \word(\succ_1 x) \\ |
|
| 90 |
%\sepeps & \forall x^\word . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\ |
|
| 91 |
%\sepzer & \forall x^\word , y^\word. ( \succ_0 x = \succ_0 y \limp x=y ) \\ |
|
| 92 |
%\sepone & \forall x^\word , y^\word. ( \succ_1 x = \succ_1 y \limp x=y ) \\ |
|
| 65 | 93 |
\inj & \forall x^\word . \succ_0 x \neq \succ_1 x \\ |
| 66 | 94 |
\surj & \forall x^\word . (x = \epsilon \laor \exists y^\word . x = \succ_0 y \laor \exists y^\word . x = \succ_1 y ) \\ |
| 67 |
\noalign{\smallskip}
|
|
| 95 |
%\noalign{\smallskip}
|
|
| 68 | 96 |
\wordcntr & \forall x^\word . (\word(x) \land \word(x)) |
| 69 | 97 |
\end{array}
|
| 70 | 98 |
\] |
| ... | ... | |
| 100 | 128 |
%\anupam{in fact just give general case for a universal closed formula. Then remark about invertibility of negation giving purely positive initial steps. These occur in section 6 so no need to write them out here.}
|
| 101 | 129 |
\begin{proposition}
|
| 102 | 130 |
[Equivalent rules] |
| 131 |
\label{prop:equiv-rules}
|
|
| 103 | 132 |
$\basic$ is equivalent to the following set of rules, |
| 104 | 133 |
\[ |
| 105 | 134 |
\begin{array}{l}
|
| ... | ... | |
| 151 | 180 |
\end{proposition}
|
| 152 | 181 |
|
| 153 | 182 |
Note, in particular, that since this system of rules is closed under substitution of terms for free variables, free-cut elimination, Thm.~\ref{thm:free-cut-elim}, applies.
|
| 154 |
\begin{proof}
|
|
| 155 |
We give only the case for induction, the others being routine. |
|
| 156 | 183 |
|
| 157 |
First, let us assume the induction axiom and derive the rule: |
|
| 158 |
\[ |
|
| 159 |
%\small |
|
| 160 |
\vlderivation{
|
|
| 161 |
\vliq{\cntr}{}{ !\word (t) , !\Gamma, A(\epsilon) \seqar A(t) , ?\Delta }{
|
|
| 162 |
\vlin{2\cdot\cut}{}{!\word(t) , !\Gamma, !\Gamma, A(\epsilon) \seqar A(t) , ?\Delta, ?\Delta }{
|
|
| 163 |
\vlhy{
|
|
| 164 |
{
|
|
| 165 |
\left\{
|
|
| 166 |
\vlderivation{
|
|
| 167 |
\vlin{\rigrul{!}}{}{ !\Gamma \seqar ! \forall x^{!\word} . ( A(x) \limp A(\succ_i x) ) , ?\Delta }{
|
|
| 168 |
\vlin{\rigrul{\forall}}{}{ !\Gamma \seqar \forall x^{!\word} . ( A(x) \limp A(\succ_i x) ) , ?\Delta }{
|
|
| 169 |
\vlin{2\cdot\rigrul{\limp}}{}{ !\Gamma \seqar !\word (a) \limp A(a) \limp A(\succ_i a) , ?\Delta }{\vlhy{ !\word (a) ,!\Gamma , A(a) \seqar A(\succ_i a) , ?\Delta }}
|
|
| 170 |
} |
|
| 171 |
} |
|
| 172 |
} |
|
| 173 |
\right\}_{i=0,1}
|
|
| 174 |
} |
|
| 175 |
\qquad |
|
| 176 |
{
|
|
| 177 |
\vlderivation{
|
|
| 178 |
\vliq{\inv{\forall} }{}{ !\word (t), A(\epsilon) ,\{!\forall x^{!\word} . ( A(x) \limp A(\succ_0 x) )\}_{i=0,1} \seqar A(t) }{
|
|
| 179 |
\vliq{\inv{\limp}}{}{ A(\epsilon) , \{!\forall x^{!\word} . ( A(x) \limp A(\succ_0 x) )\}_{i=0,1} \seqar \forall x^{!\word} .A(x) }{
|
|
| 180 |
\vlhy{
|
|
| 181 |
\seqar |
|
| 182 |
%A(\epsilon) |
|
| 183 |
%\limp !(\forall x^{!\word} . ( A(x) \limp A(\succ_0 x) ) )
|
|
| 184 |
%\limp !(\forall x^{!\word} . ( A(x) \limp A(\succ_1 x) ) )
|
|
| 185 |
%\limp \forall x^{!\word} . A(x)
|
|
| 186 |
\ind |
|
| 187 |
} |
|
| 188 |
} |
|
| 189 |
} |
|
| 190 |
} |
|
| 191 |
} |
|
| 192 |
} |
|
| 193 |
} |
|
| 194 |
} |
|
| 195 |
} |
|
| 196 |
\] |
|
| 197 |
Now we assume the induction rule and derive the axiom, |
|
| 198 |
\[ |
|
| 199 |
\vlderivation{
|
|
| 200 |
\vlin{3\cdot\rigrul{\limp}}{}{\seqar \ind }{
|
|
| 201 |
\vlin{\rigrul{\limp},\rigrul{\forall}}{}{\{ !\forall x^{!\word} . ( A(x) \limp A(\succ_i x) ) \}_{i=0,1} , A(\epsilon) \seqar \forall x^{!\word} . A(x) }{
|
|
| 202 |
\vlin{\ind}{}{!\word (t) , \{ !\forall x^{!\word} . ( A(x) \limp A(\succ_i x) ) \}_{i=0,1} \seqar A(b) }{
|
|
| 203 |
\vlhy{
|
|
| 204 |
\left\{
|
|
| 205 |
\vltreeder{\pi_i}{ !\word (a) , \{ !\forall x^{!\word} . ( A(x) \limp A(\succ_i x) ) \}_{i=0,1} , A(a) \seqar A(\succ_i a) }{\quad}{}{\quad }
|
|
| 206 |
\right\}_{i=0,1}
|
|
| 207 |
} |
|
| 208 |
} |
|
| 209 |
} |
|
| 210 |
} |
|
| 211 |
} |
|
| 212 |
\] |
|
| 213 |
where the proofs $\pi_i$ are obtainable from just logical rules. |
|
| 214 |
\end{proof}
|
|
| 215 | 184 |
|
| 216 |
Notice, in particular, that when converting from an $\ind$ axiom instance to a rule instance (or vice-versa) the induction formula remains the same. For this reason when we consider theories that impose logical restrictions on induction we can use either interchangeably.
|
|
| 185 |
When converting from an $\ind$ axiom instance to a rule instance (or vice-versa) the induction formula remains the same. For this reason when we consider theories that impose logical restrictions on induction we can use either interchangeably.
|
|
| 217 | 186 |
|
| 218 | 187 |
\begin{remark}
|
| 219 | 188 |
%\anupam{Mention that two induction rules are not the same. This is crucial in, e.g.\ the completeness section for the case of PRN.}
|
| 220 |
Usually the induction axiom is also equivalent to a formulation with a designated premise for the base case, e.g.: |
|
| 221 |
\begin{equation}
|
|
| 222 |
\label{eqn:ind-rul-base-prem}
|
|
| 223 |
\vliiinf{}{}{ !\word(t) , !\Gamma \seqar A(t), ?\Delta }{!\Gamma \seqar A(\epsilon)}{ !\word(a) , !\Gamma, A(a) \seqar A(\succ_0 a) , ?\Delta }{ !\word(a) , !\Gamma, A(a) \seqar A(\succ_1 a) , ?\Delta }
|
|
| 224 |
\end{equation}
|
|
| 225 |
However, this is not true in the linear logic setting since the proof that \eqref{eqn:ind-rul-base-prem} simulates the one we gave relies on contraction on the formula $A(\epsilon)$, which is not in general available, and so \eqref{eqn:ind-rul-base-prem} is somewhat weaker. This distinction turns out to be crucial in Sect.~\ref{sect:bc-convergence}, namely when proving the convergence of functions defined by predicative recursion on notation.
|
|
| 189 |
Usually the induction axiom is also equivalent to a formulation with a designated premise for the base case, |
|
| 190 |
%e.g.: |
|
| 191 |
%\begin{equation}
|
|
| 192 |
%\label{eqn:ind-rul-base-prem}
|
|
| 193 |
%\vliiinf{}{}{ !\word(t) , !\Gamma \seqar A(t), ?\Delta }{!\Gamma \seqar A(\epsilon)}{ !\word(a) , !\Gamma, A(a) \seqar A(\succ_0 a) , ?\Delta }{ !\word(a) , !\Gamma, A(a) \seqar A(\succ_1 a) , ?\Delta }
|
|
| 194 |
%\end{equation}
|
|
| 195 |
%However, |
|
| 196 |
but this is not true in the linear logic setting since the proof that \eqref{eqn:ind-rul-base-prem} simulates the one we gave relies on contraction on the formula $A(\epsilon)$, which is not in general available, and so \eqref{eqn:ind-rul-base-prem} is somewhat weaker. This distinction turns out to be crucial in Sect.~\ref{sect:bc-convergence}, namely when proving the convergence of functions defined by predicative recursion on notation.
|
|
| 226 | 197 |
\end{remark}
|
| 227 | 198 |
|
| 228 | 199 |
% |
| ... | ... | |
| 362 | 333 |
%For the quantifiers $\exists x^\word $ and $\forall x^\word$ we |
| 363 | 334 |
We define the following rules, which are derivable: |
| 364 | 335 |
\[ |
| 365 |
\begin{array}{cc}
|
|
| 336 |
%\begin{array}{cc}
|
|
| 337 |
%\vlinf{}{}{\Gamma \seqar \Delta, \forall x^\word . A(x)}{\Gamma, \word(a) \seqar \Delta , A(a)}
|
|
| 338 |
%\quad & \quad |
|
| 339 |
%\vlinf{}{}{\Gamma, \word(t),\forall x^\word A(x) \seqar \Delta}{\Gamma, A(t) \seqar \Delta}
|
|
| 340 |
%\\ |
|
| 341 |
%\noalign{\bigskip}
|
|
| 342 |
%\vlinf{}{}{\Gamma , \exists x^\word A(x) \seqar \Delta}{\Gamma, \word(a), A(a) \seqar \Delta}
|
|
| 343 |
%\quad &\quad |
|
| 344 |
%\vlinf{}{}{\Gamma, \word(t) \seqar \Delta , \exists x^\word . A(x)}{\Gamma \seqar \Delta, A(t)}
|
|
| 345 |
%\end{array}
|
|
| 366 | 346 |
\vlinf{}{}{\Gamma \seqar \Delta, \forall x^\word . A(x)}{\Gamma, \word(a) \seqar \Delta , A(a)}
|
| 367 |
\quad & \quad
|
|
| 347 |
\quad |
|
| 368 | 348 |
\vlinf{}{}{\Gamma, \word(t),\forall x^\word A(x) \seqar \Delta}{\Gamma, A(t) \seqar \Delta}
|
| 369 |
\\ |
|
| 370 |
\noalign{\bigskip}
|
|
| 349 |
\quad |
|
| 371 | 350 |
\vlinf{}{}{\Gamma , \exists x^\word A(x) \seqar \Delta}{\Gamma, \word(a), A(a) \seqar \Delta}
|
| 372 |
\quad &\quad
|
|
| 351 |
\quad |
|
| 373 | 352 |
\vlinf{}{}{\Gamma, \word(t) \seqar \Delta , \exists x^\word . A(x)}{\Gamma \seqar \Delta, A(t)}
|
| 374 |
\end{array}
|
|
| 375 | 353 |
\] |
| 376 | 354 |
|
| 377 | 355 |
%\begin{proposition}
|
| CSL16/wfm.tex (revision 108) | ||
|---|---|---|
| 184 | 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.}
|
| 185 | 185 |
|
| 186 | 186 |
% \anupam{This is important, so expand on this here or in a remark before/after.}
|
| 187 |
|
|
| 188 |
Suppose $\pi$ ends with a $\lefrul{\cntr}$ step,
|
|
| 189 |
\[ |
|
| 190 |
\vlderivation{
|
|
| 191 |
\vlin{\lefrul{\cntr}}{}{ !A , \Gamma \seqar \Delta }{
|
|
| 192 |
\vltr{\pi'}{ !A, !A , \Gamma \seqar \Delta}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 193 |
} |
|
| 194 |
} |
|
| 195 |
\] |
|
| 196 |
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'$ and $\type (\Gamma) = (\vec v; \vec x)$. |
|
| 197 |
% (Recall that the typing corresponding to $!$ means that all inputs for each $!A$ are normal). |
|
| 198 |
We define $\vec f^\pi$ by duplicating the arguments for $!A$: |
|
| 199 |
\[ |
|
| 200 |
\vec f^\pi (\vec u , \vec v ; \vec x) |
|
| 201 |
\quad := \quad |
|
| 202 |
\vec f' (\vec u, \vec u , \vec v ; \vec x) |
|
| 203 |
\] |
|
| 187 |
|
|
| 188 |
If $\pi$ ends with a $\lefrul{\cntr}$ step then we duplicate some normal inputs of the functions obtained by the inductive hypothesis.
|
|
| 189 |
|
|
| 204 | 190 |
% (Notice that this is obtainable in BC by a trivial instance of safe composition.) |
| 205 | 191 |
|
| 206 | 192 |
|
| CSL16/appendix-wfm.tex (revision 108) | ||
|---|---|---|
| 59 | 59 |
\] |
| 60 | 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 | 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 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
|
| 62 | 68 |
We construct $\vec f^\pi$ by simply rearranging these tuples of functions: |
| 63 | 69 |
\[ |
| 64 | 70 |
\vec f^\pi (\vec u , \vec v ; \vec x , \vec y) |
| ... | ... | |
| 103 | 109 |
\right) |
| 104 | 110 |
\] |
| 105 | 111 |
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 |
|
|
| 112 |
|
|
| 113 |
|
|
| 114 |
|
|
| 115 |
|
|
| 116 |
Suppose $\pi$ ends with a $\lefrul{\cntr}$ step,
|
|
| 117 |
\[ |
|
| 118 |
\vlderivation{
|
|
| 119 |
\vlin{\lefrul{\cntr}}{}{ !A , \Gamma \seqar \Delta }{
|
|
| 120 |
\vltr{\pi'}{ !A, !A , \Gamma \seqar \Delta}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
|
|
| 121 |
} |
|
| 122 |
} |
|
| 123 |
\] |
|
| 124 |
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'$ and $\type (\Gamma) = (\vec v; \vec x)$. |
|
| 125 |
% (Recall that the typing corresponding to $!$ means that all inputs for each $!A$ are normal). |
|
| 126 |
We define $\vec f^\pi$ by duplicating the arguments for $!A$: |
|
| 127 |
\[ |
|
| 128 |
\vec f^\pi (\vec u , \vec v ; \vec x) |
|
| 129 |
\quad := \quad |
|
| 130 |
\vec f' (\vec u, \vec u , \vec v ; \vec x) |
|
| 131 |
\] |
|
| CSL16/appendix-arithmetic.tex (revision 108) | ||
|---|---|---|
| 1 |
\section{Appendix for Sect.~\ref{sect:arithmetic}}
|
|
| 2 |
\label{sect:app-arithmetic}
|
|
| 3 |
|
|
| 4 |
\begin{proof}[Proof of Prop.~\ref{prop:equiv-rules}]
|
|
| 5 |
We give only the case for induction, the others being routine. |
|
| 6 |
|
|
| 7 |
First, let us assume the induction axiom and derive the rule: |
|
| 8 |
\[ |
|
| 9 |
%\small |
|
| 10 |
\vlderivation{
|
|
| 11 |
\vliq{\cntr}{}{ !\word (t) , !\Gamma, A(\epsilon) \seqar A(t) , ?\Delta }{
|
|
| 12 |
\vlin{2\cdot\cut}{}{!\word(t) , !\Gamma, !\Gamma, A(\epsilon) \seqar A(t) , ?\Delta, ?\Delta }{
|
|
| 13 |
\vlhy{
|
|
| 14 |
{
|
|
| 15 |
\left\{
|
|
| 16 |
\vlderivation{
|
|
| 17 |
\vlin{\rigrul{!}}{}{ !\Gamma \seqar ! \forall x^{!\word} . ( A(x) \limp A(\succ_i x) ) , ?\Delta }{
|
|
| 18 |
\vlin{\rigrul{\forall}}{}{ !\Gamma \seqar \forall x^{!\word} . ( A(x) \limp A(\succ_i x) ) , ?\Delta }{
|
|
| 19 |
\vlin{2\cdot\rigrul{\limp}}{}{ !\Gamma \seqar !\word (a) \limp A(a) \limp A(\succ_i a) , ?\Delta }{\vlhy{ !\word (a) ,!\Gamma , A(a) \seqar A(\succ_i a) , ?\Delta }}
|
|
| 20 |
} |
|
| 21 |
} |
|
| 22 |
} |
|
| 23 |
\right\}_{i=0,1}
|
|
| 24 |
} |
|
| 25 |
\qquad |
|
| 26 |
{
|
|
| 27 |
\vlderivation{
|
|
| 28 |
\vliq{\inv{\forall} }{}{ !\word (t), A(\epsilon) ,\{!\forall x^{!\word} . ( A(x) \limp A(\succ_0 x) )\}_{i=0,1} \seqar A(t) }{
|
|
| 29 |
\vliq{\inv{\limp}}{}{ A(\epsilon) , \{!\forall x^{!\word} . ( A(x) \limp A(\succ_0 x) )\}_{i=0,1} \seqar \forall x^{!\word} .A(x) }{
|
|
| 30 |
\vlhy{
|
|
| 31 |
\seqar |
|
| 32 |
%A(\epsilon) |
|
| 33 |
%\limp !(\forall x^{!\word} . ( A(x) \limp A(\succ_0 x) ) )
|
|
| 34 |
%\limp !(\forall x^{!\word} . ( A(x) \limp A(\succ_1 x) ) )
|
|
| 35 |
%\limp \forall x^{!\word} . A(x)
|
|
| 36 |
\ind |
|
| 37 |
} |
|
| 38 |
} |
|
| 39 |
} |
|
| 40 |
} |
|
| 41 |
} |
|
| 42 |
} |
|
| 43 |
} |
|
| 44 |
} |
|
| 45 |
} |
|
| 46 |
\] |
|
| 47 |
Now we assume the induction rule and derive the axiom, |
|
| 48 |
\[ |
|
| 49 |
\vlderivation{
|
|
| 50 |
\vlin{3\cdot\rigrul{\limp}}{}{\seqar \ind }{
|
|
| 51 |
\vlin{\rigrul{\limp},\rigrul{\forall}}{}{\{ !\forall x^{!\word} . ( A(x) \limp A(\succ_i x) ) \}_{i=0,1} , A(\epsilon) \seqar \forall x^{!\word} . A(x) }{
|
|
| 52 |
\vlin{\ind}{}{!\word (t) , \{ !\forall x^{!\word} . ( A(x) \limp A(\succ_i x) ) \}_{i=0,1} \seqar A(b) }{
|
|
| 53 |
\vlhy{
|
|
| 54 |
\left\{
|
|
| 55 |
\vltreeder{\pi_i}{ !\word (a) , \{ !\forall x^{!\word} . ( A(x) \limp A(\succ_i x) ) \}_{i=0,1} , A(a) \seqar A(\succ_i a) }{\quad}{}{\quad }
|
|
| 56 |
\right\}_{i=0,1}
|
|
| 57 |
} |
|
| 58 |
} |
|
| 59 |
} |
|
| 60 |
} |
|
| 61 |
} |
|
| 62 |
\] |
|
| 63 |
where the proofs $\pi_i$ are obtainable from just logical rules. |
|
| 64 |
\end{proof}
|
|
| 65 |
|
|
| 66 |
Induction rule with designated base case: |
|
| 67 |
\begin{equation}
|
|
| 68 |
\label{eqn:ind-rul-base-prem}
|
|
| 69 |
\vliiinf{}{}{ !\word(t) , !\Gamma \seqar A(t), ?\Delta }{!\Gamma \seqar A(\epsilon)}{ !\word(a) , !\Gamma, A(a) \seqar A(\succ_0 a) , ?\Delta }{ !\word(a) , !\Gamma, A(a) \seqar A(\succ_1 a) , ?\Delta }
|
|
| 70 |
\end{equation}
|
|
| CSL16/preliminaries.tex (revision 108) | ||
|---|---|---|
| 1 | 1 |
\section{Preliminaries}
|
| 2 |
\label{sect:preliminaries}
|
|
| 2 | 3 |
% |
| 3 | 4 |
%\todo{consider removing and just have a section on linear logic, including free-cut elimination.}
|
| 4 | 5 |
|
| ... | ... | |
| 131 | 132 |
\anupam{mention equality rules}
|
| 132 | 133 |
% \anupam{mention equality axioms and first-order theories and models at some point.}
|
| 133 | 134 |
|
| 134 |
A \emph{language} is a set of nonlogical symbols (i.e.\ constants, functions, predicates) and a \emph{theory} a set of closed formulae over some language. We will assume that all theories extend the theory of equality:
|
|
| 135 |
A \emph{language} is a set of nonlogical symbols (i.e.\ constants, functions, predicates) and a \emph{theory} a set of closed formulae over some language. We assume that all theories contain the axioms of equality:
|
|
| 135 | 136 |
\[ |
| 136 |
\begin{array}{rl}
|
|
| 137 |
\refl & \forall x . x = x \\ |
|
| 138 |
\symm & \forall x, y. (x = y \limp y = x )\\ |
|
| 139 |
\trans & \forall x , y , z . ( x = y \limp y = z \limp x = z ) \\ |
|
| 140 |
\subst_f & \forall \vec x , \vec y . (\vec x = \vec y \limp f(\vec x) = f(\vec y) ) \\ |
|
| 141 |
\subst_P & \forall \vec x , \vec y. (\vec x = \vec y \limp P(\vec x) \limp P(\vec y) ) |
|
| 142 |
\end{array}
|
|
| 137 |
% \begin{array}{rl}
|
|
| 138 |
%\refl & \forall x . x = x \\ |
|
| 139 |
%\symm & \forall x, y. (x = y \limp y = x )\\ |
|
| 140 |
%\trans & \forall x , y , z . ( x = y \limp y = z \limp x = z ) \\ |
|
| 141 |
%\subst_f & \forall \vec x , \vec y . (\vec x = \vec y \limp f(\vec x) = f(\vec y) ) \\ |
|
| 142 |
%\subst_P & \forall \vec x , \vec y. (\vec x = \vec y \limp P(\vec x) \limp P(\vec y) ) |
|
| 143 |
% \end{array}
|
|
| 144 |
%\left\{
|
|
| 145 |
\begin{array}{l}
|
|
| 146 |
\forall x . x = x \quad, \quad \forall x, y. (x = y \limp y = x )\quad, \quad \forall x , y , z . ( x = y \limp y = z \limp x = z ) \\ \forall \vec x , \vec y . (\vec x = \vec y \limp f(\vec x) = f(\vec y) ) \quad , \quad \forall \vec x , \vec y. (\vec x = \vec y \limp P(\vec x) \limp P(\vec y) ) |
|
| 147 |
\end{array}
|
|
| 148 |
%\right\} |
|
| 143 | 149 |
\] |
| 144 | 150 |
where $\vec x = \vec y$ is shorthand for $x_1 = y_1 \land \vldots \land x_n = y_n$. |
| 145 | 151 |
|
| ... | ... | |
| 193 | 199 |
% \] |
| 194 | 200 |
|
| 195 | 201 |
|
| 196 |
A proof in such a system will be called a \textit{ $\mathcal T$-proof}, or just \textit{proof} when there is no risk of confusion.
|
|
| 202 |
% A proof in such a system will be called a \textit{ $\mathcal T$-proof}, or just \textit{proof} when there is no risk of confusion.
|
|
| 197 | 203 |
% The rules of Def. \ref{def:LLsequentcalculus} are called \textit{logical rules} while the rules (ax) and (R) of $\mathcal T$ are called \textit{non-logical}.
|
| 198 | 204 |
% |
| 199 | 205 |
% As usual rules come with a notion of \textit{principal formulas}, which are a subset of the rules in the conclusion, e.g.:
|
Formats disponibles : Unified diff