[Paper Review] A multi-paradigm language for reactive synthesis
This paper proposes a multi-paradigm language combining imperative and declarative elements for reactive synthesis, using a Promela-like syntax to express system behavior and LTL-based guarantees. It enables efficient synthesis by structuring assumptions and guarantees, reducing strategy construction blowup through BDD reordering, and achieving two-orders-of-magnitude performance improvement on the AMBA AHB bus case study compared to prior work.
This paper proposes a language for describing reactive synthesis problems that integrates imperative and declarative elements. The semantics is defined in terms of two-player turn-based infinite games with full information. Currently, synthesis tools accept linear temporal logic (LTL) as input, but this description is less structured and does not facilitate the expression of sequential constraints. This motivates the use of a structured programming language to specify synthesis problems. Transition systems and guarded commands serve as imperative constructs, expressed in a syntax based on that of the modeling language Promela. The syntax allows defining which player controls data and control flow, and separating a program into assumptions and guarantees. These notions are necessary for input to game solvers. The integration of imperative and declarative paradigms allows using the paradigm that is most appropriate for expressing each requirement. The declarative part is expressed in the LTL fragment of generalized reactivity(1), which admits efficient synthesis algorithms, extended with past LTL. The implementation translates Promela to input for the Slugs synthesizer and is written in Python. The AMBA AHB bus case study is revisited and synthesized efficiently, identifying the need to reorder binary decision diagrams during strategy construction, in order to prevent the exponential blowup observed in previous work.
Motivation & Objective
- To address the limitations of purely declarative LTL specifications in reactive synthesis, which become unstructured and hard to maintain for sequential or graph-like constraints.
- To integrate imperative constructs (e.g., guarded commands, transition systems) with declarative LTL fragments (GR(1) with past logic) for more readable and maintainable synthesis specifications.
- To enable efficient synthesis by structuring assumptions and guarantees, and by supporting BDD reordering during strategy construction to prevent exponential blowup.
- To demonstrate the approach on the AMBA AHB bus case study, showing significant performance improvements over previous methods.
Proposed method
- The language uses a Promela-inspired syntax to model system and environment behaviors, with explicit separation of control flow and data flow between players.
- Guarantees and assumptions are formally separated in the specification, enabling correct synthesis via two-player turn-based games.
- The declarative part uses a fragment of generalized reactivity(1) (GR(1)) extended with past LTL for efficient synthesis.
- The implementation translates the multi-paradigm specification into input for the Slugs synthesizer using a Python-based compiler.
- BDD reordering is applied during strategy construction to avoid exponential state explosion, a key optimization for scalability.
- The approach supports both imperative sequencing (e.g., loops, conditionals) and declarative temporal properties (e.g., fairness, liveness) in a unified framework.
Experimental results
Research questions
- RQ1Can a hybrid imperative-declarative language improve the readability and maintainability of reactive synthesis specifications compared to pure LTL?
- RQ2How can imperative constructs like guarded commands and loops be integrated with declarative temporal logic to express complex sequential constraints?
- RQ3Does separating assumptions and guarantees in a multi-paradigm language lead to more efficient synthesis, especially in terms of BDD management?
- RQ4To what extent can BDD reordering during strategy construction prevent exponential blowup in synthesis performance?
- RQ5Can the proposed language achieve significant performance improvements on real-world industrial benchmarks like the AMBA AHB bus?
Key findings
- The multi-paradigm language successfully combines imperative and declarative paradigms, enabling clearer expression of sequential and stateful behaviors in synthesis specifications.
- The AMBA AHB bus case study was synthesized efficiently, achieving a two-orders-of-magnitude performance improvement over previous approaches.
- The integration of BDD reordering during strategy construction was critical in preventing exponential blowup and enabling scalable synthesis.
- The use of GR(1) with past LTL allowed efficient synthesis while retaining sufficient expressiveness for practical industrial requirements.
- The approach demonstrated that structured, readable specifications using both paradigms reduce specification complexity and improve maintainability.
- The implementation, translating Promela-like code into Slugs input, proved effective and reusable for real-world synthesis tasks.
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.