AutoHyper: Explicit-State Model Checking for HyperLTL

Raven Beutner, Bernd Finkbeiner

AutoHyper Artifact Badges: Evaluated, Reusable, and Available

Abstract

HyperLTL is a temporal logic that can express hyperproperties, i.e., properties that relate multiple execution traces of a system. Such properties are becoming increasingly important and naturally occur, e.g., in information-flow control, robustness, mutation testing, path planning, and causality checking. Thus far, complete model checking tools for HyperLTL have been limited to alternation-free formulas, i.e., formulas that use only universal or only existential trace quantification. Properties involving quantifier alternations could only be handled in an incomplete way, i.e., the verification might fail even though the property holds. In this paper, we present AutoHyper, an explicit-state automata-based model checker that supports full HyperLTL and is complete for properties with arbitrary quantifier alternations. We show that language inclusion checks can be integrated into HyperLTL verification, which allows AutoHyper to benefit from a range of existing inclusion-checking tools. We evaluate AutoHyper on a broad set of benchmarks drawn from different areas in the literature and compare it with existing (incomplete) methods for HyperLTL verification.

Introduction: The Challenge of Hyperproperties

In traditional formal verification, we typically analyze whether a single execution trace of a system satisfies a property, such as "the system never enters an error state." However, many critical security and performance requirements—known as hyperproperties—relate multiple executions. For instance, Generalized Non-Interference (GNI) ensures that high-security inputs do not influence low-security outputs by comparing different possible traces of the system.

The logic used to express these properties is HyperLTL, which extends standard Linear Temporal Logic (LTL) with trace quantifiers ($\forall, \exists$). While verification tools have become proficient at checking "alternation-free" formulas (those using only universal or only existential quantification), formulas with quantifier alternations (e.g., $\forall \pi . \forall \pi' . \exists \pi''$) are notoriously difficult to handle. Existing tools are often incomplete—meaning they might fail to find a proof even if the property holds—or require manual user intervention. AutoHyper provides the first fully automated, complete solution for the entire HyperLTL logic.

Methodology: Explicit-State Automata and Language Inclusion

AutoHyper utilizes an explicit-state automata-based approach to provide a "push-button" verification experience. The core of the tool is an iterative process that eliminates quantifiers from the HyperLTL formula:

  1. Automata Construction: The LTL body of the formula is converted into a Non-deterministic Büchi Automaton (NBA).
  2. Quantifier Elimination: Existential quantifiers ($\exists$) are handled via projection of the automaton, while universal quantifiers ($\forall$) are handled through automaton complementation.
  3. Language Inclusion Optimization: A key theoretical contribution of the paper is the reduction of the outermost quantifier alternation to a language inclusion check ($L(A) \subseteq L(B)$).

Rather than implementing these operations from scratch, AutoHyper serves as a framework that integrates with mature, highly-optimized inclusion checkers such as spot, RABIT, BAIT, and FORKLIFT. This modular design allows AutoHyper to leverage decades of research into efficient automata operations.

Experimental Evaluation

The authors evaluated AutoHyper across a diverse set of benchmarks, including synthetic models, Boolean programs for information-flow properties, classic mutual exclusion algorithms (like Lamport’s Bakery algorithm), and complex path-planning problems.

Key Results and Insights

  • Performance: In path-planning benchmarks, AutoHyper frequently outperformed symbolic Bounded Model Checking (BMC) tools like HyperQube by orders of magnitude. For example, on a $60 \times 60$ grid, AutoHyper completed verification in seconds, whereas HyperQube reached a timeout.
  • Completeness in Practice: Because it is a complete model checker, AutoHyper successfully verified properties that incomplete methods could not, such as invariants in GNI. It also correctly identified bugs in the SNARK data structure and clarified the fairness of certain protocols where previous tools provided incorrect results.
  • Feasibility of Deep Alternations: While theoretical complexity suggests an exponential blow-up for each quantifier alternation, the authors found that intermediate automata remained manageable in practice. AutoHyper successfully handled formulas with up to four levels of alternation.
  • Explicit vs. Symbolic: The results demonstrate that explicit-state methods remain highly competitive and can outperform symbolic approaches on complex planning and security benchmarks.

Conclusion

AutoHyper establishes a robust baseline for HyperLTL verification by combining a complete theoretical approach with optimized automata-based backends. While it may eventually face state-space explosion in systems with massive variable counts, its current performance on literature benchmarks proves that explicit-state model checking is a powerful tool for verifying complex hyperproperties. Future work includes using generated counterexamples to synthesize strategies and further optimizing the translation from symbolic system descriptions to explicit-state formats.

Summary updated

BibTeX
@inproceedings{beutner2023autohyper,
  author = {Raven Beutner and Bernd Finkbeiner},
  title = {{AutoHyper: Explicit-State Model Checking for HyperLTL}},
  booktitle = {TACAS},
  year = {2023},
  url = {https://openreview.net/forum?id=YHFUo1Anpv},
}
Figure