Documentation

Complexitylib.Interop.Mathlib.TM0.Defs

Finite Mathlib TM0 machines with binary input and output #

The source has a finite alphabet and state set. Input bits are mapped to source symbols. A halted source configuration supplies the complete binary output at and to the right of its tape head. The CSLib simulator copies and rewinds its input, simulates each source transition on symbol tracks, then emits that output.

A finite Mathlib machine with a faithful binary encoding of its input and output.

Instances For
    @[reducible, inline]

    A configuration of the source machine.

    Equations
    Instances For
      @[reducible, inline]

      One transition, using the alphabet and initial-state instances of the bundle.

      Equations
      Instances For

        Run exactly the given number of source transitions, failing if a step is unavailable.

        Equations
        Instances For

          A halted source run whose entire right-of-head tape is the encoded binary output.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            inductive Complexity.MathlibTM0.Control (Q : Type u_1) :
            Type u_1

            Simulator phases: input copying, rewind, source execution, and output emission.

            • copy {Q : Type u_1} : Control Q

              Copy input bits to symbol tracks.

            • rewind {Q : Type u_1} : Control Q

              Rewind the symbol tracks to the first input cell.

            • run {Q : Type u_1} : Q → Control Q

              Execute one source control state.

            • emit {Q : Type u_1} : Control Q

              Emit the binary output at and right of the halted source head.

            Instances For
              @[reducible, inline]

              One binary work tape per source alphabet symbol.

              Equations
              Instances For

                Associate each work tape with its source alphabet symbol.

                Equations
                Instances For

                  A transition leaving the work tapes unchanged.

                  Equations
                  Instances For

                    Simulate a source transition, switching to output emission when the source halts.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      The finite binary CSLib simulator.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For