Split-network semantics, BFS, and minimum-separator correctness #
This module proves that minSepProg computes a minimum vertex cut in splitNet via layered BFS
and unit-capacity flow augmentation on the (2n + 2)-vertex split network. It depends only on
NetworkProg and builds in parallel with CompressProg, Validity, and LeafSubroutines.
Main definitions #
Cslib.Algorithms.WordRAM.OddCycleTransversal.splitNet: exactFlowNetworkmodeled in memory.
Main results #
Cslib.Algorithms.WordRAM.OddCycleTransversal.minSepProg_spec: correctness, cut-capacity bound, and memory-extraction specification ofminSepProg.
noncomputable def Cslib.Algorithms.WordRAM.OddCycleTransversal.splitNet {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (m : ℕ) (s : DataStructure.Memory.State) :
Vertex-split FlowNetwork matching the in-memory keepBase/flipBase/wBase arrays.
theorem Cslib.Algorithms.WordRAM.OddCycleTransversal.minSepProg_spec {n : ℕ} {G : SimpleGraph (Fin n)} [DecidableRel G.Adj] {m : ℕ} {s : DataStructure.Memory.State} (hG : MatrixLoaded G s) :
have res := (DataStructure.Memory.spec 0).clientResult s (minSepProg (n, m));
have t := (DataStructure.Memory.spec 0).clientState s (minSepProg (n, m));
have N := splitNet G m s;
(∀ a < flowBase n, t.mem a = s.mem a) ∧ ∃ (C : Finset (Fin (splitCount n))),
N.IsMinCut C ∧ N.cutCapacity C ≤ n ∧ (∀ (x : Fin (splitCount n)), t.mem (distBase n + ↑x) < splitCount n ↔ x ∈ C) ∧ (∀ (v : Fin n),
t.mem (sepOutBase n + ↑v) = if s.mem (wBase n + ↑v) = 0 ∧ inIdx v ∈ C ∧ outIdx v ∉ C then 1 else 0) ∧ res = {v : Fin n | t.mem (sepOutBase n + ↑v) = 1}.card ∧ res ≤ N.cutCapacity C
Minimum-cut correctness and side-indicator specification for minSepProg.