Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Probabilistic.Composition.Space

Workspace of buffered probabilistic composition #

The existing compiler retains the source scratch tapes and uses two additional tapes for the consumer's virtual input and its boundary marker. Bounds concern every computation prefix of the nondeterministic view, and charge the intermediate word separately from component workspace.

Main results #

theorem Turing.MultiTapePTM.runsInSpace_toNTM_comp {k₀ k₁ : ℕ} {Symbol State₀ State₁ : Type} (first : MultiTapePTM k₀ Symbol State₀) (second : MultiTapePTM k₁ Symbol State₁) (mark : Symbol) {input : List Symbol} {time sourceSpace consumerSpace outputBound : ℕ} (hhalt : ∀ final ∈ (first.runClosedConfigFrom time (MultiTapeMachine.initialConfig first input)).eval.support, final.tapes.state = none) (hfirst : first.toNTM.RunsInSpace input sourceSpace) (houtput : ∀ word ∈ (first.runClosed time input).eval.support, word.length ≤ outputBound) (hsecond : ∀ word ∈ (first.runClosed time input).eval.support, second.toNTM.RunsInSpace word consumerSpace) :
(second.comp first mark).toNTM.RunsInSpace input ((k₁ + k₀ + 2) * (2 * max (max sourceSpace consumerSpace) (outputBound + 2) + 1))

Workspace of the existing buffered probabilistic compiler, measured on every prefix of every branch. The source must halt within its clock and its supported completed outputs must fit the buffer bound. The consumer needs only an all-prefix workspace bound on those supported words; it need not halt. The two extra tapes and retained source scratch are charged explicitly. This bound is independent of the source clock and of any consumer runtime.