Closure Certificates

Ashutosh Trivedi, Vishnu Murali, Ashutosh Trivedi 0001, Majid Zamani

TL;DR

This paper introduces Closure Certificates, a new functional tool for the automated verification of infinite-state dynamical systems. By acting as a functional analog to transition invariants, closure certificates allow researchers to prove complex properties—like those expressed in Linear Temporal Logic (LTL)—using standard optimization and SMT solvers, often with simpler mathematical forms than traditional barrier certificates.

What Problem Does This Paper Address?

Verifying the behavior of "infinite-state" systems (like a robot’s continuous movement or a power grid’s voltage fluctuations) is notoriously difficult. Traditionally, researchers use barrier certificates to prove safety. Think of a barrier certificate as a "fence" in the state space: if you start on one side and the system's dynamics never let you cross the fence, you know you’ll never reach an "unsafe" region.

However, barrier certificates struggle with more complex requirements, such as recurrence (proving a system will eventually or infinitely often visit a state) or general LTL specifications. Existing methods to adapt barrier certificates for these tasks are often "conservative," meaning they might fail to find a proof even when one exists. While "transition invariants" were proposed decades ago to handle these cases, they lacked a convenient functional form that could be easily plugged into modern automated search tools.

Methods

The authors propose Closure Certificates (CC). While a barrier certificate is a function of a single state $B(x)$, a closure certificate is a function of a pair of states $T(x, x')$. Intuitively, it captures the "transitive closure" of the system—essentially a mathematical way of saying "if I can get from A to B, and from B to C, I can get from A to C."

To make these certificates practical, the paper provides two main synthesis pathways:

  1. SMT-based Synthesis: Using Counterexample-Guided Inductive Synthesis (CEGIS). The algorithm proposes a candidate certificate, uses an SMT solver (like z3 or dReal) to look for "bugs" (counterexamples) in that certificate, and refines the candidate until no more bugs are found.
  2. Sum-of-Squares (SOS) Programming: For systems with polynomial dynamics, the search for a certificate can be turned into a semidefinite program. This is computationally efficient and leverages powerful convex optimization tools.

Datasets

As is standard in formal verification research, the authors evaluate their method on complex mathematical models of physical systems rather than static datasets:

  • Kuramoto Oscillators (1D and 2D): A classic nonlinear model used to study synchronization in everything from fireflies to power grids.
  • Two-Room Temperature Model: An interconnected system where the temperature in one room affects the other, used to test the certificate's ability to handle LTL properties like "persistence" (e.g., ensuring the system eventually stays within a specific temperature range).

Key Insights and Ideas

  • Simplicity over Complexity: One of the most striking "aha moments" is the proof that a linear closure certificate can sometimes prove safety in cases where a traditional barrier certificate would require a high-degree polynomial. This suggests that by looking at pairs of states, we can find "simpler" proofs for the same problems.
  • Subsuming the "State Triplet" Approach: The authors formally prove that their method generalizes the existing "state triplet" approach. This means any property provable by the old method is also provable via closure certificates, but the new method is less likely to be "stuck" by conservative assumptions.
  • Functional Transition Invariants: By turning transition invariants into real-valued functions, the authors bridge the gap between high-level verification theory and low-level numerical optimization.

Key Results

  • Safety Verification: In the 1D Kuramoto Oscillator case study, the authors found a linear closure certificate that proved safety, whereas a linear barrier certificate was mathematically impossible for the same task.
  • LTL Success: The method successfully verified complex LTL properties (e.g., "if the system starts in state $a_0$, it will eventually stay out of state $a_1$ forever") on nonlinear, continuous systems.
  • Efficiency: Despite the increased dimensionality of searching over state pairs, the CEGIS loops terminated in reasonable timeframes (ranging from 10 minutes for simpler models to 1.5 hours for the complex two-room model) on standard hardware.

Limitations and Future Work

The primary limitation is computational scaling. Because closure certificates are defined over the Cartesian product of the state space ($X \times X$), the number of variables increases significantly as the system's dimensions grow. A system with 10 variables requires a certificate that effectively reasons in a 20-dimensional space.

The authors suggest several promising future directions:

  • $k$-induction: Integrating $k$-induction to allow for even broader classes of functions to serve as certificates.
  • Data-Driven Synthesis: Exploring how to learn these certificates from system execution data rather than just analytical models.
  • Controller Synthesis: Moving from just verifying a system to actually designing a controller that is guaranteed by construction to satisfy LTL properties.

Summary updated

BibTeX
@inproceedings{trivedi2024closure,
  author = {Ashutosh Trivedi and Vishnu Murali and Ashutosh Trivedi and Majid Zamani},
  title = {{Closure Certificates}},
  booktitle = {Hscc},
  year = {2024},
  doi = {10.1145/3641513.3650120},
}
Figure