Exact derandomization of logarithmic space: L=RL=BPL\mathsf L=\mathsf{RL}=\mathsf{BPL}

Coin flips give no extra power to computers with tiny memory: L = RL = BPL.

1 paper September 23, 2026 Explained by AI

Some computer methods flip coins to decide what to do next. This paper proves that, for machines with very little memory, the coins add no power. Any such method that runs in polynomial time and answers correctly at least two times in three can be replaced. The replacement uses no coins, logarithmic memory and polynomial time. A Lean proof of the class equality is listed.

First step
1979
Aleliunas, Karp, Lipton, Lovász and Rackoff asked the question
Significance
Landmark
If the proof holds, it settles a central question about randomness and memory that has been open since 1979.
Trust
Formal proof listed
Field
Theoretical computer science
1 paper
Deterministic memory for bounded-error log-space, as a power of log n
Year Who Value
1994 Nisan 2
1999 Saks and Zhou 1.5
2026 This paper 1

Lower is better. 1 means logarithmic space. Hoza's 2021 gain is below a full power and is not shown. Saks and Zhou's bound does not keep polynomial time.

The explanation

Picture an input a million symbols long. To point at one symbol, a computer needs about 20 bits, because 2^20 is 1,048,576. A logarithmic-space machine is allowed only a fixed number of such pointers and counters. Logarithmic space means memory that grows like the number of digits of the input length. Give the machine three 20-bit counters. Then it has at most 2^60 memory states, about 1.15 × 10^18. That is roughly the input length cubed. A machine that never repeats a state must stop within that many steps. So these machines also run in polynomial time, meaning a fixed power of the input length.

Now let the machine flip fair coins as it works. Suppose it runs for a million squared steps and flips a coin each step. That is 10^12 random bits, far more than it can remember. Each coin is fresh, and the machine cannot store them all. The question is whether those coins add any power. Could a machine with the same tiny memory, and no coins, always reach the same answers? Trying every coin sequence is hopeless: there are 2^(10^12) of them.

Three families of problems name the question. L holds the problems a coin-free machine solves in logarithmic space. RL allows coins and polynomial time with one-sided error. Such a machine never says yes to a no-instance, and says yes to a yes-instance at least half the time. BPL allows two-sided error. It says yes with probability at most 1/3 on no-instances and at least 2/3 on yes-instances. The paper proves that all three families are the same: L = RL = BPL.

The question is old. John Gill developed the theory of coin-flipping machines in 1977. In 1979, Aleliunas, Karp, Lipton, Lovász and Rackoff found coin-flipping methods for maze connectivity. They explicitly asked whether such machines could be made deterministic in logarithmic space. A main line of attack replaces many coin flips with a short seed. In 1992, Noam Nisan built a generator whose seed has length of order log² n. In our example that is about 397 bits, ignoring constant factors. Trying every seed then takes more than polynomial time.

Later work cut the memory but never reached logarithmic space in general. Nisan's 1994 method ran in polynomial time with log² n space. Michael Saks and Shiyu Zhou reached log^(3/2) n space in 1999. In our example that is about 89 bits instead of 20. William Hoza improved this slightly in 2021. Special cases fell earlier. Omer Reingold's logarithmic-space method for undirected connectivity appeared in 2005. Those special methods relied on structure that general machines lack.

The paper's route is to estimate the machine's chance of saying yes. It builds a large but finite family of estimates, each named by a short description. More than three quarters of them are accurate. Each one can be computed deterministically in logarithmic space, and each computation always stops. The machine then tries every description and takes the median. The hard part is memory. The estimates are built in nested levels. Keeping a full address at every level would cost too much. The paper instead compares addresses by short fingerprints, which keeps the total memory logarithmic.

Here is what that buys in practice. The final estimate is off by less than 1/8 on most descriptions, and so is their median. On a no-instance the true chance is at most 1/3, so the estimate stays below 11/24, about 0.458. On a yes-instance it is at least 2/3, so the estimate stays above 13/24, about 0.542. Comparing with 1/2 therefore gives the right answer every time. The paper also claims a compiler. It is said to turn a described coin-flipping machine into a deterministic one, with explicit memory and time bounds.

