Révision 59

CSL16/bc-convergence.tex (revision 59)
3 3

  
4 4
\anupam{In this section, use whatever form of the deduction theorem is necessary and reverse engineer precise statement later.}
5 5

  
6
\subsection{Equational specifications and convergence statements}
6 7

  
8

  
9

  
7 10
\subsection{Bellantoni-Cook programs}
8 11
%We first recall the notion of safe recursion on notation from BC. TODO
9 12
We recall the Bellantoni-Cook  algebra BC of programs defined by safe recursion on notation. These will be employed for proving both the completeness   (all polynomial time functions are provably total) and the soundness result (all provably total functions are polynomial time) of our system.
CSL16/macros.tex (revision 59)
31 31
	\newcommand{\FV}{\mathit{FV}}
32 32
	
33 33
	
34
	%specification
35
	
36
	\newcommand{\eqspec}{\mathcal E}
37
	
34 38
	% theories
35 39
	
36 40

  
......
111 115
	\newcommand{\pind}{\mathit{PIND}}
112 116
	\newcommand{\cax}[2]{#1\text{-}#2}
113 117

  
114
	\newcommand{\sigone}{\Sigma^{\nat, +}_1 }
118
	\newcommand{\sigone}{\Sigma^{\word, +}_1 }
115 119
	\newcommand{\bharith}{A^1_2}
116 120
	\newcommand{\arith}{I\sigone}
117 121
	
CSL16/wfm.tex (revision 59)
1 1
\section{Witness function method}
2 2
We now prove the converse to the last section: any provably convergent function in $\arith$ is polynomial-time computable.
3 3
To this end we use the so-called \emph{witness function method} (WFM), a common technique in {bounded arithmetic}.
4
Usually, the idea is to rely on free-cut elimination to control the quantifer complexity of formulae occurring in a proof
4
Usually, the idea is to rely on free-cut elimination to control the quantifer complexity of formulae occurring in a proof.
5 5
Here we furthermore rely on free-cut elimination to control the use of contraction in a proof, to which we have access via the modalities of linear logic.
6 6

  
7 7
The WFM differs from realisability and Dialectica style witnessing arguments mainly since it does not require functionals at higher type. Instead a translation is conducted directly from a proof in De Morgan normal form, i.e.\ with negation pushed to the atoms, relying crucially on classical logic. Free-cut elimination is employed to control the logical complexity of formulae occurring in a proof, and a formal `witness' predicate plays a similar role to the realisability predicate.
......
34 34
		
35 35
		\subsection{The translation}
36 36
		
37
We will associate to each (free-cut free) proof of a convergence statement in $\arith$ a function on $\Word$ defined by a BC program. In the next section we will show that this function satisfies the equational specification of the convergence statement, hence showing that any provably convergent function of $\arith$ is polynomial-time computable.
38
		
37 39
		\begin{definition}
38 40
			[Typing]
39
			To each $\Sigma^\nat_1$-formula $A$ we associate a sorted tuple of variables $\type (A)$, intended to range over $\Nat$, as follows:
41
			To each $\sigone$-formula $A$ we associate a sorted tuple of variables $\type (A)$, intended to range over $\Word$, as follows:
40 42
			\[
41 43
			\begin{array}{rcll}
42 44
			\type (\nat (t)) & := & (;x^{\nat (t)} ) & \\
......
52 54
		\end{definition}
53 55
		
54 56
		
55
		\anupam{need to account for normality and safety somewhere. Attempting inlined and leaving types without this decoration.}
57
%		\anupam{need to account for normality and safety somewhere. Attempting inlined and leaving types without this decoration.}
58
%		
59
%		\begin{remark}
60
%			[Distribution of $!$]
61
%			There is a potential issue that the $!$ contains $\lor$ symbols in its scope, whence we do not in general have $!(A \lor B) \cong !A \lor !B$. However this will not be a problem here by inspection of a convergence statement: there are no $\lor$ symbols in the scope of a $!$. Therefore, after free-cut elimination, no formula in the proof will have this property either.
62
%			
63
%			On the other hand, since we are working in affine logic, we do in general have $!(A \land B) \cong !A \land !B$.
64
%		\end{remark}
56 65
		
57
		\begin{remark}
58
			[Distribution of $!$]
59
			There is a potential issue that the $!$ contains $\lor$ symbols in its scope, whence we do not in general have $!(A \lor B) \cong !A \lor !B$. However this will not be a problem here by inspection of a convergence statement: there are no $\lor$ symbols in the scope of a $!$. Therefore, after free-cut elimination, no formula in the proof will have this property either.
60
			
61
			On the other hand, since we are working in affine logic, we do in general have $!(A \land B) \cong !A \land !B$.
62
		\end{remark}
66
		This sorted tuple corresponds to the input variables, normal and safe, for the BC programs that we will define. It becomes important here that we are considering proofs of a convergence statement, since a free-cut free $\arith$-proof of a convergence statement cannot contain any $\lor$ symbols in the scope of a $!$. This could cause an issue in the above definition since we do not in general have the equivalence $!(A \lor B) \equiv !A \lor !B$. On the other hand, the equivalence $!(A\land B) \equiv !A \land !B$ follows since we are in the affine setting.
63 67
		
68
		One issue is that a convergence statement contains universal quantifiers (from the equational specification), which is problematic for the extraction of functions by the WFM, and we have not given a typing case for it above.\footnote{Intuitively universal quantifiers can be interpreted by type 1 functions. From here, in an intuitionistic setting, a $\forall$-right step can be directly realised, but in the classical setting the presence of side-formulae on the right can cause issues for constructivity.}
69
		We avoid this problem by use of the deduction theorem and invertibility arguments, as we did before for the axioms.\anupam{Reference earlier lemmas/theorems}
70
		
71
		Let us fix a particular convergence statement for an equational specification $\eqspec$. 
72
		
73
		
64 74
		\begin{definition}
65 75
			[Translation]
66
			We give a translation of free-cut free $\Sigma^\nat_1$-$\pind$ proofs $\pi$ of sequents $\Gamma(\vec a) \seqar \Delta(\vec a)$ to BC-programs for a vector of functions $\vec f^\pi$ with argument of type $\type \left(\bigotimes\Gamma\right)$ such that $|\vec f^\pi | = | \type\left(\bigparr\Delta\right)|$.
76
			We give a translation of free-cut free $\Sigma^\nat_1$-$\pind \cup \Phi$ proofs $\pi$ of sequents $\Gamma(\vec a) \seqar \Delta(\vec a)$ to BC-programs for a vector of functions $\vec f^\pi$ with argument of type $\type \left(\bigotimes\Gamma\right)$ such that $|\vec f^\pi | = | \type\left(\bigparr\Delta\right)|$.
67 77
			
68 78
			
69 79
			The translation is by induction on the size of a free-cut free proof, so we proceed by analysis of the final step of a proof.
CSL16/arithmetic.tex (revision 59)
87 87
We write $I\Xi$ to denote the theory consisting of $\basic$ and $\cax{\Xi}{\ind}$.
88 88
\end{definition}
89 89

  
90

  
91
\anupam{in fact just give general case for a universal closed formula. Then remark about invertibility of negation giving purely positive initial steps. These occur in section 6 so no need to write them out here.}
90 92
\begin{proposition}
91 93
[Equivalent rules]
92 94
$\basic$ is equivalent to the following set of rules,

Formats disponibles : Unified diff