Documentation

Complexitylib.Models.TuringMachine.SpaceTime

Time bounds from deterministic transducer space bounds #

A one-way-output deterministic transducer has only finitely many execution- relevant configurations once its input length and auxiliary-space budget are fixed. A halting run cannot repeat one of these reduced snapshots, yielding an explicit time bound.

Main results #

theorem Complexity.TM.IsTransducer.reachesIn_succ_le_transducerConfigBound {k : } {tm : TM k} (htrans : tm.IsTransducer) {x : List Bool} {space t : } {c : Cfg k tm.Q} (hreach : tm.reachesIn t (tm.initCfg x) c) (hhalt : tm.halted c) (hspace : ∀ (d : Cfg k tm.Q), tm.reaches (tm.initCfg x) dd.WithinAuxSpace x.length space) :

A halting transducer run staying within auxiliary space space has one more time index than steps, and all those indices inject into the explicit type of reduced transducer snapshots.

theorem Complexity.TM.IsTransducer.reachesIn_le_transducerConfigBound {k : } {tm : TM k} (htrans : tm.IsTransducer) {x : List Bool} {space t : } {c : Cfg k tm.Q} (hreach : tm.reachesIn t (tm.initCfg x) c) (hhalt : tm.halted c) (hspace : ∀ (d : Cfg k tm.Q), tm.reaches (tm.initCfg x) dd.WithinAuxSpace x.length space) :

A halting transducer run staying within auxiliary space space takes no more steps than the explicit number of reduced transducer snapshots.

theorem Complexity.TM.ComputesInSpace.computesInTime_configBound {k : } {tm : TM k} {f : List BoolList Bool} {S : } (hcomp : tm.ComputesInSpace f S) :
tm.ComputesInTime f fun (n : ) => tm.transducerConfigBound n (S n)

A total deterministic function transducer using space S computes within the corresponding finite reduced-configuration bound.

theorem Complexity.TM.DecidesInSpace.decidesInTime_configBound {k : } {tm : TM k} {L : Language} {S : } (hdec : tm.DecidesInSpace L S) (htrans : tm.IsTransducer) :
tm.DecidesInTime L fun (n : ) => tm.transducerConfigBound n (S n)

A deterministic language decider with one-way output and auxiliary-space bound S decides within the corresponding finite reduced-configuration bound.