Statistiques
| Révision :

root / CSL16 / preliminaries.tex @ 79

Historique | Voir | Annoter | Télécharger (13,62 ko)

1
\section{Preliminaries}
2

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

    
5
\anupam{mention equality axioms and first-order theories and models at some point.}
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
\begin{definition}\label{def:LLsequentcalculus}
30
%[Sequent calculus for linear logic]
31
[Sequent calculus for affine linear logic]
32

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

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

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

    
92
\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, A }{\Gamma \seqar \Delta}
93
&
94
\vlinf{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, ?A, ?A}
95
\\
96
\noalign{\bigskip}
97
\vlinf{\lefrul{\exists}}{}{\Gamma, \exists x . A(x) \seqar \Delta}{\Gamma, A(a) \seqar \Delta}
98
&
99
\vlinf{\lefrul{\forall}}{}{\Gamma, \forall x. A(x) \seqar \Delta}{\Gamma, A(t) \seqar \Delta}
100
&
101
\vlinf{\rigrul{\exists}}{}{\Gamma \seqar \Delta, \exists x . A(x)}{ \Gamma \seqar \Delta, A(t)}
102
&
103
\vlinf{\rigrul{\forall}}{}{\Gamma \seqar \Delta, \forall x . A(x)}{ \Gamma \seqar \Delta, A(a) } \\
104
%\noalign{\bigskip}
105
% \vliinf{mix}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta}{\Sigma \seqar \Pi} &&&
106
\end{array}
107
\end{array}
108
\]
109
where $p$ atomic, $i \in \{ 1,2 \}$ and the eigenvariable $a$ does not occur free in $\Gamma$ or $\Delta$.
110
\end{definition}
111
  These rules will be called logical rules. As usual logical rules come with a notion of \textit{principal formulas}, which are a subset of the rules in the conclusion, e.g.:
112
  $A \lor B$ in rule $\lefrul{\lor}$ (and similarly for all rules for connectives); $?A$ in rule $\rigrul{\cntr}$.
113
     
114
 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.
115
 
116
  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.
117
  
118
    We will now consider extensions of linear logic with a \textit{theory}  $\mathcal T$ consisting in  a set of additional axioms and rules, altogether called \textit{non-logical rules}, depicted as:
119

    
120
 \[
121
 \begin{array}{cc}
122
  \vlinf{(ax)}{}{ \seqar A}{}  &  \vlinf{(R)}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
123
\end{array}
124
\]
125
  
126
 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:
127
 \begin{enumerate}
128
 \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   
129
$ !\Gamma,  ? \Pi$ are called \textit{context formulas}; in $(ax)$ $A$ is called a principal formula;
130
\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$;
131
    \item the class $\mathcal T$ of axioms and rules is closed by substitutions of free variables by terms (where these substitutions do not contain the eigenvariables $a_j$ in their domain or codomain).  
132
   \item $ \Sigma'$ (resp. $\Delta'$) does not contain any formula of the shape $?A$ (resp. $!A$).  
133
 \end{enumerate}
134
 Conditions 2 and 3 are actually standard for non-logical rules, independently of the logical setting, see \cite{Beckmann11}. Condition 2 reflects the intuitive idea that often we need in our non-logical rules a notion of \textit{bound} variables in the active formulas (typically for induction rules), and the eigenvariables play this r\^ole. Condition 3 is needed for our proof system to admit elimination of cuts on quantified formulas. Condition 4 is new and specific to our linear logic setting.
135
  
136
  Observe that $(ax)$ rules can actually be seen as particular cases of $(R)$ rules, with no premise, so in the following we will only consider $(R)$ rules.
137
  
138
%  \patrick{Anupam: note that I had to strengthen the conditions for the rules (R). Condition (1) is needed 
139
%  to be able to commute a cut with (R), in the case where this cut is with a principal formula of a   ($\rigrul{!}$) rule. 
140
%  
141
%  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).
142
%  }
143
  
144
  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.
145
  
146
  In the following we will be interested in an example of theory  $\mathcal T$ which is a form of arithmetic.
147
   
148
   Let us give an example of a possible rule (R) of a theory $\mathcal T$:
149
   
150
   \[
151
	\vlinf{(ind)}{}{ !\Gamma , N(t), A(0) \seqar A(t) , ?\Delta }{ !\Gamma , N(a), A(a) \seqar A(s a ), ?\Delta }
152
\]
153

    
154
So here we have $I=\{1\}$ (one premise), $\Sigma_1=N(a), A(a)$, $\Delta_1= A(s a )$, $\Sigma'= N(t), A(0)$, $\Delta'= A(t)$. So condition 2 is satisfied provided $a\notin FV(!\Gamma, ?\Delta)$ and $a \notin FV(t)$. 
155
%\[
156
%	\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}
157
%	\]
158

    
159
  
160
  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.
