Checking Satisfiability of Hyperproperties Using First-Order Logic

Raven Beutner, Bernd Finkbeiner

TL;DR

This paper introduces FOLHyper, a novel tool for checking the satisfiability of hyperproperties expressed in HyperLTL by translating them into equisatisfiable First-Order Logic (FOL) formulas. By leveraging off-the-shelf FOL solvers like Vampire, FOLHyper overcomes the limitations of existing tools, becoming the first to efficiently handle complex formulas requiring multi-trace models and to successfully prove unsatisfiability for arbitrary quantifier prefixes.

What Problem Does This Paper Address?

In computer science, standard temporal logics (like LTL) evaluate a single execution trace at a time. However, many critical system requirements—like security information flow (e.g., "secret inputs don't affect public outputs") or linearizability—are hyperproperties. These require comparing multiple execution traces simultaneously.

HyperLTL is the standard logic for expressing these properties, but checking if a HyperLTL formula is satisfiable (or if one policy implies another) is notoriously difficult and highly undecidable for complex formulas. Existing satisfiability checkers either restrict the user to simple fragments of the logic (e.g., only allowing specific $\exists$ and $\forall$ quantifier orderings) or use bounded model finding. Bounded tools struggle when a property requires a model with multiple distinct traces (non-singleton models) and, fundamentally, they cannot prove that a formula is unsatisfiable—they just search until they time out. Proving unsatisfiability is crucial, as it is the mathematical mechanism used to prove that one security policy implies another.

Methods

The authors tackle this by reducing HyperLTL satisfiability to First-Order Logic (FOL) satisfiability, allowing them to use decades of highly optimized, off-the-shelf FOL and SMT solvers (like Vampire, Paradox, and Z3).

  1. Temporally Safe HyperLTL (Pure FOL): For properties that deal with "safety" (bad things never happen), the authors translate the core LTL formula into a Nondeterministic Safety Automaton. They then encode the automaton's execution over multiple traces into pure FOL. A key methodological trick is using a successor function to model time steps rather than a predicate, which drastically improves the performance of modern FOL solvers.
  2. Full HyperLTL (FOL Modulo Theories): For properties involving "liveness" (good things eventually happen), the authors translate the formula into a Büchi automaton and encode it using FOL modulo Linear Integer Arithmetic (LIA). This allows the solver to reason about infinite acceptance conditions using integer math.

These encodings are implemented in a new command-line tool called FOLHyper.

Datasets

The authors evaluated FOLHyper against existing tools (EAHyper, MGHyper, LMHyper) using several benchmark sets:

  • Quantitative Noninterference (QN): Existing benchmarks measuring information leakage bounds.
  • Randomly Generated Formulas: Sampled formulas across different decidable and undecidable logic fragments.
  • New Hand-Crafted Benchmarks:
  • enforceModel(n, b): Formulas specifically designed to require a minimum of $n$ distinct traces to be satisfied.
  • unsat(n): Formulas designed to be inherently unsatisfiable.
  • Security Policy Implications: Real-world comparisons between Generalized Non-Interference (GNI), Non-Inference (NI), k-anonymity, and observational determinism.

Key Insights and Ideas

  • Unsatisfiability is a Superpower: Because FOLHyper relies on standard FOL resolution, it can mathematically prove a formula is unsatisfiable. Previous bounded tools could only search for models and guess that a formula was unsatisfiable when they timed out. This unlocks the ability to definitively prove implications between complex security policies.
  • Polynomial vs. Exponential Scaling: Existing tools like EAHyper handle quantifiers by explicitly unfolding all dependencies between traces, leading to exponential blowup. FOLHyper's FOL encoding grows polynomially, making it vastly superior for formulas with many quantifiers.
  • Handling Multi-Trace Models: Many hyperproperties are trivially satisfied by a system that only has one possible execution trace. When properties actually require complex, multi-trace behavior, existing bounded solvers choke. FOLHyper handles these non-singleton models with ease.

Key Results

  • Speed and Scaling: On the QN benchmarks with large parameters, FOLHyper maintained a flat runtime of ~0.17 seconds, while EAHyper hit the 60-second timeout.
  • Proving Unsatisfiability: FOLHyper proved the unsatisfiability of the unsat(n) benchmarks in ~0.2 seconds. MGHyper timed out on all of them, and LMHyper took up to 1.73 seconds.
  • Multi-Trace Models: On the enforceModel benchmarks requiring at least 2 traces, FOLHyper solved them in <0.25 seconds, whereas MGHyper timed out.
  • Real-World Security: FOLHyper successfully proved that $k$-anonymity (for $k=2$) mathematically contradicts observational determinism, solving the hand-crafted instance in just 0.34 seconds.

Limitations and Future Work

  • Infinite Models: The authors note that current FOL solvers struggle heavily with HyperLTL formulas that are satisfiable, but strictly require an infinite number of traces in the model. Solvers fail to prove the existence of such infinite first-order models.
  • Liveness Encoding is Theoretical: While the LIA encoding for full HyperLTL (handling liveness/Büchi conditions) is theoretically sound, it is currently mostly of theoretical interest. Adding LIA yields instances that current SMT solvers generally struggle to solve. FOLHyper is currently most practical and highly effective on temporally safe (safety) properties.

Summary updated

Abstract

Hyperproperties are system properties that relate multiple execution traces and occur, e.g., when specifying security and information-flow properties. Checking if a hyperproperty is satisfiable has many important applications, such as testing if some security property is contradictory, or analyzing implications and equivalences between information-flow policies. In this paper, we present FOLHyper, a tool that can automatically check satisfiability of hyperproperties specified in the temporal logic HyperLTL. FOLHyper reduces the problem to an equisatisfiable first-order logic (FOL) formula, which allows us to leverage FOL solvers for the analysis of hyperproperties. As such, FOLHyper is applicable to many formulas beyond the decidable \(\exists ^*\forall ^*\) fragment of HyperLTL. Our experiments show that FOLHyper is particularly useful for proving that a formula is unsatisfiable, and complements existing bounded approaches to satisfiability.
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},
}

Loading related content...

Figure