Documentation

CslibFrontier.Algorithms.WordRAM.TreeDecomposition.IndependentSet.IndepScan

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:

Main definitions #

Main results #

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 × m adjacency 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

    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.

    theorem Cslib.Algorithms.WordRAM.TreeDecomposition.indepBagProg_spec {w m : ℕ} (args : IndepBagArgs) {adjL xs : List ℕ} {s : DataStructure.Memory.State} (hadj : WordRAM.Realization.HoldsIn args.adjPtr adjL s) (hadj_len : adjL.length = m * m) (hnv : args.numVerts = m) (hxs : WordRAM.Realization.HoldsIn args.bagPtr xs s) (hlen : xs.length = args.bagLen) (hxs_lt : ∀ u ∈ xs, u < m) :

    Correctness and bagLen * (2 * bagLen + 1) memory-cost bound for indepBagProg.