NLA-lib Explorer

Weighted accounting on ordinary loop invariants

Library · Source module

Weighted accounting on ordinary loop invariants

The word-level step uses the same footprint and mathematical invariant as writes_loop. A separate per-round estimate bounds actual counted instructions. The shared rule combines them on one execution, retaining the word proof's total correctness and frame.

Main results

* NLAlib.Ops.writes_loop_weighted: total loop execution with invariant-sensitive weights.

Declarations