History admissibility (ValidHistory) for octProg #
This module certifies Memory.spec w history admissibility (ValidHistory) across all subroutines
(readSplitCap, readResCap, bfsProg, minSepProg, buildWProg, leafProg, compressProg,
and octProg). It builds in parallel with Cost, MinSep, and LeafSubroutines. The capacity
reads and the loop bodies are proved as framed triples with framed_triple; the loops around them
carry MemReady (well-formed memory with the workspace allocated) as their invariant.
Main results #
Cslib.Algorithms.WordRAM.OddCycleTransversal.inputFits_encodeInput:InputFitscertificate forencodeInput G k.Cslib.Algorithms.WordRAM.OddCycleTransversal.validHistory_octProg: memory-safety history validity ofoctProg ()fromMemory.State.init (encodeInput G k).
theorem Cslib.Algorithms.WordRAM.OddCycleTransversal.inputFits_encodeInput {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] {k w : ℕ} (hw : WordRAM.Fits w (octWorkspace n)) (hk : WordRAM.Fits w k) :
WordRAM.InputFits w (encodeInput G k)
encodeInput G k satisfies InputFits when Fits w (octWorkspace n) and Fits w k.
theorem Cslib.Algorithms.WordRAM.OddCycleTransversal.validHistory_octProg {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] {k w : ℕ} (hw : WordRAM.Fits w (octWorkspace n)) (hk : WordRAM.Fits w k) :
have s₀ := DataStructure.Memory.State.init (encodeInput G k);
(DataStructure.Memory.spec w).ValidHistory s₀ ((DataStructure.Memory.spec w).clientHistory s₀ (octProg ()))
Every step of octProg () is history-valid under Memory.spec w.