Documentation

CslibFrontier.Algorithms.WordRAM.VariableElimination.BuildEntries

Output Entry Table Materialization (buildOutEntries) #

Iterates sumDomainValues over all dom ^ outScopeLen mixed-radix assignments to materialize the dense output FactorTable entry array on the append-only Word-RAM heap.

Main definitions #

Arguments for materializing the output entry table of an eliminated bucket.

Instances For

    Materialize the dom ^ outScopeLen-entry array for an eliminated bucket.

    theorem Cslib.Algorithms.WordRAM.VariableElimination.buildOutEntries_spec {w : ℕ} {args : BuildOutArgs} {outScope : List ℕ} {bucket : List (Logic.PL.CSP.FactorTable ℕ ℕ)} {B maxScope : ℕ} {s : DataStructure.Memory.State} (hwf : DataStructure.Memory.WellFormed w s) (hs0 : 0 < s.frontier) (hout : WordRAM.Realization.HoldsIn args.outPtr outScope s) (hout_eq : outScope = Lean.CSP.bucketOutScope args.x bucket) (hout_len : outScope.length = args.outLen) (hb : HoldsFactorList args.bucketPtr bucket s) (hlen : bucket.length = args.bucketLen) (hmax : ∀ f ∈ bucket, f.scope.length ≤ maxScope) (hfit_fr : WordRAM.Fits w (s.frontier + max 1 args.dom ^ args.outLen)) (hcapB : max 1 args.dom * (List.map capFactor bucket).prod ≤ B) (hB : WordRAM.Fits w B) :