Validate paired machine inputs #
pairValidateTM is a total finite-state recognizer for the image of the
library's self-delimiting pair codec. It rejects every malformed outer input
and runs in exactly the generic scanner budget n + 2.
This complements pairSplitCoreTM: validate first when arbitrary input strings
need rejecting semantics, then rewind and use the canonical splitter to stage
the two decoded components.
Failure of the partial decoder is exactly nonmembership in the valid-pair language.
Every canonical pair is a valid pair encoding.
The pair-validator fold accepts exactly when the canonical decoder succeeds.
The finite-state pair validator decides validPairEncoding in linear time.
Adding arbitrary unused work tapes preserves the validator's language and exact linear time bound. This is the form used by larger machine pipelines.
Frame-rich initialized specification for the lifted validator. Besides the
verdict, it exposes the read-only input cells, head bounds, well-formedness of
all tapes, and the fact that every added work tape is parked and blank. These
are the seams needed by ifTM and a subsequent input rewind.