Skip to main content
QUICK REVIEW

[Paper Review] Hyperproperty Verification as CHC Satisfiability

Shachar Itzhaky, Sharon Shoham|arXiv (Cornell University)|Apr 25, 2023
Distributed systems and fault toleranceComputer Science3 citations
TL;DR

This paper presents a novel reduction from verifying ∀∗∃∗ hyperproperties—such as k-safety and generalized non-interference—to Constrained Horn Clauses (CHCs), enabling the use of highly optimized off-the-shelf CHC solvers. The approach simultaneously infers relational invariants, trace alignments, and witness functions via a sound and complete transformation, achieving orders-of-magnitude performance improvements over state-of-the-art hyperproperty verifiers.

ABSTRACT

Hyperproperties govern the behavior of a system or systems across multiple executions, and are being recognized as an important extension of regular temporal properties. So far, such properties have resisted comprehensive treatment by modern software model-checking approaches such as IC3/PDR, due to the need to find not only an inductive invariant but also a \emph{total} alignment of different executions that facilitates simpler inductive invariants. We show how this treatment is achieved via a reduction from the verification problem of $\forall^k\exists^l$ properties to Constrained Horn Clauses. The approach is based on combining the inference of an alignment and inductive invariant in a single CHC encoding; and, for existential quantification over traces, incorporating also inference of a witness function for the existential choices, based on a game semantics with a sound-and-complete encoding to CHCs as well.

Motivation & Objective

  • To address the challenge of verifying complex hyperproperties involving universal and existential quantification over multiple program traces.
  • To overcome the limitations of first-order logic solvers in handling quantifiers, uninterpreted predicates, and theories simultaneously.
  • To enable automated verification of relational invariants, trace alignments, and witness functions in a unified framework.
  • To bridge the gap between hyperproperty verification and scalable software model checking by leveraging CHC solving technology.

Proposed method

  • Formulate the verification of ∀∗∃∗ hyperproperties as a set of first-order logic formulas over uninterpreted predicates and theories (e.g., arithmetic, arrays).
  • Introduce a logical transformation that converts these non-Horn first-order formulas into equi-satisfiable sets of CHCs, preserving satisfiability.
  • Model the three core components—relational inductive invariants, trace alignments, and witness functions—for existential quantification using uninterpreted predicates.
  • Use restrictions as underapproximations to replace existential quantifiers with universal ones, simplifying the encoding.
  • Leverage existing CHC solvers to solve the resulting CHC instances, benefiting from advances in IC3/PDR-style techniques.
  • Implement the transformation in a prototype tool and evaluate it on benchmarks from the hyperproperty verification domain.

Experimental results

Research questions

  • RQ1Can the verification of ∀∗∃∗ hyperproperties be reduced to CHC satisfiability in a way that enables scalable solving?
  • RQ2How can relational invariants, trace alignments, and witness functions be jointly inferred through a uniform logical encoding?
  • RQ3What transformation enables the conversion of non-Horn first-order formulas into equi-satisfiable CHCs for hyperproperty verification?
  • RQ4To what extent do existing CHC solvers outperform specialized solvers for hyperproperty verification when applied to this encoding?
  • RQ5Can the use of restrictions as underapproximations improve the tractability of hyperproperty verification problems?

Key findings

  • The proposed CHC encoding enables the simultaneous inference of relational invariants, trace alignments, and witness functions for ∀∗∃∗ hyperproperties.
  • The transformation from first-order logic to CHCs is both sound and complete, ensuring no loss of expressiveness.
  • The approach outperforms state-of-the-art hyperproperty verifiers by orders of magnitude on standard benchmarks.
  • The use of off-the-shelf CHC solvers leads to significant performance gains, demonstrating the effectiveness of leveraging existing model-checking technology.
  • The method successfully handles benchmarks involving the theory of arrays and infinite-state systems, which previous game-solving approaches could not.
  • The prototype implementation shows promise for fully automated verification of complex hyperproperties, with potential for further scalability through predicate inference.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.