Révision 33

CSL16/bc-convergence.tex (revision 33)
1

  
2
\section{Convergence of Bellantoni-Cook programs}
3

  
4
\subsection{Bellantoni-Cook programs}
5
We first recall the notion of safe recursion on notation from BC. TODO
6

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

  
9
\todo{reformulate below for binary words, not natural numbers?}
10

  
11
\begin{definition}
12
	[BC functions]
13
	BC is the set of functions generated by the following initial functions and closure schemes.
14
	
15
%	\paragraph{Initial functions}
16
	There are the following initial functions:
17
	\begin{enumerate}
18
		\item The constant function $0$ which takes no arguments and outputs $0 \in \Nat$.
19
		\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$.
20
		\item The successor functions $\succ_i ( ; x) := xi$ for $i = 0,1$.
21
		\item The predecessor function $\pred (; x) := \begin{cases}
22
		0 & x = 0 \\
23
		x' & x = x'i
24
		\end{cases}$.
25
		\item The conditional function $\cond (;x,y,z) := \begin{cases}
26
		y & x \mod{2} = 0 \\
27
		z & \text{otherwise}
28
		\end{cases}$.
29
	\end{enumerate}
30
	
31
	There are the following closure properties.
32
	\begin{enumerate}
33
	\setcounter{enumi}{5}
34
	\item Predicative recursion on notation. If $g, h_0, h_1 $ are in BC then so is the function $f$ defined by,
35
	\[
36
	\begin{array}{rcl}
37
	f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) \\
38
	f (\succ_i u , \vec v ; \vec x ) & := & h_i ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) )
39
	\end{array}
40
	\]
41
	for $i = 0,1$, so long as the expressions are well-formed (i.e.\ in number/sort of arguments).
42
	\item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by,
43
	\[
44
	f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) )
45
	\]
46
	so long as the expression is well-formed.
47
	\end{enumerate}
48
	\end{definition}
49

  
50

  
51

  
52
\subsection{Convergence in arithmetic}
53
\begin{theorem}
54
	[Convergence]
55
	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))$.
56
\end{theorem}
57
\begin{proof}
58
	We show by induction on the structure of a BC-program for $f(\vec x ; \vec y)$ that:
59
	\begin{equation}
60
	\Phi(f) , \cax{\Sigma^N_1}{\pind} \proves \ \forall \vec{x}^{!N} . \forall \vec{y}^N . N(f(\vec x ; \vec y))
61
	\end{equation}
62
	We give some key cases in what follows.
63
	
64
	Suppose $f$ is defined by PRN by:
65
	\[
66
	\begin{array}{rcl}
67
	f(0,\vec x ; \vec y) & = & g(\vec x ; \vec y) \\
68
	f(\succ_i x , \vec x ; \vec y) & = & h_i (x, \vec x ; \vec y , f(x , \vec x ; \vec y))
69
	\end{array}
70
	\]
71
	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,
72
	\begin{equation}
73
	\forall x^{!N} . ( N(\vec y) \limp N(f(x , \vec x ; \vec y)  )
74
	\end{equation}
75
	by $\cax{\Sigma^N_1}{\pind}$ on $x$.
76
	
77
	In the base case we have the following proof:
78
	\[
79
	\vlderivation{
80
		\vliin{}{}{N(\vec y) \limp N(f(0, \vec x ; \vec y))}{
81
			\vltr{IH}{N(\vec y) \limp N(g(\vec x ; \vec y))}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
82
		}{
83
		\vlin{}{}{N(g (\vec x ; \vec y) ) \limp N(f(0, \vec x ; \vec y)) }{
84
			\vlin{}{}{g(\vec x ; \vec y) = f(0 , \vec x ; \vec y)}{\vlhy{}}
85
		}
86
	}
87
}
88
\]
89

  
90
For the inductive step, we need to show that,
91
\[
92
\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) )   )
93
\]
94
so let us suppose that $N(x)$ and we give the following proof:
95
\[
96
\vlderivation{
97
	\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)  ) }{
98
		\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)  ) }{
99
			\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) ) ) }{
100
				\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 }}
101
			}{
102
			\vlhy{2}
103
		}
