Encodings of the states of the Tree Evaluation read machine #
The states of Cslib.TreeEval.Reader.machine are encoded as tuples: the value length, the height
and the prime in binary, the registers as lists of binary naturals, the stack as a list of frames,
each a binary round with finitely many other fields, the mode as a finite tag, and the control state
as a tag with two binary naturals and a list of them.
Main definitions #
Cslib.TreeEval.Reader.State.toTuple: a state as a tuple.Cslib.TreeEval.Reader.encState: the encoding of states.
The encoding of frames.
Instances For
@[reducible, inline]
The tuples of states.