Statistiques
| Révision :

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

Historique | Voir | Annoter | Télécharger (68,6 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

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

    
131
          % sizes
132
          \newcommand{\height}[1]{\mathit{h}(#1)}
133

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

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

    
147
\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/
148

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

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

    
167
\maketitle
168

    
169
\begin{abstract}
170
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.
171
 \end{abstract}
172

    
173
\section{Introduction}
174

    
175
\todo{words or integers?}
176

    
177

    
178

    
179
\section{Preliminaries}
180

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

    
183

    
184

    
185

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

    
201
\subsection{Linear logic}
202

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

    
206
\begin{definition}\label{def:LLsequentcalculus}
207
%[Sequent calculus for linear logic]
208
[Sequent calculus for affine linear logic]
209

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

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

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

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

    
271
\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, A }{\Gamma \seqar \Delta}
272
&
273
\vlinf{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, ?A, ?A}
274
\\
275
\noalign{\bigskip}
276
\vlinf{\lefrul{\exists}}{}{\Gamma, \exists x . A(x) \seqar \Delta}{\Gamma, A(a) \seqar \Delta}
277
&
278
\vlinf{\lefrul{\forall}}{}{\Gamma, \forall x. A(x) \seqar \Delta}{\Gamma, A(t) \seqar \Delta}
279
&
280
\vlinf{\rigrul{\exists}}{}{\Gamma \seqar \Delta, \exists x . A(x)}{ \Gamma \seqar \Delta, A(t)}
281
&
282
\vlinf{\rigrul{\forall}}{}{\Gamma \seqar \Delta, \forall x . A(x)}{ \Gamma \seqar \Delta, A(a) } \\
283
\noalign{\bigskip}
284
 \vliinf{mix}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta}{\Sigma \seqar \Pi} &&&
285
\end{array}
286
\end{array}
287
\]
288
where $p$ atomic, $i \in \{ 1,2 \}$ and the eigenvariable $a$ does not occur free in $\Gamma$ or $\Delta$.
289
\end{definition}
290
 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.
291
 
292
  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:
293

    
294
 \[
295
 \begin{array}{cc}
296
  \vlinf{(ax)}{}{ \seqar A}{}  &  \vlinf{(R)}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
297
\end{array}
298
\]
299
  
300
 where in rule (R), $I$ is a finite set (indicating the number of premises) and we assume the following conditions:
301
 \begin{enumerate}
302
 \item  We have:$$ FV(\Sigma_i, \Delta_i) \cap FV(!\Gamma, ? \Pi)= FV(\Sigma_i, \Delta_i) \cap FV(\Sigma', \Delta')= \emptyset $$
303
 \item $ \Sigma', \Delta'$ does not contain any formula of the shape $!A$ or $?A$. 
304
 \end{enumerate}
305
  
306
  \patrick{Anupam: note that I had to strengthen the conditions for the rules (R). Condition (1) is needed 
307
  to be able to commute a cut with (R), in the case where this cut is with a principal formula of a   ($\rigrul{!}$) rule. 
308
  
309
  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).
310
  }
311
  
312
%  \textit{for any $i\in I$, formulas in $\Sigma_i, \Delta_i$ do not share any free variable with   $\Gamma, \Pi$.} 
313
%  
314
%  \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
315
%  $$ FV(\Sigma_i, \Delta_i) \cap FV(!\Gamma, ? \Pi)= FV(\Sigma_i, \Delta_i) \cap FV(\Sigma', \Delta')= \emptyset $$
316
 % 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. }
317
  
318
  In the following we will be interested in an example of theory  $\mathcal T$ which is a form of arithmetic.
319
   
320
   Let us give an example of a possible rule (R) of a theory $\mathcal T$:
321
   
322
   \[
323
	\vlinf{(ind)}{(x \notin \FV(\Gamma, \Delta))}{ !\Gamma , A(0) \seqar A(t) , ?\Delta }{ !\Gamma , A(x) \seqar A(s x ), ?\Delta }
324
	\]
325

    
326
%\[
327
%	\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}
328
%	\]
329

    
330
  
331
  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.
332
   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}.
333
  
334
  As usual rules come with a notion of \textit{principal formulas}, which are a subset of the rules in the conclusion, e.g.:
335
  $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;
336
   $\Sigma', \Delta'$ in rule (R).
337
  
338
 
