Finding Tree Decompositions of Small Treewidth

lax-689794·formalized by Yuval Itzhaki @yuvalyitz · Claude·registered·created ·GitHub @b6743cf·Lean v4.33.0 epoch · mathlib db584cd6d46c

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this submission may be incorrect.

No flags have been submitted.

    Community review

    Flag this submission

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    Abstract

    The treewidth of a graph measures how far it is from a tree. Many NP-hard problems can be solved in time f(k)⋅poly(n)f(k)\cdot\mathrm{poly}(n) on graphs of treewidth kk, but only once a tree decomposition of small width is at hand. Bodlaender showed that such a decomposition can itself be found in time 2O(k3)2^{O(k^3)} times a polynomial for fixed kk: given a graph, one decides whether its treewidth is at most kk and, if so, outputs a tree decomposition of width at most kk.

    This submission states two results and proves both. The first is the second stage of Bodlaender's algorithm, due to Bodlaender and Kloks: from a graph and a nice tree decomposition of width at most ℓ\ell, it finds a nice decomposition of width at most kk or reports that the treewidth exceeds kk, in time 2O(ℓ3)⋅poly2^{O(\ell^3)}\cdot\mathrm{poly}. The second is an exact graph algorithm, which needs no decomposition as input and runs in time 2O(k3)⋅poly2^{O(k^3)}\cdot\mathrm{poly}.

    Running times are claims about the instructions a word RAM executes, against an explicit word encoding of the graph, its adjacency matrix, and of a nice tree decomposition. Both statements are proved from Lean's three standard axioms, by a dynamic program over characteristics of partial decompositions that is run on a verified compiler pipeline down to the archive's word RAM.

    The polynomial factors refer to the encoded input length, including the supplied decomposition for the first result. The graph algorithm uses a vertex-by-vertex construction with characteristic dynamic programming. The first result follows by returning the supplied decomposition when its width bound is already sufficient, and otherwise running the graph algorithm.

    View annotated paper

    3 pages · 5 marked passages

    In the paper

    Concepts

    Concept map
    5 concepts
    100%
    Proven claimDefinitionThis submissionOther submissionA → B: B builds on A

    Proofs

    Proof networkview on GitHub

    100%
    assumptions conclusionProven claimClaim from this submissionProof — open large view for details
    Proof list

    Proof code is not displayed; the archive records each proof's checked relationship between claims.

    Related submissions

    Submission map

    100%
    This submissionOther submissionA → B: B's concepts build on AA → B: only B's proofs build on A

    Cite this

    This is only the formalizers. The authors of the formalized results may be different (see References).

    @misc{lax-689794,
      author = {Yuval Itzhaki and Claude},
      title = {Finding Tree Decompositions of Small Treewidth},
      year = {2026},
      howpublished = {Lax Archive, lax-689794},
      url = {https://laxarchive.org/lax-689794/},
    }

    References

    1. Hans L. Bodlaender. A Linear-Time Algorithm for Finding Tree-Decompositions of Small Treewidth. SIAM Journal on Computing 25(6):1305–1317, 1996.
    2. Hans L. Bodlaender and Ton Kloks. Efficient and Constructive Algorithms for the Pathwidth and Treewidth of Graphs. Journal of Algorithms 21(2):358–402, 1996.
    3. Ernst Althaus and Sarah Ziegler. Optimal Tree Decompositions Revisited: A Simpler Linear-Time FPT Algorithm. arXiv:1912.09144, 2020.
    4. Ton Kloks. Treewidth: Computations and Approximations. Springer 842, 1994.
    5. Neil Robertson and Paul D. Seymour. Graph Minors. XIII. The Disjoint Paths Problem. Journal of Combinatorial Theory, Series B 63(1):65–110, 1995.
    6. Marek Cygan, Fedor V. Fomin, Łukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michał Pilipczuk and Saket Saurabh. Parameterized Algorithms. Springer, 2015.

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…