Structure-Guided Automated Reasoning

Authors Max Bannach , Markus Hecher



PDF
Thumbnail PDF

File

LIPIcs.STACS.2025.15.pdf
  • Filesize: 0.82 MB
  • 18 pages

Document Identifiers

Author Details

Max Bannach
  • European Space Agency, Advanced Concepts Team, Noordwijk, The Netherlands
Markus Hecher
  • Univ. Artois, CNRS UMR 8188, Centre de Recherche en Informatique de Lens (CRIL), 6230, France
  • Computer Science and Artificial Intelligence Lab, Massachusetts Institute of Technology, Cambridge, MA, USA

Acknowledgements

Part of the research was carried out while Hecher was visiting the Simons Institute for the Theory of Computing at UC Berkeley. Author names are stated alphabetically.

Cite As Get BibTex

Max Bannach and Markus Hecher. Structure-Guided Automated Reasoning. In 42nd International Symposium on Theoretical Aspects of Computer Science (STACS 2025). Leibniz International Proceedings in Informatics (LIPIcs), Volume 327, pp. 15:1-15:18, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2025) https://doi.org/10.4230/LIPIcs.STACS.2025.15

Abstract

Algorithmic meta-theorems state that problems definable in a fixed logic can be solved efficiently on structures with certain properties. An example is Courcelle’s Theorem, which states that all problems expressible in monadic second-order logic can be solved efficiently on structures of small treewidth. Such theorems are usually proven by algorithms for the model-checking problem of the logic, which is often complex and rarely leads to highly efficient solutions. Alternatively, we can solve the model-checking problem by grounding the given logic to propositional logic, for which dedicated solvers are available. Such encodings will, however, usually not preserve the input’s treewidth.
This paper investigates whether all problems definable in monadic second-order logic can efficiently be encoded into SAT such that the input’s treewidth bounds the treewidth of the resulting formula. We answer this in the affirmative and, hence, provide an alternative proof of Courcelle’s Theorem. Our technique can naturally be extended: There are treewidth-aware reductions from the optimization version of Courcelle’s Theorem to MAXSAT and from the counting version of the theorem to #SAT. By using encodings to SAT, we obtain, ignoring polynomial factors, the same running time for the model-checking problem as we would with dedicated algorithms. Another immediate consequence is a treewidth-preserving reduction from the model-checking problem of monadic second-order logic to integer linear programming (ILP). We complement our upper bounds with new lower bounds based on ETH; and we show that the block size of the input’s formula and the treewidth of the input’s structure are tightly linked.
Finally, we present various side results needed to prove the main theorems: A treewidth-preserving cardinality constraints, treewidth-preserving encodings from CNFs into DNFs, and a treewidth-aware quantifier elimination scheme for QBF implying a treewidth-preserving reduction from QSAT to SAT. We also present a reduction from projected model counting to #SAT that increases the treewidth by at most a factor of 2^{k+3.59}, yielding a algorithm for projected model counting that beats the currently best running time of 2^{2^{k+4}}⋅poly(|ψ|).

Subject Classification

ACM Subject Classification
  • Theory of computation → Constraint and logic programming
  • Theory of computation → Finite Model Theory
  • Theory of computation → Fixed parameter tractability
Keywords
  • automated reasoning
  • treewidth
  • satisfiability
  • max-sat
  • sharp-sat
  • monadic second-order logic
  • fixed-parameter tractability

Metrics

  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    0
    PDF Downloads

