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

Verifying Hyperliveness

Norine Coenen, Bernd Finkbeiner, César Sánchez, Leander Tentrup

Introduction

In formal verification, Linear Temporal Logic (LTL) is the standard for checking if individual program paths adhere to safety or liveness requirements. However, modern security and privacy standards often demand hyperproperties—specifications that compare multiple distinct executions of the same system. A classic example is Noninterference, which asserts that changing a secret input in one run should not affect the public output in another.

While verification techniques for "alternation-free" hyperproperties (using only universal or existential quantifiers) have matured, hyperliveness remains a significant challenge. These properties involve alternating quantifiers, such as $\forall \pi . \exists \pi' . \phi(\pi, \pi')$, to express requirements like Generalized Noninterference (GNI). GNI ensures that for any observation an attacker makes, there exists an alternative secret input that could have produced it, thereby masking the true secret. Traditionally, verifying such properties required complementing automata, a process that leads to an exponential explosion in state space, rendering it impractical for real-world systems.

Methodology: Synthesis as Verification

This paper proposes a paradigm shift: treating the verification of $\forall \pi . \exists \pi'$ formulas as a game between two players. In this framework, the $\forall$-player (the environment) chooses a trace $\pi$, and the $\exists$-player must respond by constructing a trace $\pi'$ that satisfies the property $\phi$.

The core insight is that if the $\exists$-player possesses a winning strategy, the hyperliveness property is satisfied. To automate the search for this strategy, the authors employ Bounded Synthesis. They translate the search into a Satisfiability Modulo Theories (SMT) problem, challenging a solver like Z3 to find a transition system of a specific size that functions as a "witness strategy." This approach effectively uses synthesis—a technique typically reserved for building systems—as a powerful tool for verification.

Handling Future Dependencies with Prophecy

A standard strategy typically makes decisions based only on the past. However, some hyperliveness properties require the choice of $\pi'$ to depend on the future behavior of $\pi$. To address this, the authors introduce prophecy variables. These variables act as a "crystal ball," providing the strategy with a finite lookahead into the $\forall$-player’s future actions. While prophecy variables are theoretically incomplete for properties requiring infinite lookahead or complex counting, the authors demonstrate that a small amount of lookahead is sufficient for most practical security properties.

Implementation and Evaluation

The proposed method was integrated into MCHyper, a hardware model checker. This allows MCHyper to either accept a user-provided strategy or automatically synthesize one. The approach was evaluated against several benchmarks:

  • Software Doping: Models of emission control systems where "robust cleanness" ensures that minor input variations do not lead to disproportionate output changes.
  • Mutual Exclusion: The Bakery Protocol, where the tool checked for symmetry to ensure fair treatment of different processes.
  • Information Flow: The Dining Cryptographers problem, testing the synthesis of implementations that guarantee anonymity and deniability.

Key Results

The evaluation revealed that the synthesis-based approach achieves performance parity with previous "watered-down" manual approximations. For instance, verifying "Robust Cleanness" on car emission models took between 1.8 and 160 seconds. Crucially, unlike previous methods that relied on potentially error-prone manual abstractions, this technique provides a rigorous formal proof that the original $\forall \exists$ formula is satisfied. The tool successfully synthesized strategies for the Bakery protocol and the Dining Cryptographers, though full system synthesis for the largest models remains a computational challenge for SMT solvers.

Conclusion

By reframing hyperliveness verification as a strategy synthesis problem, this work provides a practical path forward for checking complex security and correctness requirements. The use of Bounded Synthesis and prophecy variables avoids the state-space explosion of traditional methods while maintaining the rigor of formal proof. Future improvements in SMT solvers, particularly those handling quantification over Boolean functions, are expected to further enhance the scalability of this promising approach.

Summary updated

BibTeX
@inproceedings{coenen2019verifying,
  author = {Norine Coenen and Bernd Finkbeiner and César Sánchez and Leander Tentrup},
  title = {{Verifying Hyperliveness}},
  booktitle = {CAV},
  year = {2019},
  doi = {10.1007/978-3-030-25540-4\_7},
}
Figure