Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation.QueryReplayCheckedGate

Total checked replay with paid rejection output #

A rejected call retains its actual previous-label word and halts immediately. Its final word zeros that stored buffer, so rejection cannot allocate a width-sized result from binary metadata. An accepted call delegates to the native local replay gate on the same original input.

@[reducible, inline]

A paid rejection buffer or an active local replay.

Rejected calls halt without querying the input; accepted calls perform the existing replay.

The rejection word is stored explicitly, rather than replaced by a binary length.

Queries preserve the active gate's original-input interface.

Rejection is immediately halted; accepted calls use the replay counter.

Both final branches are paid by their actual stored words/windows.

Rejection serializes exactly a FAIL word of the stored buffer's width.

A successful branch step is precisely the underlying local gate step.

Every accepted replay prefix lifts without changing the underlying state.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.CheckedGate.runFrom_inl {k s : ℕ} {Q : Type} (M : MultiTapeTM k Bool Q) (e : Q ≃ Fin s) (w word : List Bool) (n : ℕ) :
(machine M e).runFrom w (Sum.inl word) n = Sum.inl word

A rejected call remains at its paid rejection buffer at every clock.