Computing an optimal nice tree decomposition from a binary graph instance in FPT time
ProvedMetricMSO.Archive.tree_decomposition_machinefixed-parameter-tractabilitygraph-theorytreewidthturing-machines
One binary Turing machine reads the standard CMSO task input, extracts its graph, and writes a valid nice tree decomposition whose width is at most the graph’s treewidth. The algorithm receives neither a width nor a decomposition. Its running time is bounded by a computable function of the treewidth times a fixed polynomial in the entire binary input length. The output is a framed sequence of natural numbers, with a success marker preceding the decomposition records.
Preamble
import Mathlib import Definitions.Def_HMBinPacking_OutputsWithin import Definitions.Def_MetricMSO_encodeInput import Definitions.Def_PlantedSubgraphLD_tw import Definitions.Def_Lax689794_GraphWords import Definitions.Def_EdgeSublinearMWIS_Main_NativeWordRAM open HMBinPacking (OutputsWithin) open PlantedSubgraphLD (tw) open Lax689794.GraphWords Lax759944.BinaryWordEncoding
Formal statement
namespace MetricMSO.Archive
theorem tree_decomposition_machine :
∃ (M : Turing.TM2ComputableAux Bool Bool) (f : ℕ → ℕ), Computable f ∧ ∃ d : ℕ,
∀ (task : Task) (I : Instance) (φ : Formula) (rV rE : ℕ) (w : Weights I rV rE),
∃ D, NiceDecomposition I.G (tw I.G) D ∧
OutputsWithin M (encodeInput task I φ rV rE w) ((encode (1::D)).reverse.flatMap (fun ch => match ch with
| .separator => [false,false] | .zero => [false,true] | .one => [true,false]))
(f (tw I.G)*((encodeInput task I φ rV rE w).length+1)^d) := by sorry
end MetricMSO.ArchiveSource
Bodlaender, A linear-time algorithm for finding tree-decompositions of small treewidth, SIAM J. Comput. 25 (1996), 1305–1317. Verified word-RAM source https://github.com/yuvalyitz/treewidth-lax/blob/b6743cf02087f552d8f023581f4718e68c42e444/proofs/Lax689794Proofs/Fun/Final.lean#L2793-L2825. Binary-input adaptation for Chakraborty, Ordyniak and Siebertz, arXiv:2610.41974, Theorem 2.8.