Pairwise bag-independence Word-RAM scan (indepBagProg) #
This module certifies the pairwise adjacency-matrix scan testing whether a bit-mask-selected subset
of a materialized bag slice is independent under a flattened m × m row-major adjacency matrix:
noAdjScanProg(private): tests non-adjacency of a single vertexxagainst a masked bag tail.indepBagProg: tests pairwise independence (indepInst) across a masked bag slice inbagLen * (2 * bagLen + 1)memory operations.
Main definitions #
Cslib.Algorithms.WordRAM.TreeDecomposition.IndepBagArgs: register arguments forindepBagProg.Cslib.Algorithms.WordRAM.TreeDecomposition.indepBagProg: pairwise bag-independence check.
Main results #
Cslib.Algorithms.WordRAM.TreeDecomposition.indepBagProg_state:indepBagProgleaves memory unchanged.Cslib.Algorithms.WordRAM.TreeDecomposition.indepBagProg_spec: validity, functional correctness againstindepInst, andbagLen * (2 * bagLen + 1)cost bound.Cslib.Algorithms.WordRAM.TreeDecomposition.indepBagProg_realizes: exact-basis Word-RAM realization certificate.
Single-vertex non-adjacency scan (noAdjScanProg) #
Pairwise bag-independence scan (indepBagProg) #
Register arguments (numVerts, adjPtr, bagPtr, bagLen, mask) for indepBagProg.
- numVerts : ℕ
Number of graph vertices
m(row stride of the adjacency matrix). - adjPtr : ℕ
Base memory address of the
m × madjacency matrix. - bagPtr : ℕ
Base memory address of the bag vertex list.
- bagLen : ℕ
Length of the bag vertex list.
- mask : ℕ
Subset bit mask over the bag vertex list.
Instances For
Tuple equivalence encoding IndepBagArgs into Word-RAM registers.
Return 1 if the subset of the bag slice selected by args.mask is pairwise independent
under the row-major adjacency matrix at args.adjPtr, else 0.
indepBagProg is read-only and leaves memory unchanged.
Correctness and bagLen * (2 * bagLen + 1) memory-cost bound for indepBagProg.
Exact-basis Word-RAM realization certificate for indepBagProg.