A bounded worklist for the exact Chan–He recursion #
The worklist expands the existing ChanHe.nodes in its existing preorder. Empty triples and
zero fuel are popped without emitting an instance. Three children replace one set each by its
existing heavy subset, in the order used by the finite reduction.
This is the mathematical invariant for the native traversal, not a native execution contract. In particular, expanding a worklist entry here does not discharge a native modulus or node call. The stack bound counts pending entries, including empty and zero-fuel entries. Those entries still require charged native pop and branch instructions.
Main definitions #
Task: one pending three-set call, including its remaining fuel.step: one exact worklist transition and its optional emitted node.potential: a natural-valued bound on all remaining transitions, including skipped entries.Bounded: a stack-depth invariant giving at most2f+1pending entries for root fuelf.
Main results #
output_step: one transition preserves the exact preorder output.potential_step: every transition strictly decreases the charged-transition bound.bounded_step,Bounded.length_le: the explicit stack has linear capacity in root fuel.
These worklist invariants are original. They reuse the finite recursion of [CH20].
The exact existing preorder associated with one pending call.
Instances For
The exact existing modulus and three sets of a nonempty call.
Instances For
Whether a call is skipped because one of its sets is empty.
Instances For
Number of transitions for the full ternary tree, counting its zero-fuel leaves.
Instances For
Every pending entry costs at least one pop/skip transition.
The sum of the transition budgets of all pending entries.