Word-RAM radix decoding and Horner projection routines #
This module certifies radixProjProg, the read-only Word-RAM helper that decodes digits of
ofRadix q srcL srcM (using the private single-variable lookup loop lookupRadixProg) and
evaluates toRadix along a destination variable list via Horner's method, optionally overriding a
single variable updVar ↦ updVal.
Main definitions #
Cslib.Algorithms.WordRAM.TreeDecomposition.RadixProjArgs: argument structure forradixProjProg.Cslib.Algorithms.WordRAM.TreeDecomposition.radixProjAssign: target assignment function modeled byradixProjProg.Cslib.Algorithms.WordRAM.TreeDecomposition.radixProjProg: Horner base-qprojection program.
Main results #
Cslib.Algorithms.WordRAM.TreeDecomposition.radixProjProg_state,Cslib.Algorithms.WordRAM.TreeDecomposition.radixProjProg_result_lt,Cslib.Algorithms.WordRAM.TreeDecomposition.radixProjProg_spec,Cslib.Algorithms.WordRAM.TreeDecomposition.radixProjProg_realizes: read-only preservation, range bound, functional specification, and exact-basis realization ofradixProjProg.
Low-level Word-RAM bag, radix, and constraint-table routines #
General Horner radix projection (radixProjProg) #
Register arguments for the Horner radix projection routine radixProjProg.
- q : ℕ
Domain size
q. - srcPtr : ℕ
Base memory address of the source variable bag.
- srcLen : ℕ
Length of the source variable bag.
- srcM : ℕ
Source radix index
m. - updVar : ℕ
Optional override variable index (active when
hasUpd = 1). - updVal : ℕ
Optional override value for
updVar. - hasUpd : ℕ
- dstPtr : ℕ
Base memory address of the destination variable list.
- dstLen : ℕ
Length of the destination variable list.
Instances For
Functional assignment looked up by radixProjProg.
Horner projection evaluating toRadix along a materialized destination variable list.
radixProjProg is read-only and leaves memory unchanged.
The projected radix index lies strictly below args.q ^ dstL.length.
Memory validity, functional correctness, and cost bound for radixProjProg.
Exact-basis Word-RAM realization certificate for radixProjProg.