NLA-lib Explorer

Integer literals supplied by dimensions

Library · Source module

Integer literals supplied by dimensions

An evaluated size can be written into a word by an ordinary counted operation. This operation uses the same literal function as scalar arithmetic; exactness is a separate model assumption. Reading the word back uses the existing index query and its explicit bound.

Main results

* NLAlib.Ops.IsIndexLit specifies the dimension-to-word operation. * NLAlib.Ops.IsExactNatLit states exactness of bounded natural literals. * NLAlib.Ops.IsToNat.index_eq_of_decode_nat reads an exactly decoded natural word. * NLAlib.Ops.indexScalarInterp jointly realizes scalar operations, dimension literals and index queries on one machine.

Declarations