Child-to-parent DP table projection pass (childPassProg) #
This module certifies the child pass childPassProg, which iterates over all 2 ^ |LB| child masks
curC, checks pairwise independence (indepBagProg), transfers curC to its parent-bag mask
(keyMaskProg), computes the forgotten-vertex weight (forgetWeightProg), and updates the scratch
array best at bestPtr + key with the maximum of its previous value and fw + tblB[curC].
Main definitions #
Cslib.Algorithms.WordRAM.TreeDecomposition.childPassList:List ℕmirror ofchildPassInst.Cslib.Algorithms.WordRAM.TreeDecomposition.ChildPassArgs: register arguments forchildPassProg.Cslib.Algorithms.WordRAM.TreeDecomposition.childPassProg: Word-RAM child-to-parent projection loop.
Main results #
Cslib.Algorithms.WordRAM.TreeDecomposition.getD_childPassList_eq,Cslib.Algorithms.WordRAM.TreeDecomposition.mem_childPassList_le: agreement withchildPassInstand entry upper bound.Cslib.Algorithms.WordRAM.TreeDecomposition.childPassProg_spec,Cslib.Algorithms.WordRAM.TreeDecomposition.childPassProg_realizes: functional correctness, framing belowbestPtr, quadratic-per-mask cost bound, and exact-basis realization certificate.
List mirror of childPassInst #
childPassList preserves the length of init.
childPassList agrees entrywise with childPassInst on 0 .. 2 ^ |LP| - 1.
Every entry of childPassList is bounded by cap when init and all candidate sums are.
Word-RAM child pass (childPassProg) #
Register arguments for childPassProg.
- numVerts : ℕ
Number of graph vertices
m. - adjPtr : ℕ
Base memory address of the
m × madjacency matrix. - wtPtr : ℕ
Base memory address of the
m-word weight array. - bagBPtr : ℕ
Base memory address of child bag
LB. - bagBLen : ℕ
Length of child bag
LB. - tblBPtr : ℕ
Base memory address of child DP table
tblB. - tblBLen : ℕ
Length
2 ^ |LB|of child DP tabletblB. - bagPPtr : ℕ
Base memory address of parent bag
LP. - bagPLen : ℕ
Length of parent bag
LP. - bestPtr : ℕ
Base memory address of the scratch
bestarray of length2 ^ |LP|.
Instances For
Populate the scratch best array at args.bestPtr across all args.tblBLen child masks.
Functional correctness, framing below bestPtr, and memory-cost bound for childPassProg.
Exact-basis Word-RAM realization certificate for childPassProg.