Prophecy Variables for Hyperproperty Verification

Raven Beutner, Bernd Finkbeiner

Abstract

Verifying complex system properties that relate multiple execution traces, known as hyperproperties, is a significant challenge in formal methods—particularly when these properties involve quantifier alternation (e.g., "for all traces, there exists a trace"). While game-based verification offers a computationally efficient path, it is traditionally mathematically incomplete because the existential player lacks knowledge of the universal player's future moves. This paper introduces a method to achieve completeness by incorporating prophecy variables, which provide information about future system behavior. We present a constructive algorithm for generating these prophecies and evaluate its implementation in a new tool, HyPro, which demonstrates the ability to both prove and disprove complex $\forall^* \exists^*$ HyperLTL properties.

Introduction

In modern computer science, many critical security and functional requirements are expressed as hyperproperties. Unlike standard trace properties that look at a single execution (e.g., "the system never crashes"), hyperproperties compare multiple executions. A classic example is Non-Interference, which ensures that high-security secrets do not leak to low-security outputs by requiring that for every execution trace, there exists another trace with different secrets but identical public outputs.

These properties are typically expressed in HyperLTL, a logic that quantifies over multiple execution traces. While verification is relatively straightforward when all quantifiers are universal ($\forall$), it becomes significantly more difficult when they alternate (e.g., $\forall \pi. \exists \pi'$).

The Verification Gap

Existing approaches to alternating hyperproperties generally fall into two categories:

  1. Complementation-based methods: These are mathematically complete but suffer from an exponential state-space blow-up. This makes them computationally infeasible for large-scale systems.
  2. Strategy-based (Game-based) methods: These treat verification as a game between a $\forall$-player and an $\exists$-player. This approach is much faster (polynomial time) but inherently incomplete. The $\exists$-player often loses the game simply because they cannot "see the future" of the $\forall$-player’s moves, even if a valid matching trace $\pi'$ actually exists in the system.

This research addresses a fundamental question: How can we make the efficient game-based approach mathematically complete?

Methodology: Bridging the Gap with Prophecies

The authors bridge this gap by introducing Prophecy Variables. A prophecy variable is a bit of information provided to the $\exists$-player that "predicts" future aspects of the trace being constructed by the $\forall$-player.

System Manipulation

The core of the approach involves modifying the system so the $\forall$-player non-deterministically sets these prophecy variables at each step. To ensure the $\forall$-player remains honest, the property specification is relaxed: the $\exists$-player wins automatically if the $\forall$-player "lies" about the future (i.e., sets a prophecy variable that is eventually contradicted by the actual system behavior). This effectively forces the $\forall$-player to commit to a specific future, leveling the playing field.

Constructive Prophecy Generation

The paper provides a formal method for generating these prophecies:

  • Safety Properties: For properties where the goal is to avoid "bad" states, prophecies identify which states are currently "safe."
  • $\omega$-regular Properties (Liveness): For properties involving liveness (things that must eventually happen), the authors introduce an "optimal successor" construction. This ranks moves based on how quickly they reach an accepting state, allowing the $\exists$-player to always select the most efficient path to victory.

Completeness Proof

A major contribution of this work is the formal proof that for any finite-state system and any $\forall^* \exists^*$ HyperLTL property, there exists a finite set of $\omega$-regular prophecies that allow the game-based approach to reach the correct verdict. This establishes the first completeness result of its kind for this class of hyperproperties.

Implementation and Results

The authors implemented their algorithm in a tool called HyPro. It is the first tool capable of automatically synthesizing both the strategies and the prophecies required for verification.

Evaluation

HyPro was evaluated using common hyperproperty benchmarks, including:

  • Information-flow policies: Such as Generalized Non-Interference (GNI).
  • Symmetry constraints: Ensuring that for every trace, a "mirrored" trace exists.
  • Non-deterministic programs: Specifically designed to test the "blindness" of standard verifiers.

While the benchmarks ranged from small 4-state systems to 512-state systems, the authors utilized bisimulation-based preprocessing to successfully verify systems with up to 55,000 states.

Key Findings

  • Completeness in Practice: HyPro solved instances that were previously impossible for strategy-based tools like MCHyper because those tools could not handle future-dependent choices.
  • Definitive Disproof: Because the method is complete, HyPro is the first strategy-based tool that can definitively disprove a property (return a "No" result) rather than simply failing to find a proof.
  • Efficiency via Encoding: While a naive set of prophecies could be quite large, the authors demonstrated that binary encoding can reduce the number of required variables to $O(|S| \log |S|)$, where $S$ is the number of system states.

Conclusion and Future Work

This research demonstrates that prophecy variables can transform incomplete game-based verification into a complete and powerful framework for HyperLTL. While the current direct construction of prophecies is computationally intensive, it provides a rigorous foundation for future optimizations.

Future work will focus on Counter-Example Guided Prophecy Refinement (CEGPR). Rather than generating all possible prophecies upfront, tools could analyze why a game was lost and "learn" only the specific prophecies needed to resolve that specific failure. Additionally, prophecy variables offer a potential path toward more explainable verification, as they provide a clear "certificate" or justification for why a property holds or fails.

Summary updated

BibTeX
@inproceedings{beutner2022prophecy,
  author = {Raven Beutner and Bernd Finkbeiner},
  title = {{Prophecy Variables for Hyperproperty Verification}},
  booktitle = {CSF},
  year = {2022},
  url = {https://openreview.net/forum?id=w17qld9XFL},
}
Figure