| 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.
|