Checking Satisfiability of Hyperproperties using First-Order Logic

Raven Beutner, Bernd Finkbeiner · DOI

Abstract

This paper introduces FOLHyper, a novel tool designed to check the satisfiability of hyperproperties by translating HyperLTL formulas into equisatisfiable First-Order Logic (FOL) formulas. By leveraging off-the-shelf FOL and SMT solvers, FOLHyper overcomes the limitations of existing tools, efficiently handling complex quantifier alternations, models with multiple traces, and—crucially—proving when formulas are unsatisfiable.

Introduction

In the domain of system verification, standard temporal logics like Linear Temporal Logic (LTL) are used to evaluate properties of a single execution trace at a time. However, many critical security and information-flow policies—such as non-interference (the principle that secret inputs should not affect public outputs)—are classified as hyperproperties. These properties require the simultaneous comparison of multiple execution traces.

HyperLTL was designed to express these properties by explicitly quantifying over traces (e.g., $\forall \pi_1. \exists \pi_2$). Checking the satisfiability of a HyperLTL formula is a vital task; it allows researchers to detect contradictory security requirements or prove that one security policy logically implies another. Despite its importance, HyperLTL satisfiability is highly undecidable outside of specific fragments, such as the $\exists^*\forall^*$ fragment. Existing tools often struggle with scalability due to exponential blowups in formula size or rely on bounded model finding, which prevents them from proving unsatisfiability.

Methodology

The authors propose a translation of the HyperLTL satisfiability problem into a First-Order Logic (FOL) satisfiability problem. Their tool, FOLHyper, operates in two primary modes based on the nature of the property being checked:

1. Pure FOL for Temporally Safe HyperLTL

For formulas where the core LTL body represents a "safety" property (where any violation occurs within finite time), FOLHyper translates the LTL body into a Nondeterministic Safety Automaton (NSA). It then constructs a pure FOL formula using dedicated sorts for Trace and Time, alongside a succ function to iterate through time steps. This encoding essentially mimics the automaton's execution across multiple quantified traces within the FOL framework.

2. FOL Modulo LIA for Full HyperLTL

For properties involving liveness (infinite behavior), pure FOL is insufficient. In these cases, the authors translate the LTL body into a Büchi automaton. To handle the infinite acceptance conditions of Büchi automata, they encode the problem into FOL modulo Linear Integer Arithmetic (LIA). This approach uses integers to represent time steps and arithmetic to enforce the necessary infinite behavior conditions.

Once encoded, these formulas are processed by standard, highly optimized FOL and SMT solvers such as Vampire, Paradox, or Z3.

Evaluation

The authors evaluated FOLHyper against existing state-of-the-art tools, including EAHyper, MGHyper, and LMHyper. The evaluation utilized several diverse benchmark suites:

  • Quantitative Noninterference (QN): Benchmarks testing bounded information leakage.
  • Random Formulas: Formulas generated within the $\exists^*\forall^*$ and $\forall^1\exists^*$ fragments.
  • enforceModel(n, b): Formulas specifically designed to require a minimum of $n$ distinct traces for satisfaction.
  • unsat(n): Hand-crafted formulas designed to be unsatisfiable.
  • Implication Checks: Real-world security policy comparisons, such as verifying if Generalized Non-Interference (GNI) implies Non-Inference (NI).

Key Insights and Results

Polynomial Encoding vs. Exponential Unfolding

Previous exact methods for the decidable $\exists^*\forall^*$ fragment, such as EAHyper, relied on explicitly unfolding trace dependencies. This led to exponentially large LTL formulas. In contrast, FOLHyper utilizes a polynomial encoding, which allows it to scale significantly better as the number of quantifiers increases. For example, on the QN benchmarks ($QN(5) \implies QN(7)$), EAHyper required 26.86 seconds, while FOLHyper completed the check in just 0.17 seconds.

Proving Unsatisfiability

One of the most significant advantages of FOLHyper is its ability to mathematically prove unsatisfiability. Because it uses resolution-based FOL solvers, it can determine when no model exists. Bounded model finders like MGHyper can only report a failure to find a model within a specific size $k$. This capability is essential for proving policy implications, as $A \implies B$ is true if and only if $A \land \neg B$ is unsatisfiable. On the unsat(5) benchmark, FOLHyper proved unsatisfiability in 0.25 seconds, whereas MGHyper timed out.

Handling Multi-Trace Models

Many existing tools are optimized for "singleton models" (systems with only one trace). However, complex hyperproperties often require multiple interacting traces. FOLHyper handles these naturally. On the enforceModel(2, 2) benchmark, which requires at least two traces, MGHyper timed out, while FOLHyper solved the instance in 0.19 seconds.

Conclusion and Future Work

FOLHyper represents a significant step forward in HyperLTL verification, successfully proving complex implications between GNI, NI, and $k$-anonymity policies that were previously unreachable.

However, limitations remain. Current FOL solvers struggle with formulas that are only satisfiable by models containing an infinite number of traces. Additionally, while the FOL modulo LIA encoding for liveness properties is theoretically sound, the resulting instances are often too complex for modern SMT solvers to handle efficiently. Future research will focus on optimizing these encodings and improving solver performance for infinite-trace scenarios.

Summary updated

BibTeX
@inproceedings{beutner2024checking,
  author = {Raven Beutner and Bernd Finkbeiner},
  title = {{Checking Satisfiability of Hyperproperties using First-Order Logic}},
  booktitle = {ATVA},
  year = {2024},
  url = {https://openreview.net/forum?id=YBN3IyOEL8},
}
Figure