Statistiques
| Révision :

root / CSL16 / preliminaries.tex @ 44

Historique | Voir | Annoter | Télécharger (11,28 ko)

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 , N(t), 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?