[Paper Review] What's Decidable about Syntax-Guided Synthesis?
This paper investigates the decidability of syntax-guided synthesis (SyGuS) across various logical theories and grammar classes. It proves that SyGuS is undecidable for equality with uninterpreted functions (EUF) and bit-vector theories with concatenation, but decidable for regular-EUF with regular tree grammars, which is EXPTIME-complete and yields solution sets corresponding to regular tree languages.
Syntax-guided synthesis (SyGuS) is a recently proposed framework for program synthesis problems. The SyGuS problem is to find an expression or program generated by a given grammar that meets a correctness specification. Correctness specifications are given as formulas in suitable logical theories, typically amongst those studied in satisfiability modulo theories (SMT). In this work, we analyze the decidability of the SyGuS problem for different classes of grammars and correctness specifications. We prove that the SyGuS problem is undecidable for the theory of equality with uninterpreted functions (EUF).We identify a fragment of EUF, which we call regular-EUF, for which the SyGuS problem is decidable. We prove that this restricted problem is EXPTIME-complete and that the sets of solution expressions are precisely the regular tree languages. For theories that admit a unique, finite domain, we give a general algorithm to solve the SyGuS problem on tree grammars. Finite-domain theories include the bit-vector theory without concatenation. We prove SyGuS undecidable for a very simple bit-vector theory with concatenation, both for context-free grammars and for tree grammars. Finally, we give some additional results for linear arithmetic and bit-vector arithmetic along with a discussion of the implication of these results.
Motivation & Objective
- To analyze the decidability of the syntax-guided synthesis (SyGuS) problem across different combinations of logical theories and grammar classes.
- To identify conditions under which SyGuS becomes decidable, particularly focusing on restricted fragments of commonly used theories.
- To clarify the theoretical boundaries of SyGuS, especially in light of the common intuition that syntactic constraints simplify synthesis.
- To provide a comprehensive classification of SyGuS problems based on theory and grammar type, including complexity characterization for decidable cases.
Proposed method
- Formalizing SyGuS as a problem of finding an expression from a grammar that satisfies a logical specification in a given SMT theory.
- Proving undecidability for EUF and bit-vector theories with concatenation using reductions from undecidable problems in formal language theory.
- Introducing the regular-EUF fragment, where grammars are restricted to regular tree grammars, enabling decidability and complexity analysis.
- Establishing that solution sets in regular-EUF are exactly the regular tree languages, using automata-theoretic techniques.
- Designing a general algorithm for SyGuS over finite-domain theories using finite model enumeration and SMT checking.
- Analyzing the impact of grammar expressiveness—comparing context-free, tree, and restricted grammars—on decidability and complexity.
Experimental results
Research questions
- RQ1Is the SyGuS problem decidable for the theory of equality with uninterpreted functions (EUF) when using tree grammars?
- RQ2Can a decidable fragment of EUF be identified such that SyGuS remains decidable under reasonable grammar restrictions?
- RQ3What is the complexity of SyGuS for finite-domain theories when using tree grammars?
- RQ4Is SyGuS decidable for bit-vector theories with concatenation, and how does grammar expressiveness affect this?
- RQ5How do grammars specific to linear arithmetic (LRA, LIA) influence the decidability of SyGuS problems?
Key findings
- The SyGuS problem is undecidable for the theory of equality with uninterpreted functions (EUF) when using tree grammars.
- A decidable fragment called regular-EUF is identified, where SyGuS is EXPTIME-complete when using regular tree grammars.
- The set of solutions to any regular-EUF SyGuS problem is precisely a regular tree language.
- For finite-domain theories, SyGuS is decidable with tree grammars but undecidable with arbitrary context-free grammars.
- SyGuS is undecidable for bit-vector theories with concatenation, even when restricted to context-free or tree grammars.
- The problem remains decidable for bit-vector arithmetic without concatenation when using unrestricted grammars generating all well-formed expressions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.