Bodlaender–Kloks on a length-prefixed word RAM with a polynomial-size decomposition output
ProvedLax689794.Bodlaender.bounded_output_word_ramalgorithmsfixed-parameter-tractabilitygraph-theorytreewidth
A fixed word-RAM program reads a graph in adjacency-matrix form and a proposed width , preceded by the input length. For every sufficiently large machine word width it writes the same answer in at most steps. It either certifies that the graph has treewidth greater than by returning the failure marker, or returns a nice decomposition of width at most . Both the number of output words and their numerical values are bounded quadratically in the number of vertices, independently of the width bound.
Preamble
import Definitions.Def_EdgeSublinearMWIS_Main_NativeWordRAM import Definitions.Def_Lax689794_GraphWords open Lax689794.GraphWords Lax808846.Ram
Formal statement
namespace Lax689794.Bodlaender
theorem bounded_output_word_ram :
∃ (P : Program) (c : ℕ) (answer : List ℕ → List ℕ),
∀ (n : ℕ) (G : SimpleGraph (Fin n)) (g : List ℕ) (k : ℕ), EncodesGraph g G →
let x := g ++ [k]
let out := answer x
out.length ≤ 3*(n+2)^2+2 ∧ (∀ v ∈ out, v ≤ 3+n+(n+2)^2) ∧
∀ W : ℕ, (∀ v ∈ x, c * 2^(c*k^3) * (x.length+v+1)^c ≤ 2^W) →
∃ t ≤ c * 2^(c*k^3) * (g.length+2)^c + 2,
RunsTo W P (x.length::x) out t ∧
(out = [0] ∧ ¬ Lax228581.Treewidth.HasTreewidthAtMost G k ∨
∃ D, out = 1::D ∧ NiceDecomposition G k D) := by sorry
end Lax689794.BodlaenderSource
Bodlaender, SIAM J. Comput. 25 (1996), pp. 1305–1317, and the Bodlaender–Kloks algorithm. Verified source https://github.com/yuvalyitz/treewidth-lax/blob/b6743cf02087f552d8f023581f4718e68c42e444/proofs/Lax689794Proofs/Fun/Final.lean#L2793-L2825. Length-prefix adaptation and explicit word and output bounds for binary simulation.