Verified direct predecessor-head formula generation #
This module exposes the executable predecessor-head generator together with
its exact entry domain, restored work-vector effect, and encoded numeric
schedule. Direction codes zero and one mean left and right; all other codes
mean stay, matching movedHeadPositionCode.
Direct predecessor-head generation is sound on its explicit clean domain.
The generator's domain is exactly clean owned scratch, a positive horizon, and an in-range target position.
Complete predecessor-head emission has an all-prefix pointwise width certificate on its natural clean domain. The frontier premise covers every emitted wire; the single arithmetic cap covers both absolute head references and the dynamic reverse-fold offset.
The generator restores every owned scratch register and advances the wire frontier by exactly the predecessor-head schedule size.
The emitted word is exactly the encoded numeric predecessor-head schedule at the run-time layout, target, and horizon.