Native numeric queries on bounded AuxPDA surfaces #
The finite surface encoding has one ternary digit per work-tape cell. From the window radius and the binary input length, the routines compute the surface count and initial surface index. They also decode binary surface IDs, read the original input at a stored head position, and decide bounded stay and matched push-pop edges using a fixed machine's transition table.
Compute the exact surface count with a budget covering the radius and the binary input length. The tape count, state count and stack alphabet size are fixed.
Compute the initial surface index within the budget of the window radius.
Framed binary encodings of the six surface digits.
Decode a binary surface ID within a budget covering the ID and the window radius.
Reading the original input through a valid surface ID agrees with the native input head.
A numbered surface reads the original input within the workspace for its stored ID.
Recognize an accepting empty-stack surface from its binary ID within the decoder's budget.
Read a selected work-head offset within the supplied workspace budget.
Read a selected work symbol within the supplied workspace budget. Only powers whose exponent is bounded by the window width are used to extract the ternary digit.
Compute the selected work tape's ternary word after a write within the supplied budget.
Test a fixed work-tape action against two decoded surface IDs within the same workspace.
Check a fixed transition's required observation within the supplied workspace.
Test a fixed tape action and destination stack top within the same workspace budget.
Test a stay edge between numbered surfaces using the symbol read at the source input head.
The query recognizes exactly a stay edge, including the halted self-loop.
Test a matched push-pop edge using the symbols read at the push and pop source heads.
The push and pop use the same pushed symbol and restore the original top of the stack.
The numbered stay-edge query preserves the common budget of the indices and input symbol.
Both halves of the numbered push-pop query preserve the common workspace budget.