Documentation

LeanPool.BeyondBethe.Complexitylib.Models.RandomAccessMachine.Simulation.RegisterStore.Machine.EntryUpdate.Defs

Bounded encoded sparse-store update — controller definitions #

The fixed controller owns thirteen pairwise-distinct work tapes. It scans a runtime-counted entry stream, copying misses, replacing or deleting a hit, and appending a fresh nonzero entry only when the old count is exhausted without a match. A second count tape tracks the output-store cardinality.

Canonical head profile after an old decoded entry has been emitted.

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

    Work-independent cleanup bound when deletion emits no entry.

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

      Work-independent cleanup bound after miss-copy or replacement emission.

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

        Fixed bound for copying one unmatched entry and restoring scratch.

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

          Fixed bound for emitting a replacement and restoring scratch.

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

            Uniform binary counter-update budget below the initial store size.

            Equations
            Instances For
              def Complexity.RAM.RegisterStore.Machine.entryUpdateBranchTime {n : ℕ} (tapes : EntryUpdateTapes n) (entry : Entry) (address newValue total : ℕ) :

              Maximum controller branch cost after one readable comparison.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def Complexity.RAM.RegisterStore.Machine.entryUpdateIterationTime {n : ℕ} (tapes : EntryUpdateTapes n) (entry : Entry) (rest : Store) (address newValue total : ℕ) :

                Fixed cost of one positive-count iteration, excluding the recursive tail.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def Complexity.RAM.RegisterStore.Machine.entryUpdateLoopTime {n : ℕ} (tapes : EntryUpdateTapes n) (address newValue total : ℕ) :

                  Recursive fixed bound for updating a remaining sparse-store suffix.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def Complexity.RAM.RegisterStore.Machine.entryUpdateTime {n : ℕ} (tapes : EntryUpdateTapes n) (store : Store) (address newValue : ℕ) :

                    Public runtime bound for one complete encoded sparse-store update.

                    Equations
                    Instances For

                      Controller states, including each checked nested machine.

                      Instances For
                        def Complexity.RAM.RegisterStore.Machine.instDecidableEqEntryUpdateQ.decEq {n✝ : ℕ} {tapes✝ : EntryUpdateTapes n✝} (x✝ x✝¹ : EntryUpdateQ tapes✝) :
                        Decidable (x✝ = x✝¹)
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          @[instance_reducible]

                          The update controller has finitely many states because every nested machine state type is finite.

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

                          Fixed runtime-counted update controller. The old remaining count reaches zero on every complete scan; the result count is decremented only for deletion and incremented only for absent-address append.

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