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

Finite-Word Hyperlanguages

Borzoo Bonakdarpour, Sarai Sheinvald

TL;DR

Traditional formal languages model single execution traces, but modern security policies require analyzing multiple executions simultaneously (known as "hyperproperties"). This paper introduces "finite-word hyperlanguages," providing a foundational theoretical framework using hyperregular expressions (HRE) and finite-word hyperautomata (NFH). The authors map out the theoretical landscape of these new models, proving closure properties and establishing the computational complexity of key decision problems like nonemptiness and universality.

What Problem Does This Paper Address?

In computer science, we traditionally use formal languages (like regular expressions and automata) to model "trace properties." A trace property evaluates a single execution of a system—for example, checking that "the system never crashes" or "every request is eventually followed by a response."

However, many critical system requirements cannot be evaluated by looking at just one trace. Take information-flow security, specifically noninterference: "a user with low-level clearance should not be able to deduce high-level secret data based on the system's output." To verify this, you have to compare multiple execution traces to ensure that changing the secret input doesn't change the public output. These are called hyperproperties (sets of sets of executions).

While researchers have developed temporal logics (like HyperLTL) to express hyperproperties for infinite system traces, there is a glaring gap in the literature: we lack a basic, formal-language theoretical framework for expressing general hyperproperties over finite words. This paper aims to fill that gap by defining the regular languages of the hyper-world.

Methods

The authors build on classic regular expressions and nondeterministic finite automata (NFAs) to create a new framework:

  1. Hyperwords and Hyperlanguages: Instead of a language being a set of words, a hyperlanguage is a set of sets of words (hyperwords).
  2. Hyperregular Expressions (HRE): These are standard regular expressions augmented with quantified word variables (e.g., $\forall x. \exists y$). This allows the expression to dictate rules across multiple traces, such as "for every trace $x$, there exists a trace $y$ such that they share the same public outputs."
  3. Nondeterministic Finite-Word Hyperautomata (NFH): The automata equivalent of HREs. They read "word assignments" (multiple words processed in parallel, padded to be the same length) and accept or reject based on the quantifier conditions.

The authors use theoretical computer science techniques—specifically automata constructions and complexity reductions from known hard problems like the Post Correspondence Problem (PCP) and Corridor Tiling—to prove the mathematical properties and computational limits of these new models.

Datasets

Not discussed in the paper. This is a purely theoretical formal methods paper, so it relies on mathematical proofs and complexity reductions rather than empirical datasets or benchmarks.

Key Insights and Ideas

  • Beautifully Behaved Set Operations: Despite their added complexity, regular hyperlanguages are closed under all Boolean operations. You can take the union, intersection, or complement of these hyperlanguages, and the result is always another valid regular hyperlanguage.
  • The Cost of Quantifier Alternation: The moment you mix universal ($\forall$) and existential ($\exists$) quantifiers in a specific way (specifically $\forall\exists\exists$), checking if an automaton accepts anything (the "nonemptiness" problem) becomes mathematically undecidable.
  • Tractable Fragments: If you restrict the quantifiers—say, using only $\exists$ or only $\forall$ (alternation-free)—the nonemptiness problem drops to NL-complete. This means it can be solved highly efficiently using simple reachability tests.
  • Wild-cards are a Double-Edged Sword: The authors introduce "wild-card" letters to allow for exponentially smaller automata representations (by ignoring variables that don't matter at a given step). However, for certain fragments (like $\exists\forall$), this compression causes the complexity of checking nonemptiness to blow up from PSPACE-complete to EXPSPACE-complete.

Key Results

The paper provides a comprehensive map of the computational complexity for NFHs:

  • Closure: Proven closed under complementation, union, and intersection.
  • Nonemptiness (Is the language empty?):
  • General NFH ($\forall\exists\exists$): Undecidable.
  • Alternation-free ($\exists^*$ or $\forall^*$): NL-complete.
  • $\exists^*\forall^*$ fragment: PSPACE-complete.
  • Bounded Nonemptiness: Checking if an NFH accepts a hyperword of a bounded size is PSPACE-complete.
  • Membership: Checking if a specific finite hyperword belongs to an NFH is in PSPACE (and NP-complete for specific constraints).
  • Containment & Universality: Generally undecidable, but decidable (ranging from PSPACE to EXPSPACE) for restricted quantifier fragments.

Limitations and Future Work

Limitations: Because the general nonemptiness problem is undecidable, the authors provide a "semi-algorithm" for the useful $\forall\exists$ fragment. However, by definition of undecidability, this algorithm is not guaranteed to halt if the language is empty. Additionally, a few precise complexity lower bounds remain open (e.g., the exact lower bound for universality and containment for the $\exists\forall$ fragment).

Future Work: The authors suggest several exciting directions:

  1. Infinite Words: Extending this framework to infinite traces using Büchi automata to model $\omega$-regular hyperlanguages.
  2. Beyond Regular: Exploring non-regular hyperlanguages (like context-free ones) and object hyperlanguages (like trees).
  3. Machine Learning: Developing learning algorithms to automatically infer hyperlanguages from sets of system execution examples.

Summary updated

BibTeX
@inproceedings{bonakdarpour2021finite,
  author = {Borzoo Bonakdarpour and Sarai Sheinvald},
  title = {{Finite-Word Hyperlanguages}},
  booktitle = {LATA},
  year = {2021},
  doi = {10.1007/978-3-030-68195-1\_17},
}
Figure