Documentation

Complexitylib.Models.RandomAccessMachine.Simulation.TMConfig.Sparse.ABI.Internal.Capture

Capturing raw-input scratch bits in finite control -- proof internals #

theorem Complexity.RAM.TMConfig.Sparse.captureInput_exec_of_leaf_internal {n : } (tm : TM n) (store : Structured.Store) (regs : List ) (captured : List ( × )) {final : Structured.Store} (hbits : regregs, store reg = 0 store reg = 1) (hleaf : ∃ (steps : ) (cost : ) (space : ), Structured.Exec (marshalLeaf tm (captureValues store regs captured)) store final steps cost space) :
∃ (steps : ) (cost : ) (space : ), Structured.Exec (captureInput tm regs captured) store final steps cost space

If the selected leaf executes, the generated capture tree executes that same leaf without changing the store. Branch costs are left existential here; the later resource layer assigns their common envelope.

theorem Complexity.RAM.TMConfig.Sparse.marshalInput_exec_of_leaf_internal {n : } (tm : TM n) (x : List Bool) {final : Structured.Store} (hleaf : ∃ (steps : ) (cost : ) (space : ), Structured.Exec (marshalLeaf tm (captureValues (initRegs x) (captureRegs n) [])) (initRegs x) final steps cost space) :
∃ (steps : ) (cost : ) (space : ), Structured.Exec (marshalInput tm) (initRegs x) final steps cost space

Specialization of finite capture to the public RAM input store.