339
\subsection{Deduction theorem}
340

    
341
[cite Avron:`semantics and proof theory of linear logic']
342

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

    
345
%$$
346
%	\vliiinf{}{}{ \seqar A}{ \seqar C}
347
%	$$
348

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

    
353
\begin{theorem}
354
	[Deduction]
355
	If $\mathcal T , A \proves B$ then $\mathcal{T} \proves !A \limp B$.
356
\end{theorem}
357

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

    
360

    
361

    
362
\subsection{Converting axioms to rules in $\MELLW$}
363

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

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

    
415

    
416
\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.
417

    
418

    
419

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

    
430

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

    
442
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?
443

    
444
\section{Free-cut elimination in linear logic}
445

    
446

    
447
\todo{patrick}
448

    
449
\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.}
450

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

    
453
 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}. 
454
  
455
%   \begin{definition}\label{def:anchoredcut}
456
%  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.
457
%  \end{definition}
458
  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:
459
%  \begin{figure}
460
%  \[
461
%  \vlderivation{
462
%    \vliinf{c1}{!\Gamma , \Gamma_1 \seqar A(t) , ?\Delta }{
463
%  \vlinf{(ind)}{(x \notin \FV(\Gamma, \Delta))}{ !\Gamma , A(\epsilon) \seqar A(t) , ?\Delta }{ !\Gamma , A(x) \seqar A(s x ), ?\Delta }}
464
%  {\Gamma_1\seqar A(\epsilon) }
465
%                   }
466
%  \]               
467
%%				\vlin{\cntr}{}{\Gamma, ?A}{
468
%%					\vlin{\wk}{}{\Gamma, ?A, ?A}{\vlhy{\Gamma, ?A}}
469
%%				}
470
%
471
%  \caption{Example}\label{Fig:twosuccessiveanchorcuts}
472
%  \end{figure}
473
   
474

    
475
  
476
  \begin{definition}\label{def:anchoredcut}
477
  We define in a mutual inductive way the notion of \textit{hereditarily principal formula} and \textit{anchored cut} in a $\mathcal T$-proof :
478
  \begin{itemize}
479
  \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 
480
  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).
481
  \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.
482
  \end{itemize}
483
  \end{definition}
484
  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 
485
  a rule $\rigrul{\lor}$ and a rule $\lefrul{\lor}$ is not.
486
   
487
   A cut which is non-anchored will also be called a \textit{free-cut}.
488
   Now we can state the main result of this section:
489
   \begin{theorem}
490
    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.
491
   \end{theorem}
492
   \begin{proof}
493
     
494
    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.
495
     
496
     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.
497
     
498
    
499
    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.
500
    
501
    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.
502
    
503
    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$.  
504
\[    
505
     \vliinf{c \; \; \cut}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \vlinf{S_1}{}{\Gamma \seqar \Delta, A}{} }{\vlinf{S_2}{}{\Sigma, A \seqar \Pi}{}}
506
\]
507
    Intuitively we will 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)$; if $A$ is hereditarily principal in both premises we will proceed with a cut-elimination step. So let us distinguish  three cases:
508
    
509
   \begin{itemize}
510
    \item \textbf{First case}: the cut-formula $A$ on the l.h.s. of  $c$ is non hereditarily principal. 
511
    
512
   %  Call (S) the last rule above the left premise of $c$. 
513
     
514
     
515
%     We perform a commutation step between (S) and $c$. We examine here the case where (S)=($\rigrul{\laand}$). 
516
%     
517
%     \[
518
%\vlderivation{
519
%\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} }
520
%}
521
%\quad\to\quad
522
%\vlderivation{
523
%\vliin{\vlan}{}{\Gamma,\Delta,A\vlan B }{
524
%\vliin{c_1}{}{\Gamma,\Delta,A }{ \vlhy{\Gamma,A,C} }{ \vlhy{ \Delta,C^\bot } }
525
%}{
526
%\vliin{c_2 }{}{\Gamma,\Delta,B}{ \vlhy{\Gamma,B,C } }{ \vlhy{\Delta,C^\bot} }
527
%}
528
%}
529
%\]
530
%
531
%\patrick{TODO: adapt to two-sided sequents here}
532
\begin{itemize}
533
\item Consider first the situation where $(S_1)$ is not one of the rules $(\rigrul{!})$, $(\lefrul{?})$, $(R)$.
534

    
535
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})$.
536

    
537
\[
538
\vlderivation{
539
\vliin{c}{}{ \Gamma, \Sigma \seqar B_1\vlan B_2, \Delta, \Pi }{ \vliin{S_1=\rigrul{\vlan}}{}{\Gamma  \seqar B_1\vlan B_2, \Delta, A}{ \vlhy{\Gamma  \seqar B_1, \Delta, A} }{\vlhy{\Gamma  \seqar  B_2,\Delta, A}}}{ \vlhy{ \Sigma, A \seqar  \Pi} }
540
}
541
\quad\to\quad
542
\vlderivation{
543
\vliin{\rigrul{\vlan}}{}{  \Gamma, \Sigma \seqar B_1\vlan B_2, \Delta, \Pi  }{
544
\vliin{c_1}{}{\Gamma,\Sigma \seqar B_1, \Delta, \Pi }{ \vlhy{\Gamma  \seqar B_1, \Delta, A} }{\vlhy{ \Sigma, A \seqar  \Pi} }
545
}{
546
\vliin{c_2}{}{\Gamma,\Sigma \seqar B_2, \Delta, \Pi }{ \vlhy{\Gamma  \seqar B_2, \Delta, A} }{\vlhy{ \Sigma, A \seqar  \Pi} }
547
}
548
}
549
\]
550

    
551
%\vlderivation{
552
%\vliin{\vlan}{}{\Gamma,\Delta,A\vlan B }{
553
%\vliin{c_1}{}{\Gamma,\Delta,A }{ \vlhy{\Gamma,A,C} }{ \vlhy{ \Delta,C^\bot } }
554
%}{
555
%\vliin{ c_2 }{}{\Gamma,\Delta,B}{ \vlhy{\Gamma,B,C } }{ \vlhy{\Delta,C^\bot} }
556
%}
557
%}
558
%\]
559

    
560

    
561
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
562
$\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
563
$\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}$.  
564

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

    
567
\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. 
568

    
569
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 
570
 $(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.
571
 
572
 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.
573
 
574
 \patrick{TODO: I will picture this case} 
575
 
576
\end{itemize}
577

    
578
%\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).}
579
    \item \textbf{Second case}: the cut-formulas on the l.h.s. and r.h.s. of  $c$ are both non hereditarily principal. 
580
    
581
   After the first case we are here left with the situation where  $(S_1)$ is equal to $(\rigrul{!})$, $(\lefrul{?})$ or $(R)$.
582
   \begin{itemize}
583
    \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. 
584
    \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$. 
585
   \end{itemize}
586
 
587
   
588
    \item \textbf{Third case}: the cut-formulas on the l.h.s. and r.h.s. of  $c$ are both  hereditarily principal.
589
     
590
    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
591
    that the l.h.s. cut-formula is principal for $(S_1)$ and the r.h.s. cut-formula is principal for $(S_2)$. Call $\pi_1$ (resp. $\pi_2$) the subderivation
592
    of last rule $(S_1)$ (resp. $(S_2)$).
593
     
594
    Then we consider the following sub-cases, in order:
595
     \begin{itemize}
596
      \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$.
597
      
598
       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_2$ 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}$. Denote by $\rho$ the subderivation
599
       of $\pi_2$ which has as leaves the sequence premises of these  $\lefrul{!}$ or $\lefrul{wk}$ with conclusion containing $!A^{j}$.
600
       Let $\rho'$ be a derivation obtained from $\rho$ by renaming if necessary free variables occurring in premises of rules $\lefrul{\exists}$, $\rigrul{\forall}$, $(R)$  so that none of them belongs to $FV(!\Gamma, ?\Delta)$, where $!\Gamma \seqar ?\Delta,!A$ is the l.h.s. premise of the cut $c$.
601
  Now, let $\pi'_2$ be the immediate subderivation of $\pi_2$, of conclusion       $!\Gamma \seqar ?\Delta,A$.  We then define the derivation 
602
  $\rho''$ obtained from   $\rho'$ in the following way:
603
  \begin{itemize}
604
  \item add a cut $c_j$ with (a copy) of $\pi'_2$ on $A^j$ at each leaf which is premise of a rule  $\lefrul{!}$;
605
  \item add to each sequent coming from $\rho'$  a context $!\Gamma$ on the l.h.s. and a context $?\Delta$ on the r.h.s., and additional $wk$ rules to introduce these formulas below the $\lefrul{wk}$ rules on formulas $!A^{j}$;
606
  \item introduce suitable $\lefrul{cntr}$ / $\rigrul{cntr}$ rules after multiplicative binary rules $\rigrul{\land}$, $\lefrul{\lor}$, $mix$ in such a way to replace $!\Gamma, !\Gamma$ (resp. $?\Delta, ?\Delta$) by  $!\Gamma$ (resp. $?\Delta$). 
607
  \end{itemize}
608
  
609
  It can be checked that  $\rho''$ is a valid derivation, because all the conditions for context-sensitive rules $(\rigrul{\forall})$, $(\lefrul{\exists})$, $(\rigrul{!})$, $(\lefrul{?})$, $(R)$ are satisfied. In particular the rules $(\rigrul{!})$, $(\lefrul{?})$, $(R)$ are satisfied because the contexts have been enlarged with $!$ formulas on the l.h.s. of the sequents ($!\Gamma$) and ?  formulas on the r.h.s. of the sequents ($?\Gamma$).  
610
  
611
  Now, let $\pi'$ be the derivation obtained from $\pi$ by removing the cut $c$ and replacing the sub derivation $\rho$ by $\rho''$. The derivation $\pi'$ is a valid one, and with respect to $\pi$ we have replaced one non-anchored cut $c$ with at most $k$ ones $c_k$, but which are of strictly lower degree. So $\deg(\pi')<\deg(\pi)$ and we are done.
612

    
613
      
614
      \item \textbf{logical sub-case}: assume both premises of $c$ are conclusions of rules others than $?$, $!$, $wk$, $cntr$.
615
      
616
      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.
617
      
618
      \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.
619
      
620
      \patrick{Display the rewriting step here}.
621
      
622
     \end{itemize}
623
     
624
      
625
    \end{itemize}
626
     
627
   \end{proof}
628

    
629

    
630
\section{Some variants of arithmetic in linear logic}
631

    
632
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:
633
\[
634
!(A\land B) \equiv (!A \land !B)
635
\]
636
(The right-left direction is already valid in usual linear logic, but the left-right direction requires weakening).
637

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

    
640

    
641
\subsection{Based on Bellantoni-Hoffmann, Leivant, etc.}
642

    
643
\newcommand{\natcntr}{\nat\mathit{cntr}}
644
\newcommand{\geneps}{\nat_{\epsilon}}
645
\newcommand{\genzer}{\nat_{0}}
646
\newcommand{\genone}{\nat_{1}}
647

    
648

    
649
\newcommand{\sepeps}{\epsilon}
650
\newcommand{\sepzer}{\succ_{0}}
651
\newcommand{\sepone}{\succ_{1}}
652

    
653
\newcommand{\inj}{\mathit{inj}}
654
\newcommand{\surj}{\mathit{surj}}
655

    
656
\begin{definition}
657
[Arithmetic]
658
We have the following axioms:
659
\[
660
\begin{array}{rl}
661
\wk & (A \land B )\limp A \\
662
\natcntr & \forall x^N . (N(x) \land N(x)) \\
663
\geneps & \nat(\epsilon) \\
664
\genzer & \forall x^N . N(\succ_0 x) \\
665
\genone & \forall x^N . N(\succ_1 x) \\
666
\sepeps & \forall x^N . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\
667
\sepzer & \forall x^N , y^N. ( \succ_0 x = \succ_0 y \limp x=y ) \\
668
\sepone & \forall x^N , y^N. ( \succ_1 x = \succ_1 y \limp x=y ) \\
669
\inj & \forall x^N . \succ_0 x \neq \succ_1 x \\
670
\surj & \forall x^N . (x = \epsilon \lor \exists y^N . x = \succ_0 y \lor \exists y^N . x = \succ_1 y ) \\
671
\noalign{\bigskip}
672
\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)
673
\end{array}
674
\]
675

    
676
Induction rule should be the following, to take account of relativised quantifiers?
677
\[
678
\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  }
679
\]
680

    
681
\todo{in existential above, is there a prenexing problem?}
682

    
683
\todo{what about $\leq$? Introducing this could solve prenexing problem, e.g.\ by induction?}
684
\end{definition}
685

    
686
\subsection{$\nat$-hierarchy}
687

    
688
\begin{definition}
689

    
690
\todo{replace N with nat.}
691

    
692
	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.
693
	
694
	We define $\Sigma^N_0 = \Pi^N_0 $ as the class of formulae that are free of quantifiers. For $i\geq 0$ we define:
695
	\begin{itemize}
696
		\item $\Sigma^N_{i+1}$ is the class of formulae $\exists x^N . A$ where $A \in \Pi^N_i$.
697
		\item $\Pi^N_{i+1}$ is the class of formulae $\forall x^N . A$ where $A \in \Sigma^N_i$.
698
		\item ($\Delta^N_i$ is the class $\Sigma^N_i \cap \Pi^N_i$.)
699
	\end{itemize}
700
\end{definition}
701

    
702
\todo{allow closure under positive Boolean operations?}
703

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

    
706
\subsection{Equivalent rule systems}
707

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

    
710
\[
711
\begin{array}{cc}
712
\vlinf{}{}{\Gamma \seqar \Delta, \forall x^N . A(x)}{\Gamma, N(a) \seqar \Delta , A(a)}
713
\quad & \quad
714
\vlinf{}{}{\Gamma, N(t),\forall x^N A(x) \seqar \Delta}{\Gamma,  A(t) \seqar \Delta}
715
\\
716
\noalign{\bigskip}
717
\vlinf{}{}{\Gamma , \exists x^N A(x) \seqar \Delta}{\Gamma, N(a), A(a) \seqar \Delta}
718
\quad &\quad 
719
\vlinf{}{}{\Gamma, N(t) \seqar \Delta , \exists x^N . A(x)}{\Gamma  \seqar \Delta, A(t)}
720
\end{array}
721
\]
722

    
723
CHECK THESE!
724

    
725
\todo{Also include rules for contraction and weakening.}
726

    
727
\section{Convergence of Bellantoni-Cook programs}
728

    
729
\subsection{Bellantoni-Cook programs}
730
We first recall the notion of safe recursion on notation from BC. TODO
731

    
732
\anupam{Do we need simultaneous PRN? cf.\ Bellantoni's thesis.}
733

    
734
\todo{reformulate below for binary words, not natural numbers?}
735

    
736
\begin{definition}
737
	[BC functions]
738
	BC is the set of functions generated by the following initial functions and closure schemes.
739
	
740
%	\paragraph{Initial functions}
741
	There are the following initial functions:
742
	\begin{enumerate}
743
		\item The constant function $0$ which takes no arguments and outputs $0 \in \Nat$.
744
		\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 \Nat$ and $1 \leq k \leq m+n$.
745
		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
746
		\item The predecessor function $\pred (; x) := \begin{cases}
747
		0 & x = 0 \\
748
		x' & x = x'i
749
		\end{cases}$.
750
		\item The conditional function $\cond (;x,y,z) := \begin{cases}
751
		y & x \mod{2} = 0 \\
752
		z & \text{otherwise}
753
		\end{cases}$.
754
	\end{enumerate}
755
	
756
	There are the following closure properties.
757
	\begin{enumerate}
758
	\setcounter{enumi}{5}
759
	\item Predicative recursion on notation. If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
760
	\[
761
	\begin{array}{rcl}
762
	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
763
	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
764
	\end{array}
765
	\]
766
	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
767
	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
768
	\[
769
	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
770
	\]
771
	so long as the expression is well-formed.
772
	\end{enumerate}
773
	\end{definition}
774

    
775

    
776

    
777
\subsection{Convergence in arithmetic}
778
\begin{theorem}
779
	[Convergence]
780
	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))$.
781
\end{theorem}
782
\begin{proof}
783
	We show by induction on the structure of a BC-program for $f(\vec x ; \vec y)$ that:
784
	\begin{equation}
785
	\Phi(f) , \cax{\Sigma^N_1}{\pind} \proves \ \forall \vec{x}^{!N} . \forall \vec{y}^N . N(f(\vec x ; \vec y))
786
	\end{equation}
787
	We give some key cases in what follows.
788
	
789
	Suppose $f$ is defined by PRN by:
790
	\[
791
	\begin{array}{rcl}
792
	f(0,\vec x ; \vec y) & = & g(\vec x ; \vec y) \\
793
	f(\succ_i x , \vec x ; \vec y) & = & h_i (x, \vec x ; \vec y , f(x , \vec x ; \vec y))
794
	\end{array}
795
	\]
796
	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,
797
	\begin{equation}
798
	\forall x^{!N} . ( N(\vec y) \limp N(f(x , \vec x ; \vec y)  )
799
	\end{equation}
800
	by $\cax{\Sigma^N_1}{\pind}$ on $x$.
801
	
802
	In the base case we have the following proof:
803
	\[
804
	\vlderivation{
805
		\vliin{}{}{N(\vec y) \limp N(f(0, \vec x ; \vec y))}{
806
			\vltr{IH}{N(\vec y) \limp N(g(\vec x ; \vec y))}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
807
		}{
808
		\vlin{}{}{N(g (\vec x ; \vec y) ) \limp N(f(0, \vec x ; \vec y)) }{
809
			\vlin{}{}{g(\vec x ; \vec y) = f(0 , \vec x ; \vec y)}{\vlhy{}}
810
		}
811
	}
812
}
813
\]
814

    
815
For the inductive step, we need to show that,
816
\[
817
\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) )   )
818
\]
819
so let us suppose that $N(x)$ and we give the following proof:
820
\[
821
\vlderivation{
822
	\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)  ) }{
823
		\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)  ) }{
824
			\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) ) ) }{
825
				\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 }}
826
			}{
827
			\vlhy{2}
828
		}
829
	}{
830
	\vlhy{3}
831
}
832
}
833
}
834
\]
835
TOFINISH
836
\end{proof}
837

    
838
\section{Witness function method}
839

    
840
Key features/differences from realisability:
841
\begin{itemize}
842
\item De Morgan normal form: reduces type level to $0$, complementary to double-negation translation that \emph{increases} type level.
843
\item Free-cut elimination: allows us to handles formulae of fixed logical complexity throughout the proof. 
844
\item Respects logical properties of formulae, e.g.\ quantifier complexity, exponential complexity.
845
\end{itemize}
846

    
847
\todo{say some more here}
848

    
849
\newcommand{\type}{\mathtt{t}}
850
\newcommand{\norm}{\nu}
851
\newcommand{\safe}{\sigma}
852

    
853
\subsection{Witness predicate}
854

    
855
\begin{definition}
856
	[Types]
857
	To each formula we associate a sorted tuple of arguments, intended to range over $\Nat$, as follows:
858
	\[
859
	\begin{array}{rcll}
860
	\type (\nat (t)) & := & (; x^{\nat (t)}) & \\
861
	\type(s = t) & := & ( ; x^{s=t}) & \\
862
	\type (A \lor B)  & : = & (\vec u , \vec v ; \vec x , \vec y) & \text{if $\type (A) = (\vec u ; \vec x)$ and $\type (B) = (\vec v ; \vec y)$.} \\
863
		\type (A \land B)  & : = & (\vec u , \vec v ; \vec x , \vec y) & \text{if $\type (A) = (\vec u ; \vec x)$ and $\type (B) = (\vec v ; \vec y)$.} \\
864
	\type (! A) & : = & (\vec u , \vec x ;) & \text{if $\type (A) = (\vec u ; \vec x)$.} \\
865
	\type (\exists x^N . A) & := & (\vec u ; \vec x , y) & \text{if $\type(A) = (\vec u ; \vec x)$.} \\
866
%	\type (\forall x^N . A) & := & \Nat \to \type(A)
867
	\end{array}
868
	\]
869
	\end{definition}
870
	
871

    
872
\begin{remark}
873
	[Distribution of $!$]
874
	Notice that the case above for $!$ is somewhat odd, but makes sense once we realise that no formula of the form $!(A\lor B)$ will occur in a free-cut free proof of a convergence statement. On the other hand, the equivalence $!(A\land B) \cong !A \land !B$ follows since we are working in the affine setting.
875
	\end{remark}
876
	
877
	
878
	
879
	
880
	\newcommand{\witness}[2]{\mathit{Witness}^{#1}_{#2}}
881
	\begin{definition}
882
		[Witness predicate]
883
		We define the following `witness' predicate for $\Sigma^\nat_1$-formulae $A$ with free variables amongst $\vec a$:
884
		\[
885
		\begin{array}{rcll}
886
		\witness{\vec a}{A} (w, \vec b) & := & w = t(\vec b) & \text{if $A(\vec a)$ is $\nat (t(\vec a))$.} \\
887
			\witness{\vec a}{A} (w, \vec b) & := & s(\vec b) = t(\vec b) & \text{if $A(\vec a)$ is $s(\vec a) = t (\vec b)$.} \\
888
			\witness{\vec a}{A \lor B} ( \vec w^1 , \vec w^2, \vec b ) & := &  \witness{\vec a}{A} (\vec w^1 , \vec b) \cor \witness{\vec a}{B} (\vec w^2 , \vec b) & 
889
%			\text{for $\star \in \{ \land, \lor, \laand , \laor\}$.} 
890
			\\
891
				\witness{\vec a}{A \land B} ( \vec w^1 , \vec w^2, \vec b ) & := &  \witness{\vec a}{A} (\vec w^1 , \vec b) \cand \witness{\vec a}{B} (\vec w^2 , \vec b) & 
892
				%			\text{for $\star \in \{ \land, \lor, \laand , \laor\}$.} 
893
				\\
894
		\witness{\vec a}{\exists x^\nat . A(x)} ( w, \vec w  , \vec b) & := & \witness{\vec{a}, a}{A(a)}(\vec w , \vec b, w ) & \\
895
		\end{array}
896
		\]
897
		where $|\vec w^1| = |\type (A)|$ and $|\vec w^2| = |\type (B)| $.
898
	\end{definition}
899
%	\todo{problem: what about complexity of checking equality? }
900
	
901
\todo{Reformulate above later if necessary.}
902
	
903
%	\todo{What about $\nat (t)$? What does it mean? Replace with true?}
904
	
905
%	\todo{either use the witness predicate above, or use realizability predicate at meta-level and a model theory, like BH.}
906
	
907
%	\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.}
908
	
