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
- NLAlib.Ops.ExactModel.isExactNatLit
- NLAlib.Ops.IndexOp
- NLAlib.Ops.IndexOp.ofNat
- NLAlib.Ops.IndexOp.ofNat_ctorIdx
- NLAlib.Ops.IsExactNatLit
- NLAlib.Ops.IsExactNatLit.mono
- NLAlib.Ops.IsIndexLit
- NLAlib.Ops.IsToNat.index_eq_of_decode_nat
- NLAlib.Ops.Machine.indexFn
- NLAlib.Ops.exists_isScalar_isIndexLit_isToNat
- NLAlib.Ops.indexScalarInterp
- NLAlib.Ops.isIndexLit_indexScalarInterp
- NLAlib.Ops.isScalar_indexScalarInterp
- NLAlib.Ops.isToNat_indexScalarInterp