Correctness and charged execution of a native sparse-query batch #
The original wanted codes lie below the retained table's end, and answers lie above the query stack. Each query preserves both the original codes and all earlier answers. The bound sums actual sparse query allowances and charges six further instructions per wanted code, plus two for final loop exit. Empty lists execute only that exit.
Persistent ordinary arguments of the reused tile; no execution or resource fields.
Original encoding depth.
Original sparse threshold.
Actual encoding-array length.
Actual left array base.
Actual right array base.
Shared directory base.
Retained signed value-table base.
Actual compact box count.
The actual native batch charge, including every load, store, cursor increment and loop test.
Original addresses cover the reused kernel, batch cursors and their one-past-end values.
Execute all wanted codes against one actual retained table. The input list may be empty or contain duplicates. The same final memory stores every answer in order and preserves source/table readback and all words outside the stack and output intervals.