Word-RAM leaf and introduce node handlers #
This module certifies leafNodeProg and introNodeProg (along with the private helpers
introFillProg and copyBagProg). It builds in parallel with the Forget and Join handler
modules.
Main definitions #
Cslib.Algorithms.WordRAM.TreeDecomposition.LeafNodeArgs,Cslib.Algorithms.WordRAM.TreeDecomposition.leafNodeProg:leafnode handler.Cslib.Algorithms.WordRAM.TreeDecomposition.IntroNodeArgs,Cslib.Algorithms.WordRAM.TreeDecomposition.introNodeProg:introducenode handler.
Main results #
Cslib.Algorithms.WordRAM.TreeDecomposition.leafNodeProg_spec,Cslib.Algorithms.WordRAM.TreeDecomposition.leafNodeProg_realizes: correctness and realization ofleafNodeProg.Cslib.Algorithms.WordRAM.TreeDecomposition.introNodeProg_spec,Cslib.Algorithms.WordRAM.TreeDecomposition.introNodeProg_realizes: correctness and realization ofintroNodeProg.
1. Leaf node handler (leafNodeProg) #
Register arguments for the leaf node handler leafNodeProg.
- consRawPtr : ℕ
Base address of the serialized constraint-table array.
- numCons : ℕ
Number of serialized constraint tables.
- dCur : ℕ
Base address of the 4-word destination descriptor slot.
Instances For
Tuple equivalence encoding LeafNodeArgs into Word-RAM registers.
Allocate and populate the 1-entry DP table and descriptor for a leaf node.
Memory validity, framing, NodeDescAt, and cost bound for leafNodeProg.
Exact-basis Word-RAM realization certificate for leafNodeProg.
2. Introduce node handler (introFillProg & introNodeProg) #
Register arguments for the introduce node handler introNodeProg.
- q : ℕ
Domain size
q. - v : ℕ
Introduced variable label
v. - consRawPtr : ℕ
Base address of the serialized constraint-table array.
- numCons : ℕ
Number of serialized constraint tables.
- dChild : ℕ
Base address of the child node's 4-word descriptor slot.
- dCur : ℕ
Base address of the current node's 4-word descriptor slot.
Instances For
Materialize the bag v :: childBag, fill the expanded DP table, and write the descriptor
for an introduce node.
Memory validity, framing, NodeDescAt, and cost bound for introNodeProg.
Exact-basis Word-RAM realization certificate for introNodeProg.