NLA-lib Explorer

Boundary examples for declarative execution

Library · Source module

Boundary examples for declarative execution

A zero-fuel loop must not query its interpreter or run its aborting body. Increasing its fuel to one makes it fail because the query fails. Both conclusions are derived from the reference rules; the general equivalence theorem transfers them to canonical execution.

The payload example nests allocations of unequal word widths, reserves primitive workspace, then queries after releasing the inner buffer. Its expected count, work, span and scratch are written explicitly, including the conservative query reservation and initial payload.

Main results

* NLAlib.Ops.Reference.Examples.zero_fuel_executes: zero fuel succeeds with four charges. * NLAlib.Ops.Reference.Examples.one_fuel_fails: a required failing query prevents success. * NLAlib.Ops.Reference.Examples.Payload.resource_readback: explicit resource accounting.

Declarations