Native extraction of an encoded framed header #
A layout equality encIn x = frame (encOut (f x)) ++ suffix x identifies the first framed
field of an input. ComputableInTimeAndSpace.framedPrefix realizes that field projection using
the existing zero-work-tape frame transducer. Its time bound is twice the complete input length
plus three, and its workspace is zero. The suffix can be arbitrarily long.
ComputableInSpace.framedPrefix supplies the corresponding compositional space certificate,
charging only the extracted header's encoding. This additional charge accounts for retaining the
output in a later computation; it is not a charge for the suffix. These certificates concern
inputs in the supplied encoding's image, not arbitrary malformed framed words.
This original shared certificate supports runtime parameter and controller-header extraction; it does not initialize or execute a complete query machine.
Extract the first framed encoded field with the existing native frame reader, without work tapes. The layout premise leaves the remainder of the input unrestricted.
Extract a framed encoded field with a native space budget that charges its output alone, independently of the length of the untouched suffix.
Compute the length of the framed header in the same space budget as its extraction. For a framed prefix, this gives the binary offset of the original payload.