Maximum Realizability for Linear Temporal Logic Specifications

Rayna Dimitrova, Mahsa Ghasemi, Ufuk Topcu

Introduction

Linear Temporal Logic (LTL) synthesis provides a formal pathway from high-level specifications to correct-by-construction system implementations. However, traditional synthesis tools operate on a binary principle: a specification is either realizable or it is not. In complex, real-world scenarios—such as autonomous robotics or power grid management—specifications are frequently over-constrained or conflict with an adversarial environment. This leads to "unrealizable" results that offer no guidance to the designer. This paper presents a framework for Maximum Realizability, shifting the paradigm from binary success to optimal approximation.

The Problem: The "All-or-Nothing" Gap

In formal methods, the goal is to automatically generate a system (like a robot controller) from a mathematical description. Standard synthesis is binary: if the specification cannot be met perfectly, the tool returns "UNSAT." This is often frustrating for engineers. For example, if a robot must deliver a package but is asked to never enter a specific hallway, and the only path to the delivery is through that hallway, a standard tool simply fails. The authors address this "best-effort" gap: how can we synthesize a system that satisfies essential (hard) rules while violating optional (soft) rules as little as possible?

The Maximum Realizability Framework

The authors propose a framework based on three key technical pillars:

1. Quantitative Semantics for Safety

Instead of a simple True/False evaluation, the authors define a quantitative value for safety specifications ($\square \phi$). They utilize a 3-tuple to represent levels of satisfaction, distinguishing between different degrees of violation:

  • Is the property never violated?
  • Is it violated only finitely many times?
  • Is it violated infinitely often but also satisfied infinitely often?
  • Is it eventually violated forever?

2. Bounded Synthesis

To make the optimization problem tractable, the framework employs bounded synthesis. By fixing the size of the implementation (the number of states in the transition system), the tool can search for the "best" small implementation before scaling up to larger state spaces. This ensures that the search space remains manageable while looking for optimal behavior.

3. MaxSAT Encoding

The core innovation lies in reducing this optimization problem to a Partial Weighted MaxSAT problem.

  • Hard Clauses: These represent the "must-have" LTL specifications that the system cannot violate.
  • Soft Clauses: These represent the "nice-to-have" specifications.
  • Lexicographic Weights: By assigning exponential weights (e.g., $1, n, n^2$), the authors enforce a strict priority. This ensures the MaxSAT solver prioritizes higher levels of satisfaction—for instance, ensuring that violating a rule once is strictly preferred over violating it infinitely often.

Key Insights and Results

The Power of MaxSAT

A significant "aha" moment in the research was the realization that complex LTL preferences could be encoded into a SAT solver using exponential weights. This allows a general-purpose MaxSAT solver to handle the preference logic of temporal requirements without requiring a specialized, domain-specific optimization engine.

Application Domains

The framework was evaluated across two primary domains:

  • Robotic Navigation: In a museum guide robot scenario, the robot had to visit exhibits (hard spec) while preferring to avoid offices and crowded passages (soft specs). With a small state-space bound (8 states), the tool found a functional strategy. When increased to 10 states, it discovered a superior strategy that alternated between minor violations to achieve a higher quantitative score.
  • Power Distribution Networks: The system managed generators and loads, handling instances with up to 23 soft specifications. The framework successfully ensured critical loads remained powered while minimizing the frequency of switching supplies.

Limitations and Future Work

While the framework is a significant step forward, it currently focuses primarily on safety properties ($\square \phi$). While the authors discuss generalizations to arbitrary LTL, the current implementation is optimized for safety. Furthermore, like all synthesis problems, it faces the "state-space explosion" challenge; as the number of soft specifications and implementation states grow, the computational requirements increase significantly. Future work aims to explore more complex soft requirements and improve encoding efficiency for industrial-scale systems.

Conclusion

By moving beyond binary realizability, this research provides a practical path for formal methods in the real world. The Maximum Realizability framework ensures that even when perfection is impossible, the synthesized system is the best possible version of itself, strictly adhering to safety while optimizing for performance.

Summary updated

BibTeX
@inproceedings{dimitrova2018maximum,
  author = {Rayna Dimitrova and Mahsa Ghasemi and Ufuk Topcu},
  title = {{Maximum Realizability for Linear Temporal Logic Specifications}},
  booktitle = {ATVA},
  year = {2018},
  doi = {10.1007/978-3-030-01090-4\_27},
}
Figure