Abstract
This paper introduces hyperautomata, a new class of machines designed to recognize hyperlanguages—sets of sets of words. By extending traditional automata with quantification (e.g., "for all traces" or "there exists a trace"), the authors provide a powerful new toolkit for formally verifying complex system properties like information-flow security and observational determinism.
Introduction
In computer science, system behavior is typically described using "trace properties"—rules that apply to a single execution path, such as ensuring a system never reaches an error state. However, many modern requirements, especially in security, are hyperproperties. These involve comparing multiple executions. For example, "Non-interference" requires that a system's public output remains the same regardless of secret inputs; this cannot be checked by looking at one trace in isolation but requires comparing pairs of traces.
While decades of research exist on using automata (like NFAs and DFAs) to represent standard trace properties, a robust automata-based framework for hyperproperties has been lacking. Most existing work relies on logic (like HyperLTL), which can be difficult to implement in practical verification tools. This paper fills that gap by defining the Nondeterministic Finite Hyperautomaton (NFH).
Methods: Defining Hyperautomata
The authors define a hyperword as a set of finite words and a hyperlanguage as a set of these hyperwords. To process them, they introduce the NFH, which consists of two main parts:
- An Underlying NFA: This machine runs on "zipped" words. If you have multiple words, the NFA reads them together as a single sequence of tuples.
- A Quantification Condition ($\alpha$): This defines how the variables are bound (e.g., $\forall x_1 \exists x_2$).
Essentially, an NFH accepts a set of words if the quantification condition is satisfied by the underlying NFA's ability to accept the resulting "zipped" combinations.
The paper also explores Hyperregular Expressions (HREs), which extend standard regular expressions with quantifiers, providing a more human-readable way to specify these complex properties. Finally, they adapt Angluin’s $L^*$ algorithm to show that certain fragments of these hyperlanguages can be learned through queries and counterexamples.
Key Insights and Complexity Analysis
The core technical innovation is the "zipping" technique, representing multiple words as a single word over a product alphabet (e.g., $(\Sigma \cup \{\#\})^k$). This allows the authors to leverage existing automata theory while handling the "hyper" aspect through the quantifier prefix.
A critical contribution of the paper is identifying the decidability boundaries of these machines. While the general nonemptiness problem for NFH is undecidable, it becomes decidable (specifically PSPACE-complete or NL-complete) if the way quantifiers are mixed is restricted.
Key results include:
- Closure Properties: Regular hyperlanguages are closed under union, intersection, and complementation. This is essential for combining or negating security policies using standard set operations.
- Learning Hyperlanguages: If a hyperlanguage uses only one type of quantifier (only $\forall$ or only $\exists$), it can be learned automatically, enabling "black-box" verification.
- Complexity Map: Nonemptiness is NL-complete for simple $\exists^*$ or $\forall^*$ fragments and PSPACE-complete for $\exists^*\forall^*$ fragments. Membership checking is in PSPACE in general, dropping to NP-complete under certain conditions.
Conclusion and Future Work
The authors successfully modeled several prominent security policies, including Non-interference and Observational Determinism, using the HRE and NFH frameworks. However, this work focuses on finite-length words. Extending this to Büchi Hyperautomata for infinite traces in reactive systems is a natural next step. Additionally, while learning algorithms exist for "alternation-free" fragments, developing methods for more complex quantifier patterns remains an open challenge.
Summary updated