Documentation

CslibFrontier.Algorithms.WordRAM.VariableElimination.BucketProd

Bucket Product Evaluation (evalBucketProd) #

Multiplies the entries of all factor tables in a bucket at a fixed assignment to outScope and the eliminated variable x, preserving overflow bounds via capFactor.

Main definitions #

Bucket product evaluation (evalBucketProd) #

Arguments for multiplying all bucket factors at one assignment.

Instances For

    Evaluate the product of all factor tables in a bucket at one assignment.

    theorem Cslib.Algorithms.WordRAM.VariableElimination.evalBucketProd_cost {args : BucketProdArgs} {bucket : List (Logic.PL.CSP.FactorTable ℕ ℕ)} {maxScope : ℕ} {s : DataStructure.Memory.State} (hb : HoldsFactorList args.bucketPtr bucket s) (hlen : bucket.length = args.bucketLen) (hmax : ∀ f ∈ bucket, f.scope.length ≤ maxScope) :
    WordRAM.Realization.memoryCost (evalBucketProd args) s ≤ args.bucketLen * (5 + maxScope * (args.outLen + 1))