Statistiques
| Révision :

root / CSL16 / draft / preliminaries.tex @ 186

Historique | Voir | Annoter | Télécharger (16,51 ko)

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

    
5
\anupam{need to add a note on semantics}
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 lists of formulas $A(\vec{x})$, $!A(\vec{x})$ (in particular for $A=N$).
20
%\item Proofs: $\pi, \rho, \sigma$.
21
%\item Theories: $\mathcal T$. Sequent systems: $\mathcal S$.
22
%\end{itemize}
23
%
24
%\subsection{Linear logic}
25

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

    
29
We formulate linear logic without units with usual notation for the multiplicatives, additives and exponentials from \cite{Girard87}. We restrict negation to the atoms, thus formulae are always in De Morgan normal form, and this is reflected in the sequent system below. We have included rules for arbitrary weakening for working in affine settings.
30

    
31
%\anupam{positive and negative.}
32

    
33

    
34

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

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

    
90
%\vlinf{\lefrul{\wk}}{}{\Gamma, !A \seqar \Delta}{\Gamma \seqar \Delta}  %% linear logic weakening
91
\vlinf{\lefrul{\wk}}{}{\Gamma, A \seqar \Delta}{\Gamma \seqar \Delta}
92
&
93
\vlinf{\lefrul{\cntr}}{}{\Gamma, !A \seqar \Delta}{\Gamma, !A, !A \seqar \Delta}
94
&
95
%\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, ?A }{\Gamma \seqar \Delta}   %% linear logic weakening
96

    
97
\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, A }{\Gamma \seqar \Delta}
98
&
99
\vlinf{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, ?A, ?A}
100
\\
101
\noalign{\bigskip}
102
\vlinf{\lefrul{\exists}}{}{\Gamma, \exists x . A(x) \seqar \Delta}{\Gamma, A(a) \seqar \Delta}
103
&
104
\vlinf{\lefrul{\forall}}{}{\Gamma, \forall x. A(x) \seqar \Delta}{\Gamma, A(t) \seqar \Delta}
105
&
106
\vlinf{\rigrul{\exists}}{}{\Gamma \seqar \Delta, \exists x . A(x)}{ \Gamma \seqar \Delta, A(t)}
107
&
108
\vlinf{\rigrul{\forall}}{}{\Gamma \seqar \Delta, \forall x . A(x)}{ \Gamma \seqar \Delta, A(a) } \\
109
%\noalign{\bigskip}
110
% \vliinf{mix}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta}{\Sigma \seqar \Pi} &&&
111
\end{array}
112
\end{array}
113
\]
114
where $p$ is atomic, $i \in \{ 1,2 \}$ and the eigenvariable $a$ does not occur free in $\Gamma$ or $\Delta$.
115
\end{definition}
116
%\todo{$\limp$ abbreviation for ...}
117
%\todo{bracketing}
118

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

    
121
We will use standard terminology to track formulae in proofs, as presented in e.g.\ \cite{Buss98:intro-proof-theory}.
122
In particular, each rule has a distinguished \textit{principal formula}, e.g.\
123
  $A \lor B$ in rule $\lefrul{\lor}$ (and similarly for all rules for connectives) and $?A$ in rule $\rigrul{\cntr}$, and \emph{active formulae}, e.g.\ $A$ and $B$ in $\lefrul{\lor}$ and so on. These induce the notions of (direct) descendants and ancestors in proofs, as in \cite{Buss98:intro-proof-theory}.
124
%The  \textit{direct ancestor} relation on occurrences of formulas in a proof is defined to keep track of identity of formulas from line to line, in the usual way.
125
  
126
       
127
  % Observe that we do not consider here any exchange rules, the sequence are made of multisets of formulas and exchanges are implicit. Note that this system is \textit{affine} in the sense that it includes general weakening rules $\rigrul{\wk}$ and  $\lefrul{\wk}$, while in linear logic   $\rigrul{\wk}$ (resp. $\lefrul{\wk}$) is restricted to formulas of the form $?A$ (resp. $!A$).   In the following though, by linear logic we will mean affine linear logic.
