Functional specifications for the compression-leaf subroutines #
This module certifies each step invoked inside leafProg (buildWProg, unpackGuessProg,
checkProperProg, buildTerminalsProg, countDelProg, commitLeafProg). It does not depend on
MinSep or Validity, so all three verification modules build in parallel.
Main definitions #
Cslib.Algorithms.WordRAM.OddCycleTransversal.WListSpec: compacted candidate-set invariant.Cslib.Algorithms.WordRAM.OddCycleTransversal.delSet,Cslib.Algorithms.WordRAM.OddCycleTransversal.guessCol: decoded deletion set and colouring.
Main results #
Cslib.Algorithms.WordRAM.OddCycleTransversal.buildWProg_spec,Cslib.Algorithms.WordRAM.OddCycleTransversal.unpackGuessProg_spec,Cslib.Algorithms.WordRAM.OddCycleTransversal.checkProperProg_spec,Cslib.Algorithms.WordRAM.OddCycleTransversal.buildTerminalsProg_spec,Cslib.Algorithms.WordRAM.OddCycleTransversal.countDelProg_spec,Cslib.Algorithms.WordRAM.OddCycleTransversal.commitLeafProg_spec: functional specifications of the compression-leaf subroutines.
Compression leaf, base-3 odometer, and iterative compression correctness #
Invariant relating indicator array wBase to the sorted compacted list wListBase.
Compacted list length equals
Wset.card.Indicator word at
wBase n + v.1matches membershipv ∈ Wset.Every
wListBaseentry is a valid vertex index< n.Every
wListBaseentry belongs toWset.Entries of
wListBaseare strictly increasing.Every
w ∈ Wsetappears inwListBaseat some indexj : Fin L.
buildWProg forms W = S ∪ {m} and compacts it into wListBase satisfying WListSpec.
Deleted subset D ⊆ W encoded by the unpacked guess digits.
Candidate Bool colouring encoded by the unpacked guess digits on W \ D.