909
	\anupam{to consider/remark: formally, is witness predicate checked in model or some logical theory?}
910
	
911
	\subsection{The translation}
912

    
913
\begin{definition}
914
	[Translation]
915
	We give a translation of free-cut free $\Sigma^\nat_1$-$\pind$ proofs $\pi$ of sequents $\Gamma(\vec a) \seqar \Delta(\vec a)$ to BC-programs for a vector of functions $\vec f^\pi$ with argument of type $\type \left(\bigotimes\Gamma\right)$ such that $|\vec f^\pi | = | \type\left(\bigparr\Delta\right)|$ and:
916
	\[
917
	\witness{\vec a}{\bigotimes \Gamma} (\vec w , \vec b) \implies \witness{\vec a}{\bigparr \Delta } (\vec f(\vec w , \vec b), \vec b)
918
	\]
919
	
920
	\anupam{to consider: do we need parameters $\vec a$ in argument of $f$? Or does $\nat$ predicate take care of this?}
921
	
922
%	We will be explicit about normal and safe inputs when necessary, for the most part we will simply rearrange inputs into lists $(\vec u; \vec a)$ as in BC framework.
923
	
924
	We often suppress the parameters $\vec a$ when it is not important.	
925
	
926
	\anupam{Is this implication provable in Bellantoni's version of PV based on BC?}
927
	
928
%	\anupam{for moment try ignore decoration on right? what about negation?}
929
	
930

    
931
	
932
	The translation is by induction on the size of a free-cut free proof, so we proceed by analysis of the final step of a proof.
933
	
934
	Suppose $\pi$ ends with a $\rigrul{\land}$ step:
935
	\[
936
	\vlderivation{
937
		\vliin{\land}{}{ \Gamma, \Sigma \seqar \Delta, \Pi, A\land B }{
938
			\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
939
			}{
940
			\vltr{\pi_2}{ \Sigma \seqar \Pi, B }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
941
			}
942
		}
943
	\]
944
	By the inductive hypothesis let us suppose we have functions $\vec g (\vec u; \vec x)$ and $\vec h (\vec v ; \vec y)$ from $\pi_1$ and $\pi_2$ respectively, where $\type\left( \bigotimes\Gamma \right) = (\vec u; \vec x)$ and $\type \left( \bigotimes \Sigma \right) = (\vec v ; \vec y)$. Let us write $\vec g = (\vec g^\Delta , \vec g^A)$ and $\vec h = (\vec h^\Pi , \vec h^B)$, to denote the $\Delta$ and $A$ parts of $\vec g$ and the $\Pi$ and $B$ parts of $\vec h$.
945
%	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. 
946
	We simply construct $\vec f^\pi$ by rearranging these tuples of functions:
947
	\[
948
	\vec f^\pi (\vec u , \vec v ; \vec x , \vec y)
949
	\quad := \quad
950
	\left(
951
	\vec g^\Delta (\vec u ; \vec x) , \vec h^\Pi (\vec v ; \vec y)  , \vec g^A (\vec u ; \vec x) , \vec h^B (\vec v ; \vec y)
952
	\right)
953
	\] 
954
	
955
	We will continue with a similar notational convention as above in the remainder of this argument.
956
	
957
%	\anupam{bad notation since need to include free variables of sequent too. (also of theory.) Reconsider.}
958
	
959
	The case when $\pi$ ends with a $\lefrul{\lor}$ step is analogous to the $\rigrul{\land}$ case above.
960
	
961
	If $\pi$ consists of a subproof $\pi'$ ending with a $\lefrul{\land}$ or $\rigrul{\lor}$-step, then $\vec f^\pi$ is exactly $\vec f^{\pi'}$.
