Node-step dispatcher, iteration splitting lemmas, and subtree invariant #
This module combines leafNodeProg, introNodeProg, forgetNodeProg, and joinNodeProg into
the tagged post-order dispatcher nodeStep and its loop wrapper iterNodesProg. It also records
the iterate composition lemmas (clientState_iterate_add, memoryCost_iterate_add, etc.),
holdsIn_encode_decode, the inductive specification SubtreeFullSpec, and the shared arithmetic
setup subtree_setup.
Main definitions #
Cslib.Algorithms.WordRAM.TreeDecomposition.NodeEnv: shared memory-layout environment for the bottom-up pass.Cslib.Algorithms.WordRAM.TreeDecomposition.nodeStep,Cslib.Algorithms.WordRAM.TreeDecomposition.iterNodesProg: single-node dispatcher and post-order iteration loop.Cslib.Algorithms.WordRAM.TreeDecomposition.nodeStepSafe: word-width safety predicate.Cslib.Algorithms.WordRAM.TreeDecomposition.subtreeEnv,Cslib.Algorithms.WordRAM.TreeDecomposition.SubtreeFullSpec: subtree induction specification.
Main results #
Cslib.Algorithms.WordRAM.TreeDecomposition.iterNodesProg_realizes: exact-basis realization certificate for the dispatcher loop.Cslib.Algorithms.WordRAM.TreeDecomposition.subtree_setup: common word-width and layout facts.
Environment bundle threaded through the bottom-up nice-tree DP pass (nodeStep).
- mode : ℕ
Mode flag (
1for exact model counting,0for satisfiability). - q : ℕ
Domain size
q. - varsPtr : ℕ
Base address of the serialized active-variable list
vars. - varsLen : ℕ
Length of the serialized
varslist. - treePtr : ℕ
Base address of the serialized post-order node array.
- consRawPtr : ℕ
Base address of the serialized constraint-table array.
- numCons : ℕ
Number of serialized constraint tables.
- descBase : ℕ
Base address of the allocated 4-word-per-node descriptor table.
Instances For
Dispatch one post-order nice-tree node p.2 to leafNodeProg, introNodeProg,
forgetNodeProg, or joinNodeProg.
Word-width safety predicate guarding one iteration of nodeStep.
Exact-basis Word-RAM realization certificate for iterNodesProg.
Static NodeEnv decoded from Memory.State.init inst.encode.
Inductive specification proved for every subtree S executed by iterate nodeStep.