Documentation

CslibFrontier.Algorithms.WordRAM.TreeDecomposition.CSP.Radix

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 #

Main results #

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 : ℕ

    Override toggle (1 applies updVar ↦ updVal, 0 leaves ofRadix unmodified).

  • dstPtr : ℕ

    Base memory address of the destination variable list.

  • dstLen : ℕ

    Length of the destination variable list.

Instances For

    Horner projection evaluating toRadix along a materialized destination variable list.

    The projected radix index lies strictly below args.q ^ dstL.length.