The setting
Consider a deterministic counter machine with state set and counters indexed by , initialized with counter values . Compiling a halting computation into a single-fold tuple of natural numbers, one in which every auxiliary variable is determined by the arguments, pairs a numeration base with directed transition arcs carrying witness weights between states, and tracks how large any counter can grow after a number of steps.
Counter machines
A counter machine instruction over a state set and a counter index set is one of three forms: ; an increment instruction for a counter and a target state ; or a test-and-decrement instruction for a counter and target states .✦ A counter machine over a state set and a counter index set consists of an instruction map assigning a counter machine instruction over and to each state , a start state , and a halting state , such that if and only if .✦
A machine configuration over a state set and a counter index set consists of a state and a counter valuation .✦ For a counter machine over and , the one-step transition sends a configuration to the successor configuration given by (1): (1)✦ In (1), denotes the counter valuation agreeing with at every and taking the value at .
For a counter machine over and , initial counter values (writing ), and a step count , the run of for steps from is the configuration obtained by applying times to .✦
Halting witness tuples
A halting witness tuple holds the natural auxiliary variables of the polynomial system that has a unique solution when the machine halts and none when it does not. A halting witness tuple over a state set and a counter index set consists of seven natural numbers, four functions (a state record , a zero-branch record , a decrement-branch record , and one further function ), and three functions from to , where is an adjoined element.✦
The claim
Definition. The numeration base shifts the step count to give a common bound for the counter values after steps. For a finite state set , a finite counter index set , and initial counter values , the numeration base is defined by (2): (2)✦
An increment instruction gives one directed arc and a test-and-decrement instruction gives two, with the arc destination recording each arc’s target state. Given a counter machine over a state set and a counter index set , a state , and a boolean branch index , the arc destination (with ) is defined by (3): (3)✦
The arc weight measures the witness weight assigned by to the branch , and when no outgoing arc corresponds to . The arc weight for a counter machine over and , a halting witness tuple over and , a state , and a boolean branch index is defined by (4): (4)✦
Let be a counter machine over and with finite, let be a halting witness tuple over and , and let ; the incoming weight at is defined by (5): (5)✦
Theorem. Let be a counter machine over a state set and a counter index set , let be initial counter values, let , and let . Then the value of counter in the run for steps satisfies (6): (6)✦
What is checked
The definition and the theorem above are stated over counter machines with counter machine instructions, machine configurations, one-step transitions, -step runs, and halting witness tuples, using a finite state set and a finite counter index set for the numeration base and a finite state set for the incoming weights.