In cryptography and the theory of computation, the next-bit test[1] is a test against pseudo-random number generators. We say that a sequence of bits passes the next bit test for at any position
i
i
(i+1)
Let
P
S=\{Sk\}
Sk
P(k)
\muk
Sk
We now define the next-bit test in two different ways.
A predicting collection[2]
i\} | |
C=\{C | |
k |
i | |
C | |
k |
PC(k)
i
C | |
p | |
k,i |
i
s
Sk
\muk(s)
si+1
C={lP} | |
p | |
k,i |
\left[Ck(s1\ldotssi)=si+1\right|s\inSkwithprobability\muk(s)]
Now, we say that
\{Sk\}k
C
Q
| |||||
p | + | ||||
k,i |
1 | |
Q(k) |
We can also define the next-bit test in terms of probabilistic Turing machines, although this definition is somewhat stronger (see Adleman's theorem). Let
lM
lM | |
p | |
k,i |
lM
(i+1)
lM | |
p | |
k,i |
={lP}[M(s1\ldotssi)=si+1|s\inSkwithprobability\muk(s)]
We say that collection
S=\{Sk\}
Q
k
0<i<k
lM | ||
p | < | |
k,i |
1 | + | |
2 |
1 | |
Q(k) |
The next-bit test is a particular case of Yao's test for random sequences, and passing it is therefore a necessary condition for passing Yao's test. However, it has also been shown a sufficient condition by Yao.[1]
We prove it now in the case of the probabilistic Turing machine, since Adleman has already done the work of replacing randomization with non-uniformity in his theorem. The case of Boolean circuits cannot be derived from this case (since it involves deciding potentially undecidable problems), but the proof of Adleman's theorem can be easily adapted to the case of non-uniform Boolean circuit families.
Let
lM
Q
k
lM | |
|p | |
k,S |
lM | ||
-p | |\geq | |
k,U |
1 | |
Q(k) |
Let
Rk,i=\{s1\ldotssiui+1\ldotsuP(k)|s\inSk,u\in\{0,1\}P(k)\}
Rk,0=\{0,1\}P(k)
Rk,P(k)=Sk
P(k) | |
\sum | |
i=0 |
lM | |
|p | |
k,Rk,i+1 |
lM | |
-p | |
k,Rk,i |
|\geq
lM | |
|p | |
k,Rk,P(k) |
lM | |
-p | |
k,Rk,0 |
lM | |
|=|p | |
k,S |
lM | ||
-p | |\geq | |
k,U |
1 | |
Q(k) |
lM | |
|p | |
k,Rk,i+1 |
lM | |
-p | |
k,Rk,i |
|
1 | |
Q(k)P(k) |
Next, we consider probability distributions
\muk,i
\overline{\muk,i
Rk,i
\muk,i
i
Sk
\muk
P(k)-i
\muk,i(w1\ldotswP(k)
)=\left(\sum | |
s\inSk,s1\ldotssi=w1\ldotswi |
\mu | ||||
|
\right)P(k)-i
\overline{\muk,i
We thus have
\muk,i=
1 | |
2 |
(\muk,i+1+\overline{\muk,i+1
\muk,i+1
\overline{\muk,i+1
lM
lM | |
p | |
\muk,i+1 |
lM | |
-p | |
\overline{\muk,i+1 |
R
This gives us a possible construction of a Turing machine solving the next-bit test: upon receiving the
i
lN
l
P(k)-i-1
lM
l
1
1-l