Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Probabilistic.PairSampler

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 #

Main results #

The control phases: before a frame tag, before a framed data bit, and in the sampled tail.

Instances For

    The control state after reading a symbol. The right boundary halts.

    Instances For

      The emitted symbol. Framed symbols are copied, and tail symbols are replaced by the coin.

      Instances For

        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.