Documentation

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

Bounded sparse-entry scan — definitions #

entryScanTM is a fixed machine, independent of the runtime store size. A canonical binary remaining-count tape bounds the scan. Each iteration runs the checked entry step; a hit leaves its readable result at 1 and halts, while a miss restores scratch, decrements the count, and loops. Count zero halts with the blank miss result.

Entry-match tapes plus a distinct canonical binary remaining-count tape.

  • entry : EntryMatchTapes n

    The nine tapes used by one decode/compare iteration.

  • count : Fin n

    Runtime remaining-entry count.

  • count_ne (i : Fin 9) : self.count self.entry.idx i

    The count tape is distinct from every entry-step tape.

Instances For

    The count tape is distinct from the encoded entry source.

    The count tape is distinct from the readable match-result tape.

    Finite controller phases outside the nested entry-step and predecessor machines.

    Instances For
      @[implicit_reducible]

      EntryScanPhase has exactly two states.

      Equations
      • One or more equations did not get rendered due to their size.
      @[reducible, inline]

      State type of the bounded sparse-entry controller.

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

        Fixed bounded scan controlled by a runtime canonical binary count.

        The test phase halts on the empty encoding of zero. At positive count it runs one entry step. A readable 1 result exits immediately with the decoded value; the blank miss result enters binary predecessor and then loops.

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

          Canonical all-blank work family used only to state the iteration bound; every tape head is at cell one.

          Equations
          Instances For

            Work-value-independent bound for one invariant-preserving entry step.

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

              Recursive bound for scanning a whole finite store. It reserves the miss path at every entry, so it also bounds an earlier successful exit.

              Equations
              Instances For
                def Complexity.RAM.RegisterStore.Machine.EntryScanFrame {n : } (tapes : EntryScanTapes n) (initialWork finalWork : Fin nTape) :

                Exact preservation predicate outside the ten tapes owned by the bounded entry scanner.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  structure Complexity.RAM.RegisterStore.Machine.EntryScanFound {n : } (tapes : EntryScanTapes n) (store scanned : Store) (matched : Entry) (rest : Store) (queryBits : List Bool) (initialWork hitBase finalWork : Fin nTape) :

                  Successful bounded scan result. The decomposition records the first matching entry, the decoded value remains readable, and the runtime count is the number of entries beginning at that hit.

                  Instances For
                    structure Complexity.RAM.RegisterStore.Machine.EntryScanMiss {n : } (tapes : EntryScanTapes n) (store : Store) (queryBits : List Bool) (initialWork readyBase finalWork : Fin nTape) :

                    Unsuccessful bounded scan result. Every address is certified different, the source and scratch invariant is exhausted, and the runtime count is zero.

                    Instances For
                      def Complexity.RAM.RegisterStore.Machine.EntryScanOutcome {n : } (tapes : EntryScanTapes n) (store : Store) (queryBits : List Bool) (initialWork finalWork : Fin nTape) :

                      Complete semantic outcome of a bounded sparse-entry scan.

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