root / CSL17 / preliminaries.tex @ 224
Historique | Voir | Annoter | Télécharger (14,81 ko)
1 | 154 | adas | |
---|---|---|---|
2 | 154 | adas | \section{Preliminaries} |
3 | 219 | adas | \label{sect:prelims} |
4 | 220 | adas | We introduce the polynomial hierarchy and its basic properties, then Bellantoni's characterisation of it based on safe recursion and minimization \cite{bellantoni1995fph}. |
5 | 154 | adas | |
6 | 220 | 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 | 157 | adas | |
8 | 154 | adas | \subsection{Polynomial hierarchy} |
9 | 161 | pbaillot | %(include closure properties) |
10 | 154 | adas | |
11 | 161 | pbaillot | \begin{definition} |
12 | 163 | pbaillot | 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 | 161 | pbaillot | $$ 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 | 161 | pbaillot | where $Q_i=\forall$ (resp. $Q_i=\exists$) if $i$ is even (resp. odd). |
15 | 161 | pbaillot | |
16 | 161 | pbaillot | The class $\pip{i}$ is defined similarly but with first quantifier $\forall$ instead of $\exists$. |
17 | 161 | pbaillot | \end{definition} |
18 | 162 | pbaillot | 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 | 161 | pbaillot | |
20 | 161 | pbaillot | The polynomial hierarchy is defined as $\ph:=\cup_i \sigp{i}$, and we also have $\ph=\cup_i \pip{i}$. |
21 | 161 | pbaillot | |
22 | 161 | pbaillot | Given a language $L$ we denote as $\fptime(L)$ the class of functions computable by a deterministic |
23 | 161 | pbaillot | polynomial time Turing machine with oracle $L$. |
24 | 161 | pbaillot | |
25 | 161 | pbaillot | We now define the following function classes: |
26 | 220 | adas | \[ |
27 | 220 | adas | \begin{array}{lcl} |
28 | 162 | pbaillot | \fphi{i+1} &:= & \fptime(\sigp{i}),\\ |
29 | 162 | pbaillot | \fph &:=& \cup_i \fphi{i}. |
30 | 220 | adas | \end{array} |
31 | 220 | adas | \] |
32 | 220 | adas | Notice that $ \fphi{i+1} = \fptime(\pip{i})= \fptime(\sigp{i}\cup \pip{i})$. |
33 | 161 | pbaillot | |
34 | 220 | adas | \subsection{Bellantoni-Cook characterisation of $\fptime$ using predicative recursion} |
35 | 220 | adas | %(perhaps compare with Cobham's using limited recursion) |
36 | 220 | adas | % |
37 | 220 | adas | %\anupam{copied below from last year's paper} |
38 | 156 | adas | |
39 | 220 | adas | We recall the Bellantoni-Cook algebra $\bc$ of functions defined by \emph{safe} (or \emph{predicative}) recursion on notation \cite{BellantoniCook92}. |
40 | 220 | adas | These will be employed for proving both the soundness and completeness results later on. |
41 | 156 | adas | |
42 | 220 | 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 | 156 | 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 | 156 | adas | %We say that an expression is well-sorted if the arities of function symbols in it is respected. |
45 | 156 | adas | |
46 | 156 | 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 | 156 | adas | \begin{definition} |
48 | 220 | adas | [$\bc$ programs] |
49 | 220 | adas | $\bc$ contains the following initial functions: |
50 | 156 | adas | % \paragraph{Initial functions} |
51 | 156 | adas | % The initial functions are: |
52 | 220 | adas | |
53 | 156 | adas | \begin{enumerate} |
54 | 220 | adas | \item The constant functions $0 (\vec u ; \vec x) \dfn 0$, for each $|\vec u|$ and $| \vec x|$. |
55 | 220 | 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 | 220 | adas | \item The successor functions $\succ i ( ; x) \dfn 2x +i$ for $i = 0,1$. |
57 | 220 | adas | \item The predecessor function $\pred (; x) \dfn \hlf{x}$. |
58 | 156 | adas | \item The conditional function |
59 | 220 | adas | \( |
60 | 220 | adas | \cond(;x,y,z) |
61 | 220 | adas | \dfn |
62 | 220 | adas | \begin{cases} |
63 | 220 | adas | y & x = 0\ \mathrm{mod}\ 2 \\ |
64 | 220 | adas | z & x = 1\ \mathrm{mod}\ 2 |
65 | 220 | adas | \end{cases} |
66 | 220 | adas | \) |
67 | 156 | adas | \end{enumerate} |
68 | 156 | adas | |
69 | 220 | adas | \medskip |
70 | 220 | adas | \noindent |
71 | 220 | adas | $\bc$ is closed under the following operations: |
72 | 220 | adas | |
73 | 220 | adas | |
74 | 220 | adas | |
75 | 156 | adas | \begin{enumerate} |
76 | 156 | adas | \setcounter{enumi}{5} |
77 | 156 | adas | \item Predicative recursion on notation (PRN). If $g, h_0, h_1 $ are in BC then so is $f$ defined by, |
78 | 156 | adas | \[ |
79 | 220 | adas | \begin{array}{rcll} |
80 | 220 | adas | f(0, \vec v ; \vec x) & := & g(\vec v ; \vec x) & \\ |
81 | 220 | 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 | 220 | adas | f (\succ 1 u , \vec v ; \vec x ) & := & h_1 ( u , \vec v ; \vec x , f (u , \vec v ; \vec x) ) & |
83 | 156 | adas | \end{array} |
84 | 156 | adas | \] |
85 | 220 | adas | so long as the expressions are well-formed. % (i.e.\ in number/sort of arguments). |
86 | 156 | adas | \item Safe composition. If $g, \vec h, \vec h'$ are in BC then so is $f$ defined by, |
87 | 156 | adas | \[ |
88 | 156 | adas | f (\vec u ; \vec x) \quad := \quad g ( \vec h(\vec u ; ) ; \vec h' (\vec u ; \vec x) ) |
89 | 156 | adas | \] |
90 | 156 | adas | so long as the expression is well-formed. |
91 | 156 | adas | \end{enumerate} |
92 | 156 | adas | \end{definition} |
93 | 156 | 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 | 156 | adas | |
95 | 220 | 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 | 220 | adas | The main property of $\bc$ is: |
97 | 156 | adas | \begin{theorem}[\cite{BellantoniCook92}] |
98 | 220 | adas | $\bc =\fptime$. |
99 | 156 | adas | \end{theorem} |
100 | 156 | adas | |
101 | 220 | adas | %Actually this property remains true if one replaces the PRN scheme by the following more general simultaneous PRN scheme \cite{BellantoniThesis}: |
102 | 220 | adas | % |
103 | 220 | 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 | 220 | adas | %\[ |
105 | 220 | adas | %\begin{array}{rcl} |
106 | 220 | adas | %f^j(0, \vec v ; \vec x) & := & g^j(\vec v ; \vec x) \\ |
107 | 220 | 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 | 220 | adas | %\end{array} |
109 | 220 | adas | %\] |
110 | 220 | adas | %for $i = 0,1$, so long as the expressions are well-formed. |
111 | 156 | adas | |
112 | 156 | adas | %\anupam{simultaneous recursion?} |
113 | 156 | adas | |
114 | 156 | adas | %\anupam{also identity, hereditarily safe, expressions, etc.} |
115 | 156 | adas | |
116 | 156 | adas | %\anupam{we implicitly associate a BC program with its equational specification} |
117 | 156 | adas | |
118 | 156 | 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 | 156 | adas | For instance $y$ occurs hereditarily safe in $f(u;y,g(v;y))$, but not in $f(g(v;y);x)$. |
120 | 156 | adas | \begin{proposition} |
121 | 220 | adas | [Properties of $\bc$ programs] |
122 | 156 | adas | \label{prop:bc-properties} |
123 | 156 | adas | We have the following properties: |
124 | 156 | adas | \begin{enumerate} |
125 | 220 | adas | \item The identity function is in $\bc$. |
126 | 220 | 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 | 220 | 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 | 220 | adas | is also a $\bc $ program. |
129 | 156 | adas | \end{enumerate} |
130 | 156 | adas | |
131 | 156 | adas | %\begin{proposition} |
132 | 156 | adas | %[Properties of BC programs] |
133 | 156 | adas | %\label{prop:bc-properties} |
134 | 156 | adas | %We have the following properties: |
135 | 156 | adas | %\begin{enumerate} |
136 | 156 | adas | %\item Hereditarily safe expressions over BC programs are BC definable. |
137 | 156 | adas | %\item Can pass safe input to normal input. |
138 | 156 | adas | %\end{enumerate} |
139 | 156 | adas | \end{proposition} |
140 | 156 | adas | |
141 | 159 | pbaillot | %\nb{TODO: extend with $\mu$s.} |
142 | 158 | adas | |
143 | 212 | pbaillot | %\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 | 158 | adas | |
145 | 201 | adas | \begin{example} |
146 | 201 | adas | [Some simple functions] |
147 | 201 | adas | \label{ex:simple-bc-fns} |
148 | 213 | pbaillot | % \todo{Boolean predicates $\notfn, \andfn, \orfn, \equivfn$ .} |
149 | 213 | pbaillot | % \todo{$\bit$} |
150 | 213 | pbaillot | Observe that: |
151 | 213 | pbaillot | \begin{itemize} |
152 | 220 | 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. |
153 | 213 | pbaillot | %\item $\bit(l;x)$ returns the $\mode l$th bit of $x$. |
154 | 213 | pbaillot | \item We can define the function $\bit(l;x)$ which returns the $|l|$th least significant bit of $x$. For instance $\bit(11;1010)=0$. |
155 | 201 | adas | |
156 | 213 | pbaillot | For that let us first define the function $\shorten(l;x)$ which returns the $|x|- |l|$ prefix of $x$, as follows: |
157 | 213 | pbaillot | \begin{eqnarray*} |
158 | 213 | pbaillot | \shorten(\epsilon;x) &=&x\\ |
159 | 213 | pbaillot | \shorten(li;x) &=&p(;\shorten(l;x)) |
160 | 213 | pbaillot | \end{eqnarray*} |
161 | 213 | pbaillot | Then we define $\bit(l;x)$ as follows: |
162 | 213 | pbaillot | $$\bit(l;x)=C(;\shorten(pl;x),\epsilon,0,1).$$ |
163 | 213 | pbaillot | \end{itemize} |
164 | 201 | adas | \end{example} |
165 | 201 | adas | |
166 | 201 | adas | |
167 | 213 | pbaillot | %\nb{Remember polymax bounded checking lemma! Quite important. Also need to bear this in mind when adding functions.} |
168 | 159 | pbaillot | |
169 | 220 | adas | \subsection{Bellantoni's characterisation of $\fphi{i}$ using predicative minimization} |
170 | 220 | adas | |
171 | 220 | adas | Now, in order to characterize $\fph$ and its subclasses $\fphi{i}$ we consider Bellantoni's function algebra $\mubc$, extending $\bc$ by predicative minimization: |
172 | 159 | pbaillot | \begin{definition}[$\mubc$ and $\mubc^i$ programs] |
173 | 220 | adas | The algebra $\mubc$ is generated from $\bc$ by the following additional operation: |
174 | 159 | pbaillot | |
175 | 220 | adas | \begin{enumerate} |
176 | 220 | adas | \setcounter{enumi}{7} |
177 | 220 | adas | \item Predicative minimization. If $h$ is in $\mubc$, then so is $f$ defined by |
178 | 220 | adas | $$f(\vec u; \vec x):= \begin{cases} |
179 | 220 | adas | s_1 \mu y.(h(\vec u; \vec x, y)\mod 2 = 0)& \mbox{ if there exists such a $y$,} \\ |
180 | 220 | adas | 0 & \mbox{ otherwise,} |
181 | 220 | adas | \end{cases} |
182 | 220 | adas | $$ |
183 | 220 | adas | \end{enumerate} |
184 | 220 | adas | where $\mu y.(h(\vec u; \vec x , y)\mod 2 = 0)$ is the least $y$ such that the equality holds. |
185 | 220 | adas | %We will denote this function $f$ as $\mu y^{+1} . h(\vec u ; \vec x , y) =_2 0$. |
186 | 159 | pbaillot | |
187 | 220 | adas | For each $i\geq 0$, $\mubc^i$ is the set of $\mubc$ functions obtained by at most $i$ applications of predicative minimization.\footnote{This is the number of nestings of $\mu$ in a $\mubc$ program.} So $\mubc^0=BC$ and $\mubc =\cup_i \mubc^i$. |
188 | 159 | pbaillot | |
189 | 220 | adas | \end{definition} |
190 | 220 | adas | |
191 | 159 | pbaillot | |
192 | 198 | pbaillot | |
193 | 212 | pbaillot | \begin{theorem}[\cite{BellantoniThesis, Bellantoni95}]\label{thm:mubc} |
194 | 220 | adas | $\mubc =\fph$. Furthermore, for $i\geq 1$, $\mubc^{i-1} = \fphi{i}$. |
195 | 159 | pbaillot | \end{theorem} |
196 | 220 | adas | |
197 | 220 | adas | |
198 | 220 | adas | \medskip |
199 | 220 | adas | \noindent |
200 | 220 | adas | \textbf{Some computational properties of $\mubc$ programs.} |
201 | 220 | adas | We will need some bounds for $\mubc$ functions that we use later on; |
202 | 220 | adas | all of this material is from \cite{bellantoni1995fph}. |
203 | 220 | adas | |
204 | 159 | pbaillot | \begin{definition} |
205 | 159 | pbaillot | A function $f(\vec u; \vec x)$ is \textit{polymax bounded} if there exists a polynomial $q$ such that, |
206 | 159 | pbaillot | for any $\vec u$ and $\vec x$ one has: |
207 | 159 | pbaillot | |
208 | 159 | pbaillot | %$\size{u}$ |
209 | 159 | pbaillot | $$ \size{f(\vec u; \vec x)} \leq q(\size{u_1} , \dots , \size{u_k}) + \max_j \size{x_j}.$$ |
210 | 159 | pbaillot | \end{definition} |
211 | 160 | pbaillot | |
212 | 216 | pbaillot | 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}$. |
213 | 160 | pbaillot | \begin{definition} |
214 | 160 | pbaillot | A function $f(\vec u; \vec x)$ is a \textit{polynomial checking function} on $\vec u$ if there exists a polynomial $q$ |
215 | 160 | pbaillot | such that, for any $\vec u$, $\vec x$, $y$ and $z$ such that $\size{y} \geq q(\size{\vec u})+ \size{z}$ we have: |
216 | 160 | pbaillot | $$ f(\vec u; \vec x) \mode z = f(\vec u; \vec x \mode y)\mode z.$$ |
217 | 160 | pbaillot | A polynomial $q$ satisfying this condition is called a \textit{threshold} for $f$. |
218 | 160 | pbaillot | \end{definition} |
219 | 160 | pbaillot | One then has: |
220 | 160 | pbaillot | \begin{lemma}[Bounded Minimization, \cite{BellantoniThesis}] |
221 | 219 | adas | \label{lem:bounded-minimisation} |
222 | 160 | pbaillot | 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: |
223 | 160 | pbaillot | $$ (\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) .$$ |
224 | 160 | pbaillot | \end{lemma} |
225 | 220 | adas | |
226 | 220 | adas | Finally we can state an important lemma about $\mubc$. |
227 | 220 | 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. |
228 | 160 | pbaillot | \begin{lemma}[Polychecking Lemma, \cite{BellantoniThesis}] |
229 | 219 | adas | \label{lem:polychecking} |
230 | 164 | 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 function polynomial checking function on $\vec u$. |
231 | 160 | pbaillot | \end{lemma} |
232 | 212 | pbaillot | The following property follows from \cite{BellantoniThesis, Bellantoni95}] |
233 | 212 | pbaillot | \begin{proposition} |
234 | 212 | pbaillot | If $\Phi$ is a class of polymax bounded polynomial checking functions, then $\mubc(\Phi)$ satisfies the properties of Thm \ref{thm:mubc}. |
235 | 212 | pbaillot | \end{proposition} |
236 | 220 | adas | |
237 | 224 | pbaillot | \subsection{Some properties and extensions of $\bc$ and $\mubc$}\label{sect:somepropertiesofmubc} |
238 | 220 | adas | |
239 | 220 | adas | \anupam{done a pass up to here. Resuming at next section.} |
240 | 220 | adas | |
241 | 212 | pbaillot | 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$. |
242 | 212 | pbaillot | |
243 | 212 | pbaillot | 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)$. |
244 | 220 | adas | |
245 | 220 | adas | \anupam{also add $\#$ and $|\cdot|$, for simplicity.} |
246 | 220 | adas | |
247 | 220 | adas | \begin{lemma} |
248 | 220 | adas | [Sharply bounded lemma] |
249 | 220 | adas | \label{lem:sharply-bounded-recursion} |
250 | 220 | adas | Let $f_A$ be the characteristic function of a predicate $A(u , \vec u ; \vec x)$. |
251 | 220 | adas | Then the characteristic functions of $\forall u \prefix v . A(u,\vec u ; \vec x)$ and $\exists u \prefix v . A(u , \vec u ; \vec x)$ are in $\bc(f_A)$. |
252 | 220 | adas | \end{lemma} |
253 | 220 | adas | \begin{proof} |
254 | 220 | adas | We give the $\forall$ case, the $\exists$ case being dual. |
255 | 220 | adas | The characteristic function $f(v , \vec u ; \vec x)$ is defined by predicative recursion on $v$ as: |
256 | 220 | adas | \[ |
257 | 220 | adas | \begin{array}{rcl} |
258 | 220 | adas | f(0, \vec u ; \vec x) & \dfn & f_A (0 , \vec u ; \vec x) \\ |
259 | 220 | 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) ) |
260 | 220 | adas | \end{array} |
261 | 220 | adas | \] |
262 | 220 | adas | \end{proof} |
263 | 220 | adas | |
264 | 220 | adas | \medskip |
265 | 220 | adas | \noindent |
266 | 220 | adas | \textbf{Encoding of sequences.} |
267 | 220 | adas | Assume the existence of a simple pairing function for elements of fixed size: $\pair{k,l}{x}{y}$ denotes the pair $(x \mode k , y \mode l )$. |
268 | 220 | adas | An appropriate such function would `interleave' $x$ and $y$, adding delimiters as necessary. |
269 | 220 | adas | We assume that $|\pair{k,l}{x}{y}| = k+O(l)$ and $\pair{k,l}{x}{y}$ satisfies the polychecking lemma. |
270 | 220 | adas | |
271 | 220 | adas | We will simply write $\pair{l}{x}{y}$ for $\pair{l,l}{x}{y}$. |
272 | 220 | adas | |
273 | 220 | adas | \begin{lemma} |
274 | 220 | adas | [Creating sequences] |
275 | 220 | adas | \label{lem:sequence-creation} |
276 | 220 | adas | Given a function $f(u , \vec u ; \vec x)$ there is a $\bc(f)$ function $F(l, u , \vec u ; \vec x)$ such that: |
277 | 220 | adas | \[ |
278 | 220 | adas | F(l,u,\vec u ; \vec x) |
279 | 220 | adas | \quad = \quad |
280 | 220 | adas | \langle f(0, \vec u ; \vec x) \mode l , f(1, \vec u ; \vec x) \mode l , \dots , f(|u|, \vec u ; \vec x) \mode l \rangle |
281 | 220 | adas | \] |
282 | 220 | adas | \end{lemma} |
283 | 220 | adas | \begin{proof} |
284 | 220 | adas | We simply define $F$ by safe recursion from $f$: |
285 | 220 | adas | \[ |
286 | 220 | adas | \begin{array}{rcl} |
287 | 220 | adas | F(l,0, \vec u ; \vec x) & \dfn & \langle ; f(0) \mode l \rangle \\ |
288 | 220 | adas | F(l, \succ i u , \vec u ; \vec x ) & \dfn & \pair{O(|u| l) , l}{F(l, u , \vec u ; \vec x)}{f( |\succ i u| , \vec u ; \vec x )} |
289 | 220 | adas | \end{array} |
290 | 220 | adas | \] |
291 | 220 | adas | where the constants for $O(|u|l)$ are sufficiently large. |
292 | 220 | adas | \end{proof} |
293 | 220 | adas | |
294 | 220 | adas | \begin{lemma} |
295 | 220 | adas | [Decoding sequences] |
296 | 220 | adas | We can define $\beta(l,i;x)$ as $(i\text{th element of x}) \mode l$. |
297 | 220 | adas | \end{lemma} |
298 | 220 | adas | \begin{proof} |
299 | 220 | adas | First define $\beta (j,i;x)$ as $j$th bit of $i$th element of $x$, then use similar idea to above, by a recursion on $j$. |
300 | 220 | adas | \end{proof} |
301 | 220 | adas | |
302 | 220 | adas | Notice that $\beta (l,i;x)$ satisfies the polychecking lemma. |
303 | 220 | adas | |
304 | 220 | adas | We define |