Révision 110

CSL16/main.tex (revision 110)
32 32
%\titlerunning{A Sample LIPIcs Article} %optional, in case that the title is too long; the running title should fit into the top page column
33 33

  
34 34
%% Please provide for each author the \author and \affil macro, even when authors have the same affiliation, i.e. for each author there needs to be the  \author and \affil macros
35
\author[1]{Patrick Baillot}
36
\author[2]{Anupam Das}
37
\affil[1]{Dummy University Computing Laboratory, Address/City, Country\\
38
  \texttt{open@dummyuniversity.org}}
39
\affil[2]{Department of Informatics, Dummy College, Address/City, Country\\
40
  \texttt{access@dummycollege.org}}
41
\authorrunning{J.\,Q. Open and J.\,R. Access} %mandatory. First: Use abbreviated first/middle names. Second (only in severe cases): Use first author plus 'et. al.'
35
\author{Patrick Baillot}
36
\author{Anupam Das}
37
\affil{LIP, Universit\'e de Lyon, CNRS, ENS Lyon, INRIA, Universit\'e Claude-Bernard Lyon 1, Milyon
38
%	\\
39
%	\texttt{open@dummyuniversity.org}
40
	}
41
%\affil[1]{Dummy University Computing Laboratory, Address/City, Country\\
42
%  \texttt{open@dummyuniversity.org}}
43
%\affil[2]{Department of Informatics, Dummy College, Address/City, Country\\
44
%  \texttt{access@dummycollege.org}}
45
\authorrunning{P.\ Baillot and A.\ Das} %mandatory. First: Use abbreviated first/middle names. Second (only in severe cases): Use first author plus 'et. al.'
42 46

  
43
\Copyright{John Q. Open and Joan R. Access}%mandatory, please use full first names. LIPIcs license is "CC-BY";  http://creativecommons.org/licenses/by/3.0/
47
\Copyright{Patrick Baillot and Anupam Das}%mandatory, please use full first names. LIPIcs license is "CC-BY";  http://creativecommons.org/licenses/by/3.0/
44 48

  
45
\subjclass{Dummy classification -- please refer to \url{http://www.acm.org/about/class/ccs98-html}}% mandatory: Please choose ACM 1998 classifications from http://www.acm.org/about/class/ccs98-html . E.g., cite as "F.1.1 Models of Computation". 
46
\keywords{Dummy keyword -- please provide 1--5 keywords}% mandatory: Please provide 1-5 keywords
47
% Author macros::end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
49
%\subjclass{Dummy classification -- please refer to \url{http://www.acm.org/about/class/ccs98-html}}% mandatory: Please choose ACM 1998 classifications from http://www.acm.org/about/class/ccs98-html . E.g., cite as "F.1.1 Models of Computation". 
50
%\keywords{Dummy keyword -- please provide 1--5 keywords}% mandatory: Please provide 1-5 keywords
51
%% Author macros::end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
48 52

  
49 53
%Editor-only macros:: begin (do not touch as author)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
50 54
\EventEditors{John Q. Open and Joan R. Acces}
......
63 67
\maketitle
64 68

  
65 69
\begin{abstract}
66
We prove a general form of `free-cut elimination' for first-order theories in linear logic, yielding normal forms of proofs where cuts are anchored to nonlogical steps. To demonstrate the usefulness of this result, we consider a version of Peano Arithmetic in linear logic, based on a previous axiomatisation by Bellantoni and Hofmann. We prove a witnessing theorem for a fragment of this arithmetic via the `witness function method', showing that the provably total functions are precisely the polynomial-time functions. The programs extracted are implemented in the framework of `safe' recursive functions, due to Bellantoni and Cook, where the ! modality of linear logic corresponds to normal inputs of a safe recursive function. We conclude with some comments for further applications of the free-cut elimination result. 
70
We prove a general form of `free-cut elimination' for first-order theories in linear logic, yielding normal forms of proofs where cuts are anchored to nonlogical steps. To demonstrate the usefulness of this result, we consider a version of arithmetic in linear logic, based on a previous axiomatisation by Bellantoni and Hofmann. We prove a witnessing theorem for a fragment of this arithmetic via the `witness function method', showing that the provably convergent functions are precisely the polynomial-time functions. The programs extracted are implemented in the framework of `safe' recursive functions, due to Bellantoni and Cook, where the ! modality of linear logic corresponds to normal inputs of a safe recursive program. 
71
%We conclude with some comments for further applications of the free-cut elimination result. 
67 72
 \end{abstract}
68 73

  
69 74

  
......
88 93

  
89 94
\bibliographystyle{plain}
90 95
\bibliography{biblio}
96
%
97
%\newpage
98
%
99
%\input{appendix}
91 100

  
92
\newpage
93

  
94
\input{appendix}
95

  
96 101
\end{document}
CSL16/bc.tex (revision 110)
1 1

  
2 2
\section{Bellantoni-Cook characterisation of polynomial-time functions}
3 3

  
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
We say that an expression is well-sorted if the arities of function symbols in it is respected.
4
We recall the Bellantoni-Cook  algebra BC of programs defined by \emph{safe} (or \emph{predicative}) recursion on notation \cite{BellantoniCook92}. These will be employed for proving both the completeness   (all polynomial time functions are provably convergent) and the soundness result (all provably total functions are polynomial time) of $\arith$. We consider function symbols $f$ over the domain  $\Word$ with sorted arguments $(\vec u ; \vec x)$, where the inputs $\vec u$ are called \textit{normal} and $\vec x$ are called \textit{safe}. 
5
%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.
6
%We say that an expression is well-sorted if the arities of function symbols in it is respected.
6 7

  
7 8
%\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 9
\begin{definition}
9 10
	[BC programs]
10
	BC is the set of programs over $\Word$ generated by the following initial functions and closure schemes.
11
	BC is the set of programs generated as follows:
11 12
	%	\paragraph{Initial functions}
12 13
%	The initial functions are:
13 14
	\begin{enumerate}
14
		\item The constant function $\epsilon$ which takes no arguments and outputs $\epsilon \in \Word$.
15
		\item The constant functions $\epsilon^k$ which takes $k$ arguments and outputs $\epsilon \in \Word$.
15 16
		\item The projection functions $\pi^{m,n}_k ( x_1 , \dots , x_m ; x_{m+1} , \dots, x_{m+n} )  := x_k$ for $n,m \in \Word$ and $1 \leq k \leq m+n$.
16 17
		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
17 18
		\item The predecessor function $\pred (; x) := \begin{cases}
......
37 38
%		\end{cases}$.
38 39
	\end{enumerate}
39 40
	
40
	One considers the following closure schemes:
41
%	One considers the following closure schemes:
41 42
	\begin{enumerate}
42 43
	\setcounter{enumi}{5}
43 44
	\item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is $f$ defined by,
......
55 56
	so long as the expression is well-formed.
56 57
	\end{enumerate}
57 58
	\end{definition}
58
Note that the  programs of this class can be defined by equational specifications in a natural way, and in the following we will thus silently identify a BC program with the corresponding equational specification.
59
%Note that the  programs of this class can be defined by equational specifications in a natural way, and in the following we will thus silently identify a BC program with the corresponding equational specification.
59 60

  
60
Now, the main property of BC programs is
61
\begin{theorem}\cite{BellantoniCook92}
62
The class of functions representable by BC programs is the class FP.
61
We will implicitly identify a BC program with the equational specification it induces.
62
The main property of BC programs is:
63
\begin{theorem}[\cite{BellantoniCook92}]
64
The class of functions representable by BC programs is $\FP$.
63 65
\end{theorem}	
64 66
Actually this property remains true if one replaces the PRN scheme by the following more general simultaneous PRN scheme \cite{BellantoniThesis}:
65 67

  
......
78 80

  
79 81
%\anupam{we implicitly associate a BC program with its equational specification} 
80 82

  
81
Consider a well-formed expression $t$ built from function symbols, initial functions and variables. One says that a variable $y$ is \textit{hereditarily safe} in $t$ if  for every subexpression $f(\vec{r}; \vec{s})$ of $t$ the terms in $\vec{r}$ do not contain any occurrence of $y$.  For instance $y$ is hereditarily safe in $f(u;y,g(v;y))$, but not in $f(g(v;y);x)$.
83
Consider a well-formed expression $t$ built from function symbols and variables. We say that a variable $y$ occurs \textit{hereditarily safe} in $t$ if, for every subexpression $f(\vec{r}; \vec{s})$ of $t$, the terms in $\vec{r}$ do not contain $y$.
84
For instance $y$ occurs hereditarily safe in $f(u;y,g(v;y))$, but not in $f(g(v;y);x)$.
82 85
\begin{proposition}
83 86
[Properties of BC programs]
84 87
\label{prop:bc-properties}
CSL16/wfm.tex (revision 110)
1 1
\section{Witness function method}
2 2
\label{sect:wfm}
3
We now prove the converse to the last section: any provably convergent function in $\arith$ is polynomial-time computable.
4
To this end we use the \emph{witness function method} (WFM), a common technique in {bounded arithmetic} \cite{Buss86book}.
3
We now prove the converse to the last section: any provably convergent function in $\arith$ is polynomial-time computable
4
%.
5
%To this end we use the \emph{witness function method} (WFM), a common technique in {bounded arithmetic} \cite{Buss86book}.
6
using the witness function method (WFM) \cite{Buss86book}.
5 7

  
6 8
The WFM differs from realisability and Dialectica style witnessing arguments mainly since it does not require functionals at higher type. Instead a translation is conducted directly from a proof in De Morgan normal form, i.e.\ with negation pushed to the atoms, relying on classical logic. 
7
Free-cut elimination is employed to control the quantifer complexity of formulae occurring in a proof, although here we furthermore use it to control the presence of \emph{contraction} in a proof, to which we have access via the modalities of linear logic.
9
%Free-cut elimination is employed to control the quantifer complexity of formulae occurring in a proof, although here we furthermore use it to control the presence of \emph{contraction} in a proof, to which we have access via the modalities of linear logic. This
8 10
%Free-cut elimination is employed to control the logical complexity of formulae occurring in a proof, and a formal `witness' predicate plays a similar role to the realisability predicate.
9 11

  
10
The combination of De Morgan normalisation and free-cut elimination plays a similar role to the double negation translation, and this is even more evident in our setting where the transformation of a classical proof to anchored form can be seen to be a partial `constructivisation' of the proof. As well as eliminating the (nonconstructive) occurrences of the $\forall$-right rule, as usual for the WFM, the linear logic refinement of the logical connectives means that right-contraction steps is also eliminated. This is important due to the fact that we are in a setting where programs are equational specifications, not formulae (as in bounded arithmetic) or combinatory terms (as in applicative theories), so we cannot in general decide atomic formulae.
12
The combination of De Morgan normalisation and free-cut elimination plays a similar role to the double-negation translation, and this is even more evident in our setting where the transformation of a classical proof to free-cut free form can be seen to be a partial `constructivisation' of the proof. As well as eliminating the (nonconstructive) occurrences of the $\forall$-right rule, as usual for the WFM, the linear logic refinement of the logical connectives means that right-contraction steps is also eliminated. This is important due to the fact that we are in a setting where programs are equational specifications, not formulae (as in bounded arithmetic \cite{Buss86book}) or combinatory terms (as in applicative theories \cite{Cantini02}), so we cannot in general decide atomic formulae.
11 13

  
12 14
%Some key features of this method are the following:
13 15
%\begin{itemize}
......
35 37
		
36 38
		\subsection{The translation}
37 39
		
38
We will associate to each (free-cut free) proof of a convergence statement in $\arith$ a function on $\Word$ defined by a BC program. In the next section we will show that this function satisfies the equational specification of the convergence statement, hence showing that any provably convergent function of $\arith$ is polynomial-time computable.\footnote{Strictly speaking, we will also require the equational specification at hand to be coherent, cf.\ Prop.~\ref{prop:eq-spec-model}.}
40
We will associate to each (free-cut free) proof of a convergence statement in $\arith$ a function on $\Word$ defined by a BC program. In the next section we will show that this function satisfies the equational specification of the convergence statement.
41
%, hence showing that any provably convergent function of $\arith$ is polynomial-time computable.\footnote{Strictly speaking, we will also require the equational specification at hand to be coherent, cf.\ Prop.~\ref{prop:eq-spec-model}.}
39 42
		
40 43
		\begin{definition}
41 44
			[Typing]
......
104 107
%			On the other hand, since we are working in affine logic, we do in general have $!(A \land B) \cong !A \land !B$.
105 108
%		\end{remark}
106 109
		
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.
110
					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 input variables, normal and safe respectively.
108 111
%		\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.}
109 112
		
110 113
	
111 114
		Let us fix a particular (coherent) equational specification $\eqspec(f)$. Rather than directly considering $\arith$-proofs of $\conv ( f , \eqspec )$, we will consider a $\closure{\eqspec} \cup \arith $ sequent proof of $!\word (\vec x) \seqar \word (f (\vec x) )$, under Lemma~\ref{lemma:spec-norm-form}. 
112 115
%		
113
		Our crucial use of free-cut elimination is in the following result, which yields strong regularity properties:
116
		Free-cut elimination crucially yields strong regularity properties:
114 117
		
115 118
		\begin{proposition}
116 119
			[Freedom]
......
347 350

  
348 351
%\anupam{need to mention that this predicate is similar to realisability predicate in absence, and indeed is presented like that for applicative theories, which also rely on free-cut elimination.}
349 352

  
350
Now that we have seen how to extract BC functions from proofs, we show that these functions satisfy the appropriate semantic properties, namely the equational program $\eqspec$ we started with. For this we turn to a quantifier-free classical theory, in a similar fashion to $\mathit{PV}$ for $S^1_2$ in \cite{Buss86book} or system $T$ in G\"odel's Dialectica interpretation. This is adequate since we only care about extensional properties of extracted functions at this stage, the complexity properties already handled by the BC programs we just constructed.
353
Now that we have seen how to extract BC functions from proofs, we show that these functions satisfy the appropriate semantic properties, namely the equational program $\eqspec$ we started with. For this we turn to a quantifier-free classical theory, in a similar fashion to $\mathit{PV}$ for $S^1_2$ in \cite{Buss86book} or system $T$ in G\"odel's Dialectica interpretation. This is adequate since we only care about extensional properties of extracted functions at this stage.\footnote{We could equally use a realisability approach, as done in e.g.\ \cite{Cantini02} and other works in applicative theories, since the formulae we deal with are essentially positive and so there is not much difference between the two approaches. Indeed here the witness predicate plays the same role as the realisability predicate in other works.}
354
%, the complexity properties already handled by the BC programs we just constructed.
351 355

  
352
We point out that we could equally use a realisability approach, as done in e.g.\ \cite{Cantini02} and other works in applicative theories, since the formulae we deal with are essentially positive and so there is not much difference between the two approaches. Indeed here the witness predicate plays the same role as the realisability predicate in other works.
353 356

  
357

  
354 358
%The witness predicate of the WFM is similar to the realisability predicate, and this is even more true in out setting
355 359

  
356 360
Let $\qfindth$ be the classical theory over the language $\{ \epsilon, \succ_0, \succ_1 , (f^k_i )\}$ obtained from the axioms $\sepeps, \sepzer, \sepone, \inj, \surj$ and $\ind$ by dropping all relativisations to $\word$ (or $!\word$), replacing all linear connectives by their classical counterparts, and restricting induction to only quantifier-free formulae.
......
365 369
		\newcommand{\witness}[2]{\mathit{Wit}^{#1}_{#2}}
366 370
		\begin{definition}
367 371
			[Witness predicate]
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$:
372
			\label{dfn:wit-pred}
373
			For formulae $A, B$ of $\arith$ 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$:
369 374
%			 $A$ with free variables amongst $\vec a$:
370 375
		
371 376
		\renewcommand{\sigma}{a}
......
437 442
		\end{definition}
438 443
		%	\todo{problem: what about complexity of checking equality? }
439 444
		
440
		\begin{remark}
445
%		\begin{remark}
441 446
		Notice that, unlike in the bounded arithmetic setting where the $\word$ predicate is redundant (since variables are tacitly assumed to range over $\word$), we do not parametrise the witness predicate by an assignment to the free variables of a formula. Instead these dependencies are taken care of by the explicit occurrences of the $\word$ predicate in $\arith$.
442
		\end{remark}
447
%		\end{remark}
443 448
		
444 449
%		\todo{Reformulate above later if necessary.}
445 450
		
......
456 461

  
457 462
\begin{lemma}
458 463
\label{lemma:witness-invariant}
459
Let $\pi$ be a free-cut free proof in $\closure{\eqspec}\cup \arith$, satisfying properties \ref{item:no-neg-word}, \ref{item:no-forall}, \ref{item:no-quest}, \ref{item:no-laor-step} of Prop.~\ref{prop:freedom}, of a sequent $\Gamma \seqar \Delta $. Let $\eqspec^\pi$ denote the equational specification induced by the BC program for $\vec f^\pi$.\footnote{We assume that the function symbols occurring in $\eqspec^\pi$ are distinct from those occurring in $\eqspec$.} Then $\qfindth$ proves:
464
Let $\pi$ be a free-cut free proof in $\closure{\eqspec}\cup \arith$, satisfying properties \ref{item:no-neg-word}, \ref{item:no-forall}, \ref{item:no-quest}, \ref{item:no-laor-step} of Prop.~\ref{prop:freedom}, of a sequent $\Gamma \seqar \Delta $. Let $\eqspec^\pi$ denote the equational specification for $\vec f^\pi$.\footnote{We assume that the function symbols occurring in $\eqspec^\pi$ are distinct from those occurring in $\eqspec$.} Then $\qfindth$ proves:
460 465
\[
461 466
\left(\forall \eqspec \cand \forall \eqspec^\pi \cand \witness{}{\bigotimes \Gamma} (\vec a)\right) \cimp \witness{}{\bigparr \Delta } (\vec f^\pi(\vec a))
462 467
\]
......
480 485
	
481 486
	
482 487
	\begin{proof}[Proof sketch]
483
	By structural induction on $\pi$, again, following the definition of $\vec f^\pi$. 
488
	By structural induction on $\pi$, again, following the definition of $\vec f^\pi$.\footnote{Notice that, since we are in a classical theory, the proof of the above lemma can be carried out in an arbitrary model, by the completeness theorem, greatly easing the exposition.}
484 489
	\end{proof}	
485
	Notice that, since we are in a classical theory, the proof of the above lemma can be carried out in an arbitrary model, by the completeness theorem, greatly easing the exposition.
490

  
486 491
	
487 492
	Finally, we arrive at our main result, providing a converse to Thm.~\ref{thm:arith-proves-bc-conv}.
488 493
		
......
501 506
%		\end{equation}
502 507
		\end{theorem}
503 508
		\begin{proof}
504
%		[Proof sketch]
505
		By Thm.~\ref{thm:free-cut-elim} and Lemma~\ref{lemma:spec-norm-form} we have a free-cut free proof $\pi$ in $\closure{\eqspec} \cup \arith$ of $!\word (\vec x ) \seqar \word (f (\vec x))$. By Lemma~\ref{lemma:witness-invariant} above this means that $\vec a = \vec x \cimp f^\pi (\vec a) = f(\vec x)$ is true in any model of $\qfindth$ satisfying $\eqspec$ and $\eqspec^\pi$. 
506
%		Since some model must exist by coherence (cf.\ Prop.~\ref{prop:eq-spec-model}), we have that 
507
		Using the fact that $\eqspec \cup \eqspec^\pi$ is coherent we can construct such a model, similarly to Prop.~\ref{prop:eq-spec-model}, which will contain $\Word$ as an initial segment, in which we must have $f^\pi (\vec x) = f (\vec x)$ for every $\vec x \in \Word$, as required.\todo{polish}
509
		[Proof sketch]
510
%		By Thm.~\ref{thm:free-cut-elim} and Lemma~\ref{lemma:spec-norm-form} we have a free-cut free proof $\pi$ in $\closure{\eqspec} \cup \arith$ of $!\word (\vec x ) \seqar \word (f (\vec x))$. By Lemma~\ref{lemma:witness-invariant} above this means that $\vec a = \vec x \cimp f^\pi (\vec a) = f(\vec x)$ is true in any model of $\qfindth$ satisfying $\eqspec$ and $\eqspec^\pi$. 
511
%%		Since some model must exist by coherence (cf.\ Prop.~\ref{prop:eq-spec-model}), we have that 
512
%		Using the fact that $\eqspec \cup \eqspec^\pi$ is coherent we can construct such a model, similarly to Prop.~\ref{prop:eq-spec-model}, which will contain $\Word$ as an initial segment, in which we must have $f^\pi (\vec x) = f (\vec x)$ for every $\vec x \in \Word$, as required.\todo{polish}
513
Follows from Lemmas~\ref{lemma:spec-norm-form} and \ref{lemma:witness-invariant}, Dfn.~\ref{dfn:wit-pred} and coherence of $\eqspec$, cf.~\ref{prop:eq-spec-model}.
508 514
		\end{proof}
509 515
		
510 516
%			\begin{proof}
CSL16/arithmetic.tex (revision 110)
269 269
%
270 270
%\anupam{`coherent' programs, defined by Leivant. = consistent so has a model.}
271 271

  
272
As in the work of Bellantoni and Hofmann \cite{BelHof:02} and Leivant before \cite{Leivant94:found-delin-ptime}, our model of computation is that of Herbrand-G\"odel style \emph{equational specifications}. These are expressive enough to define every partial recursive function, which is the reason why we also need the $\word$ predicate to have a meaningful notion of `provably total function'.
272
As in the work of Bellantoni and Hofmann \cite{BelHof:02} and Leivant before \cite{Leivant94:found-delin-ptime}, our model of computation is that of Herbrand-G\"odel style \emph{equational specifications}. These are expressive enough to define every partial recursive function, which is the reason why we also need the $\word$ predicate to have a meaningful notion of `provably convergent function'.
273 273

  
274 274
\begin{definition}
275 275
	[Equational specifications and convergence]
......
285 285
	\end{definition}
286 286
	
287 287
	
288
The notion of coherence appeared in \cite{Leivant94:found-delin-ptime} and it is important to prevent a convergence statement from being a vacuous implication. In this work we will typically consider only coherent ESs, relying on the following result:
288
The notion of coherence appeared in \cite{Leivant94:found-delin-ptime} and it is important to prevent a convergence statement from being a vacuous implication. In this work we will typically consider only coherent ESs, relying on the following result which is also essentially in \cite{Leivant94:found-delin-ptime}:
289 289
\begin{proposition}
290 290
	\label{prop:eq-spec-model}
291 291
%	For every equational specification $\eqspec$, its universal closure has a model.
292
The universal closure of any coherent ES $\eqspec$ has a model satisfying $\basic \cup \ind$.
292
The universal closure of any coherent ES $\eqspec$ has a model satisfying $\basic + \ind$.
293 293
\end{proposition}
294 294

  
295
\begin{proof}
296
%\todo{ take $\Word \cup \{\bot\}$ or use completeness? Omit if no time. }
297
Consider the standard model $\Word $ extended by an element $\infty$ with $\succ_0 \infty = \succ_1 \infty = \infty$. Setting $\word = \Word$ means this model satisfies $\basic$. Now, for each function symbol $f$, define $f(\sigma) = \tau$ for every $\sigma, \tau \in \Word$ for which this equation is forced by $\eqspec$. Otherwise define $f(\sigma) = f(\infty) = \infty$.
298
\todo{replace with argument using completeness.}
299
\end{proof}
295
%\begin{proof}
296
%%\todo{ take $\Word \cup \{\bot\}$ or use completeness? Omit if no time. }
297
%Consider the standard model $\Word $ extended by an element $\infty$ with $\succ_0 \infty = \succ_1 \infty = \infty$. Setting $\word = \Word$ means this model satisfies $\basic$. Now, for each function symbol $f$, define $f(\sigma) = \tau$ for every $\sigma, \tau \in \Word$ for which this equation is forced by $\eqspec$. Otherwise define $f(\sigma) = f(\infty) = \infty$.
298
%\todo{replace with argument using completeness.}
299
%\end{proof}
300 300

  
301 301
	One issue is that a convergence statement contains universal quantifiers, which is problematic for the extraction of functions by the witness function method later on.
302 302
%	\footnote{Intuitively universal quantifiers can be interpreted by type 1 functions. From here, in an intuitionistic setting, a $\forall$-right step can be directly realised, but in the classical setting the presence of side-formulae on the right can cause issues for constructivity.}
303 303
	We avoid this problem by appealing to the deduction theorem and further invertibility arguments:
304 304
	
305 305
	
306
	Let us write $\closure{\eqspec}$ for the closure of a specification $\eqspec$ under substitution of terms.
306
	Let us write $\closure{\eqspec}$ for the closure of a specification $\eqspec$ under substitution of terms for free variables.
307 307
	
308 308
	\begin{lemma}
309 309
		\label{lemma:spec-norm-form}
......
317 317

  
318 318

  
319 319
\subsection{$\word$-guarded quantifiers, rules and cut-reduction cases}
320
We formulate a quantifier hierarchy here analogous to the arithmetical hierarchy, where each class is closed under positive multiplicative operations.
320
We consider a quantifier hierarchy here analogous to the arithmetical hierarchy, where each class is closed under positive multiplicative operations. In the scope of this work we are only concerned with the first level:
321 321

  
322 322
%We now introduce a quantifier hierarchy of formulae so we can identify the theories that we will be concerned with for the remainder of this article.
323 323
%
324 324
%
325 325
\begin{definition}
326
[Quantifier hierarchy]
327
	We define $\Sigma^\word_0 = \Pi^\word_0 $ as the class of multiplicative formulae that are free of quantifiers. For $i> 0$ we define $\Sigma^\word_i$ and $\Pi^\word_i$ as follows:
328
	\begin{itemize}
329
		\item If $A \in \Sigma^\word_{i-1} \cup \Pi^\word_{i-1}$ then $A \in \Sigma^\word_i$ and $A \in \Pi^\word_i$.
330
		\item If $A \in \Sigma^\word_i$ then $\exists x^\word . A \in \Sigma^\word_i$.
331
		\item If $A \in \Pi^\word_i$ then $\forall x^\word . A \in \Pi^\word_i$.
332
		\item If $A,B \in \Sigma^\word_i$ then $A \lor B$ and $A\land B \in \Sigma^\word_i$.
333
		\item If $A,B \in \Pi^\word_i$ then $A \lor B$ and $A\land B \in \Pi^\word_i$.
334
	\end{itemize}
335
	We add $+$ in superscript to a class to restrict it to formulae where $\word$ occurs in only positive context.\footnote{Since our proof system is in De Morgan normal form, this is equivalent to saying that there is no occurrence of $\word^\bot$.}
326
%[Quantifier hierarchy]
327
	We define $\sigzer $ as the class of multiplicative formulae that are free of quantifiers where $\word$ occurs positively.\footnote{Since our proof system is in De Morgan normal form, this is equivalent to saying that there is no occurrence of $\word^\bot$.}
328
	The class $\sigone$ is the closure of $\sigzer$ by $\exists$, $\lor$ and $\land$.
329
%	For $i> 0$ we define $\Sigma^\word_i$ and $\Pi^\word_i$ as follows:
330
%	\begin{itemize}
331
%		\item If $A \in \Sigma^\word_{i-1} \cup \Pi^\word_{i-1}$ then $A \in \Sigma^\word_i$ and $A \in \Pi^\word_i$.
332
%		\item If $A \in \Sigma^\word_i$ then $\exists x^\word . A \in \Sigma^\word_i$.
333
%		\item If $A \in \Pi^\word_i$ then $\forall x^\word . A \in \Pi^\word_i$.
334
%		\item If $A,B \in \Sigma^\word_i$ then $A \lor B$ and $A\land B \in \Sigma^\word_i$.
335
%		\item If $A,B \in \Pi^\word_i$ then $A \lor B$ and $A\land B \in \Pi^\word_i$.
336
%	\end{itemize}
337
%	We add $+$ in superscript to a class to restrict it to formulae where $\word$ occurs in only positive context.
336 338
\end{definition}
337 339

  
338 340
For the remainder of this article we mainly work with the theory $\arith$, i.e.\ $\basic + \cax{\sigone}{\ind}$.
339 341

  
340
\vspace{1em}
342
%\vspace{1em}
341 343

  
342
It will be useful for us to work with proofs with the `guarded' quantifiers $\forall x^\word$ and $\exists x^\word$ in place of there unguarded counterparts, in particular to carry out the argument in Sect.~\ref{sect:wfm}. To this end we introduce rules for these guarded quantifiers and show that they are compatible with free-cut elimination.
343

  
344
It will be useful for us to work with proofs using the `guarded' quantifiers $\forall x^\word$ and $\exists x^\word$ in place of there unguarded counterparts, in particular to carry out the argument in Sect.~\ref{sect:wfm}. 
345
%To this end we introduce rules for these guarded quantifiers and show that they are compatible with free-cut elimination.
346
%
344 347
%For the quantifiers $\exists x^N $ and $\forall x^N$ we introduce the following rules, which are compatible with free-cut elimination:
345 348
%For the quantifiers $\exists x^\word $ and $\forall x^\word$ we 
346
We define the following rules, which are derivable:
349
Therefore we define the following rules, which are already derivable:
347 350
\[
348 351
%\begin{array}{cc}
349 352
%\vlinf{}{}{\Gamma \seqar \Delta, \forall x^\word . A(x)}{\Gamma, \word(a) \seqar \Delta , A(a)}
......
367 370
%\begin{proposition}
368 371
%	Any principal cut between the quantifier rules above and a logical step is reducible.
369 372
%	\end{proposition}
373

  
374
We now show that these rules are compatible with free-cut elimination.
375

  
370 376
\begin{proposition}\label{prop:logicalstepguardedquantifer}
371 377
	Any cut between the principal formula of a quantifier rule above and the principal formula of  a logical step is reducible.
372 378
	\end{proposition}
373 379
\begin{proof}
374
 In the case of such a cut on $\forall x^\word . A(x)$ formula, the reduction is obtained by performing successively the two reduction steps for the $\forall$ and $\limp$ connectives. The case of   $\exists x^\word A(x)$ is similar. 
380
 For a cut on $\forall x^\word . A(x)$, the reduction is obtained by performing successively the two reduction steps for the $\forall$ and $\limp$ connectives. The case of $\exists x^\word A(x)$ is similar. 
375 381
\end{proof}	
376 382
	
377 383
		\begin{corollary}
378 384
		[Free-cut elimination for guarded quantifiers]
379
		  Given a system  $\system$, any  $\system$-proof $\pi$ using $\exists x^\word $ and $\forall x^\word$  rules can be transformed into a $\system$-proof $\pi'$ with same end sequent and no free cuts.
385
		\label{cor:free-cut-elim-guarded-quants}
386
		  Given a system  $\system$, any  $\system$-proof $\pi$ using $\exists x^\word $ and $\forall x^\word$  rules can be transformed into free-cut free form.
380 387
\end{corollary}
381
\begin{proof}
382
  First translate the proof $\pi$ into the proof $\pi_0$ where all guarded quantifiers rules have been replaced by their derivation, and say that two rule instances in $\pi_0$ are \textit{siblings} if they come from the same derivation of a guarded quantifier rule. So in $\pi_0$ any two sibling rules are consecutive. Now observe that in the free-cut elimination procedure:
383
  \begin{itemize}
384
  \item when we do a commutation step of a cut with a $\forall$ (resp. $\exists$ rule) that has a sibling, we can follow it by another commutation of cut with its sibling,
385
  \item when we do a logical cut-elimination step on a $\forall$ (resp. $\exists$ rule) that has a sibling, we can follow it by a logical cut-elimination step on its sibling, as illustrated by Prop. \ref{prop:logicalstepguardedquantifer}.
386
  \end{itemize}
387
  In this way sibling rules remain consecutive in the proof-tree throughout the reduction, and the procedure transforms the proof into one with only anchored cuts.
388
\end{proof}
388
%\begin{proof}
389
%  First translate the proof $\pi$ into the proof $\pi_0$ where all guarded quantifiers rules have been replaced by their derivation, and say that two rule instances in $\pi_0$ are \textit{siblings} if they come from the same derivation of a guarded quantifier rule. So in $\pi_0$ any two sibling rules are consecutive. Now observe that in the free-cut elimination procedure:
390
%  \begin{itemize}
391
%  \item when we do a commutation step of a cut with a $\forall$ (resp. $\exists$ rule) that has a sibling, we can follow it by another commutation of cut with its sibling,
392
%  \item when we do a logical cut-elimination step on a $\forall$ (resp. $\exists$ rule) that has a sibling, we can follow it by a logical cut-elimination step on its sibling, as illustrated by Prop. \ref{prop:logicalstepguardedquantifer}.
393
%  \end{itemize}
394
%  In this way sibling rules remain consecutive in the proof-tree throughout the reduction, and the procedure transforms the proof into one with only anchored cuts.
395
%\end{proof}
396

  
389 397
As a consequence of this Corollary observe that any $I\Sigma^\word_{i}$-proof (ot $I\Pi^\word_{i}$-proof) can be transformed into a proof which is free-cut free and whose formulas contain only $\word$-guarded quantifiers.   
CSL16/biblio.bib (revision 110)
234 234
  pages={1--78},
235 235
  year={1998}
236 236
}
237
@incollection{Miller04,
238
	year = {2004},
239
	author = {Dale Miller},
240
	editor = {Thomas Ehrhard},
241
	pages = {316--119},
242
	booktitle = {Linear Logic in Computer Science},
243
	publisher = {Cambridge University Press},
244
	title = {Overview of Linear Logic Programming}
245
}
237 246

  
238 247

  
239 248

  
240 249

  
250
@article{Andreoli92,
251
	author    = {Jean{-}Marc Andreoli},
252
	title     = {Logic Programming with Focusing Proofs in Linear Logic},
253
	journal   = {J. Log. Comput.},
254
	volume    = {2},
255
	number    = {3},
256
	pages     = {297--347},
257
	year      = {1992},
258
	url       = {http://dx.doi.org/10.1093/logcom/2.3.297},
259
	doi       = {10.1093/logcom/2.3.297},
260
	timestamp = {Wed, 29 Jun 2011 15:52:24 +0200},
261
	biburl    = {http://dblp.uni-trier.de/rec/bib/journals/logcom/Andreoli92},
262
	bibsource = {dblp computer science bibliography, http://dblp.org}
263
}
264
@article{FriedmanM92,
265
	author    = {Harvey Friedman and
266
	Robert K. Meyer},
267
	title     = {Whither Relevant Arithmetic?},
268
	journal   = {J. Symb. Log.},
269
	volume    = {57},
270
	number    = {3},
271
	pages     = {824--831},
272
	year      = {1992},
273
	url       = {http://dx.doi.org/10.2307/2275433},
274
	doi       = {10.2307/2275433},
275
	timestamp = {Tue, 05 Aug 2014 16:36:24 +0200},
276
	biburl    = {http://dblp.uni-trier.de/rec/bib/journals/jsyml/FriedmanM92},
277
	bibsource = {dblp computer science bibliography, http://dblp.org}
278
}
241 279

  
242 280

  
243 281

  
282
@preprint{BaiDas,
283
	author = {Patrick Baillot and Anupam Das},
284
	title = {Free-cut elimination in linear logic and an application to a feasible arithmetic},
285
	year = {2016},
286
	note = {\url{http://www.anupamdas.com/free-cut-elim-ll-feas.pdf}}
287
	}
244 288

  
245 289

  
246 290

  
......
265 309

  
266 310

  
267 311

  
268

  
269

  
CSL16/free-cut-elim.tex (revision 110)
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. They are called \textit{anchored cuts}.
5
   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.
6
  % Consider for instance the following derivation, where we have underlined principal formulas:
7
  See for instance (the principal formulas are underlined):
8
  \patrick{Anupam, could you please display this derivation in a suitable way?}
9
  \[
10
  \vlderivation{
11
\vliin{cut_2}{}{ \seqar  \Delta}{
12
\vliin{cut_1}{}{\seqar A_2 }{\vlin{\rigrul{\lor}}{}{\seqar \underline{A_1}}{}}{\vliin{(R)}{}{\underline{A_1}\seqar \underline{A_2}}{}{} }
13
}{
14
\vliin{\lefrul{\land}}{}{\underline{A_2}\seqar \Delta}{}{}
15
}
16
}
17
\]
18
  Here $cut_1$ is anchored in this sense, but not $cut_2$.   Therefore we propose a more general definition:
4
  We need first to define which cuts will remain in proofs after reduction.
5
%  They are called \textit{anchored cuts}.
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
%  % Consider for instance the following derivation, where we have underlined principal formulas:
8
%  See for instance (the principal formulas are underlined):
9
%  \patrick{Anupam, could you please display this derivation in a suitable way?}
10
%  \[
11
%  \vlderivation{
12
%\vliin{cut_2}{}{ \seqar  \Delta}{
13
%\vliin{cut_1}{}{\seqar A_2 }{\vlin{\rigrul{\lor}}{}{\seqar \underline{A_1}}{}}{\vliin{(R)}{}{\underline{A_1}\seqar \underline{A_2}}{}{} }
14
%}{
15
%\vliin{\lefrul{\land}}{}{\underline{A_2}\seqar \Delta}{}{}
16
%}
17
%}
18
%\]
19
%  Here $cut_1$ is anchored in this sense, but not $cut_2$.   Therefore we propose a more general definition:
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'.
19 21
    \begin{definition}\label{def:anchoredcut}
20
  We define in a mutual inductive way the notion of \textit{hereditarily principal formula} and \textit{anchored cut} in a $\mathcal T$-proof :
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$:
21 23
  \begin{itemize}
22
  \item A formula $A$ in a sequent $\Gamma \seqar \Delta$ is \textit{hereditarily principal} for a rule (S), if either (i) the sequent is conclusion of the rule (S) and $A$ is principal in it, or 
23
(ii)  the sequent is 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 non-logical.
24
  \item An instance of cut rule is an \textit{anchored cut} if  either its cut-formulas $A$ in the two premises are both hereditarily principal for non-logical rules, or one is hereditarily principal for a non-logical rule and the other one is principal for a logical rule.
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.
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.
25 27
  \end{itemize}
26 28
  \end{definition}
27
  So as a consequence of this definition, an anchored cut on a formula $A$ is of the following form:
29
  As a consequence of this definition, an anchored cut on a formula $A$ has the following properties:
28 30
  \begin{itemize}
29
  \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 non-logical 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;
30
  \item the other premise is either of the same form, or a logical rule 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 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 33
  \end{itemize}
32 34
  
33 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 
......
35 37
   
36 38
   A cut which is not anchored will also be called a \textit{free-cut}.
37 39
  
38
  With this new definition both $cut_1$ and $cut_2$ in the previous example are anchored.
40
%  With this new definition both $cut_1$ and $cut_2$ in the previous example are anchored.
39 41
   
40 42
%   \patrick{@Anupam: if we need to shorten this part, I think we should anyway keep the key lemmas \ref{lem:hereditaryprincipalnonlogical} and \ref{lem:keycommutations}.  In the proof of the thm itself, I would give priority to keep the first case, maybe by skipping the first situation and keeping the second item, $S_1$=$!r$, $?l$ or $R$. Second case could be kept too, and third case could be briefly summarized and pushed in the appendix or online version.}
41 43
   
42
   Let us first prove a key lemma on hereditarily principal formulas:
44
%   Let us first prove a key lemma on hereditarily principal formulas:
45
Due to condition 4 in Sect.~\ref{sect:preliminaries}, we have the following:
43 46
   \begin{lemma}\label{lem:hereditaryprincipalnonlogical}
44
   A formula occurrence $A$ on the l.h.s. (resp. r.h.s.) of a sequent and hereditarily principal for a non-logical rule (R) 
47
   A formula occurrence $A$ on the LHS (resp.\ RHS) of a sequent and hereditarily principal for a nonlogical rule (R) 
45 48
   cannot be of the form $A=?A'$ (resp. $A=!A'$).
46 49
   \end{lemma}
47
   \begin{proof}
48
   Assume that $A$ is an occurrence of formula on the l.h.s. of the sequent and hereditarily principal for a non-logical rule (R), then a direct ancestor of this formula is principal for (R) and thus by condition 4. $A$ cannot be of the form $?A'$. The other case is identical.
49
   \end{proof}
50
  
50 51
   
51 52
   Now we can state the main result of this section:
52 53
   \begin{theorem}
53
   \label{thm:free-cut-elim}[Free-cut elimination]
54
    Given a theory  $\mathcal{T}$, any  $\mathcal T$-proof $\pi$ can be transformed into a $\mathcal T$-proof $\pi'$ with same conclusion sequent and without any free-cut.
54
   [Free-cut elimination]
55
   \label{thm:free-cut-elim}
56
    Given a system  $\system$, any  $\system$-proof $\pi$ can be transformed into a $\system$-proof $\pi'$ with same conclusion sequent and without any free-cuts.
55 57
   \end{theorem}
56 58
    %The proof will be given below. It will proceed
57
     The proof proceeds in a way similar to the classical proof of cut elimination for linear logic, but here for eliminating only free-cuts, and one has to check that all steps of the reasoning are compatible with the fact that the proof here also contains $\mathcal{T}$ rules. 
58
%     Define the \textit{degree} of a formula as the number of logical connectives or quantifiers in it.  Let us first state an easy building-block of the proof, which comes from standard linear logic:
59
%    \begin{lemma}[Logical non-exponential cut-elimination steps]\label{lem:logical steps}
60
%    Any cut $c$ whose cut-formulas $A$ are both principal formulas of logical rules distinct from $?$, $!$, $wk$, $cntr$ rules can be replaced in one step by cuts on formulas of strictly lower degree (0, 1 or 2 cuts).
61
%    \end{lemma}
62
%    \begin{proof}
63
%    This is exactly as in plain linear logic. Just note that the case of a quantifier formula involves a substitution by a term $t$ throughout the proof, and this is where we need condition 3 on non-logical rules requiring that they are closed by substitution.
64
%    \end{proof}
65
    Actually the most important part of the proof of Thm \ref{thm:free-cut-elim} is  the handling of the commutation steps, since this is where the new non-logical rules could raise some problems.
59
     The proof proceeds in a way similar to the classical proof of cut elimination for linear logic,
60
%, but here for eliminating only free-cuts, and one has to check that all steps of the reasoning are compatible with the fact that the proof here also contains $\mathcal{T}$ rules. 
61
%%     Define the \textit{degree} of a formula as the number of logical connectives or quantifiers in it.  Let us first state an easy building-block of the proof, which comes from standard linear logic:
62
%%    \begin{lemma}[Logical non-exponential cut-elimination steps]\label{lem:logical steps}
63
%%    Any cut $c$ whose cut-formulas $A$ are both principal formulas of logical rules distinct from $?$, $!$, $wk$, $cntr$ rules can be replaced in one step by cuts on formulas of strictly lower degree (0, 1 or 2 cuts).
64
%%    \end{lemma}
65
%%    \begin{proof}
66
%%    This is exactly as in plain linear logic. Just note that the case of a quantifier formula involves a substitution by a term $t$ throughout the proof, and this is where we need condition 3 on non-logical rules requiring that they are closed by substitution.
67
%%    \end{proof}
68
%    Actually the most important part of the proof of Thm \ref{thm:free-cut-elim} is  the handling of the commutation steps, since this is where the new non-logical rules could raise some problems.
69
but eliminating only free-cuts and verifying compatibility with our notion of nonlogical rule, in particular for the commutation cases.
66 70
     
67
     First, observe that the only rules in which there is a condition on the context are the following ones: $(\rigrul{\forall})$, $(\lefrul{\exists})$, $(\rigrul{!})$, $(\lefrul{?})$, $(R)$. These are thus the rules for which the commutation with cut steps are not straightforward. Commutations with logical rules  other than $(\rigrul{!})$, $(\lefrul{?})$ are done in the standard way, as in plain linear logic:
71
     First, observe that the only rules in which there is a condition on the context are the following ones: $(\rigrul{\forall})$, $(\lefrul{\exists})$, $(\rigrul{!})$, $(\lefrul{?})$, $(R)$. These are thus the rules for which the commutation with cut steps are not straightforward. Commutations with logical rules  other than $(\rigrul{!})$, $(\lefrul{?})$ are done in the standard way, as in pure linear logic:\footnote{Note that, for the $(\rigrul{\forall})$, $(\lefrul{\exists})$ rules, there might also be a global renaming of eigenvariables if necessary.}
68 72
     \begin{lemma}[Standard commutations]\label{lem:standardcommutations}
69 73
     Any logical rule  distinct from $(\rigrul{!})$, $(\lefrul{?})$ can be commuted top-down with any cut $c$. If the logical rule is binary this will produce two cuts.
70 74
     \end{lemma}
71
    (Just remind that for  $(\rigrul{\forall})$, $(\lefrul{\exists})$ rules this can involve renaming of eigenvariables if necessary.)
72 75
    
76
    
73 77
%     In the following we will need to be more careful about rules $(\rigrul{!})$, $(\lefrul{?})$, $(R)$. For that we establish our second key lemma:
74 78
        For rules $(\rigrul{!})$, $(\lefrul{?})$, $(R)$ we establish our second key lemma:
75 79
  \begin{lemma}[Key commutations]\label{lem:keycommutations}
......
77 81
 \[
78 82
     \vliinf{cut}{}{ !\Gamma', \Gamma,  \Sigma'   \seqar \Delta', ?A, ?\Pi, ?\Pi'}
79 83
                    { \vlinf{(R)}{}{!\Gamma, \Sigma'  \seqar \Delta', ?A, ?\Pi}{  \{ !\Gamma, \Sigma_i  \seqar \Delta_i, ?A, ?\Pi \}_{i\in I} } }
80
                    {  \vlinf{}{}{?A, !\Gamma' \seqar  ?\Pi'}{} } 
84
                    {  
85
%                    	\vlinf{}{}{?A, !\Gamma' \seqar  ?\Pi'}{} 
86
?A, !\Gamma' \seqar  ?\Pi'
87
                    	} 
81 88
\]
82
    Similarly if $(R)$ is replaced with $(\rigrul{!})$, with $?A$ in its r.h.s. context. Similarly also for the symmetric situations:
83
    cut on the l.h.s. of the conclusion of an $(R)$ or a $(\lefrul{?})$ rule on a (non-principal) formula $!A$, with a sequent $!\Gamma' \seqar  ?\Pi', !A$.
89
    Similarly if $(R)$ is replaced with $(\rigrul{!})$, with $?A$ in its RHS context, and also for the symmetric situations:
90
    cut on the LHS of the conclusion of an $(R)$ or a $(\lefrul{?})$ step on a (non-principal) formula $!A$, with a sequent $!\Gamma' \seqar  ?\Pi', !A$.
84 91
  \end{lemma}  
85 92
     \begin{proof}
86
     The first subderivation can be replaced by:
93
     The left subderivation can be replaced by:
87 94
      \[
88 95
     \vlinf{(R)}{}{ !\Gamma', !\Gamma,  \Sigma'   \seqar \Delta', ?\Pi, ?\Pi'}
89
                                 { \vliinf{cut}{}{\{!\Gamma', !\Gamma, \Sigma_i  \seqar \Delta_i, ?\Pi,?\Pi' \}_{i\in I}} { \vlinf{}{}{ !\Gamma, \Sigma_i  \seqar \Delta_i, ?A, ?\Pi}{}} {  \vlinf{}{}{?A, !\Gamma' \seqar  ?\Pi'}{} } }
96
                                 { \vliinf{cut}{}{\{!\Gamma', !\Gamma, \Sigma_i  \seqar \Delta_i, ?\Pi,?\Pi' \}_{i\in I}} {
97
%                                 		 \vlinf{}{}{ !\Gamma, \Sigma_i  \seqar \Delta_i, ?A, ?\Pi}{}
98
 !\Gamma, \Sigma_i  \seqar \Delta_i, ?A, ?\Pi
99
                                 		 } {
100
%                                 		  \vlinf{}{}{?A, !\Gamma' \seqar  ?\Pi'}{} 
101
?A, !\Gamma' \seqar  ?\Pi'
102
                                 		  } }
90 103
                                 \]
91 104
     Here if an eigenvariable in $\Sigma_i, \Delta_i$ happens to be free in $!\Gamma', ?\Pi'$ we rename it to avoid the collision, which is possible because by condition 2 on non-logical rules these eigenvariables do not appear in $\Sigma', \Delta'$ or $!\Gamma, ?\Pi$. So the occurrence of $(R)$ in this new subderivation is valid.
92 105
     
93
     Similarly  for the symmetric derivation with a   cut on the l.h.s. of the conclusion of an $(R)$ on a formula $!A$.
94
     The analogous situations with rules  $(\rigrul{!})$ and $(\lefrul{?})$ are handled in the same way, and were already known in linear logic.
106
     Similarly  for the symmetric derivation with a cut on the LHS of the conclusion of an $(R)$ on a formula $!A$.
107
     The analogous situations with rules  $(\rigrul{!})$ and $(\lefrul{?})$ are handled in the same way, as usual in linear logic.
95 108
     \end{proof}
96 109
     %Now we have all the necessary lemmas to proceed with the proof of the theorem.
97
    Now we can proceed:
98
    \begin{proof} (proof sketch of Thm  \ref{thm:free-cut-elim})
99
    Given a cut rule $c$ in a proof $\pi$, we call  \emph{degree} $\deg( c)$  the number of connectives and quantifiers of its  cut-formula. Now the \emph{degree} of the proof $\deg( \pi)$ is the multiset of the degrees of its non-anchored formulas. The degrees will be compared with the multiset ordering.
110

  
111
    Now we can prove the main free-cut elimination result:
112
    \begin{proof}[Proof sketch of Thm.~\ref{thm:free-cut-elim}]
113
    Given a cut step $c$ in a proof $\pi$, we call  \emph{degree} $\deg( c)$  the number of connectives and quantifiers of its  cut-formula. Now the \emph{degree} of the proof $\deg( \pi)$ is the multiset of the degrees of its non-anchored formulas. The degrees will be compared with the multiset ordering.
100 114
       The demonstration proceeds by induction on the degree  $\deg( \pi)$.  For a given degree we proceed with a sub-induction on the \textit{height} $\height{\pi}$ of the proof.
101 115
    
102 116
    Consider a proof $\pi$ of non-null degree. We want to show how to reduce it to a proof of strictly lower degree. Consider a top-most non-anchored cut $c$ in $\pi$, that is to say such that there is no non-anchored cut above $c$.  Let us call $A$ the cut-formula, and $(S_1)$ (resp. $(S_2)$) the rule above the left (resp. right) premise of $c$.  
103 117
\[    
104 118
     \vliinf{c \; \; \cut}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \vlinf{S_1}{}{\Gamma \seqar \Delta, A}{} }{\vlinf{S_2}{}{\Sigma, A \seqar \Pi}{}}
105 119
\]
106
    Intuitively we proceed as follows: if $A$ is not hereditarily principal in one of its premises  we will try to commute $c$ with the rule along its left premise  $(S_1)$, and if it is not possible commute it   with the rule along its right premise  $(S_2)$, by using Lemmas \ref{lem:hereditaryprincipalnonlogical} and \ref{lem:standardcommutations}; if $A$ is hereditarily principal in both premises we proceed with a cut-elimination step, as in standard linear logic. For this second step, the delicate part is the elimination of exponential cuts, for which we use a big-step reduction; it works well because the contexts in the non-logical rules $(R)$ are marked with $!$ (resp. $?$) on the l.h.s. (resp. r.h.s.). See the appendix for the full proof.
120
    Intuitively we proceed as follows: if $A$ is not hereditarily principal in one of its premises  we try to commute $c$ with the rule along its left premise  $(S_1)$, and if not possible then commute it with the rule along its right premise $(S_2)$, by Lemmas \ref{lem:hereditaryprincipalnonlogical} and \ref{lem:standardcommutations}. If $A$ is hereditarily principal in both premises we proceed with a cut-elimination step, as in standard linear logic. For this second step, the delicate part is the elimination of exponential cuts, for which we use a big-step reduction. This works because the contexts in the nonlogical rules $(R)$ are marked with $!$ (resp. $?$) on the LHS (resp. RHS). 
121
%    See the appendix for the full proof.
107 122
    \end{proof}
108 123
    
109 124
%   \begin{itemize}
CSL16/conclusions.tex (revision 110)
1 1
%\section{Conclusions}
2 2

  
3 3
\section{Conclusions}
4
\label{sect:conclusions}
4 5

  
5
As mentioned in the introduction, our motivation for this work is to conduct a proof-theoretic study of first-order theories in linear logic, in particular to construct theories corresponding to various functional complexity classes.
6
As mentioned in the introduction, our motivation for this work is to commence a proof-theoretic study of first-order theories in linear logic, in particular from the point of view of complexity.
7
To this end we proved a general form of `free-cut elimination' that generalises forms occurring in prior works, e.g.\ \cite{LincolnMSS92}. We adapted an arithmetic of Bellantoni and Hofmann in \cite{BelHof:02} to the linear logic setting, and used the free-cut elimination result, via the witness function method \cite{Buss86book}, to prove that a fragment of this arithmetic characterises $\FP$.
6 8

  
7
We proved a general form of `free-cut elimination' that generalises forms occurring in prior works, e.g.\ \cite{LincolnMSS92} \anupam{mention Baelde/Miller?}. Our starting point was an axiomatisation proposed by Bellantoni and Hofmann in \cite{BelHof:02}, adapted to the linear logic setting. We identified a fragment, $\arith$, of the arithmetic that is sound and complete with respect to polynomial-time functions, using the free-cut elimination theorem and witness function method that is common in bounded arithmetic and applicative theories.
9
%. Our starting point was an axiomatisation proposed by Bellantoni and Hofmann in \cite{BelHof:02}, adapted to the linear logic setting. We identified a fragment, $\arith$, of the arithmetic that is sound and complete with respect to polynomial-time functions, using the free-cut elimination theorem and witness function method that is common in bounded arithmetic and applicative theories.
8 10

  
9 11
% To see if analogues of various results can be useful for the construction of theories corresponding to various complexity classes. In particular we are interested in the following conventions:
10 12

  
......
15 17
%
16 18
%Regarding \ref{item:crit-ground-type}, almost all approaches 
17 19

  
18
\subsection{Related work}
20
%\subsection{Related work}
19 21
From the point of view of constructing theories for complexity classes, the choice of linear logic and witness function method satisfies two particular desiderata:
20 22

  
21 23
\begin{enumerate}
22
\item\label{item:crit-implicit-complexity} Complexity controlled by `implicit' means.
24
\item\label{item:crit-implicit-complexity} Complexity controlled by `implicit' means, not explicit bounds.
23 25
%, e.g.\ modalities or ramification, as in \cite{Leivant94:found-delin-ptime}. 
24
\item\label{item:crit-ground-type} Extraction of programs using only ground types.
26
\item\label{item:crit-ground-type} Extraction of programs relies on functions of only ground type.
25 27
\end{enumerate}
26 28

  
27
From this point of view, the most relevant related work is that of Cantini \cite{Cantini02}, based on an \emph{applicative theory}, which we recently became aware of. The main difference here is the choice of model of computation: Cantini uses terms of combinatory logic, whereas we use equational specifications (ESs). This choice necessitates a vastly different proof-theoretic treatment. In particular, equality between terms is not decidable in the ES framework, and so there is no apparent constructive interpretation of the right-contraction rule, which usually requires a `test' function. This is why Bellantoni and Hofmann require a double-negation translation into intuitionistic logic and the use functionals at higher types, and why Leivant disregards classical logic altogether in \cite{Leivant94:found-delin-ptime}. Notice that this is precisely why our use of linear logic is important: the control of $?$ occurrences in a proof allows us to sidestep this problem. At the same time we are able to remain in a classical linear setting. We do not think that either model of computation is better, but rather that it is interesting to observe how such a choice affects the proof-theoretic considerations at hand.
29
From this point of view, a relevant related work is that of Cantini \cite{Cantini02}, based on an \emph{applicative theory}, which we recently became aware of. The main difference here is the choice of model of computation: Cantini uses terms of combinatory logic, whereas we use equational specifications (ESs). 
30
As we have mentioned, this choice necessitates a different proof-theoretic treatment, in particular since equality between terms is not decidable in the ES framework, hindering any constructive interpretation of the right-contraction rule. This is why Bellantoni and Hofmann require a double-negation translation into intuitionistic logic and the use functionals at higher types, and why Leivant disregards classical logic altogether in \cite{Leivant94:found-delin-ptime}. Notice that this is precisely why our use of linear logic is important: the control of $?$ occurrences in a proof allows us to sidestep this problem. At the same time we are able to remain in a classical linear setting. We do not think that either model of computation is better, but rather that it is interesting to observe how such a choice affects the proof-theoretic considerations at hand.
28 31

  
29
Our use of linear logic can, in some sense, be seen as a refinement of Leivant's result in \cite{Leivant94:found-delin-ptime}, where positive existential comprehension in intuitionistic second-order logic is found to correspond to polynomial time. The necessity of intuitionistic logic is since any double-negation translation from classical logic would break the positivity criterion. In this work we have observed that the further restriction to non-modal formulae in nonlogical rules is sufficient to carry out a witnessing argument directly from a classical setting, while remaining complete for polynomial-time functions. \todo{comprehension vs induction. Check this is not bullshit!}
30
\patrick{hmm, I am not sure I understand how our use of linear logic can be viewed as a refinement of this work.}
32
%Our use of linear logic can, in some sense, be seen as a refinement of Leivant's result in \cite{Leivant94:found-delin-ptime}, where positive existential comprehension in intuitionistic second-order logic is found to correspond to polynomial time. The necessity of intuitionistic logic is since any double-negation translation from classical logic would break the positivity criterion. In this work we have observed that the further restriction to non-modal formulae in nonlogical rules is sufficient to carry out a witnessing argument directly from a classical setting, while remaining complete for polynomial-time functions. \todo{comprehension vs induction. Check this is not bullshit!}
33
%\patrick{hmm, I am not sure I understand how our use of linear logic can be viewed as a refinement of this work.}
31 34

  
32
Most works on the relationships between linear logic and complexity fit in the approach of the proofs-as-programs correspondence and study variants of linear logic with weak exponential modalities,   e.g.\ bounded linear logic \cite{GirardSS92:bounded-ll}, light linear logic and elementary linear logic \cite{Girard94:lll}. However, Terui considers a na\"ive set theory \cite{Terui04} that is also sound and complete for polynomial time and is based on light linear logic\footnote{He also presents a cut-elimination result but, interestingly, it is entirely complementary to that which we present here: he obtains full cut-elimination since he works in a system without full exponentials and with Comprehension as the only nonlogical axiom. Since the latter admits a cut-reduction step, the former ensures that cut-elimination eventually terminates by a \emph{height-based} argument, contrary to our argument that analyses the \emph{degrees} of cut-formulae.}. His approach relies on functionals at higher type, using light linear logic to type the extracted functionals. Another work using linear logic to characterize  complexity classes by using totality proofs is \cite{Lasson11} but it is tailored for second-order logic.
33
 The status of first-order theories is more developed for other substructural logics, for instance \emph{relevant logic} [cite?], although we do not know of any works connecting such logics to computational complexity.
34 35

  
36

  
37
Most works on the relationships between linear logic and complexity fit in the approach of the proofs-as-programs correspondence and study variants of linear logic with weak exponential modalities \cite{GirardSS92:bounded-ll} \cite{Girard94:lll} \cite{Lafont04}. However, Terui considers a na\"ive set theory \cite{Terui04} that also characterises $\FP$ and is based on light linear logic\footnote{He also presents a cut-elimination result but, interestingly, it is entirely complementary to that which we present here: he obtains full cut-elimination since he works in a system without full exponentials and with Comprehension as the only nonlogical axiom. Since the latter admits a cut-reduction step, the former ensures that cut-elimination eventually terminates by a \emph{height-based} argument, contrary to our argument that analyses the \emph{degrees} of cut-formulae.}. His approach relies on functionals at higher type, using light linear logic to type the extracted functionals. Another work using linear logic to characterize  complexity classes by using convergence proofs is \cite{Lasson11} but it is tailored for second-order logic.
38
 The status of first-order theories is more developed for other substructural logics, for instance \emph{relevant logic} \cite{FriedmanM92}, although we do not know of any works connecting such logics to computational complexity.
39

  
35 40
%Most works on the relationships between linear logic and complexity concern the construction of \emph{type systems}, e.g.\ bounded linear logic \cite{GirardSS92:bounded-ll}, light linear logic and elementary linear logic \cite{Girard94:lll}, soft linear logic \cite{Lafont04}. However, Terui considers a na\"ive set theory \cite{Terui04} that is also sound and complete for polynomial time and is based on light linear logic. His approach relies on functionals at higher type, using light linear logic to type the extracted functionals.\footnote{He also presents a cut-elimination result but, interestingly, it is entirely complementary to that which we present here: he obtains full cut-elimination since he works in a system without full exponentials and with Comprehension as the only nonlogical axiom. Since the latter admits a cut-reduction step, the former ensures that cut-elimination eventually terminates by a \emph{height-based} argument, contrary to our argument that analyses the \emph{degrees} of cut-formulae.} The status of first-order theories is more developed for other substructural logics, for instance \emph{relevant logic} [cite?], although we do not know of any works connecting such logics to computational complexity.
36 41

  
37 42
Concerning the relationship between linear logic and safe recursion, note that an embedding of a variant of safe recursion into light linear logic has been carried studied in \cite{Murawski04}, but this is in the setting of functional computation and is quite different from the present approach. Observe however that a difficulty in this setting  was the non-linear treatment of safe arguments which here we manage by including in our theory a duplication axiom for $W$. 
......
39 44
We have already mentioned the work of Bellantoni and Hofmann \cite{BelHof:02}, which was somewhat the inspiration behind this work. Our logical setting is very similar to theirs, under a certain identification of symbols, but there is a curious disconnect in our use of the additive disjunction for the $\surj$ axiom. They rely on just one variant of disjunction. As we said, they rely on a double-negation translation and thus functionals at higher-type.
40 45

  
41 46

  
42
\anupam{mention bounded arithmetic?}
47
%\anupam{mention bounded arithmetic?}
43 48
%
44 49
%Finally, the approach of bounded arithmetic 
45 50
%
......
59 64
 
60 65

  
61 66
         
62
\subsection{Further work}
63
\todo{finish!}
67
%\subsection{Further work}
68
%\todo{finish!}
64 69

  
65
Say something about minimisation and the polynomial hierarchy. Could be achieved by controlling contraction/additives, since this requires a notion of tests.
70
%
71
In further work we would like to apply the free-cut elimination theorem to theories based on other models of computation, namely the formula model employed in bounded arithmetic \cite{Buss86book}. We believe that the WFM could be used at a much finer level in this setting,\footnote{One reason for this is that atomic formulae are decidable, and so we can have more freedom with the modalities in induction steps.} and extensions of the theory for other complexity classes, for instance the polynomial hierarchy, might be easier to obtain.
72
%
73
%Say something about minimisation and the polynomial hierarchy. Could be achieved by controlling contraction/additives, since this requires a notion of tests.
74
%
75
%As we mentioned in the context section, there are many choices of model of computation when constructing theories. Applicative theories use combinatory algebra and in this work we have used equational specifications. Theories of bounded arithmetic, however, use arithmetic formulae to code computation sequences. The advantage of this is that any closed formula can be evaluated, and so equality is decidable. 
76
%
77
%We think the true power of the witness function method lies in an approach such as this, although we 
78
%
79
%
66 80

  
67
As we mentioned in the context section, there are many choices of model of computation when constructing theories. Applicative theories use combinatory algebra and in this work we have used equational specifications. Theories of bounded arithmetic, however, use arithmetic formulae to code computation sequences. The advantage of this is that any closed formula can be evaluated, and so equality is decidable. 
68

  
69
We think the true power of the witness function method lies in an approach such as this, although we 
70

  
71

  
72
Polynomial hierarchy? Cite Reinhard/Isobel and their cited works.
81
The problem of right-contraction seems to also present in work by Leivant \cite{Leivant94:found-delin-ptime}, which uses equational specifications, where the restriction to positive comprehension to characterise polynomial-time only goes through in an intuitionistic setting. It would be interesting to see if a linear logic refinement could reproduce that result in the classical setting, as we did here.
73 82
%
83
%Polynomial hierarchy? Cite Reinhard/Isobel and their cited works.
84
%
74 85
%\newpage
75 86
%
76 87
%
CSL16/appendix-wfm.tex (revision 110)
128 128
												\vec f^\pi (\vec u , \vec v ; \vec x)
129 129
												\quad := \quad
130 130
												\vec f' (\vec u, \vec u , \vec v ; \vec x)
131
												\]
131
												\]
132
												
133
												
134
												Proof of main result:
135
														\begin{proof}
136
															[Proof of Thm.~\ref{thm:main-result}]
137
															%		[Proof sketch]
138
															By Thm.~\ref{thm:free-cut-elim} and Lemma~\ref{lemma:spec-norm-form} we have a free-cut free proof $\pi$ in $\closure{\eqspec} \cup \arith$ of $!\word (\vec x ) \seqar \word (f (\vec x))$. By Lemma~\ref{lemma:witness-invariant} above this means that $\vec a = \vec x \cimp f^\pi (\vec a) = f(\vec x)$ is true in any model of $\qfindth$ satisfying $\eqspec$ and $\eqspec^\pi$. 
139
															%		Since some model must exist by coherence (cf.\ Prop.~\ref{prop:eq-spec-model}), we have that 
140
															Using the fact that $\eqspec \cup \eqspec^\pi$ is coherent we can construct such a model, similarly to Prop.~\ref{prop:eq-spec-model}, which will contain $\Word$ as an initial segment, in which we must have $f^\pi (\vec x) = f (\vec x)$ for every $\vec x \in \Word$, as required.\todo{polish}
141
														\end{proof}
CSL16/appendix-arithmetic.tex (revision 110)
68 68
\label{eqn:ind-rul-base-prem}
69 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 70
\end{equation}
71

  
72

  
73
Proof that coherent ESs have a model:
74
\begin{proof}
75
	%\todo{ take $\Word \cup \{\bot\}$ or use completeness? Omit if no time. }
76
	Consider the standard model $\Word $ extended by an element $\infty$ with $\succ_0 \infty = \succ_1 \infty = \infty$. Setting $\word = \Word$ means this model satisfies $\basic$. Now, for each function symbol $f$, define $f(\sigma) = \tau$ for every $\sigma, \tau \in \Word$ for which this equation is forced by $\eqspec$. Otherwise define $f(\sigma) = f(\infty) = \infty$.
77
%	\todo{replace with argument using completeness.}
78
\end{proof}
79

  
80
Proof that guarded quantifiers are compatible with free-cut elimination:
81
\begin{proof}[Proof of Cor.~\ref{cor:free-cut-elim-guarded-quants}]
82
	First translate the proof $\pi$ into the proof $\pi_0$ where all guarded quantifiers rules have been replaced by their derivation, and say that two rule instances in $\pi_0$ are \textit{siblings} if they come from the same derivation of a guarded quantifier rule. So in $\pi_0$ any two sibling rules are consecutive. Now observe that in the free-cut elimination procedure:
83
	\begin{itemize}
84
		\item when we do a commutation step of a cut with a $\forall$ (resp. $\exists$ rule) that has a sibling, we can follow it by another commutation of cut with its sibling,
85
		\item when we do a logical cut-elimination step on a $\forall$ (resp. $\exists$ rule) that has a sibling, we can follow it by a logical cut-elimination step on its sibling, as illustrated by Prop. \ref{prop:logicalstepguardedquantifer}.
86
	\end{itemize}
87
	In this way sibling rules remain consecutive in the proof-tree throughout the reduction, and the procedure transforms the proof into one with only anchored cuts.
88
\end{proof}
CSL16/preliminaries.tex (revision 110)
35 35

  
36 36
\begin{definition}
37 37
%[Sequent calculus for linear logic]
38
[Sequent calculus for affine linear logic]
38
%[Sequent calculus for affine linear logic]
39 39
\label{def:LLsequentcalculus}
40

  
41
We define the following calculus:
40
The sequent calculus for (affine) linear logic is as follows:
42 41
\[
43 42
\small
44 43
\begin{array}{l}
......
113 112
\end{array}
114 113
\end{array}
115 114
\]
116
where $p$ is atomic, $i \in \{ 1,2 \}$ and the eigenvariable $a$ does not occur free in $\Gamma$ or $\Delta$.
115
where $p$ is atomic, $i \in \{ 1,2 \}$, $t$ is a term and the eigenvariable $a$ does not occur free in $\Gamma$ or $\Delta$.
117 116
\end{definition}
118 117
%\todo{$\limp$ abbreviation for ...}
119 118
%\todo{bracketing}
120 119

  
121
We do not formally include a symbol for implication but we sometimes write $A \limp B$ as shorthand for $\lnot{A} \lor B$, where $\lnot A$ is the De Morgan dual of $A$. We often omit brackets under associativity of, and when writing long implications we assume the right-most bracketing.
120
We do not formally include a symbol for implication but we sometimes write $A \limp B$ as shorthand for $\lnot{A} \lor B$, where $\lnot A$ is the De Morgan dual of $A$. We often omit brackets under associativity, and when writing long implications we assume the right-most bracketing.
122 121

  
123 122
We will use standard terminology to track formulae in proofs, as presented in e.g.\ \cite{Buss98:intro-proof-theory}.
124 123
In particular, each rule has a distinguished \textit{principal formula}, e.g.\
......
129 128
  % Observe that we do not consider here any exchange rules, the sequence are made of multisets of formulas and exchanges are implicit. Note that this system is \textit{affine} in the sense that it includes general weakening rules $\rigrul{\wk}$ and  $\lefrul{\wk}$, while in linear logic   $\rigrul{\wk}$ (resp. $\lefrul{\wk}$) is restricted to formulas of the form $?A$ (resp. $!A$).   In the following though, by linear logic we will mean affine linear logic.
130 129
  \subsection{Theories and systems}
131 130
  
132
  \anupam{need to add a note on semantics}
133
  \anupam{mention equality rules}
131
%  \anupam{need to add a note on semantics}
132
%  \anupam{mention equality rules}
134 133
%  \anupam{mention equality axioms and first-order theories and models at some point.}
135 134
  
136 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:
137
 \[
136
% \[
138 137
% \begin{array}{rl}
139 138
%\refl & \forall x . x = x \\
140 139
%\symm & \forall x, y. (x = y \limp y = x )\\
......
143 142
%\subst_P & \forall \vec x , \vec y. (\vec x = \vec y \limp P(\vec x) \limp P(\vec y)  )
144 143
% \end{array}
145 144
%\left\{
145
\begin{equation}
146
\label{eqn:equality-theory}
146 147
\begin{array}{l}
147 148
\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)  )
148 149
\end{array}
150
\end{equation}
149 151
%\right\}
150
 \]
152
% \]
151 153
  where $\vec x = \vec y$ is shorthand for $x_1 = y_1 \land \vldots \land x_n = y_n$.
152 154
    
153 155
\newcommand{\init}{\mathit{init}}    
......
160 162
 where, in each rule $(R)$, $I$ is a finite possibly empty set (indicating the number of premises) and we assume the following conditions and terminology:
161 163
 \begin{enumerate}
162 164
 \item In $(R)$ the formulas of $\Sigma', \Delta'$  are called \textit{principal}, those of $\Sigma_i, \Delta_i$ are called \textit{active}, and those of   
163
$ !\Gamma,  ? \Pi$ are called \textit{context formulas}. In $\init$ $A$ is called a principal formula;
164
\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'$ nor $ !\Gamma,  ? \Pi$;
165
$ !\Gamma,  ? \Pi$ are called \textit{context formulas}. In $\init$ $A$ is called a principal formula.
166
\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$.
165 167
    \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).  
166 168
   \item $ \Sigma'$ (resp. $\Delta'$) does not contain any formula of the shape $?A$ (resp. $!A$).  
167 169
 \end{enumerate}
......
183 185

  
184 186
  
185 187
    
186
    To each theory $\theory$ we formally associate the system obtained by adding $\seqar A$ as an $\init$ rule for each $A \in \theory$.\footnote{Notice that this naively satisfies condition 3 since theories consist of only closed formulae.}  A proof in such a system will be called a \textit{ $\mathcal T$-proof}, or just {proof} when there is no risk of confusion.
188
    To each theory $\theory$ we formally associate the system of $\init$ rules $\seqar A$ for each $A \in \theory$.\footnote{Notice that this naively satisfies condition 3 since theories consist of only closed formulae.}  A proof in such a system will be called a \textit{ $\mathcal T$-proof}, or just {proof} when there is no risk of confusion.
189

  
190

  
191

  
192

  
187 193
%    
188 194
%  
189 195
%  In what follows we will be interested in an example of theory  $\mathcal T$ which is a form of arithmetic.
190 196
   
191
   Let us give an example of a possible nonlogical rule that appears later in Sect.~\ref{sect:arithmetic}:
192
   
193
   \[
194
	\vliinf{\ind}{}{ !\word(t), !\Gamma , A(\epsilon) \seqar A(t) , ?\Delta }{!\Gamma , !\word(a), A(a) \seqar A(s_0 a ), ?\Delta }{ !\Gamma , !\word(a), A(a) \seqar A(s_1 a ), ?\Delta }
195
\]
197
%   Let us give an example of a possible nonlogical rule that appears later in Sect.~\ref{sect:arithmetic}:
198
%   
199
%   \[
200
%	\vliinf{\ind}{}{ !\word(t), !\Gamma , A(\epsilon) \seqar A(t) , ?\Delta }{!\Gamma , !\word(a), A(a) \seqar A(s_0 a ), ?\Delta }{ !\Gamma , !\word(a), A(a) \seqar A(s_1 a ), ?\Delta }
201
%\]
202
%
203
%So here we have $I=\{0,1\}$ (two premises), $\Sigma_i=!\word(a), A(a)$ and $\Delta_i= A(s_i a )$ for $i=0,1$, $\Sigma'= !\word(t), A(\epsilon)$, $\Delta'= A(t)$. So condition 2 is satisfied provided $a\notin FV(!\Gamma, ?\Delta)$ and $a \notin FV(t)$. 
196 204

  
197
So here we have $I=\{0,1\}$ (two premises), $\Sigma_i=!\word(a), A(a)$ and $\Delta_i= A(s_i a )$ for $i=0,1$, $\Sigma'= !\word(t), A(\epsilon)$, $\Delta'= A(t)$. So condition 2 is satisfied provided $a\notin FV(!\Gamma, ?\Delta)$ and $a \notin FV(t)$. 
205

  
198 206
%\[
199 207
%	\vliinf{}{(x \notin \FV(\Gamma, \Delta))}{ !\Gamma , A(\epsilon) \seqar A(t) , ?\Delta }{ !\Gamma , A(x) \seqar A(s_0 x ), ?\Delta }{ !\Gamma, A(x) \seqar A( s_1 x ) , ?\Delta}
200 208
%	\]
......
212 220
% 	sometimes use same symbol for theory and system if fixed in advance;
213 221
% 	sometimes coincide axiom with initial rule;
214 222
% 	}
223

  
224

  
225
\begin{remark}
226
	[Semantics]
227
	The models we consider are usual Henkin models, with linear connectives interpreted by their classical counterparts. Consequently, we do not have any completeness theorem for our theories, but we do have soundness.
228
\end{remark}
229

  
215 230
 
216 231
\subsection{Some basic proof-theoretic results}
217
We briefly survey some well-known results for theories of linear logic, on which we rely in later sections.
232
We briefly survey some well-known results for theories of linear logic.
218 233

  
219 234
A rule is \emph{invertible} if each of its upper sequents is derivable from its lower sequent.
220 235
\begin{proposition}
......
241 256
\begin{theorem}
242 257
	[Deduction, folklore]
243 258
	\label{thm:deduction}
244
	If $\theory$ is a theory, $A $ is a closed formula and $\mathcal T \cup\{A\}$ proves $B$, then $\mathcal{T}$ proves $!A \limp B$.
259
	For any theory $\theory$ and closed formula $A $, $\mathcal T \cup\{A\}$ proves $B$ if and only if $\mathcal{T}$ proves $!A \limp B$.
245 260
\end{theorem}
246 261

  
247
The occurrence of $!$ in the deduction theorem above is very important, and is also one of the reasons it can be difficult to reason informally in theories over linear logic.
262
%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.
248 263

  
249 264

  
265
For example, we can work in the following quantifier-free system for the theory of equality:
266
\begin{proposition}
267
	[Equality rules]
268
	\eqref{eqn:equality-theory} is equivalent to the following system of rules,
269
	\[
270
	\vlinf{}{}{\seqar t = t}{}
271
	\qquad
272
	\vlinf{}{}{s = t \seqar t = s}{}
273
	\qquad 
274
	\vlinf{}{}{r = s, s= t \seqar r = t}{}
275
	\qquad 
276
	\vlinf{}{}{\vec s = \vec t \seqar f(\vec s) = f(\vec t)}{}
277
	\qquad
278
	\vlinf{}{}{\vec s = \vec t, P(\vec s) \seqar P(\vec t)}{}
279
	\]
280
	where $r,s,t $ range over terms.
281
\end{proposition}
250 282

  
283

  
284

  
285

  
286

  
251 287
%\subsection{Converting axioms to rules in $\MELLW$}
252 288
%
253 289
%\begin{proposition}
CSL16/appendix-free-cut-elim.tex (revision 110)
1 1
\section{Proofs of Sect. \ref{sect:free-cut-elim}: free-cut elimination}
2 2

  
3
 \begin{proof}
4
 	[Proof of Lemma~\ref{lem:hereditaryprincipalnonlogical}]
5
 	Assume that $A$ is an occurrence of formula on the l.h.s. of the sequent and hereditarily principal for a non-logical rule (R), then a direct ancestor of this formula is principal for (R) and thus by condition 4. $A$ cannot be of the form $?A'$. The other case is identical.
6
 \end{proof}
7

  
3 8
     Define the  \textit{degree} of a formula as the number of logical connectives or quantifiers in it.  Let us first state an easy building-block of the proof, which comes from standard linear logic:
4 9
    \begin{lemma}[Logical non-exponential cut-elimination steps]\label{lem:logical steps}
5 10
    Any cut $c$ whose cut-formulas $A$ are both principal formulas of logical rules distinct from $?$, $!$, $wk$, $cntr$ rules can be replaced in one step by cuts on formulas of strictly lower degree (0, 1 or 2 cuts).
CSL16/bc-convergence.tex (revision 110)
3 3
\label{sect:bc-convergence}
4 4
%\anupam{In this section, use whatever form of the deduction theorem is necessary and reverse engineer precise statement later.}
5 5

  
6
In this section we show that $I\sigzer$, and so also $\arith$, proves the convergence of any equational specification induced by a BC program. Since BC programs can compute any polynomial-time function, we obtain a completeness result. In the next section we will show the converse, that any provably convergent function of $\arith$ is polynomial-time computable.
6
In this section we show that $I\sigzer$, and so also $\arith$, proves the convergence of any equational specification induced by a BC program, hence any function in $\FP$. 
7
%Since BC programs can compute any polynomial-time function, we obtain a completeness result. In the next section we will show the converse, that any provably convergent function of $\arith$ is polynomial-time computable.
8
%
9
The underlying construction of the proof here is similar in spirit to those occurring in \cite{Cantini02} and \cite{Leivant94:found-delin-ptime}. In fact, like in those works, only quantifier-free positive induction is required, but here we moreover must take care to respect additive and multiplicative behaviour of linear connectives.
7 10

  
8
The underlying construction of the proof here is similar in spirit to those occurring in \cite{Cantini02} and \cite{Leivant94:found-delin-ptime}. In fact, like in those works, only quantifier-free positive induction is required, but here we moreover must take care to respect additive and multiplicative behaviour of linear connectives, thereby achieving a somewhat stronger result.
9

  
10 11
We will assume the formulation of BC programs with regular PRN, not simultaneous PRN.
11 12

  
12 13

  
CSL16/introduction.tex (revision 110)
1 1
\section{Introduction}
2
\anupam{i put all the notes/suggestions at the end, before references.}
2
%\anupam{i put all the notes/suggestions at the end, before references.}
3 3
 
4
  Free-cut elimination is a rewriting procedure on formal proofs in systems including non-logical axioms and rules, typically induction rules, introduced in \cite{Takeuti87}. It yields proofs in normal form where essentially each cut has at least one of its cut formulas introduced as a principal formula of a non-logical axiom or rule. It is important in proof-theory for complexity results for first-order theories, in particular it has been extensively used in bounded arithmetic for proving complexity bounds on representable functions, by the \textit{witnessing methods} \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 the \textit{witness function method} \cite{Buss86book}. 
5 5
  
6
   Linear logic can be seen as a decomposition of both intuitionistic and classical logic, based on a thorough analysis of the duplications and erasing of formulas in proofs -- the structural rules, and has been used in particular in such areas as the proofs-as-programs approach to computation, proof search and logic programming. By controlling  structural rules with specific connectives, the \textit{exponential} modalities, linear logic has allowed for a fine study of complexity bounds in cut-elimination procedures, leading in particular to the definition of variants with polynomial time complexity \cite{Girard98}. However most of this work has been done for 'purely logical' linear logic, or at least for variants with full cut elimination procedure. 
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}. 
7
%   However most of this work has been done for 'purely logical' linear logic, or at least for variants with full cut elimination procedure. 
7 8
   
8
    In this paper we aim at exploring in which way the complementary techniques of free-cut elimination and linear logic can be combined to analyze properties of first-order theories in which structural rules play a critical r\^ole. We believe this to be of a general interest, in particular to understand in a more global way the combined effects of induction principles and structural rules in proof-theory. Some related works  have been carried out by considering extensions of linear logic, in particular with fix point rules \cite{Baelde12}, but to our knowledge no general study of free-cut elimination in linear logic had been undertaken. Our first contribution will be to give a natural extension of linear logic with first-order theories and to provide general sufficient conditions on non-logical axioms and rules for the system to admit a free-cut elimination theorem.
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.
10
%     aim at exploring in which way the complementary techniques of free-cut elimination and linear logic can be combined to analyze properties of first-order theories in which structural rules play a critical r\^ole. 
11
    We believe this to be of general interest, and in particular to understand the effect of substructural restrictions on nonlogical rules, e.g.\ induction, in mathematical theories. Some related works exist, in particular the na\"ive set theories of Girard and Terui \cite{Girard94:lll} \cite{Terui04}, but overall it seems that the first-order proof theory of linear logic is still rather undeveloped; in particular, to our knowledge, there seems to be no general form of free-cut elimination available in the literature (although special cases occur in \cite{LincolnMSS92} and \cite{Baelde12}). Thus our first contribution, in Sect.~\ref{sect:free-cut-elim}, will be to provide general sufficient conditions on nonlogical axioms and rules for a first-order linear logic system to admit free-cut elimination.
9 12
    
10
    In a second step we will illustrate the usage of our free-cut elimination theorem by an application to the area of arithmetic systems for complexity classes. Our starting point is an arithmetic system based on modal logic and due to Bellantoni-Hofmann \cite{BelHof:02}, called $\mathcal{A}_2^1$, characterizing the polynomial time functions. In this system following Leivant \cite{Leivant94:intrinsic-theories} functions are defined by first-order equational specifications. The main result of $\mathcal{A}_2^1$ is then that the provably total functions are exactly the polynomial time class. These systems differ from the bounded arithmetic approach \cite{Buss86book} in the sense that they do not employ bounds on quantifiers, but use restrictions of the induction principle based either on the modality connective  \cite{BelHof:02} or on a ramification of formulas  \cite{Leivant94:intrinsic-theories}. The proof-technique employed is in both case a realizability argument, which is applied to an intuitionistic version of the system. In  \cite{BelHof:02} the target language of the realizability argument is a higher-order language \cite{Hofmann00}, SLR, based on safe recursion \cite{BellantoniCook92}. In a second step the result is extended to the classical variant $\mathcal{A}_2^1$ by using the Friedman A translation.
13
    \newcommand{\FP}{\mathbf{FP}}
11 14
    
12
    Our contribution will be to show that witnessing methods coming from bounded arithmetic \cite{Buss86book} can be employed to prove bounds directly for classical systems similar to $\mathcal{A}_2^1$ by taking advantage of free-cut elimination. Actually we will consider a weaker version of $\mathcal{A}_2^1$, where induction is restricted to a smaller class of formulas (\textit{positive} formulas) in a way similar to Leivant's $RT_0$ system \cite{Leivant94:intrinsic-theories}.
13
    We illustrate in the same time the relationship between  $\mathcal{A}_2^1$ and linear logic, which was hinted but not investigated in the original paper  \cite{BelHof:02}.  
15
    We illustrate the usefulness of such a result by proving a witnessing theorem for a fragment of arithmetic in linear logic, showing that the provably convergent functions are precisely the polynomial-time computable functions (Sects.~\ref{sect:bc-convergence} and \ref{sect:wfm}), henceforth denoted $\FP$. Our starting point is an axiomatisation based on a modal logic due to Bellantoni and Hofmann \cite{BelHof:02}, called $\mathcal{A}_2^1$, already known to characterise $\FP$.
16
%    In this system ,following Leivant \cite{Leivant94:intrinsic-theories} functions are defined by first-order equational specifications. 
17
%    The main result of $\mathcal{A}_2^1$ is then that the provably total functions are exactly the polynomial time class. 
18
    This approach, and that of \cite{Leivant94:found-delin-ptime} before, differs from the bounded arithmetic approach in that it does not employ bounds on quantifiers, but rather restricts nonlogical rules by substructural features of the modality \cite{BelHof:02} or by a \emph{ramification} of formulas  \cite{Leivant94:intrinsic-theories}. The proof technique employed in both cases is a realisability argument, for which \cite{Leivant94:found-delin-ptime} operates directly in intuitionistic logic, whereas \cite{BelHof:02} obtains a result for a classical logic via a double-negation translation, relying on a higher-type generalisation of \emph{safe recursion}
19
%     which is applied to an intuitionistic version of the theory. In  \cite{BelHof:02} the target language of the realizability argument is a higher-order language \cite{Hofmann00}, SLR, based on safe recursion 
20
     \cite{BellantoniCook92}. 
21
%     In a second step the result is extended to the classical variant $\mathcal{A}_2^1$ by using the Friedman A translation.
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.}
14 24
   
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}, but the precise relationship between the two logical settings is unclear.
26
%    We illustrate in the same time the relationship between  $\mathcal{A}_2^1$ and linear logic, which was hinted but not investigated in the original paper  \cite{BelHof:02}.  
27
We conclude in Sect.~\ref{sect:conclusions} with a survey of related work and some avenues for further applications of the free-cut elimination result. 
15 28

  
29
A version of this article with full proofs is available at \cite{BaiDas}.
30
   
31

  

Formats disponibles : Unified diff