Documentation

Complexitylib.Models.RandomAccessMachine.Simulation.RegisterStore.Machine.EntryReplace.Defs

Sparse-entry replacement — definitions #

The replacement branch emits the matched address paired with a distinct canonical new-value tape, rewinds that external value source, and restores the ordinary next-entry scan invariant.

Entry-match tapes plus a distinct source containing the replacement value.

  • entry : EntryMatchTapes n

    The nine tapes used to decode and match the old entry.

  • replacement : Fin n

    Canonical new-value source.

  • replacement_ne (i : Fin 9) : self.replacement self.entry.idx i

    The replacement source is outside the complete entry-match assignment.

Instances For

    Emit the matched decoded address paired with the replacement source.

    Equations
    Instances For

      Exact work family after replacement emission and restoration of the external replacement cursor. Only the decoded address head remains changed.

      Equations
      Instances For

        Emit the replacement entry, restore the replacement cursor, and clear all entry decoder/result scratch.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Complexity.RAM.RegisterStore.Machine.entryReplaceCleanupTime {n : } (tapes : EntryReplaceTapes n) (entry : Entry) (newValue : ) (queryBits : List Bool) (initialWork matchedWork : Fin nTape) :

          Compositional runtime bound for replacement emission and cleanup.

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