Révision 222 CSL17/arithmetic.tex

arithmetic.tex (revision 222)
140 140
\end{itemize}
141 141

  
142 142

  
143
\subsection{Encoding sequences in the arithmetic}
144
\todo{}
145 143

  
146
\anupam{Assume we have a $\Sigma^\safe_1$ predicate $\beta(i,x,y)$, expressing that the $i$th element of the sequence $x$ is $y$, such that $\arith^1 \proves \forall i^\normal , x^\safe . \exists ! y^\safe . \beta (i,x,y)$.}
147 144

  
148

  
149 145
\subsection{A sequent calculus presentation}
150 146

  
151 147
 We denote sequence as $\Gamma \seqar \Delta$ where $\Gamma$, $\Delta$ are multi sets of formulas. The sequent calculus rules are displayed on Fig. \ref{fig:sequentcalculus} in Appendix~\ref{sect:app-sequent-calculus}.
......
232 228

  
233 229
 The sequent calculus for $\arith^i$ is that of Fig. \ref{fig:sequentcalculus} extended with the $\basic$,  $\cpind{\Sigma^\safe_i } $ and $\rais$ nonlogical rules.
234 230
 
235
 \begin{lemma}
236
 For any term $t$, its free variables can be split in two sets $\vec{x}$ and $\vec{y}$ such  that the sequent $\normal(\vec x), \safe(\vec y) \seqar \safe(t)$ is provable. 
237
 \end{lemma}
238
 
239
\subsection{Free-cut free normal form of proofs}
240
\todo{State theorem, with references (Takeuti, Cook-Nguyen) and present the important corollaries for this work.}
241

  
242
Since our nonlogical rules may have many principal formulae on which cuts may be anchored, we need a slightly more general notion of principality.
243
    \begin{definition}\label{def:anchoredcut}
244
  We define the notions of \textit{hereditarily principal formula} and \textit{anchored cut} in a $\system$-proof, for a system $\system$, by mutual induction as follows:
245
  \begin{itemize}
246
  \item A formula $A$ in a sequent $\Gamma \seqar \Delta$ is \textit{hereditarily principal} for a rule instance (S) if either (i) the sequent is in the conclusion of (S) and $A$ is principal in it, or 
247
(ii)  the sequent is in the conclusion of an anchored cut, the direct ancestor of $A$ in the corresponding premise is hereditarily principal for the rule instance (S), and the rule (S) is nonlogical.
248
  \item A cut-step is an \textit{anchored cut} if the two occurrences of its cut-formula $A$ in each premise are hereditarily principal for nonlogical steps, or one is hereditarily principal for a nonlogical step and the other one is principal for a logical step.
249
  \end{itemize}
250
     A cut which is not anchored will also be called a \textit{free-cut}.
251
  \end{definition}
252
  As a consequence of this definition, an anchored cut on a formula $A$ has the following properties:
253
  \begin{itemize}
254
  \item At least one of the two premises of the cut has above it a sub-branch of the proof which starts (top-down) with a nonlogical step (R) with $A$ as one of its principal formulas, and then a sequence of anchored cuts in which $A$ is part of the context.
255
  \item The other premise is either of the same form or is a logical step with principal formula $A$. 
256
  \end{itemize}
257
   
258
   Now we have (see \cite{Takeuti87}): 
259
   \begin{theorem}
260
   [Free-cut elimination]\label{thm:freecutelimination}
261
   \label{thm:free-cut-elim}
262
    Given a system  $\mathcal{S}$, any  $\mathcal{S}$-proof $\pi$ can be transformed into a $\system$-proof $\pi'$ with same end sequent and without any free-cut.
263
   \end{theorem}
264
   Now we want to deduce from that theorem a normal form property for proofs of certain formulas. But before that let us define some particular classes of sequents and proofs.
265
   
266
   Say that a sequent $\Gamma \seqar \Delta$ is \textit{well-typed} if for any free variable $x$ occurring in $\Gamma$ or $\Delta$, there exists a formula $\safe(x)$ or $\normal(x)$ in $\Gamma$. A proof is well-typed if its sequence are.
267
   
268
   \begin{lemma}\label{lem:welltyped}
269
   If a well-typed sequent $\Gamma \seqar \Delta$ is provable, then there exists $\vec u$  such that
270
 the sequent $\normal(\vec u), \Gamma \seqar \Delta$ admits a well-typed proof.
271
   \end{lemma}
272
   \patrick{It seems to me the statement had to be modified so as to prove the lemma. Maybe I misunderstand something.}
273
   \begin{proof}[Proof sketch]
274
   First by Thm \ref{thm:freecutelimination} we know that $\Gamma \seqar \Delta$ admits a proof $\pi$ without any free-cut. Let us then prove that $\pi$ can be transformed in a proof $\pi'$ of conclusion of the form  $\normal(\vec u), \Gamma \seqar \Delta$ and such that, for any sequent, if it is well-typed then its premises are well-typed.
275
  
276
   Observe first that by definition of $\arith^i$ and the absence of free cut, all quantifiers occurring in a formula of the proof are of one of the forms
277
   $\forall^{\safe}$,   $\exists^{\safe}$,  $\forall^{\normal}$,   $\exists^{\normal}$, and for the last two ones they are sharply bounded.
278
  
279
  Then, one can check that for all rules but the quantifier rules and the cut rule, if the conclusion is well-typed, then so are the two premises.  For the remaining rules, $\forall-r$ and $\exists-l$ are unproblematic, because of the observation above. Let us now examine the case of $\exists-r$, with a $\safe$ label, and the other rules can be treated in the same way. In the premise we get a formula $\safe(t) \cand A(t)$. Then what we do is that, if  $\vec u$ denote the free variables of $t$, we add to the context of all sequents of the proof $\normal(\vec u)$. We obtain in this way a valid proof new proof,  and the premises of the rule have become well-typed.
280
       \end{proof}
281
     
282
     \patrick{As mentioned after Def 14, I don't think that we can prove that the proofs we consider are equivalent to integer positive proofs, by arguing that negative occurrences $\neg \safe(t)$ could be replaced by 'false', by using the lemma above. Indeed even if for all its free variables we have $\safe(\vec x)$, $\normal(\vec u)$ on the l.h.s. of the sequent, it is not clear to me why that would prove $\safe(t)$. My proposition is thus to restrict 'by definition' of $\arith^i$ to integer positive formulas.}
283
     
284
 \begin{theorem}
285
   Assume the $\arith^i$ sequent calculus proves a closed formula $\forall \vec u^\normal . \forall \vec x^\safe . \exists y^\safe . A(\vec u ; \vec x , y)$. Then there exists a proof $\pi$ of the sequent 
286
   $\normal(\vec u), \safe(\vec x) \seqar \exists y^\safe . A(\vec u ; \vec x , y)$ satisfying:
287
   \begin{enumerate}
288
    \item $\pi$  only contains  $\Sigma^\safe_{i}$ formulas,
289
    \item $\pi$ is a well-typed and integer-positive proof. 
290
   \end{enumerate}
291
   \end{theorem}
231
\todo{Present typed variable free-cut free form.}
232
\anupam{I cut-and-pasted the rest of this section into appendices to save space. Move things back gradually.}

Formats disponibles : Unified diff