Linear bounds for the optional head of a list #
The certificate uses the framed list and option encodings and charges encoded output to space.
The inhabitance hypothesis supplies a fixed default for the head primitive; the result remains
none on the empty list. Apply the certificate explicitly to compose it with other computations.
Main results #
Turing.MultiTapeTM.ComputableInO.head?: linear time and charged space forList.head?.