Adapting Behaviors via Reactive Synthesis

Gal Amram, Suguman Bansal, Dror Fried, Lucas M. Tabajara, Moshe Y. Vardi +1 more
5/28/2021
cs.FL

Official code: lucasmt/separation-grk (1 star, C++, GPL-3.0, last commit 2021-06-08).

Abstract

In the \emph{Adapter Design Pattern}, a programmer implements a \emph{Target} interface by constructing an \emph{Adapter} that accesses an existing \emph{Adaptee} code. In this work, we present a reactive synthesis interpretation to the adapter design pattern, wherein an algorithm takes an \emph{Adaptee} and a \emph{Target} transducers, and the aim is to synthesize an \emph{Adapter} transducer that, when composed with the {\em Adaptee}, generates a behavior that is equivalent to the behavior of the {\em Target}.

Show full abstract

One use of such an algorithm is to synthesize controllers that achieve similar goals on different hardware platforms. While this problem can be solved with existing synthesis algorithms, current state-of-the-art tools fail to scale. To cope with the computational complexity of the problem, we introduce a special form of specification format, called {\em Separated GR($k$)}, which can be solved with a scalable synthesis algorithm but still allows for a large set of realistic specifications. We solve the realizability and the synthesis problems for Separated GR($k$), and show how to exploit the separated nature of our specification to construct better algorithms, in terms of time complexity, than known algorithms for GR($k$) synthesis. We then describe a tool, called SGR($k$), that we have implemented based on the above approach and show, by experimental evaluation, how our tool outperforms current state-of-the-art tools on various benchmarks and test-cases.

View on arXivView PDF

Code Implementations(1)

GPL-3.0
12C++, JavaDec 15, 20205 years agoGPL-3.0

Similar Papers

Cite this paper

@article{amram2021adapting,
  title  = {Adapting Behaviors via Reactive Synthesis},
  author = {Gal Amram and Suguman Bansal and Dror Fried and Lucas M. Tabajara and Moshe Y. Vardi and Gera Weiss},
  year   = {2021},
  eprint = {2105.13837},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.13837}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.13837.svg)](https://codeofpaper.com/paper/2105.13837)

Discussion