Révision 120

CSL16/introduction.tex (revision 120)
1 1
\section{Introduction}
2 2
%\anupam{i put all the notes/suggestions at the end, before references.}
3 3
 
4
  \emph{Free-cut elimination}\footnote{Also known as \emph{anchored} or \emph{directed} completeness, \emph{partial} cut-elimination or \emph{weak} cut-elimination in other works.} is a normalisation procedure on formal proofs in systems including nonlogical rules, e.g.\ the axioms and induction rules in arithmetic, introduced in \cite{Takeuti87}. It yields proofs in a form where essentially each cut step has at least one of its cut formulas principal for a nonlogical step. It is an important tool for proving witnessing theorems in first-order theories, and in particular it has been extensively used in \emph{bounded arithmetic} for proving complexity bounds on representable functions, by the \textit{witness function method} \cite{Buss86book}. 
4
  \emph{Free-cut elimination}\footnote{Also known as \emph{anchored} or \emph{directed} completeness, \emph{partial} cut-elimination or \emph{weak} cut-elimination in other works.} is a normalisation procedure on formal proofs in systems including nonlogical rules, e.g.\ the axioms and induction rules in arithmetic, introduced in \cite{Takeuti87}. It yields proofs in a form where, essentially, each cut step has at least one of its cut formulas principal for a nonlogical step. It is an important tool for proving witnessing theorems in first-order theories, and in particular it has been extensively used in \emph{bounded arithmetic} for proving complexity bounds on representable functions, by way of the \textit{witness function method} \cite{Buss86book}. 
5 5
  
6
   Linear logic \cite{Girard87} can be seen as a decomposition of both intuitionistic and classical logic, based on a thorough analysis of duplication and erasure of formulas in proofs (i.e.\ the structural rules), and has been particularly useful in proofs-as-programs correspondences, proof search \cite{Andreoli92} and logic programming \cite{Miller04}. By controlling  structural rules with designated modalities, the \textit{exponentials}, linear logic has allowed for a fine study of complexity bounds in the Curry-Howard interpretation, leading to variants with polynomial-time complexity \cite{GirardSS92:bounded-ll} \cite{Girard98} \cite{Lafont04}. 
6
   Linear logic \cite{Girard87} can be seen as a decomposition of both intuitionistic and classical logic, based on a careful analysis of duplication and erasure of formulas in proofs (i.e.\ the structural rules), and has been particularly useful in proofs-as-programs correspondences, proof search \cite{Andreoli92} and logic programming \cite{Miller04}. By controlling  structural rules with designated modalities, the \textit{exponentials}, linear logic has allowed for a fine study of complexity bounds in the Curry-Howard interpretation, leading to variants with polynomial-time complexity \cite{GirardSS92:bounded-ll} \cite{Girard98} \cite{Lafont04}. 
7 7
%   However most of this work has been done for 'purely logical' linear logic, or at least for variants with full cut elimination procedure. 
8 8
   
9 9
    In this work we explore how the finer granularity of linear logic can be used to control complexity in \emph{first-order theories}, restricting the provably convergent functions rather than the typable terms as in the propositional setting.
......
20 20
     \cite{BellantoniCook92}. 
21 21
%     In a second step the result is extended to the classical variant $\mathcal{A}_2^1$ by using the Friedman A translation.
22 22
    
23
    We show that Buss' witness function method can be employed to extract functions directly for classical systems similar to $\mathcal{A}_2^1$ based in linear logic, by taking advantage of free-cut elimination. The De Morgan normal form available in classical (linear) logic means that the functions we extract remain at ground type, based on the usual safe recursive programs of \cite{BelHof:02}. A similar proof method was used by Cantini in \cite{Cantini02}, who uses combinatory terms as the model of computation as opposed to the equational specifications in this work.\footnote{This turns out to be important due to the handling of right-contraction steps in the witnessing argument.}
23
    We show that Buss' witness function method can be employed to extract functions directly for classical systems similar to $\mathcal{A}_2^1$ based in linear logic, by taking advantage of free-cut elimination. The De Morgan normal form available in classical (linear) logic means that the functions we extract remain at ground type, based on the usual safe recursive programs of \cite{BellantoniCook92}. A similar proof method was used by Cantini in \cite{Cantini02}, who uses combinatory terms as the model of computation as opposed to the equational specifications in this work.\footnote{This turns out to be important due to the handling of right-contraction steps in the witnessing argument.}
24 24
   
