Outer iterative-compression loop correctness and cost bound #
This module proves the full end-to-end specification and 680 * 3 ^ k * (n + 1) ^ 5 memory-cost
bound (octProg_spec_and_cost) for octProg () by induction over the n vertex-addition rounds.
Main results #
Cslib.Algorithms.WordRAM.OddCycleTransversal.octProg_spec_and_cost: correctness, memory output witness, and exact memory-cost upper bound foroctProg ().
Outer vertex-addition loop and uniform Word-RAM program #
theorem Cslib.Algorithms.WordRAM.OddCycleTransversal.octProg_spec_and_cost {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (k : ℕ) :
have s₀ := DataStructure.Memory.State.init (encodeInput G k);
have res := (DataStructure.Memory.spec 0).clientResult s₀ (octProg ());
have t := (DataStructure.Memory.spec 0).clientState s₀ (octProg ());
WordRAM.Realization.memoryCost (octProg ()) s₀ ≤ 680 * 3 ^ k * (n + 1) ^ 5 ∧ res ≤ 1 ∧ (res = 1 ↔ ∃ (T : Finset (Fin n)), G.IsOddCycleTransversal ↑T ∧ T.card ≤ k) ∧ (res = 1 → OctStateAt G n k t)
End-to-end cost bound and functional correctness specification for octProg ().