Documentation

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

Sparse-entry miss cleanup — definitions #

The miss branch after entryMatchReadTM resets the seven decoder/result scratch tapes while preserving the consumed source cursor and query address. This restores the exact invariant needed to inspect the next encoded entry.

Embed the seven cleanup slots into the nine entry-match tapes. Slots zero through five select decoder scratch 1..6; slot six selects result tape 8, skipping the preserved query tape 7.

Equations
Instances For

    Fixed, machine-level list of the seven scratch tapes reset on a miss.

    Equations
    Instances For
      def Complexity.RAM.RegisterStore.Machine.entryMissBits {n : } (tapes : EntryMatchTapes n) (entry : Entry) (queryBits : List Bool) (i : Fin n) :

      Canonical represented contents occupying each scratch tape at the readable match endpoint. Values away from the seven scratch tapes are irrelevant.

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

        Per-tape cursor bound inherited from the readable match contract.

        Equations
        Instances For

          Rewind the preserved query, then reset all decoder/result scratch after a failed entry comparison.

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

            Compositional miss-cleanup bound specialized to the readable endpoint.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              structure Complexity.RAM.RegisterStore.Machine.EntryScanReady {n : } (tapes : EntryMatchTapes n) (remaining queryBits : List Bool) (initialWork finalWork : Fin nTape) :

              Loop invariant restored after a failed match: the source points at the next entry, query is preserved, and all seven scratch tapes are canonical blank/zero tapes ready for another decode.

              Instances For