Documentation

CslibFrontier.Algorithms.WordRAM.TreeDecomposition.IndependentSet.WeightScan

Forgotten-vertex weight scan (forgetWeightProg) #

This module certifies the Word-RAM scan accumulating the total weight forgetWeight of child-bag vertices selected by mask that do not appear in the parent bag LP, with no dependency on MWISInstance.

Main definitions #

Main results #

Register arguments (wtPtr, bagPPtr, bagPLen, bagBPtr, bagBLen, mask) for forgetWeightProg.

  • wtPtr : ℕ

    Base memory address of the vertex weight array.

  • bagPPtr : ℕ

    Base memory address of parent bag LP.

  • bagPLen : ℕ

    Length of parent bag LP.

  • bagBPtr : ℕ

    Base memory address of child bag LB.

  • bagBLen : ℕ

    Length of child bag LB.

  • mask : ℕ

    Subset bit mask over LB.

Instances For

    Accumulate forgetWeight over materialized child bag LB relative to parent bag LP.

    theorem Cslib.Algorithms.WordRAM.TreeDecomposition.forgetWeight_le_foldl_max (wtL LP LB : List ℕ) (t : ℕ) :
    (∀ u ∈ LB, u < wtL.length) → Lean.TreeDecomposition.forgetWeight (fun (u : ℕ) => wtL.getD u 0) LP LB t ≤ LB.length * List.foldl max 0 wtL

    forgetWeight against a weight list wtL is bounded by |LB| * wtL.foldl max 0.

    theorem Cslib.Algorithms.WordRAM.TreeDecomposition.forgetWeightProg_result_le (args : ForgetWeightArgs) {wtL LP LB : List ℕ} {t : DataStructure.Memory.State} (hwt_t : WordRAM.Realization.HoldsIn args.wtPtr wtL t) (hLP_t : WordRAM.Realization.HoldsIn args.bagPPtr LP t) (hLP_len : LP.length = args.bagPLen) (hLB_t : WordRAM.Realization.HoldsIn args.bagBPtr LB t) (hLB_len : LB.length = args.bagBLen) (hLB_lt_wt : ∀ u ∈ LB, u < wtL.length) :

    Result upper bound ≤ bagBLen * wtL.foldl max 0 for forgetWeightProg.