Lemma 5.1: a time-bounded TM2 for shrinking to an admissible terminal set
ProvedSingleExpBisect.Main.shrink_to_terminals_timeminimum-bisectionparameterized-algorithmsturing-machines
One fixed deterministic Boolean multistack Turing machine reads the registered graph, parameter and two vertex sets X ⊆ B. If X = B it outputs the unbreakable-bag flag. Otherwise it outputs X in the registered shrink format. It halts within 64·2^(64k)·(n+1)^64 steps. Whenever |X| ≤ 2k+1, the output meets the alternatives of Lemma 5.1 provided that X = B, |X| ≤ 2k, or every component outside X has at most 2k neighbours in X. In particular it covers all graphs and bags when |X| ≤ 2k, without a promise on the adhesion of B.
Preamble
import Mathlib import Definitions.Def_HMBinPacking_OutputsWithin import Definitions.Def_SingleExpBisect_Main_Encodings import Definitions.Def_SingleExpBisect_Main_Graphs open scoped Classical open SingleExpBisect.Main MinBisectFPT
Formal statement
theorem SingleExpBisect.Main.shrink_to_terminals_time :
∃ M : Turing.TM2ComputableAux Bool Bool, ∀ (n : ℕ) (H : SimpleGraph (Fin n)) (k : ℕ) (X B : Finset (Fin n)),
X ⊆ B → let out := if X=B then [false] else true::encodeSet X
HMBinPacking.OutputsWithin M (encodeInput H k ++ encodeSet X ++ encodeSet B) out (stepBound 64 k n) ∧
(X.card ≤ 2*k+1 → (X=B ∨ X.card ≤ 2*k ∨ adh H X ≤ 2*k) →
((out=[false] ∧ IsEdgeUnbreakable H Finset.univ B (2*k) k) ∨
∃ B' : Finset (Fin n), out=true::encodeSet B' ∧ X ⊆ B' ∧ B'.card < B.card ∧ adh H B' ≤ 2*k)) := by sorrySource
S. Kumabe, Single-Exponential FPT Algorithms for Minimum Bisection and Matching Cut via a New Unbreakable Decomposition, Section 5, Lemma 5.1. Implementation for the admissible-terminal branch of Prove2Me STOC project 803.