Stored sizes and bounded index binders
Library · Source module
Stored sizes and bounded index binders
A dimension literal is an ordinary operation, with a one-cell footprint and no tape advance. An exactly decoded natural is read by the existing toNat query, with the binder's bound checked explicitly. These rules hide store and conversion bookkeeping without hiding an executed call.
Main results
* NLAlib.Ops.writes_indexLit writes a dimension using the scalar machine's literal function. * NLAlib.Ops.writes_bindIdx_of_decode_nat binds a readable exactly decoded natural. * NLAlib.Ops.writes_indexLit_bindIdx composes the write/read roundtrip in total mode.