Documentation

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

RAM sparse-entry matching — definitions #

entryMatchTM is the concrete unit consumed by a bounded sparse-store scan. It decodes one address/value entry and compares the decoded address with a preserved canonical query. The result is appended to a dedicated work tape.

Nine pairwise-distinct work tapes used to decode and match one sparse register-store entry.

  • idx : Fin 9Fin n

    Tape assignment in the order source, address, value, address counter, address width, value counter, value width, query, and result.

  • injective : Function.Injective self.idx
Instances For

    The seven decoder tapes contained in an entry-matching assignment.

    Equations
    Instances For

      Encoded entry-stream source tape.

      Equations
      Instances For

        Decoded address scratch tape.

        Equations
        Instances For

          Decoded value scratch tape.

          Equations
          Instances For

            Binary loop counter used while decoding the address.

            Equations
            Instances For

              Preserved address payload-width tape.

              Equations
              Instances For

                Binary loop counter used while decoding the value.

                Equations
                Instances For

                  Preserved value payload-width tape.

                  Equations
                  Instances For

                    Canonical query-address tape.

                    Equations
                    Instances For

                      Boolean match-result tape.

                      Equations
                      Instances For
                        theorem Complexity.RAM.RegisterStore.Machine.EntryMatchTapes.ne {n : } (tapes : EntryMatchTapes n) {i j : Fin 9} (h : i j) :
                        tapes.idx i tapes.idx j

                        Decode one sparse entry with unary markers and compare its address with the preserved query.

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

                          Runtime bound for decoding and matching one sparse entry, including the composition seam.

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

                            Decode and compare one sparse entry, then rewind the one-bit result to its canonical cell-one read position.

                            Equations
                            Instances For

                              Runtime bound for a readable one-entry match, including both composition seams and the at-most-four-step rewind of the one-bit result.

                              Equations
                              Instances For
                                structure Complexity.RAM.RegisterStore.Machine.ReadableEntryMatch {n : } (tapes : EntryMatchTapes n) (entry : Entry) (rest queryBits : List Bool) (initialWork finalWork : Fin nTape) :

                                Auditable endpoint contract for one readable sparse-entry match. The decoded scratch remains available to a hit branch or can be cleared by a miss branch; the result is parked at cell one for direct controller inspection.

                                Instances For