An Eager Satisfiability Modulo Theories Solver for Algebraic Datatypes

Authors

  • Amar Shah University of California, Berkeley
  • Federico Mora University of California, Berkeley
  • Sanjit A. Seshia University of California, Berkeley

DOI:

https://doi.org/10.1609/aaai.v38i8.28649

Keywords:

CSO: Satisfiability Modulo Theories, CSO: Satisfiability, CSO: Solvers and Tools, KRR: Automated Reasoning and Theorem Proving

Abstract

Algebraic data types (ADTs) are a construct classically found in functional programming languages that capture data structures like enumerated types, lists, and trees. In recent years, interest in ADTs has increased. For example, popular programming languages, like Python, have added support for ADTs. Automated reasoning about ADTs can be done using satisfiability modulo theories (SMT) solving, an extension of the Boolean satisfiability problem with first-order logic and associated background theories. Unfortunately, SMT solvers that support ADTs do not scale as state-of-the-art approaches all use variations of the same lazy approach. In this paper, we present an SMT solver that takes a fundamentally different approach, an eager approach. Specifically, our solver reduces ADT queries to a simpler logical theory, uninterpreted functions (UF), and then uses an existing solver on the reduced query. We prove the soundness and completeness of our approach and demonstrate that it outperforms the state of the art on existing benchmarks, as well as a new, more challenging benchmark set from the planning domain.

Published

2024-03-24

How to Cite

Shah, A., Mora, F., & Seshia, S. A. . (2024). An Eager Satisfiability Modulo Theories Solver for Algebraic Datatypes. Proceedings of the AAAI Conference on Artificial Intelligence, 38(8), 8099-8107. https://doi.org/10.1609/aaai.v38i8.28649

Issue

Section

AAAI Technical Track on Constraint Satisfaction and Optimization