Statistiques
| Révision :

root / CSL16 / feas-arith-wfm.tex @ 22

Historique | Voir | Annoter | Télécharger (59,56 ko)

1
\documentclass[a4paper,UKenglish]{lipics-v2016}
2
%This is a template for producing LIPIcs articles. 
3
%See lipics-manual.pdf for further information.
4
%for A4 paper format use option "a4paper", for US-letter use option "letterpaper"
5
%for british hyphenation rules use option "UKenglish", for american hyphenation rules use option "USenglish"
6
% for section-numbered lemmas etc., use "numberwithinsect"
7
 
8
\usepackage{microtype}%if unwanted, comment out or use option "draft"
9

    
10
%\graphicspath{{./graphics/}}%helpful if your graphic files are in another directory
11

    
12
\bibliographystyle{plainurl}% the recommended bibstyle
13

    
14

    
15

    
16

    
17
\usepackage[lutzsyntax]{virginialake}
18
\usepackage{amsmath}
19
\usepackage{amssymb}
20
\usepackage{amsthm}
21
\usepackage{times}
22
%\usepackage{sans}
23
\usepackage{cmll}
24
\usepackage{bm}
25

    
26
%\newtheorem{theorem}{Theorem}
27
%\newtheorem{maintheorem}[theorem]{Main Theorem}
28
%\newtheorem{observation}[theorem]{Observation}
29
%\newtheorem{corollary}[theorem]{Corollary}
30
%\newtheorem{lemma}[theorem]{Lemma}
31
\newtheorem{proposition}[theorem]{Proposition}
32
%\newtheorem{conjecture}[theorem]{Conjecture}
33
%
34
%\theoremstyle{definition}
35
%\newtheorem{definition}[theorem]{Definition}
36
%\newtheorem{example}[theorem]{Example}
37
%\newtheorem{notation}[theorem]{Notation}
38
%\newtheorem{convention}[theorem]{Convention}
39
%\newtheorem{remark}[theorem]{Remark}
40
%\newtheorem{discussion}[theorem]{Discussion}
41

    
42
\newcommand{\todo}[1]{{\color{red}{\textbf{Todo:} #1}}}
43
\newcommand{\anupam}[1]{{\color{orange}{\textbf{Anupam:} #1}}}
44
\newcommand{\patrick}[1]{{\color{blue}{\textbf{Patrick:} #1}}}
45

    
46
\newcommand{\defined}{:=}
47
\begin{document}
48
	
49
	\newcommand{\LL}{\it{LL}}
50
	\vllineartrue
51
	
52
	
53
	\newcommand{\FV}{\mathit{FV}}
54
	
55
	
56
	%terms
57
	\renewcommand{\succ}{s}
58
	\renewcommand{\epsilon}{\varepsilon}
59
	
60
	% linear connectives
61
	
62
	\newcommand{\limp}{\multimap}
63
	\renewcommand{\land}{\otimes}
64
	\newcommand{\laand}{\&}
65
	\newcommand{\laor}{\oplus}
66
	\renewcommand{\lor}{\vlpa}
67
	\renewcommand{\lnot}[1]{{#1^{\perp}}}
68
	\newcommand{\lnotnot}[1]{#1^{\perp \perp}}
69
	
70
	% classical connectives
71
	
72
	\newcommand{\cimp}{\supset}
73
	\newcommand{\cand}{\wedge}
74
	\newcommand{\cor}{\vee}
75
	\newcommand{\cnot}{\neg}
76
	
77
	
78
	\newcommand{\Ax}{\mathit{(Ax)}}
79
	\newcommand{\Rl}{\mathit{(Rl)}}
80
	
81
	\newcommand{\MELL}{\mathit{MELL}}
82
	\newcommand{\MEAL}{\mathit{MELLW}}
83
	\newcommand{\MELLW}{\mathit{MELL(W)}}
84
	
85
	\newcommand{\Aonetwo}{\mathcal{A}^1_2}
86
	\newcommand{\logic}{\mathit{L}_{\mathcal A} }
87
	
88
	% predicates
89
	\newcommand{\nat}{N}
90
	
91
	\newcommand{\Nat}{\mathbb{N}}
92
	
93
	%axioms
94
	\newcommand{\wk}{\mathit{wk}}
95
	\newcommand{\impl}{\cimp\text{-}\mathit{l}}
96
	\newcommand{\impcomm}{\mathit{com}}
97
	\newcommand{\conint}{\cand\text{-}\mathit{i}}
98
	\newcommand{\conel}{\cand\text{-}\mathit{e}}
99
	\newcommand{\negclass}{\cnot}
100
	
101
	%rules
102
	\renewcommand{\mp}{\mathit{mp}}
103
	\newcommand{\gen}{\mathit{gen}}
104
	\newcommand{\inst}{\mathit{ins}}
105
	\newcommand{\id}{\it{id}}
106
	\newcommand{\cut}{\it{cut}}
107
	\newcommand{\multicut}{\it{mcut}}
108
	\newcommand{\indr}{\mathit{IND}}
109
	\newcommand{\nec}{\mathit{nec}}
110
	\newcommand{\tax}{\mathit{T}}
111
	\newcommand{\four}{\mathit{4}}
112
	\newcommand{\kax}{\mathit{K}}
113
	\newcommand{\cntr}{\mathit{cntr}}
114
	
115
	\newcommand{\lefrul}[1]{#1\text{-}\mathit{l}}
116
	\newcommand{\rigrul}[1]{#1\text{-}\mathit{r}}
117
	
118
	%consequence relations
119
	\newcommand{\admits}{\vDash}
120
	\newcommand{\seqar}{\vdash}
121
	\newcommand{\proves}{\vdash_e}
122
	
123
	%induction
124
	\newcommand{\ind}{\mathit{IND}}
125
	\newcommand{\pind}{\mathit{PIND}}
126
	\newcommand{\cax}[2]{#1\text{-}#2}
127

    
128
          % sizes
129
          \newcommand{\height}[1]{\mathit{h}(#1)}
130

    
131
% Author macros::begin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
132
\title{Free-cut elimination in linear logic: an application to implicit complexity}
133
%\titlerunning{A Sample LIPIcs Article} %optional, in case that the title is too long; the running title should fit into the top page column
134

    
135
%% 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
136
\author[1]{Patrick Baillot}
137
\author[2]{Anupam Das}
138
\affil[1]{Dummy University Computing Laboratory, Address/City, Country\\
139
  \texttt{open@dummyuniversity.org}}
140
\affil[2]{Department of Informatics, Dummy College, Address/City, Country\\
141
  \texttt{access@dummycollege.org}}
142
\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.'
143

    
144
\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/
145

    
146
\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". 
147
\keywords{Dummy keyword -- please provide 1--5 keywords}% mandatory: Please provide 1-5 keywords
148
% Author macros::end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
149

    
150
%Editor-only macros:: begin (do not touch as author)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
151
\EventEditors{John Q. Open and Joan R. Acces}
152
\EventNoEds{2}
153
\EventLongTitle{42nd Conference on Very Important Topics (CVIT 2016)}
154
\EventShortTitle{CVIT 2016}
155
\EventAcronym{CVIT}
156
\EventYear{2016}
157
\EventDate{December 24--27, 2016}
158
\EventLocation{Little Whinging, United Kingdom}
159
\EventLogo{}
160
\SeriesVolume{42}
161
\ArticleNo{23}
162
% Editor-only macros::end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
163

    
164
\maketitle
165

    
166
\begin{abstract}
167
We prove a general form of free-cut elimination for first-order theories in linear logic. We consider a version of Peano Arithmetic in linear logic and prove a witnessing theorem via the Buss and Mints \emph{witness function method}, characterising polytime as the provably total functions.
168
 \end{abstract}
169

    
170
\section{Introduction}
171

    
172
\todo{words or integers?}
173

    
174

    
175

    
176
\section{Preliminaries}
177

    
178
\todo{consider removing and just have a section on linear logic, including free-cut elimination.}
179

    
180

    
181

    
182

    
183
\paragraph*{Notation}
184
Fix conventions here for use throughout:
185
\begin{itemize}
186
\item Eigenvariables: $a, b , c$.
187
\item (Normal) variables: $u,v,w$. (only when distinction is important, e.g.\ $u^{!\nat}$).
188
\item (Safe) variables: $x,y,z$. (as above, e.g.\ $x^\nat$.)
189
\item Terms: $r,s,t$.
190
\item Formulae: $A,B,C$.
191
\item Atomic formulae: $p,q$.
192
\item Free variables in a term, formula, sequent: $FV(u)$, $FV(A)$, $FV(\Gamma)$
193
\item Sequents: $\Gamma, \Delta, \Sigma, \Pi$.
194
\item Proofs: $\pi, \rho, \sigma$.
195
\item Theories: $\mathcal T$. Sequent systems: $\mathcal S$.
196
\end{itemize}
197

    
198
\subsection{Linear logic}
199

    
200
\anupam{use a system that is already in De Morgan form, for simplicity.}
201
\anupam{Have skipped units, can reconsider this when in arithmetic. Also in affine setting can be recovered by any contradiction/tautology.}
202

    
203
\begin{definition}\label{def:LLsequentcalculus}
204
%[Sequent calculus for linear logic]
205
[Sequent calculus for affine linear logic]
206

    
207
\patrick{2Anupam: is there a reason for considering only axioms on atomic formulas $p$?}
208

    
209
\patrick{Note that here I changed the system to consider directly affine linear logic}
210

    
211
We define the following calculus in De Morgan normal form:
212
\[
213
\begin{array}{l}
214
\begin{array}{cccc}
215
\vlinf{\lefrul{\bot}}{}{p, \lnot{p} \seqar }{}
216
& \vlinf{\id}{}{p \seqar p}{}
217
& \vlinf{\rigrul{\bot}}{}{\seqar p, \lnot{p}}{}
218
& \vliinf{\cut}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta, A }{\Sigma, A \seqar \Pi}
219
\\
220
\noalign{\bigskip}
221
%\text{Multiplicatives:} & & & \\
222
%\noalign{\bigskip}
223
\vliinf{\lefrul{\lor}}{}{\Gamma,\Sigma, A \lor B \seqar \Delta, \Pi}{\Gamma, A \seqar \Delta}{\Sigma , B \seqar \Pi}
224
&
225
\vlinf{\lefrul{\land}}{}{\Gamma, A\land B \seqar \Delta}{\Gamma, A , B \seqar \Delta}
226
&
227
\vlinf{\rigrul{\lor}}{}{\Gamma \seqar \Delta, A \lor B}{\Gamma \seqar \Delta, A, B}
228
&
229
\vliinf{\rigrul{\land}}{}{\Gamma, \Sigma \seqar \Delta , \Pi , A \land B}{\Gamma \seqar \Delta , A}{\Sigma \seqar \Pi , B}
230
\\
231
\noalign{\bigskip}
232
%\text{Additives:} & & & \\
233
%\noalign{\bigskip}
234
\vliinf{\lefrul{\laor}}{}{\Gamma, A \laor B \seqar \Delta}{\Gamma , A \seqar \Delta}{\Gamma, B \seqar \Delta}
235
&
236
\vlinf{\lefrul{\laand}}{}{\Gamma, A_1\laand A_2 \seqar \Delta}{\Gamma, A_i \seqar \Delta}
237
&
238
%\vlinf{\lefrul{\laand}}{}{\Gamma, A\laand B \seqar \Delta}{\Gamma, B \seqar \Delta}
239
%\quad
240
\vlinf{\rigrul{\laor}}{}{\Gamma \seqar \Delta, A_1\laor A_2}{\Gamma \seqar \Delta, A_i}
241
&
242
%\vlinf{\rigrul{\laor}}{}{\Gamma \seqar \Delta, A\laor B}{\Gamma \seqar \Delta, B}
243
%\quad
244
\vliinf{\rigrul{\laand}}{}{\Gamma \seqar \Delta, A \laand B }{\Gamma \seqar \Delta, A}{\Gamma \seqar \Delta, B}
245
\\
246
\noalign{\bigskip}
247
%\text{Exponentials:} & & & \\
248
%\noalign{\bigskip}
249
\vlinf{\lefrul{?}}{}{!\Gamma, ?A \seqar ?\Delta}{!\Gamma , A \seqar ?\Delta}
250
&
251
\vlinf{\lefrul{!}}{}{\Gamma, !A \seqar \Delta}{\Gamma, A \seqar \Delta}
252
&
253
\vlinf{\rigrul{?}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, A}
254
&
255
\vlinf{\rigrul{!}}{}{!\Gamma \seqar ?\Delta, !A}{!\Gamma \seqar ?\Delta, A}
256
\\
257
\noalign{\bigskip}
258
%\text{Structural:} & & & \\
259
%\noalign{\bigskip}
260

    
261
%\vlinf{\lefrul{\wk}}{}{\Gamma, !A \seqar \Delta}{\Gamma \seqar \Delta}  %% linear logic weakening
262
\vlinf{\lefrul{\wk}}{}{\Gamma, A \seqar \Delta}{\Gamma \seqar \Delta}
263
&
264
\vlinf{\lefrul{\cntr}}{}{\Gamma, !A \seqar \Delta}{\Gamma, !A, !A \seqar \Delta}
265
&
266
%\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, ?A }{\Gamma \seqar \Delta}   %% linear logic weakening
267

    
268
\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, A }{\Gamma \seqar \Delta}
269
&
270
\vlinf{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, ?A, ?A}
271
\\
272
\noalign{\bigskip}
273
\vlinf{\lefrul{\exists}}{}{\Gamma, \exists x . A(x) \seqar \Delta}{\Gamma, A(a) \seqar \Delta}
274
&
275
\vlinf{\lefrul{\forall}}{}{\Gamma, \forall x. A(x) \seqar \Delta}{\Gamma, A(t) \seqar \Delta}
276
&
277
\vlinf{\rigrul{\exists}}{}{\Gamma \seqar \Delta, \exists x . A(x)}{ \Gamma \seqar \Delta, A(t)}
278
&
279
\vlinf{\rigrul{\forall}}{}{\Gamma \seqar \Delta, \forall x . A(x)}{ \Gamma \seqar \Delta, A(a) } \\
280
\noalign{\bigskip}
281
 \vliinf{mix}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta}{\Sigma \seqar \Pi} &&&
282
\end{array}
283
\end{array}
284
\]
285
where $p$ atomic, $i \in \{ 1,2 \}$ and the eigenvariable $a$ does not occur free in $\Gamma$ or $\Delta$.
286
\end{definition}
287
 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$). The rule $mix$ is included so that this system admits cut elimination. In the following though, by linear logic we will mean affine linear logic.
288
 
289
  We will consider extensions of linear logic with a \textit{theory}  $\mathcal T$ consisting in a finite set of additional axioms and rules, depicted as:
290

    
291
 \[
292
 \begin{array}{cc}
293
  \vlinf{(ax)}{}{ \seqar A}{}  &  \vlinf{(R)}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
294
\end{array}
295
\]
296
  
297
 where in rule (R), $I$ is a finite set (indicating the number of premises) and we assume the following conditions:
298
 \begin{enumerate}
299
 \item  We have:$$ FV(\Sigma_i, \Delta_i) \cap FV(!\Gamma, ? \Pi)= FV(\Sigma_i, \Delta_i) \cap FV(\Sigma', \Delta')= \emptyset $$
300
 \item $ \Sigma', \Delta'$ does not contain any formula of the shape $!A$ or $?A$. 
301
 \end{enumerate}
302
  
303
  \patrick{Anupam: note that I had to strengthen the conditions for the rules (R). Condition (1) is needed 
304
  to be able to commute a cut with (R), in the case where this cut is with a principal formula of a   ($\rigrul{!}$) rule. 
305
  
306
  Condition (2) is a sufficient condition to avoid the following situation: cut between a principal formula in say $\Delta'$ in the conclusion of an (R) rule (left premise), and a context formula in $!\Gamma$ in the conclusion of another (R) rule (right premise). Indeed this is not an anchored cut in our sense, but we cannot eliminate it in general (because we cannot commute the cut with (R) up the right premise).
307
  }
308
  
309
%  \textit{for any $i\in I$, formulas in $\Sigma_i, \Delta_i$ do not share any free variable with   $\Gamma, \Pi$.} 
310
%  
311
%  \patrick{Is there an important reason for this restriction? If so, in order for it to be compatible with free-cut elimination I think we need to strengthen it into
312
%  $$ FV(\Sigma_i, \Delta_i) \cap FV(!\Gamma, ? \Pi)= FV(\Sigma_i, \Delta_i) \cap FV(\Sigma', \Delta')= \emptyset $$
313
 % This is in order to be able to commute a cut with (R), in the case where this cut is with a principal formula of a   ($\rigrul{!}$) rule. }
314
  
315
  In the following we will be interested in an example of theory  $\mathcal T$ which is a form of arithmetic.
316
   
317
   Let us give an example of a possible rule (R) of a theory $\mathcal T$:
318
   
319
   \[
320
	\vlinf{(ind)}{(x \notin \FV(\Gamma, \Delta))}{ !\Gamma , A(0) \seqar A(t) , ?\Delta }{ !\Gamma , A(x) \seqar A(s x ), ?\Delta }
321
	\]
322

    
323
%\[
324
%	\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}
325
%	\]
326

    
327
  
328
  A proof in such a system will be called a \textit{ $\mathcal T$-proof}, or just \textit{proof} when there is no risk of confusion.
329
   The rules of Def. \ref{def:LLsequentcalculus} are called \textit{logical rules} while the rules (ax) and (R) of $\mathcal T$  are called \textit{non-logical}.
330
  
331
  As usual rules come with a notion of \textit{principal formulas}, which are a subset of the rules in the conclusion, e.g.:
332
  $A \lor B$ in rule $\lefrul{\lor}$ (and similarly for all rules for connectives); $?A$ in rule $\rigrul{\cntr}$; all conclusion formulas in axiom rules;
333
   $\Sigma', \Delta'$ in rule (R).
334
  
335
 
336
\subsection{Deduction theorem}
337

    
338
[cite Avron:`semantics and proof theory of linear logic']
339

    
340
We will make much use of the deduction theorem, allowing us to argue informally within a theory for hypotheses that have been promoted.
341

    
342
%$$
343
%	\vliiinf{}{}{ \seqar A}{ \seqar C}
344
%	$$
345

    
346
%\[
347
%	\vliiinf{R}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
348
%	\]
349

    
350
\begin{theorem}
351
	[Deduction]
352
	If $\mathcal T , A \proves B$ then $\mathcal{T} \proves !A \limp B$.
353
\end{theorem}
354

    
355
\todo{need that $A$ above is closed! Check for rules to axioms.}
356

    
357

    
358

    
359
\subsection{Converting axioms to rules in $\MELLW$}
360

    
361
\begin{proposition}
362
	An axiom $\Ax$ of the form,
363
	\[
364
	A_1 \limp \vldots \limp A_m \limp !B_1 \limp \vldots \limp !B_n \limp C
365
	\]
366
	is equivalent (over propositional $\LL$) to the rule $\Rl$:
367
	\[
368
	\vliiinf{\Rl}{}{ !\Gamma , A_1 , \dots , A_m \seqar C , ? \Delta  }{ !\Gamma \seqar B_1 , ?\Delta }{\vldots }{ !\Gamma \seqar B_n , ?\Delta}
369
	\]
370
\end{proposition}
371
\begin{proof}
372
	Let us first assume $\Ax$ and derive $\Rl$. From the axiom and Currying, we have a proof of:
373
	\begin{equation}\label{eqn:curried-axiom}
374
	A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C
375
	\end{equation}
376
	
377
	This can simply be cut against each of the premisses of $\Rl$, applying appropriate contractions and necessitations, to derive it:
378
	\[
379
	\vlderivation{
380
		\vliq{c}{}{!\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta }{
381
			\vliin{\cut}{}{!\Gamma, \dots , !\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta, \dots , ?\Delta }{
382
				\vlin{!}{}{!\Gamma \seqar !B_n, ?\Delta }{\vlhy{!\Gamma \seqar B_n , ?\Delta }}
383
			}{
384
			\vliin{\cut}{}{\qquad \qquad \qquad \qquad  \vlvdots \qquad \qquad \qquad \qquad }{
385
				\vlin{!}{}{!\Gamma \seqar !B_1 , ?\Delta}{\vlhy{!\Gamma \seqar B_1, ?\Delta }}
386
			}{\vlhy{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C } }
387
		}
388
	}
389
}
390
\]
391

    
392
Now let us prove $\Ax$ (again in the form of \eqref{eqn:curried-axiom}) by using $\Rl$ as follows:
393
\[
394
\vliiinf{\Rl}{}{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C }{  \vlderivation{
395
		\vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_1 }{
396
			\vlin{!}{}{!B_1 \seqar B_1 }{
397
				\vlin{\id}{}{B_1 \seqar B_1 }{\vlhy{}}
398
			}
399
		}
400
	}  }{\vldots}{
401
	\vlderivation{
402
		\vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_n }{
403
			\vlin{!}{}{!B_n \seqar B_n }{
404
				\vlin{\id}{}{B_n \seqar B_n }{\vlhy{}}
405
			}
406
		}
407
	}
408
}
409
\]
410
\end{proof}
411

    
412

    
413
\textbf{NB:} The proof does not strictly require side formulae $? \Delta$ on the right of the sequent arrow $\seqar$, it would work without them, e.g.\ for the intuitionistic case. In a one-sided setting there is no difference.
414

    
415

    
416

    
417
\begin{corollary}
418
	The induction axiom of $A^1_2$ is equivalent to the rule:
419
	\[
420
	\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}
421
	\]
422
\end{corollary}
423
\begin{proof}
424
	By proposition above, generalisation and Currying.
425
\end{proof}
426

    
427

    
428
\subsection{Prenexing}
429
%In the presence of weakening we have a prenex normal form due to the following:
430
%
431
%\[
432
%\vlderivation{
433
%	\vlin{}{}{\exists x . A \lor B \seqar \exists x . (A(x) \lor B) }{
434
%		
435
%		}
436
%	}
437
%\]
438

    
439
Cannot derive prenexing operations, e.g.\ a problem with $\exists x . A \lor B \seqar \exists x . (A(x) \lor B)$. Can safely add prenexing rules? Or not a problem due to Witness predicate?
440

    
441
\section{Free-cut elimination in linear logic}
442

    
443

    
444
\todo{patrick}
445

    
446
\anupam{Possibly need to include the cases for affine logic too, e.g.\ if weakening is native, since it does not play nice as an axiom.}
447

    
448
\todo{include some bounds on free-cut elimination? Look at paper "Corrected upper bounds for free-cut elimination" by Beckmann and Buss for comparison.}
449

    
450
 While in usual 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}. 
451
  
452
%   \begin{definition}\label{def:anchoredcut}
453
%  An instance of cut rule in a  $\mathcal T$-proof is an \textit{anchored cut} if  its cut-formulas $A$ in the two premises are both principal for their rule, and at least one of these rules is non-logical.
454
%  \end{definition}
455
  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. See as example Fig. \ref{Fig:twosuccessiveanchorcuts}. Therefore we consider a more general definition:
456
%  \begin{figure}
457
%  \[
458
%  \vlderivation{
459
%    \vliinf{c1}{!\Gamma , \Gamma_1 \seqar A(t) , ?\Delta }{
460
%  \vlinf{(ind)}{(x \notin \FV(\Gamma, \Delta))}{ !\Gamma , A(\epsilon) \seqar A(t) , ?\Delta }{ !\Gamma , A(x) \seqar A(s x ), ?\Delta }}
461
%  {\Gamma_1\seqar A(\epsilon) }
462
%                   }
463
%  \]               
464
%%				\vlin{\cntr}{}{\Gamma, ?A}{
465
%%					\vlin{\wk}{}{\Gamma, ?A, ?A}{\vlhy{\Gamma, ?A}}
466
%%				}
467
%
468
%  \caption{Example}\label{Fig:twosuccessiveanchorcuts}
469
%  \end{figure}
470
   
471

    
472
  
473
  \begin{definition}\label{def:anchoredcut}
474
  We define in a mutual inductive way the notion of \textit{hereditarily principal formula} and \textit{anchored cut} in a $\mathcal T$-proof :
475
  \begin{itemize}
476
  \item A formula $A$ in a sequent $\Gamma \seqar \Delta$ is \textit{hereditarily principal} for a rule (S), if either the sequent is conclusion of the rule (S) and $A$ is principal in it, or 
477
  the sequent is conclusion of an anchored cut, and  the direct ancestor of $A$ in one of the two  premises is hereditarily principal for the rule (S).
478
  \item An instance of cut rule is an \textit{anchored cut} if  its cut-formulas $A$ in the two premises are both hereditarily principal for a rule, and at least one of these rules is non-logical.
479
  \end{itemize}
480
  \end{definition}
481
  So 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 
482
  a rule $\rigrul{\lor}$ and a rule $\lefrul{\lor}$ is not.
483
   
484
   A cut which is non-anchored will also be called a \textit{free-cut}.
485
   Now we can state the main result of this section:
486
   \begin{theorem}
487
    Given a theory  $\mathcal T$, any  $\mathcal T$-proof $\pi$ can be transformed into a $\mathcal T$-proof $\pi'$ with same conclusion sequent and in which all cuts are anchored.
488
   \end{theorem}
489
   \begin{proof}
490
   \patrick{The proof below is still in progress...}
491
   
492
    The proof will proceed in a way similar to the classical proof of cut elimination for linear logic, but here for eliminating only non-anchored cuts, and we will have to check that all steps of the reasoning are compatible with the fact that the proof here also contains $\mathcal{T}$ axioms and rules. Actually the most important part of the proof will be the handling of the commutation steps, since this is where the new rules and axioms could raise some problems.
493
     
494
     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 steps are not straightforward.
495
     
496
    
497
    Given a cut rule $c$ in a proof $\pi$, we call  \emph{degree} $\deg( c)$  the number of logical connectives or quantifiers in 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.
498
    
499
    The demonstration will proceed by induction on the degree  $\deg( \pi)$.  For a given degree we will proceed with a sub-induction on the \textit{height} $\height{\pi}$ of the proof.
500
    
501
    Consider a proof $\pi$ of non-null degree. We will 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$.  Intuitively we will proceed as follows: if $A$ is not 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)$; if $A$ is principal in both premises we will proceed with a cut-elimination step. So let us distinguish the three cases:
502
    
503
   \begin{itemize}
504
    \item \textbf{First case}: the cut-formula $A$ on the l.h.s. of  $c$ is non hereditarily principal. 
505
    
506
   %  Call (S) the last rule above the left premise of $c$. 
507
     
508
     
509
%     We perform a commutation step between (S) and $c$. We examine here the case where (S)=($\rigrul{\laand}$). 
510
%     
511
%     \[
512
%\vlderivation{
513
%\vliin{c}{}{ \Gamma,\Delta,A\vlan B }{ \vliin{\vlan}{}{\Gamma,A\vlan B,C}{ \vlhy{\Gamma,A,C} }{\vlhy{\Gamma,B,C}}}{ \vlhy{\Delta, C^\bot} }
514
%}
515
%\quad\to\quad
516
%\vlderivation{
517
%\vliin{\vlan}{}{\Gamma,\Delta,A\vlan B }{
518
%\vliin{c_1}{}{\Gamma,\Delta,A }{ \vlhy{\Gamma,A,C} }{ \vlhy{ \Delta,C^\bot } }
519
%}{
520
%\vliin{c_2 }{}{\Gamma,\Delta,B}{ \vlhy{\Gamma,B,C } }{ \vlhy{\Delta,C^\bot} }
521
%}
522
%}
523
%\]
524
%
525
%\patrick{TODO: adapt to two-sided sequents here}
526
\begin{itemize}
527
\item Consider first the situation where $(S_1)$ is not one of the rules $(\rigrul{!})$, $(\lefrul{?})$, $(R)$.
528

    
529
In this case the commutation of $c$ with $(S_1)$ can be done in the usual way. Let us handle as an example the case where $(S_1)=(\rigrul{\laand})$.
530
Observe that here $c$ is replaced by two cuts $c_1$ and $c_2$. Call $\pi_i$ the sub-derivation of last rule $c_i$, for $i=1,2$. As for $i=1, 2$ we have
531
$\deg{\pi_i}\leq \deg{\pi}$ and $\height{\pi_i}< \height{\pi}$ we can apply the induction hypothesis, and reduce $\pi_i$ to a proof $\pi'_i$ of same conclusion and with
532
$\deg{\pi'_i}\leq \deg{\pi_i}$. Therefore $\pi'_i$ has non-anchored cuts of degree strictly lower than $\deg(c)$, and thus by replacing $\pi_i$ by $\pi'_i$ for $i=1, 2$ we obtain a proof $\pi'$ such that $\deg{\pi'}<\deg{\pi}$.  
533

    
534
The case (S)=($\lefrul{\laor}$) is identical, and the other cases are similar (see the Appendix for more examples). 
535

    
536
\item Consider now the case where $(S_1)$ is equal to $(\rigrul{!})$, $(\lefrul{?})$ or $(R)$. Let us also assume that the cut-formula is hereditarily principal in its r.h.s. premise, because if this does not hold we can move to the second case below. 
537

    
538
First consider  $(S_1)=(\rigrul{!})$. As $A$ is not principal in the conclusion of $(\rigrul{!})$ it is of the form $A=?A'$. We know that  $A=?A'$ is principal in the conclusion of $(S_2)$: the rule $(S_2)$ thus cannot be a rule $(R)$ because of the condition 2. on $(R)$ rules; therefore the only possibility is that 
539
 $(S_2)$ is an  $(\lefrul{?})$ rule. So the r.h.s. premise is of the shape $?A',!\Gamma \seqar ?\Delta$ and the commutation on the l.h.s. is possible. We can conclude as previously. The case where  $(S_1)=(\lefrul{?})$ is the same.
540
 
541
 Now consider the case where $(S_1)=(R)$.  As $A$ is not principal in the conclusion of $(R)$, here again it is of the form $A=?A'$. So as before we deduce that   $(S_2)=(\lefrul{?})$, and  so the r.h.s. premise is of the shape $?A',!\Gamma \seqar ?\Delta$. We can rename the free variables in the premise sequents of $(S_1)$ such that none of them belongs to $FV(!\Gamma \seqar ?\Delta)$. Then the commutation on the left-hand-side is possible, because we "enlarge" the contexts with formulas starting with a $!$ (on the l.h.s. of $\seqar$) or a $?$  (on the r.h.s. of $\seqar$). The new occurrence of $(R)$ does satisfy conditions 1. and 2.
542
 
543
 \patrick{TODO: I will picture this case} 
544
 
545
\end{itemize}
546

    
547
%\patrick{Check that all cases are ok, taking into account constraints due to: contexts of $\rigrul{!}$, contexts of $\mathcal{T}$ rules (R), condition on free variables of (R).}
548
    \item \textbf{Second case}: the cut-formulas on the l.h.s. and r.h.s. of  $c$ are both non hereditarily principal. 
549
    
550
   After the first case we are here left with the situation where  $(S_1)$ is equal to $(\rigrul{!})$, $(\lefrul{?})$ or $(R)$.
551
   \begin{itemize}
552
    \item Consider the case where  $(S_1)$=$(\rigrul{!})$, $(\lefrul{?})$, so $A$ is of the form $A=?A'$. All cases of commutation of $c$ with $(S_2)$ are as in standard linear logic, except if $(S_2)=(R)$. In this case though we cannot have $A=?A'$ because of the shape of rule $(R)$. So we are done. 
553
    \item Consider  $(S_1)=(R)$. Again as $A$ is not principal on the l.h.s. it is of the form  $A=?A'$. As $?A'$ is not principal on the r.h.s., $(S_2)$ is not a rule $(R)$. So $(S_2)$ is a logical rule, and so it admits commutation with the cut $c$. 
554
   \end{itemize}
555
 
556
   
557
    \item \textbf{Third case}: the cut-formulas on the l.h.s. and r.h.s. of  $c$ are both  hereditarily principal.
558
     
559
    By assumption $c$ is non anchored, so none of the two cut-formulas is hereditarily principal for a non-logical rule $(R)$. We can deduce from that
560
    that the l.h.s. cut-formula is principal for $(S_1)$ and the r.h.s. cut-formula is principal for $(S_2)$.
561
    Then we consider the following sub-cases, in order:
562
     \begin{itemize}
563
      \item \textbf{exponential sub-case}: this is when one of the premises of $c$ is conclusion of a $cntr$, $\rigrul{?}$ or $\lefrul{!}$ rule on a formula $?A$ or $!A$, and the other one is not a conclusion of $\wk$. Assume w.l.o.g. that it is the right premise which is conclusion of $\lefrul{\cntr}$ or $\lefrul{!}$ on $!A$, and thus the only possibility for the left premise is to  be conclusion of $\rigrul{!}$.  We will use here a global rewriting step. For that consider in $\pi$ all the top-most direct ancestors of the cut-formula $!A$, that is to say direct ancestors which do not have any more direct ancestors above. Let us denote them as $!A^{j}$ for $1\leq j \leq k$. Observe that each $!A^{j}$ is principal formula of a rule $\lefrul{!}$ or $\lefrul{wk}$.
564
      
565
      Now remember that the right premise is a conclusion of rule $\rigrul{!}$.
566
      
567
      \patrick{to be continued...}
568
      
569
      \item \textbf{logical sub-case}: assume both premises of $c$ are conclusions of rules others than $?$, $!$, $wk$, $cntr$.
570
      
571
      If one of the premises is an axiom $\lefrul{\bot}$, $\id$ or $\rigrul{\bot}$, then $\pi$ can be rewritten to a suitable proof $\pi'$ by removing $c$ and the axiom rule. Otherwise both premises introduce the same connective, either  $\land$, $\lor$, $\laor$, $\laand$, $\forall$ or $\exists$. In each case a specific rewriting rule replaces the cut $c$ with one cut of strictly lower degree. See the Appendix.
572
      
573
      \item \textbf{weakening sub-case}: the remaining case is when one of the premises of $c$ is a $wk$ rule and the other one is a rule distinct from $cntr$, $\rigrul{?}$ or $\lefrul{!}$. W.l.o.g. assume that the left premise of $c$ is conclusion of $\lefrul{\wk}$. If the right premise is conclusion of say rule $\rigrul{\land}$ on a formula $A_1\land A_2$, then $c$ is replaced by two cuts $c_i$ ($i=1,2$) on a formula $A_i$ obtained (on the left) by a $\lefrul{\wk}$ rule. These two cuts are of strictly lower degree than $c$, so we are done. We proceed in a similar way in the cases of rules introducing connectives $\lor$, $\laand$, $\laor$, $\forall$, $\exists$. Now,there remains the case where the right premise is a $\rigrul{\wk}$: then the cut can be eliminated by erasing the two $wk$ rules and using instead a $mix$ rule. In this case also the degree has decreased.
574
      
575
      \patrick{Display the rewriting step here}.
576
      
577
     \end{itemize}
578
     
579
      
580
    \end{itemize}
581
     
582
   \end{proof}
583

    
584

    
585
\section{Some variants of arithmetic in linear logic}
586

    
587
For pretty much all variants discussed we will actually work in the \emph{affine} variant of linear logic, which validates weakening: $(A \land B )\limp A$. There are many reasons for this; essentially it has not much effect on complexity while also creating a more robust proof theory. For example it induces the following equivalence:
588
\[
589
!(A\land B) \equiv (!A \land !B)
590
\]
591
(The right-left direction is already valid in usual linear logic, but the left-right direction requires weakening).
592

    
593
We define a variant of arithmetic inspired by Bellantoni and Hofmann's $A^1_2$. We describe later some connections to bounded arithmetic.
594

    
595

    
596
\subsection{Based on Bellantoni-Hoffmann, Leivant, etc.}
597

    
598
\newcommand{\natcntr}{\nat\mathit{cntr}}
599
\newcommand{\geneps}{\nat_{\epsilon}}
600
\newcommand{\genzer}{\nat_{0}}
601
\newcommand{\genone}{\nat_{1}}
602

    
603

    
604
\newcommand{\sepeps}{\epsilon}
605
\newcommand{\sepzer}{\succ_{0}}
606
\newcommand{\sepone}{\succ_{1}}
607

    
608
\newcommand{\inj}{\mathit{inj}}
609
\newcommand{\surj}{\mathit{surj}}
610

    
611
\begin{definition}
612
[Arithmetic]
613
We have the following axioms:
614
\[
615
\begin{array}{rl}
616
\wk & (A \land B )\limp A \\
617
\natcntr & \forall x^N . (N(x) \land N(x)) \\
618
\geneps & \nat(\epsilon) \\
619
\genzer & \forall x^N . N(\succ_0 x) \\
620
\genone & \forall x^N . N(\succ_1 x) \\
621
\sepeps & \forall x^N . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\
622
\sepzer & \forall x^N , y^N. ( \succ_0 x = \succ_0 y \limp x=y ) \\
623
\sepone & \forall x^N , y^N. ( \succ_1 x = \succ_1 y \limp x=y ) \\
624
\inj & \forall x^N . \succ_0 x \neq \succ_1 x \\
625
\surj & \forall x^N . (x = \epsilon \lor \exists y^N . x = \succ_0 y \lor \exists y^N . x = \succ_1 y ) \\
626
\noalign{\bigskip}
627
\ind & A(\epsilon) \limp !( \forall x^{!\nat} . ( A(x) \limp A(\succ_0 x) ) ) \limp !( \forall x^{!\nat} . ( A(x) \limp A(\succ_1 x) ) ) \limp \forall x^{!\nat} . A(x)
628
\end{array}
629
\]
630

    
631
Induction rule should be the following, to take account of relativised quantifiers?
632
\[
633
\vliinf{\ind}{}{ !N(t) , !\Gamma , A(\epsilon) \seqar A(t), ?\Delta }{ !N(a) , !\Gamma, A(a) \seqar A(\succ_0 a) , ?\Delta }{ !N(a) , !\Gamma, A(a) \seqar A(\succ_0 a) , ?\Delta  }
634
\]
635

    
636
\todo{in existential above, is there a prenexing problem?}
637

    
638
\todo{what about $\leq$? Introducing this could solve prenexing problem, e.g.\ by induction?}
639
\end{definition}
640

    
641
\subsection{$\nat$-hierarchy}
642

    
643
\begin{definition}
644

    
645
\todo{replace N with nat.}
646

    
647
	Let us define the quantifiers $\exists x^N . A$ and $\forall x^N . A$ as $\exists x . (N(x) \land A)$ and $\forall x . (N(x) \limp A) $ respectively.
648
	
649
	We define $\Sigma^N_0 = \Pi^N_0 $ as the class of formulae that are free of quantifiers. For $i\geq 0$ we define:
650
	\begin{itemize}
651
		\item $\Sigma^N_{i+1}$ is the class of formulae $\exists x^N . A$ where $A \in \Pi^N_i$.
652
		\item $\Pi^N_{i+1}$ is the class of formulae $\forall x^N . A$ where $A \in \Sigma^N_i$.
653
		\item ($\Delta^N_i$ is the class $\Sigma^N_i \cap \Pi^N_i$.)
654
	\end{itemize}
655
\end{definition}
656

    
657
\todo{allow closure under positive Boolean operations?}
658

    
659
\todo{What about prenexing rules? Should not change provably total functions!}
660

    
661
\subsection{Equivalent rule systems}
662

    
663
For the quantifiers $\exists x^N $ and $\forall x^N$ we introduce the following rules, which are compatible with free-cut elimination:
664

    
665
\[
666
\begin{array}{cc}
667
\vlinf{}{}{\Gamma \seqar \Delta, \forall x^N . A(x)}{\Gamma, N(a) \seqar \Delta , A(a)}
668
\quad & \quad
669
\vlinf{}{}{\Gamma, N(t),\forall x^N A(x) \seqar \Delta}{\Gamma,  A(t) \seqar \Delta}
670
\\
671
\noalign{\bigskip}
672
\vlinf{}{}{\Gamma , \exists x^N A(x) \seqar \Delta}{\Gamma, N(a), A(a) \seqar \Delta}
673
\quad &\quad 
674
\vlinf{}{}{\Gamma, N(t) \seqar \Delta , \exists x^N . A(x)}{\Gamma  \seqar \Delta, A(t)}
675
\end{array}
676
\]
677

    
678
CHECK THESE!
679

    
680
\todo{Also include rules for contraction and weakening.}
681

    
682
\section{Convergence of Bellantoni-Cook programs}
683

    
684
\subsection{Bellantoni-Cook programs}
685
We first recall the notion of safe recursion on notation from BC. TODO
686

    
687
\subsection{Convergence in arithmetic}
688
\begin{theorem}
689
	[Convergence]
690
	If $\Phi(f)$ is an equational specification corresponding to a BC-program defining $f()$, then $\cax{\Sigma^N_1}{\pind} \proves  \ !\Phi(f) \limp \forall \vec{x}^{!N} . N(f(\vec x))$.
691
\end{theorem}
692
\begin{proof}
693
	We show by induction on the structure of a BC-program for $f(\vec x ; \vec y)$ that:
694
	\begin{equation}
695
	\Phi(f) , \cax{\Sigma^N_1}{\pind} \proves \ \forall \vec{x}^{!N} . \forall \vec{y}^N . N(f(\vec x ; \vec y))
696
	\end{equation}
697
	We give some key cases in what follows.
698
	
699
	Suppose $f$ is defined by PRN by:
700
	\[
701
	\begin{array}{rcl}
702
	f(0,\vec x ; \vec y) & = & g(\vec x ; \vec y) \\
703
	f(\succ_i x , \vec x ; \vec y) & = & h_i (x, \vec x ; \vec y , f(x , \vec x ; \vec y))
704
	\end{array}
705
	\]
706
	By the inductive hypothesis we already have that $g, h_0, h_1$ are provably convergent, so let us suppose that $N(\vec x)$ and prove,
707
	\begin{equation}
708
	\forall x^{!N} . ( N(\vec y) \limp N(f(x , \vec x ; \vec y)  )
709
	\end{equation}
710
	by $\cax{\Sigma^N_1}{\pind}$ on $x$.
711
	
712
	In the base case we have the following proof:
713
	\[
714
	\vlderivation{
715
		\vliin{}{}{N(\vec y) \limp N(f(0, \vec x ; \vec y))}{
716
			\vltr{IH}{N(\vec y) \limp N(g(\vec x ; \vec y))}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
717
		}{
718
		\vlin{}{}{N(g (\vec x ; \vec y) ) \limp N(f(0, \vec x ; \vec y)) }{
719
			\vlin{}{}{g(\vec x ; \vec y) = f(0 , \vec x ; \vec y)}{\vlhy{}}
720
		}
721
	}
722
}
723
\]
724

    
725
For the inductive step, we need to show that,
726
\[
727
\forall x^{!N} . (( N(\vec y) \limp N( f(x, \vec x ; \vec y) ) ) \limp N(\vec y) \limp N(f(\succ_i x , \vec x ; \vec y) )   )
728
\]
729
so let us suppose that $N(x)$ and we give the following proof:
730
\[
731
\vlderivation{
732
	\vlin{N\cntr}{}{N(y) \limp ( N(y ) \limp N(f( x , \vec x ; \vec y ) ) ) \limp N(f (\succ_i x , \vec x ; \vec y)  ) }{
733
		\vliin{}{}{N(y) \limp N(y) \limp ( N(y ) \limp N(f( x , \vec x ; \vec y ) ) ) \limp N(f (\succ_i x , \vec x ; \vec y)  ) }{
734
			\vliin{}{}{ N(y) \limp N(y) \limp ( N(y) \limp N( f(x, \vec x ; \vec y) ) ) \limp N( h_i (x , \vec x ; \vec y , f(x , \vec x ; \vec y) ) ) }{
735
				\vltr{MLL}{( N(\vec y) \limp (N (\vec y) \limp N(f(x, \vec x ; \vec y) )) \limp N(f(x, \vec x ; \vec y)) }{\vlhy{\quad }}{\vlhy{\ }}{\vlhy{\quad }}
736
			}{
737
			\vlhy{2}
738
		}
739
	}{
740
	\vlhy{3}
741
}
742
}
743
}
744
\]
745
TOFINISH
746
\end{proof}
747

    
748
\section{Witness function method}
749

    
750
Key features/differences from realisability:
751
\begin{itemize}
752
\item De Morgan normal form: reduces type level to $0$, complementary to double-negation translation that \emph{increases} type level.
753
\item Free-cut elimination: allows us to handles formulae of fixed logical complexity throughout the proof. 
754
\item Respects logical properties of formulae, e.g.\ quantifier complexity, exponential complexity.
755
\end{itemize}
756

    
757
\todo{say some more here}
758

    
759
\newcommand{\type}{\mathtt{t}}
760
\newcommand{\norm}{\nu}
761
\newcommand{\safe}{\sigma}
762

    
763
\subsection{Typing}
764

    
765
\begin{definition}
766
	[Types]
767
	To each formula we associate a tuple type as follows:
768
	\[
769
	\begin{array}{rcll}
770
	\type (\nat (t)) & := & \Nat & \\
771
	\type(s = t) & := & \Nat & \\
772
	\type (A \star B)  & : = & \type (A) \times \type (B) & \text{for $\star \in \{ \lor, \land, \laor, \laand \} $.} \\
773
	\type (! A) & : = & \type_\norm (A) & \\
774
	\type (\exists x^N . A) & := & \Nat \times \type (A) & \\
775
%	\type (\forall x^N . A) & := & \Nat \to \type(A)
776
	\end{array}
777
	\]
778
	where $\nu$ designates that the inputs are normal.
779
	\end{definition}
780
	
781
	\todo{compatibility with safety. To consider.}
782
	
783
	
784
	
785
	
786
	\newcommand{\witness}[2]{\mathit{Witness}^{#1}_{#2}}
787
	\begin{definition}
788
		[Witness predicate]
789
		We define the following formula:
790
		\[
791
		\begin{array}{rcll}
792
		\witness{\vec a}{A} (w, \vec a) & := & A(\vec a) & \text{for $A$ quantifier-free.} \\
793
		\witness{\vec a}{\exists x . A} (w, \vec w , \vec a) & := & \witness{\vec{a}, a}{A(a)}(\vec w , \vec a, w ) & \\
794
		\witness{\vec a}{A \star B} ( \vec w^1 , \vec w^2 ) & := &  \witness{\vec a}{A} (\vec w^1) \star \witness{\vec a}{B} (\vec w^2) & \text{for $\star \in \{ \land, \lor, \laand , \laor\}$.} \\
795
		\end{array}
796
		\]
797
	\end{definition}
798
	\todo{problem: what about complexity of checking equality? }
799
	
800
	\todo{What about $\nat (t)$? What does it mean? Replace with true?}
801
	
802
	\todo{either use the witness predicate above, or use realizability predicate at meta-level and a model theory, like BH.}
803
	
804
	\anupam{Need to check above properly. $N(t)$ should be witnessed by the value of $t $ in the model. For equality of terms the witness should not do anything.}
805
	
806
	\subsection{The translation}
807
	Need witness predicate so that we know what is being preserved.
808

    
809
\begin{definition}
810
	[Translation]
811
	We give a translation of proofs $\pi$ of sequents $\Gamma(\vec a) \seqar \Delta(\vec a)$ to BC-programs for a vector of functions $\vec f^\pi : \type(\bigotimes\Gamma) \times \Nat^{|\vec a|} \to \type(\bigparr\Delta)$ such that:
812
	\[
813
	\witness{\vec a}{\bigotimes \Gamma} (\vec w , \vec a) \implies \witness{\vec a}{\bigparr \Delta } (\vec f(\vec w , \vec a), \vec a)
814
	\]
815
	We will be explicit about normal and safe inputs when necessary, for the most part we will simply rearrange inputs into lists $(\vec x; \vec a)$ as in BC framework.
816
	
817
	We often suppress the parameters $\vec a$ when it is not important.	
818
	
819
	\anupam{Is this implication provable in Bellantoni's version of PV based on BC?}
820
	
821
	\anupam{for moment try ignore decoration on right? what about negation?}
822
	
823

    
824
	
825
	\[
826
	\vlderivation{
827
		\vliin{\land}{}{ \Gamma, \Sigma \seqar \Delta, \Pi, A\land B }{
828
			\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
829
			}{
830
			\vltr{\pi_2}{ \Sigma \seqar \Pi, B }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
831
			}
832
		}
833
	\]
834
	
835
	So we have $\vec f^{1} (\vec x ; \vec a)$ and $\vec f^2 (\vec y ; \vec b)$ for $\pi_1 $ and $\pi_2$ respectively, by the inductive hypothesis. We simply construct $\vec f^\pi$ by rearranging these functions:
836
	\[
837
	\vec f^\pi (\vec x , \vec y ; \vec a , \vec b) \quad := \quad ( f^1_1 (\vec x ; \vec a) , \dots , f^1_{|\Delta|} (\vec x ; \vec a) , f^2_1 (\vec y; \vec b) , \dots , f^2_{|\Pi|} (\vec y ; \vec b) , f^1_{|\Delta|+1} (\vec x ; \vec a ) , f^2_{|\Pi|+1} (\vec y ; \vec b)
838
	\] 
839
	
840
	\anupam{bad notation since need to include free variables of sequent too. (also of theory.) Reconsider.}
841
	
842
	\[
843
	\vlderivation{
844
		\vlin{\lefrul{\cntr}}{}{ !A , \Gamma \seqar \Delta }{
845
			\vltr{\pi'}{  !A, !A , \Gamma \seqar \Delta}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
846
			}
847
		}
848
	\]
849
	Have $\vec f' (x_1 , x_2 , \vec y ; \vec a)$ for $\pi'$. Define
850
	\[
851
	\vec f (x_1 , \vec y ; \vec a) \quad := \quad \vec f'(x_1 , x_1 , \vec y ; \vec a)
852
	\]
853
	\[
854
	\vlderivation{
855
	\vlin{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{
856
	\vltr{\pi'}{  \Gamma \seqar \Delta, ?A, ?A}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
857
	}
858
	}
859
	\]
860
	(need test function against witness predicate?)
861
	
862
	\anupam{problem: how to test even equality of two terms? Maybe treat $?$ as $!$ on left?}
863
	
864
	\anupam{Not a problem by free-cut elimination! Can assume there are no $?$ in the proof! Is this equivalent to treaing $?$ as $!$ on left?}
865
	
866
	\anupam{Yes I think so. We can work in a left-sided calculus. only problem is for induction. But this can never be a problem for modalities since induction formulae are modality-free.}
867
	
868
	\anupam{this is actually the main point.}
869
	
870
	
871
	\[
872
	\vlderivation{
873
	\vliin{\rigrul{\laand}}{}{\Gamma \seqar \Delta, A \laand B}{
874
	\vltr{\pi_1}{  \Gamma \seqar \Delta, A}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
875
	}{
876
	\vltr{\pi_2}{  \Gamma \seqar \Delta, B}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
877
	}
878
	}
879
	\]
880
	
881
	Suppose we have $\vec f^i (\vec x , \vec a ; \vec y , \vec b)$ from $\pi_i$.
882
	
883
	\anupam{problem: does this require many tests, just like for contraction? Can we isolate a different complexity class? e.g.\ PH or Grzegorzyck?}
884
	\anupam{skip this case and consider later.}
885
\[
886
\vlderivation{
887
\vliin{\cut}{}{\Gamma , \Sigma \seqar \Delta , \Pi}{
888
\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
889
}{
890
\vltr{\pi_2}{\Sigma , A \seqar \Pi}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
891
}
892
}
893
	\]
894
	
895
We can assume that $A$ in the conclusion of $\pi_2$ is free of modalities, since one of the $A$s must be directly descended from an induction formula, and so consists of only safe inputs. Therefore we have functions $\vec f^1 (\vec w; \vec x)$ and $\vec f^2 (\vec y ; \vec z , \vec u)$ for $\pi_1$ and $\pi_2 $ respectively (free variable parameters are suppressed), with $\vec u$ corresponding to the (safe) inputs for $A$. 
896

    
897
Let us write:
898
\[
899
\begin{array}{rcl}
900
\vec f^1 & = & ( \vec f^1_i )^{|\Delta|+1}_{i=1} \\
901
\vec f^2 & = & ( \vec f^2_i )^{|\Pi|}_{i=1}
902
\end{array}
903
\]
904
to denote the parts of $\vec f^i$ corresponding to formulae in their sequents.
905

    
906

    
907
We define:
908
\[
909
\vec f (\vec w , \vec y ; \vec x , \vec z)
910
\quad := \quad
911
(
912
( \vec f^1_i (\vec w ; \vec x) )_{i \leq |\Delta|}
913
,
914
\vec f^2 ( \vec y ; \vec z , \vec f^1_{|\Delta| +1 } (\vec w ; \vec x) )
915
)
916
\]
917

    
918
Notice that all safe inputs are hereditarily right of a $;$, and so these terms are definable by safe composition and projection.
919

    
920
\todo{another case for $!\nat(x)$ cut formula.}
921

    
922
\anupam{should work for arbitrary $!$-cuts due to principal case for $!$}
923

    
924

    
925
Right existential:
926
\[
927
\vlderivation{
928
\vlin{\rigrul{\exists}}{}{ \Gamma, \nat(t) \seqar \Delta , \exists x^\nat . A(x) }{
929
\vltr{\pi'}{ \Gamma \seqar \Delta , A(t) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
930
}
931
}
932
\]
933
Suppose we have functions $\vec f^X (\vec x ; \vec y)$ from $\pi'$ for $X = \Delta$ or $ X=A$. 
934
\[
935
\vec f(\vec x ; \vec y , z) \quad := \quad ( \vec f^\Delta (\vec x ; \vec y)   ,  z , \vec f^A ( \vec x ; \vec y ) )
936
\]
937

    
938

    
939
Left existential:
940
\[
941
\vlderivation{
942
\vlin{\lefrul{\exists}}{}{ \Gamma, \exists x^N . A(x) \seqar \Delta }{
943
\vltr{\pi'(a)}{ \Gamma,  N(a) , A(a) \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
944
}
945
}
946
\]
947

    
948
Suppose we have functions $\vec f' (\vec u , \vec v ; x , \vec y , \vec z)$ from $\pi'$ with $(\vec u ; \vec x )$ corresponding to $\Gamma$, $(;x)$ corresponding to $N(a)$ and $(\vec v ; \vec z)$ corresponding to $A(a)$. We define:
949
\[
950
\vec f ( \vec u , \vec v ;  )
951
\]
952

    
953
\anupam{should just be same, no? To consider.}
954

    
955
%Suppose we have functions $\vec g (\vec v  , \vec w ; \vec x , y , \vec z)$ where $(\vec v ; \vec x) $ corresponds to $\Gamma$, $y$ corresponds to $\nat(a)$ and $(\vec w ; \vec z) $ corresponds to $A(a)$. Then we define:
956
%\[
957
%\vec f ( \vec v , \vec w ; \vec x , y , \vec z )
958
%\]
959

    
960
\todo{finish}
961

    
962
!:
963
\[
964
\vlderivation{
965
\vlin{!}{}{\Gamma, !A \seqar \Delta}{
966
\vltr{\pi'}{ \Gamma , A \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
967
}
968
}
969
\]
970
\anupam{Again, use free-cut elimination to get rid of this case. We know $!$-ed formulae in advance, so just fix those as normal inputs in advance.}
971

    
972

    
973
Induction: (can assume no side-formulae on right for same reason as no contraction.)
974
\[
975
\vlderivation{
976
\vliin{\ind}{}{ !\Gamma , !\nat (t) ,  A(\epsilon) \seqar A(t) }{
977
\vltr{\pi_0}{ !\Gamma , !\nat(a) , A(a) \seqar A(\succ_0 a)}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
978
}{
979
\vltr{\pi_1}{ !\Gamma , !\nat(a), A(a)\seqar A(\succ_1 a) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
980
}
981
}
982
\]
983

    
984
Suppose we have functions $\vec f^i (\vec x , y ; \vec u)$ from proofs $\pi_i$ where $\vec x $ corresponds to $!\Gamma$, $y$ corresponds to $!N(a)$ and $\vec u$ corresponds to $A(a)$.
985

    
986

    
987
\anupam{role of $!N(a)$ versus having $a$ as a parameter to function. To consider!}
988

    
989
Define the function $f_k$ (for $k = 1 , \dots , |\vec u|$) by PRN:
990
\[
991
\begin{array}{rcl}
992
f_k(\epsilon, \vec x , y ; \vec u) & := & u_k \\
993
f_k (\succ_i w , \vec x , y ; \vec u) & : = & f^i_k ( \vec x ,  y ; \vec f ( w, \vec x , y ; \vec u ) )
994
\end{array}
995
\]
996

    
997
\anupam{check this, esp use of parameters, cf.\ above.}
998

    
999
\anupam{Is this not using a simultaneous version of PRN? Might need concatenation of words/basic coding to deal with this.}
1000

    
1001

    
1002
\end{definition}
1003

    
1004
\newcommand{\concat}{\mathit{concat}}
1005
\paragraph{Some points on concatenation \anupam{if necessary}}
1006
We can define the concatenation operation by PRN:
1007
\[
1008
\begin{array}{rcl}
1009
\concat (\epsilon ; y) & : = & x \\
1010
\concat (\succ_i x ; y) & := & \succ_i \concat (x ; y)
1011
\end{array}
1012
\]
1013

    
1014
From here we can define iterated concatenation:
1015
\[
1016
\concat (x_1 , \dots x_n ; y) \quad := \quad \concat (x_n ; \concat (x_{n-1} ; \vldots \concat (x_1 ; y) \vldots ) )
1017
\]
1018

    
1019
(notice all safe inputs are hereditarily to the right of $;$ so this is definable by safe composition and projection.)
1020

    
1021
\section{Further work}
1022

    
1023
Say something about minimisation and the polynomial hierarchy. Could be achieved by controlling contraction/additives, since this requires a notion of tests.
1024

    
1025
\section{Conclusions}
1026

    
1027
\appendix
1028

    
1029
\section{Some cut-elimination cases}
1030
We work in a one-sided calculus for full linear logic. When working in the affine setting we simply drop the condition that weakened formulae are $?$-ed.
1031

    
1032
As well as all usual rules, we have the induction rule:
1033
\[
1034
\vlinf{\indr}{(x \notin FV (\Gamma) )}{? \Gamma, A^\perp (0) , A(t)}{? \Gamma , A^\perp (x) , A(s x) }
1035
\]
1036

    
1037
We give all the various cut-reduction cases in the following section but first we give a simple cut-elimination argument.
1038

    
1039
\subsection{A basic (free-)cut elimination argument}
1040
We give an argument that easily scales to free-cut elimination, i.e.\ in the presence of non-logical rules.
1041

    
1042
\newcommand{\anarrow}[2]{\overset{#1}{\underset{#2}{\longrightarrow}}}
1043
\newcommand{\cutredlin}{\mathit{ma}}
1044
\newcommand{\cutredexp}{exp}
1045

    
1046
\begin{definition}
1047
	Let $\anarrow{}{\cutredexp}$ denote the reduction steps concerning exponential cuts, and $\anarrow{}{\cutredlin}$ be the set of cut-reduction steps concerning multiplicative and additive cuts.
1048
\end{definition}
1049

    
1050
\newcommand{\rk}{\mathsf{rk}}
1051
	\renewcommand{\deg}{\mathsf{deg}}
1052
\begin{definition}
1053
	[Measures]
1054
	For a $\anarrow{}{\cutredlin}$-redex $r$, let its \emph{degree} $\deg( r)$ be the number of logical connectives or quantifiers in its cut-formula. For a proof $\pi$, its \emph{degree} $\deg( \pi)$ is the multiset of the degree of its redexes.
1055
\end{definition}
1056

    
1057
\begin{proposition}
1058
If $\pi$ is not $\anarrow{}{\cutredlin}$-normal then there is a derivation $L:\pi \anarrow{*}{\cutredlin} \pi'$ such that $\deg(\pi')< \deg(\pi)$.
1059
\end{proposition}
1060
\begin{proof}
1061
	First let us show the statement in the special case that $\pi$ contains precisely one $\cut$-inference as its final step, by induction on $|\pi|$. Each commutative $\anarrow{}{\cutredlin}$-step results in us being able to apply the inductive hypothesis to smaller proofs,- in the case of $\vlan $ two smaller proofs. Each key $\anarrow{}{\cutredlin}$-case strictly reduces the degree of the proof. Consequently we can eventually transform $\pi$ to a proof $\pi'$ which has possibly several cuts of smaller degree, as required.
1062
	
1063
	Now to the general case, we simply apply the above procedure to the subproof above a topmost cut in $\pi$.
1064
\end{proof}
1065
\begin{corollary}
1066
	$\anarrow{}{\cutredlin}$ is weakly normalising.
1067
\end{corollary}
1068

    
1069

    
1070
\newcommand{\cntdown}{\mathit{cn}}
1071
\begin{definition}
1072
	[Lazy contraction]
1073
	Let $\anarrow{}{\cntdown}$ comprise of the following reduction steps:
1074
	\begin{enumerate}
1075
		\item The commuting steps,
1076
			\[
1077
			\vlderivation{
1078
				\vlin{\rho}{}{\Gamma', ?A, }{
1079
					\vlin{\cntr}{}{\Gamma, ?A}{\vlhy{\Gamma, ? A, ? A}}
1080
				}
1081
			}
1082
			\quad\to \quad
1083
			\vlderivation{
1084
				\vlin{\cntr}{}{\Gamma', ?A}{
1085
					\vlin{\rho}{}{\Gamma', ?A, ?A}{\vlhy{\Gamma, ? A, ? A}}
1086
				}
1087
			}	
1088
			\]
1089
			for each unary rule $\rho$.
1090
			\item 
1091
			The key steps:
1092
			\[ 	
1093
			\begin{array}{rcl}
1094
			\vlderivation{
1095
				\vlin{\cntr}{}{\Gamma, ?A}{
1096
					\vlin{\wk}{}{\Gamma, ?A, ?A}{\vlhy{\Gamma, ?A}}
1097
				}
1098
			}
1099
			\quad &\to & \quad
1100
			\Gamma, ?A 
1101
%			\]
1102
%			and
1103
%			\[
1104
\\
1105
\noalign{\smallskip}
1106
				\vlderivation{
1107
					\vlin{\wk}{}{\Gamma, ?A, ?A}{
1108
						\vlin{\cntr}{}{\Gamma, ?A}{\vlhy{\Gamma, ?A, ?A}}
1109
					}
1110
				}
1111
				\quad &\to& \quad
1112
				\Gamma, ?A, ?A
1113
							\end{array}
1114
			\].
1115
\item The commuting steps,
1116
\[
1117
	\vlderivation{
1118
		\vliin{\rho}{}{\Gamma ,?A}{
1119
			\vlin{\cntr}{}{\Gamma_1, ?A}{\vlhy{\Gamma_1, ?A, ?A}}
1120
		}{\vlhy{\Gamma_2}}
1121
	}
1122
	\quad \to \quad
1123
	\vlderivation{
1124
		\vlin{\cntr}{}{\Gamma, ?A}{
1125
			\vliin{\rho}{}{\Gamma,?A, ?A}{\vlhy{\Gamma_1, ?A, ?A}}{ \vlhy{\Gamma_2} }
1126
		}
1127
	}
1128
\]
1129
%\[
1130
%\begin{array}{rcl}
1131
%	\vlderivation{
1132
%		\vliin{\land}{}{\Gamma, \Delta, ?A, B\land C}{
1133
%			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
1134
%		}{\vlhy{\Delta, C}}
1135
%	}
1136
%	\quad &\to &\quad
1137
%	\vlderivation{
1138
%		\vlin{\cntr}{}{\Gamma, \Delta, ?A, B\land C}{
1139
%			\vliin{\land}{}{\Gamma, \Delta, ?A, ?A, B\land C}{\vlhy{\Gamma, ?A, ?A, B}}{ \vlhy{\Delta, C} }
1140
%		}
1141
%	}
1142
%%	\]
1143
%%	
1144
%%	\[
1145
%\\
1146
%\noalign{\smallskip}
1147
%	\vlderivation{
1148
%		\vliin{\cut}{}{\Gamma, \Delta, ?A}{
1149
%			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
1150
%		}{\vlhy{\Delta, \lnot{B}}}
1151
%	}
1152
%	\quad &\to& \quad
1153
%	\vlderivation{
1154
%		\vlin{\cntr}{}{\Gamma, \Delta, ?A}{
1155
%			\vliin{\cut}{}{\Gamma, \Delta, ?A, ?A}{\vlhy{\Gamma, ?A, ?A, B}}{ \vlhy{\Delta, \lnot{B}} }
1156
%		}
1157
%	}
1158
%\end{array}
1159
%\]
1160
for each binary rule $\rho \in \{ \land, \cut \}$.
1161
\item The commuting step:
1162
	\[
1163
	\vlderivation{
1164
		\vliin{\vlan}{}{\Gamma, ?A, B\vlan C}{
1165
			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
1166
		}{\vlhy{\Gamma, ?A, B}}
1167
	}
1168
	\quad \to \quad
1169
	\vlderivation{
1170
		\vlin{\cntr}{}{\Gamma, ?A, B\vlan C}{
1171
			\vliin{\vlan}{}{\Gamma, ?A, ?A, B\vlan C}{\vlhy{\Gamma, ?A, ?A, B}}{
1172
				\vlin{\wk}{}{\Gamma, ?A, ?A, C}{\vlhy{\Gamma, ?A, C}}
1173
			}
1174
		}
1175
	}
1176
	\]
1177
	\end{enumerate}
1178
	For binary rules:
1179

    
1180
\end{definition}
1181
\begin{proposition}
1182
	$\anarrow{}{\cntdown}$ is weakly normalising
1183
	, modulo $\cntr$-$\cntr$ redexes,
1184
	and degree-preserving. 
1185
	If $\pi$ is $\anarrow{}{\cutredlin}$-normal and $\pi \downarrow_\cntdown \pi'$, then so is $\pi'$.
1186
\end{proposition}
1187
\begin{proof}
1188
	By induction on the number of redexes in a proof. Start with bottommost redex, by induction on number of inference steps beneath it.
1189
\end{proof}
1190

    
1191
\begin{remark}
1192
	Only weakly normalising since $\cntr$ can commute with $\cntr$, allowing cycles.
1193
\end{remark}
1194

    
1195
\begin{proposition}
1196
	If $\pi$ is $\anarrow{}{\cutredexp}$-reducible but $\anarrow{}{\cutredlin}$- and $\anarrow{}{\cntdown}$-normal then there is a derivation $H:\pi \anarrow{*}{\cutredexp} \pi'$ such that $\deg (\pi')<\deg(\pi)$.
1197
\end{proposition}
1198

    
1199

    
1200

    
1201
\subsection{Base cases}
1202

    
1203
\[
1204
\vlderivation{
1205
\vliin{\cut}{}{ \Gamma,a }{ \vlhy{\Gamma,a} }{ \vlin{\id}{}{a,a^\bot}{ \vlhy{} } }
1206
}
1207
\quad\to\quad
1208
\vlderivation{
1209
\Gamma,a
1210
}
1211
\]
1212

    
1213
\[
1214
\vlderivation{
1215
\vliin{\cut}{}{\Gamma}{ \vlin{\bot}{}{ \Gamma,\bot }{ \vlhy{\Gamma} } }{ \vlin{1}{}{1}{ \vlhy{} } }
1216
}
1217
\quad\to\quad
1218
\vlderivation{
1219
\Gamma
1220
}
1221
\]
1222

    
1223
\[
1224
\vlderivation{
1225
\vliin{\cut}{}{ \Gamma,\Delta,\top }{ \vlin{\top}{}{ \Gamma,\top,0 }{ \vlhy{} } }{ \vlhy{\Delta , \top } }
1226
}
1227
\quad\to\quad
1228
\vlinf{\top}{}{ \Gamma,\Delta,\top }{}
1229
\]
1230

    
1231
\subsection{Commutative cases}
1232
These are the cases when the principal formula of a step is not active for the cut-step below.
1233

    
1234
\begin{enumerate}
1235
\item The cut-step is immediately preceded by an initial step. Note that only the case for $\top$ applies:
1236
\[
1237
\vlderivation{
1238
\vliin{\cut}{}{\Gamma,\Delta,\top}{ 
1239
\vlin{\top}{  }{ \Gamma,\top,A }{ \vlhy{} }
1240
 }{ \vlhy{\Delta,A^\bot } }
1241
}
1242
\quad\to\quad
1243
\vlinf{\top}{}{ \Gamma,\Delta,\top }{}
1244
\]
1245
%Notice that this commutation eliminates the cut entirely and preserves the height of all cuts below.
1246
\item\label{CaseCommOneStep} A cut-step is immediately preceded by a step $\rho$ with exactly one premiss:
1247
\[
1248
\vlderivation{
1249
\vliin{\cut}{}{\Gamma',\Delta}{\vlin{\rho}{}{\Gamma',A}{\vlhy{\Gamma,A}}}{\vlhy{A^\bot , \Delta}}
1250
}
1251
\]
1252
We have three subcases:
1253
\begin{enumerate}
1254
\item\label{subcase:unary-commutation-vanilla} 
1255
%$\Delta$ consists of only $?$-ed formulae or 
1256
If $\rho \notin \{! , \indr \}$ then we can simply permute as follows:
1257
\begin{equation}
1258
\label{eqn:com-case-unary-simple}
1259
\vlderivation{
1260
\vliin{\cut}{}{\Gamma',\Delta}{\vlin{\rho}{}{\Gamma',A}{\vlhy{\Gamma,A}}}{\vlhy{A^\bot , \Delta}}
1261
}
1262
\quad \to \quad
1263
\vlderivation{
1264
\vlin{\rho}{}{\Gamma',\Delta}{
1265
\vliin{\cut}{}{\Gamma,\Delta}{\vlhy{\Gamma,A}}{\vlhy{A^\bot , \Delta}}
1266
}
1267
}
1268
\end{equation}
1269
(If $\rho$ was $\forall$ then we might need to rename some free variables in $\Delta$.)
1270
\item $\rho $ is a $!$-step. Therefore $\Gamma$ has the form $? \Sigma , B$ and $A$ has the form $?C$, yielding the following situation:
1271
\[
1272
\vlderivation{
1273
\vliin{\cut}{}{? \Sigma, !B, \Delta }{
1274
\vlin{!}{}{? \Sigma, !B , ?C}{\vlhy{?\Sigma , B , ?C}  }
1275
}{
1276
\vlin{\rho'}{}{!C^\perp , \Delta}{\vlhy{\vlvdots}}
1277
}
1278
}
1279
\]
1280
Now, if $!C^\perp$ is principle for $\rho'$ then $\rho'\in \{! , \indr\}$ and so $\Delta $ must be $?$-ed; in this case we are able to apply the transformation \eqref{eqn:com-case-unary-simple}. Otherwise $A^\perp$ is not principal for $\rho'$ and so $\rho' \notin \{! , \indr \}$, which means we can apply \ref{subcase:unary-commutation-vanilla} along this side of the subproof.
1281
\item $\rho$ is a $\indr$-step. Therefore $\Gamma$ has the form $? \Sigma , B^\perp(x), B(s x) $ and $A$ has the form $?C$, and the argument is similar to the case above.
1282
% yielding the following situation:
1283
%\[
1284
%\vlderivation{
1285
%	\vliin{\cut}{}{? \Sigma, B^\perp (0) , B(t), \Delta }{
1286
%		\vlin{\indr}{}{? \Sigma, B^\perp (0) , B(t) , ?C}{\vlhy{?\Sigma , B^\perp(x) , B(s x) , ?C}  }
1287
%	}{
1288
%	\vlin{\rho'}{}{!C^\perp , \Delta}{\vlhy{\vlvdots}}
1289
%}
1290
%}
1291
%\]
1292
\end{enumerate}
1293

    
1294

    
1295

    
1296
\item A cut-step is immediately preceded by a $\vlte $-step:
1297
\[
1298
\vlderivation{
1299
\vliin{\cut}{}{\Gamma,\Delta,\Sigma,A\vlte B }{
1300
\vliin{\vlte}{}{\Gamma,\Delta,A\vlte B,C }{\vlhy{\Gamma,A,C}}{\vlhy{\Delta,B}}
1301
}{\vlhy{ \Sigma , C^\bot  }}
1302
}
1303
\quad\to\quad
1304
\vlderivation{
1305
\vliin{\vlte}{}{\Gamma,\Delta,\Sigma,A\vlte B}{
1306
\vliin{\cut}{}{\Gamma,\Sigma,A}{\vlhy{\Gamma,A,C}}{\vlhy{\Sigma,C^\bot}}
1307
}{\vlhy{\Delta,B}}
1308
}
1309
\]
1310
%Notice that this commutation might increase the height of any cuts below along the right branch of the indicated cut, but decreases the height along the left branch.
1311
\item\label{CommCaseAmpersand} A cut-step is immediately preceded by a $\vlan$-step.
1312
\[
1313
\vlderivation{
1314
\vliin{\cut}{}{ \Gamma,\Delta,A\vlan B }{ \vliin{\vlan}{}{\Gamma,A\vlan B,C}{ \vlhy{\Gamma,A,C} }{\vlhy{\Gamma,B,C}}}{ \vlhy{\Delta, C^\bot} }
1315
}
1316
\quad\to\quad
1317
\vlderivation{
1318
\vliin{\vlan}{}{\Gamma,\Delta,A\vlan B }{
1319
\vliin{cut}{}{\Gamma,\Delta,A }{ \vlhy{\Gamma,A,C} }{ \vlhy{ \Delta,C^\bot } }
1320
}{
1321
\vliin{ \cut }{}{\Gamma,\Delta,B}{ \vlhy{\Gamma,B,C } }{ \vlhy{\Delta,C^\bot} }
1322
}
1323
}
1324
\]
1325
\item (No rule for cuts commuting with cuts.)
1326
%A cut-step is immediately preceded by another cut-step:
1327
\[
1328
\vlderivation{
1329
	\vliin{\cut}{}{\Gamma, \Delta, \Sigma}{
1330
		\vliin{\cut}{}{\Gamma, \Delta, B}{\vlhy{\Gamma, A}}{\vlhy{\Delta, \lnot{A}, B}}
1331
		}{\vlhy{\Sigma, \lnot{B}}}
1332
	}
1333
	\quad\to\quad
1334
\vlderivation{
1335
	\vliin{\cut}{}{\Gamma, \Delta, \Sigma}{\vlhy{\Gamma, A}}{
1336
		\vliin{\cut}{}{\Delta, \Sigma, \lnot{A}}{\vlhy{\Delta, \lnot{A}, B}}{\vlhy{\Sigma, \lnot{B}}}
1337
		}
1338
	}
1339
\]
1340
\end{enumerate}
1341

    
1342

    
1343

    
1344
\subsection{Key cases: structural steps}
1345
%[THIS SECTION MIGHT NOT BE NECESSARY]
1346
We attempt to permute cuts on exponential formulae over structural steps whose principal formula is active for the cut. 
1347

    
1348
We use the commutative case \ref{CaseCommOneStep} to assume that the topmost cut-step in a sequence has already been permuted up to its origin on the $!$-side. 
1349

    
1350
We have two cases.
1351
\begin{enumerate}
1352
\item\label{StructStepCont} The structural step preceding the cut is a weakening:
1353
\[
1354
\vlderivation{
1355
\vliin{\cut}{}{?\Gamma,\Delta}{ \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} } }{ \vlin{w}{}{ ?A^\bot }{ \vlhy{\Delta	} } }
1356
}
1357
\quad\to\quad
1358
\vlinf{w}{}{?\Gamma,\Delta}{ \Delta }
1359
\]
1360
%\item The structural step preceding the cut is a contraction:
1361
%\[
1362
%\vlderivation{
1363
%\vliin{\cut}{}{ ?\Gamma,\Delta }{
1364
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1365
%}{ \vlin{c}{}{ ?A^\bot , \Delta }{ \vlhy{ ?A^\bot , ?A^\bot ,  \Delta} } }
1366
%}
1367
%\quad\to\quad
1368
%\vlderivation{
1369
%\vliq{c}{}{?\Gamma, \Delta}{
1370
%\vliin{\cut}{}{?\Gamma, ?\Gamma,\Delta }{
1371
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1372
%}{
1373
%\vliin{\cut}{}{?\Gamma,?A^\bot , \Delta }{
1374
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1375
%}{ \vlhy{?A^\bot , ?A^\bot , \Delta } }
1376
%}
1377
%}
1378
%}
1379
%\]
1380
%OR use a multicut:
1381
%\[
1382
%\vlderivation{
1383
%\vliin{\cut}{}{ ?\Gamma,\Delta }{
1384
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1385
%}{ \vlin{c}{}{ ?A^\bot , \Delta }{ \vlhy{ ?A^\bot , ?A^\bot ,  \Delta} } }
1386
%}
1387
%\quad\to\quad
1388
%\vlderivation{
1389
%\vliin{\multicut}{}{?\Gamma,?A^\bot , \Delta }{
1390
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1391
%}{ \vlhy{?A^\bot , ?A^\bot , \Delta } }
1392
%}
1393
%\]
1394
\item The structural step preceding a cut is a contraction:
1395
\[
1396
\vlderivation{
1397
	\vliin{\cut}{}{?\Gamma, \Sigma }{ \vlhy{?\Gamma,!A^\bot} }{
1398
		\vlin{\cntr}{}{ ?A,\Sigma }{ \vlhy{ ?A,?A,\Sigma } }
1399
	}
1400
}
1401
\quad\to\quad
1402
\vlderivation{
1403
	\vliq{\cntr}{}{ ?\Gamma,\Sigma }{
1404
		\vliin{\cut}{}{ ?\Gamma,?\Gamma,\Sigma }{ \vlhy{?\Gamma,!A^\bot } }{
1405
			\vliin{\cut}{}{ ?A,?\Gamma,\Sigma }{ \vlhy{?\Gamma,!A^\bot} }{ \vlhy{ ?A,?A,?\Delta,\Sigma } }
1406
		}
1407
	}
1408
}
1409
\]
1410
%\item The structural step preceding a cut is a parallel contraction:
1411
%\[
1412
%\vlderivation{
1413
%\vliin{\cut}{}{?\Gamma,?\Delta, \Sigma }{ \vlhy{?\Gamma,!A^\bot} }{
1414
%\vlin{}{}{ ?A,?\Delta,\Sigma }{ \vlhy{ ?A,?A,?\Delta,?\Delta,\Sigma } }
1415
%}
1416
%}
1417
%\quad\to\quad
1418
%\vlderivation{
1419
%\vlin{}{}{ ?\Gamma,?\Delta,\Sigma }{
1420
%\vliin{\cut}{}{ ?\Gamma,?\Gamma,?\Delta,?\Delta,\Sigma }{ \vlhy{?\Gamma,!A^\bot } }{
1421
%\vliin{\cut}{}{ ?A,?\Gamma,?\Delta,?\Delta,\Sigma }{ \vlhy{?\Gamma,!A^\bot} }{ \vlhy{ ?A,?A,?\Delta,?\Delta,\Sigma } }
1422
%}
1423
%}
1424
%}
1425
%\]
1426
\end{enumerate}
1427

    
1428
\subsection{Key cases: logical steps}
1429
Finally, once all cuts have been permuted maximally on both sides, we have the cases when the cut-formula is principal for a preceding logical step on both sides. We have three cases, one for every pair of connectives.
1430
\begin{enumerate}
1431
\item The cut-formula is multiplicative:
1432
\[
1433
\vlderivation{
1434
\vliin{\cut}{}{ \Gamma,\Delta,\Sigma }{
1435
\vliin{\vlte}{}{ \Gamma,\Delta,A\vlte B }{ \vlhy{\Gamma,A} }{ \vlhy{\Delta,B} }
1436
}{ \vlin{\vlpa}{}{ \Sigma, A^\bot \vlpa B^\bot }{ \vlhy{\Sigma , A^\bot , B^\bot} } }
1437
}
1438
\quad\to\quad
1439
\vlderivation{
1440
\vliin{\cut}{}{ \Gamma,\Delta,\Sigma }{ \vlhy{\Gamma,A} }{
1441
\vliin{\cut}{}{ \Delta,\Sigma,A^\bot }{ \vlhy{\Delta,B} }{ \vlhy{\Sigma , A^\bot,B^\bot } }
1442
}
1443
}
1444
\]
1445
\item The cut-formula is additive,
1446
\[
1447
\vlderivation{
1448
\vliin{\cut}{}{ \Gamma,\Delta }{ 
1449
\vliin{\vlan}{}{ \Gamma,A\vlan B }{ \vlhy{\Gamma,A} }{ \vlhy{\Gamma,B} }
1450
 }{ \vlin{\vlor}{}{ \Delta,A^\bot\vlor B^\bot }{ \vlhy{\Delta, A^\bot } } }
1451
}
1452
\quad\to\quad
1453
\vliinf{\cut}{}{ \Gamma,\Delta }{ \Gamma,A }{ \Delta,A^\bot }
1454
\]
1455
where the case for the other $\vlor$-rule is symmetric.
1456
\item The cut-formula is exponential.
1457
\[
1458
\vlderivation{
1459
\vliin{\cut}{}{ ?\Gamma,\Delta }{
1460
 \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1461
}{
1462
\vlin{?}{}{ \Delta,?A^\bot }{ \vlhy{\Delta, A^\bot } }
1463
}
1464
}
1465
\quad\to\quad
1466
\vliinf{\cut}{}{ ?\Gamma,\Delta }{ ?\Gamma,A }{ \Delta,A^\bot }
1467
\]
1468
\item The cut-formula is quantified.
1469
\[
1470
\vlderivation{
1471
	\vliin{\cut}{}{\Gamma, \Delta}{
1472
		\vlin{\forall}{}{\Gamma, \forall x. A(x)}{\vltr{\pi(a)}{\Gamma, A(a)}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}}
1473
		}{
1474
		\vlin{\exists}{}{\Delta, \exists x . \lnot{A}(x)}{\vlhy{\Delta, \lnot{A}(t)}}
1475
		}
1476
	}
1477
	\quad \to \quad
1478
	\vlderivation{
1479
		\vliin{\cut}{}{\Gamma, \Delta}{
1480
			\vltr{\pi(t)}{\Gamma, A(t)}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
1481
			}{\vlhy{\Delta, \lnot{A}(t)}}
1482
		}
1483
\]
1484
\end{enumerate}
1485

    
1486

    
1487
\end{document}