NLA-lib Explorer

Tools: raw conditional evaluation and static counts, computably

Library · Source module

Tools: raw conditional evaluation and static counts, computably

These raw diagnostics do not check program formats or apply mandatory instrumentation. Canonical certification uses Program, Runs, and Algorithm.

Diagnostic and compute support included by the library umbrella. Core certification does not depend on diagnostic output. This file makes the raw evaluator runnable by #eval.

NLAlib.Ops.eval is computable as it stands. NLAlib.Ops.evalCounted and NLAlib.Ops.stmtCost are not, because counts are finitely supported functions (Finsupp). This file gives a computable twin of each and proves it equal to the core's definition; the core is not changed.

Main results

* NLAlib.Ops.Tools.execC: the counted run with the counts kept as a log of keys (operation or query, dimensions). NLAlib.Ops.Tools.map_toSt_execC: mapped to a state of the core (CSt.toSt, the log summed into a Count), it is evalCounted. * NLAlib.Ops.Tools.staticAt: the static count at one key. NLAlib.Ops.Tools.staticAt_eq: it is stmtCost evaluated at that key. * NLAlib.Ops.Tools.staticKeys: the keys a tree can count (a list, possibly with repetitions); NLAlib.Ops.Tools.staticAt_eq_zero: every other key has static count zero.

Declarations