Finite-state structured RAM scanners — proof internals #
theorem
Complexity.RAM.Structured.Scanner.program_measured_internal
(spec : Spec)
(bits : List Bool)
:
theorem
Complexity.RAM.Structured.Scanner.typed_program_measured_internal
{State : Type}
[FinEnum State]
(typed : TypedSpec State)
(bits : List Bool)
:
∃ (final : Store) (cost : ℕ) (space : ℕ),
Exec (program typed.numeric) (inputStore typed.numeric bits) final (stepCount typed.numeric bits.length) cost space ∧ cost ≤ timeBound typed.numeric bits.length ∧ space ≤ spaceBound typed.numeric bits.length ∧ final lengthReg = Input.bitValue (typed.accept (List.foldl typed.step typed.initial bits))