Documentation

CslibFrontier.Algorithms.WordRAM.VariableElimination.OutScope

Deduplicated Output Scope Materialization (buildOutScope) #

Deduplicates a flattened bucket-scope buffer backwards (dedupFilterBack) skipping the eliminated variable x, producing bucketOutScope x bucket in exact canonical order.

Main definitions #

Arguments (x, bucketPtr, bucketLen) for buildOutScope.

Instances For

    Materialize the deduplicated output scope bucketOutScope x bucket.

    theorem Cslib.Algorithms.WordRAM.VariableElimination.buildOutScope_spec {w : ℕ} {args : BuildOutScopeArgs} {bucket : List (Logic.PL.CSP.FactorTable ℕ ℕ)} {maxScope W_out : ℕ} {s : DataStructure.Memory.State} (hwf : DataStructure.Memory.WellFormed w s) (hb : HoldsFactorList args.bucketPtr bucket s) (hlen : bucket.length = args.bucketLen) (hmax : ∀ f ∈ bucket, f.scope.length ≤ maxScope) (hW : (Lean.CSP.bucketOutScope args.x bucket).length ≤ W_out) (hfit : WordRAM.Fits w (s.frontier + 2 * (args.bucketLen * maxScope))) :