Documentation

Complexity.Computability.Machines.Turing.MultiTape.Probabilistic.ReplayInput

Efficient replay from an encoded input and saved coins #

Replay receives an ordinary encoded pair of coins and input. A pair preparer writes both words, a marker enables virtual input, and the saved-coin controller executes the supplied transitions. The final tidy normalization clears the working storage and restores all heads.

Main results #

References #

Adapted from the cslib crypto branch's MultiTape/Oracle/ReplayInput.lean at 5ff69ca93402e7c947208dc56396d6d86203ccd8, using the common machine and the tidy pair calculus.

Running a fixed machine on a supplied pair of coins and input is tidily computable in linear time and space. The bound charges input preparation, every supplied coin, and final cleanup; it does not assume that the source machine halts.

The ordinary functional polynomial-time API can invoke saved-coin replay directly.