References

  1. Michael Alekhnovich and Alexander A. Razborov. Satisfiability, Branch-Width and Tseitin Tautologies. Comput. Complex., 20(4):649-678, 2011. URL: https://doi.org/10.1007/S00037-011-0033-1.
  2. Stefan Arnborg and Andrzej Proskurowski. Problems on Graphs with Bounded Decomposability. Bull. EATCS, 25:7-10, 1985. Google Scholar
  3. Albert Atserias and Sergi Oliva. Bounded-width QBF is PSPACE-complete. Journal of Computer and System Sciences, 80(7):1415-1429, 2014. URL: https://doi.org/10.1016/j.jcss.2014.04.014.
  4. Fahiem Bacchus, Shannon Dalmao, and Toniann Pitassi. Algorithms and Complexity Results for #SAT and Bayesian Inference. In 44th Symposium on Foundations of Computer Science (FOCS 2003), 11-14 October 2003, Cambridge, MA, USA, Proceedings, pages 340-351, 2003. URL: https://doi.org/10.1109/SFCS.2003.1238208.
  5. Max Bannach, Malte Skambath, and Till Tantau. On the Parallel Parameterized Complexity of MaxSAT Variants. In 25th International Conference on Theory and Applications of Satisfiability Testing, SAT 2022, August 2-5, 2022, Haifa, Israel, pages 19:1-19:19, 2022. URL: https://doi.org/10.4230/LIPIcs.SAT.2022.19.
  6. Umberto Bertelè and Francesco Brioschi. On Non-serial Dynamic Programming. J. Comb. Theory, Ser. A, 14(2):137-148, 1973. URL: https://doi.org/10.1016/0097-3165(73)90016-2.
  7. Armin Biere, Marijn Heule, Hans van Maaren, and Toby Walsh, editors. Handbook of Satisfiability, Second Edition. IOS Press, 2021. URL: https://doi.org/10.3233/FAIA336.
  8. Bernhard Bliem, Reinhard Pichler, and Stefan Woltran. Declarative Dynamic Programming as an Alternative Realization of Courcelle’s Theorem. In Parameterized and Exact Computation - 8th International Symposium, IPEC 2013, Sophia Antipolis, France, September 4-6, 2013, Revised Selected Papers, pages 28-40, 2013. URL: https://doi.org/10.1007/978-3-319-03898-8_4.
  9. J. Richard Büchi. Weak Second-Order Arithmetic and Finite Automata. Zeitschrift für mathematische Logik und Grundlagen der Mathematik, 6(1-6):66-92, 1960. Google Scholar
  10. Florent Capelli and Stefan Mengel. Tractable QBF by Knowledge Compilation. In 36th International Symposium on Theoretical Aspects of Computer Science, STACS 2019, March 13-16, 2019, Berlin, Germany, pages 18:1-18:16, 2019. URL: https://doi.org/10.4230/LIPICS.STACS.2019.18.
  11. Hubie Chen. Quantified Constraint Satisfaction and Bounded Treewidth. In Proceedings of the 16th Eureopean Conference on Artificial Intelligence, ECAI'2004, including Prestigious Applicants of Intelligent Systems, PAIS 2004, Valencia, Spain, August 22-27, 2004, pages 161-165, 2004. Google Scholar
  12. Bruno Courcelle. The Monadic Second-Order Logic of Graphs. I. Recognizable Sets of Finite Graphs. Inf. Comput., 85(1):12-75, 1990. URL: https://doi.org/10.1016/0890-5401(90)90043-H.
  13. Bruno Courcelle and Joost Engelfriet. Graph Structure and Monadic Second-Order Logic - A Language-Theoretic Approach, volume 138 of Encyclopedia of mathematics and its applications. Cambridge University Press, 2012. Google Scholar
  14. Adnan Darwiche. Decomposable Negation Normal Form. J. ACM, 48(4):608-647, 2001. URL: https://doi.org/10.1145/502090.502091.
  15. Johannes Klaus Fichte, Markus Hecher, Michael Morak, Patrick Thier, and Stefan Woltran. Solving Projected Model Counting by Utilizing Treewidth and its Limits. Artif. Intell., 314:103810, 2023. URL: https://doi.org/10.1016/j.artint.2022.103810.
  16. Johannes Klaus Fichte, Markus Hecher, and Andreas Pfandler. Lower Bounds for QBFs of Bounded Treewidth. In LICS '20: 35th Annual ACM/IEEE Symposium on Logic in Computer Science, Saarbrücken, Germany, July 8-11, 2020, pages 410-424, 2020. URL: https://doi.org/10.1145/3373718.3394756.
  17. Jörg Flum and Martin Grohe. Parameterized Complexity Theory. Texts in Theoretical Computer Science. An EATCS Series. Springer, 2006. URL: https://doi.org/10.1007/3-540-29953-X.
  18. Georg Gottlob, Reinhard Pichler, and Fang Wei. Monadic Datalog Over Finite Structures of Bounded Treewidth. ACM Trans. Comput. Log., 12(1):3:1-3:48, 2010. URL: https://doi.org/10.1145/1838552.1838555.
  19. Rudolf Halin. S-functions For Graphs. Journal of geometry, 8(1):171-186, 1976. Google Scholar
  20. Petr Hlinený, Sang-il Oum, Detlef Seese, and Georg Gottlob. Width Parameters Beyond Tree-width and their Applications. Comput. J., 51(3):326-362, 2008. URL: https://doi.org/10.1093/comjnl/bxm052.
  21. Neil Immerman. Descriptive Complexity. Graduate texts in computer science. Springer, 1999. URL: https://doi.org/10.1007/978-1-4612-0539-5.
  22. Bart M. P. Jansen and Stefan Kratsch. A Structural Approach to Kernels for ILPs: Treewidth and Total Unimodularity. In Algorithms - ESA 2015 - 23rd Annual European Symposium, Patras, Greece, September 14-16, 2015, Proceedings, pages 779-791, 2015. URL: https://doi.org/10.1007/978-3-662-48350-3_65.
  23. Donald E. Knuth. The Art of Computer Programming, volume 4, Fascicle 6. Addison-Wesley, 2016. Google Scholar
  24. Tuukka Korhonen and Matti Järvisalo. Integrating Tree Decompositions into Decision Heuristics of Propositional Model Counters (Short Paper). In 27th International Conference on Principles and Practice of Constraint Programming, CP 2021, Montpellier, France (Virtual Conference), October 25-29, 2021, pages 8:1-8:11, 2021. URL: https://doi.org/10.4230/LIPICS.CP.2021.8.
  25. Stephan Kreutzer. Algorithmic meta-theorems. In Finite and Algorithmic Model Theory, pages 177-270. Cambridge University Press, 2011. Google Scholar
  26. Michael Lampis, Stefan Mengel, and Valia Mitsou. QBF as an Alternative to Courcelle’s Theorem. In Theory and Applications of Satisfiability Testing - SAT 2018 - 21st International Conference, SAT 2018, Held as Part of the Federated Logic Conference, FloC 2018, Oxford, UK, July 9-12, 2018, Proceedings, pages 235-252, 2018. URL: https://doi.org/10.1007/978-3-319-94144-8_15.
  27. Ruiming Li, Dian Zhou, and Donglei Du. Satisfiability and Integer Pprogramming as Complementary Tools. In Proceedings of the 2004 Conference on Asia South Pacific Design Automation: Electronic Design and Solution Fair 2004, Yokohama, Japan, January 27-30, 2004, pages 879-882, 2004. URL: https://doi.org/10.1109/ASPDAC.2004.178.
  28. Neil Robertson and Paul D. Seymour. Graph Minors. II. Algorithmic Aspects of Tree-width. Journal of Algorithms, 7(3):309-322, 1986. URL: https://doi.org/10.1016/0196-6774(86)90023-4.
  29. Sigve Hortemo Sæther, Jan Arne Telle, and Martin Vatshelle. Solving #SAT and MAXSAT by Dynamic Programming. J. Artif. Intell. Res., 54:59-82, 2015. URL: https://doi.org/10.1613/jair.4831.
  30. Marko Samer and Stefan Szeider. Algorithms for Propositional Model Counting. J. Discrete Algorithms, 8(1):50-64, 2010. URL: https://doi.org/10.1016/j.jda.2009.06.002.
  31. Carsten Sinz. Towards an Optimal CNF Encoding of Boolean Cardinality Constraints. In Principles and Practice of Constraint Programming - CP 2005, 11th International Conference, CP 2005, Sitges, Spain, October 1-5, 2005, Proceedings, pages 827-831, 2005. URL: https://doi.org/10.1007/11564751_73.
Questions / Remarks / Feedback
X

Feedback for Dagstuhl Publishing


Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail