Sampling a certificate beside a framed word #
Turing.MultiTapePTM.pairSampler is one fixed fair-coin machine with three control states and no
work tapes. On an input frame y ++ r it copies frame y to the output, then emits one fresh
fair bit for each symbol of r, and halts at the right boundary. So it outputs frame y ++ w,
the pair encoding of (y, w), for a uniform word w of length r.length. It takes exactly
(frame y ++ r).length + 1 transitions. Each copying transition also draws a coin, and ignores
it. Read nondeterministically, the machine guesses a certificate for the framed instance.
Main definitions #
Turing.MultiTapePTM.pairSampler: the framed copier and certificate sampler.
Main results #
Turing.MultiTapePTM.eval_pairSampler: the output is a uniform certificate after the framed word.Turing.MultiTapePTM.pairSampler_halted: every run has halted at the linear clock.
Copy a framed word, then emit one fair bit per remaining input symbol, and halt at the right boundary, without work tapes.
Instances For
The sampler outputs a uniform certificate after the framed word, in a linear number of transitions.
Every supported configuration has actually halted by the linear clock.