encyclopegia.org

Next-bit test

In cryptography and the theory of computation, the next-bit test is a test against pseudo-random number generators.[src] We say that a sequence of bits passes the next bit test for at any position i in the sequence, if any attacker who knows the i first bits (but not the seed) cannot predict the (i+1) st with reasonable computational power.[src]

In cryptography and the theory of computation, the next-bit test is a test against pseudo-random number generators.[src] We say that a sequence of bits passes the next bit test for at any position i in the sequence, if any attacker who knows the i first bits (but not the seed) cannot predict the (i+1) st with reasonable computational power.[src] Let P be a polynomial, and S=\{S_k\} be a collection of sets such that S_k contains P(k) -bit long sequences.[src] Moreover, let \mu_k be the probability distribution of the strings in S_k .[src] We now define the next-bit test in two different ways.[src] ===Boolean circuit formulation=== A predicting collection C=\{C_k^i\} is a collection of boolean circuits, such that each circuit C_k^i has less than P_C(k) gates and exactly i inputs.[src] Let p_{k,i}^C be the probability that, on input the i first bits of s , a string randomly selected in S_k with probability \mu_k(s) , the circuit correctly predicts s_{i+1} , i.e.[src] : p_{k,i}^C={\mathcal P} \left[ C_k(s_1\ldots s_i)=s_{i+1} \right | s\in S_k\text{ with probability }\mu_k(s)] Now, we say that \{S_k\}_k passes the next-bit test if for any predicting collection C , any polynomial Q : p_{k,i}^C ===Probabilistic Turing machines=== We can also define the next-bit test in terms of probabilistic Turing machines, although this definition is somewhat stronger (see Adleman's theorem).[src] Let \mathcal M be a probabilistic Turing machine, working in polynomial time.[src] Let p_{k,i}^{\mathcal M} be the probability that \mathcal M predicts the (i+1) st bit correctly, i.e.[src] p_{k,i}^{\mathcal M}={\mathcal P}[M(s_1\ldots s_i)=s_{i+1} | s\in S_k\text{ with probability }\mu_k(s)] We say that collection S=\{S_k\} passes the next-bit test if for all polynomial Q , for all but finitely many k , for all 0 : p_{k,i}^{\mathcal M} |p_{k,S}^{\mathcal M}-p_{k,U}^{\mathcal M}|\geq\frac{1}{Q(k)} Let R_{k,i}=\{s_1\ldots s_iu_{i+1}\ldots u_{P(k)}| s\in S_k, u\in\{0,1\}^{P(k)}\} .[src] We have: R_{k,0}=\{0,1\}^{P(k)} and R_{k,P(k)}=S_k .[src] Then, we notice that \sum_{i=0}^{P(k)}|p_{k,R_{k,i+1}}^{\mathcal M}-p_{k,R_{k,i}}^{\mathcal M}|\geq |p^{\mathcal M}_{k,R_{k,P(k)}}-p^{\mathcal M}_{k,R_{k,0}}|=|p_{k,S}^{\mathcal M}-p_{k,U}^{\mathcal M}|\geq\frac{1}{Q(k)} .[src] Therefore, at least one of the |p_{k,R_{k,i+1}}^{\mathcal M}-p_{k,R_{k,i}}^{\mathcal M}| should be no smaller than \frac{1}{Q(k)P(k)} .[src] Next, we consider probability distributions \mu_{k,i} and \overline{\mu_{k,i}} on R_{k,i} .[src] Distribution \mu_{k,i} is the probability distribution of choosing the i first bits in S_k with probability given by \mu_k , and the P(k)-i remaining bits uniformly at random.[src] We have thus: \mu_{k,i}(w_1\ldots w_{P(k)})=\left(\sum_{s\in S_k, s_1\ldots s_i=w_1\ldots w_i}\mu_k(s)\right)\left(\frac{1}{2}\right)^{P(k)-i} \overline{\mu_{k,i}}(w_1\ldots w_{P(k)})=\left(\sum_{s\in S_k, s_1\ldots s_{i-1}(1-s_i)=w_1\ldots w_i}\mu_k(s)\right)\left(\frac{1}{2}\right)^{P(k)-i} We thus have \mu_{k,i}=\frac{1}{2}(\mu_{k,i+1}+\overline{\mu_{k,i+1}}) (a simple calculus trick shows this), thus distributions \mu_{k,i+1} and \overline{\mu_{k,i+1}} can be distinguished by \mathcal M .[src] Without loss of generality, we can assume that p^{\mathcal M}_{\mu_{k,i+1}}-p^{\mathcal M}_{\overline{\mu_{k,i+1}}}\geq\frac{1}{2}+\frac{1}{R(k)} , with R a polynomial.[src] This gives us a possible construction of a Turing machine solving the next-bit test: upon receiving the i first bits of a sequence, \mathcal N pads this input with a guess of bit l and then P(k)-i-1 random bits, chosen with uniform probability.[src] Then it runs \mathcal M , and outputs l if the result is 1 , and 1-l else.[src]

22 sentences · 22 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Next-bit test." encyclopegia.org, 2025, https://encyclopegia.org/wiki/next-bit-test. Accessed 01 December 2026.

Chicago

"Next-bit test." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/next-bit-test.

APA

encyclopegia.org. (2025). Next-bit test. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/next-bit-test

Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Next Men

stub · references available

Izod impact strength test

stub · references available

Zone bit recording

stub · references available

16-bit computing

stub · references available

Next plc

stub · references available

Allen's test

stub · references available

The Next Karate Kid

stub · references available

Öko-Test

stub · references available
CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1272613840 · 0.55 · snapshot next-bit-test-510335-dc7befe5b33d548e · QID Q4456453

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.