Word-RAM constraint-table scans for leaf and introduce nodes #
This module certifies the two read-only constraint scanning programs operating over serialized
ConstraintTable.encode lists:
checkLeafConstraintsProg: checks all zero-arity constraints at aleafnode.checkIntroConstraintsProg: checks all constraints containing the newly introduced variablevwhose scope is contained in the current bag, indexing their truth tables viaradixProjProg.
Main definitions #
Cslib.Algorithms.WordRAM.TreeDecomposition.IntroConsArgs: register bundle forcheckIntroConstraintsProg.Cslib.Algorithms.WordRAM.TreeDecomposition.checkLeafConstraintsProg: leaf-node constraint scan.Cslib.Algorithms.WordRAM.TreeDecomposition.checkIntroConstraintsProg: introduce-node constraint scan.
Main results #
Cslib.Algorithms.WordRAM.TreeDecomposition.checkLeafConstraintsProg_spec,Cslib.Algorithms.WordRAM.TreeDecomposition.checkLeafConstraintsProg_realizes: correctness and realization ofcheckLeafConstraintsProg.Cslib.Algorithms.WordRAM.TreeDecomposition.checkIntroConstraintsProg_spec,Cslib.Algorithms.WordRAM.TreeDecomposition.checkIntroConstraintsProg_realizes: correctness and realization ofcheckIntroConstraintsProg.
Constraint-list scans for leaf and introduce nodes #
Check all serialized empty-scope constraints (leaf node), returning 1 iff satisfied.
Memory validity, read-only behavior, and cost bound for checkLeafConstraintsProg.
Exact-basis Word-RAM realization certificate for checkLeafConstraintsProg.
Register arguments for checkIntroConstraintsProg.
- q : ℕ
Domain size
q. - v : ℕ
Newly introduced vertex label
v. - bagPtr : ℕ
Base address of the current bag
(v :: bagList child). - bagLen : ℕ
Length of the current bag.
- m : ℕ
Radix assignment index being tested.
- consRawPtr : ℕ
Base address of the serialized constraint-table array.
- numCons : ℕ
Number of serialized constraint tables.
Instances For
Check all serialized constraints active at an introduce node containing args.v.
checkIntroConstraintsProg is read-only and leaves memory unchanged.
Memory validity, functional correctness, and cost bound for checkIntroConstraintsProg.
Exact-basis Word-RAM realization certificate for checkIntroConstraintsProg.