NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Compositional synthesis of modular systems

Bernd Finkbeiner, Noemi Passing

Abstract

This paper presents certifying synthesis, a compositional approach for the automated generation of distributed reactive systems. By synthesizing formal assume-guarantee contracts—termed "certificates"—alongside process strategies, the method decomposes global Linear-time Temporal Logic (LTL) specifications into manageable local tasks. This approach significantly mitigates the state-space explosion typical of distributed synthesis, particularly when process interfaces are small.

Introduction

Reactive synthesis is the "holy grail" of formal methods: the automatic generation of correct-by-construction implementations from high-level logical specifications. While monolithic synthesis (generating a single controller) has seen significant progress, distributed synthesis (generating multiple interacting processes) remains a formidable challenge. The primary difficulty lies in the interdependency of processes; a single process can rarely satisfy a global goal in isolation and must rely on the behavior of others. Standard approaches often suffer from state-space explosion or require complex global reasoning that fails to scale. This work addresses these challenges by enabling local synthesis of processes while ensuring global coherence through formal contracts.

Methodology: Certifying Synthesis

The authors propose Certifying Synthesis, an extension of the Bounded Synthesis framework. The core innovation is the simultaneous generation of two components for every process in the system:

  1. A Strategy: The concrete implementation defining the process's behavior.
  2. A Certificate: A formal guarantee of that behavior upon which other processes can rely.

These certificates establish an assume-guarantee contract. A process is required to satisfy its portion of the global specification assuming all other processes adhere to their respective certificates. This decoupling allows for modular reasoning and synthesis.

Representation and Optimization

Certificates are represented either as LTL formulas or Labeled Transition Systems (LTS). The search for both strategies and certificates is encoded into a SAT constraint system. By bounding the size of the certificates and incrementally increasing them, the algorithm naturally favors solutions with simple interfaces. Furthermore, the method supports nondeterministic certificates, which can abstract complex behaviors into fewer states than deterministic ones, further reducing computational overhead.

A Labeled Transition System (LTS) representing a simple certificate for a process.

Key Insights

  • Decoupling via Certificates: Certificates act as a "firewall." Once a contract is established, a process's internal strategy can be modified or re-synthesized without affecting the rest of the system, provided the new strategy remains compliant with the original certificate.
  • Interface Complexity vs. Global State: The performance of certifying synthesis is primarily sensitive to the complexity of process interactions (certificate size) rather than the total global state space. This makes it exceptionally efficient for systems with sparse or simple communication patterns.
  • The Power of Nondeterminism: While implementations must be deterministic, certificates can be nondeterministic. This allows for more abstract guarantees, leading to smaller state machines and faster synthesis times.
A strategy for a process that accounts for the behavior of others through assume-guarantee contracts.

Experimental Results

The approach was evaluated on standard benchmarks, including the n-ary Latch, Generalized Buffer, and a Manufacturing Robots scenario. Key findings include:

  • Significant Speedups: On the n-ary Latch benchmark, certifying synthesis solved instances in under a second that caused state-of-the-art tools like BoSy to time out after 60 minutes.
  • Scalability: For the Generalized Buffer, the tool successfully synthesized a system with 3 senders in approximately 122 seconds, whereas traditional distributed approaches required over 3000 seconds for only 2 senders.
  • Efficiency of Nondeterminism: In specific scenarios, nondeterministic certificates reduced the interface size from 5 states to 2, significantly accelerating the solving process.

Limitations and Future Work

Despite its successes, the method has limitations. The decomposition of global specifications into local ones currently relies on simple heuristics; finding an optimal decomposition remains an open research question. Additionally, if a problem inherently requires high-bandwidth interaction (large certificates), the overhead of synthesizing these interfaces may exceed that of monolithic approaches. Finally, the "local strategy" optimization is conditionally complete, potentially missing solutions if the specification depends on unobservable variables.

In conclusion, certifying synthesis provides a powerful framework for distributed systems by treating process interfaces as first-class citizens to be synthesized alongside the implementation code.

Summary updated

BibTeX
@inproceedings{finkbeiner2021compositional,
  author = {Bernd Finkbeiner and Noemi Passing},
  title = {{Compositional synthesis of modular systems}},
  booktitle = {ATVA},
  year = {2021},
  doi = {10.1007/978-3-030-88885-5\_20},
}
Figure