Documentation

LeanPool.BeyondBethe.BeyondBethe.MachineRationalMatrixUpdate

Mutable rational-matrix memory #

The input is pair rowUnary (pair columnUnary (pair replacement matrixWord)). The replacement is already a canonical rational-entry code. The routine updates the selected entry of the right-nested row-major matrix encoding and preserves the original binary dimension word.

Extracts the unary row index from a rational matrix-update request.

Equations
Instances For

    Extracts the matrix-update payload following its row index.

    Equations
    Instances For

      Extracts the unary column index from a rational matrix-update request.

      Equations
      Instances For

        Extracts the replacement-and-matrix payload following the requested indices.

        Equations
        Instances For

          Looks up the row selected by the unary matrix-update index.

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

            Replaces the selected column of the current row with the supplied entry.

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

              Replaces the selected matrix row with its updated row.

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

                Reconstructs the matrix encoding from its unchanged dimension and updated row list.

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

                  Exact semantics #

                  def BeyondBethe.rationalRowsWord (dimension : List Bool) (rows : List (List ℚ)) :

                  Pairs a dimension word with an encoded nested list of rational rows.

                  Equations
                  Instances For
                    @[simp]
                    theorem BeyondBethe.machineRationalMatrixUpdateAtUnary_rows (dimension : List Bool) (rows : List (List ℚ)) (replacement : ℚ) (i j : ℕ) (hi : i < rows.length) (hj : j < rows[i].length) :