104
	}{
105
	\vlhy{3}
106
}
107
}
108
}
109
\]
110
TOFINISH
111
\end{proof}
CSL16/introduction.tex (revision 33)
1
\section{Introduction}
2

  
3
\todo{words or integers?}
CSL16/macros.tex (revision 33)
1

  
2

  
3
%\newtheorem{theorem}{Theorem}
4
%\newtheorem{maintheorem}[theorem]{Main Theorem}
5
%\newtheorem{observation}[theorem]{Observation}
6
%\newtheorem{corollary}[theorem]{Corollary}
7
%\newtheorem{lemma}[theorem]{Lemma}
8
\newtheorem{proposition}[theorem]{Proposition}
9
%\newtheorem{conjecture}[theorem]{Conjecture}
10
%
11
%\theoremstyle{definition}
12
%\newtheorem{definition}[theorem]{Definition}
13
%\newtheorem{example}[theorem]{Example}
14
%\newtheorem{notation}[theorem]{Notation}
15
%\newtheorem{convention}[theorem]{Convention}
16
%\newtheorem{remark}[theorem]{Remark}
17
%\newtheorem{discussion}[theorem]{Discussion}
18

  
19
\newcommand{\todo}[1]{{\color{red}{\textbf{Todo:} #1}}}
20
\newcommand{\anupam}[1]{{\color{orange}{\textbf{Anupam:} #1}}}
21
\newcommand{\patrick}[1]{{\color{blue}{\textbf{Patrick:} #1}}}
22

  
23
\newcommand{\defined}{:=}
24
	
25
	\newcommand{\LL}{\it{LL}}
26
	\vllineartrue
27
	
28
	
29
	\newcommand{\FV}{\mathit{FV}}
30
	
31
	
32
	%terms
33
	\newcommand{\pred}{p}
34
	\newcommand{\cond}{C}
35
	\renewcommand{\succ}{s}
36
	\renewcommand{\epsilon}{\varepsilon}
37
	
38
	% linear connectives
39
	
40
	\newcommand{\limp}{\multimap}
41
	\renewcommand{\land}{\otimes}
42
	\newcommand{\laand}{\&}
43
	\newcommand{\laor}{\oplus}
44
	\renewcommand{\lor}{\vlpa}
45
	\renewcommand{\lnot}[1]{{#1^{\perp}}}
46
	\newcommand{\lnotnot}[1]{#1^{\perp \perp}}
47
	
48
	% classical connectives
49
	
50
	\newcommand{\cimp}{\supset}
51
	\newcommand{\cand}{\wedge}
52
	\newcommand{\cor}{\vee}
53
	\newcommand{\cnot}{\neg}
54
	
55
	
56
	\newcommand{\Ax}{\mathit{(Ax)}}
57
	\newcommand{\Rl}{\mathit{(Rl)}}
58
	
59
	\newcommand{\MELL}{\mathit{MELL}}
60
	\newcommand{\MEAL}{\mathit{MELLW}}
61
	\newcommand{\MELLW}{\mathit{MELL(W)}}
62
	
63
	\newcommand{\Aonetwo}{\mathcal{A}^1_2}
64
	\newcommand{\logic}{\mathit{L}_{\mathcal A} }
65
	
66
	% predicates
67
	\newcommand{\nat}{N}
68
	
69
	\newcommand{\Nat}{\mathbb{N}}
70
	
71
	%axioms
72
	\newcommand{\wk}{\mathit{wk}}
73
	\newcommand{\impl}{\cimp\text{-}\mathit{l}}
74
	\newcommand{\impcomm}{\mathit{com}}
75
	\newcommand{\conint}{\cand\text{-}\mathit{i}}
76
	\newcommand{\conel}{\cand\text{-}\mathit{e}}
77
	\newcommand{\negclass}{\cnot}
78
	
79
	%rules
80
	\renewcommand{\mp}{\mathit{mp}}
81
	\newcommand{\gen}{\mathit{gen}}
82
	\newcommand{\inst}{\mathit{ins}}
83
	\newcommand{\id}{\it{id}}
84
	\newcommand{\cut}{\it{cut}}
85
	\newcommand{\multicut}{\it{mcut}}
86
	\newcommand{\indr}{\mathit{IND}}
87
	\newcommand{\nec}{\mathit{nec}}
88
	\newcommand{\tax}{\mathit{T}}
89
	\newcommand{\four}{\mathit{4}}
90
	\newcommand{\kax}{\mathit{K}}
91
	\newcommand{\cntr}{\mathit{cntr}}
92
	
93
	\newcommand{\lefrul}[1]{#1\text{-}\mathit{l}}
94
	\newcommand{\rigrul}[1]{#1\text{-}\mathit{r}}
95
	
96
	%consequence relations
97
	\newcommand{\admits}{\vDash}
98
	\newcommand{\seqar}{\vdash}
99
	\newcommand{\proves}{\vdash_e}
100
	
101
	%induction
102
	\newcommand{\ind}{\mathit{IND}}
103
	\newcommand{\pind}{\mathit{PIND}}
104
	\newcommand{\cax}[2]{#1\text{-}#2}
105

  
106
          % sizes
107
          \newcommand{\height}[1]{\mathit{h}(#1)}
CSL16/main.tex (revision 33)
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
\input{macros}
27

  
28
\begin{document}
29

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

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

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

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

  
49
%Editor-only macros:: begin (do not touch as author)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
50
\EventEditors{John Q. Open and Joan R. Acces}
51
\EventNoEds{2}
52
\EventLongTitle{42nd Conference on Very Important Topics (CVIT 2016)}
53
\EventShortTitle{CVIT 2016}
54
\EventAcronym{CVIT}
55
\EventYear{2016}
56
\EventDate{December 24--27, 2016}
57
\EventLocation{Little Whinging, United Kingdom}
58
\EventLogo{}
59
\SeriesVolume{42}
60
\ArticleNo{23}
61
% Editor-only macros::end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
62

  
63
\maketitle
64

  
65
\begin{abstract}
66
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.
67
 \end{abstract}
68

  
69

  
70

  
71
\input{introduction}
72

  
73
\input{preliminaries}
74

  
75
\input{free-cut-elim}
76

  
77
\input{arithmetic}
78

  
79
\input{bc-convergence}
80

  
81
\input{wfm}
82

  
83
\input{further-work}
84

  
85
\input{conclusions}
86

  
87
\input{appendix}
88

  
89
\end{document}
CSL16/arithmetic.tex (revision 33)
1
\section{Some variants of arithmetic in linear logic}
2

  
3
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:
4
\[
5
!(A\land B) \equiv (!A \land !B)
6
\]
7
(The right-left direction is already valid in usual linear logic, but the left-right direction requires weakening).
8

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

  
11

  
12
\subsection{Based on Bellantoni-Hoffmann, Leivant, etc.}
13

  
14
\newcommand{\natcntr}{\nat\mathit{cntr}}
15
\newcommand{\geneps}{\nat_{\epsilon}}
16
\newcommand{\genzer}{\nat_{0}}
17
\newcommand{\genone}{\nat_{1}}
18

  
19

  
20
\newcommand{\sepeps}{\epsilon}
21
\newcommand{\sepzer}{\succ_{0}}
22
\newcommand{\sepone}{\succ_{1}}
23

  
24
\newcommand{\inj}{\mathit{inj}}
25
\newcommand{\surj}{\mathit{surj}}
26

  
27
\begin{definition}
28
[Arithmetic]
29
We have the following axioms:
30
\[
31
\begin{array}{rl}
32
\wk & (A \land B )\limp A \\
33
\natcntr & \forall x^N . (N(x) \land N(x)) \\
34
\geneps & \nat(\epsilon) \\
35
\genzer & \forall x^N . N(\succ_0 x) \\
36
\genone & \forall x^N . N(\succ_1 x) \\
37
\sepeps & \forall x^N . (\epsilon \neq \succ_0 x \land \epsilon \neq \succ_1 x) \\
38
\sepzer & \forall x^N , y^N. ( \succ_0 x = \succ_0 y \limp x=y ) \\
39
\sepone & \forall x^N , y^N. ( \succ_1 x = \succ_1 y \limp x=y ) \\
40
\inj & \forall x^N . \succ_0 x \neq \succ_1 x \\
41
\surj & \forall x^N . (x = \epsilon \lor \exists y^N . x = \succ_0 y \lor \exists y^N . x = \succ_1 y ) \\
42
\noalign{\bigskip}
43
\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)
44
\end{array}
45
\]
46

  
47
Induction rule should be the following, to take account of relativised quantifiers?
48
\[
49
\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  }
50
\]
51

  
52
\todo{in existential above, is there a prenexing problem?}
53

  
54
\todo{what about $\leq$? Introducing this could solve prenexing problem, e.g.\ by induction?}
55
\end{definition}
56

  
57
\subsection{$\nat$-hierarchy}
58

  
59
\begin{definition}
60

  
61
\todo{replace N with nat.}
62

  
63
	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.
64
	
65
	We define $\Sigma^N_0 = \Pi^N_0 $ as the class of formulae that are free of quantifiers. For $i\geq 0$ we define:
66
	\begin{itemize}
67
		\item $\Sigma^N_{i+1}$ is the class of formulae $\exists x^N . A$ where $A \in \Pi^N_i$.
68
		\item $\Pi^N_{i+1}$ is the class of formulae $\forall x^N . A$ where $A \in \Sigma^N_i$.
69
		\item ($\Delta^N_i$ is the class $\Sigma^N_i \cap \Pi^N_i$.)
70
	\end{itemize}
71
\end{definition}
72

  
73
\todo{allow closure under positive Boolean operations?}
74

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

  
77
\subsection{Equivalent rule systems}
78

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

  
81
\[
82
\begin{array}{cc}
83
\vlinf{}{}{\Gamma \seqar \Delta, \forall x^N . A(x)}{\Gamma, N(a) \seqar \Delta , A(a)}
84
\quad & \quad
85
\vlinf{}{}{\Gamma, N(t),\forall x^N A(x) \seqar \Delta}{\Gamma,  A(t) \seqar \Delta}
86
\\
87
\noalign{\bigskip}
88
\vlinf{}{}{\Gamma , \exists x^N A(x) \seqar \Delta}{\Gamma, N(a), A(a) \seqar \Delta}
89
\quad &\quad 
90
\vlinf{}{}{\Gamma, N(t) \seqar \Delta , \exists x^N . A(x)}{\Gamma  \seqar \Delta, A(t)}
91
\end{array}
92
\]
93

  
94
CHECK THESE!
95

  
96
\todo{prove that free-cut elimination can be done with these rules}
97

  
98
\todo{Also include rules for contraction and weakening.}
CSL16/wfm.tex (revision 33)
1
\section{Witness function method}
2

  
3
Key features/differences from realisability:
4
\begin{itemize}
5
	\item De Morgan normal form: reduces type level to $0$, complementary to double-negation translation that \emph{increases} type level.
6
	\item Free-cut elimination: allows us to handles formulae of fixed logical complexity throughout the proof. 
7
	\item Respects logical properties of formulae, e.g.\ quantifier complexity, exponential complexity.
8
\end{itemize}
9

  
10
\todo{say some more here}
11

  
12
\todo{compare with applicative theories}
13

  
14
\anupam{in particular, need to point out that this argument is actually something in between, since usually the WFM requires programs to be defined by formulae, not equational specifications.}
15

  
16
\newcommand{\type}{\mathtt{t}}
17
\newcommand{\norm}{\nu}
18
\newcommand{\safe}{\sigma}
19

  
20
\subsection{Witness/realisability predicate}
21

  
22
\begin{definition}
23
	[Typing]
24
	To each $\Sigma^\nat_1$-formula $A$ we associate a sorted tuple of variables $\type (A)$, intended to range over $\Nat$, as follows:
25
	\[
26
	\begin{array}{rcll}
27
	\type (\nat (t)) & := & (;x^{\nat (t)} ) & \\
28
	\type(s = t) & := & ( ; x^{s = t}) & \\
29
	\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)$.} \\
30
	\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)$.} \\
31
	\type (! A) & : = & ( \vec u ,\vec x  ; ) & \text{if $\type(A) = (\vec u ; \vec x )$.} \\
32
	\type (\exists x^\nat . A) & := & (\vec u ; \vec x , y) & \text{if $\type (A) = (\vec u ; \vec x)$.}
33
	%	\type (\forall x^N . A) & := & \Nat \to \type(A)
34
	\end{array}
35
	\]
36
	%	where $\nu$ designates that the inputs are normal.
37
\end{definition}
38

  
39

  
40
\anupam{need to account for normality and safety somewhere. Attempting inlined and leaving types without this decoration.}
41

  
42
\begin{remark}
43
	[Distribution of $!$]
44
	There is a potential issue that the $!$ contains $\lor$ symbols in its scope, whence we do not in general have $!(A \lor B) \cong !A \lor !B$. However this will not be a problem here by inspection of a convergence statement: there are no $\lor$ symbols in the scope of a $!$. Therefore, after free-cut elimination, no formula in the proof will have this property either.
45
	
46
	On the other hand, since we are working in affine logic, we do in general have $!(A \land B) \cong !A \land !B$.
47
\end{remark}
48

  
49
	
50
		\newcommand{\witness}[2]{\mathit{Witness}^{#1}_{#2}}
51
		\begin{definition}
52
			[Witness predicate]
53
			We define the following `witness' predicate for $\Sigma^\nat_1$-formulae $A$ with free variables amongst $\vec a$:
54
			\[
55
			\begin{array}{rcll}
56
			\witness{\vec a}{A} (w, \vec b) & := & w = t(\vec b) & \text{if $A(\vec a)$ is $\nat (t(\vec a))$.} \\
57
			\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)$.} \\
58
			\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) & 
59
			%			\text{for $\star \in \{ \land, \lor, \laand , \laor\}$.} 
60
			\\
61
			\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) & 
62
			%			\text{for $\star \in \{ \land, \lor, \laand , \laor\}$.} 
63
			\\
64
			\witness{\vec a}{\exists x^\nat . A(x)} ( w, \vec w  , \vec b) & := & \witness{\vec{a}, a}{A(a)}(\vec w , \vec b, w ) & \\
65
			\end{array}
66
			\]
67
			where $|\vec w^1| = |\type (A)|$ and $|\vec w^2| = |\type (B)| $.
68
		\end{definition}
69
		%	\todo{problem: what about complexity of checking equality? }
70
		
71
		\todo{Reformulate above later if necessary.}
72
		
73
		%	\todo{What about $\nat (t)$? What does it mean? Replace with true?}
74
		
75
		%	\todo{either use the witness predicate above, or use realizability predicate at meta-level and a model theory, like BH.}
76
		
77
		%	\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.}
78
		
79
		\anupam{to consider/remark: formally, is witness predicate checked in model or some logical theory?}
80
		
81
		\subsection{The translation}
82
		
83
		\begin{definition}
84
			[Translation]
85
			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:
86
			\[
87
			\witness{\vec a}{\bigotimes \Gamma} (\vec w , \vec b) \implies \witness{\vec a}{\bigparr \Delta } (\vec f(\vec w , \vec b), \vec b)
88
			\]
89
			
90
			\anupam{to consider: do we need parameters $\vec a$ in argument of $f$? Or does $\nat$ predicate take care of this?}
91
			
92
			%	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.
93
			
94
			We often suppress the parameters $\vec a$ when it is not important.	
95
			
96
			\anupam{Is this implication provable in Bellantoni's version of PV based on BC?}
97
			
98
			%	\anupam{for moment try ignore decoration on right? what about negation?}
99
			
100
			
101
			
102
			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.
103
			
104
			Suppose $\pi$ ends with a $\rigrul{\land}$ step:
105
			\[
106
			\vlderivation{
107
				\vliin{\land}{}{ \Gamma, \Sigma \seqar \Delta, \Pi, A\land B }{
108
					\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
109
				}{
110
				\vltr{\pi_2}{ \Sigma \seqar \Pi, B }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
111
			}
112
		}
113
		\]
114
		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$.
115
		%	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. 
116
		We simply construct $\vec f^\pi$ by rearranging these tuples of functions:
117
		\[
118
		\vec f^\pi (\vec u , \vec v ; \vec x , \vec y)
119
		\quad := \quad
120
		\left(
121
		\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)
122
		\right)
123
		\] 
124
		
125
		We will continue with a similar notational convention as above in the remainder of this argument.
126
		
127
		%	\anupam{bad notation since need to include free variables of sequent too. (also of theory.) Reconsider.}
128
		
129
		The case when $\pi$ ends with a $\lefrul{\lor}$ step is analogous to the $\rigrul{\land}$ case above.
130
		
131
		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'}$.
132
		
133
		Suppose $\pi$ ends with a $\lefrul{\cntr}$ step,
134
		\[
135
		\vlderivation{
136
			\vlin{\lefrul{\cntr}}{}{ !A , \Gamma \seqar \Delta }{
137
				\vltr{\pi'}{  !A, !A , \Gamma \seqar \Delta}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
138
			}
139
		}
140
		\]
141
		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$:
142
		\[
143
		\vec f^\pi (\vec u , \vec v ; \vec x)
144
		\quad := \quad
145
		\vec f (\vec u, \vec u , \vec v ; \vec x)
146
		\]
147
		(Notice that this is obtainable in BC by a trivial instance of safe composition.)
148
		
149
		
150
		%	cntr right
151
		%	\[
152
		%	\vlderivation{
153
		%	\vlin{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{
154
		%	\vltr{\pi'}{  \Gamma \seqar \Delta, ?A, ?A}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
155
		%	}
156
		%	}
157
		%	\]
158
		%	(need test function against witness predicate?)
159
		%	
160
		%	\anupam{problem: how to test even equality of two terms? Maybe treat $?$ as $!$ on left?}
161
		%	
162
		%	\anupam{Not a problem by free-cut elimination! Can assume there are no $?$ in the proof! Is this equivalent to treaing $?$ as $!$ on left?}
163
		%	
164
		%	\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.}
165
		%	
166
		%	\anupam{this is actually the main point.}
167
		
168
		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.
169
		
170
		\anupam{This is important, so expand on this here or in a remark before/after.}
171
		
172
		
173
		%	\[
174
		%	\vlderivation{
175
		%	\vliin{\rigrul{\laand}}{}{\Gamma \seqar \Delta, A \laand B}{
176
		%	\vltr{\pi_1}{  \Gamma \seqar \Delta, A}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
177
		%	}{
178
		%	\vltr{\pi_2}{  \Gamma \seqar \Delta, B}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
179
		%	}
180
		%	}
181
		%	\]
182
		%	
183
		%	Suppose we have $\vec f^i (\vec x , \vec a ; \vec y , \vec b)$ from $\pi_i$.
184
		%	
185
		%	\anupam{problem: does this require many tests, just like for contraction? Can we isolate a different complexity class? e.g.\ PH or Grzegorzyck?}
186
		%	\anupam{skip this case and consider later.}
187
		
188
		\anupam{commented stuff on additives. To remark later perhaps.}
189
		
190
		
191
		
192
		Suppose $\pi$ ends with a $\rigrul{\exists}$ step,
193
		\[
194
		\vlderivation{
195
			\vlin{\rigrul{\exists}}{}{ \Gamma, \nat(t) \seqar \Delta , \exists x^\nat . A(x) }{
196
				\vltr{\pi'}{ \Gamma \seqar \Delta , A(t) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
197
			}
198
		}
199
		\]
200
		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:
201
		\[
202
		\vec f^\pi (\vec u ; \vec x , y)
203
		\quad := \quad
204
		\left( \vec f^\Delta (\vec u ; \vec x) , \id (;y), \vec{ f}^{A(t)} (\vec u; \vec x)  \right)
205
		\]
206
		(The identity function on $y$ is defined from successor, predecessor and safe composition).
207
		
208
		
209
		%Suppose we have functions $\vec f^X (\vec x ; \vec y)$ from $\pi'$ for $X = \Delta$ or $ X=A$. 
210
		%\[
211
		%\vec f(\vec x ; \vec y , z) \quad := \quad ( \vec f^\Delta (\vec x ; \vec y)   ,  z , \vec f^A ( \vec x ; \vec y ) )
212
		%\]
213
		
214
		
215
		Suppose $\pi$ ends with a $\lefrul{\exists}$ step:
216
		\[
217
		\vlderivation{
218
			\vlin{\lefrul{\exists}}{}{ \Gamma, \exists x^N . A(x) \seqar \Delta }{
219
				\vltr{\pi'(a)}{ \Gamma , A(a),  N(a) \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
220
			}
221
		}
222
		\]
223
		%
224
		%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:
225
		%\[
226
		%\vec f ( \vec u , \vec v ;  )
227
		%\]
228
		
229
		\anupam{should just be same? Consider variable naming, just in case.}
230
		\anupam{This is probably where the consideration for free variables is.}
231
		
232
		%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:
233
		%\[
234
		%\vec f ( \vec v , \vec w ; \vec x , y , \vec z )
235
		%\]
236
		
237
		
238
		Suppose $\pi$ ends with a $\cut$ step:
239
		\[
240
		\vlderivation{
241
			\vliin{\cut}{}{\Gamma , \Sigma \seqar \Delta , \Pi}{
242
				\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
243
			}{
244
			\vltr{\pi_2}{\Sigma , A \seqar \Pi}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
245
		}
246
	}
247
	\]
248
	
249
	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:
250
	
251
	\[
252
	\vec f^\pi ( \vec u , \vec v ; \vec x, \vec y)
253
	\quad := \quad
254
	\left(
255
	\vec g^\Delta (\vec u ; \vec x) 
256
	,
257
	\vec h ( \vec v ; \vec y , \vec g^A ( \vec u ; \vec x ) )
258
	\right)
259
	\]
260
	(Notice that all safe inputs are hereditarily safe in these expressions, so they are definable by safe composition and projection).
261
	
262
	
263
	
264
	
265
	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:
266
	
267
	\todo{finish this case}
268
	
269
	
270
	
271
	Suppose $\pi$ ends with a $\lefrul{!}$ step:
272
	\[
273
	\vlderivation{
274
		\vlin{!}{}{\Gamma, !A \seqar \Delta}{
275
			\vltr{\pi'}{ \Gamma , A \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
276
		}
277
	}
278
	\]
279
	\todo{finish this case, just passing a safe input to a normal input.}
280
	
281
	
282
	Suppose $\pi$ ends with a $\rigrul{!}$ step:
283
	
284
	\todo{finish this case, should not change function at all, but maybe there is a consideration.}
285
	
286
	Suppose $\pi$ ends with a $\lefrul{\wk}$ step:
287
	
288
	\todo{finish this case, just add a dummy input.}
289
	
290
	Suppose $\pi$ ends with a $\rigrul{\wk}$ step:
291
	
292
	\todo{finish this case, just add a dummy function.}
293
	
294
	
295
	
296
	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:
297
	\[
298
	\vlderivation{
299
		\vliin{\ind}{}{ !\Gamma , !\nat (t) ,  A(\epsilon) \seqar A(t) }{
300
			\vltr{\pi_0}{ !\Gamma , !\nat(a) , A(a) \seqar A(\succ_0 a)}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
301
		}{
302
		\vltr{\pi_1}{ !\Gamma , !\nat(a), A(a)\seqar A(\succ_1 a) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
303
	}
304
}
305
\]
306

  
307
By the inductive hypothesis we have functions:
308

  
309
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)$.
310

  
311

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

  
314
Define the function $f_k$ (for $k = 1 , \dots , |\vec u|$) by PRN:
315
\[
316
\begin{array}{rcl}
317
f_k(\epsilon, \vec x , y ; \vec u) & := & u_k \\
318
f_k (\succ_i w , \vec x , y ; \vec u) & : = & f^i_k ( \vec x ,  y ; \vec f ( w, \vec x , y ; \vec u ) )
319
\end{array}
320
\]
321

  
322
\anupam{check this, esp use of parameters, cf.\ above.}
323

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

  
326

  
327
\end{definition}
328

  
329
\newcommand{\concat}{\mathit{concat}}
330
\paragraph{Some points on concatenation \anupam{if necessary}}
331
We can define the concatenation operation by PRN:
332
\[
333
\begin{array}{rcl}
334
\concat (\epsilon ; y) & : = & x \\
335
\concat (\succ_i x ; y) & := & \succ_i \concat (x ; y)
336
\end{array}
337
\]
338

  
339
From here we can define iterated concatenation:
340
\[
341
\concat (x_1 , \dots x_n ; y) \quad := \quad \concat (x_n ; \concat (x_{n-1} ; \vldots \concat (x_1 ; y) \vldots ) )
342
\]
343

  
344
(notice all safe inputs are hereditarily to the right of $;$ so this is definable by safe composition and projection.)
CSL16/free-cut-elim.tex (revision 33)
1
\section{Free-cut elimination in linear logic}
2

  
3

  
4
\todo{patrick}
5

  
6
\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.}
7

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

  
10
 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}. 
11
  
12
%   \begin{definition}\label{def:anchoredcut}
13
%  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.
14
%  \end{definition}
15
  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:
16
%  \begin{figure}
17
%  \[
18
%  \vlderivation{
19
%    \vliinf{c1}{!\Gamma , \Gamma_1 \seqar A(t) , ?\Delta }{
20
%  \vlinf{(ind)}{(x \notin \FV(\Gamma, \Delta))}{ !\Gamma , A(\epsilon) \seqar A(t) , ?\Delta }{ !\Gamma , A(x) \seqar A(s x ), ?\Delta }}
21
%  {\Gamma_1\seqar A(\epsilon) }
22
%                   }
23
%  \]               
24
%%				\vlin{\cntr}{}{\Gamma, ?A}{
25
%%					\vlin{\wk}{}{\Gamma, ?A, ?A}{\vlhy{\Gamma, ?A}}
26
%%				}
27
%
28
%  \caption{Example}\label{Fig:twosuccessiveanchorcuts}
29
%  \end{figure}
30
   
31

  
32
  
33
  \begin{definition}\label{def:anchoredcut}
34
  We define in a mutual inductive way the notion of \textit{hereditarily principal formula} and \textit{anchored cut} in a $\mathcal T$-proof :
35
  \begin{itemize}
36
  \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 
37
  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).
38
  \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.
39
  \end{itemize}
40
  \end{definition}
41
  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 
42
  a rule $\rigrul{\lor}$ and a rule $\lefrul{\lor}$ is not.
43
   
44
   A cut which is non-anchored will also be called a \textit{free-cut}.
45
   Now we can state the main result of this section:
46
   \begin{theorem}
47
    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.
48
   \end{theorem}
49
   \begin{proof}
50
     
51
    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.
52
     
53
     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.
54
     
55
    
56
    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.
57
    
58
    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.
59
    
60
    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$.  
61
\[    
62
     \vliinf{c \; \; \cut}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \vlinf{S_1}{}{\Gamma \seqar \Delta, A}{} }{\vlinf{S_2}{}{\Sigma, A \seqar \Pi}{}}
63
\]
64
    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:
65
    
66
   \begin{itemize}
67
    \item \textbf{First case}: the cut-formula $A$ on the l.h.s. of  $c$ is non hereditarily principal. 
68
    
69
   %  Call (S) the last rule above the left premise of $c$. 
70
     
71
     
72
%     We perform a commutation step between (S) and $c$. We examine here the case where (S)=($\rigrul{\laand}$). 
73
%     
74
%     \[
75
%\vlderivation{
76
%\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} }
77
%}
78
%\quad\to\quad
79
%\vlderivation{
80
%\vliin{\vlan}{}{\Gamma,\Delta,A\vlan B }{
81
%\vliin{c_1}{}{\Gamma,\Delta,A }{ \vlhy{\Gamma,A,C} }{ \vlhy{ \Delta,C^\bot } }
82
%}{
83
%\vliin{c_2 }{}{\Gamma,\Delta,B}{ \vlhy{\Gamma,B,C } }{ \vlhy{\Delta,C^\bot} }
84
%}
85
%}
86
%\]
87
%
88
%\patrick{TODO: adapt to two-sided sequents here}
89
\begin{itemize}
90
\item Consider first the situation where $(S_1)$ is not one of the rules $(\rigrul{!})$, $(\lefrul{?})$, $(R)$.
91

  
92
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})$.
93

  
94
\[
95
\vlderivation{
96
\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} }
97
}
98
\quad\to\quad
99
\vlderivation{
100
\vliin{\rigrul{\vlan}}{}{  \Gamma, \Sigma \seqar B_1\vlan B_2, \Delta, \Pi  }{
101
\vliin{c_1}{}{\Gamma,\Sigma \seqar B_1, \Delta, \Pi }{ \vlhy{\Gamma  \seqar B_1, \Delta, A} }{\vlhy{ \Sigma, A \seqar  \Pi} }
102
}{
103
\vliin{c_2}{}{\Gamma,\Sigma \seqar B_2, \Delta, \Pi }{ \vlhy{\Gamma  \seqar B_2, \Delta, A} }{\vlhy{ \Sigma, A \seqar  \Pi} }
104
}
105
}
106
\]
107

  
108
%\vlderivation{
109
%\vliin{\vlan}{}{\Gamma,\Delta,A\vlan B }{
110
%\vliin{c_1}{}{\Gamma,\Delta,A }{ \vlhy{\Gamma,A,C} }{ \vlhy{ \Delta,C^\bot } }
111
%}{
112
%\vliin{ c_2 }{}{\Gamma,\Delta,B}{ \vlhy{\Gamma,B,C } }{ \vlhy{\Delta,C^\bot} }
113
%}
114
%}
115
%\]
116

  
117

  
118
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
119
$\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
120
$\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}$.  
121

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

  
124
\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. 
125

  
126
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 
127
 $(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.
128
 
129
 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.
130
 
131
 \patrick{TODO: I will picture this case} 
132
 
133
\end{itemize}
134

  
135
%\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).}
136
    \item \textbf{Second case}: the cut-formulas on the l.h.s. and r.h.s. of  $c$ are both non hereditarily principal. 
137
    
138
   After the first case we are here left with the situation where  $(S_1)$ is equal to $(\rigrul{!})$, $(\lefrul{?})$ or $(R)$.
139
   \begin{itemize}
140
    \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. 
141
    \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$. 
142
   \end{itemize}
143
 
144
   
145
    \item \textbf{Third case}: the cut-formulas on the l.h.s. and r.h.s. of  $c$ are both  hereditarily principal.
146
     
147
    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
148
    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
149
    of last rule $(S_1)$ (resp. $(S_2)$).
150
     
151
    Then we consider the following sub-cases, in order:
152
     \begin{itemize}
153
      \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$.
154
      
155
       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
156
       of $\pi_2$ which has as leaves the sequence premises of these  $\lefrul{!}$ or $\lefrul{wk}$ with conclusion containing $!A^{j}$.
157
       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$.
158
  Now, let $\pi'_2$ be the immediate subderivation of $\pi_2$, of conclusion       $!\Gamma \seqar ?\Delta,A$.  We then define the derivation 
159
  $\rho''$ obtained from   $\rho'$ in the following way:
160
  \begin{itemize}
161
  \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{!}$;
162
  \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}$;
163
  \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$). 
164
  \end{itemize}
165
  
166
  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$).  
167
  
168
  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.
169

  
170
      
171
      \item \textbf{logical sub-case}: assume both premises of $c$ are conclusions of rules others than $?$, $!$, $wk$, $cntr$.
172
      
173
      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.
174
      
175
      \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}$, with principal formula $A$. If the right premise is conclusion of say rule $\rigrul{\land}$ on the formula $A=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 keeping only the l.h.s. proof $\pi_1$, removing the last cut $c$ and last    $\rigrul{\wk}$ rule    on $A$, and by adding enough
176
        $\rigrul{\wk}$, $\lefrul{\wk}$ rules to introduce all the new formulas in the final sequent. 
177

  
178
      
179
     \end{itemize}
180
     
181
      
182
    \end{itemize}
183
     
184
   \end{proof}
CSL16/conclusions.tex (revision 33)
1
\section{Conclusions}
CSL16/further-work.tex (revision 33)
1
\section{Further work}
2

  
3
Say something about minimisation and the polynomial hierarchy. Could be achieved by controlling contraction/additives, since this requires a notion of tests.
CSL16/preliminaries.tex (revision 33)
1
\section{Preliminaries}
2

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

  
5

  
6

  
7

  
8
\paragraph*{Notation}
9
Fix conventions here for use throughout:
10
\begin{itemize}
11
\item Eigenvariables: $a, b , c$.
12
\item (Normal) variables: $u,v,w$. (only when distinction is important, e.g.\ $u^{!\nat}$).
13
\item (Safe) variables: $x,y,z$. (as above, e.g.\ $x^\nat$.)
14
\item Terms: $r,s,t$.
15
\item Formulae: $A,B,C$.
16
\item Atomic formulae: $p,q$.
17
\item Free variables in a term, formula, sequent: $FV(u)$, $FV(A)$, $FV(\Gamma)$
18
\item Sequents: $\Gamma, \Delta, \Sigma, \Pi$.
19
\item Proofs: $\pi, \rho, \sigma$.
20
\item Theories: $\mathcal T$. Sequent systems: $\mathcal S$.
21
\end{itemize}
22

  
23
\subsection{Linear logic}
24

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

  
28
\begin{definition}\label{def:LLsequentcalculus}
29
%[Sequent calculus for linear logic]
30
[Sequent calculus for affine linear logic]
31

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

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

  
36
We define the following calculus in De Morgan normal form:
37
\[
38
\begin{array}{l}
39
\begin{array}{cccc}
40
\vlinf{\lefrul{\bot}}{}{p, \lnot{p} \seqar }{}
41
& \vlinf{\id}{}{p \seqar p}{}
42
& \vlinf{\rigrul{\bot}}{}{\seqar p, \lnot{p}}{}
43
& \vliinf{\cut}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta, A }{\Sigma, A \seqar \Pi}
44
\\
45
\noalign{\bigskip}
46
%\text{Multiplicatives:} & & & \\
47
%\noalign{\bigskip}
48
\vliinf{\lefrul{\lor}}{}{\Gamma,\Sigma, A \lor B \seqar \Delta, \Pi}{\Gamma, A \seqar \Delta}{\Sigma , B \seqar \Pi}
49
&
50
\vlinf{\lefrul{\land}}{}{\Gamma, A\land B \seqar \Delta}{\Gamma, A , B \seqar \Delta}
51
&
52
\vlinf{\rigrul{\lor}}{}{\Gamma \seqar \Delta, A \lor B}{\Gamma \seqar \Delta, A, B}
53
&
54
\vliinf{\rigrul{\land}}{}{\Gamma, \Sigma \seqar \Delta , \Pi , A \land B}{\Gamma \seqar \Delta , A}{\Sigma \seqar \Pi , B}
55
\\
56
\noalign{\bigskip}
57
%\text{Additives:} & & & \\
58
%\noalign{\bigskip}
59
\vliinf{\lefrul{\laor}}{}{\Gamma, A \laor B \seqar \Delta}{\Gamma , A \seqar \Delta}{\Gamma, B \seqar \Delta}
60
&
61
\vlinf{\lefrul{\laand}}{}{\Gamma, A_1\laand A_2 \seqar \Delta}{\Gamma, A_i \seqar \Delta}
62
&
63
%\vlinf{\lefrul{\laand}}{}{\Gamma, A\laand B \seqar \Delta}{\Gamma, B \seqar \Delta}
64
%\quad
65
\vlinf{\rigrul{\laor}}{}{\Gamma \seqar \Delta, A_1\laor A_2}{\Gamma \seqar \Delta, A_i}
66
&
67
%\vlinf{\rigrul{\laor}}{}{\Gamma \seqar \Delta, A\laor B}{\Gamma \seqar \Delta, B}
68
%\quad
69
\vliinf{\rigrul{\laand}}{}{\Gamma \seqar \Delta, A \laand B }{\Gamma \seqar \Delta, A}{\Gamma \seqar \Delta, B}
70
\\
71
\noalign{\bigskip}
72
%\text{Exponentials:} & & & \\
73
%\noalign{\bigskip}
74
\vlinf{\lefrul{?}}{}{!\Gamma, ?A \seqar ?\Delta}{!\Gamma , A \seqar ?\Delta}
75
&
76
\vlinf{\lefrul{!}}{}{\Gamma, !A \seqar \Delta}{\Gamma, A \seqar \Delta}
77
&
78
\vlinf{\rigrul{?}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, A}
79
&
80
\vlinf{\rigrul{!}}{}{!\Gamma \seqar ?\Delta, !A}{!\Gamma \seqar ?\Delta, A}
81
\\
82
\noalign{\bigskip}
83
%\text{Structural:} & & & \\
84
%\noalign{\bigskip}
85

  
86
%\vlinf{\lefrul{\wk}}{}{\Gamma, !A \seqar \Delta}{\Gamma \seqar \Delta}  %% linear logic weakening
87
\vlinf{\lefrul{\wk}}{}{\Gamma, A \seqar \Delta}{\Gamma \seqar \Delta}
88
&
89
\vlinf{\lefrul{\cntr}}{}{\Gamma, !A \seqar \Delta}{\Gamma, !A, !A \seqar \Delta}
90
&
91
%\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, ?A }{\Gamma \seqar \Delta}   %% linear logic weakening
92

  
93
\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, A }{\Gamma \seqar \Delta}
94
&
95
\vlinf{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, ?A, ?A}
96
\\
97
\noalign{\bigskip}
98
\vlinf{\lefrul{\exists}}{}{\Gamma, \exists x . A(x) \seqar \Delta}{\Gamma, A(a) \seqar \Delta}
99
&
100
\vlinf{\lefrul{\forall}}{}{\Gamma, \forall x. A(x) \seqar \Delta}{\Gamma, A(t) \seqar \Delta}
101
&
102
\vlinf{\rigrul{\exists}}{}{\Gamma \seqar \Delta, \exists x . A(x)}{ \Gamma \seqar \Delta, A(t)}
103
&
104
\vlinf{\rigrul{\forall}}{}{\Gamma \seqar \Delta, \forall x . A(x)}{ \Gamma \seqar \Delta, A(a) } \\
105
%\noalign{\bigskip}
106
% \vliinf{mix}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta}{\Sigma \seqar \Pi} &&&
107
\end{array}
108
\end{array}
109
\]
110
where $p$ atomic, $i \in \{ 1,2 \}$ and the eigenvariable $a$ does not occur free in $\Gamma$ or $\Delta$.
111
\end{definition}
112
 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. 
113
  In the following though, by linear logic we will mean affine linear logic.
114
 
115
  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:
116

  
117
 \[
118
 \begin{array}{cc}
119
  \vlinf{(ax)}{}{ \seqar A}{}  &  \vlinf{(R)}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
120
\end{array}
121
\]
122
  
123
 where in rule (R), $I$ is a finite set (indicating the number of premises) and we assume the following conditions:
124
 \begin{enumerate}
125
 \item  We have:$$ FV(\Sigma_i, \Delta_i) \cap FV(!\Gamma, ? \Pi)= FV(\Sigma_i, \Delta_i) \cap FV(\Sigma', \Delta')= \emptyset $$
126
 \item $ \Sigma'$ (resp. $\Delta'$) does not contain any formula of the shape $?A$ (resp. $!A$).  
127
 %  \item $ \Sigma', \Delta'$ does not contain any formula of the shape $!A$ or $?A$. 
128
 \end{enumerate}
129
  
130
  \patrick{Anupam: note that I had to strengthen the conditions for the rules (R). Condition (1) is needed 
131
  to be able to commute a cut with (R), in the case where this cut is with a principal formula of a   ($\rigrul{!}$) rule. 
132
  
133
  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).
134
  }
135
  
136
%  \textit{for any $i\in I$, formulas in $\Sigma_i, \Delta_i$ do not share any free variable with   $\Gamma, \Pi$.} 
137
%  
138
%  \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
139
%  $$ FV(\Sigma_i, \Delta_i) \cap FV(!\Gamma, ? \Pi)= FV(\Sigma_i, \Delta_i) \cap FV(\Sigma', \Delta')= \emptyset $$
140
 % 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. }
141
  
142
  In the following we will be interested in an example of theory  $\mathcal T$ which is a form of arithmetic.
143
   
144
   Let us give an example of a possible rule (R) of a theory $\mathcal T$:
145
   
146
   \[
147
	\vlinf{(ind)}{(x \notin \FV(\Gamma, \Delta))}{ !\Gamma , N(t), A(0) \seqar A(t) , ?\Delta }{ !\Gamma , A(x) \seqar A(s x ), ?\Delta }
148
	\]
149

  
150
So here we have $I=\{1\}$ (one premise), $\Sigma_1=A(x)$, $\Delta_1= A(s x )$, $\Sigma'= N(t), A(0)$, $\Delta'= A(t)$. So conditions 1 and 2 are satisfied provided $x\notin FV(!\Gamma, ?\Pi)$ and $x\notin FV(t)$. 
151
%\[
152
%	\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}
153
%	\]
154

  
155
  
156
  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.
157
   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}.
158
  
159
  As usual rules come with a notion of \textit{principal formulas}, which are a subset of the rules in the conclusion, e.g.:
160
  $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;
161
   $\Sigma', \Delta'$ in rule (R).
162
  
163
 
164
\subsection{Deduction theorem}
165

  
166
[cite Avron:`semantics and proof theory of linear logic']
167

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

  
170
%$$
171
%	\vliiinf{}{}{ \seqar A}{ \seqar C}
172
%	$$
173

  
174
%\[
175
%	\vliiinf{R}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
176
%	\]
177

  
178
\begin{theorem}
179
	[Deduction]
180
	If $\mathcal T , A \proves B$ then $\mathcal{T} \proves !A \limp B$.
181
\end{theorem}
182

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

  
185

  
186

  
187
\subsection{Converting axioms to rules in $\MELLW$}
188

  
189
\begin{proposition}
190
	An axiom $\Ax$ of the form,
191
	\[
192
	A_1 \limp \vldots \limp A_m \limp !B_1 \limp \vldots \limp !B_n \limp C
193
	\]
194
	is equivalent (over propositional $\LL$) to the rule $\Rl$:
195
	\[
196
	\vliiinf{\Rl}{}{ !\Gamma , A_1 , \dots , A_m \seqar C , ? \Delta  }{ !\Gamma \seqar B_1 , ?\Delta }{\vldots }{ !\Gamma \seqar B_n , ?\Delta}
197
	\]
198
\end{proposition}
199
\begin{proof}
200
	Let us first assume $\Ax$ and derive $\Rl$. From the axiom and Currying, we have a proof of:
201
	\begin{equation}\label{eqn:curried-axiom}
202
	A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C
203
	\end{equation}
204
	
205
	This can simply be cut against each of the premisses of $\Rl$, applying appropriate contractions and necessitations, to derive it:
206
	\[
207
	\vlderivation{
208
		\vliq{c}{}{!\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta }{
209
			\vliin{\cut}{}{!\Gamma, \dots , !\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta, \dots , ?\Delta }{
210
				\vlin{!}{}{!\Gamma \seqar !B_n, ?\Delta }{\vlhy{!\Gamma \seqar B_n , ?\Delta }}
211
			}{
212
			\vliin{\cut}{}{\qquad \qquad \qquad \qquad  \vlvdots \qquad \qquad \qquad \qquad }{
213
				\vlin{!}{}{!\Gamma \seqar !B_1 , ?\Delta}{\vlhy{!\Gamma \seqar B_1, ?\Delta }}
214
			}{\vlhy{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C } }
215
		}
216
	}
217
}
218
\]
219

  
220
Now let us prove $\Ax$ (again in the form of \eqref{eqn:curried-axiom}) by using $\Rl$ as follows:
221
\[
222
\vliiinf{\Rl}{}{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C }{  \vlderivation{
223
		\vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_1 }{
224
			\vlin{!}{}{!B_1 \seqar B_1 }{
225
				\vlin{\id}{}{B_1 \seqar B_1 }{\vlhy{}}
226
			}
227
		}
228
	}  }{\vldots}{
229
	\vlderivation{
230
		\vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_n }{
231
			\vlin{!}{}{!B_n \seqar B_n }{
232
				\vlin{\id}{}{B_n \seqar B_n }{\vlhy{}}
233
			}
234
		}
235
	}
236
}
237
\]
238
\end{proof}
239

  
240

  
241
\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.
242

  
243

  
244

  
245
\begin{corollary}
246
	The induction axiom of $A^1_2$ is equivalent to the rule:
247
	\[
248
	\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}
249
	\]
250
\end{corollary}
251
\begin{proof}
252
	By proposition above, generalisation and Currying.
253
\end{proof}
254

  
255

  
256
\subsection{Prenexing}
257
%In the presence of weakening we have a prenex normal form due to the following:
258
%
259
%\[
260
%\vlderivation{
261
%	\vlin{}{}{\exists x . A \lor B \seqar \exists x . (A(x) \lor B) }{
262
%		
263
%		}
264
%	}
265
%\]
266

  
267
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?
CSL16/appendix.tex (revision 33)
1
\appendix
2

  
3
\section{Some cut-elimination cases}
4
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.
5

  
6
As well as all usual rules, we have the induction rule:
7
\[
8
\vlinf{\indr}{(x \notin FV (\Gamma) )}{? \Gamma, A^\perp (0) , A(t)}{? \Gamma , A^\perp (x) , A(s x) }
9
\]
10

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

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

  
16
\newcommand{\anarrow}[2]{\overset{#1}{\underset{#2}{\longrightarrow}}}
17
\newcommand{\cutredlin}{\mathit{ma}}
18
\newcommand{\cutredexp}{exp}
19

  
20
\begin{definition}
21
	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.
22
\end{definition}
23

  
24
\newcommand{\rk}{\mathsf{rk}}
25
	\renewcommand{\deg}{\mathsf{deg}}
26
\begin{definition}
27
	[Measures]
28
	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.
29
\end{definition}
30

  
31
\begin{proposition}
32
If $\pi$ is not $\anarrow{}{\cutredlin}$-normal then there is a derivation $L:\pi \anarrow{*}{\cutredlin} \pi'$ such that $\deg(\pi')< \deg(\pi)$.
33
\end{proposition}
34
\begin{proof}
35
	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.
36
	
37
	Now to the general case, we simply apply the above procedure to the subproof above a topmost cut in $\pi$.
38
\end{proof}
39
\begin{corollary}
40
	$\anarrow{}{\cutredlin}$ is weakly normalising.
41
\end{corollary}
42

  
43

  
44
\newcommand{\cntdown}{\mathit{cn}}
45
\begin{definition}
46
	[Lazy contraction]
47
	Let $\anarrow{}{\cntdown}$ comprise of the following reduction steps:
48
	\begin{enumerate}
49
		\item The commuting steps,
50
			\[
51
			\vlderivation{
52
				\vlin{\rho}{}{\Gamma', ?A, }{
53
					\vlin{\cntr}{}{\Gamma, ?A}{\vlhy{\Gamma, ? A, ? A}}
54
				}
55
			}
56
			\quad\to \quad
57
			\vlderivation{
58
				\vlin{\cntr}{}{\Gamma', ?A}{
59
					\vlin{\rho}{}{\Gamma', ?A, ?A}{\vlhy{\Gamma, ? A, ? A}}
60
				}
61
			}	
62
			\]
63
			for each unary rule $\rho$.
64
			\item 
65
			The key steps:
66
			\[ 	
67
			\begin{array}{rcl}
68
			\vlderivation{
69
				\vlin{\cntr}{}{\Gamma, ?A}{
70
					\vlin{\wk}{}{\Gamma, ?A, ?A}{\vlhy{\Gamma, ?A}}
71
				}
72
			}
73
			\quad &\to & \quad
74
			\Gamma, ?A 
75
%			\]
76
%			and
77
%			\[
78
\\
79
\noalign{\smallskip}
80
				\vlderivation{
81
					\vlin{\wk}{}{\Gamma, ?A, ?A}{
82
						\vlin{\cntr}{}{\Gamma, ?A}{\vlhy{\Gamma, ?A, ?A}}
83
					}
84
				}
85
				\quad &\to& \quad
86
				\Gamma, ?A, ?A
87
							\end{array}
88
			\].
89
\item The commuting steps,
90
\[
91
	\vlderivation{
92
		\vliin{\rho}{}{\Gamma ,?A}{
93
			\vlin{\cntr}{}{\Gamma_1, ?A}{\vlhy{\Gamma_1, ?A, ?A}}
94
		}{\vlhy{\Gamma_2}}
95
	}
96
	\quad \to \quad
97
	\vlderivation{
98
		\vlin{\cntr}{}{\Gamma, ?A}{
99
			\vliin{\rho}{}{\Gamma,?A, ?A}{\vlhy{\Gamma_1, ?A, ?A}}{ \vlhy{\Gamma_2} }
100
		}
101
	}
102
\]
103
%\[
104
%\begin{array}{rcl}
105
%	\vlderivation{
106
%		\vliin{\land}{}{\Gamma, \Delta, ?A, B\land C}{
107
%			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
108
%		}{\vlhy{\Delta, C}}
109
%	}
110
%	\quad &\to &\quad
111
%	\vlderivation{
112
%		\vlin{\cntr}{}{\Gamma, \Delta, ?A, B\land C}{
113
%			\vliin{\land}{}{\Gamma, \Delta, ?A, ?A, B\land C}{\vlhy{\Gamma, ?A, ?A, B}}{ \vlhy{\Delta, C} }
114
%		}
115
%	}
116
%%	\]
117
%%	
118
%%	\[
119
%\\
120
%\noalign{\smallskip}
121
%	\vlderivation{
122
%		\vliin{\cut}{}{\Gamma, \Delta, ?A}{
123
%			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
124
%		}{\vlhy{\Delta, \lnot{B}}}
125
%	}
126
%	\quad &\to& \quad
127
%	\vlderivation{
128
%		\vlin{\cntr}{}{\Gamma, \Delta, ?A}{
129
%			\vliin{\cut}{}{\Gamma, \Delta, ?A, ?A}{\vlhy{\Gamma, ?A, ?A, B}}{ \vlhy{\Delta, \lnot{B}} }
130
%		}
131
%	}
132
%\end{array}
133
%\]
134
for each binary rule $\rho \in \{ \land, \cut \}$.
135
\item The commuting step:
136
	\[
137
	\vlderivation{
138
		\vliin{\vlan}{}{\Gamma, ?A, B\vlan C}{
139
			\vlin{\cntr}{}{\Gamma, ?A, B}{\vlhy{\Gamma, ?A, ?A, B}}
140
		}{\vlhy{\Gamma, ?A, B}}
141
	}
142
	\quad \to \quad
143
	\vlderivation{
144
		\vlin{\cntr}{}{\Gamma, ?A, B\vlan C}{
145
			\vliin{\vlan}{}{\Gamma, ?A, ?A, B\vlan C}{\vlhy{\Gamma, ?A, ?A, B}}{
146
				\vlin{\wk}{}{\Gamma, ?A, ?A, C}{\vlhy{\Gamma, ?A, C}}
147
			}
148
		}
149
	}
150
	\]
151
	\end{enumerate}
152
	For binary rules:
153

  
154
\end{definition}
155
\begin{proposition}
156
	$\anarrow{}{\cntdown}$ is weakly normalising
157
	, modulo $\cntr$-$\cntr$ redexes,
158
	and degree-preserving. 
159
	If $\pi$ is $\anarrow{}{\cutredlin}$-normal and $\pi \downarrow_\cntdown \pi'$, then so is $\pi'$.
160
\end{proposition}
161
\begin{proof}
162
	By induction on the number of redexes in a proof. Start with bottommost redex, by induction on number of inference steps beneath it.
163
\end{proof}
164

  
165
\begin{remark}
166
	Only weakly normalising since $\cntr$ can commute with $\cntr$, allowing cycles.
167
\end{remark}
168

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

  
173

  
174

  
175
\subsection{Base cases}
176

  
177
\[
178
\vlderivation{
179
\vliin{\cut}{}{ \Gamma,a }{ \vlhy{\Gamma,a} }{ \vlin{\id}{}{a,a^\bot}{ \vlhy{} } }
180
}
181
\quad\to\quad
182
\vlderivation{
183
\Gamma,a
184
}
185
\]
186

  
187
\[
188
\vlderivation{
189
\vliin{\cut}{}{\Gamma}{ \vlin{\bot}{}{ \Gamma,\bot }{ \vlhy{\Gamma} } }{ \vlin{1}{}{1}{ \vlhy{} } }
190
}
191
\quad\to\quad
192
\vlderivation{
193
\Gamma
194
}
195
\]
196

  
197
\[
198
\vlderivation{
199
\vliin{\cut}{}{ \Gamma,\Delta,\top }{ \vlin{\top}{}{ \Gamma,\top,0 }{ \vlhy{} } }{ \vlhy{\Delta , \top } }
200
}
201
\quad\to\quad
202
\vlinf{\top}{}{ \Gamma,\Delta,\top }{}
203
\]
204

  
205
\subsection{Commutative cases}
206
These are the cases when the principal formula of a step is not active for the cut-step below.
207

  
208
\begin{enumerate}
209
\item The cut-step is immediately preceded by an initial step. Note that only the case for $\top$ applies:
210
\[
211
\vlderivation{
212
\vliin{\cut}{}{\Gamma,\Delta,\top}{ 
213
\vlin{\top}{  }{ \Gamma,\top,A }{ \vlhy{} }
214
 }{ \vlhy{\Delta,A^\bot } }
215
}
216
\quad\to\quad
217
\vlinf{\top}{}{ \Gamma,\Delta,\top }{}
218
\]
219
%Notice that this commutation eliminates the cut entirely and preserves the height of all cuts below.
220
\item\label{CaseCommOneStep} A cut-step is immediately preceded by a step $\rho$ with exactly one premiss:
221
\[
222
\vlderivation{
223
\vliin{\cut}{}{\Gamma',\Delta}{\vlin{\rho}{}{\Gamma',A}{\vlhy{\Gamma,A}}}{\vlhy{A^\bot , \Delta}}
224
}
225
\]
226
We have three subcases:
227
\begin{enumerate}
228
\item\label{subcase:unary-commutation-vanilla} 
229
%$\Delta$ consists of only $?$-ed formulae or 
230
If $\rho \notin \{! , \indr \}$ then we can simply permute as follows:
231
\begin{equation}
232
\label{eqn:com-case-unary-simple}
233
\vlderivation{
234
\vliin{\cut}{}{\Gamma',\Delta}{\vlin{\rho}{}{\Gamma',A}{\vlhy{\Gamma,A}}}{\vlhy{A^\bot , \Delta}}
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.

Formats disponibles : Unified diff