128
  \subsection{Theories and systems}
129
%  \anupam{mention equality axioms and first-order theories and models at some point.}
130
  
131
 A \emph{language} is a set of nonlogical symbols (i.e.\ constants, functions, predicates) and a \emph{theory} a set of closed formulae over some language. We will assume that all theories extend the theory of equality:
132
 \[
133
 \begin{array}{rl}
134
\refl & \forall x . x = x \\
135
\symm & \forall x, y. (x = y \limp y = x )\\
136
\trans & \forall x , y , z . ( x = y \limp y = z \limp x = z ) \\
137
\subst_f & \forall \vec x , \vec y . (\vec x = \vec y \limp f(\vec x) = f(\vec y) ) \\
138
\subst_P & \forall \vec x , \vec y. (\vec x = \vec y \limp P(\vec x) \limp P(\vec y)  )
139
 \end{array}
140
 \]
141
  where $\vec x = \vec y$ is shorthand for $x_1 = y_1 \land \vldots \land x_n = y_n$.
142
    
143
\newcommand{\init}{\mathit{init}}    
144
We consider \emph{systems} of `nonlogical' rules extending Dfn.~\ref{def:LLsequentcalculus}, which we write as follows,
145
 \[
146
 \begin{array}{cc}
147
  \vlinf{\init}{}{ \seqar A}{}  &  \vlinf{(R)}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
148
\end{array}
149
\]
150
 where, in each rule $(R)$, $I$ is a finite possibly empty set (indicating the number of premises) and we assume the following conditions and terminology:
151
 \begin{enumerate}
152
 \item In $(R)$ the formulas of $\Sigma', \Delta'$  are called \textit{principal}, those of $\Sigma_i, \Delta_i$ are called \textit{active}, and those of   
153
$ !\Gamma,  ? \Pi$ are called \textit{context formulas}. In $\init$ $A$ is called a principal formula;
154
\item Each rule $(R)$ comes with a list $a_1$, \dots, $a_k$ of eigenvariables such that each $a_j$ appears in exactly one $\Sigma_i, \Delta_i$ (so in some active formulas of exactly one premise)  and does not appear in  $\Sigma', \Delta'$ nor $ !\Gamma,  ? \Pi$;
155
    \item A system $\system$ of rules must be closed under substitutions of free variables by terms (where these substitutions do not contain the eigenvariables $a_j$ in their domain or codomain).  
156
   \item $ \Sigma'$ (resp. $\Delta'$) does not contain any formula of the shape $?A$ (resp. $!A$).  
157
 \end{enumerate}
158
 
159
%The distinction between modal and nonmodal formulae in $(R)$ induces condition 1
160
 Conditions 2 and 3 are actually standard for nonlogical rules, independently of the logical setting, c.f.\ \cite{Beckmann11}. Condition 2 reflects the intuitive idea that often we need in our nonlogical rules a notion of \textit{bound} variables in the active formulas (typically for induction rules), and the eigenvariables play this role. Condition 3 is needed for our proof system to admit elimination of cuts on quantified formulas. Condition 4 and the conventions of 1 is peculiar to our linear logic setting in order to carry out certain proof-theoretic manipulations, mainly free-cut elimination in Sect.~\ref{sect:free-cut-elim}.
161
%  
162

    
163

    
164
 Observe that $\init$ rules can actually be seen as particular cases of $(R)$ rules, with no premise, so in the following we will only consider $(R)$ rules.
165
 
166
  
167
%  \patrick{Anupam: note that I had to strengthen the conditions for the rules (R). Condition (1) is needed 
168
%  to be able to commute a cut with (R), in the case where this cut is with a principal formula of a   ($\rigrul{!}$) rule. 
169
%  
170
%  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).
171
%  }
172
  
173

    
174
  
175
    
176
    To each theory $\theory$ we formally associate the system obtained by adding $\seqar A$ as an $\init$ rule for each $A \in \theory$.\footnote{Notice that this naively satisfies condition 3 since theories consist of only closed formulae.}  A proof in such a system will be called a \textit{ $\mathcal T$-proof}, or just {proof} when there is no risk of confusion.
177
%    
178
%  
179
%  In what follows we will be interested in an example of theory  $\mathcal T$ which is a form of arithmetic.
180
   
181
   Let us give an example of a possible nonlogical rule that appears later in Sect.~\ref{sect:arithmetic}:
182
   
183
   \[
184
	\vliinf{\ind}{}{ !\word(t), !\Gamma , A(\epsilon) \seqar A(t) , ?\Delta }{!\Gamma , !\word(a), A(a) \seqar A(s_0 a ), ?\Delta }{ !\Gamma , !\word(a), A(a) \seqar A(s_1 a ), ?\Delta }
185
\]
186

    
187
So here we have $I=\{0,1\}$ (two premises), $\Sigma_i=!\word(a), A(a)$ and $\Delta_i= A(s_i a )$ for $i=0,1$, $\Sigma'= !\word(t), A(\epsilon)$, $\Delta'= A(t)$. So condition 2 is satisfied provided $a\notin FV(!\Gamma, ?\Delta)$ and $a \notin FV(t)$. 
188
%\[
189
%	\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}
190
%	\]
191

    
192
  
193
  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.
194
%   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}.
195
%  
196
%  As usual rules come with a notion of \textit{principal formulas}, which are a subset of the rules in the conclusion, e.g.:
197
%  $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;
198
%   $\Sigma', \Delta'$ in rule (R).
199
  
200
 
201
% \anupam{15/04: add definitions of theories and systems, unions, rules vs axioms etc. and abuses of notation:
202
% 	sometimes use same symbol for theory and system if fixed in advance;
203
% 	sometimes coincide axiom with initial rule;
204
% 	}
205
 
206
\subsection{Some basic proof-theoretic results}
207
We briefly survey some well-known results for theories of linear logic, on which we rely in later sections.
208

    
209
A rule is \emph{invertible} if each of its upper sequents is derivable from its lower sequent.
210
\begin{proposition}
211
[Invertible rules, folklore]
212
\label{prop:invertible-rules}
213
The rules $\lefrul{\land}, \rigrul{\lor}, \lefrul{\lor}, \rigrul{\land}, \lefrul{\exists}, \rigrul{\forall}$ are invertible.
214
\end{proposition}
215
We will typically write $\inv{c}$ to denote the inverse derivation for a logical symbol $c$.
216

    
217
%[cite Avron:`semantics and proof theory of linear logic']
218
%
219
%We will make much use of the deduction theorem, allowing us to argue informally within a theory for hypotheses that have been promoted.
220
%
221
%%$$
222
%%	\vliiinf{}{}{ \seqar A}{ \seqar C}
223
%%	$$
224
%
225
%%\[
226
%%	\vliiinf{R}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
227
%%	\]
228

    
229
We also rely on the following result, which is also folklore but appeared before in \cite{Avron88}.
230

    
231
\begin{theorem}
232
	[Deduction, folklore]
