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
Output tape slot.
Equations
Instances For
Symbols currently read by all named TM heads.
Equations
- Complexity.RAM.TMConfig.Sparse.readSymbols cfg tape = (Complexity.RAM.TMConfig.tapeAt cfg tape).read
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
Initialize scratch state and load every named head symbol.
Equations
Instances For
Update one represented head.
Equations
- One or more equations did not get rendered due to their size.
- Complexity.RAM.TMConfig.Sparse.moveOps n tape Complexity.Dir3.stay = []
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
Write and move one represented work/output tape.
Equations
- Complexity.RAM.TMConfig.Sparse.writeMoveOps n tape write direction = Complexity.RAM.TMConfig.Sparse.writeOps n tape write ++ Complexity.RAM.TMConfig.Sparse.moveOps n tape direction
Instances For
Structured selected-transition command.
Equations
- Complexity.RAM.TMConfig.Sparse.action tm state symbols = Complexity.RAM.Structured.Cmd.basics (Complexity.RAM.TMConfig.Sparse.actionOps tm state symbols)
Instances For
Recursively dispatch on loaded tape symbols.
Equations
- One or more equations did not get rendered due to their size.
- Complexity.RAM.TMConfig.Sparse.dispatchSymbols tm state [] x✝ = Complexity.RAM.TMConfig.Sparse.action tm state x✝
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
Fixed uniform structured-RAM block for one nonhalting TM transition.
Equations
Instances For
Concrete compiled uniform transition block.
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
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
Uniform value bound for a transition whose input heads are at most
bound; it includes a possible right move.
Equations
- Complexity.RAM.TMConfig.Sparse.wordBound tm bound = max (Complexity.RAM.TMConfig.Sparse.registerBound n (bound + 1)) (max (Fintype.card tm.Q) (bound + 1))
Instances For
One-bit-cushioned resource width.
Equations
- Complexity.RAM.TMConfig.Sparse.wordWidth tm bound = Complexity.RAM.bitlen (Complexity.RAM.TMConfig.Sparse.wordBound tm bound) + 1
Instances For
Exact transition count through symbol dispatch.
Equations
- One or more equations did not get rendered due to their size.
- Complexity.RAM.TMConfig.Sparse.dispatchSteps tm state actual [] = (Complexity.RAM.TMConfig.Sparse.actionOps tm state actual).length
Instances For
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
Exact instruction count of the while-loop suffix along steps TM
transitions. The none branch is unreachable in the corresponding simulation
theorem.
Equations
- One or more equations did not get rendered due to their size.
- Complexity.RAM.TMConfig.Sparse.loopSteps tm 0 x✝ = 1
Instances For
Exact instruction count of the complete fixed simulator along a known halting run.
Equations
- Complexity.RAM.TMConfig.Sparse.runSteps tm steps cfg = Complexity.RAM.TMConfig.Sparse.continueSteps tm cfg + Complexity.RAM.TMConfig.Sparse.loopSteps tm steps cfg
Instances For
Logarithmic-cost bound through symbol dispatch.
Equations
- One or more equations did not get rendered due to their size.
- Complexity.RAM.TMConfig.Sparse.dispatchCost tm bound state actual [] = 4 * (Complexity.RAM.TMConfig.Sparse.actionOps tm state actual).length * Complexity.RAM.TMConfig.Sparse.wordWidth tm bound
Instances For
Explicit logarithmic cost bound for one sparse TM step.
Equations
- One or more equations did not get rendered due to their size.
Instances For
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
Accumulated logarithmic cost bound for the while-loop suffix. base bounds
the current heads; the remaining-step allowance supplies the common envelope.
Equations
- One or more equations did not get rendered due to their size.
- Complexity.RAM.TMConfig.Sparse.loopTimeBound tm x✝¹ 0 x✝ = Complexity.RAM.TMConfig.Sparse.wordWidth tm x✝¹
Instances For
Accumulated logarithmic cost bound for the complete fixed simulator.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Width multiplier through the symbol-dispatch suffix.
Equations
- One or more equations did not get rendered due to their size.
- Complexity.RAM.TMConfig.Sparse.dispatchFactor tm state actual [] = 4 * (Complexity.RAM.TMConfig.Sparse.actionOps tm state actual).length
Instances For
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
- Complexity.RAM.TMConfig.Sparse.continueFactor tm = 4 * (Complexity.RAM.TMConfig.Sparse.loadOps n).length + (7 * Fintype.card tm.Q + 5)
Instances For
Per-iteration multiplier including loop control, transition, and continuation check.
Equations
Instances For
Coarse multiplier for a complete run, including the initial continuation check and final zero test.