Documentation

LeanPool.BeyondBethe.BeyondBethe.MachineListIndex

Indexed access to right-nested machine lists #

The index is supplied in unary. This is the representation used by all bounded row, column, and coordinate loops below: its length is the number of list tails to take. The routine is total on arbitrary strings and its state only shrinks, so its global polynomial-time bound does not depend on the input being a well-formed list code.

Extracts the unary index ruler from a list-index request.

Equations
Instances For

    Extracts the encoded list from a list-index request.

    Equations
    Instances For

      Drops as many encoded list entries as the length of the unary index ruler.

      Equations
      Instances For

        Return the code of the element at the unary index, or the empty word if the index is outside the encoded list.

        Equations
        Instances For

          Exact semantics #

          theorem BeyondBethe.machineListTail_iterate_binaryListCode {α : Type u_1} (encode : α → List Bool) (xs : List α) (k : ℕ) :
          theorem BeyondBethe.machineListIndex_binaryListCode {α : Type u_1} (encode : α → List Bool) (xs : List α) (k : ℕ) (hk : k < xs.length) :

          Read a matrix entry using unary row and column indices. The input is pair rowUnary (pair columnUnary matrixCode).

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