233
	\label{thm:deduction}
234
	If $\theory$ is a theory, $A $ is a closed formula and $\mathcal T \cup\{A\}$ proves $B$, then $\mathcal{T}$ proves $!A \limp B$.
235
\end{theorem}
236

    
237
The occurrence of $!$ in the deduction theorem above is very important, and is also one of the reasons it can be difficult to reason informally in theories over linear logic.
238

    
239

    
240

    
241
%\subsection{Converting axioms to rules in $\MELLW$}
242
%
243
%\begin{proposition}
244
%	An axiom $\Ax$ of the form,
245
%	\[
246
%	A_1 \limp \vldots \limp A_m \limp !B_1 \limp \vldots \limp !B_n \limp C
247
%	\]
248
%	is equivalent (over propositional $\LL$) to the rule $\Rl$:
249
%	\[
250
%	\vliiinf{\Rl}{}{ !\Gamma , A_1 , \dots , A_m \seqar C , ? \Delta  }{ !\Gamma \seqar B_1 , ?\Delta }{\vldots }{ !\Gamma \seqar B_n , ?\Delta}
251
%	\]
252
%\end{proposition}
253
%\begin{proof}
254
%	Let us first assume $\Ax$ and derive $\Rl$. From the axiom and Currying, we have a proof of:
255
%	\begin{equation}\label{eqn:curried-axiom}
256
%	A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C
257
%	\end{equation}
258
%	
259
%	This can simply be cut against each of the premisses of $\Rl$, applying appropriate contractions and necessitations, to derive it:
260
%	\[
261
%	\vlderivation{
262
%		\vliq{c}{}{!\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta }{
263
%			\vliin{\cut}{}{!\Gamma, \dots , !\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta, \dots , ?\Delta }{
264
%				\vlin{!}{}{!\Gamma \seqar !B_n, ?\Delta }{\vlhy{!\Gamma \seqar B_n , ?\Delta }}
265
%			}{
266
%			\vliin{\cut}{}{\qquad \qquad \qquad \qquad  \vlvdots \qquad \qquad \qquad \qquad }{
267
%				\vlin{!}{}{!\Gamma \seqar !B_1 , ?\Delta}{\vlhy{!\Gamma \seqar B_1, ?\Delta }}
268
%			}{\vlhy{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C } }
269
%		}
270
%	}
271
%}
272
%\]
273
%
274
%Now let us prove $\Ax$ (again in the form of \eqref{eqn:curried-axiom}) by using $\Rl$ as follows:
275
%\[
276
%\vliiinf{\Rl}{}{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C }{  \vlderivation{
277
%		\vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_1 }{
278
%			\vlin{!}{}{!B_1 \seqar B_1 }{
279
%				\vlin{\id}{}{B_1 \seqar B_1 }{\vlhy{}}
280
%			}
281
%		}
282
%	}  }{\vldots}{
283
%	\vlderivation{
284
%		\vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_n }{
285
%			\vlin{!}{}{!B_n \seqar B_n }{
286
%				\vlin{\id}{}{B_n \seqar B_n }{\vlhy{}}
287
%			}
288
%		}
289
%	}
290
%}
291
%\]
292
%\end{proof}
293
%
294
%
295
%\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.
296
%
297
%
298
%
299
%\begin{corollary}
300
%	The induction axiom of $A^1_2$ is equivalent to the rule:
301
%	\[
302
%	\vliinf{}{(x \notin \FV(\Gamma, \Delta))}{ !\Gamma , !N(t), A(\epsilon) \seqar A(t) , ?\Delta }{ !\Gamma , !N(x), A(x) \seqar A(s_0 x ), ?\Delta }{ !\Gamma, !N(x),  A(x) \seqar A( s_1 x ) , ?\Delta}
303
%	\]
304
%\end{corollary}
305
%\begin{proof}
306
%	By proposition above, generalisation and Currying.
307
%\end{proof}
308
%
309
%\begin{proposition}
310
% The following induction rule is derivable from the one of the previous corollary:
311
%\[
312
%	\vliinf{}{(a, \vec{v}, \vec{x} \notin \FV(\Gamma, \Delta))}{ !\Gamma , !N(\vec{w}), N(\vec{y}), !N(t)  \seqar A(t,\vec{w},\vec{y}) , ?\Delta }{ !\Gamma ,  !N(\vec{v}), N(\vec{x}) \seqar A(\epsilon,\vec{v},\vec{x}), ?\Delta }{ !\Gamma ,  !N(\vec{v}), N(\vec{x}),    A(a,\vec{v},\vec{x}) \seqar  A(s_ia,\vec{v},\vec{x}) , ?\Delta}
313
%	\]
314
%where the second premise corresponds actually to two premises, one for $i=0$ and one for $i=1$.
315
%\end{proposition}
316
%\subsection{Prenexing}
317
%%In the presence of weakening we have a prenex normal form due to the following:
318
%%
319
%%\[
320
%%\vlderivation{
321
%%	\vlin{}{}{\exists x . A \lor B \seqar \exists x . (A(x) \lor B) }{
322
%%		
323
%%		}
324
%%	}
325
%%\]
326
%
327
%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?