Documentation

Complexity.Computability.TreeEval.Reader.Encode

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 #

A frame as a tuple.

Instances For

    The encoding of frames.

    Instances For

      A mode as an option.

      Instances For

        The encoding of modes.

        Instances For

          The control state as a tuple: a tag, two naturals and a list.

          Instances For
            @[reducible, inline]

            The encoding of tuples of control states.

            Instances For

              The encoding of control states.

              Instances For
                @[reducible, inline]

                The encoding of registers.

                Instances For
                  @[reducible, inline]

                  The tuples of states.

                  Instances For

                    A state as a tuple.

                    Instances For
                      @[reducible, inline]

                      The encoding of tuples of states.

                      Instances For

                        The encoding of states.

                        Instances For