Compact control bounds for iterative Cook–Mertz #
On an existing Tree Evaluation tree of height H, the iterative controller keeps at most H
frames. Every frame's round index remains below the length of the supplied unit enumeration.
These properties hold at every clock, not only at the final return, and also when the unit list
is empty. No saved register bank or subtree is added to a frame.
Main definitions #
Cslib.TreeEval.Ary.Iter.ControlBounds: bounded stack depth and valid round indices.
Main results #
Cslib.TreeEval.Ary.Iter.controlBounds_runFrom: every control step preserves the bounds.Cslib.TreeEval.Ary.Iter.runFrom_initial_bounds: the bounds for a root call at every clock.
This is a pure control invariant. It does not give a native encoding-length or machine-space certificate for the registers, lookup operation, coefficients or gate extension.
For a real tree lookup, a control step preserves depth and unit-round bounds even from an arbitrary bounded configuration. Invalid node paths return without pushing another frame.
Every clocked prefix preserves compact control bounds. No termination or nonempty-round hypothesis is needed.
Starting a root call gives at most one frame per tree level and bounds every round index, at every clock, including runs with an empty unit enumeration.