Abstract
Bounded Model Checking (BMC) is a powerful technique for verifying finite-state systems, but its application to HyperLTL—a logic for specifying properties across multiple execution traces—has historically struggled with infinite behaviors. This paper presents a novel BMC framework for HyperLTL that utilizes efficient loop conditions based on simulation relations. By leveraging lasso-shaped traces and prophecy variables, the proposed method enables the verification of liveness properties and the discovery of repeating counterexamples. Experimental results across diverse case studies, including protocol verification and compiler optimization, demonstrate the efficiency and completeness of the approach.
Introduction
Model checking is a cornerstone of formal verification, ensuring that systems adhere to specified safety and liveness requirements. Bounded Model Checking (BMC) simplifies this task by exploring a system's state space up to a fixed depth $k$. To reason about infinite executions, standard BMC employs "loop conditions," which check if a current state matches a previously visited one, indicating a cycle.
However, extending BMC to Hyperproperties introduces significant complexity. Unlike standard properties that analyze a single execution trace (e.g., "the system never crashes"), hyperproperties compare sets of traces. A classic example is observational determinism, which asks: "Do two different runs with the same secret input always produce the same public output?" Existing BMC tools for HyperLTL (the logic used to express these properties) have historically struggled with infinite traces because different traces may loop at different times or in inconsistent ways, making synchronization difficult. Previous approaches often relied on linear unrolling without looping, which prevented them from proving properties held indefinitely or finding small, repeating bugs in infinite executions.
Methodology
The authors propose a shift from simple linear unrolling toward simulation-based algorithms. This approach rests on several key technical pillars designed to handle the synchronization of multiple traces effectively.
Lasso Sufficiency and Simulation Relations
The framework relies on the proof that for the studied fragments of HyperLTL, if a property is satisfied, it can be represented by "lasso-shaped" traces—a finite prefix followed by a repeating loop. To verify these, the authors utilize simulation relations, which relate the states of different models locally rather than globally:
- $\text{SIM}_{\text{EA}}$: Designed for $\exists\forall$ properties (e.g., "There exists a path that satisfies a condition for all possible adversary moves"). It identifies a single lasso trace in one model that simulates all traces in another.
- $\text{SIM}_{\text{AE}}$: Designed for $\forall\exists$ properties (e.g., "For every system trace, there exists a corresponding specification trace").
Prophecy Variables and SAT Encoding
To handle non-determinism—where a system's current choice might depend on future events—the authors incorporate prophecy variables. These allow the model checker to "look ahead," enabling simulations that would otherwise be impossible to prove in a step-by-step manner. These simulation conditions are then translated into symbolic formulas and solved using the Z3 SMT solver via its Python API (Z3py).
Experimental Evaluation
The researchers evaluated their implementation on several diverse case studies representing different categories of HyperLTL formulas:
- Alternating Bit Protocol (ABP): Verifying if a synthesized protocol conforms to its original scenarios.
- Matrix Multiplication (MM): Checking that a C-to-RTL (Register Transfer Level) translation preserves original specifications.
- Common Branch Factorization (CBF): Ensuring that compiler optimizations (moving code outside of "if-then-else" blocks) do not alter behavior.
- Robust Path Planning (RP): Finding a robot path that reaches a goal regardless of adversary movements.
- Plan Synthesis (PS): Solving the classic "wolf, goat, and cabbage" river-crossing puzzle.
Key Insights and Results
Efficiency through Local Reasoning
A major insight of this work is that simulation is a "local" property (state-to-state), making it computationally more efficient than "global" properties like language containment. Despite this locality, it remains powerful enough to verify critical security policies. Furthermore, the $\text{SIM}_{\text{AE}}$ algorithm can prove properties for large models by exploring only a small subset of states, avoiding the exponential blow-up typically associated with synchronizing multiple looping traces.
Performance and Completeness
The prototype implementation successfully handled all eight categories of HyperLTL formulas defined by the authors. Solving times were highly efficient, with most case studies finishing in under 10 seconds. The most complex case, Matrix Multiplication, was resolved in approximately 67 seconds. Crucially, this is the first BMC-based technique for HyperLTL that can actually prove properties (rather than just finding bugs) by using unrolling bounds. The tool also successfully identified "UNSAT" results for incorrect protocol implementations, providing clear paths for debugging.
Conclusion and Future Work
While this framework represents a significant step forward, some limitations remain. The current approach assumes traces move in lock-step. Handling asynchrony in concurrent systems is a significantly harder problem and remains a goal for future research. Additionally, the authors aim to expand the use of prophecy variables beyond safety automata and explore combining simulation approaches with abstraction techniques to verify infinite-state systems.
Summary updated