root / CSL17 / tech-report / preliminaries.tex
Historique | Voir | Annoter | Télécharger (16,08 ko)
| 1 | 251 | adas | |
|---|---|---|---|
| 2 | 251 | adas | \section{Preliminaries}
|
| 3 | 251 | adas | \label{sect:prelims}
|
| 4 | 251 | adas | We introduce the polynomial hierarchy and its basic properties, then Bellantoni's characterisation of it based on safe recursion and minimisation \cite{bellantoni1995fph}.
|
| 5 | 251 | adas | |
| 6 | 251 | adas | %\anupam{Should recall polymax bounded functions and the polychecking lemma, e.g.\ from Bellantoni's FPH paper or thesis. Quite important, even if proof not given.}
|
| 7 | 251 | adas | |
| 8 | 251 | adas | \subsection{Polynomial hierarchy}
|
| 9 | 251 | adas | %(include closure properties) |
| 10 | 251 | adas | |
| 11 | 251 | adas | \begin{definition}
|
| 12 | 251 | adas | Given $i\geq 0$, a language $L$ belongs to the class $\sigp{i}$ if there exists a polynomial time predicate $A$ and a polynomial $q$ such that:
|
| 13 | 251 | adas | $$ x \in L \Leftrightarrow \exists y_1 \in \{0,1\}^{q(\size{x})}\forall y_2 \in \{0,1\}^{q(\size{x})}\dots Q_iy_i\in \{0,1\}^{q(\size{x})}\ A(x,y_1,\dots,y_i)=1$$
|
| 14 | 251 | adas | where $Q_i=\forall$ (resp. $Q_i=\exists$) if $i$ is even (resp. odd). |
| 15 | 251 | adas | |
| 16 | 251 | adas | The class $\pip{i}$ is defined similarly but with first quantifier $\forall$ instead of $\exists$.
|
| 17 | 251 | adas | \end{definition}
|
| 18 | 251 | adas | In particular: $\sigp{0}=\pip{0}=\ptime$, $\sigp{1}=\np$, $\pip{1}=\conp$. Note that for any $i$ we have $\pip{i}=\mathbf{co}\sigp{i}$ and $\sigp{i}\subseteq \pip{i+1}$, $\pip{i}\subseteq \sigp{i+1}$.
|
| 19 | 251 | adas | |
| 20 | 251 | adas | The polynomial hierarchy is defined as $\ph:=\cup_i \sigp{i}$, and we also have $\ph=\cup_i \pip{i}$.
|
| 21 | 251 | adas | |
| 22 | 251 | adas | Given a language $L$ we denote as $\fptime(L)$ the class of functions computable by a deterministic |
| 23 | 251 | adas | polynomial time Turing machine with oracle $L$. |
| 24 | 251 | adas | |
| 25 | 251 | adas | We now define the following function classes: |
| 26 | 251 | adas | \[ |
| 27 | 251 | adas | \begin{array}{lcl}
|
| 28 | 251 | adas | \fphi{i+1} &:= & \fptime(\sigp{i}),\\
|
| 29 | 251 | adas | \fph &:=& \cup_i \fphi{i}.
|
| 30 | 251 | adas | \end{array}
|
| 31 | 251 | adas | \] |
| 32 | 251 | adas | Notice that $ \fphi{i+1} = \fptime(\pip{i})= \fptime(\sigp{i}\cup \pip{i})$.
|
| 33 | 251 | adas | |
| 34 | 251 | adas | \subsection{Bellantoni-Cook characterisation of $\fptime$ using predicative recursion}
|
| 35 | 251 | adas | %(perhaps compare with Cobham's using limited recursion) |
| 36 | 251 | adas | % |
| 37 | 251 | adas | %\anupam{copied below from last year's paper}
|
| 38 | 251 | adas | |
| 39 | 251 | adas | We recall the Bellantoni-Cook algebra $\bc$ of functions defined by \emph{safe} (or \emph{predicative}) recursion on notation \cite{BellantoniCook92}.
|
| 40 | 251 | adas | These will be employed for proving both the soundness and completeness results later on. |
| 41 | 251 | adas | |
| 42 | 251 | adas | We consider functions $f$ over the domain $\Nat$ with sorted arguments $(\vec u ; \vec x)$, where the inputs $\vec u$ are called \textit{normal} and $\vec x$ are called \textit{safe}.
|
| 43 | 251 | adas | %Each symbol is given with an arity $m$ and a number $n\leq m$ of normal arguments, and will be denoted as $f(\vec{u};\vec{x})$ where $\vec{u}$ (resp. $\vec{x}$) are the normal (resp. safe) arguments.
|
| 44 | 251 | adas | %We say that an expression is well-sorted if the arities of function symbols in it is respected. |
| 45 | 251 | adas | |
| 46 | 251 | adas | %\patrick{Note that below I used the terminology 'BC programs', to distinguish them from 'functions' in the extensional sense, which I find clearer. But if you prefer to keep 'BC functions' it is all right for me.}
|
| 47 | 251 | adas | \begin{definition}
|
| 48 | 251 | adas | [$\bc$ programs] |
| 49 | 251 | adas | $\bc$ contains the following initial functions: |
| 50 | 251 | adas | % \paragraph{Initial functions}
|
| 51 | 251 | adas | % The initial functions are: |
| 52 | 251 | adas | |
| 53 | 251 | adas | \begin{enumerate}
|
| 54 | 251 | adas | \item The constant functions $0 (\vec u ; \vec x) \dfn 0$, for each $|\vec u|$ and $| \vec x|$. |
| 55 | 251 | adas | \item The projection functions $\pi^{m,n}_k ( a_1 , \dots , a_m ; a_{m+1} , \dots, a_{m+n} ) := a_k$ for $1 \leq k \leq m+n$.
|
| 56 | 251 | adas | \item The successor functions $\succ i ( ; x) \dfn 2x +i$ for $i = 0,1$. |
| 57 | 251 | adas | \item The predecessor function $\pred (; x) \dfn \hlf{x}$.
|
| 58 | 251 | adas | \item The conditional function |
| 59 | 251 | adas | \( |
| 60 | 251 | adas | \cond(;x,y,z) |
| 61 | 251 | adas | \dfn |
| 62 | 251 | adas | \begin{cases}
|
| 63 | 251 | adas | y & x = 0\ \mathrm{mod}\ 2 \\
|
| 64 | 251 | adas | z & x = 1\ \mathrm{mod}\ 2
|
| 65 | 251 | adas | \end{cases}
|
| 66 | 251 | adas | \) |
| 67 | 251 | adas | \end{enumerate}
|
| 68 | 251 | adas | |
| 69 | 251 | adas | \medskip |
| 70 | 251 | adas | \noindent |
| 71 | 251 | adas | $\bc$ is closed under the following operations: |
| 72 | 251 | adas | |
| 73 | 251 | adas | |
| 74 | 251 | adas | |
| 75 | 251 | adas | \begin{enumerate}
|
| 76 | 251 | adas | \setcounter{enumi}{5}
|
| 77 | 251 | adas | \item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is $f$ defined by, |
| 78 | 251 | adas | \[ |
| 79 | 251 | adas | \begin{array}{rcll}
|
| 80 | 251 | adas | f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) & \\ |
| 81 | 251 | adas | f (\succ 0 u , \vec v ; \vec x ) & := & h_0 ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) ) & \text{when $u \neq 0$} \\
|
| 82 | 251 | adas | f (\succ 1 u , \vec v ; \vec x ) & := & h_1 ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) ) & |
| 83 | 251 | adas | \end{array}
|
| 84 | 251 | adas | \] |
| 85 | 251 | adas | so long as the expressions are well-formed. % (i.e.\ in number/sort of arguments). |
| 86 | 251 | adas | \item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by, |
| 87 | 251 | adas | \[ |
| 88 | 251 | adas | f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) ) |
| 89 | 251 | adas | \] |
| 90 | 251 | adas | so long as the expression is well-formed. |
| 91 | 251 | adas | \end{enumerate}
|
| 92 | 251 | adas | \end{definition}
|
| 93 | 251 | adas | %Note that the programs of this class can be defined by equational specifications in a natural way, and in the following we will thus silently identify a BC program with the corresponding equational specification. |
| 94 | 251 | adas | |
| 95 | 251 | adas | We will refer to the expressions or terms built up from the rules above as `$\bc$-programs', although we consider $\bc$ itself to be an algebra of functions. |
| 96 | 251 | adas | The main property of $\bc$ is: |
| 97 | 251 | adas | \begin{theorem}[\cite{BellantoniCook92}]
|
| 98 | 251 | adas | $\bc =\fptime$. |
| 99 | 251 | adas | \end{theorem}
|
| 100 | 251 | adas | |
| 101 | 251 | adas | %Actually this property remains true if one replaces the PRN scheme by the following more general simultaneous PRN scheme \cite{BellantoniThesis}:
|
| 102 | 251 | adas | % |
| 103 | 251 | adas | %$(f^j)_{1\leq j\leq n}$ are defined by simultaneous PRN scheme from $(g^j)_{1\leq j\leq n}$, $(h^j_0, h^j_1)_{1\leq j\leq n}$ if for $1\leq j\leq n$ we have:
|
| 104 | 251 | adas | %\[ |
| 105 | 251 | adas | %\begin{array}{rcl}
|
| 106 | 251 | adas | %f^j(0, \vec v ; \vec x) & := & g^j(\vec v ; \vec x) \\ |
| 107 | 251 | adas | %f^j(\succ i u , \vec v ; \vec x ) & := & h^j_i ( u , \vec v ; \vec x , \vec{f} (u , \vec v ; \vec x) )
|
| 108 | 251 | adas | %\end{array}
|
| 109 | 251 | adas | %\] |
| 110 | 251 | adas | %for $i = 0,1$, so long as the expressions are well-formed. |
| 111 | 251 | adas | |
| 112 | 251 | adas | %\anupam{simultaneous recursion?}
|
| 113 | 251 | adas | |
| 114 | 251 | adas | %\anupam{also identity, hereditarily safe, expressions, etc.}
|
| 115 | 251 | adas | |
| 116 | 251 | adas | %\anupam{we implicitly associate a BC program with its equational specification}
|
| 117 | 251 | adas | |
| 118 | 251 | adas | Consider a well-formed expression $t$ built from function symbols and variables. We say that a variable $y$ occurs \textit{hereditarily safe} in $t$ if, for every subexpression $f(\vec{r}; \vec{s})$ of $t$, the terms in $\vec{r}$ do not contain $y$.
|
| 119 | 251 | adas | For instance $y$ occurs hereditarily safe in $f(u;y,g(v;y))$, but not in $f(g(v;y);x)$. |
| 120 | 251 | adas | \begin{proposition}
|
| 121 | 251 | adas | [Properties of $\bc$ programs] |
| 122 | 251 | adas | \label{prop:bc-properties}
|
| 123 | 251 | adas | We have the following properties: |
| 124 | 251 | adas | \begin{enumerate}
|
| 125 | 251 | adas | \item The identity function is in $\bc$. |
| 126 | 251 | adas | \item Let $t$ be a well-formed expression built from $\bc$ programs and variables, denote its free variables as $\{u_1,\dots, u_n,x_1,\dots, x_k\}$, and assume for each $1\leq i\leq k$, $x_i$ is hereditarily safe in $t$. Then the function $f(u_1,\dots, u_n; x_1,\dots, x_k):=t$ is in $\bc$.
|
| 127 | 251 | adas | \item If $f$ is a $\bc$ program, then the function $g(\vec{u},v;\vec{x})$ defined as $f(\vec{u};v,\vec{x})$
|
| 128 | 251 | adas | is also a $\bc $ program. |
| 129 | 251 | adas | \end{enumerate}
|
| 130 | 251 | adas | |
| 131 | 251 | adas | %\begin{proposition}
|
| 132 | 251 | adas | %[Properties of BC programs] |
| 133 | 251 | adas | %\label{prop:bc-properties}
|
| 134 | 251 | adas | %We have the following properties: |
| 135 | 251 | adas | %\begin{enumerate}
|
| 136 | 251 | adas | %\item Hereditarily safe expressions over BC programs are BC definable. |
| 137 | 251 | adas | %\item Can pass safe input to normal input. |
| 138 | 251 | adas | %\end{enumerate}
|
| 139 | 251 | adas | \end{proposition}
|
| 140 | 251 | adas | |
| 141 | 251 | adas | %\nb{TODO: extend with $\mu$s.}
|
| 142 | 251 | adas | |
| 143 | 251 | adas | %\anupam{Should add $+(;x,y)$ as a basic function (check satisfies polychecking lemma!), since otherwise not definable with safe input. Then define unary successor $\succ{} (;x)$ as $+(;x,\succ 1 0)$. }
|
| 144 | 251 | adas | |
| 145 | 253 | pbaillot | We denote $|x|=\ulcorner \log(x+1) \urcorner.$ |
| 146 | 251 | adas | \begin{example}
|
| 147 | 251 | adas | [Some simple functions] |
| 148 | 251 | adas | \label{ex:simple-bc-fns}
|
| 149 | 251 | adas | % \todo{Boolean predicates $\notfn, \andfn, \orfn, \equivfn$ .}
|
| 150 | 251 | adas | % \todo{$\bit$}
|
| 151 | 251 | adas | Observe that: |
| 152 | 251 | adas | \begin{itemize}
|
| 153 | 251 | adas | \item The boolean predicates $\notfn (;x)$, $\andfn(;x,y)$, $\orfn(;x,y)$, $\equivfn(;x,y)$ can all be defined on safe arguments, simply by computing by case distinction using the conditional function. |
| 154 | 251 | adas | %\item $\bit(l;x)$ returns the $\mode l$th bit of $x$. |
| 155 | 251 | adas | \item We can define the function $\bit(l;x)$ which returns the $|l|$th least significant bit of $x$. For instance $\bit(11;1101)=0$. |
| 156 | 251 | adas | |
| 157 | 253 | pbaillot | For that let us first define the function $\shorten(l;x)$ which returns the $|x|- |l|$ prefix of $x$, as follows: |
| 158 | 251 | adas | \begin{eqnarray*}
|
| 159 | 251 | adas | \shorten(0;x) &=&x\\ |
| 160 | 251 | adas | \shorten(\succ{i}l;x) &=&p(;\shorten(l;x))
|
| 161 | 251 | adas | \end{eqnarray*}
|
| 162 | 251 | adas | Then we define $\bit(l;x)$ as follows: |
| 163 | 251 | adas | $$\bit(l;x)=C(;\shorten(l;x),0,1).$$ |
| 164 | 251 | adas | \end{itemize}
|
| 165 | 251 | adas | \end{example}
|
| 166 | 251 | adas | |
| 167 | 251 | adas | |
| 168 | 251 | adas | %\nb{Remember polymax bounded checking lemma! Quite important. Also need to bear this in mind when adding functions.}
|
| 169 | 251 | adas | |
| 170 | 251 | adas | \subsection{Bellantoni's characterisation of $\fphi{i}$ using predicative minimisation}
|
| 171 | 251 | adas | |
| 172 | 251 | adas | Now, in order to characterize $\fph$ and its subclasses $\fphi{i}$ we consider Bellantoni's function algebra $\mubc$, extending $\bc$ by predicative minimisation:
|
| 173 | 251 | adas | \begin{definition}[$\mubc$ and $\mubc^i$ programs]
|
| 174 | 251 | adas | The algebra $\mubc$ is generated from $\bc$ by the following additional operation: |
| 175 | 251 | adas | |
| 176 | 251 | adas | \begin{enumerate}
|
| 177 | 251 | adas | \setcounter{enumi}{7}
|
| 178 | 251 | adas | \item Predicative minimisation. If $h$ is in $\mubc$, then so is $f$ defined by |
| 179 | 251 | adas | $$f(\vec u; \vec x):= \begin{cases}
|
| 180 | 251 | adas | s_1 \mu y.(h(\vec u; \vec x, y)\mod 2 = 0)& \mbox{ if there exists such a $y$,} \\
|
| 181 | 251 | adas | 0 & \mbox{ otherwise,}
|
| 182 | 251 | adas | \end{cases}
|
| 183 | 251 | adas | $$ |
| 184 | 251 | adas | \end{enumerate}
|
| 185 | 251 | adas | where $\mu y.(h(\vec u; \vec x , y)\mod 2 = 0)$ is the least $y$ such that the equality holds. |
| 186 | 251 | adas | %We will denote this function $f$ as $\mu y^{+1} . h(\vec u ; \vec x , y) =_2 0$.
|
| 187 | 251 | adas | |
| 188 | 251 | adas | For each $i\geq 0$, $\mubc^i$ is the set of $\mubc$ functions obtained by at most $i$ applications of predicative minimisation.\footnote{This is the number of nestings of $\mu$ in a $\mubc$ program, written as a derivation tree or dag.} So $\mubc^0=\bc$ and $\mubc =\cup_i \mubc^i$.
|
| 189 | 251 | adas | |
| 190 | 251 | adas | \end{definition}
|
| 191 | 251 | adas | |
| 192 | 251 | adas | Bellantoni showed the following result: |
| 193 | 251 | adas | |
| 194 | 251 | adas | \begin{theorem}[\cite{BellantoniThesis, Bellantoni95}]\label{thm:mubc}
|
| 195 | 251 | adas | $\mubc =\fph$. Furthermore, for $i\geq 1$, $\mubc^{i-1} = \fphi{i}$.
|
| 196 | 251 | adas | \end{theorem}
|
| 197 | 251 | adas | |
| 198 | 260 | pbaillot | In what follows we will recall some of the intermediate results and state a slightly stronger result that directly follows from \cite{Bellantoni95}.
|
| 199 | 251 | adas | % |
| 200 | 251 | adas | %\medskip |
| 201 | 251 | adas | %\noindent |
| 202 | 251 | adas | %\textbf{Some computational properties of $\mubc$ programs.}
|
| 203 | 251 | adas | At the same time these results give us access to bounds for $\mubc$ functions that we use later on. |
| 204 | 251 | adas | |
| 205 | 251 | adas | \begin{definition}
|
| 206 | 251 | adas | A function $f(\vec u; \vec x)$ is \textit{polymax bounded} if there exists a polynomial $q$ such that,
|
| 207 | 251 | adas | for any $\vec u$ and $\vec x$ one has: |
| 208 | 251 | adas | |
| 209 | 251 | adas | %$\size{u}$
|
| 210 | 251 | adas | $$ \size{f(\vec u; \vec x)} \leq q(\size{u_1} , \dots , \size{u_k}) + \max_j \size{x_j}.$$
|
| 211 | 251 | adas | \end{definition}
|
| 212 | 251 | adas | |
| 213 | 251 | adas | We define the function $\mode$ by $u\mode x:= u \mod 2^{\size{x}}$. Note that this means that as a binary string $u\mode x$ is the suffix of $u$ of length $\size{x}$.
|
| 214 | 251 | adas | \begin{definition}
|
| 215 | 251 | adas | A function $f(\vec u; \vec x)$ is a \textit{polynomial checking function} on $\vec u$ if there exists a polynomial $q$
|
| 216 | 251 | adas | such that, for any $\vec u$, $\vec x$, $y$ and $z$ such that $\size{y} \geq q(\size{\vec u})+ \size{z}$ we have:
|
| 217 | 251 | adas | $$ f(\vec u; \vec x) \mode z = f(\vec u; \vec x \mode y)\mode z.$$ |
| 218 | 251 | adas | A polynomial $q$ satisfying this condition is called a \textit{threshold} for $f$.
|
| 219 | 251 | adas | \end{definition}
|
| 220 | 251 | adas | One then has: |
| 221 | 251 | adas | \begin{lemma}[Bounded minimisation, \cite{BellantoniThesis}]
|
| 222 | 251 | adas | \label{lem:bounded-minimisation}
|
| 223 | 251 | adas | If $f(\vec u; \vec x,y)$ is a polynomial checking function on $\vec u$ and $q$ is a threshold, then for any $\vec u$ and $\vec x$ we have: |
| 224 | 251 | adas | $$ (\exists y. f(\vec u; \vec x,y)\mbox{ mod } 2=0) \Rightarrow (\exists y. (\size{y}\leq q(\size{\vec{x}})+2) \mbox{ and } f(\vec u; \vec x,y) \mbox{ mod } 2=0) .$$
|
| 225 | 251 | adas | \end{lemma}
|
| 226 | 251 | adas | |
| 227 | 251 | adas | Finally we can state an important lemma about $\mubc$. |
| 228 | 251 | adas | If $\Phi$ is a class of functions, we denote by $\mubc(\Phi)$ the class obtained as $\mubc$ but adding $\Phi$ to the set of initial functions. |
| 229 | 251 | adas | \begin{lemma}[Polychecking Lemma, \cite{BellantoniThesis}]
|
| 230 | 251 | adas | \label{lem:polychecking}
|
| 231 | 260 | pbaillot | Let $\Phi$ be a class of polymax bounded polynomial checking functions. If $f(\vec u; \vec x)$ is in $\mubc(\Phi)$, then $f$ is a polymax bounded polynomial checking function on $\vec u$. |
| 232 | 251 | adas | \end{lemma}
|
| 233 | 251 | adas | |
| 234 | 251 | adas | In particular, we also have the following strengthening of Thm.~\ref{thm:mubc},
|
| 235 | 251 | adas | following from \cite{BellantoniThesis, Bellantoni95}.
|
| 236 | 251 | adas | |
| 237 | 251 | adas | |
| 238 | 251 | adas | \begin{theorem}
|
| 239 | 251 | adas | \label{thm:mubc-phi}
|
| 240 | 251 | adas | If $\Phi$ is a class of polymax bounded polynomial checking functions, then $\mubci {i-1} (\Phi) = \fphi i$.
|
| 241 | 251 | adas | \end{theorem}
|
| 242 | 251 | adas | % |
| 243 | 251 | adas | \subsection{Some properties and extensions of $\bc$ and $\mubc$}\label{sect:somepropertiesofmubc}
|
| 244 | 251 | adas | |
| 245 | 251 | adas | We will state some results here that we rely on in the later sections. |
| 246 | 251 | adas | |
| 247 | 251 | adas | Consider the addition function $+$ with two safe arguments, so denoted as $+(;x,y)$. It is clear that if $+(;x,y)=z$, then we have $|z| \leq \max(|x|,|y|)+1$, so $+$ is a polymax bounded function. Moreover for any $n$, the $n$th least significant bits of $z$ only depend on the $n$th least significant bits of $x$ and $y$, so $+(;x,y)$ is a polynomial checking function (on no normal argument), with threshold $q(x,y)=0$. |
| 248 | 251 | adas | |
| 249 | 251 | adas | Thus, we will freely add $+(;x,y)$ to the $\mubc $ framework, under Thm.~\ref{thm:mubc-phi}, and define unary successor $\succ{} (;x) \dfn +(;x, \succ 1 0)$.
|
| 250 | 251 | adas | % In the following we will consider $\mubc(\Phi)$ with $\Phi$ containing the function $+(;x,y)$, but write it simply as $\mubc$. Note that addition could be defined in $\bc$ (hence in $\mubc$), but not with two safe arguments because the definition would use safe recursion. We will also use the unary successor $\succ{} (;x)$, which is defined thanks to addition as as $\succ{} (;x)=+(;x,\succ 1 0)$.
|
| 251 | 251 | adas | % |
| 252 | 251 | adas | In the same way, although for more simple reasons, we may add the functions $\#$ and $|\cdot|$ that we introduce later in Sect.~\ref{sect:arithmetic} to $\mubc$ containing only normal arguments since they are polynomial-time computable.
|
| 253 | 251 | adas | |
| 254 | 251 | adas | |
| 255 | 251 | adas | One important closure property we will need for $\mubc $ functions, namely to define `witness functions' later on, is the following: |
| 256 | 251 | adas | \begin{lemma}
|
| 257 | 251 | adas | [Sharply bounded lemma] |
| 258 | 251 | adas | \label{lem:sharply-bounded-recursion}
|
| 259 | 251 | adas | Let $f_A$ be the characteristic function of a predicate $A(u , \vec u ; \vec x)$. |
| 260 | 251 | adas | Then the characteristic functions of $\forall u \leq |v| . A(u,\vec u ; \vec x)$ and $\exists u \leq |v| . A(u , \vec u ; \vec x)$ are in $\bc(f_A)$. |
| 261 | 251 | adas | \end{lemma}
|
| 262 | 251 | adas | \begin{proof}
|
| 263 | 251 | adas | For the $\forall$ case, we define the characteristic function $f(v , \vec u ; \vec x)$ by predicative recursion on $v$ as: |
| 264 | 251 | adas | \[ |
| 265 | 251 | adas | \begin{array}{rcl}
|
| 266 | 251 | adas | f(0, \vec u ; \vec x) & \dfn & f_A (0 , \vec u ; \vec x) \\ |
| 267 | 251 | adas | f(\succ i v , \vec u ; \vec x) & \dfn & \cond ( ; f_A (|\succ i v|, \vec u ; \vec x) , 0 , f(v , \vec u ; \vec x) ) |
| 268 | 251 | adas | \end{array}
|
| 269 | 251 | adas | \] |
| 270 | 251 | adas | The $\exists$ case is similar. |
| 271 | 251 | adas | \end{proof}
|
| 272 | 251 | adas | |
| 273 | 251 | adas | Finally, we will briefly outline some basic functions for (de)coding sequences. The functions we introduce here will in fact be representable in the theory $\arith^1$ that we introduce in the next section, which, along with proofs of their basic properties, will be important for the completeness result in Sect.~\ref{sect:completeness}.
|
| 274 | 251 | adas | |
| 275 | 251 | adas | We assume the existence of a simple pairing function in $\bc$ for elements of fixed size: $\pair{k,l}{x}{y}$ identifies the pair $(x \mode k , y \mode l )$.
|
| 276 | 251 | adas | An appropriate such function would `interleave' $x$ and $y$, adding delimiters as necessary. |
| 277 | 251 | adas | We assume that $|\pair{k,l}{x}{y}| = k+O(l)$ and $\pair{k,l}{x}{y}$ satisfies the polychecking lemma.
|
| 278 | 251 | adas | % |
| 279 | 251 | adas | We will simply write $\pair{l}{x}{y}$ for $\pair{l,l}{x}{y}$.
|
| 280 | 251 | adas | |
| 281 | 251 | adas | \begin{lemma}
|
| 282 | 251 | adas | [Coding sequences] |
| 283 | 251 | adas | \label{lem:sequence-creation}
|
| 284 | 251 | adas | Given a function $f(u , \vec u ; \vec x)$ there is a $\bc(f)$ function $F(l, u , \vec u ; \vec x) |
| 285 | 251 | adas | % $ such that: |
| 286 | 251 | adas | % \[ |
| 287 | 251 | adas | % F(l,u,\vec u ; \vec x) |
| 288 | 251 | adas | % \quad = \quad |
| 289 | 251 | adas | = |
| 290 | 251 | adas | \langle \cdots \langle f(0, \vec u ; \vec x) \mode l , f(1, \vec u ; \vec x) \mode l \rangle , \cdots , f(|u|, \vec u ; \vec x) \mode l \rangle |
| 291 | 251 | adas | % \] |
| 292 | 251 | adas | $ |
| 293 | 251 | adas | \end{lemma}
|
| 294 | 251 | adas | \begin{proof}
|
| 295 | 251 | adas | We simply define $F$ by safe recursion from $f$: |
| 296 | 251 | adas | \[ |
| 297 | 251 | adas | \begin{array}{rcl}
|
| 298 | 251 | adas | F(l,0, \vec u ; \vec x) & \dfn & \langle ; f(0) \mode l \rangle \\ |
| 299 | 251 | adas | F(l, \succ i u , \vec u ; \vec x ) & \dfn & \pair{p(u l) , l}{F(l, u , \vec u ; \vec x)}{f( |\succ i u| , \vec u ; \vec x )}
|
| 300 | 251 | adas | \end{array}
|
| 301 | 251 | adas | \] |
| 302 | 251 | adas | where $p(u l)$ is a sufficiently large polynomial. |
| 303 | 251 | adas | \end{proof}
|
| 304 | 251 | adas | |
| 305 | 251 | adas | \begin{lemma}
|
| 306 | 251 | adas | [Decoding sequences] |
| 307 | 251 | adas | We can define $\beta(l,i;x)$ as $(i\text{th element of x}) \mode l$.
|
| 308 | 251 | adas | \end{lemma}
|
| 309 | 251 | adas | \begin{proof}[Proof sketch]
|
| 310 | 251 | adas | First define $\beta (j,i;x)$ as $|j|$th bit of $|i|$th element of $x$, of the form $\bit(p(i,j) ; x)$ for some quasipolynomial $p$,\footnote{A quasipolynomial is just a polynomial that may contain $\smsh$.} then use similar idea to the proof above, concatenating the bits of the $i$th element by a recursion on $j$.
|
| 311 | 251 | adas | \end{proof}
|
| 312 | 251 | adas | |
| 313 | 251 | adas | %Notice that $\beta (l,i;x)$ satisfies the polychecking lemma. |