root / CSL16 / preliminaries.tex @ 37
Historique | Voir | Annoter | Télécharger (11,28 ko)
| 1 | 33 | adas | \section{Preliminaries}
|
|---|---|---|---|
| 2 | 33 | adas | |
| 3 | 33 | adas | \todo{consider removing and just have a section on linear logic, including free-cut elimination.}
|
| 4 | 33 | adas | |
| 5 | 33 | adas | |
| 6 | 33 | adas | |
| 7 | 33 | adas | |
| 8 | 33 | adas | \paragraph*{Notation}
|
| 9 | 33 | adas | Fix conventions here for use throughout: |
| 10 | 33 | adas | \begin{itemize}
|
| 11 | 33 | adas | \item Eigenvariables: $a, b , c$. |
| 12 | 33 | adas | \item (Normal) variables: $u,v,w$. (only when distinction is important, e.g.\ $u^{!\nat}$).
|
| 13 | 33 | adas | \item (Safe) variables: $x,y,z$. (as above, e.g.\ $x^\nat$.) |
| 14 | 33 | adas | \item Terms: $r,s,t$. |
| 15 | 33 | adas | \item Formulae: $A,B,C$. |
| 16 | 33 | adas | \item Atomic formulae: $p,q$. |
| 17 | 33 | adas | \item Free variables in a term, formula, sequent: $FV(u)$, $FV(A)$, $FV(\Gamma)$ |
| 18 | 33 | adas | \item Sequents: $\Gamma, \Delta, \Sigma, \Pi$. |
| 19 | 33 | adas | \item Proofs: $\pi, \rho, \sigma$. |
| 20 | 33 | adas | \item Theories: $\mathcal T$. Sequent systems: $\mathcal S$. |
| 21 | 33 | adas | \end{itemize}
|
| 22 | 33 | adas | |
| 23 | 33 | adas | \subsection{Linear logic}
|
| 24 | 33 | adas | |
| 25 | 33 | adas | \anupam{use a system that is already in De Morgan form, for simplicity.}
|
| 26 | 33 | adas | \anupam{Have skipped units, can reconsider this when in arithmetic. Also in affine setting can be recovered by any contradiction/tautology.}
|
| 27 | 33 | adas | |
| 28 | 33 | adas | \begin{definition}\label{def:LLsequentcalculus}
|
| 29 | 33 | adas | %[Sequent calculus for linear logic] |
| 30 | 33 | adas | [Sequent calculus for affine linear logic] |
| 31 | 33 | adas | |
| 32 | 33 | adas | \patrick{2Anupam: is there a reason for considering only axioms on atomic formulas $p$?}
|
| 33 | 33 | adas | |
| 34 | 33 | adas | \patrick{Note that here I changed the system to consider directly affine linear logic}
|
| 35 | 33 | adas | |
| 36 | 33 | adas | We define the following calculus in De Morgan normal form: |
| 37 | 33 | adas | \[ |
| 38 | 33 | adas | \begin{array}{l}
|
| 39 | 33 | adas | \begin{array}{cccc}
|
| 40 | 33 | adas | \vlinf{\lefrul{\bot}}{}{p, \lnot{p} \seqar }{}
|
| 41 | 33 | adas | & \vlinf{\id}{}{p \seqar p}{}
|
| 42 | 33 | adas | & \vlinf{\rigrul{\bot}}{}{\seqar p, \lnot{p}}{}
|
| 43 | 33 | adas | & \vliinf{\cut}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta, A }{\Sigma, A \seqar \Pi}
|
| 44 | 33 | adas | \\ |
| 45 | 33 | adas | \noalign{\bigskip}
|
| 46 | 33 | adas | %\text{Multiplicatives:} & & & \\
|
| 47 | 33 | adas | %\noalign{\bigskip}
|
| 48 | 33 | adas | \vliinf{\lefrul{\lor}}{}{\Gamma,\Sigma, A \lor B \seqar \Delta, \Pi}{\Gamma, A \seqar \Delta}{\Sigma , B \seqar \Pi}
|
| 49 | 33 | adas | & |
| 50 | 33 | adas | \vlinf{\lefrul{\land}}{}{\Gamma, A\land B \seqar \Delta}{\Gamma, A , B \seqar \Delta}
|
| 51 | 33 | adas | & |
| 52 | 33 | adas | \vlinf{\rigrul{\lor}}{}{\Gamma \seqar \Delta, A \lor B}{\Gamma \seqar \Delta, A, B}
|
| 53 | 33 | adas | & |
| 54 | 33 | adas | \vliinf{\rigrul{\land}}{}{\Gamma, \Sigma \seqar \Delta , \Pi , A \land B}{\Gamma \seqar \Delta , A}{\Sigma \seqar \Pi , B}
|
| 55 | 33 | adas | \\ |
| 56 | 33 | adas | \noalign{\bigskip}
|
| 57 | 33 | adas | %\text{Additives:} & & & \\
|
| 58 | 33 | adas | %\noalign{\bigskip}
|
| 59 | 33 | adas | \vliinf{\lefrul{\laor}}{}{\Gamma, A \laor B \seqar \Delta}{\Gamma , A \seqar \Delta}{\Gamma, B \seqar \Delta}
|
| 60 | 33 | adas | & |
| 61 | 33 | adas | \vlinf{\lefrul{\laand}}{}{\Gamma, A_1\laand A_2 \seqar \Delta}{\Gamma, A_i \seqar \Delta}
|
| 62 | 33 | adas | & |
| 63 | 33 | adas | %\vlinf{\lefrul{\laand}}{}{\Gamma, A\laand B \seqar \Delta}{\Gamma, B \seqar \Delta}
|
| 64 | 33 | adas | %\quad |
| 65 | 33 | adas | \vlinf{\rigrul{\laor}}{}{\Gamma \seqar \Delta, A_1\laor A_2}{\Gamma \seqar \Delta, A_i}
|
| 66 | 33 | adas | & |
| 67 | 33 | adas | %\vlinf{\rigrul{\laor}}{}{\Gamma \seqar \Delta, A\laor B}{\Gamma \seqar \Delta, B}
|
| 68 | 33 | adas | %\quad |
| 69 | 33 | adas | \vliinf{\rigrul{\laand}}{}{\Gamma \seqar \Delta, A \laand B }{\Gamma \seqar \Delta, A}{\Gamma \seqar \Delta, B}
|
| 70 | 33 | adas | \\ |
| 71 | 33 | adas | \noalign{\bigskip}
|
| 72 | 33 | adas | %\text{Exponentials:} & & & \\
|
| 73 | 33 | adas | %\noalign{\bigskip}
|
| 74 | 33 | adas | \vlinf{\lefrul{?}}{}{!\Gamma, ?A \seqar ?\Delta}{!\Gamma , A \seqar ?\Delta}
|
| 75 | 33 | adas | & |
| 76 | 33 | adas | \vlinf{\lefrul{!}}{}{\Gamma, !A \seqar \Delta}{\Gamma, A \seqar \Delta}
|
| 77 | 33 | adas | & |
| 78 | 33 | adas | \vlinf{\rigrul{?}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, A}
|
| 79 | 33 | adas | & |
| 80 | 33 | adas | \vlinf{\rigrul{!}}{}{!\Gamma \seqar ?\Delta, !A}{!\Gamma \seqar ?\Delta, A}
|
| 81 | 33 | adas | \\ |
| 82 | 33 | adas | \noalign{\bigskip}
|
| 83 | 33 | adas | %\text{Structural:} & & & \\
|
| 84 | 33 | adas | %\noalign{\bigskip}
|
| 85 | 33 | adas | |
| 86 | 33 | adas | %\vlinf{\lefrul{\wk}}{}{\Gamma, !A \seqar \Delta}{\Gamma \seqar \Delta} %% linear logic weakening
|
| 87 | 33 | adas | \vlinf{\lefrul{\wk}}{}{\Gamma, A \seqar \Delta}{\Gamma \seqar \Delta}
|
| 88 | 33 | adas | & |
| 89 | 33 | adas | \vlinf{\lefrul{\cntr}}{}{\Gamma, !A \seqar \Delta}{\Gamma, !A, !A \seqar \Delta}
|
| 90 | 33 | adas | & |
| 91 | 33 | adas | %\vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, ?A }{\Gamma \seqar \Delta} %% linear logic weakening
|
| 92 | 33 | adas | |
| 93 | 33 | adas | \vlinf{\rigrul{\wk}}{}{\Gamma \seqar \Delta, A }{\Gamma \seqar \Delta}
|
| 94 | 33 | adas | & |
| 95 | 33 | adas | \vlinf{\rigrul{\cntr}}{}{\Gamma \seqar \Delta, ?A}{\Gamma \seqar \Delta, ?A, ?A}
|
| 96 | 33 | adas | \\ |
| 97 | 33 | adas | \noalign{\bigskip}
|
| 98 | 33 | adas | \vlinf{\lefrul{\exists}}{}{\Gamma, \exists x . A(x) \seqar \Delta}{\Gamma, A(a) \seqar \Delta}
|
| 99 | 33 | adas | & |
| 100 | 33 | adas | \vlinf{\lefrul{\forall}}{}{\Gamma, \forall x. A(x) \seqar \Delta}{\Gamma, A(t) \seqar \Delta}
|
| 101 | 33 | adas | & |
| 102 | 33 | adas | \vlinf{\rigrul{\exists}}{}{\Gamma \seqar \Delta, \exists x . A(x)}{ \Gamma \seqar \Delta, A(t)}
|
| 103 | 33 | adas | & |
| 104 | 33 | adas | \vlinf{\rigrul{\forall}}{}{\Gamma \seqar \Delta, \forall x . A(x)}{ \Gamma \seqar \Delta, A(a) } \\
|
| 105 | 33 | adas | %\noalign{\bigskip}
|
| 106 | 33 | adas | % \vliinf{mix}{}{\Gamma, \Sigma \seqar \Delta , \Pi}{ \Gamma \seqar \Delta}{\Sigma \seqar \Pi} &&&
|
| 107 | 33 | adas | \end{array}
|
| 108 | 33 | adas | \end{array}
|
| 109 | 33 | adas | \] |
| 110 | 33 | adas | where $p$ atomic, $i \in \{ 1,2 \}$ and the eigenvariable $a$ does not occur free in $\Gamma$ or $\Delta$.
|
| 111 | 33 | adas | \end{definition}
|
| 112 | 33 | adas | 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 | 33 | adas | In the following though, by linear logic we will mean affine linear logic. |
| 114 | 33 | adas | |
| 115 | 33 | adas | 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 | 33 | adas | |
| 117 | 33 | adas | \[ |
| 118 | 33 | adas | \begin{array}{cc}
|
| 119 | 33 | adas | \vlinf{(ax)}{}{ \seqar A}{} & \vlinf{(R)}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
|
| 120 | 33 | adas | \end{array}
|
| 121 | 33 | adas | \] |
| 122 | 33 | adas | |
| 123 | 33 | adas | where in rule (R), $I$ is a finite set (indicating the number of premises) and we assume the following conditions: |
| 124 | 33 | adas | \begin{enumerate}
|
| 125 | 33 | adas | \item We have:$$ FV(\Sigma_i, \Delta_i) \cap FV(!\Gamma, ? \Pi)= FV(\Sigma_i, \Delta_i) \cap FV(\Sigma', \Delta')= \emptyset $$ |
| 126 | 33 | adas | \item $ \Sigma'$ (resp. $\Delta'$) does not contain any formula of the shape $?A$ (resp. $!A$). |
| 127 | 33 | adas | % \item $ \Sigma', \Delta'$ does not contain any formula of the shape $!A$ or $?A$. |
| 128 | 33 | adas | \end{enumerate}
|
| 129 | 33 | adas | |
| 130 | 33 | adas | \patrick{Anupam: note that I had to strengthen the conditions for the rules (R). Condition (1) is needed
|
| 131 | 33 | adas | 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 | 33 | adas | |
| 133 | 33 | adas | 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 | 33 | adas | } |
| 135 | 33 | adas | |
| 136 | 33 | adas | % \textit{for any $i\in I$, formulas in $\Sigma_i, \Delta_i$ do not share any free variable with $\Gamma, \Pi$.}
|
| 137 | 33 | adas | % |
| 138 | 33 | adas | % \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 | 33 | adas | % $$ FV(\Sigma_i, \Delta_i) \cap FV(!\Gamma, ? \Pi)= FV(\Sigma_i, \Delta_i) \cap FV(\Sigma', \Delta')= \emptyset $$ |
| 140 | 33 | adas | % 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 | 33 | adas | |
| 142 | 33 | adas | In the following we will be interested in an example of theory $\mathcal T$ which is a form of arithmetic. |
| 143 | 33 | adas | |
| 144 | 33 | adas | Let us give an example of a possible rule (R) of a theory $\mathcal T$: |
| 145 | 33 | adas | |
| 146 | 33 | adas | \[ |
| 147 | 33 | adas | \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 | 33 | adas | \] |
| 149 | 33 | adas | |
| 150 | 33 | adas | 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 | 33 | adas | %\[ |
| 152 | 33 | adas | % \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 | 33 | adas | % \] |
| 154 | 33 | adas | |
| 155 | 33 | adas | |
| 156 | 33 | adas | 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 | 33 | adas | 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 | 33 | adas | |
| 159 | 33 | adas | As usual rules come with a notion of \textit{principal formulas}, which are a subset of the rules in the conclusion, e.g.:
|
| 160 | 33 | adas | $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 | 33 | adas | $\Sigma', \Delta'$ in rule (R). |
| 162 | 33 | adas | |
| 163 | 33 | adas | |
| 164 | 33 | adas | \subsection{Deduction theorem}
|
| 165 | 33 | adas | |
| 166 | 33 | adas | [cite Avron:`semantics and proof theory of linear logic'] |
| 167 | 33 | adas | |
| 168 | 33 | adas | We will make much use of the deduction theorem, allowing us to argue informally within a theory for hypotheses that have been promoted. |
| 169 | 33 | adas | |
| 170 | 33 | adas | %$$ |
| 171 | 33 | adas | % \vliiinf{}{}{ \seqar A}{ \seqar C}
|
| 172 | 33 | adas | % $$ |
| 173 | 33 | adas | |
| 174 | 33 | adas | %\[ |
| 175 | 33 | adas | % \vliiinf{R}{}{ !\Gamma , \Sigma' \seqar \Delta' , ? \Pi }{ \{!\Gamma , \Sigma_i \seqar \Delta_i , ? \Pi \}_{i \in I} }
|
| 176 | 33 | adas | % \] |
| 177 | 33 | adas | |
| 178 | 33 | adas | \begin{theorem}
|
| 179 | 33 | adas | [Deduction] |
| 180 | 33 | adas | If $\mathcal T , A \proves B$ then $\mathcal{T} \proves !A \limp B$.
|
| 181 | 33 | adas | \end{theorem}
|
| 182 | 33 | adas | |
| 183 | 33 | adas | \todo{need that $A$ above is closed! Check for rules to axioms.}
|
| 184 | 33 | adas | |
| 185 | 33 | adas | |
| 186 | 33 | adas | |
| 187 | 33 | adas | \subsection{Converting axioms to rules in $\MELLW$}
|
| 188 | 33 | adas | |
| 189 | 33 | adas | \begin{proposition}
|
| 190 | 33 | adas | An axiom $\Ax$ of the form, |
| 191 | 33 | adas | \[ |
| 192 | 33 | adas | A_1 \limp \vldots \limp A_m \limp !B_1 \limp \vldots \limp !B_n \limp C |
| 193 | 33 | adas | \] |
| 194 | 33 | adas | is equivalent (over propositional $\LL$) to the rule $\Rl$: |
| 195 | 33 | adas | \[ |
| 196 | 33 | adas | \vliiinf{\Rl}{}{ !\Gamma , A_1 , \dots , A_m \seqar C , ? \Delta }{ !\Gamma \seqar B_1 , ?\Delta }{\vldots }{ !\Gamma \seqar B_n , ?\Delta}
|
| 197 | 33 | adas | \] |
| 198 | 33 | adas | \end{proposition}
|
| 199 | 33 | adas | \begin{proof}
|
| 200 | 33 | adas | Let us first assume $\Ax$ and derive $\Rl$. From the axiom and Currying, we have a proof of: |
| 201 | 33 | adas | \begin{equation}\label{eqn:curried-axiom}
|
| 202 | 33 | adas | A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C |
| 203 | 33 | adas | \end{equation}
|
| 204 | 33 | adas | |
| 205 | 33 | adas | This can simply be cut against each of the premisses of $\Rl$, applying appropriate contractions and necessitations, to derive it: |
| 206 | 33 | adas | \[ |
| 207 | 33 | adas | \vlderivation{
|
| 208 | 33 | adas | \vliq{c}{}{!\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta }{
|
| 209 | 33 | adas | \vliin{\cut}{}{!\Gamma, \dots , !\Gamma , A_1 , \dots , A_m \seqar C , ?\Delta, \dots , ?\Delta }{
|
| 210 | 33 | adas | \vlin{!}{}{!\Gamma \seqar !B_n, ?\Delta }{\vlhy{!\Gamma \seqar B_n , ?\Delta }}
|
| 211 | 33 | adas | }{
|
| 212 | 33 | adas | \vliin{\cut}{}{\qquad \qquad \qquad \qquad \vlvdots \qquad \qquad \qquad \qquad }{
|
| 213 | 33 | adas | \vlin{!}{}{!\Gamma \seqar !B_1 , ?\Delta}{\vlhy{!\Gamma \seqar B_1, ?\Delta }}
|
| 214 | 33 | adas | }{\vlhy{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C } }
|
| 215 | 33 | adas | } |
| 216 | 33 | adas | } |
| 217 | 33 | adas | } |
| 218 | 33 | adas | \] |
| 219 | 33 | adas | |
| 220 | 33 | adas | Now let us prove $\Ax$ (again in the form of \eqref{eqn:curried-axiom}) by using $\Rl$ as follows:
|
| 221 | 33 | adas | \[ |
| 222 | 33 | adas | \vliiinf{\Rl}{}{ A_1 , \dots , A_m , !B_1 , \dots , !B_n \seqar C }{ \vlderivation{
|
| 223 | 33 | adas | \vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_1 }{
|
| 224 | 33 | adas | \vlin{!}{}{!B_1 \seqar B_1 }{
|
| 225 | 33 | adas | \vlin{\id}{}{B_1 \seqar B_1 }{\vlhy{}}
|
| 226 | 33 | adas | } |
| 227 | 33 | adas | } |
| 228 | 33 | adas | } }{\vldots}{
|
| 229 | 33 | adas | \vlderivation{
|
| 230 | 33 | adas | \vlin{w}{}{ !B_1 , \dots , !B_n \seqar B_n }{
|
| 231 | 33 | adas | \vlin{!}{}{!B_n \seqar B_n }{
|
| 232 | 33 | adas | \vlin{\id}{}{B_n \seqar B_n }{\vlhy{}}
|
| 233 | 33 | adas | } |
| 234 | 33 | adas | } |
| 235 | 33 | adas | } |
| 236 | 33 | adas | } |
| 237 | 33 | adas | \] |
| 238 | 33 | adas | \end{proof}
|
| 239 | 33 | adas | |
| 240 | 33 | adas | |
| 241 | 33 | adas | \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 | 33 | adas | |
| 243 | 33 | adas | |
| 244 | 33 | adas | |
| 245 | 33 | adas | \begin{corollary}
|
| 246 | 33 | adas | The induction axiom of $A^1_2$ is equivalent to the rule: |
| 247 | 33 | adas | \[ |
| 248 | 33 | adas | \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 | 33 | adas | \] |
| 250 | 33 | adas | \end{corollary}
|
| 251 | 33 | adas | \begin{proof}
|
| 252 | 33 | adas | By proposition above, generalisation and Currying. |
| 253 | 33 | adas | \end{proof}
|
| 254 | 33 | adas | |
| 255 | 33 | adas | |
| 256 | 33 | adas | \subsection{Prenexing}
|
| 257 | 33 | adas | %In the presence of weakening we have a prenex normal form due to the following: |
| 258 | 33 | adas | % |
| 259 | 33 | adas | %\[ |
| 260 | 33 | adas | %\vlderivation{
|
| 261 | 33 | adas | % \vlin{}{}{\exists x . A \lor B \seqar \exists x . (A(x) \lor B) }{
|
| 262 | 33 | adas | % |
| 263 | 33 | adas | % } |
| 264 | 33 | adas | % } |
| 265 | 33 | adas | %\] |
| 266 | 33 | adas | |
| 267 | 33 | adas | 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? |