161
%   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}.
162
%  
163
%  As usual rules come with a notion of \textit{principal formulas}, which are a subset of the rules in the conclusion, e.g.:
164
%  $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;
165
%   $\Sigma', \Delta'$ in rule (R).
166
  
167
 
168
 \anupam{15/04: add definitions of theories and systems, unions, rules vs axioms etc. and abuses of notation:
169
 	sometimes use same symbol for theory and system if fixed in advance;
170
 	sometimes coincide axiom with initial rule;
171
 	}
172
 
173
\subsection{Deduction theorem}
174

    
175
[cite Avron:`semantics and proof theory of linear logic']
176

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

    
179
%$$
180
%	\vliiinf{}{}{ \seqar A}{ \seqar C}
181
%	$$
182

    
183
%\[
184
%	\vliiinf{R}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi  }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
185
%	\]
186

    
187
\begin{theorem}
188
	[Deduction]
189
	\label{thm:deduction}
190
	If $\mathcal T , A \proves B$ then $\mathcal{T} \proves !A \limp B$.
191
\end{theorem}
192

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

    
195
\anupam{commented converting rules to axioms section}
196

    
197
%\subsection{Converting axioms to rules in $\MELLW$}
198
%
199
%\begin{proposition}
200
%	An axiom $\Ax$ of the form,
201
%	\[
202
%	A_1 \limp \vldots \limp A_m \limp !B_1 \limp \vldots \limp !B_n \limp C
203
%	\]
204
%	is equivalent (over propositional $\LL$) to the rule $\Rl$:
205
%	\[
206
%	\vliiinf{\Rl}{}{ !\Gamma , A_1 , \dots , A_m \seqar C , ? \Delta  }{ !\Gamma \seqar B_1 , ?\Delta }{\vldots }{ !\Gamma \seqar B_n , ?\Delta}
207
%	\]
208
%\end{proposition}
209
%\begin{proof}
210
%	Let us first assume $\Ax$ and derive $\Rl$. From the axiom and Currying, we have a proof of:
211
%	\begin{equation}\label{eqn:curried-axiom}
212
%	A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C
213
%	\end{equation}
214
%	
215
%	This can simply be cut against each of the premisses of $\Rl$, applying appropriate contractions and necessitations, to derive it:
216
%	\[
217
%	\vlderivation{
218
%		\vliq{c}{}{!\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta }{
219
%			\vliin{\cut}{}{!\Gamma, \dots , !\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta, \dots , ?\Delta }{
220
%				\vlin{!}{}{!\Gamma \seqar !B_n, ?\Delta }{\vlhy{!\Gamma \seqar B_n , ?\Delta }}
221
%			}{
222
%			\vliin{\cut}{}{\qquad \qquad \qquad \qquad  \vlvdots \qquad \qquad \qquad \qquad }{
223
%				\vlin{!}{}{!\Gamma \seqar !B_1 , ?\Delta}{\vlhy{!\Gamma \seqar B_1, ?\Delta }}
224
%			}{\vlhy{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C } }
225
%		}
226
%	}
227
%}
228
%\]
229
%
230
%Now let us prove $\Ax$ (again in the form of \eqref{eqn:curried-axiom}) by using $\Rl$ as follows:
231
%\[
232
%\vliiinf{\Rl}{}{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C }{  \vlderivation{
233
%		\vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_1 }{
234
%			\vlin{!}{}{!B_1 \seqar B_1 }{
235
%				\vlin{\id}{}{B_1 \seqar B_1 }{\vlhy{}}
236
%			}
237
%		}
238
%	}  }{\vldots}{
239
%	\vlderivation{
240
%		\vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_n }{
241
%			\vlin{!}{}{!B_n \seqar B_n }{
242
%				\vlin{\id}{}{B_n \seqar B_n }{\vlhy{}}
243
%			}
244
%		}
245
%	}
246
%}
247
%\]
248
%\end{proof}
249
%
250
%
251
%\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.
252
%
253
%
254
%
255
%\begin{corollary}
256
%	The induction axiom of $A^1_2$ is equivalent to the rule:
257
%	\[
258
%	\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}
259
%	\]
260
%\end{corollary}
261
%\begin{proof}
262
%	By proposition above, generalisation and Currying.
263
%\end{proof}
264
%
265
%\begin{proposition}
266
% The following induction rule is derivable from the one of the previous corollary:
267
%\[
268
%	\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}
269
%	\]
270
%where the second premise corresponds actually to two premises, one for $i=0$ and one for $i=1$.
271
%\end{proposition}
272
%\subsection{Prenexing}
273
%%In the presence of weakening we have a prenex normal form due to the following:
274
%%
275
%%\[
276
%%\vlderivation{
277
%%	\vlin{}{}{\exists x . A \lor B \seqar \exists x . (A(x) \lor B) }{
278
%%		
279
%%		}
280
%%	}
281
%%\]
282
%
283
%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?