Physical tape-window trace relocation retaining input and ancestor prefixes
DefinitionIntMul_TraceRelocationalgorithmsfixed-tape-routinginteger-multiplicationturing-machines
Definition code
import Definitions.Def_IntMul_MultitapeModel
namespace IntMul.TraceRelocation
/-- Relocate the noninput tape windows of a configuration, retaining every
ancestor prefix and the complete outer input tape. This is proof-only data;
no address or bound is supplied to the machine's finite transition table. -/
def frame (N : MultitapeTM) (base : N.Cfg) (shift lower : Fin N.k → ℕ) (c : N.Cfg) : N.Cfg where
state := c.state
cells := fun i p => if i=N.inTape then base.cells i p
else if p< shift i+lower i then base.cells i p else c.cells i (p-shift i)
head := fun i => if i=N.inTape then base.head i else shift i+c.head i
end IntMul.TraceRelocation
Source
Original exact-clock tape-window relocation interface. Written by Codex.