Factor Entry Capacity (capFactor, stateCap) and Horner Scope Evaluation #
Multiplicative capacity bounds (capFactor and stateCap) bounding intermediate table values and
bucket products, paired with evalScopeIdx implementing Horner mixed-radix index evaluation.
Main definitions #
Cslib.Algorithms.WordRAM.VariableElimination.capFactor: per-factor entry ceiling≥ 1.Cslib.Algorithms.WordRAM.VariableElimination.stateCap: product capacity across live factors.Cslib.Algorithms.WordRAM.VariableElimination.evalScopeIdx: Horner radix-index evaluator.
Multiplicative factor capacity and Horner scope evaluation #
Multiplicative upper bound max 1 (maxEntry f) on entries of factor f.
Arguments for evaluating a factor's radix index via Horner's rule.
- dom : ℕ
Field
domofEvalScopeArgs. - x : ℕ
Field
xofEvalScopeArgs. - a : ℕ
Field
aofEvalScopeArgs. - outPtr : ℕ
Field
outPtrofEvalScopeArgs. - outLen : ℕ
Field
outLenofEvalScopeArgs. - idx : ℕ
Field
idxofEvalScopeArgs. - scopePtr : ℕ
Field
scopePtrofEvalScopeArgs. - scopeLen : ℕ
Field
scopeLenofEvalScopeArgs.
Instances For
Read-only environment record forwarded into Horner scope-index iteration.
- dom : ℕ
Field
domofEvalScopeEnv. - x : ℕ
Field
xofEvalScopeEnv. - a : ℕ
Field
aofEvalScopeEnv. - outPtr : ℕ
Field
outPtrofEvalScopeEnv. - outLen : ℕ
Field
outLenofEvalScopeEnv. - idx : ℕ
Field
idxofEvalScopeEnv.
Instances For
Compute the flat table index of f.scope under an assignment via Horner.
Product of capFactor over all live factors in ElimState.