962
	
963
	Suppose $\pi$ ends with a $\lefrul{\cntr}$ step,
964
	\[
965
	\vlderivation{
966
		\vlin{\lefrul{\cntr}}{}{ !A , \Gamma \seqar \Delta }{
967
			\vltr{\pi'}{  !A, !A , \Gamma \seqar \Delta}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
968
			}
969
		}
970
	\]
971
	so we have functions $\vec f ( \vec u^1, \vec u^2 , \vec v ; \vec x)$ with $\vec u^1$ and $\vec u^2$ corresponding to the two copies of $!A$ in the conclusion of $\pi'$, respectively, and $\type (\Gamma) = (\vec v; \vec x)$. (Recall that the typing corresponding to $!$ means that all inputs for each $!A$ are normal). We define $\vec f^\pi$ as expected, duplicating the arguments for $!A$:
972
	\[
973
	\vec f^\pi (\vec u , \vec v ; \vec x)
974
	\quad := \quad
975
	\vec f (\vec u, \vec u , \vec v ; \vec x)
976
	\]
977
	(Notice that this is obtainable in BC by a trivial instance of safe composition.)
978
	
979
	
980
%	cntr right
981
%	\[
982
%	\vlderivation{
983
%	\vlin{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{
984
%	\vltr{\pi'}{  \Gamma \seqar \Delta, ?A, ?A}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
985
%	}
986
%	}
987
%	\]
988
%	(need test function against witness predicate?)
989
%	
990
%	\anupam{problem: how to test even equality of two terms? Maybe treat $?$ as $!$ on left?}
991
%	
992
%	\anupam{Not a problem by free-cut elimination! Can assume there are no $?$ in the proof! Is this equivalent to treaing $?$ as $!$ on left?}
993
%	
994
%	\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.}
995
%	
996
%	\anupam{this is actually the main point.}
997

    
998
For $\rigrul{\cntr}$, notice that no $?$-symbol occurs in a convergence statement, an initial step or an induction formula, so a free-cut free proof is free of $\rigrul{\cntr}$-steps.
999

    
1000
\anupam{This is important, so expand on this here or in a remark before/after.}
1001
	
1002
	
1003
%	\[
1004
%	\vlderivation{
1005
%	\vliin{\rigrul{\laand}}{}{\Gamma \seqar \Delta, A \laand B}{
1006
%	\vltr{\pi_1}{  \Gamma \seqar \Delta, A}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1007
%	}{
1008
%	\vltr{\pi_2}{  \Gamma \seqar \Delta, B}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1009
%	}
1010
%	}
1011
%	\]
1012
%	
1013
%	Suppose we have $\vec f^i (\vec x , \vec a ; \vec y , \vec b)$ from $\pi_i$.
1014
%	
1015
%	\anupam{problem: does this require many tests, just like for contraction? Can we isolate a different complexity class? e.g.\ PH or Grzegorzyck?}
1016
%	\anupam{skip this case and consider later.}
1017

    
1018
\anupam{commented stuff on additives. To remark later perhaps.}
1019

    
1020

    
1021

    
1022
Suppose $\pi$ ends with a $\rigrul{\exists}$ step,
1023
\[
1024
\vlderivation{
1025
	\vlin{\rigrul{\exists}}{}{ \Gamma, \nat(t) \seqar \Delta , \exists x^\nat . A(x) }{
1026
		\vltr{\pi'}{ \Gamma \seqar \Delta , A(t) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1027
	}
1028
}
1029
\]
1030
so by the inductive hypothesis we have functions $\vec f^\Delta , \vec f^{A(t)}$ with arguments $(\vec u ; \vec x )= \type(\bigotimes \Gamma)$. We define $\vec f^\pi$ as follows:
1031
\[
1032
\vec f^\pi (\vec u ; \vec x , y)
1033
\quad := \quad
1034
\left( \vec f^\Delta (\vec u ; \vec x) , \id (;y), \vec{ f}^{A(t)} (\vec u; \vec x)  \right)
1035
\]
1036
(The identity function on $y$ is defined from successor, predecessor and safe composition).
1037

    
1038

    
1039
%Suppose we have functions $\vec f^X (\vec x ; \vec y)$ from $\pi'$ for $X = \Delta$ or $ X=A$. 
1040
%\[
1041
%\vec f(\vec x ; \vec y , z) \quad := \quad ( \vec f^\Delta (\vec x ; \vec y)   ,  z , \vec f^A ( \vec x ; \vec y ) )
1042
%\]
1043

    
1044

    
1045
Suppose $\pi$ ends with a $\lefrul{\exists}$ step:
1046
\[
1047
\vlderivation{
1048
	\vlin{\lefrul{\exists}}{}{ \Gamma, \exists x^N . A(x) \seqar \Delta }{
1049
		\vltr{\pi'(a)}{ \Gamma , A(a),  N(a) \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1050
	}
1051
}
1052
\]
1053
%
1054
%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:
1055
%\[
1056
%\vec f ( \vec u , \vec v ;  )
1057
%\]
1058

    
1059
\anupam{should just be same? Consider variable naming, just in case.}
1060
\anupam{This is probably where the consideration for free variables is.}
1061

    
1062
%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:
1063
%\[
1064
%\vec f ( \vec v , \vec w ; \vec x , y , \vec z )
1065
%\]
1066

    
1067

    
1068
Suppose $\pi$ ends with a $\cut$ step:
1069
\[
1070
\vlderivation{
1071
\vliin{\cut}{}{\Gamma , \Sigma \seqar \Delta , \Pi}{
1072
\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1073
}{
1074
\vltr{\pi_2}{\Sigma , A \seqar \Pi}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1075
}
1076
}
1077
	\]
1078
	
1079
We have two cases. First, if $A$ is free of modalities, then $\type (A)$ consists of only safe inputs. Therefore we have functions $\vec g (\vec u; \vec x)$ and $\vec h (\vec v ; \vec y, \vec z)$ from $\pi_1$ and $\pi_2 $ respectively, such that $\type(\Gamma) = (\vec u ; \vec x)$, $\type(\Sigma) = (\vec v ; \vec y )$ and $\type (A) = (;\vec z)$. Let us write $\vec g = (\vec g^\Delta , \vec g^A)$ as before, and we define $\vec f^\pi$ as follows:
1080

    
1081
\[
1082
\vec f^\pi ( \vec u , \vec v ; \vec x, \vec y)
1083
\quad := \quad
1084
\left(
1085
\vec g^\Delta (\vec u ; \vec x) 
1086
,
1087
\vec h ( \vec v ; \vec y , \vec g^A ( \vec u ; \vec x ) )
1088
\right)
1089
\]
1090
(Notice that all safe inputs are hereditarily safe in these expressions, so they are definable by safe composition and projection).
1091

    
1092

    
1093

    
1094

    
1095
In the other case, where $A$ may be modal, it must be of the form $!\nat (t)$ since it is a cut formula, and so must directly descend from an induction step or axiom. The only such occurrence of a modality is in the conclusion of an induction step, whence such a formula has the form $!\nat (t)$. By free-cut elimination we can also assume that this cut formula is principal on \emph{both} sides, i.e.\ $\pi$ is of the form:
1096

    
1097
\todo{finish this case}
1098

    
1099

    
1100

    
1101
Suppose $\pi$ ends with a $\lefrul{!}$ step:
1102
\[
1103
\vlderivation{
1104
\vlin{!}{}{\Gamma, !A \seqar \Delta}{
1105
\vltr{\pi'}{ \Gamma , A \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1106
}
1107
}
1108
\]
1109
\todo{finish this case, just passing a safe input to a normal input.}
1110

    
1111

    
1112
Suppose $\pi$ ends with a $\rigrul{!}$ step:
1113

    
1114
\todo{finish this case, should not change function at all, but maybe there is a consideration.}
1115

    
1116
Suppose $\pi$ ends with a $\lefrul{\wk}$ step:
1117

    
1118
\todo{finish this case, just add a dummy input.}
1119

    
1120
Suppose $\pi$ ends with a $\rigrul{\wk}$ step:
1121

    
1122
\todo{finish this case, just add a dummy function.}
1123

    
1124

    
1125

    
1126
Suppose $\pi$ ends with a $\pind$ step. For the same reason as $\rigrul{\cntr}$ we can assume there are no $?$ formulae and so no side formulae on the right. Thus a $\pi$ has the following form:
1127
\[
1128
\vlderivation{
1129
\vliin{\ind}{}{ !\Gamma , !\nat (t) ,  A(\epsilon) \seqar A(t) }{
1130
\vltr{\pi_0}{ !\Gamma , !\nat(a) , A(a) \seqar A(\succ_0 a)}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1131
}{
1132
\vltr{\pi_1}{ !\Gamma , !\nat(a), A(a)\seqar A(\succ_1 a) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1133
}
1134
}
1135
\]
1136

    
1137
By the inductive hypothesis we have functions:
1138

    
1139
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)$.
1140

    
1141

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

    
1144
Define the function $f_k$ (for $k = 1 , \dots , |\vec u|$) by PRN:
1145
\[
1146
\begin{array}{rcl}
1147
f_k(\epsilon, \vec x , y ; \vec u) & := & u_k \\
1148
f_k (\succ_i w , \vec x , y ; \vec u) & : = & f^i_k ( \vec x ,  y ; \vec f ( w, \vec x , y ; \vec u ) )
1149
\end{array}
1150
\]
1151

    
1152
\anupam{check this, esp use of parameters, cf.\ above.}
1153

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

    
1156

    
1157
\end{definition}
1158

    
1159
\newcommand{\concat}{\mathit{concat}}
1160
\paragraph{Some points on concatenation \anupam{if necessary}}
1161
We can define the concatenation operation by PRN:
1162
\[
1163
\begin{array}{rcl}
1164
\concat (\epsilon ; y) & : = & x \\
1165
\concat (\succ_i x ; y) & := & \succ_i \concat (x ; y)
1166
\end{array}
1167
\]
1168

    
1169
From here we can define iterated concatenation:
1170
\[
1171
\concat (x_1 , \dots x_n ; y) \quad := \quad \concat (x_n ; \concat (x_{n-1} ; \vldots \concat (x_1 ; y) \vldots ) )
1172
\]
1173

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

    
1176
\section{Further work}
1177

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

    
1180
\section{Conclusions}
1181

    
1182
\appendix
1183

    
1184
\section{Some cut-elimination cases}
1185
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.
1186

    
1187
As well as all usual rules, we have the induction rule:
1188
\[
1189
\vlinf{\indr}{(x \notin FV (\Gamma) )}{? \Gamma, A^\perp (0) , A(t)}{? \Gamma , A^\perp (x) , A(s x) }
1190
\]
1191

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

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

    
1197
\newcommand{\anarrow}[2]{\overset{#1}{\underset{#2}{\longrightarrow}}}
1198
\newcommand{\cutredlin}{\mathit{ma}}
1199
\newcommand{\cutredexp}{exp}
1200

    
1201
\begin{definition}
1202
	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.
1203
\end{definition}
1204

    
1205
\newcommand{\rk}{\mathsf{rk}}
1206
	\renewcommand{\deg}{\mathsf{deg}}
1207
\begin{definition}
1208
	[Measures]
1209
	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.
1210
\end{definition}
1211

    
1212
\begin{proposition}
1213
If $\pi$ is not $\anarrow{}{\cutredlin}$-normal then there is a derivation $L:\pi \anarrow{*}{\cutredlin} \pi'$ such that $\deg(\pi')< \deg(\pi)$.
1214
\end{proposition}
1215
\begin{proof}
1216
	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.
1217
	
1218
	Now to the general case, we simply apply the above procedure to the subproof above a topmost cut in $\pi$.
1219
\end{proof}
1220
\begin{corollary}
1221
	$\anarrow{}{\cutredlin}$ is weakly normalising.
1222
\end{corollary}
1223

    
1224

    
1225
\newcommand{\cntdown}{\mathit{cn}}
1226
\begin{definition}
1227
	[Lazy contraction]
1228
	Let $\anarrow{}{\cntdown}$ comprise of the following reduction steps:
1229
	\begin{enumerate}
1230
		\item The commuting steps,
1231
			\[
1232
			\vlderivation{
1233
				\vlin{\rho}{}{\Gamma', ?A, }{
1234
					\vlin{\cntr}{}{\Gamma, ?A}{\vlhy{\Gamma, ? A, ? A}}
1235
				}
1236
			}
1237
			\quad\to \quad
1238
			\vlderivation{
1239
				\vlin{\cntr}{}{\Gamma', ?A}{
1240
					\vlin{\rho}{}{\Gamma', ?A, ?A}{\vlhy{\Gamma, ? A, ? A}}
1241
				}
1242
			}	
1243
			\]
1244
			for each unary rule $\rho$.
1245
			\item 
1246
			The key steps:
1247
			\[ 	
1248
			\begin{array}{rcl}
1249
			\vlderivation{
1250
				\vlin{\cntr}{}{\Gamma, ?A}{
1251
					\vlin{\wk}{}{\Gamma, ?A, ?A}{\vlhy{\Gamma, ?A}}
1252
				}
1253
			}
1254
			\quad &\to & \quad
1255
			\Gamma, ?A 
1256
%			\]
1257
%			and
1258
%			\[
1259
\\
1260
\noalign{\smallskip}
1261
				\vlderivation{
1262
					\vlin{\wk}{}{\Gamma, ?A, ?A}{
1263
						\vlin{\cntr}{}{\Gamma, ?A}{\vlhy{\Gamma, ?A, ?A}}
1264
					}
1265
				}
1266
				\quad &\to& \quad
1267
				\Gamma, ?A, ?A
1268
							\end{array}
1269
			\].
1270
\item The commuting steps,
1271
\[
1272
	\vlderivation{
1273
		\vliin{\rho}{}{\Gamma ,?A}{
1274
			\vlin{\cntr}{}{\Gamma_1, ?A}{\vlhy{\Gamma_1, ?A, ?A}}
1275
		}{\vlhy{\Gamma_2}}
1276
	}
1277
	\quad \to \quad
1278
	\vlderivation{
1279
		\vlin{\cntr}{}{\Gamma, ?A}{
1280
			\vliin{\rho}{}{\Gamma,?A, ?A}{\vlhy{\Gamma_1, ?A, ?A}}{ \vlhy{\Gamma_2} }
1281
		}
1282
	}
1283
\]
1284
%\[
1285
%\begin{array}{rcl}
1286
%	\vlderivation{
1287
%		\vliin{\land}{}{\Gamma, \Delta, ?A, B\land C}{
1288
%			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
1289
%		}{\vlhy{\Delta, C}}
1290
%	}
1291
%	\quad &\to &\quad
1292
%	\vlderivation{
1293
%		\vlin{\cntr}{}{\Gamma, \Delta, ?A, B\land C}{
1294
%			\vliin{\land}{}{\Gamma, \Delta, ?A, ?A, B\land C}{\vlhy{\Gamma, ?A, ?A, B}}{ \vlhy{\Delta, C} }
1295
%		}
1296
%	}
1297
%%	\]
1298
%%	
1299
%%	\[
1300
%\\
1301
%\noalign{\smallskip}
1302
%	\vlderivation{
1303
%		\vliin{\cut}{}{\Gamma, \Delta, ?A}{
1304
%			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
1305
%		}{\vlhy{\Delta, \lnot{B}}}
1306
%	}
1307
%	\quad &\to& \quad
1308
%	\vlderivation{
1309
%		\vlin{\cntr}{}{\Gamma, \Delta, ?A}{
1310
%			\vliin{\cut}{}{\Gamma, \Delta, ?A, ?A}{\vlhy{\Gamma, ?A, ?A, B}}{ \vlhy{\Delta, \lnot{B}} }
1311
%		}
1312
%	}
1313
%\end{array}
1314
%\]
1315
for each binary rule $\rho \in \{ \land, \cut \}$.
1316
\item The commuting step:
1317
	\[
1318
	\vlderivation{
1319
		\vliin{\vlan}{}{\Gamma, ?A, B\vlan C}{
1320
			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
1321
		}{\vlhy{\Gamma, ?A, B}}
1322
	}
1323
	\quad \to \quad
1324
	\vlderivation{
1325
		\vlin{\cntr}{}{\Gamma, ?A, B\vlan C}{
1326
			\vliin{\vlan}{}{\Gamma, ?A, ?A, B\vlan C}{\vlhy{\Gamma, ?A, ?A, B}}{
1327
				\vlin{\wk}{}{\Gamma, ?A, ?A, C}{\vlhy{\Gamma, ?A, C}}
1328
			}
1329
		}
1330
	}
1331
	\]
1332
	\end{enumerate}
1333
	For binary rules:
1334

    
1335
\end{definition}
1336
\begin{proposition}
1337
	$\anarrow{}{\cntdown}$ is weakly normalising
1338
	, modulo $\cntr$-$\cntr$ redexes,
1339
	and degree-preserving. 
1340
	If $\pi$ is $\anarrow{}{\cutredlin}$-normal and $\pi \downarrow_\cntdown \pi'$, then so is $\pi'$.
1341
\end{proposition}
1342
\begin{proof}
1343
	By induction on the number of redexes in a proof. Start with bottommost redex, by induction on number of inference steps beneath it.
1344
\end{proof}
1345

    
1346
\begin{remark}
1347
	Only weakly normalising since $\cntr$ can commute with $\cntr$, allowing cycles.
1348
\end{remark}
1349

    
1350
\begin{proposition}
1351
	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)$.
1352
\end{proposition}
1353

    
1354

    
1355

    
1356
\subsection{Base cases}
1357

    
1358
\[
1359
\vlderivation{
1360
\vliin{\cut}{}{ \Gamma,a }{ \vlhy{\Gamma,a} }{ \vlin{\id}{}{a,a^\bot}{ \vlhy{} } }
1361
}
1362
\quad\to\quad
1363
\vlderivation{
1364
\Gamma,a
1365
}
1366
\]
1367

    
1368
\[
1369
\vlderivation{
1370
\vliin{\cut}{}{\Gamma}{ \vlin{\bot}{}{ \Gamma,\bot }{ \vlhy{\Gamma} } }{ \vlin{1}{}{1}{ \vlhy{} } }
1371
}
1372
\quad\to\quad
1373
\vlderivation{
1374
\Gamma
1375
}
1376
\]
1377

    
1378
\[
1379
\vlderivation{
1380
\vliin{\cut}{}{ \Gamma,\Delta,\top }{ \vlin{\top}{}{ \Gamma,\top,0 }{ \vlhy{} } }{ \vlhy{\Delta , \top } }
1381
}
1382
\quad\to\quad
1383
\vlinf{\top}{}{ \Gamma,\Delta,\top }{}
1384
\]
1385

    
1386
\subsection{Commutative cases}
1387
These are the cases when the principal formula of a step is not active for the cut-step below.
1388

    
1389
\begin{enumerate}
1390
\item The cut-step is immediately preceded by an initial step. Note that only the case for $\top$ applies:
1391
\[
1392
\vlderivation{
1393
\vliin{\cut}{}{\Gamma,\Delta,\top}{ 
1394
\vlin{\top}{  }{ \Gamma,\top,A }{ \vlhy{} }
1395
 }{ \vlhy{\Delta,A^\bot } }
1396
}
1397
\quad\to\quad
1398
\vlinf{\top}{}{ \Gamma,\Delta,\top }{}
1399
\]
1400
%Notice that this commutation eliminates the cut entirely and preserves the height of all cuts below.
1401
\item\label{CaseCommOneStep} A cut-step is immediately preceded by a step $\rho$ with exactly one premiss:
1402
\[
1403
\vlderivation{
1404
\vliin{\cut}{}{\Gamma',\Delta}{\vlin{\rho}{}{\Gamma',A}{\vlhy{\Gamma,A}}}{\vlhy{A^\bot , \Delta}}
1405
}
1406
\]
1407
We have three subcases:
1408
\begin{enumerate}
1409
\item\label{subcase:unary-commutation-vanilla} 
1410
%$\Delta$ consists of only $?$-ed formulae or 
1411
If $\rho \notin \{! , \indr \}$ then we can simply permute as follows:
1412
\begin{equation}
1413
\label{eqn:com-case-unary-simple}
1414
\vlderivation{
1415
\vliin{\cut}{}{\Gamma',\Delta}{\vlin{\rho}{}{\Gamma',A}{\vlhy{\Gamma,A}}}{\vlhy{A^\bot , \Delta}}
1416
}
1417
\quad \to \quad
1418
\vlderivation{
1419
\vlin{\rho}{}{\Gamma',\Delta}{
1420
\vliin{\cut}{}{\Gamma,\Delta}{\vlhy{\Gamma,A}}{\vlhy{A^\bot , \Delta}}
1421
}
1422
}
1423
\end{equation}
1424
(If $\rho$ was $\forall$ then we might need to rename some free variables in $\Delta$.)
1425
\item $\rho $ is a $!$-step. Therefore $\Gamma$ has the form $? \Sigma , B$ and $A$ has the form $?C$, yielding the following situation:
1426
\[
1427
\vlderivation{
1428
\vliin{\cut}{}{? \Sigma, !B, \Delta }{
1429
\vlin{!}{}{? \Sigma, !B , ?C}{\vlhy{?\Sigma , B , ?C}  }
1430
}{
1431
\vlin{\rho'}{}{!C^\perp , \Delta}{\vlhy{\vlvdots}}
1432
}
1433
}
1434
\]
1435
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.
1436
\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.
1437
% yielding the following situation:
1438
%\[
1439
%\vlderivation{
1440
%	\vliin{\cut}{}{? \Sigma, B^\perp (0) , B(t), \Delta }{
1441
%		\vlin{\indr}{}{? \Sigma, B^\perp (0) , B(t) , ?C}{\vlhy{?\Sigma , B^\perp(x) , B(s x) , ?C}  }
1442
%	}{
1443
%	\vlin{\rho'}{}{!C^\perp , \Delta}{\vlhy{\vlvdots}}
1444
%}
1445
%}
1446
%\]
1447
\end{enumerate}
1448

    
1449

    
1450

    
1451
\item A cut-step is immediately preceded by a $\vlte $-step:
1452
\[
1453
\vlderivation{
1454
\vliin{\cut}{}{\Gamma,\Delta,\Sigma,A\vlte B }{
1455
\vliin{\vlte}{}{\Gamma,\Delta,A\vlte B,C }{\vlhy{\Gamma,A,C}}{\vlhy{\Delta,B}}
1456
}{\vlhy{ \Sigma , C^\bot  }}
1457
}
1458
\quad\to\quad
1459
\vlderivation{
1460
\vliin{\vlte}{}{\Gamma,\Delta,\Sigma,A\vlte B}{
1461
\vliin{\cut}{}{\Gamma,\Sigma,A}{\vlhy{\Gamma,A,C}}{\vlhy{\Sigma,C^\bot}}
1462
}{\vlhy{\Delta,B}}
1463
}
1464
\]
1465
%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.
1466
\item\label{CommCaseAmpersand} A cut-step is immediately preceded by a $\vlan$-step.
1467
\[
1468
\vlderivation{
1469
\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} }
1470
}
1471
\quad\to\quad
1472
\vlderivation{
1473
\vliin{\vlan}{}{\Gamma,\Delta,A\vlan B }{
1474
\vliin{cut}{}{\Gamma,\Delta,A }{ \vlhy{\Gamma,A,C} }{ \vlhy{ \Delta,C^\bot } }
1475
}{
1476
\vliin{ \cut }{}{\Gamma,\Delta,B}{ \vlhy{\Gamma,B,C } }{ \vlhy{\Delta,C^\bot} }
1477
}
1478
}
1479
\]
1480
\item (No rule for cuts commuting with cuts.)
1481
%A cut-step is immediately preceded by another cut-step:
1482
\[
1483
\vlderivation{
1484
	\vliin{\cut}{}{\Gamma, \Delta, \Sigma}{
1485
		\vliin{\cut}{}{\Gamma, \Delta, B}{\vlhy{\Gamma, A}}{\vlhy{\Delta, \lnot{A}, B}}
1486
		}{\vlhy{\Sigma, \lnot{B}}}
1487
	}
1488
	\quad\to\quad
1489
\vlderivation{
1490
	\vliin{\cut}{}{\Gamma, \Delta, \Sigma}{\vlhy{\Gamma, A}}{
1491
		\vliin{\cut}{}{\Delta, \Sigma, \lnot{A}}{\vlhy{\Delta, \lnot{A}, B}}{\vlhy{\Sigma, \lnot{B}}}
1492
		}
1493
	}
1494
\]
1495
\end{enumerate}
1496

    
1497

    
1498

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

    
1503
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. 
1504

    
1505
We have two cases.
1506
\begin{enumerate}
1507
\item\label{StructStepCont} The structural step preceding the cut is a weakening:
1508
\[
1509
\vlderivation{
1510
\vliin{\cut}{}{?\Gamma,\Delta}{ \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} } }{ \vlin{w}{}{ ?A^\bot }{ \vlhy{\Delta	} } }
1511
}
1512
\quad\to\quad
1513
\vlinf{w}{}{?\Gamma,\Delta}{ \Delta }
1514
\]
1515
%\item The structural step preceding the cut is a contraction:
1516
%\[
1517
%\vlderivation{
1518
%\vliin{\cut}{}{ ?\Gamma,\Delta }{
1519
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1520
%}{ \vlin{c}{}{ ?A^\bot , \Delta }{ \vlhy{ ?A^\bot , ?A^\bot ,  \Delta} } }
1521
%}
1522
%\quad\to\quad
1523
%\vlderivation{
1524
%\vliq{c}{}{?\Gamma, \Delta}{
1525
%\vliin{\cut}{}{?\Gamma, ?\Gamma,\Delta }{
1526
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1527
%}{
1528
%\vliin{\cut}{}{?\Gamma,?A^\bot , \Delta }{
1529
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1530
%}{ \vlhy{?A^\bot , ?A^\bot , \Delta } }
1531
%}
1532
%}
1533
%}
1534
%\]
1535
%OR use a multicut:
1536
%\[
1537
%\vlderivation{
1538
%\vliin{\cut}{}{ ?\Gamma,\Delta }{
1539
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1540
%}{ \vlin{c}{}{ ?A^\bot , \Delta }{ \vlhy{ ?A^\bot , ?A^\bot ,  \Delta} } }
1541
%}
1542
%\quad\to\quad
1543
%\vlderivation{
1544
%\vliin{\multicut}{}{?\Gamma,?A^\bot , \Delta }{
1545
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1546
%}{ \vlhy{?A^\bot , ?A^\bot , \Delta } }
1547
%}
1548
%\]
1549
\item The structural step preceding a cut is a contraction:
1550
\[
1551
\vlderivation{
1552
	\vliin{\cut}{}{?\Gamma, \Sigma }{ \vlhy{?\Gamma,!A^\bot} }{
1553
		\vlin{\cntr}{}{ ?A,\Sigma }{ \vlhy{ ?A,?A,\Sigma } }
1554
	}
1555
}
1556
\quad\to\quad
1557
\vlderivation{
1558
	\vliq{\cntr}{}{ ?\Gamma,\Sigma }{
1559
		\vliin{\cut}{}{ ?\Gamma,?\Gamma,\Sigma }{ \vlhy{?\Gamma,!A^\bot } }{
1560
			\vliin{\cut}{}{ ?A,?\Gamma,\Sigma }{ \vlhy{?\Gamma,!A^\bot} }{ \vlhy{ ?A,?A,?\Delta,\Sigma } }
1561
		}
1562
	}
1563
}
1564
\]
1565
%\item The structural step preceding a cut is a parallel contraction:
1566
%\[
1567
%\vlderivation{
1568
%\vliin{\cut}{}{?\Gamma,?\Delta, \Sigma }{ \vlhy{?\Gamma,!A^\bot} }{
1569
%\vlin{}{}{ ?A,?\Delta,\Sigma }{ \vlhy{ ?A,?A,?\Delta,?\Delta,\Sigma } }
1570
%}
1571
%}
1572
%\quad\to\quad
1573
%\vlderivation{
1574
%\vlin{}{}{ ?\Gamma,?\Delta,\Sigma }{
1575
%\vliin{\cut}{}{ ?\Gamma,?\Gamma,?\Delta,?\Delta,\Sigma }{ \vlhy{?\Gamma,!A^\bot } }{
1576
%\vliin{\cut}{}{ ?A,?\Gamma,?\Delta,?\Delta,\Sigma }{ \vlhy{?\Gamma,!A^\bot} }{ \vlhy{ ?A,?A,?\Delta,?\Delta,\Sigma } }
1577
%}
1578
%}
1579
%}
1580
%\]
1581
\end{enumerate}
1582

    
1583
\subsection{Key cases: logical steps}
1584
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.
1585
\begin{enumerate}
1586
\item The cut-formula is multiplicative:
1587
\[
1588
\vlderivation{
1589
\vliin{\cut}{}{ \Gamma,\Delta,\Sigma }{
1590
\vliin{\vlte}{}{ \Gamma,\Delta,A\vlte B }{ \vlhy{\Gamma,A} }{ \vlhy{\Delta,B} }
1591
}{ \vlin{\vlpa}{}{ \Sigma, A^\bot \vlpa B^\bot }{ \vlhy{\Sigma , A^\bot , B^\bot} } }
1592
}
1593
\quad\to\quad
1594
\vlderivation{
1595
\vliin{\cut}{}{ \Gamma,\Delta,\Sigma }{ \vlhy{\Gamma,A} }{
1596
\vliin{\cut}{}{ \Delta,\Sigma,A^\bot }{ \vlhy{\Delta,B} }{ \vlhy{\Sigma , A^\bot,B^\bot } }
1597
}
1598
}
1599
\]
1600
\item The cut-formula is additive,
1601
\[
1602
\vlderivation{
1603
\vliin{\cut}{}{ \Gamma,\Delta }{ 
1604
\vliin{\vlan}{}{ \Gamma,A\vlan B }{ \vlhy{\Gamma,A} }{ \vlhy{\Gamma,B} }
1605
 }{ \vlin{\vlor}{}{ \Delta,A^\bot\vlor B^\bot }{ \vlhy{\Delta, A^\bot } } }
1606
}
1607
\quad\to\quad
1608
\vliinf{\cut}{}{ \Gamma,\Delta }{ \Gamma,A }{ \Delta,A^\bot }
1609
\]
1610
where the case for the other $\vlor$-rule is symmetric.
1611
\item The cut-formula is exponential.
1612
\[
1613
\vlderivation{
1614
\vliin{\cut}{}{ ?\Gamma,\Delta }{
1615
 \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1616
}{
1617
\vlin{?}{}{ \Delta,?A^\bot }{ \vlhy{\Delta, A^\bot } }
1618
}
1619
}
1620
\quad\to\quad
1621
\vliinf{\cut}{}{ ?\Gamma,\Delta }{ ?\Gamma,A }{ \Delta,A^\bot }
1622
\]
1623
\item The cut-formula is quantified.
1624
\[
1625
\vlderivation{
1626
	\vliin{\cut}{}{\Gamma, \Delta}{
1627
		\vlin{\forall}{}{\Gamma, \forall x. A(x)}{\vltr{\pi(a)}{\Gamma, A(a)}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}}
1628
		}{
1629
		\vlin{\exists}{}{\Delta, \exists x . \lnot{A}(x)}{\vlhy{\Delta, \lnot{A}(t)}}
1630
		}
1631
	}
1632
	\quad \to \quad
1633
	\vlderivation{
1634
		\vliin{\cut}{}{\Gamma, \Delta}{
1635
			\vltr{\pi(t)}{\Gamma, A(t)}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
1636
			}{\vlhy{\Delta, \lnot{A}(t)}}
1637
		}
1638
\]
1639
\end{enumerate}
1640

    
1641

    
1642
\end{document}