Documentation

Complexitylib.Models.RandomAccessMachine.Simulation.TMConfig.Sparse.Step.Defs

A fixed sparse-RAM block for one Turing-machine transition #

Unlike the bounded dense block, this program is determined solely by tm. It computes an interleaved tape-cell address as cellBase + head * (n + 2) + tape, so the same finite RAM program can follow an unbounded computation.

Input tape slot.

Equations
Instances For

    Work-tape slot.

    Equations
    Instances For

      Output tape slot.

      Equations
      Instances For

        Symbols currently read by all named TM heads.

        Equations
        Instances For

          Compute the indirect address of the cell under one named head. valueReg temporarily holds the tape-specific base constant.

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

            Load the symbol under one named head.

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

              Initialize fixed constants and copy the finite-state code.

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

                Update one represented head.

                Equations
                Instances For

                  Write the cell under one represented head and restore its immutable cell zero to the left-end marker.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def Complexity.RAM.TMConfig.Sparse.writeMoveOps (n : ) (tape : Fin (n + 2)) (write : Γw) (direction : Dir3) :

                    Write and move one represented work/output tape.

                    Equations
                    Instances For
                      noncomputable def Complexity.RAM.TMConfig.Sparse.actionOps {n : } (tm : TM n) (state : tm.Q) (symbols : Fin (n + 2)Γ) :

                      Straight-line operations for one statically selected transition.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        noncomputable def Complexity.RAM.TMConfig.Sparse.action {n : } (tm : TM n) (state : tm.Q) (symbols : Fin (n + 2)Γ) :

                        Structured selected-transition command.

                        Equations
                        Instances For
                          noncomputable def Complexity.RAM.TMConfig.Sparse.dispatchSymbols {n : } (tm : TM n) (state : tm.Q) :
                          List (Fin (n + 2))(Fin (n + 2)Γ)Structured.Cmd

                          Recursively dispatch on loaded tape symbols.

                          Equations
                          Instances For

                            Dispatch on the state code and every loaded symbol.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              noncomputable def Complexity.RAM.TMConfig.Sparse.compiled {n : } (tm : TM n) :

                              Concrete compiled uniform transition block.

                              Equations
                              Instances For
                                def Complexity.RAM.TMConfig.Sparse.runningFlag {n : } (tm : TM n) (state : tm.Q) :

                                Runtime loop flag: zero exactly in the designated halt state.

                                Equations
                                Instances For

                                  Finite-state branch that writes the runtime loop flag.

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

                                    Reload the represented state and set the runtime loop flag. The full load prelude is deliberately reused so this fixed controller inherits its framing theorem.

                                    Equations
                                    Instances For

                                      One loop iteration: perform one TM transition, then recompute whether the successor is halted.

                                      Equations
                                      Instances For

                                        Fixed structured program that repeats transitions until the represented TM enters qhalt.

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

                                          Concrete compiled fixed program that simulates until qhalt.

                                          Equations
                                          Instances For
                                            noncomputable def Complexity.RAM.TMConfig.Sparse.continueSteps {n : } (tm : TM n) (cfg : Complexity.Cfg n tm.Q) :

                                            Exact instruction count of one continuation check.

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

                                              Largest cell-register index needed when heads stay at most bound.

                                              Equations
                                              Instances For
                                                def Complexity.RAM.TMConfig.Sparse.wordBound {n : } (tm : TM n) (bound : ) :

                                                Uniform value bound for a transition whose input heads are at most bound; it includes a possible right move.

                                                Equations
                                                Instances For
                                                  def Complexity.RAM.TMConfig.Sparse.wordWidth {n : } (tm : TM n) (bound : ) :

                                                  One-bit-cushioned resource width.

                                                  Equations
                                                  Instances For

                                                    Peak sparse-store space envelope through one transition.

                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      noncomputable def Complexity.RAM.TMConfig.Sparse.dispatchSteps {n : } (tm : TM n) (state : tm.Q) (actual : Fin (n + 2)Γ) :
                                                      List (Fin (n + 2))

                                                      Exact transition count through symbol dispatch.

                                                      Equations
                                                      Instances For
                                                        noncomputable def Complexity.RAM.TMConfig.Sparse.stepCount {n : } (tm : TM n) (cfg : Complexity.Cfg n tm.Q) :

                                                        Exact source/compiled instruction count for one sparse TM step.

                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          noncomputable def Complexity.RAM.TMConfig.Sparse.loopSteps {n : } (tm : TM n) :
                                                          Complexity.Cfg n tm.Q

                                                          Exact instruction count of the while-loop suffix along steps TM transitions. The none branch is unreachable in the corresponding simulation theorem.

                                                          Equations
                                                          Instances For
                                                            noncomputable def Complexity.RAM.TMConfig.Sparse.runSteps {n : } (tm : TM n) (steps : ) (cfg : Complexity.Cfg n tm.Q) :

                                                            Exact instruction count of the complete fixed simulator along a known halting run.

                                                            Equations
                                                            Instances For
                                                              noncomputable def Complexity.RAM.TMConfig.Sparse.dispatchCost {n : } (tm : TM n) (bound : ) (state : tm.Q) (actual : Fin (n + 2)Γ) :
                                                              List (Fin (n + 2))

                                                              Logarithmic-cost bound through symbol dispatch.

                                                              Equations
                                                              Instances For
                                                                noncomputable def Complexity.RAM.TMConfig.Sparse.timeBound {n : } (tm : TM n) (bound : ) (cfg : Complexity.Cfg n tm.Q) :

                                                                Explicit logarithmic cost bound for one sparse TM step.

                                                                Equations
                                                                • One or more equations did not get rendered due to their size.
                                                                Instances For
                                                                  noncomputable def Complexity.RAM.TMConfig.Sparse.continueTimeBound {n : } (tm : TM n) (bound : ) (cfg : Complexity.Cfg n tm.Q) :

                                                                  Explicit logarithmic cost bound for one continuation check under a fixed store envelope.

                                                                  Equations
                                                                  • One or more equations did not get rendered due to their size.
                                                                  Instances For
                                                                    noncomputable def Complexity.RAM.TMConfig.Sparse.loopTimeBound {n : } (tm : TM n) :
                                                                    Complexity.Cfg n tm.Q

                                                                    Accumulated logarithmic cost bound for the while-loop suffix. base bounds the current heads; the remaining-step allowance supplies the common envelope.

                                                                    Equations
                                                                    Instances For
                                                                      noncomputable def Complexity.RAM.TMConfig.Sparse.runTimeBound {n : } (tm : TM n) (base steps : ) (cfg : Complexity.Cfg n tm.Q) :

                                                                      Accumulated logarithmic cost bound for the complete fixed simulator.

                                                                      Equations
                                                                      • One or more equations did not get rendered due to their size.
                                                                      Instances For
                                                                        noncomputable def Complexity.RAM.TMConfig.Sparse.dispatchFactor {n : } (tm : TM n) (state : tm.Q) (actual : Fin (n + 2)Γ) :
                                                                        List (Fin (n + 2))

                                                                        Width multiplier through the symbol-dispatch suffix.

                                                                        Equations
                                                                        Instances For
                                                                          noncomputable def Complexity.RAM.TMConfig.Sparse.stepFactor {n : } (tm : TM n) :

                                                                          Configuration-independent multiplier for one sparse transition, obtained by taking the finite maximum over states and currently scanned symbols.

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

                                                                            Configuration-independent multiplier for one continuation check.

                                                                            Equations
                                                                            Instances For
                                                                              noncomputable def Complexity.RAM.TMConfig.Sparse.iterationFactor {n : } (tm : TM n) :

                                                                              Per-iteration multiplier including loop control, transition, and continuation check.

                                                                              Equations
                                                                              Instances For
                                                                                noncomputable def Complexity.RAM.TMConfig.Sparse.runFactor {n : } (tm : TM n) :

                                                                                Coarse multiplier for a complete run, including the initial continuation check and final zero test.

                                                                                Equations
                                                                                Instances For