Skip to main content
QUICK REVIEW

[Paper Review] Reactive Synthesis Modulo Theories Using Abstraction Refinement

Benedikt Maderbacher, Roderick Bloem|arXiv (Cornell University)|Jul 30, 2021
Formal Methods in VerificationComputer Science12 references7 citations
TL;DR

This paper presents a reactive synthesis procedure for Temporal Stream Logic modulo Theories (TSL(T)) using abstraction refinement and counter-example guided abstraction refinement (CEGAR). It translates TSL(T) specifications into LTL with Boolean abstractions of theory predicates, applies LTL synthesis, and iteratively refines spurious counterstrategies via SMT-based theory consistency checks, enabling synthesis of non-Boolean systems or proving unrealizability despite the problem being undecidable in general.

ABSTRACT

Reactive synthesis builds a system from a specification given as a temporal logic formula. Traditionally, reactive synthesis is defined for systems with Boolean input and output variables. Recently, new theories and techniques have been proposed to extend reactive synthesis to data domains, which are required for more sophisticated programs. In particular, Temporal stream logic(TSL) (Finkbeiner et al. 2019) extends LTL with state variables, updates, and uninterpreted functions and was created for use in synthesis. We present a synthesis procedure for TSL(T), an extension of TSL with theories. Synthesis is performed using a counter-example guided synthesis loop and an LTL synthesis procedure. Our method translates TSL(T) specifications to LTL and extracts a system if synthesis is successful. Otherwise, it analyzes the counterstrategy for inconsistencies with the theory. If the counterstrategy is theory-consistent, it proves that the specification is unrealizable. Otherwise, we add temporal assumptions and Boolean predicates to the TSL(T) specification and start the next iteration of the the loop. We show that the synthesis problem for TSL (T) is undecidable. Nevertheless our method can successfully synthesize or show unrealizability of several non-Boolean examples.

Motivation & Objective

  • To address the challenge of reactive synthesis for systems with non-Boolean data domains such as integers and reals, which are common in real-world applications.
  • To extend traditional LTL-based synthesis to support theories like linear integer arithmetic (LIA) and linear real arithmetic (LRA), enabling richer system specifications.
  • To develop a scalable and automated synthesis procedure that can generate correct-by-construction systems even when the required predicates are not present in the original specification.
  • To handle the undecidability of TSL(T) synthesis by using an iterative abstraction refinement loop with theory consistency checking.

Proposed method

  • Translate TSL(T) formulas into LTL by introducing Boolean variables for each theory predicate, treating them as environment-controlled inputs.
  • Apply propositional LTL synthesis to the abstracted formula to generate a Boolean controller.
  • If synthesis fails, analyze the resulting counterstrategy using an SMT solver to detect inconsistencies with the underlying theory.
  • If the counterstrategy is theory-consistent, conclude that the original TSL(T) specification is unrealizable.
  • If the counterstrategy is inconsistent, extract new temporal assumptions and Boolean predicates to refine the specification and iterate.
  • Use symbolic representations during synthesis to manage large state spaces efficiently.

Experimental results

Research questions

  • RQ1Can reactive synthesis be effectively extended to non-Boolean data domains using formal theories such as LIA and LRA?
  • RQ2How can abstraction refinement be adapted to handle temporal and theory-based inconsistencies in reactive synthesis?
  • RQ3To what extent can the method automatically discover necessary predicates not present in the original specification?
  • RQ4What is the scalability and practical effectiveness of the approach on non-trivial examples involving integers and reals?

Key findings

  • The synthesis problem for TSL(T) is undecidable in general, but the proposed method successfully synthesizes or proves unrealizability for multiple non-Boolean examples.
  • The algorithm synthesized a 3-floor elevator controller in 35 seconds with 5 refinements, and a 4-floor version in 3.5 minutes, demonstrating scalability on bounded problems.
  • A 3-element sorting algorithm was synthesized in 3.7 seconds, but the 4-element version required 18.5 minutes and the 5-element version timed out after 13 hours, showing limitations on complex sorting tasks.
  • A single-tank water level controller with liveness was synthesized in 95 seconds with 18 refinements, resulting in a 2-state system, validating the method on cyber-physical systems.
  • The method successfully generated a correct system for a two-tank water system in 31 seconds with 4 refinements, showing applicability to linear real arithmetic models.
  • In all cases where synthesis succeeded, the resulting system correctly handled data domains and met both safety and liveness requirements, even when new predicates were automatically discovered.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.