Live Synthesis

Bernd Finkbeiner, Felix Klein, Niklas Metzger

TL;DR

This paper introduces live synthesis, a framework for updating running reactive systems while ensuring that any pending obligations from the old implementation are seamlessly fulfilled by the new one. By extending Linear Temporal Logic (LTL) into LiveLTL, the authors provide a way to automatically generate update-ready implementations without increasing the theoretical complexity of the synthesis problem.

What Problem Does This Paper Address?

In formal methods, "synthesis" is the ultimate goal: you write a logical specification of what a system should do, and a tool automatically generates a correct-by-construction implementation. Traditionally, this is a one-off process. If requirements change, you stop the system, re-synthesize, and restart.

However, for "always-on" systems—such as banking backends, power plant controllers, or autonomous robots—stopping is not an option. You need live updates. The challenge is that at the moment of an update, the old system might have "unfinished business." For example, if an arbiter promised that "every request is eventually followed by a grant," and an update occurs right after a request but before the grant, the new system must inherit that obligation. If it doesn't, the user experiences a system failure. This paper bridges the gap between dynamic software updates and formal synthesis.

Methods

The authors introduce LiveLTL, an extension of standard Linear Temporal Logic (LTL) specifically designed for handovers. LiveLTL allows designers to specify separate requirements for the initial system and the update system, ensuring the new version satisfies any obligations left unfinished by the old one.

Key to their approach is the Obligation Monitor. This is a deterministic monitor (essentially a state machine) that tracks "open obligations" during runtime. When an update is triggered, the monitor identifies exactly which promises from the old specification still need to be kept.

The paper explores two main scenarios:

  1. Finite-trace live update: The update happens at a specific, known point in time after a specific execution history.
  2. Universal live update: The update can happen at any time. The synthesized implementation must be robust enough to handle any possible set of pending obligations it might inherit.
The two live update problems: (a) finite trace, where the history is known, and (b) universal, where the update must work at any point.

Crucially, the authors prove that the live synthesis problem can be solved in 2EXPTIME, which is the same complexity class as standard LTL synthesis. This means that ensuring "liveness" across updates doesn't make the problem theoretically harder.

Datasets

The researchers evaluated their approach using two sets of benchmarks:

  • Robot Specification Patterns: Common behavioral requirements for robotic missions, such as visiting locations in sequence, patrolling, and reacting to environmental events.
  • SYNTCOMP Benchmarks: Classic synthesis challenges from the annual competition, including Relay Stations, Arbiters, Load Balancers, and the Alternating Bit Protocol (ABP).

Key Insights and Ideas

  • Obligations as Co-safety Properties: The "unfinished business" of a system can be modeled as co-safety properties—events that must happen within some finite time. LiveLTL semantics naturally capture these.
  • Complexity Parity: It is both surprising and encouraging that adding the requirement of sound transitions doesn't bump the synthesis problem into a higher complexity class.
  • Universal vs. Specific: While specific updates (finite-trace) are easier to satisfy, universal updates are the "gold standard" for modularity, allowing a new system component to be "plugged in" at any moment without needing to know the exact state of the old one.
  • Transparency: The goal of live synthesis is to make the update "transparent" to the user. By inheriting obligations, the system maintains its external guarantees even as its internal logic changes.

Key Results

The authors implemented a prototype on top of BoSy, a state-of-the-art synthesis tool. Their experiments showed:

  • Feasibility: Most robot mission updates were "universally realizable," meaning a single new controller could handle an update at any time.
  • Efficiency: Synthesis times were generally low, often under one second, though complex universal updates for SYNTCOMP benchmarks could take longer (up to ~17 seconds).
  • Minimal Overhead: The synthesized circuits (measured in latches and gates) were only slightly larger than those produced by standard LTL synthesis. For example, in an Arbiter update, the number of gates only increased from 11 to 12.
  • Necessity: The results highlighted that without live synthesis, updates often fail because they ignore pending obligations, such as a request that never receives its promised grant.

Limitations and Future Work

  • Prototype Optimization: The current prototype handles universal updates by conjoining obligations, which can lead to an exponential blow-up in the specification size. Future work could involve more direct integration into the synthesis game-solving process.
  • State Space Practicalities: While the theoretical complexity is the same, the practical state space can grow. The authors suggest further research into the practical "overhead" of live update semantics.
  • Beyond LTL: While this paper focuses on LTL, the framework for "obligations" and "handovers" could potentially be adapted to other temporal logics or system models.

Summary updated

BibTeX
@inproceedings{finkbeiner2021live,
  author = {Bernd Finkbeiner and Felix Klein and Niklas Metzger},
  title = {{Live Synthesis}},
  booktitle = {ATVA},
  year = {2021},
  doi = {10.1007/978-3-030-88885-5\_11},
}
Figure