The result has limits. It covers coin-flipping machines with a polynomial time limit on every run. Machines without that time limit are a broader setting, and the paper does not claim them. Its general estimator can reach any accuracy 2^-q. But its running time then grows exponentially in q, so very fine estimates stay slow.

How sure is this? A computer proof checker called Lean has a formal proof of L = RL = BPL. It uses binary inputs and an explicit Turing-machine model with logarithmic workspace. The compiler and its numerical time bounds are not part of that checked statement. No specialists have published a review yet.

What it doesn't show. This does not cover coin-flipping machines without a polynomial time limit, or make very fine probability estimates fast.

Where it came from

This result comes from an unreleased OpenAI model, published in the openai/math release on 6 October 2026.

Hype check

Landmark only if the proof holds. Lean has a formal proof of the class equality in an explicit machine model. The compiler bounds are outside it. No specialist review is published.

Words used

Logarithmic space
Memory that grows like the number of digits in the input length, enough for a few pointers into the input.
Polynomial time
A running time bounded by a fixed power of the input length.
L
Problems solved by a machine without coins in logarithmic space.
RL
Problems solved with coins in logarithmic space and polynomial time, never wrongly saying yes and saying yes to true cases at least half the time.
BPL
Like RL, but errors in both directions are allowed, each with chance at most 1/3.
Pseudorandom generator
A method that stretches a short random seed into a long string that small machines cannot tell from true coin flips.
Median
The middle value of a list once it is sorted.
Fingerprint
A short code computed from a long address, used to compare addresses without storing them in full.

The original paper

All quoted lines (7)

  1. More than three quarters of these estimates are accurate; every member of the family can be evaluated by a halting deterministic computation using O(B)O(B) space.
    Exact derandomization of logarithmic space: L = RL = BPL Back to text
  2. Retaining a full endpoint at every recursive level would cost too much.
    Exact derandomization of logarithmic space: L = RL = BPL Back to text
  3. Choosing the stage count, statistical budget and digit accuracy makes the total error less than 1/81/8 on more than three quarters of the encodings conditioned on Xf(zL)=1X_f(z_L)=1.
    Exact derandomization of logarithmic space: L = RL = BPL Back to text
  4. Comparing its answer with 1/21/2 distinguishes acceptance probabilities at most 1/31/3 from those at least 2/32/3.
    Exact derandomization of logarithmic space: L = RL = BPL Back to text
  5. Given a source program and supplied polynomial-time and logarithmic-space bounds, one terminating compiler produces a deterministic decider and explicit numerical bounds for its space and time (Theorem …).
    Exact derandomization of logarithmic space: L = RL = BPL Back to text
  6. All randomized running-time bounds hold on every random tape.
    Exact derandomization of logarithmic space: L = RL = BPL Back to text
  7. The precision parameter is unary; the running-time bound is exponential in general qq.
    Exact derandomization of logarithmic space: L = RL = BPL Back to text

Other sources

  1. J. Gill, “Computational Complexity of Probabilistic Turing Machines”, SIAM Journal on Computing 6(4) (1977), 675–695
  2. R. Aleliunas, R. M. Karp, R. J. Lipton, L. Lovász and C. Rackoff, “Random Walks, Universal Traversal Sequences, and the Complexity of Maze Problems”, FOCS (1979), 218–223
  3. A. Borodin, S. Cook and N. Pippenger, “Parallel computation for well-endowed rings and space-bounded probabilistic machines”, Information and Control 58(1–3) (1983), 113–136
  4. N. Nisan, “Pseudorandom generators for space-bounded computation”, Combinatorica 12(4) (1992), 449–461
  5. N. Nisan, “RL ⊆ SC”, Computational Complexity 4(1) (1994), 1–11
  6. M. Saks and S. Zhou, “BP_H SPACE(S) ⊆ DSPACE(S^{3/2})”, Journal of Computer and System Sciences 58(2) (1999), 376–403
  7. W. M. Hoza, “Better pseudodistributions and derandomization for space-bounded computation”, APPROX/RANDOM 2021, LIPIcs 207, 28:1–28:23
  8. O. Reingold, “Undirected connectivity in log-space”, Journal of the ACM 55(4) (2008), 17:1–17:24 (conference version STOC 2005)
  9. openai/math release notes (2026): model provenance and review status manuscripts and supporting proof artifacts produced by an internal OpenAI model