Forgotten-vertex weight scan (forgetWeightProg) #
This module certifies the Word-RAM scan accumulating the total weight forgetWeight of child-bag
vertices selected by mask that do not appear in the parent bag LP, with no dependency on
MWISInstance.
Main definitions #
Cslib.Algorithms.WordRAM.TreeDecomposition.ForgetWeightArgs: register arguments forforgetWeightProg.Cslib.Algorithms.WordRAM.TreeDecomposition.forgetWeightProg: forgotten-vertex weight scan.
Main results #
Cslib.Algorithms.WordRAM.TreeDecomposition.forgetWeight_le_foldl_max:forgetWeightis bounded by|LB| * wtL.foldl max 0.Cslib.Algorithms.WordRAM.TreeDecomposition.forgetWeightProg_spec: validity, functional correctness againstforgetWeight, andbagBLen * (bagPLen + 2)cost bound.Cslib.Algorithms.WordRAM.TreeDecomposition.forgetWeightProg_realizes: exact-basis Word-RAM realization certificate.Cslib.Algorithms.WordRAM.TreeDecomposition.forgetWeightProg_result_le: direct result bound≤ bagBLen * wtL.foldl max 0derived fromforgetWeightProg_spec.
Register arguments (wtPtr, bagPPtr, bagPLen, bagBPtr, bagBLen, mask) for
forgetWeightProg.
- wtPtr : ℕ
Base memory address of the vertex weight array.
- bagPPtr : ℕ
Base memory address of parent bag
LP. - bagPLen : ℕ
Length of parent bag
LP. - bagBPtr : ℕ
Base memory address of child bag
LB. - bagBLen : ℕ
Length of child bag
LB. - mask : ℕ
Subset bit mask over
LB.
Instances For
Accumulate forgetWeight over materialized child bag LB relative to parent bag LP.
forgetWeightProg is read-only and leaves memory unchanged.
forgetWeight against a weight list wtL is bounded by |LB| * wtL.foldl max 0.
Correctness and bagBLen * (bagPLen + 2) memory-cost bound for forgetWeightProg.
Result upper bound ≤ bagBLen * wtL.foldl max 0 for forgetWeightProg.
Exact-basis Word-RAM realization certificate for forgetWeightProg.