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
- NLAlib.Ops.Count
- NLAlib.Ops.Count.lift
- NLAlib.Ops.Count.lift_mono
- NLAlib.Ops.Count.lift_single
- NLAlib.Ops.Count.one
- NLAlib.Ops.Count.test
- NLAlib.Ops.Interp
- NLAlib.Ops.Interp.callS
- NLAlib.Ops.Interp.callS_eq_some_iff
- NLAlib.Ops.Interp.callS_instrument_inl
- NLAlib.Ops.Interp.callS_instrument_inr
- NLAlib.Ops.Interp.callS_of_live
- NLAlib.Ops.Interp.instrument
- NLAlib.Ops.Interp.live_of_callS
- NLAlib.Ops.Interp.shape_of_callS
- NLAlib.Ops.Interp.testAt
- NLAlib.Ops.Interp.testAt_eq
- NLAlib.Ops.Interp.testSt
- NLAlib.Ops.Interp.testSt_eq
- NLAlib.Ops.Interp.testSt_eq_some
- NLAlib.Ops.Option.map_bind_of_comm
- NLAlib.Ops.Program.run
- NLAlib.Ops.ResourceModel.queryReserve
- NLAlib.Ops.ResourceModel.queryReserve_mono
- NLAlib.Ops.ResourceModel.queryReserve_of_zero
- NLAlib.Ops.ResourceModel.queryWorkspace_le
- NLAlib.Ops.ResourceModel.span
- NLAlib.Ops.ResourceModel.span_le_work
- NLAlib.Ops.ResourceModel.span_mono
- NLAlib.Ops.ResourceModel.work
- NLAlib.Ops.ResourceModel.work_mono
- NLAlib.Ops.St
- NLAlib.Ops.St.addHistory
- NLAlib.Ops.St.init
- NLAlib.Ops.St.reserveQueries
- NLAlib.Ops.St.tick
- NLAlib.Ops.cost_le_of_exec
- NLAlib.Ops.eval
- NLAlib.Ops.evalCounted
- NLAlib.Ops.evalCounted_note
- NLAlib.Ops.eval_note
- NLAlib.Ops.exec
- NLAlib.Ops.exec_eq_some_of_run
- NLAlib.Ops.exec_mem
- NLAlib.Ops.exec_of_evalCounted
- NLAlib.Ops.instrumentWorkspace
- NLAlib.Ops.iter
- NLAlib.Ops.iter_rel
- NLAlib.Ops.map_addHistory_exec
- NLAlib.Ops.map_iter
- NLAlib.Ops.map_mem_exec
- NLAlib.Ops.map_whileIter
- NLAlib.Ops.run
- NLAlib.Ops.run_bookkeeping_dimension
- NLAlib.Ops.run_instrument
- NLAlib.Ops.run_of_exec
- NLAlib.Ops.run_tally
- NLAlib.Ops.shape_store_of_run
- NLAlib.Ops.whileIter
- NLAlib.Ops.whileIter_rel