NLA-lib Explorer

Interpretations and the evaluator

Library · Source module

Interpretations and the evaluator

An interpretation NLAlib.Ops.Interp Op Tst K gives the meaning of every operation: the effect of a call on the memory (it is given the tape), the Boolean of a test, the number of an index use.

Main results

The canonical entry points accept one fixed Program before its runtime sizes and inputs.

* NLAlib.Ops.exec always elaborates source index, address, allocation and control instructions into explicit counted operations. A caller cannot disable this accounting. * NLAlib.Ops.run gives the memory result of the same fixed program. * NLAlib.Ops.exec_mem proves that the two agree, including failures. * NLAlib.Ops.eval and NLAlib.Ops.evalCounted interpret statement syntax for the conditional proof calculus. Its primitive counts are not a canonical algorithm cost claim.

Every primitive or query is keyed by its declared identity and dimensions in Count. The evaluator enforces operand liveness and unchanged store shape through Interp.callS. cost_le_of_exec states that statement evaluation only adds primitive counts.

Declarations