25 25
     Our result holds for an apparently weaker theory than $\mathcal{A}_2^1$, with induction restricted to positive existential formulas in a way similar to Leivant's $\mathit{RT}_0$ system in \cite{Leivant94:intrinsic-theories} (see also \cite{Marion01}), but the precise relationship between the two logical settings is unclear.
26 26
%
CSL16/macros.tex (revision 120)
107 107
	\newcommand{\id}{\it{id}}
108 108
	\newcommand{\cut}{\it{cut}}
109 109
	\newcommand{\multicut}{\it{mcut}}
110
	\newcommand{\indr}{\mathit{IND}}
110
	\newcommand{\indr}{\mathit{PIND}}
111 111
	\newcommand{\nec}{\mathit{nec}}
112 112
	\newcommand{\tax}{\mathit{T}}
113 113
	\newcommand{\four}{\mathit{4}}
......
123 123
	\newcommand{\proves}{\vdash_e}
124 124
	
125 125
	%induction
126
	\newcommand{\ind}{\mathit{IND}}
126
	\newcommand{\ind}{\mathit{PIND}}
127 127
	\newcommand{\pind}{\mathit{PIND}}
128 128
	\newcommand{\cax}[2]{#1\text{-}#2}
129 129

  
CSL16/appendix-bc-convergence.tex (revision 120)
43 43
	h( \vec g (\vec u ; )  ; \vec g' ( \vec u ; \vec x ) )
44 44
	\]
45 45
	
46
	By the inductive hypothesis we already have \eqref{eqn:prv-cvg-ih} for $h$ and each $g_i$ and $g_j'$ in place of $f$. We construct the required proof as follows:
46
	By the inductive hypothesis we already have proofs of the covergence of $h$ and each $g_i$ and $g_j'$. Thus we construct the required proof as follows:
47 47
	\[
48 48
	\hspace{-1em}
49 49
	\tiny
CSL16/wfm.tex (revision 120)
313 313
%	
314 314
	
315 315
	
316
	Finally, suppose $\pi$ ends with an $\ind$ step. Since there are no occurrences of $?$ in $\pi$ we can again assume that there are no side formulae on the right of any induction step. Thus $\pi$ is of the form:
316
	Finally, suppose $\pi$ ends with a $\ind$ step. Since there are no occurrences of $?$ in $\pi$ we can again assume that there are no side formulae on the right of any induction step. Thus $\pi$ is of the form:
317 317
	\[
318 318
	\vlderivation{
319 319
		\vliin{\ind}{}{ !\word (t), !\Gamma  ,  A(\epsilon) \seqar A(t) }{
CSL16/arithmetic.tex (revision 120)
114 114

  
115 115
\begin{definition}
116 116
[Induction]
117
The $\ind$ schema consists of the following axioms,
117
The \emph{(polynomial) induction} axiom schema, $\ind$, consists of the following axioms,
118 118
\[
119 119
%\begin{array}{rl}
120 120
%& A(\epsilon) \\
......
129 129
\]
130 130
for each formula $A(x)$.
131 131

  
132
For a class of formulae $\Xi$, we write $\cax{\Xi}{\ind}$ to denote the set of induction axioms when $A(x) \in \Xi$. 
132
For a class $\Xi$ of formulae, $\cax{\Xi}{\ind}$ denotes the set of induction axioms when $A(x) \in \Xi$. 
133 133

  
134 134
We write $I\Xi$ to denote the theory consisting of $\basic$ and $\cax{\Xi}{\ind}$.
135 135
\end{definition}
136 136

  
137
We use the terminology `polynomial induction' to maintain consistency with the bounded arithmetic literature, e.g.\ in \cite{Buss86book}, where it is distinguished from induction on the \emph{value} of a string (construed as a natural number). The two forms have different computational behaviour, specifically with regards to complexity, but we will restrict attention to $\ind$ throughout this work, and thus may simply refer to it as `induction'.
137 138

  
139

  
138 140
%\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.}
139 141
\begin{proposition}
140 142
[Equivalent rules]
......
184 186
%\]
185 187
%\vspace{1em}
186 188
and $\ind$ is equivalent to,
187
\[
189
\begin{equation}
190
\label{eqn:ind-rule}
188 191
\small
189 192
\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  }
190
\]
193
\end{equation}
191 194
where, in all cases, $t$ varies over arbitrary terms and the eigenvariable $a$ does not occur in the lower sequent of the $\ind$ rule.
192 195
\end{proposition}
193 196

  
194 197
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.
195 198

  
196 199

  
197
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.
200
When converting from a $\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.
198 201

  
199 202
\begin{remark}
200 203
%\anupam{Mention that two induction rules are not the same. This is crucial in, e.g.\ the completeness section for the case of PRN.}
201
Usually the induction axiom is also equivalent to a formulation with a designated premise for the base case, 
202
%e.g.:
203
%\begin{equation}
204
%\label{eqn:ind-rul-base-prem}
205
%\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  }
206
%\end{equation}
207
%However, 
208
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.
204
Usually the induction axiom is also equivalent to a formulation with a designated premise for the base case:
205
\begin{equation}
206
\label{eqn:ind-rul-base-prem}
207
\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  }
208
\end{equation}
209
However, 
210
%but 
211
this is not true in the linear logic setting since the proof that \eqref{eqn:ind-rul-base-prem} simulates \eqref{eqn:ind-rule} above relies on contraction on the formula $A(\epsilon)$, which is not in general available. Therefore \eqref{eqn:ind-rul-base-prem} is somewhat weaker than \eqref{eqn:ind-rule}, and is in fact equivalent to a version of the induction axiom with $!A(\epsilon)$ in place of $A(\epsilon)$. 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.
209 212
\end{remark}
210 213

  
211 214
%
CSL16/free-cut-elim.tex (revision 120)
1 1
\section{Free-cut elimination in linear logic}
2 2
\label{sect:free-cut-elim}
3 3
% While in plain logical systems such as linear logic cut rules can be eliminated, this is in general not the case anymore when one considers extension with a theory $\mathcal T$ . For this reason we need now to define the kind of cuts that  will remain in proofs after reduction. We will call these \textit{anchored cuts}. 
4
  We need first to define which cuts will remain in proofs after reduction.
