Introduction
Formal verification has long focused on properties of individual execution traces, such as "the program never crashes." However, many critical security and correctness requirements are hyperproperties, which describe relationships between multiple execution traces. For example, non-interference requires that two executions with the same low-security inputs produce the same low-security outputs, regardless of high-security inputs.
While significant progress has been made in verifying $k$-safety (universal properties over $k$ traces), automated verification of hyperliveness—properties involving existential quantification across traces ($\forall^k \exists^l$)—has remained an open challenge, particularly for infinite-state systems. This paper introduces the first automated method to bridge this gap.
The Challenge of Hyperliveness
Most existing tools for hyperproperties are limited to $k$-safety, where one must prove a property holds for all possible combinations of $k$ traces. Hyperliveness is significantly more complex because it introduces quantifier alternation. A typical hyperliveness property might state: "for every execution $\pi_1$ of the system, there exists another execution $\pi_2$ such that..."
This "forall-exists" structure is essential for verifying:
- Generalized Non-Interference (GNI): Ensuring that non-deterministic choices do not leak secret information.
- Program Refinement: Proving that every behavior of a complex implementation is contained within a simpler specification.
- Compiler Correctness: Verifying that optimized code preserves the observable behavior of the source.
Verifying these in infinite-state systems (e.g., programs with integer variables) requires reasoning about infinite domains and complex interleavings, which previously lacked automated support.
Methodology: Verification as a Game
The authors propose a framework implemented in a tool called HyPA. At its core, HyPA treats verification as a two-player safety game played on an abstract state space.
Observation-based HyperLTL (OHyperLTL)
To handle infinite domains and asynchronous trace comparison, the authors introduce OHyperLTL. This logic extends standard HyperLTL with "observation points," allowing the tool to compare traces at specific relevant moments rather than at every step. This abstraction makes the model-checking problem decidable for finite-state systems and provides a foundation for infinite-state heuristics.
The Verification Game
The verification process is modeled as a game between two players:
- The Refuter (Player REACH): Controls the universally quantified traces, attempting to find a combination of executions that violates the property.
- The Verifier (Player SAFE): Controls the existentially quantified traces and the scheduling (the relative progress of different traces).
As shown in the figure above, the verifier must find a strategy (a set of "restrictions" on successor states) that keeps the system within a safe region of the abstract state graph, regardless of the refuter's moves.
Predicate Abstraction and Lazy Solving
To manage infinite state spaces, HyPA uses predicate abstraction. It tracks a finite set of logical predicates about program variables. Instead of exploring every concrete state, the game is played on abstract states defined by these predicates.
To improve efficiency, HyPA employs a lazy iterative solver. Rather than constructing the entire abstract game graph upfront, it starts with a coarse overapproximation and refines it only as needed. It uses the Z3 SMT solver to check the validity of the verifier's moves and the consistency of the abstract states.
Key Insights: Strategic Scheduling
A major innovation of this work is the coupling of existential trace selection with program reduction. The verifier can choose to "advance" one trace while others remain stationary. This strategic scheduling allows the tool to align traces at points where their variables satisfy simple relational invariants, making the search for a proof much more tractable.
Evaluation and Results
The authors evaluated HyPA on two sets of benchmarks. It successfully matched the performance of existing tools on standard $k$-safety tasks. More importantly, it successfully verified a new suite of $\forall^k \exists^l$-safety benchmarks, including GNI and program refinement problems that were previously impossible to automate.
The lazy solver proved highly effective. For instance, on a non-deterministic addition benchmark (NonDetAdd), a direct solver timed out after 300 seconds, while the lazy approach found a proof in just 4.5 seconds.
Conclusion and Future Work
HyPA represents a significant step forward in automated hyperproperty verification. By combining game theory, predicate abstraction, and strategic scheduling, it enables the verification of complex "forall-exists" properties in infinite-state software.
Future work aims to automate the discovery of predicates through Counterexample-Guided Abstraction Refinement (CEGAR) and to extend the framework to handle more complex quantifier patterns (like $\exists \forall$) and full liveness properties.
Summary updated