Statistiques
| Révision :

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

Historique | Voir | Annoter | Télécharger (68,6 ko)

1 2 adas
\documentclass[a4paper,UKenglish]{lipics-v2016}
2 2 adas
%This is a template for producing LIPIcs articles.
3 2 adas
%See lipics-manual.pdf for further information.
4 2 adas
%for A4 paper format use option "a4paper", for US-letter use option "letterpaper"
5 2 adas
%for british hyphenation rules use option "UKenglish", for american hyphenation rules use option "USenglish"
6 2 adas
% for section-numbered lemmas etc., use "numberwithinsect"
7 2 adas
8 2 adas
\usepackage{microtype}%if unwanted, comment out or use option "draft"
9 2 adas
10 2 adas
%\graphicspath{{./graphics/}}%helpful if your graphic files are in another directory
11 2 adas
12 2 adas
\bibliographystyle{plainurl}% the recommended bibstyle
13 2 adas
14 2 adas
15 2 adas
16 2 adas
17 2 adas
\usepackage[lutzsyntax]{virginialake}
18 2 adas
\usepackage{amsmath}
19 2 adas
\usepackage{amssymb}
20 2 adas
\usepackage{amsthm}
21 2 adas
\usepackage{times}
22 2 adas
%\usepackage{sans}
23 2 adas
\usepackage{cmll}
24 10 adas
\usepackage{bm}
25 2 adas
26 2 adas
%\newtheorem{theorem}{Theorem}
27 2 adas
%\newtheorem{maintheorem}[theorem]{Main Theorem}
28 2 adas
%\newtheorem{observation}[theorem]{Observation}
29 2 adas
%\newtheorem{corollary}[theorem]{Corollary}
30 2 adas
%\newtheorem{lemma}[theorem]{Lemma}
31 2 adas
\newtheorem{proposition}[theorem]{Proposition}
32 2 adas
%\newtheorem{conjecture}[theorem]{Conjecture}
33 2 adas
%
34 2 adas
%\theoremstyle{definition}
35 2 adas
%\newtheorem{definition}[theorem]{Definition}
36 2 adas
%\newtheorem{example}[theorem]{Example}
37 2 adas
%\newtheorem{notation}[theorem]{Notation}
38 2 adas
%\newtheorem{convention}[theorem]{Convention}
39 2 adas
%\newtheorem{remark}[theorem]{Remark}
40 2 adas
%\newtheorem{discussion}[theorem]{Discussion}
41 2 adas
42 2 adas
\newcommand{\todo}[1]{{\color{red}{\textbf{Todo:} #1}}}
43 2 adas
\newcommand{\anupam}[1]{{\color{orange}{\textbf{Anupam:} #1}}}
44 2 adas
\newcommand{\patrick}[1]{{\color{blue}{\textbf{Patrick:} #1}}}
45 2 adas
46 2 adas
\newcommand{\defined}{:=}
47 24 adas
48 2 adas
\begin{document}
49 2 adas
50 2 adas
	\newcommand{\LL}{\it{LL}}
51 2 adas
	\vllineartrue
52 2 adas
53 2 adas
54 2 adas
	\newcommand{\FV}{\mathit{FV}}
55 2 adas
56 2 adas
57 2 adas
	%terms
58 24 adas
	\newcommand{\pred}{p}
59 24 adas
	\newcommand{\cond}{C}
60 2 adas
	\renewcommand{\succ}{s}
61 2 adas
	\renewcommand{\epsilon}{\varepsilon}
62 2 adas
63 2 adas
	% linear connectives
64 2 adas
65 2 adas
	\newcommand{\limp}{\multimap}
66 2 adas
	\renewcommand{\land}{\otimes}
67 2 adas
	\newcommand{\laand}{\&}
68 2 adas
	\newcommand{\laor}{\oplus}
69 2 adas
	\renewcommand{\lor}{\vlpa}
70 2 adas
	\renewcommand{\lnot}[1]{{#1^{\perp}}}
71 2 adas
	\newcommand{\lnotnot}[1]{#1^{\perp \perp}}
72 2 adas
73 2 adas
	% classical connectives
74 2 adas
75 2 adas
	\newcommand{\cimp}{\supset}
76 2 adas
	\newcommand{\cand}{\wedge}
77 2 adas
	\newcommand{\cor}{\vee}
78 2 adas
	\newcommand{\cnot}{\neg}
79 2 adas
80 2 adas
81 2 adas
	\newcommand{\Ax}{\mathit{(Ax)}}
82 2 adas
	\newcommand{\Rl}{\mathit{(Rl)}}
83 2 adas
84 2 adas
	\newcommand{\MELL}{\mathit{MELL}}
85 2 adas
	\newcommand{\MEAL}{\mathit{MELLW}}
86 2 adas
	\newcommand{\MELLW}{\mathit{MELL(W)}}
87 2 adas
88 2 adas
	\newcommand{\Aonetwo}{\mathcal{A}^1_2}
89 2 adas
	\newcommand{\logic}{\mathit{L}_{\mathcal A} }
90 2 adas
91 2 adas
	% predicates
92 2 adas
	\newcommand{\nat}{N}
93 2 adas
94 2 adas
	\newcommand{\Nat}{\mathbb{N}}
95 2 adas
96 2 adas
	%axioms
97 2 adas
	\newcommand{\wk}{\mathit{wk}}
98 2 adas
	\newcommand{\impl}{\cimp\text{-}\mathit{l}}
99 2 adas
	\newcommand{\impcomm}{\mathit{com}}
100 2 adas
	\newcommand{\conint}{\cand\text{-}\mathit{i}}
101 2 adas
	\newcommand{\conel}{\cand\text{-}\mathit{e}}
102 2 adas
	\newcommand{\negclass}{\cnot}
103 2 adas
104 2 adas
	%rules
105 2 adas
	\renewcommand{\mp}{\mathit{mp}}
106 2 adas
	\newcommand{\gen}{\mathit{gen}}
107 2 adas
	\newcommand{\inst}{\mathit{ins}}
108 2 adas
	\newcommand{\id}{\it{id}}
109 2 adas
	\newcommand{\cut}{\it{cut}}
110 2 adas
	\newcommand{\multicut}{\it{mcut}}
111 2 adas
	\newcommand{\indr}{\mathit{IND}}
112 2 adas
	\newcommand{\nec}{\mathit{nec}}
113 2 adas
	\newcommand{\tax}{\mathit{T}}
114 2 adas
	\newcommand{\four}{\mathit{4}}
115 2 adas
	\newcommand{\kax}{\mathit{K}}
116 2 adas
	\newcommand{\cntr}{\mathit{cntr}}
117 2 adas
118 2 adas
	\newcommand{\lefrul}[1]{#1\text{-}\mathit{l}}
119 2 adas
	\newcommand{\rigrul}[1]{#1\text{-}\mathit{r}}
120 2 adas
121 2 adas
	%consequence relations
122 2 adas
	\newcommand{\admits}{\vDash}
123 2 adas
	\newcommand{\seqar}{\vdash}
124 10 adas
	\newcommand{\proves}{\vdash_e}
125 2 adas
126 2 adas
	%induction
127 2 adas
	\newcommand{\ind}{\mathit{IND}}
128 2 adas
	\newcommand{\pind}{\mathit{PIND}}
129 2 adas
	\newcommand{\cax}[2]{#1\text{-}#2}
130 2 adas
131 14 pbaillot
          % sizes
132 14 pbaillot
          \newcommand{\height}[1]{\mathit{h}(#1)}
133 11 adas
134 11 adas
% Author macros::begin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
135 11 adas
\title{Free-cut elimination in linear logic: an application to implicit complexity}
136 11 adas
%\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 11 adas
138 11 adas
%% 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 11 adas
\author[1]{Patrick Baillot}
140 11 adas
\author[2]{Anupam Das}
141 11 adas
\affil[1]{Dummy University Computing Laboratory, Address/City, Country\\
142 11 adas
  \texttt{open@dummyuniversity.org}}
143 11 adas
\affil[2]{Department of Informatics, Dummy College, Address/City, Country\\
144 11 adas
  \texttt{access@dummycollege.org}}
145 11 adas
\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 11 adas
147 11 adas
\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 11 adas
149 11 adas
\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 11 adas
\keywords{Dummy keyword -- please provide 1--5 keywords}% mandatory: Please provide 1-5 keywords
151 11 adas
% Author macros::end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
152 11 adas
153 11 adas
%Editor-only macros:: begin (do not touch as author)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
154 11 adas
\EventEditors{John Q. Open and Joan R. Acces}
155 11 adas
\EventNoEds{2}
156 11 adas
\EventLongTitle{42nd Conference on Very Important Topics (CVIT 2016)}
157 11 adas
\EventShortTitle{CVIT 2016}
158 11 adas
\EventAcronym{CVIT}
159 11 adas
\EventYear{2016}
160 11 adas
\EventDate{December 24--27, 2016}
161 11 adas
\EventLocation{Little Whinging, United Kingdom}
162 11 adas
\EventLogo{}
163 11 adas
\SeriesVolume{42}
164 11 adas
\ArticleNo{23}
165 11 adas
% Editor-only macros::end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
166 11 adas
167 2 adas
\maketitle
168 2 adas
169 2 adas
\begin{abstract}
170 2 adas
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 2 adas
 \end{abstract}
172 2 adas
173 2 adas
\section{Introduction}
174 2 adas
175 5 adas
\todo{words or integers?}
176 5 adas
177 8 adas
178 8 adas
179 2 adas
\section{Preliminaries}
180 2 adas
181 2 adas
\todo{consider removing and just have a section on linear logic, including free-cut elimination.}
182 2 adas
183 8 adas
184 10 adas
185 10 adas
186 9 adas
\paragraph*{Notation}
187 8 adas
Fix conventions here for use throughout:
188 8 adas
\begin{itemize}
189 8 adas
\item Eigenvariables: $a, b , c$.
190 8 adas
\item (Normal) variables: $u,v,w$. (only when distinction is important, e.g.\ $u^{!\nat}$).
191 8 adas
\item (Safe) variables: $x,y,z$. (as above, e.g.\ $x^\nat$.)
192 8 adas
\item Terms: $r,s,t$.
193 8 adas
\item Formulae: $A,B,C$.
194 10 adas
\item Atomic formulae: $p,q$.
195 17 pbaillot
\item Free variables in a term, formula, sequent: $FV(u)$, $FV(A)$, $FV(\Gamma)$
196 8 adas
\item Sequents: $\Gamma, \Delta, \Sigma, \Pi$.
197 9 adas
\item Proofs: $\pi, \rho, \sigma$.
198 8 adas
\item Theories: $\mathcal T$. Sequent systems: $\mathcal S$.
199 8 adas
\end{itemize}
200 8 adas
201 2 adas
\subsection{Linear logic}
202 2 adas
203 10 adas
\anupam{use a system that is already in De Morgan form, for simplicity.}
204 10 adas
\anupam{Have skipped units, can reconsider this when in arithmetic. Also in affine setting can be recovered by any contradiction/tautology.}
205 10 adas
206 13 pbaillot
\begin{definition}\label{def:LLsequentcalculus}
207 14 pbaillot
%[Sequent calculus for linear logic]
208 14 pbaillot
[Sequent calculus for affine linear logic]
209 14 pbaillot
210 14 pbaillot
\patrick{2Anupam: is there a reason for considering only axioms on atomic formulas $p$?}
211 14 pbaillot
212 14 pbaillot
\patrick{Note that here I changed the system to consider directly affine linear logic}
213 14 pbaillot
214 10 adas
We define the following calculus in De Morgan normal form:
215 10 adas
\[
216 10 adas
\begin{array}{l}
217 10 adas
\begin{array}{cccc}
218 10 adas
\vlinf{\lefrul{\bot}}{}{p, \lnot{p} \seqar }{}
219 10 adas
& \vlinf{\id}{}{p \seqar p}{}
220 10 adas
& \vlinf{\rigrul{\bot}}{}{\seqar p, \lnot{p}}{}
221 10 adas
& \vliinf{\cut}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta, A }{\Sigma, A \seqar \Pi}
222 10 adas
\\
223 10 adas
\noalign{\bigskip}
224 10 adas
%\text{Multiplicatives:} & & & \\
225 10 adas
%\noalign{\bigskip}
226 10 adas
\vliinf{\lefrul{\lor}}{}{\Gamma,\Sigma, A \lor B \seqar \Delta, \Pi}{\Gamma, A \seqar \Delta}{\Sigma , B \seqar \Pi}
227 10 adas
&
228 10 adas
\vlinf{\lefrul{\land}}{}{\Gamma, A\land B \seqar \Delta}{\Gamma, A , B \seqar \Delta}
229 10 adas
&
230 10 adas
\vlinf{\rigrul{\lor}}{}{\Gamma \seqar \Delta, A \lor B}{\Gamma \seqar \Delta, A, B}
231 10 adas
&
232 10 adas
\vliinf{\rigrul{\land}}{}{\Gamma, \Sigma \seqar \Delta , \Pi , A \land B}{\Gamma \seqar \Delta , A}{\Sigma \seqar \Pi , B}
233 10 adas
\\
234 10 adas
\noalign{\bigskip}
235 10 adas
%\text{Additives:} & & & \\
236 10 adas
%\noalign{\bigskip}
237 10 adas
\vliinf{\lefrul{\laor}}{}{\Gamma, A \laor B \seqar \Delta}{\Gamma , A \seqar \Delta}{\Gamma, B \seqar \Delta}
238 10 adas
&
239 10 adas
\vlinf{\lefrul{\laand}}{}{\Gamma, A_1\laand A_2 \seqar \Delta}{\Gamma, A_i \seqar \Delta}
240 10 adas
&
241 10 adas
%\vlinf{\lefrul{\laand}}{}{\Gamma, A\laand B \seqar \Delta}{\Gamma, B \seqar \Delta}
242 10 adas
%\quad
243 13 pbaillot
\vlinf{\rigrul{\laor}}{}{\Gamma \seqar \Delta, A_1\laor A_2}{\Gamma \seqar \Delta, A_i}
244 10 adas
&
245 10 adas
%\vlinf{\rigrul{\laor}}{}{\Gamma \seqar \Delta, A\laor B}{\Gamma \seqar \Delta, B}
246 10 adas
%\quad
247 10 adas
\vliinf{\rigrul{\laand}}{}{\Gamma \seqar \Delta, A \laand B }{\Gamma \seqar \Delta, A}{\Gamma \seqar \Delta, B}
248 10 adas
\\
249 10 adas
\noalign{\bigskip}
250 10 adas
%\text{Exponentials:} & & & \\
251 10 adas
%\noalign{\bigskip}
252 10 adas
\vlinf{\lefrul{?}}{}{!\Gamma, ?A \seqar ?\Delta}{!\Gamma , A \seqar ?\Delta}
253 10 adas
&
254 10 adas
\vlinf{\lefrul{!}}{}{\Gamma, !A \seqar \Delta}{\Gamma, A \seqar \Delta}
255 10 adas
&
256 10 adas
\vlinf{\rigrul{?}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, A}
257 10 adas
&
258 13 pbaillot
\vlinf{\rigrul{!}}{}{!\Gamma \seqar ?\Delta, !A}{!\Gamma \seqar ?\Delta, A}
259 10 adas
\\
260 10 adas
\noalign{\bigskip}
261 10 adas
%\text{Structural:} & & & \\
262 10 adas
%\noalign{\bigskip}
263 14 pbaillot
264 14 pbaillot
%\vlinf{\lefrul{\wk}}{}{\Gamma, !A \seqar \Delta}{\Gamma \seqar \Delta}  %% linear logic weakening
265 14 pbaillot
\vlinf{\lefrul{\wk}}{}{\Gamma, A \seqar \Delta}{\Gamma \seqar \Delta}
266 10 adas
&
267 10 adas
\vlinf{\lefrul{\cntr}}{}{\Gamma, !A \seqar \Delta}{\Gamma, !A, !A \seqar \Delta}
268 10 adas
&
269 14 pbaillot
%\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, ?A }{\Gamma \seqar \Delta}   %% linear logic weakening
270 14 pbaillot
271 14 pbaillot
\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, A }{\Gamma \seqar \Delta}
272 10 adas
&
273 10 adas
\vlinf{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, ?A, ?A}
274 10 adas
\\
275 10 adas
\noalign{\bigskip}
276 10 adas
\vlinf{\lefrul{\exists}}{}{\Gamma, \exists x . A(x) \seqar \Delta}{\Gamma, A(a) \seqar \Delta}
277 10 adas
&
278 10 adas
\vlinf{\lefrul{\forall}}{}{\Gamma, \forall x. A(x) \seqar \Delta}{\Gamma, A(t) \seqar \Delta}
279 10 adas
&
280 10 adas
\vlinf{\rigrul{\exists}}{}{\Gamma \seqar \Delta, \exists x . A(x)}{ \Gamma \seqar \Delta, A(t)}
281 10 adas
&
282 14 pbaillot
\vlinf{\rigrul{\forall}}{}{\Gamma \seqar \Delta, \forall x . A(x)}{ \Gamma \seqar \Delta, A(a) } \\
283 14 pbaillot
\noalign{\bigskip}
284 14 pbaillot
 \vliinf{mix}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta}{\Sigma \seqar \Pi} &&&
285 10 adas
\end{array}
286 10 adas
\end{array}
287 10 adas
\]
288 10 adas
where $p$ atomic, $i \in \{ 1,2 \}$ and the eigenvariable $a$ does not occur free in $\Gamma$ or $\Delta$.
289 10 adas
\end{definition}
290 17 pbaillot
 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 14 pbaillot
292 13 pbaillot
  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 10 adas
294 13 pbaillot
 \[
295 13 pbaillot
 \begin{array}{cc}
296 13 pbaillot
  \vlinf{(ax)}{}{ \seqar A}{}  &  \vlinf{(R)}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
297 13 pbaillot
\end{array}
298 13 pbaillot
\]
299 13 pbaillot
300 17 pbaillot
 where in rule (R), $I$ is a finite set (indicating the number of premises) and we assume the following conditions:
301 17 pbaillot
 \begin{enumerate}
302 17 pbaillot
 \item  We have:$$ FV(\Sigma_i, \Delta_i) \cap FV(!\Gamma, ? \Pi)= FV(\Sigma_i, \Delta_i) \cap FV(\Sigma', \Delta')= \emptyset $$
303 17 pbaillot
 \item $ \Sigma', \Delta'$ does not contain any formula of the shape $!A$ or $?A$.
304 17 pbaillot
 \end{enumerate}
305 13 pbaillot
306 17 pbaillot
  \patrick{Anupam: note that I had to strengthen the conditions for the rules (R). Condition (1) is needed
307 17 pbaillot
  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 13 pbaillot
309 20 pbaillot
  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 17 pbaillot
  }
311 16 pbaillot
312 17 pbaillot
%  \textit{for any $i\in I$, formulas in $\Sigma_i, \Delta_i$ do not share any free variable with   $\Gamma, \Pi$.}
313 17 pbaillot
%
314 17 pbaillot
%  \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 17 pbaillot
%  $$ FV(\Sigma_i, \Delta_i) \cap FV(!\Gamma, ? \Pi)= FV(\Sigma_i, \Delta_i) \cap FV(\Sigma', \Delta')= \emptyset $$
316 17 pbaillot
 % 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 17 pbaillot
318 13 pbaillot
  In the following we will be interested in an example of theory  $\mathcal T$ which is a form of arithmetic.
319 16 pbaillot
320 16 pbaillot
   Let us give an example of a possible rule (R) of a theory $\mathcal T$:
321 16 pbaillot
322 16 pbaillot
   \[
323 17 pbaillot
	\vlinf{(ind)}{(x \notin \FV(\Gamma, \Delta))}{ !\Gamma , A(0) \seqar A(t) , ?\Delta }{ !\Gamma , A(x) \seqar A(s x ), ?\Delta }
324 16 pbaillot
	\]
325 16 pbaillot
326 16 pbaillot
%\[
327 16 pbaillot
%	\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 16 pbaillot
%	\]
329 16 pbaillot
330 13 pbaillot
331 16 pbaillot
  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 16 pbaillot
   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 13 pbaillot
334 20 pbaillot
  As usual rules come with a notion of \textit{principal formulas}, which are a subset of the rules in the conclusion, e.g.:
335 13 pbaillot
  $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 13 pbaillot
   $\Sigma', \Delta'$ in rule (R).
337 13 pbaillot
338 22 pbaillot
339 22 pbaillot
\subsection{Deduction theorem}
340 22 pbaillot
341 22 pbaillot
[cite Avron:`semantics and proof theory of linear logic']
342 22 pbaillot
343 22 pbaillot
We will make much use of the deduction theorem, allowing us to argue informally within a theory for hypotheses that have been promoted.
344 22 pbaillot
345 22 pbaillot
%$$
346 22 pbaillot
%	\vliiinf{}{}{ \seqar A}{ \seqar C}
347 22 pbaillot
%	$$
348 22 pbaillot
349 22 pbaillot
%\[
350 22 pbaillot
%	\vliiinf{R}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
351 22 pbaillot
%	\]
352 22 pbaillot
353 22 pbaillot
\begin{theorem}
354 22 pbaillot
	[Deduction]
355 22 pbaillot
	If $\mathcal T , A \proves B$ then $\mathcal{T} \proves !A \limp B$.
356 22 pbaillot
\end{theorem}
357 22 pbaillot
358 22 pbaillot
\todo{need that $A$ above is closed! Check for rules to axioms.}
359 22 pbaillot
360 22 pbaillot
361 22 pbaillot
362 22 pbaillot
\subsection{Converting axioms to rules in $\MELLW$}
363 22 pbaillot
364 22 pbaillot
\begin{proposition}
365 22 pbaillot
	An axiom $\Ax$ of the form,
366 22 pbaillot
	\[
367 22 pbaillot
	A_1 \limp \vldots \limp A_m \limp !B_1 \limp \vldots \limp !B_n \limp C
368 22 pbaillot
	\]
369 22 pbaillot
	is equivalent (over propositional $\LL$) to the rule $\Rl$:
370 22 pbaillot
	\[
371 22 pbaillot
	\vliiinf{\Rl}{}{ !\Gamma , A_1 , \dots , A_m \seqar C , ? \Delta  }{ !\Gamma \seqar B_1 , ?\Delta }{\vldots }{ !\Gamma \seqar B_n , ?\Delta}
372 22 pbaillot
	\]
373 22 pbaillot
\end{proposition}
374 22 pbaillot
\begin{proof}
375 22 pbaillot
	Let us first assume $\Ax$ and derive $\Rl$. From the axiom and Currying, we have a proof of:
376 22 pbaillot
	\begin{equation}\label{eqn:curried-axiom}
377 22 pbaillot
	A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C
378 22 pbaillot
	\end{equation}
379 22 pbaillot
380 22 pbaillot
	This can simply be cut against each of the premisses of $\Rl$, applying appropriate contractions and necessitations, to derive it:
381 22 pbaillot
	\[
382 22 pbaillot
	\vlderivation{
383 22 pbaillot
		\vliq{c}{}{!\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta }{
384 22 pbaillot
			\vliin{\cut}{}{!\Gamma, \dots , !\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta, \dots , ?\Delta }{
385 22 pbaillot
				\vlin{!}{}{!\Gamma \seqar !B_n, ?\Delta }{\vlhy{!\Gamma \seqar B_n , ?\Delta }}
386 22 pbaillot
			}{
387 22 pbaillot
			\vliin{\cut}{}{\qquad \qquad \qquad \qquad  \vlvdots \qquad \qquad \qquad \qquad }{
388 22 pbaillot
				\vlin{!}{}{!\Gamma \seqar !B_1 , ?\Delta}{\vlhy{!\Gamma \seqar B_1, ?\Delta }}
389 22 pbaillot
			}{\vlhy{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C } }
390 22 pbaillot
		}
391 22 pbaillot
	}
392 22 pbaillot
}
393 22 pbaillot
\]
394 22 pbaillot
395 22 pbaillot
Now let us prove $\Ax$ (again in the form of \eqref{eqn:curried-axiom}) by using $\Rl$ as follows:
396 22 pbaillot
\[
397 22 pbaillot
\vliiinf{\Rl}{}{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C }{  \vlderivation{
398 22 pbaillot
		\vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_1 }{
399 22 pbaillot
			\vlin{!}{}{!B_1 \seqar B_1 }{
400 22 pbaillot
				\vlin{\id}{}{B_1 \seqar B_1 }{\vlhy{}}
401 22 pbaillot
			}
402 22 pbaillot
		}
403 22 pbaillot
	}  }{\vldots}{
404 22 pbaillot
	\vlderivation{
405 22 pbaillot
		\vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_n }{
406 22 pbaillot
			\vlin{!}{}{!B_n \seqar B_n }{
407 22 pbaillot
				\vlin{\id}{}{B_n \seqar B_n }{\vlhy{}}
408 22 pbaillot
			}
409 22 pbaillot
		}
410 22 pbaillot
	}
411 22 pbaillot
}
412 22 pbaillot
\]
413 22 pbaillot
\end{proof}
414 22 pbaillot
415 22 pbaillot
416 22 pbaillot
\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 22 pbaillot
418 22 pbaillot
419 22 pbaillot
420 22 pbaillot
\begin{corollary}
421 22 pbaillot
	The induction axiom of $A^1_2$ is equivalent to the rule:
422 22 pbaillot
	\[
423 22 pbaillot
	\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 22 pbaillot
	\]
425 22 pbaillot
\end{corollary}
426 22 pbaillot
\begin{proof}
427 22 pbaillot
	By proposition above, generalisation and Currying.
428 22 pbaillot
\end{proof}
429 22 pbaillot
430 22 pbaillot
431 22 pbaillot
\subsection{Prenexing}
432 22 pbaillot
%In the presence of weakening we have a prenex normal form due to the following:
433 22 pbaillot
%
434 22 pbaillot
%\[
435 22 pbaillot
%\vlderivation{
436 22 pbaillot
%	\vlin{}{}{\exists x . A \lor B \seqar \exists x . (A(x) \lor B) }{
437 22 pbaillot
%
438 22 pbaillot
%		}
439 22 pbaillot
%	}
440 22 pbaillot
%\]
441 22 pbaillot
442 22 pbaillot
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 22 pbaillot
444 22 pbaillot
\section{Free-cut elimination in linear logic}
445 22 pbaillot
446 22 pbaillot
447 22 pbaillot
\todo{patrick}
448 22 pbaillot
449 22 pbaillot
\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 22 pbaillot
451 22 pbaillot
\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 22 pbaillot
453 22 pbaillot
 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 16 pbaillot
455 16 pbaillot
%   \begin{definition}\label{def:anchoredcut}
456 16 pbaillot
%  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 16 pbaillot
%  \end{definition}
458 20 pbaillot
  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 16 pbaillot
%  \begin{figure}
460 16 pbaillot
%  \[
461 16 pbaillot
%  \vlderivation{
462 16 pbaillot
%    \vliinf{c1}{!\Gamma , \Gamma_1 \seqar A(t) , ?\Delta }{
463 16 pbaillot
%  \vlinf{(ind)}{(x \notin \FV(\Gamma, \Delta))}{ !\Gamma , A(\epsilon) \seqar A(t) , ?\Delta }{ !\Gamma , A(x) \seqar A(s x ), ?\Delta }}
464 16 pbaillot
%  {\Gamma_1\seqar A(\epsilon) }
465 16 pbaillot
%                   }
466 16 pbaillot
%  \]
467 16 pbaillot
%%				\vlin{\cntr}{}{\Gamma, ?A}{
468 16 pbaillot
%%					\vlin{\wk}{}{\Gamma, ?A, ?A}{\vlhy{\Gamma, ?A}}
469 16 pbaillot
%%				}
470 16 pbaillot
%
471 16 pbaillot
%  \caption{Example}\label{Fig:twosuccessiveanchorcuts}
472 16 pbaillot
%  \end{figure}
473 16 pbaillot
474 16 pbaillot
475 16 pbaillot
476 13 pbaillot
  \begin{definition}\label{def:anchoredcut}
477 17 pbaillot
  We define in a mutual inductive way the notion of \textit{hereditarily principal formula} and \textit{anchored cut} in a $\mathcal T$-proof :
478 16 pbaillot
  \begin{itemize}
479 20 pbaillot
  \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 16 pbaillot
  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 16 pbaillot
  \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 16 pbaillot
  \end{itemize}
483 13 pbaillot
  \end{definition}
484 20 pbaillot
  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 13 pbaillot
  a rule $\rigrul{\lor}$ and a rule $\lefrul{\lor}$ is not.
486 13 pbaillot
487 22 pbaillot
   A cut which is non-anchored will also be called a \textit{free-cut}.
488 13 pbaillot
   Now we can state the main result of this section:
489 13 pbaillot
   \begin{theorem}
490 14 pbaillot
    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 13 pbaillot
   \end{theorem}
492 14 pbaillot
   \begin{proof}
493 30 pbaillot
494 16 pbaillot
    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 16 pbaillot
496 16 pbaillot
     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 16 pbaillot
498 14 pbaillot
499 14 pbaillot
    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 14 pbaillot
501 14 pbaillot
    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 14 pbaillot
503 30 pbaillot
    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 30 pbaillot
\[
505 30 pbaillot
     \vliinf{c \; \; \cut}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \vlinf{S_1}{}{\Gamma \seqar \Delta, A}{} }{\vlinf{S_2}{}{\Sigma, A \seqar \Pi}{}}
506 30 pbaillot
\]
507 30 pbaillot
    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 18 pbaillot
509 18 pbaillot
   \begin{itemize}
510 21 pbaillot
    \item \textbf{First case}: the cut-formula $A$ on the l.h.s. of  $c$ is non hereditarily principal.
511 14 pbaillot
512 18 pbaillot
   %  Call (S) the last rule above the left premise of $c$.
513 14 pbaillot
514 16 pbaillot
515 16 pbaillot
%     We perform a commutation step between (S) and $c$. We examine here the case where (S)=($\rigrul{\laand}$).
516 16 pbaillot
%
517 16 pbaillot
%     \[
518 16 pbaillot
%\vlderivation{
519 16 pbaillot
%\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 16 pbaillot
%}
521 16 pbaillot
%\quad\to\quad
522 16 pbaillot
%\vlderivation{
523 16 pbaillot
%\vliin{\vlan}{}{\Gamma,\Delta,A\vlan B }{
524 16 pbaillot
%\vliin{c_1}{}{\Gamma,\Delta,A }{ \vlhy{\Gamma,A,C} }{ \vlhy{ \Delta,C^\bot } }
525 16 pbaillot
%}{
526 16 pbaillot
%\vliin{c_2 }{}{\Gamma,\Delta,B}{ \vlhy{\Gamma,B,C } }{ \vlhy{\Delta,C^\bot} }
527 16 pbaillot
%}
528 16 pbaillot
%}
529 16 pbaillot
%\]
530 16 pbaillot
%
531 16 pbaillot
%\patrick{TODO: adapt to two-sided sequents here}
532 18 pbaillot
\begin{itemize}
533 18 pbaillot
\item Consider first the situation where $(S_1)$ is not one of the rules $(\rigrul{!})$, $(\lefrul{?})$, $(R)$.
534 14 pbaillot
535 20 pbaillot
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 30 pbaillot
537 30 pbaillot
\[
538 30 pbaillot
\vlderivation{
539 30 pbaillot
\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 30 pbaillot
}
541 30 pbaillot
\quad\to\quad
542 30 pbaillot
\vlderivation{
543 30 pbaillot
\vliin{\rigrul{\vlan}}{}{  \Gamma, \Sigma \seqar B_1\vlan B_2, \Delta, \Pi  }{
544 30 pbaillot
\vliin{c_1}{}{\Gamma,\Sigma \seqar B_1, \Delta, \Pi }{ \vlhy{\Gamma  \seqar B_1, \Delta, A} }{\vlhy{ \Sigma, A \seqar  \Pi} }
545 30 pbaillot
}{
546 30 pbaillot
\vliin{c_2}{}{\Gamma,\Sigma \seqar B_2, \Delta, \Pi }{ \vlhy{\Gamma  \seqar B_2, \Delta, A} }{\vlhy{ \Sigma, A \seqar  \Pi} }
547 30 pbaillot
}
548 30 pbaillot
}
549 30 pbaillot
\]
550 30 pbaillot
551 30 pbaillot
%\vlderivation{
552 30 pbaillot
%\vliin{\vlan}{}{\Gamma,\Delta,A\vlan B }{
553 30 pbaillot
%\vliin{c_1}{}{\Gamma,\Delta,A }{ \vlhy{\Gamma,A,C} }{ \vlhy{ \Delta,C^\bot } }
554 30 pbaillot
%}{
555 30 pbaillot
%\vliin{ c_2 }{}{\Gamma,\Delta,B}{ \vlhy{\Gamma,B,C } }{ \vlhy{\Delta,C^\bot} }
556 30 pbaillot
%}
557 30 pbaillot
%}
558 30 pbaillot
%\]
559 30 pbaillot
560 30 pbaillot
561 14 pbaillot
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 14 pbaillot
$\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 16 pbaillot
$\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 14 pbaillot
565 18 pbaillot
The case (S)=($\lefrul{\laor}$) is identical, and the other cases are similar (see the Appendix for more examples).
566 15 pbaillot
567 21 pbaillot
\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 18 pbaillot
569 18 pbaillot
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 18 pbaillot
 $(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 18 pbaillot
572 18 pbaillot
 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 18 pbaillot
574 18 pbaillot
 \patrick{TODO: I will picture this case}
575 18 pbaillot
576 18 pbaillot
\end{itemize}
577 18 pbaillot
578 18 pbaillot
%\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 21 pbaillot
    \item \textbf{Second case}: the cut-formulas on the l.h.s. and r.h.s. of  $c$ are both non hereditarily principal.
580 14 pbaillot
581 18 pbaillot
   After the first case we are here left with the situation where  $(S_1)$ is equal to $(\rigrul{!})$, $(\lefrul{?})$ or $(R)$.
582 18 pbaillot
   \begin{itemize}
583 21 pbaillot
    \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 18 pbaillot
    \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 18 pbaillot
   \end{itemize}
586 18 pbaillot
587 18 pbaillot
588 21 pbaillot
    \item \textbf{Third case}: the cut-formulas on the l.h.s. and r.h.s. of  $c$ are both  hereditarily principal.
589 21 pbaillot
590 21 pbaillot
    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 30 pbaillot
    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 30 pbaillot
    of last rule $(S_1)$ (resp. $(S_2)$).
593 30 pbaillot
594 21 pbaillot
    Then we consider the following sub-cases, in order:
595 14 pbaillot
     \begin{itemize}
596 30 pbaillot
      \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 14 pbaillot
598 30 pbaillot
       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 30 pbaillot
       of $\pi_2$ which has as leaves the sequence premises of these  $\lefrul{!}$ or $\lefrul{wk}$ with conclusion containing $!A^{j}$.
600 30 pbaillot
       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 30 pbaillot
  Now, let $\pi'_2$ be the immediate subderivation of $\pi_2$, of conclusion       $!\Gamma \seqar ?\Delta,A$.  We then define the derivation
602 30 pbaillot
  $\rho''$ obtained from   $\rho'$ in the following way:
603 30 pbaillot
  \begin{itemize}
604 30 pbaillot
  \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 30 pbaillot
  \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 30 pbaillot
  \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 30 pbaillot
  \end{itemize}
608 30 pbaillot
609 30 pbaillot
  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 30 pbaillot
611 30 pbaillot
  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 30 pbaillot
613 14 pbaillot
614 14 pbaillot
      \item \textbf{logical sub-case}: assume both premises of $c$ are conclusions of rules others than $?$, $!$, $wk$, $cntr$.
615 14 pbaillot
616 14 pbaillot
      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 14 pbaillot
618 14 pbaillot
      \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 14 pbaillot
620 14 pbaillot
      \patrick{Display the rewriting step here}.
621 14 pbaillot
622 14 pbaillot
     \end{itemize}
623 14 pbaillot
624 14 pbaillot
625 14 pbaillot
    \end{itemize}
626 14 pbaillot
627 14 pbaillot
   \end{proof}
628 2 adas
629 2 adas
630 2 adas
\section{Some variants of arithmetic in linear logic}
631 2 adas
632 2 adas
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 2 adas
\[
634 2 adas
!(A\land B) \equiv (!A \land !B)
635 2 adas
\]
636 2 adas
(The right-left direction is already valid in usual linear logic, but the left-right direction requires weakening).
637 2 adas
638 2 adas
We define a variant of arithmetic inspired by Bellantoni and Hofmann's $A^1_2$. We describe later some connections to bounded arithmetic.
639 2 adas
640 2 adas
641 2 adas
\subsection{Based on Bellantoni-Hoffmann, Leivant, etc.}
642 2 adas
643 2 adas
\newcommand{\natcntr}{\nat\mathit{cntr}}
644 2 adas
\newcommand{\geneps}{\nat_{\epsilon}}
645 2 adas
\newcommand{\genzer}{\nat_{0}}
646 2 adas
\newcommand{\genone}{\nat_{1}}
647 2 adas
648 2 adas
649 2 adas
\newcommand{\sepeps}{\epsilon}
650 2 adas
\newcommand{\sepzer}{\succ_{0}}
651 2 adas
\newcommand{\sepone}{\succ_{1}}
652 2 adas
653 2 adas
\newcommand{\inj}{\mathit{inj}}
654 2 adas
\newcommand{\surj}{\mathit{surj}}
655 2 adas
656 2 adas
\begin{definition}
657 2 adas
[Arithmetic]
658 2 adas
We have the following axioms:
659 2 adas
\[
660 2 adas
\begin{array}{rl}
661 7 adas
\wk & (A \land B )\limp A \\
662 2 adas
\natcntr & \forall x^N . (N(x) \land N(x)) \\
663 2 adas
\geneps & \nat(\epsilon) \\
664 2 adas
\genzer & \forall x^N . N(\succ_0 x) \\
665 2 adas
\genone & \forall x^N . N(\succ_1 x) \\
666 2 adas
\sepeps & \forall x^N . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\
667 2 adas
\sepzer & \forall x^N , y^N. ( \succ_0 x = \succ_0 y \limp x=y ) \\
668 2 adas
\sepone & \forall x^N , y^N. ( \succ_1 x = \succ_1 y \limp x=y ) \\
669 2 adas
\inj & \forall x^N . \succ_0 x \neq \succ_1 x \\
670 2 adas
\surj & \forall x^N . (x = \epsilon \lor \exists y^N . x = \succ_0 y \lor \exists y^N . x = \succ_1 y ) \\
671 2 adas
\noalign{\bigskip}
672 7 adas
\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 2 adas
\end{array}
674 2 adas
\]
675 2 adas
676 2 adas
Induction rule should be the following, to take account of relativised quantifiers?
677 2 adas
\[
678 2 adas
\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 2 adas
\]
680 2 adas
681 2 adas
\todo{in existential above, is there a prenexing problem?}
682 2 adas
683 2 adas
\todo{what about $\leq$? Introducing this could solve prenexing problem, e.g.\ by induction?}
684 2 adas
\end{definition}
685 2 adas
686 2 adas
\subsection{$\nat$-hierarchy}
687 2 adas
688 2 adas
\begin{definition}
689 20 pbaillot
690 20 pbaillot
\todo{replace N with nat.}
691 20 pbaillot
692 20 pbaillot
	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 2 adas
694 20 pbaillot
	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 2 adas
	\begin{itemize}
696 20 pbaillot
		\item $\Sigma^N_{i+1}$ is the class of formulae $\exists x^N . A$ where $A \in \Pi^N_i$.
697 20 pbaillot
		\item $\Pi^N_{i+1}$ is the class of formulae $\forall x^N . A$ where $A \in \Sigma^N_i$.
698 20 pbaillot
		\item ($\Delta^N_i$ is the class $\Sigma^N_i \cap \Pi^N_i$.)
699 2 adas
	\end{itemize}
700 2 adas
\end{definition}
701 2 adas
702 20 pbaillot
\todo{allow closure under positive Boolean operations?}
703 2 adas
704 2 adas
\todo{What about prenexing rules? Should not change provably total functions!}
705 2 adas
706 2 adas
\subsection{Equivalent rule systems}
707 2 adas
708 2 adas
For the quantifiers $\exists x^N $ and $\forall x^N$ we introduce the following rules, which are compatible with free-cut elimination:
709 2 adas
710 2 adas
\[
711 2 adas
\begin{array}{cc}
712 2 adas
\vlinf{}{}{\Gamma \seqar \Delta, \forall x^N . A(x)}{\Gamma, N(a) \seqar \Delta , A(a)}
713 2 adas
\quad & \quad
714 2 adas
\vlinf{}{}{\Gamma, N(t),\forall x^N A(x) \seqar \Delta}{\Gamma,  A(t) \seqar \Delta}
715 2 adas
\\
716 2 adas
\noalign{\bigskip}
717 2 adas
\vlinf{}{}{\Gamma , \exists x^N A(x) \seqar \Delta}{\Gamma, N(a), A(a) \seqar \Delta}
718 2 adas
\quad &\quad
719 2 adas
\vlinf{}{}{\Gamma, N(t) \seqar \Delta , \exists x^N . A(x)}{\Gamma  \seqar \Delta, A(t)}
720 2 adas
\end{array}
721 2 adas
\]
722 2 adas
723 20 pbaillot
CHECK THESE!
724 2 adas
725 20 pbaillot
\todo{Also include rules for contraction and weakening.}
726 20 pbaillot
727 2 adas
\section{Convergence of Bellantoni-Cook programs}
728 2 adas
729 2 adas
\subsection{Bellantoni-Cook programs}
730 20 pbaillot
We first recall the notion of safe recursion on notation from BC. TODO
731 2 adas
732 23 adas
\anupam{Do we need simultaneous PRN? cf.\ Bellantoni's thesis.}
733 23 adas
734 23 adas
\todo{reformulate below for binary words, not natural numbers?}
735 23 adas
736 23 adas
\begin{definition}
737 23 adas
	[BC functions]
738 23 adas
	BC is the set of functions generated by the following initial functions and closure schemes.
739 23 adas
740 23 adas
%	\paragraph{Initial functions}
741 23 adas
	There are the following initial functions:
742 23 adas
	\begin{enumerate}
743 23 adas
		\item The constant function $0$ which takes no arguments and outputs $0 \in \Nat$.
744 23 adas
		\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 23 adas
		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
746 23 adas
		\item The predecessor function $\pred (; x) := \begin{cases}
747 23 adas
		0 & x = 0 \\
748 23 adas
		x' & x = x'i
749 23 adas
		\end{cases}$.
750 23 adas
		\item The conditional function $\cond (;x,y,z) := \begin{cases}
751 23 adas
		y & x \mod{2} = 0 \\
752 23 adas
		z & \text{otherwise}
753 23 adas
		\end{cases}$.
754 23 adas
	\end{enumerate}
755 23 adas
756 23 adas
	There are the following closure properties.
757 23 adas
	\begin{enumerate}
758 23 adas
	\setcounter{enumi}{5}
759 23 adas
	\item Predicative recursion on notation. If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
760 23 adas
	\[
761 23 adas
	\begin{array}{rcl}
762 23 adas
	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
763 23 adas
	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
764 23 adas
	\end{array}
765 23 adas
	\]
766 23 adas
	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
767 23 adas
	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
768 23 adas
	\[
769 23 adas
	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
770 23 adas
	\]
771 23 adas
	so long as the expression is well-formed.
772 23 adas
	\end{enumerate}
773 23 adas
	\end{definition}
774 23 adas
775 23 adas
776 23 adas
777 2 adas
\subsection{Convergence in arithmetic}
778 2 adas
\begin{theorem}
779 2 adas
	[Convergence]
780 20 pbaillot
	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 2 adas
\end{theorem}
782 2 adas
\begin{proof}
783 2 adas
	We show by induction on the structure of a BC-program for $f(\vec x ; \vec y)$ that:
784 2 adas
	\begin{equation}
785 2 adas
	\Phi(f) , \cax{\Sigma^N_1}{\pind} \proves \ \forall \vec{x}^{!N} . \forall \vec{y}^N . N(f(\vec x ; \vec y))
786 2 adas
	\end{equation}
787 2 adas
	We give some key cases in what follows.
788 2 adas
789 2 adas
	Suppose $f$ is defined by PRN by:
790 2 adas
	\[
791 2 adas
	\begin{array}{rcl}
792 2 adas
	f(0,\vec x ; \vec y) & = & g(\vec x ; \vec y) \\
793 2 adas
	f(\succ_i x , \vec x ; \vec y) & = & h_i (x, \vec x ; \vec y , f(x , \vec x ; \vec y))
794 2 adas
	\end{array}
795 2 adas
	\]
796 2 adas
	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 2 adas
	\begin{equation}
798 2 adas
	\forall x^{!N} . ( N(\vec y) \limp N(f(x , \vec x ; \vec y)  )
799 2 adas
	\end{equation}
800 2 adas
	by $\cax{\Sigma^N_1}{\pind}$ on $x$.
801 2 adas
802 2 adas
	In the base case we have the following proof:
803 2 adas
	\[
804 2 adas
	\vlderivation{
805 2 adas
		\vliin{}{}{N(\vec y) \limp N(f(0, \vec x ; \vec y))}{
806 2 adas
			\vltr{IH}{N(\vec y) \limp N(g(\vec x ; \vec y))}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
807 2 adas
		}{
808 2 adas
		\vlin{}{}{N(g (\vec x ; \vec y) ) \limp N(f(0, \vec x ; \vec y)) }{
809 2 adas
			\vlin{}{}{g(\vec x ; \vec y) = f(0 , \vec x ; \vec y)}{\vlhy{}}
810 2 adas
		}
811 2 adas
	}
812 2 adas
}
813 2 adas
\]
814 2 adas
815 2 adas
For the inductive step, we need to show that,
816 2 adas
\[
817 2 adas
\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 2 adas
\]
819 2 adas
so let us suppose that $N(x)$ and we give the following proof:
820 2 adas
\[
821 2 adas
\vlderivation{
822 2 adas
	\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 2 adas
		\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 2 adas
			\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 2 adas
				\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 2 adas
			}{
827 2 adas
			\vlhy{2}
828 2 adas
		}
829 2 adas
	}{
830 2 adas
	\vlhy{3}
831 2 adas
}
832 2 adas
}
833 2 adas
}
834 2 adas
\]
835 2 adas
TOFINISH
836 2 adas
\end{proof}
837 2 adas
838 2 adas
\section{Witness function method}
839 2 adas
840 12 adas
Key features/differences from realisability:
841 12 adas
\begin{itemize}
842 12 adas
\item De Morgan normal form: reduces type level to $0$, complementary to double-negation translation that \emph{increases} type level.
843 12 adas
\item Free-cut elimination: allows us to handles formulae of fixed logical complexity throughout the proof.
844 12 adas
\item Respects logical properties of formulae, e.g.\ quantifier complexity, exponential complexity.
845 12 adas
\end{itemize}
846 2 adas
847 12 adas
\todo{say some more here}
848 12 adas
849 2 adas
\newcommand{\type}{\mathtt{t}}
850 2 adas
\newcommand{\norm}{\nu}
851 2 adas
\newcommand{\safe}{\sigma}
852 2 adas
853 25 adas
\subsection{Witness predicate}
854 2 adas
855 2 adas
\begin{definition}
856 20 pbaillot
	[Types]
857 25 adas
	To each formula we associate a sorted tuple of arguments, intended to range over $\Nat$, as follows:
858 2 adas
	\[
859 2 adas
	\begin{array}{rcll}
860 25 adas
	\type (\nat (t)) & := & (; x^{\nat (t)}) & \\
861 25 adas
	\type(s = t) & := & ( ; x^{s=t}) & \\
862 25 adas
	\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 25 adas
		\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 25 adas
	\type (! A) & : = & (\vec u , \vec x ;) & \text{if $\type (A) = (\vec u ; \vec x)$.} \\
865 26 adas
	\type (\exists x^N . A) & := & (\vec u ; \vec x , y) & \text{if $\type(A) = (\vec u ; \vec x)$.} \\
866 4 adas
%	\type (\forall x^N . A) & := & \Nat \to \type(A)
867 2 adas
	\end{array}
868 2 adas
	\]
869 2 adas
	\end{definition}
870 2 adas
871 25 adas
872 25 adas
\begin{remark}
873 25 adas
	[Distribution of $!$]
874 25 adas
	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 25 adas
	\end{remark}
876 2 adas
877 2 adas
878 2 adas
879 4 adas
880 2 adas
	\newcommand{\witness}[2]{\mathit{Witness}^{#1}_{#2}}
881 2 adas
	\begin{definition}
882 2 adas
		[Witness predicate]
883 26 adas
		We define the following `witness' predicate for $\Sigma^\nat_1$-formulae $A$ with free variables amongst $\vec a$:
884 2 adas
		\[
885 2 adas
		\begin{array}{rcll}
886 26 adas
		\witness{\vec a}{A} (w, \vec b) & := & w = t(\vec b) & \text{if $A(\vec a)$ is $\nat (t(\vec a))$.} \\
887 26 adas
			\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 26 adas
			\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 26 adas
%			\text{for $\star \in \{ \land, \lor, \laand , \laor\}$.}
890 26 adas
			\\
891 26 adas
				\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 26 adas
				%			\text{for $\star \in \{ \land, \lor, \laand , \laor\}$.}
893 26 adas
				\\
894 27 adas
		\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 2 adas
		\end{array}
896 2 adas
		\]
897 26 adas
		where $|\vec w^1| = |\type (A)|$ and $|\vec w^2| = |\type (B)| $.
898 2 adas
	\end{definition}
899 26 adas
%	\todo{problem: what about complexity of checking equality? }
900 2 adas
901 26 adas
\todo{Reformulate above later if necessary.}
902 2 adas
903 26 adas
%	\todo{What about $\nat (t)$? What does it mean? Replace with true?}
904 2 adas
905 26 adas
%	\todo{either use the witness predicate above, or use realizability predicate at meta-level and a model theory, like BH.}
906 2 adas
907 26 adas
%	\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 26 adas
909 26 adas
	\anupam{to consider/remark: formally, is witness predicate checked in model or some logical theory?}
910 26 adas
911 2 adas
	\subsection{The translation}
912 2 adas
913 2 adas
\begin{definition}
914 2 adas
	[Translation]
915 23 adas
	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 2 adas
	\[
917 27 adas
	\witness{\vec a}{\bigotimes \Gamma} (\vec w , \vec b) \implies \witness{\vec a}{\bigparr \Delta } (\vec f(\vec w , \vec b), \vec b)
918 2 adas
	\]
919 2 adas
920 23 adas
	\anupam{to consider: do we need parameters $\vec a$ in argument of $f$? Or does $\nat$ predicate take care of this?}
921 23 adas
922 23 adas
%	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 23 adas
924 2 adas
	We often suppress the parameters $\vec a$ when it is not important.
925 2 adas
926 2 adas
	\anupam{Is this implication provable in Bellantoni's version of PV based on BC?}
927 2 adas
928 26 adas
%	\anupam{for moment try ignore decoration on right? what about negation?}
929 2 adas
930 20 pbaillot
931 2 adas
932 23 adas
	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 23 adas
934 23 adas
	Suppose $\pi$ ends with a $\rigrul{\land}$ step:
935 2 adas
	\[
936 2 adas
	\vlderivation{
937 2 adas
		\vliin{\land}{}{ \Gamma, \Sigma \seqar \Delta, \Pi, A\land B }{
938 2 adas
			\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
939 2 adas
			}{
940 2 adas
			\vltr{\pi_2}{ \Sigma \seqar \Pi, B }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
941 2 adas
			}
942 2 adas
		}
943 2 adas
	\]
944 23 adas
	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 23 adas
%	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 23 adas
	We simply construct $\vec f^\pi$ by rearranging these tuples of functions:
947 2 adas
	\[
948 23 adas
	\vec f^\pi (\vec u , \vec v ; \vec x , \vec y)
949 23 adas
	\quad := \quad
950 23 adas
	\left(
951 23 adas
	\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 23 adas
	\right)
953 2 adas
	\]
954 2 adas
955 23 adas
	We will continue with a similar notational convention as above in the remainder of this argument.
956 2 adas
957 23 adas
%	\anupam{bad notation since need to include free variables of sequent too. (also of theory.) Reconsider.}
958 23 adas
959 23 adas
	The case when $\pi$ ends with a $\lefrul{\lor}$ step is analogous to the $\rigrul{\land}$ case above.
960 23 adas
961 23 adas
	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 23 adas
963 23 adas
	Suppose $\pi$ ends with a $\lefrul{\cntr}$ step,
964 2 adas
	\[
965 2 adas
	\vlderivation{
966 2 adas
		\vlin{\lefrul{\cntr}}{}{ !A , \Gamma \seqar \Delta }{
967 2 adas
			\vltr{\pi'}{  !A, !A , \Gamma \seqar \Delta}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
968 2 adas
			}
969 2 adas
		}
970 2 adas
	\]
971 23 adas
	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 2 adas
	\[
973 23 adas
	\vec f^\pi (\vec u , \vec v ; \vec x)
974 23 adas
	\quad := \quad
975 23 adas
	\vec f (\vec u, \vec u , \vec v ; \vec x)
976 2 adas
	\]
977 23 adas
	(Notice that this is obtainable in BC by a trivial instance of safe composition.)
978 2 adas
979 2 adas
980 23 adas
%	cntr right
981 23 adas
%	\[
982 23 adas
%	\vlderivation{
983 23 adas
%	\vlin{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{
984 23 adas
%	\vltr{\pi'}{  \Gamma \seqar \Delta, ?A, ?A}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
985 23 adas
%	}
986 23 adas
%	}
987 23 adas
%	\]
988 23 adas
%	(need test function against witness predicate?)
989 23 adas
%
990 23 adas
%	\anupam{problem: how to test even equality of two terms? Maybe treat $?$ as $!$ on left?}
991 23 adas
%
992 23 adas
%	\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 23 adas
%
994 23 adas
%	\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 23 adas
%
996 23 adas
%	\anupam{this is actually the main point.}
997 23 adas
998 23 adas
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 23 adas
1000 23 adas
\anupam{This is important, so expand on this here or in a remark before/after.}
1001 2 adas
1002 2 adas
1003 23 adas
%	\[
1004 23 adas
%	\vlderivation{
1005 23 adas
%	\vliin{\rigrul{\laand}}{}{\Gamma \seqar \Delta, A \laand B}{
1006 23 adas
%	\vltr{\pi_1}{  \Gamma \seqar \Delta, A}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1007 23 adas
%	}{
1008 23 adas
%	\vltr{\pi_2}{  \Gamma \seqar \Delta, B}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1009 23 adas
%	}
1010 23 adas
%	}
1011 23 adas
%	\]
1012 23 adas
%
1013 23 adas
%	Suppose we have $\vec f^i (\vec x , \vec a ; \vec y , \vec b)$ from $\pi_i$.
1014 23 adas
%
1015 23 adas
%	\anupam{problem: does this require many tests, just like for contraction? Can we isolate a different complexity class? e.g.\ PH or Grzegorzyck?}
1016 23 adas
%	\anupam{skip this case and consider later.}
1017 23 adas
1018 23 adas
\anupam{commented stuff on additives. To remark later perhaps.}
1019 23 adas
1020 27 adas
1021 27 adas
1022 27 adas
Suppose $\pi$ ends with a $\rigrul{\exists}$ step,
1023 2 adas
\[
1024 2 adas
\vlderivation{
1025 27 adas
	\vlin{\rigrul{\exists}}{}{ \Gamma, \nat(t) \seqar \Delta , \exists x^\nat . A(x) }{
1026 27 adas
		\vltr{\pi'}{ \Gamma \seqar \Delta , A(t) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1027 27 adas
	}
1028 27 adas
}
1029 27 adas
\]
1030 27 adas
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 27 adas
\[
1032 27 adas
\vec f^\pi (\vec u ; \vec x , y)
1033 27 adas
\quad := \quad
1034 27 adas
\left( \vec f^\Delta (\vec u ; \vec x) , \id (;y), \vec{ f}^{A(t)} (\vec u; \vec x)  \right)
1035 27 adas
\]
1036 27 adas
(The identity function on $y$ is defined from successor, predecessor and safe composition).
1037 27 adas
1038 27 adas
1039 27 adas
%Suppose we have functions $\vec f^X (\vec x ; \vec y)$ from $\pi'$ for $X = \Delta$ or $ X=A$.
1040 27 adas
%\[
1041 27 adas
%\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 27 adas
%\]
1043 27 adas
1044 27 adas
1045 27 adas
Suppose $\pi$ ends with a $\lefrul{\exists}$ step:
1046 27 adas
\[
1047 27 adas
\vlderivation{
1048 27 adas
	\vlin{\lefrul{\exists}}{}{ \Gamma, \exists x^N . A(x) \seqar \Delta }{
1049 27 adas
		\vltr{\pi'(a)}{ \Gamma , A(a),  N(a) \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1050 27 adas
	}
1051 27 adas
}
1052 27 adas
\]
1053 27 adas
%
1054 27 adas
%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 27 adas
%\[
1056 27 adas
%\vec f ( \vec u , \vec v ;  )
1057 27 adas
%\]
1058 27 adas
1059 27 adas
\anupam{should just be same? Consider variable naming, just in case.}
1060 28 adas
\anupam{This is probably where the consideration for free variables is.}
1061 27 adas
1062 27 adas
%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 27 adas
%\[
1064 27 adas
%\vec f ( \vec v , \vec w ; \vec x , y , \vec z )
1065 27 adas
%\]
1066 27 adas
1067 27 adas
1068 28 adas
Suppose $\pi$ ends with a $\cut$ step:
1069 27 adas
\[
1070 27 adas
\vlderivation{
1071 2 adas
\vliin{\cut}{}{\Gamma , \Sigma \seqar \Delta , \Pi}{
1072 2 adas
\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1073 2 adas
}{
1074 2 adas
\vltr{\pi_2}{\Sigma , A \seqar \Pi}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1075 2 adas
}
1076 2 adas
}
1077 2 adas
	\]
1078 2 adas
1079 28 adas
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 2 adas
1081 2 adas
\[
1082 28 adas
\vec f^\pi ( \vec u , \vec v ; \vec x, \vec y)
1083 2 adas
\quad := \quad
1084 28 adas
\left(
1085 28 adas
\vec g^\Delta (\vec u ; \vec x)
1086 2 adas
,
1087 28 adas
\vec h ( \vec v ; \vec y , \vec g^A ( \vec u ; \vec x ) )
1088 28 adas
\right)
1089 2 adas
\]
1090 28 adas
(Notice that all safe inputs are hereditarily safe in these expressions, so they are definable by safe composition and projection).
1091 2 adas
1092 2 adas
1093 2 adas
1094 28 adas
1095 29 adas
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 2 adas
1097 29 adas
\todo{finish this case}
1098 4 adas
1099 2 adas
1100 29 adas
1101 31 adas
Suppose $\pi$ ends with a $\lefrul{!}$ step:
1102 2 adas
\[
1103 2 adas
\vlderivation{
1104 2 adas
\vlin{!}{}{\Gamma, !A \seqar \Delta}{
1105 2 adas
\vltr{\pi'}{ \Gamma , A \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1106 2 adas
}
1107 2 adas
}
1108 2 adas
\]
1109 31 adas
\todo{finish this case, just passing a safe input to a normal input.}
1110 2 adas
1111 2 adas
1112 31 adas
Suppose $\pi$ ends with a $\rigrul{!}$ step:
1113 31 adas
1114 31 adas
\todo{finish this case, should not change function at all, but maybe there is a consideration.}
1115 31 adas
1116 31 adas
Suppose $\pi$ ends with a $\lefrul{\wk}$ step:
1117 31 adas
1118 31 adas
\todo{finish this case, just add a dummy input.}
1119 31 adas
1120 31 adas
Suppose $\pi$ ends with a $\rigrul{\wk}$ step:
1121 31 adas
1122 31 adas
\todo{finish this case, just add a dummy function.}
1123 31 adas
1124 31 adas
1125 31 adas
1126 31 adas
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 2 adas
\[
1128 2 adas
\vlderivation{
1129 3 adas
\vliin{\ind}{}{ !\Gamma , !\nat (t) ,  A(\epsilon) \seqar A(t) }{
1130 2 adas
\vltr{\pi_0}{ !\Gamma , !\nat(a) , A(a) \seqar A(\succ_0 a)}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1131 2 adas
}{
1132 2 adas
\vltr{\pi_1}{ !\Gamma , !\nat(a), A(a)\seqar A(\succ_1 a) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1133 2 adas
}
1134 2 adas
}
1135 2 adas
\]
1136 2 adas
1137 31 adas
By the inductive hypothesis we have functions:
1138 31 adas
1139 2 adas
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 2 adas
1141 2 adas
1142 2 adas
\anupam{role of $!N(a)$ versus having $a$ as a parameter to function. To consider!}
1143 2 adas
1144 2 adas
Define the function $f_k$ (for $k = 1 , \dots , |\vec u|$) by PRN:
1145 2 adas
\[
1146 2 adas
\begin{array}{rcl}
1147 2 adas
f_k(\epsilon, \vec x , y ; \vec u) & := & u_k \\
1148 2 adas
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 2 adas
\end{array}
1150 2 adas
\]
1151 2 adas
1152 2 adas
\anupam{check this, esp use of parameters, cf.\ above.}
1153 2 adas
1154 2 adas
\anupam{Is this not using a simultaneous version of PRN? Might need concatenation of words/basic coding to deal with this.}
1155 2 adas
1156 3 adas
1157 2 adas
\end{definition}
1158 2 adas
1159 3 adas
\newcommand{\concat}{\mathit{concat}}
1160 3 adas
\paragraph{Some points on concatenation \anupam{if necessary}}
1161 3 adas
We can define the concatenation operation by PRN:
1162 3 adas
\[
1163 3 adas
\begin{array}{rcl}
1164 3 adas
\concat (\epsilon ; y) & : = & x \\
1165 3 adas
\concat (\succ_i x ; y) & := & \succ_i \concat (x ; y)
1166 3 adas
\end{array}
1167 3 adas
\]
1168 2 adas
1169 3 adas
From here we can define iterated concatenation:
1170 3 adas
\[
1171 3 adas
\concat (x_1 , \dots x_n ; y) \quad := \quad \concat (x_n ; \concat (x_{n-1} ; \vldots \concat (x_1 ; y) \vldots ) )
1172 3 adas
\]
1173 3 adas
1174 3 adas
(notice all safe inputs are hereditarily to the right of $;$ so this is definable by safe composition and projection.)
1175 3 adas
1176 2 adas
\section{Further work}
1177 2 adas
1178 2 adas
Say something about minimisation and the polynomial hierarchy. Could be achieved by controlling contraction/additives, since this requires a notion of tests.
1179 2 adas
1180 2 adas
\section{Conclusions}
1181 2 adas
1182 4 adas
\appendix
1183 2 adas
1184 4 adas
\section{Some cut-elimination cases}
1185 4 adas
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 4 adas
1187 4 adas
As well as all usual rules, we have the induction rule:
1188 4 adas
\[
1189 4 adas
\vlinf{\indr}{(x \notin FV (\Gamma) )}{? \Gamma, A^\perp (0) , A(t)}{? \Gamma , A^\perp (x) , A(s x) }
1190 4 adas
\]
1191 4 adas
1192 4 adas
We give all the various cut-reduction cases in the following section but first we give a simple cut-elimination argument.
1193 4 adas
1194 4 adas
\subsection{A basic (free-)cut elimination argument}
1195 4 adas
We give an argument that easily scales to free-cut elimination, i.e.\ in the presence of non-logical rules.
1196 4 adas
1197 4 adas
\newcommand{\anarrow}[2]{\overset{#1}{\underset{#2}{\longrightarrow}}}
1198 4 adas
\newcommand{\cutredlin}{\mathit{ma}}
1199 4 adas
\newcommand{\cutredexp}{exp}
1200 4 adas
1201 4 adas
\begin{definition}
1202 4 adas
	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 4 adas
\end{definition}
1204 4 adas
1205 4 adas
\newcommand{\rk}{\mathsf{rk}}
1206 4 adas
	\renewcommand{\deg}{\mathsf{deg}}
1207 4 adas
\begin{definition}
1208 4 adas
	[Measures]
1209 4 adas
	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 4 adas
\end{definition}
1211 4 adas
1212 4 adas
\begin{proposition}
1213 4 adas
If $\pi$ is not $\anarrow{}{\cutredlin}$-normal then there is a derivation $L:\pi \anarrow{*}{\cutredlin} \pi'$ such that $\deg(\pi')< \deg(\pi)$.
1214 4 adas
\end{proposition}
1215 4 adas
\begin{proof}
1216 4 adas
	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 4 adas
1218 4 adas
	Now to the general case, we simply apply the above procedure to the subproof above a topmost cut in $\pi$.
1219 4 adas
\end{proof}
1220 4 adas
\begin{corollary}
1221 4 adas
	$\anarrow{}{\cutredlin}$ is weakly normalising.
1222 4 adas
\end{corollary}
1223 4 adas
1224 4 adas
1225 4 adas
\newcommand{\cntdown}{\mathit{cn}}
1226 4 adas
\begin{definition}
1227 4 adas
	[Lazy contraction]
1228 4 adas
	Let $\anarrow{}{\cntdown}$ comprise of the following reduction steps:
1229 4 adas
	\begin{enumerate}
1230 4 adas
		\item The commuting steps,
1231 4 adas
			\[
1232 4 adas
			\vlderivation{
1233 4 adas
				\vlin{\rho}{}{\Gamma', ?A, }{
1234 4 adas
					\vlin{\cntr}{}{\Gamma, ?A}{\vlhy{\Gamma, ? A, ? A}}
1235 4 adas
				}
1236 4 adas
			}
1237 4 adas
			\quad\to \quad
1238 4 adas
			\vlderivation{
1239 4 adas
				\vlin{\cntr}{}{\Gamma', ?A}{
1240 4 adas
					\vlin{\rho}{}{\Gamma', ?A, ?A}{\vlhy{\Gamma, ? A, ? A}}
1241 4 adas
				}
1242 4 adas
			}
1243 4 adas
			\]
1244 4 adas
			for each unary rule $\rho$.
1245 4 adas
			\item
1246 4 adas
			The key steps:
1247 4 adas
			\[
1248 4 adas
			\begin{array}{rcl}
1249 4 adas
			\vlderivation{
1250 4 adas
				\vlin{\cntr}{}{\Gamma, ?A}{
1251 4 adas
					\vlin{\wk}{}{\Gamma, ?A, ?A}{\vlhy{\Gamma, ?A}}
1252 4 adas
				}
1253 4 adas
			}
1254 4 adas
			\quad &\to & \quad
1255 4 adas
			\Gamma, ?A
1256 4 adas
%			\]
1257 4 adas
%			and
1258 4 adas
%			\[
1259 4 adas
\\
1260 4 adas
\noalign{\smallskip}
1261 4 adas
				\vlderivation{
1262 4 adas
					\vlin{\wk}{}{\Gamma, ?A, ?A}{
1263 4 adas
						\vlin{\cntr}{}{\Gamma, ?A}{\vlhy{\Gamma, ?A, ?A}}
1264 4 adas
					}
1265 4 adas
				}
1266 4 adas
				\quad &\to& \quad
1267 4 adas
				\Gamma, ?A, ?A
1268 4 adas
							\end{array}
1269 4 adas
			\].
1270 4 adas
\item The commuting steps,
1271 4 adas
\[
1272 4 adas
	\vlderivation{
1273 4 adas
		\vliin{\rho}{}{\Gamma ,?A}{
1274 4 adas
			\vlin{\cntr}{}{\Gamma_1, ?A}{\vlhy{\Gamma_1, ?A, ?A}}
1275 4 adas
		}{\vlhy{\Gamma_2}}
1276 4 adas
	}
1277 4 adas
	\quad \to \quad
1278 4 adas
	\vlderivation{
1279 4 adas
		\vlin{\cntr}{}{\Gamma, ?A}{
1280 4 adas
			\vliin{\rho}{}{\Gamma,?A, ?A}{\vlhy{\Gamma_1, ?A, ?A}}{ \vlhy{\Gamma_2} }
1281 4 adas
		}
1282 4 adas
	}
1283 4 adas
\]
1284 4 adas
%\[
1285 4 adas
%\begin{array}{rcl}
1286 4 adas
%	\vlderivation{
1287 4 adas
%		\vliin{\land}{}{\Gamma, \Delta, ?A, B\land C}{
1288 4 adas
%			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
1289 4 adas
%		}{\vlhy{\Delta, C}}
1290 4 adas
%	}
1291 4 adas
%	\quad &\to &\quad
1292 4 adas
%	\vlderivation{
1293 4 adas
%		\vlin{\cntr}{}{\Gamma, \Delta, ?A, B\land C}{
1294 4 adas
%			\vliin{\land}{}{\Gamma, \Delta, ?A, ?A, B\land C}{\vlhy{\Gamma, ?A, ?A, B}}{ \vlhy{\Delta, C} }
1295 4 adas
%		}
1296 4 adas
%	}
1297 4 adas
%%	\]
1298 4 adas
%%
1299 4 adas
%%	\[
1300 4 adas
%\\
1301 4 adas
%\noalign{\smallskip}
1302 4 adas
%	\vlderivation{
1303 4 adas
%		\vliin{\cut}{}{\Gamma, \Delta, ?A}{
1304 4 adas
%			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
1305 4 adas
%		}{\vlhy{\Delta, \lnot{B}}}
1306 4 adas
%	}
1307 4 adas
%	\quad &\to& \quad
1308 4 adas
%	\vlderivation{
1309 4 adas
%		\vlin{\cntr}{}{\Gamma, \Delta, ?A}{
1310 4 adas
%			\vliin{\cut}{}{\Gamma, \Delta, ?A, ?A}{\vlhy{\Gamma, ?A, ?A, B}}{ \vlhy{\Delta, \lnot{B}} }
1311 4 adas
%		}
1312 4 adas
%	}
1313 4 adas
%\end{array}
1314 4 adas
%\]
1315 4 adas
for each binary rule $\rho \in \{ \land, \cut \}$.
1316 4 adas
\item The commuting step:
1317 4 adas
	\[
1318 4 adas
	\vlderivation{
1319 4 adas
		\vliin{\vlan}{}{\Gamma, ?A, B\vlan C}{
1320 4 adas
			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
1321 4 adas
		}{\vlhy{\Gamma, ?A, B}}
1322 4 adas
	}
1323 4 adas
	\quad \to \quad
1324 4 adas
	\vlderivation{
1325 4 adas
		\vlin{\cntr}{}{\Gamma, ?A, B\vlan C}{
1326 4 adas
			\vliin{\vlan}{}{\Gamma, ?A, ?A, B\vlan C}{\vlhy{\Gamma, ?A, ?A, B}}{
1327 4 adas
				\vlin{\wk}{}{\Gamma, ?A, ?A, C}{\vlhy{\Gamma, ?A, C}}
1328 4 adas
			}
1329 4 adas
		}
1330 4 adas
	}
1331 4 adas
	\]
1332 4 adas
	\end{enumerate}
1333 4 adas
	For binary rules:
1334 4 adas
1335 4 adas
\end{definition}
1336 4 adas
\begin{proposition}
1337 4 adas
	$\anarrow{}{\cntdown}$ is weakly normalising
1338 4 adas
	, modulo $\cntr$-$\cntr$ redexes,
1339 4 adas
	and degree-preserving.
1340 4 adas
	If $\pi$ is $\anarrow{}{\cutredlin}$-normal and $\pi \downarrow_\cntdown \pi'$, then so is $\pi'$.
1341 4 adas
\end{proposition}
1342 4 adas
\begin{proof}
1343 4 adas
	By induction on the number of redexes in a proof. Start with bottommost redex, by induction on number of inference steps beneath it.
1344 4 adas
\end{proof}
1345 4 adas
1346 4 adas
\begin{remark}
1347 4 adas
	Only weakly normalising since $\cntr$ can commute with $\cntr$, allowing cycles.
1348 4 adas
\end{remark}
1349 4 adas
1350 4 adas
\begin{proposition}
1351 4 adas
	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 4 adas
\end{proposition}
1353 4 adas
1354 4 adas
1355 4 adas
1356 4 adas
\subsection{Base cases}
1357 4 adas
1358 4 adas
\[
1359 4 adas
\vlderivation{
1360 4 adas
\vliin{\cut}{}{ \Gamma,a }{ \vlhy{\Gamma,a} }{ \vlin{\id}{}{a,a^\bot}{ \vlhy{} } }
1361 4 adas
}
1362 4 adas
\quad\to\quad
1363 4 adas
\vlderivation{
1364 4 adas
\Gamma,a
1365 4 adas
}
1366 4 adas
\]
1367 4 adas
1368 4 adas
\[
1369 4 adas
\vlderivation{
1370 4 adas
\vliin{\cut}{}{\Gamma}{ \vlin{\bot}{}{ \Gamma,\bot }{ \vlhy{\Gamma} } }{ \vlin{1}{}{1}{ \vlhy{} } }
1371 4 adas
}
1372 4 adas
\quad\to\quad
1373 4 adas
\vlderivation{
1374 4 adas
\Gamma
1375 4 adas
}
1376 4 adas
\]
1377 4 adas
1378 4 adas
\[
1379 4 adas
\vlderivation{
1380 4 adas
\vliin{\cut}{}{ \Gamma,\Delta,\top }{ \vlin{\top}{}{ \Gamma,\top,0 }{ \vlhy{} } }{ \vlhy{\Delta , \top } }
1381 4 adas
}
1382 4 adas
\quad\to\quad
1383 4 adas
\vlinf{\top}{}{ \Gamma,\Delta,\top }{}
1384 4 adas
\]
1385 4 adas
1386 4 adas
\subsection{Commutative cases}
1387 4 adas
These are the cases when the principal formula of a step is not active for the cut-step below.
1388 4 adas
1389 4 adas
\begin{enumerate}
1390 4 adas
\item The cut-step is immediately preceded by an initial step. Note that only the case for $\top$ applies:
1391 4 adas
\[
1392 4 adas
\vlderivation{
1393 4 adas
\vliin{\cut}{}{\Gamma,\Delta,\top}{
1394 4 adas
\vlin{\top}{  }{ \Gamma,\top,A }{ \vlhy{} }
1395 4 adas
 }{ \vlhy{\Delta,A^\bot } }
1396 4 adas
}
1397 4 adas
\quad\to\quad
1398 4 adas
\vlinf{\top}{}{ \Gamma,\Delta,\top }{}
1399 4 adas
\]
1400 4 adas
%Notice that this commutation eliminates the cut entirely and preserves the height of all cuts below.
1401 4 adas
\item\label{CaseCommOneStep} A cut-step is immediately preceded by a step $\rho$ with exactly one premiss:
1402 4 adas
\[
1403 4 adas
\vlderivation{
1404 4 adas
\vliin{\cut}{}{\Gamma',\Delta}{\vlin{\rho}{}{\Gamma',A}{\vlhy{\Gamma,A}}}{\vlhy{A^\bot , \Delta}}
1405 4 adas
}
1406 4 adas
\]
1407 4 adas
We have three subcases:
1408 4 adas
\begin{enumerate}
1409 4 adas
\item\label{subcase:unary-commutation-vanilla}
1410 4 adas
%$\Delta$ consists of only $?$-ed formulae or
1411 4 adas
If $\rho \notin \{! , \indr \}$ then we can simply permute as follows:
1412 4 adas
\begin{equation}
1413 4 adas
\label{eqn:com-case-unary-simple}
1414 4 adas
\vlderivation{
1415 4 adas
\vliin{\cut}{}{\Gamma',\Delta}{\vlin{\rho}{}{\Gamma',A}{\vlhy{\Gamma,A}}}{\vlhy{A^\bot , \Delta}}
1416 4 adas
}
1417 4 adas
\quad \to \quad
1418 4 adas
\vlderivation{
1419 4 adas
\vlin{\rho}{}{\Gamma',\Delta}{
1420 4 adas
\vliin{\cut}{}{\Gamma,\Delta}{\vlhy{\Gamma,A}}{\vlhy{A^\bot , \Delta}}
1421 4 adas
}
1422 4 adas
}
1423 4 adas
\end{equation}
1424 4 adas
(If $\rho$ was $\forall$ then we might need to rename some free variables in $\Delta$.)
1425 4 adas
\item $\rho $ is a $!$-step. Therefore $\Gamma$ has the form $? \Sigma , B$ and $A$ has the form $?C$, yielding the following situation:
1426 4 adas
\[
1427 4 adas
\vlderivation{
1428 4 adas
\vliin{\cut}{}{? \Sigma, !B, \Delta }{
1429 4 adas
\vlin{!}{}{? \Sigma, !B , ?C}{\vlhy{?\Sigma , B , ?C}  }
1430 4 adas
}{
1431 4 adas
\vlin{\rho'}{}{!C^\perp , \Delta}{\vlhy{\vlvdots}}
1432 4 adas
}
1433 4 adas
}
1434 4 adas
\]
1435 4 adas
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 4 adas
\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 4 adas
% yielding the following situation:
1438 4 adas
%\[
1439 4 adas
%\vlderivation{
1440 4 adas
%	\vliin{\cut}{}{? \Sigma, B^\perp (0) , B(t), \Delta }{
1441 4 adas
%		\vlin{\indr}{}{? \Sigma, B^\perp (0) , B(t) , ?C}{\vlhy{?\Sigma , B^\perp(x) , B(s x) , ?C}  }
1442 4 adas
%	}{
1443 4 adas
%	\vlin{\rho'}{}{!C^\perp , \Delta}{\vlhy{\vlvdots}}
1444 4 adas
%}
1445 4 adas
%}
1446 4 adas
%\]
1447 4 adas
\end{enumerate}
1448 4 adas
1449 4 adas
1450 4 adas
1451 4 adas
\item A cut-step is immediately preceded by a $\vlte $-step:
1452 4 adas
\[
1453 4 adas
\vlderivation{
1454 4 adas
\vliin{\cut}{}{\Gamma,\Delta,\Sigma,A\vlte B }{
1455 4 adas
\vliin{\vlte}{}{\Gamma,\Delta,A\vlte B,C }{\vlhy{\Gamma,A,C}}{\vlhy{\Delta,B}}
1456 4 adas
}{\vlhy{ \Sigma , C^\bot  }}
1457 4 adas
}
1458 4 adas
\quad\to\quad
1459 4 adas
\vlderivation{
1460 4 adas
\vliin{\vlte}{}{\Gamma,\Delta,\Sigma,A\vlte B}{
1461 4 adas
\vliin{\cut}{}{\Gamma,\Sigma,A}{\vlhy{\Gamma,A,C}}{\vlhy{\Sigma,C^\bot}}
1462 4 adas
}{\vlhy{\Delta,B}}
1463 4 adas
}
1464 4 adas
\]
1465 4 adas
%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 4 adas
\item\label{CommCaseAmpersand} A cut-step is immediately preceded by a $\vlan$-step.
1467 4 adas
\[
1468 4 adas
\vlderivation{
1469 4 adas
\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 4 adas
}
1471 4 adas
\quad\to\quad
1472 4 adas
\vlderivation{
1473 4 adas
\vliin{\vlan}{}{\Gamma,\Delta,A\vlan B }{
1474 4 adas
\vliin{cut}{}{\Gamma,\Delta,A }{ \vlhy{\Gamma,A,C} }{ \vlhy{ \Delta,C^\bot } }
1475 4 adas
}{
1476 4 adas
\vliin{ \cut }{}{\Gamma,\Delta,B}{ \vlhy{\Gamma,B,C } }{ \vlhy{\Delta,C^\bot} }
1477 4 adas
}
1478 4 adas
}
1479 4 adas
\]
1480 4 adas
\item (No rule for cuts commuting with cuts.)
1481 4 adas
%A cut-step is immediately preceded by another cut-step:
1482 4 adas
\[
1483 4 adas
\vlderivation{
1484 4 adas
	\vliin{\cut}{}{\Gamma, \Delta, \Sigma}{
1485 4 adas
		\vliin{\cut}{}{\Gamma, \Delta, B}{\vlhy{\Gamma, A}}{\vlhy{\Delta, \lnot{A}, B}}
1486 4 adas
		}{\vlhy{\Sigma, \lnot{B}}}
1487 4 adas
	}
1488 4 adas
	\quad\to\quad
1489 4 adas
\vlderivation{
1490 4 adas
	\vliin{\cut}{}{\Gamma, \Delta, \Sigma}{\vlhy{\Gamma, A}}{
1491 4 adas
		\vliin{\cut}{}{\Delta, \Sigma, \lnot{A}}{\vlhy{\Delta, \lnot{A}, B}}{\vlhy{\Sigma, \lnot{B}}}
1492 4 adas
		}
1493 4 adas
	}
1494 4 adas
\]
1495 4 adas
\end{enumerate}
1496 4 adas
1497 4 adas
1498 4 adas
1499 4 adas
\subsection{Key cases: structural steps}
1500 4 adas
%[THIS SECTION MIGHT NOT BE NECESSARY]
1501 4 adas
We attempt to permute cuts on exponential formulae over structural steps whose principal formula is active for the cut.
1502 4 adas
1503 4 adas
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 4 adas
1505 4 adas
We have two cases.
1506 4 adas
\begin{enumerate}
1507 4 adas
\item\label{StructStepCont} The structural step preceding the cut is a weakening:
1508 4 adas
\[
1509 4 adas
\vlderivation{
1510 4 adas
\vliin{\cut}{}{?\Gamma,\Delta}{ \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} } }{ \vlin{w}{}{ ?A^\bot }{ \vlhy{\Delta	} } }
1511 4 adas
}
1512 4 adas
\quad\to\quad
1513 4 adas
\vlinf{w}{}{?\Gamma,\Delta}{ \Delta }
1514 4 adas
\]
1515 4 adas
%\item The structural step preceding the cut is a contraction:
1516 4 adas
%\[
1517 4 adas
%\vlderivation{
1518 4 adas
%\vliin{\cut}{}{ ?\Gamma,\Delta }{
1519 4 adas
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1520 4 adas
%}{ \vlin{c}{}{ ?A^\bot , \Delta }{ \vlhy{ ?A^\bot , ?A^\bot ,  \Delta} } }
1521 4 adas
%}
1522 4 adas
%\quad\to\quad
1523 4 adas
%\vlderivation{
1524 4 adas
%\vliq{c}{}{?\Gamma, \Delta}{
1525 4 adas
%\vliin{\cut}{}{?\Gamma, ?\Gamma,\Delta }{
1526 4 adas
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1527 4 adas
%}{
1528 4 adas
%\vliin{\cut}{}{?\Gamma,?A^\bot , \Delta }{
1529 4 adas
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1530 4 adas
%}{ \vlhy{?A^\bot , ?A^\bot , \Delta } }
1531 4 adas
%}
1532 4 adas
%}
1533 4 adas
%}
1534 4 adas
%\]
1535 4 adas
%OR use a multicut:
1536 4 adas
%\[
1537 4 adas
%\vlderivation{
1538 4 adas
%\vliin{\cut}{}{ ?\Gamma,\Delta }{
1539 4 adas
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1540 4 adas
%}{ \vlin{c}{}{ ?A^\bot , \Delta }{ \vlhy{ ?A^\bot , ?A^\bot ,  \Delta} } }
1541 4 adas
%}
1542 4 adas
%\quad\to\quad
1543 4 adas
%\vlderivation{
1544 4 adas
%\vliin{\multicut}{}{?\Gamma,?A^\bot , \Delta }{
1545 4 adas
% \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1546 4 adas
%}{ \vlhy{?A^\bot , ?A^\bot , \Delta } }
1547 4 adas
%}
1548 4 adas
%\]
1549 4 adas
\item The structural step preceding a cut is a contraction:
1550 4 adas
\[
1551 4 adas
\vlderivation{
1552 4 adas
	\vliin{\cut}{}{?\Gamma, \Sigma }{ \vlhy{?\Gamma,!A^\bot} }{
1553 4 adas
		\vlin{\cntr}{}{ ?A,\Sigma }{ \vlhy{ ?A,?A,\Sigma } }
1554 4 adas
	}
1555 4 adas
}
1556 4 adas
\quad\to\quad
1557 4 adas
\vlderivation{
1558 4 adas
	\vliq{\cntr}{}{ ?\Gamma,\Sigma }{
1559 4 adas
		\vliin{\cut}{}{ ?\Gamma,?\Gamma,\Sigma }{ \vlhy{?\Gamma,!A^\bot } }{
1560 4 adas
			\vliin{\cut}{}{ ?A,?\Gamma,\Sigma }{ \vlhy{?\Gamma,!A^\bot} }{ \vlhy{ ?A,?A,?\Delta,\Sigma } }
1561 4 adas
		}
1562 4 adas
	}
1563 4 adas
}
1564 4 adas
\]
1565 4 adas
%\item The structural step preceding a cut is a parallel contraction:
1566 4 adas
%\[
1567 4 adas
%\vlderivation{
1568 4 adas
%\vliin{\cut}{}{?\Gamma,?\Delta, \Sigma }{ \vlhy{?\Gamma,!A^\bot} }{
1569 4 adas
%\vlin{}{}{ ?A,?\Delta,\Sigma }{ \vlhy{ ?A,?A,?\Delta,?\Delta,\Sigma } }
1570 4 adas
%}
1571 4 adas
%}
1572 4 adas
%\quad\to\quad
1573 4 adas
%\vlderivation{
1574 4 adas
%\vlin{}{}{ ?\Gamma,?\Delta,\Sigma }{
1575 4 adas
%\vliin{\cut}{}{ ?\Gamma,?\Gamma,?\Delta,?\Delta,\Sigma }{ \vlhy{?\Gamma,!A^\bot } }{
1576 4 adas
%\vliin{\cut}{}{ ?A,?\Gamma,?\Delta,?\Delta,\Sigma }{ \vlhy{?\Gamma,!A^\bot} }{ \vlhy{ ?A,?A,?\Delta,?\Delta,\Sigma } }
1577 4 adas
%}
1578 4 adas
%}
1579 4 adas
%}
1580 4 adas
%\]
1581 4 adas
\end{enumerate}
1582 4 adas
1583 4 adas
\subsection{Key cases: logical steps}
1584 4 adas
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 4 adas
\begin{enumerate}
1586 4 adas
\item The cut-formula is multiplicative:
1587 4 adas
\[
1588 4 adas
\vlderivation{
1589 4 adas
\vliin{\cut}{}{ \Gamma,\Delta,\Sigma }{
1590 4 adas
\vliin{\vlte}{}{ \Gamma,\Delta,A\vlte B }{ \vlhy{\Gamma,A} }{ \vlhy{\Delta,B} }
1591 4 adas
}{ \vlin{\vlpa}{}{ \Sigma, A^\bot \vlpa B^\bot }{ \vlhy{\Sigma , A^\bot , B^\bot} } }
1592 4 adas
}
1593 4 adas
\quad\to\quad
1594 4 adas
\vlderivation{
1595 4 adas
\vliin{\cut}{}{ \Gamma,\Delta,\Sigma }{ \vlhy{\Gamma,A} }{
1596 4 adas
\vliin{\cut}{}{ \Delta,\Sigma,A^\bot }{ \vlhy{\Delta,B} }{ \vlhy{\Sigma , A^\bot,B^\bot } }
1597 4 adas
}
1598 4 adas
}
1599 4 adas
\]
1600 4 adas
\item The cut-formula is additive,
1601 4 adas
\[
1602 4 adas
\vlderivation{
1603 4 adas
\vliin{\cut}{}{ \Gamma,\Delta }{
1604 4 adas
\vliin{\vlan}{}{ \Gamma,A\vlan B }{ \vlhy{\Gamma,A} }{ \vlhy{\Gamma,B} }
1605 4 adas
 }{ \vlin{\vlor}{}{ \Delta,A^\bot\vlor B^\bot }{ \vlhy{\Delta, A^\bot } } }
1606 4 adas
}
1607 4 adas
\quad\to\quad
1608 4 adas
\vliinf{\cut}{}{ \Gamma,\Delta }{ \Gamma,A }{ \Delta,A^\bot }
1609 4 adas
\]
1610 4 adas
where the case for the other $\vlor$-rule is symmetric.
1611 4 adas
\item The cut-formula is exponential.
1612 4 adas
\[
1613 4 adas
\vlderivation{
1614 4 adas
\vliin{\cut}{}{ ?\Gamma,\Delta }{
1615 4 adas
 \vlin{!}{}{ ?\Gamma,!A }{ \vlhy{?\Gamma , A} }
1616 4 adas
}{
1617 4 adas
\vlin{?}{}{ \Delta,?A^\bot }{ \vlhy{\Delta, A^\bot } }
1618 4 adas
}
1619 4 adas
}
1620 4 adas
\quad\to\quad
1621 4 adas
\vliinf{\cut}{}{ ?\Gamma,\Delta }{ ?\Gamma,A }{ \Delta,A^\bot }
1622 4 adas
\]
1623 4 adas
\item The cut-formula is quantified.
1624 4 adas
\[
1625 4 adas
\vlderivation{
1626 4 adas
	\vliin{\cut}{}{\Gamma, \Delta}{
1627 4 adas
		\vlin{\forall}{}{\Gamma, \forall x. A(x)}{\vltr{\pi(a)}{\Gamma, A(a)}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}}
1628 4 adas
		}{
1629 4 adas
		\vlin{\exists}{}{\Delta, \exists x . \lnot{A}(x)}{\vlhy{\Delta, \lnot{A}(t)}}
1630 4 adas
		}
1631 4 adas
	}
1632 4 adas
	\quad \to \quad
1633 4 adas
	\vlderivation{
1634 4 adas
		\vliin{\cut}{}{\Gamma, \Delta}{
1635 4 adas
			\vltr{\pi(t)}{\Gamma, A(t)}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
1636 4 adas
			}{\vlhy{\Delta, \lnot{A}(t)}}
1637 4 adas
		}
1638 4 adas
\]
1639 4 adas
\end{enumerate}
1640 4 adas
1641 4 adas
1642 2 adas
\end{document}