4
  We first define which cut instances may remain in proofs after free-cut elimination.
5 5
%  They are called \textit{anchored cuts}.
6 6
%   Our first idea would be to consider as anchored  a cut whose cut-formulas  $A$ in the two premises are both principal for their rule, and at least one of these rules is non-logical. Now, the problem with this tentative definition is that a rule (R) of  $\mathcal T$ can contain several principal formulas  (in $\Sigma'$, $\Delta'$) and so we would like to allow an anchored cut on each of these principal formulas.
7 7
%  % Consider for instance the following derivation, where we have underlined principal formulas:
......
19 19
%  Here $cut_1$ is anchored in this sense, but not $cut_2$.   Therefore we propose a more general definition:
20 20
Since our nonlogical rules may have many principal formulae on which we permit cuts to be anchored, we need a slightly more general notion than `principal formula'.
21 21
    \begin{definition}\label{def:anchoredcut}
22
  We define in a mutual inductive way the notion of \textit{hereditarily principal formula} and \textit{anchored cut} in a $\system$-proof for a system $\system$:
22
  We define the notions of \textit{hereditarily principal formula} and \textit{anchored cut} in a $\system$-proof, for a system $\system$, by mutual induction as follows:
23 23
  \begin{itemize}
24
  \item A formula $A$ in a sequent $\Gamma \seqar \Delta$ is \textit{hereditarily principal} for a rule (S), if either (i) the sequent is in the conclusion (S) and $A$ is principal in it, or 
25
(ii)  the sequent is in the conclusion of an anchored cut, the direct ancestor of $A$ in the corresponding premise is hereditarily principal for the rule (S), and the rule (S) is nonlogical.
24
  \item A formula $A$ in a sequent $\Gamma \seqar \Delta$ is \textit{hereditarily principal} for a rule (S) if either (i) the sequent is in the conclusion of (S) and $A$ is principal in it, or 
25
(ii)  the sequent is in the conclusion of an anchored cut, the direct ancestor of $A$ in the corresponding premise is hereditarily principal for the rule instance (S), and the rule (S) is nonlogical.
26 26
  \item A cut-step is an \textit{anchored cut} if  either of its cut-formulas $A$ in the two premises are both hereditarily principal for nonlogical steps, or one is hereditarily principal for a nonlogical step and the other one is principal for a logical step.
27 27
  \end{itemize}
28 28
  \end{definition}
29 29
  As a consequence of this definition, an anchored cut on a formula $A$ has the following properties:
30 30
  \begin{itemize}
31
  \item At least one of the two premises of the cut has above it a sub-branch of the proof which starts (top-down) with a nonlogical rule (R) with $A$ as one of its principal formulas, and then a sequence of anchored cuts in which $A$ is part of the context.
32
  \item The other premise is either of the same form, or a logical step with principal formula $A$. 
31
  \item At least one of the two premises of the cut has above it a sub-branch of the proof which starts (top-down) with a nonlogical step (R) with $A$ as one of its principal formulas, and then a sequence of anchored cuts in which $A$ is part of the context.
32
  \item The other premise is either of the same form or is a logical step with principal formula $A$. 
33 33
  \end{itemize}
34 34
  
35 35
%  Now, for instance a cut on a (principal) formula $A \lor B$ between a rule $\rigrul{\lor}$ and a rule (R) (where  $A \lor B$ occurs in $\Sigma'$) is anchored, while a cut between 
CSL16/appendix-arithmetic.tex (revision 120)
64 64
where the proofs $\pi_i$ are obtainable from just logical rules.
65 65
\end{proof}
66 66

  
67
\paragraph*{Formulation of induction with designated premise for base case}
68
Here is the induction rule when there is a designated premise for the base case.
69
\begin{equation}
70
\label{eqn:ind-rul-base-prem}
71
\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  }
72
\end{equation}
73
As mentioned, this is not equivalent to the formulation given, due to the linear logic setting. From an axiomatic point of view, it is equivalent to the $\ind$ axiom with $!A(\epsilon)$ in place of $A(\epsilon)$.
67
%\paragraph*{Formulation of induction with designated premise for base case}
68
%Here is the induction rule when there is a designated premise for the base case.
69
%\begin{equation}
70
%\label{eqn:ind-rul-base-prem}
71
%\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  }
72
%\end{equation}
73
%As mentioned, this is not equivalent to the formulation given, due to the linear logic setting. From an axiomatic point of view, it is equivalent to the $\ind$ axiom with $!A(\epsilon)$ in place of $A(\epsilon)$.
74 74

  
75 75
%Proof that coherent ESs have a model:
76 76
%\begin{proof}[Proof of Prop.~\ref{prop:eq-spec-model}]
CSL16/preliminaries.tex (revision 120)
27 27
%\anupam{use a system that is already in De Morgan form, for simplicity.}
28 28
%\anupam{Have skipped units, can reconsider this when in arithmetic. Also in affine setting can be recovered by any contradiction/tautology.}
29 29

  
30
We formulate linear logic without units with usual notation for the multiplicatives, additives and exponentials from \cite{Girard87}. We restrict negation to the atoms, thus formulae are always in De Morgan normal form, and this is reflected in the sequent system below. We have included rules for arbitrary weakening for working in affine settings.
30
We formulate linear logic without units with usual notation for the multiplicatives, additives and exponentials from \cite{Girard87}. We restrict negation to the atoms, so that formulae are always in De Morgan normal form, 
31
%and this is reflected in the sequent system below. We have included 
32
and we also consider
33
rules for arbitrary weakening when working in affine settings.
31 34

  
32 35
%\anupam{positive and negative.}
33 36

  
34 37

  
35 38

  
39

  
40

  
36 41
\begin{definition}
37 42
%[Sequent calculus for linear logic]
38 43
%[Sequent calculus for affine linear logic]
39 44
\label{def:LLsequentcalculus}
40
The sequent calculus for (affine) linear logic is as follows:
45
The sequent calculus for (affine) linear logic is as follows:\footnote{We consider a two-sided system since it is more intuitive for certain nonlogical rules, e.g.\ induction, and also convenient for the witness function method we use in Sect.~\ref{sect:wfm}.}
41 46
\[
42 47
\small
43 48
\begin{array}{l}
......
121 126

  
122 127
We will use standard terminology to track formulae in proofs, as presented in e.g.\ \cite{Buss98:intro-proof-theory}.
123 128
In particular, each rule has a distinguished \textit{principal formula}, e.g.\
124
  $A \lor B$ in rule $\lefrul{\lor}$ (and similarly for all rules for connectives) and $?A$ in rule $\rigrul{\cntr}$, and \emph{active formulae}, e.g.\ $A$ and $B$ in $\lefrul{\lor}$ and so on. These induce the notions of (direct) descendants and ancestors in proofs, as in \cite{Buss98:intro-proof-theory}.
129
  $A \lor B$ in the rule $\lefrul{\lor}$ (and similarly for all rules for the binary connectives) and $?A$ in the rule $\rigrul{\cntr}$, and \emph{active formulae}, e.g.\ $A$ and $B$ in $\lefrul{\lor}$ and so on. These induce the notions of (direct) descendants and ancestors in proofs, as in \cite{Buss98:intro-proof-theory}.
125 130
%The  \textit{direct ancestor} relation on occurrences of formulas in a proof is defined to keep track of identity of formulas from line to line, in the usual way.
126 131
  
127 132
       
......
132 137
%  \anupam{mention equality rules}
133 138
%  \anupam{mention equality axioms and first-order theories and models at some point.}
134 139
  
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:
140
 A \emph{language} is a set of nonlogical symbols (i.e.\ constants, functions, predicates) and a \emph{theory} is a set of closed formulae over some language. We assume that all theories contain the axioms of equality:
136 141
% \[
137 142
% \begin{array}{rl}
138 143
%\refl & \forall x . x = x \\
......
165 170
$ !\Gamma,  ? \Pi$ are called \textit{context formulas}. In $\init$ $A$ is called a principal formula.
166 171
\item Each rule $(R)$ comes with a list $a_1$, \dots, $a_k$ of eigenvariables such that each $a_j$ appears in exactly one $\Sigma_i, \Delta_i$ (so in some active formulas of exactly one premise)  and does not appear in  $\Sigma', \Delta'$ or $ !\Gamma,  ? \Pi$.
167 172
    \item A system $\system$ of rules must be closed under substitutions of free variables by terms (where these substitutions do not contain the eigenvariables $a_j$ in their domain or codomain).  
168
   \item  In $(R)$  the sequence $ \Sigma'$ (resp. $\Delta'$) does not contain any formula of the shape $?B$ (resp. $!B$), and  in $\init$ the formula $A$ is not of the form  $!B$.
173
   \item  In $(R)$  the sequent $ \Sigma'$ (resp. $\Delta'$) does not contain any formula of the shape $?B$ (resp. $!B$), and  in $\init$ the formula $A$ is not of the form  $!B$.
169 174
 \end{enumerate}
170 175
 
171 176
%The distinction between modal and nonmodal formulae in $(R)$ induces condition 1
172
 Conditions 2 and 3 are actually standard for nonlogical rules, independently of the logical setting, c.f.\ \cite{Beckmann11}. Condition 2 reflects the intuitive idea that often we need in our nonlogical rules a notion of \textit{bound} variables in the active formulas (typically for induction rules), and the eigenvariables play this role. Condition 3 is needed for our proof system to admit elimination of cuts on quantified formulas. Condition 4 and the conventions of 1 is peculiar to our linear logic setting in order to carry out certain proof-theoretic manipulations, mainly free-cut elimination in Sect.~\ref{sect:free-cut-elim}.
177
 Conditions 2 and 3 are actually standard for nonlogical rules, independently of the logical setting, cf.\ \cite{Beckmann11}. Condition 2 reflects the intuitive idea that, in our nonlogical rules, we often need a notion of \textit{bound} variables in the active formulas (typically for induction rules), for which we rely on eigenvariables. Condition 3 is needed for our proof system to admit elimination of cuts on quantified formulas. Condition 4 
178
% and the conventions of 1 
179
 is peculiar to our linear logic setting in order to carry out certain proof-theoretic manipulations, mainly free-cut elimination in Sect.~\ref{sect:free-cut-elim}.
173 180
%  
174 181

  
175 182

  
......
235 242
\begin{proposition}
236 243
[Invertible rules, folklore]
237 244
\label{prop:invertible-rules}
238
The rules $\lefrul{\land}, \rigrul{\lor}, \lefrul{\lor}, \rigrul{\land}, \lefrul{\exists}, \rigrul{\forall}$ are invertible.
245
The rules $\lefrul{\land}, \rigrul{\lor}, \lefrul{\laor}, \rigrul{\laand}, \lefrul{\exists}, \rigrul{\forall}$ are invertible.
239 246
\end{proposition}
240 247
We will typically write $\inv{c}$ to denote the inverse derivation for a logical symbol $c$.
241 248

  
......
262 269
%The occurrence of $!$ in the deduction theorem above is crucial; this restriction is one of the reasons it can be difficult to reason informally in theories over linear logic.
263 270

  
264 271

  
265
For example, we can work in the following quantifier-free system for the theory of equality:
272
Due to these results notice that, in place of the equality axioms, we can work in a quantifier-free system of rules:
266 273
\begin{proposition}
267 274
	[Equality rules]
268 275
	\eqref{eqn:equality-theory} is equivalent to the following system of rules,

Formats disponibles : Unified diff