Skip to main content
QUICK REVIEW

[Paper Review] Regular Model Checking Upside-Down: An Invariant-Based Approach

Javier Esparza, Mikhail Raskin|arXiv (Cornell University)|Jan 1, 2022
Formal Methods in VerificationComputer Science1 citations
TL;DR

This paper introduces an invariant-based, upside-down regular model checking approach that constructs increasingly precise regular invariants from above, converging to the set of reachable configurations. It defines b-invariants as CNF-formulas with at most b clauses, proves their intersection is regular and decidable in EXPSPACE (PSPACE-complete for b=1), and demonstrates effectiveness on benchmarks where IndInv1 proves 46 out of 59 safety properties.

ABSTRACT

Regular model checking is a technique for the verification of infinite-state systems whose configurations can be represented as finite words over a suitable alphabet. It applies to systems whose set of initial configurations is regular, and whose transition relation is captured by a length-preserving transducer. To verify safety properties, regular model checking iteratively computes automata recognizing increasingly larger regular sets of reachable configurations, and checks if they contain unsafe configurations. Since this procedure often does not terminate, acceleration, abstraction, and widening techniques have been developed to compute a regular superset of the reachable configurations. In this paper we develop a complementary procedure. Instead of approaching the set of reachable configurations from below, we start with the set of all configurations and approach it from above. We use that the set of reachable configurations is equal to the intersection of all inductive invariants of the system. Since this intersection is non-regular in general, we introduce b-bounded invariants, defined as those representable by CNF-formulas with at most b clauses. We prove that, for every b ≥ 0, the intersection of all b-bounded inductive invariants is regular, and we construct an automaton recognizing it. We show that whether this automaton accepts some unsafe configuration is in EXPSPACE for every b ≥ 0, and PSPACE-complete for b = 1. Finally, we study how large must b be to prove safety properties of a number of benchmarks.

Motivation & Objective

  • To develop a new regular model checking framework that approaches reachable configurations from above, rather than from below.
  • To define a hierarchy of regular invariants—b-invariants—based on CNF formulas with bounded clause count.
  • To prove that the intersection of all inductive b-invariants is regular and decidable in EXPSPACE for any b ≥ 0.
  • To evaluate the practical effectiveness of b-invariants, especially b=1, in verifying safety properties of parameterized systems.
  • To explore the potential of combining this approach with CEGAR or learning techniques for scalable invariant synthesis.

Proposed method

  • Define b-invariants as sets of configurations satisfying a CNF formula with at most b clauses, where each literal expresses a character at a specific position.
  • Prove that the intersection of all inductive b-invariants, denoted IndInvb, is regular and construct a deterministic finite automaton (DFA) recognizing it.
  • Establish an EXPSPACE upper bound for checking whether IndInvb intersects with unsafe configurations, with PSPACE-completeness for b=1.
  • Use a finite transducer and a regular language to generate invariants as the image of the language under the transducer.
  • Leverage MONA and automated invariant synthesis tools to compute IndInvb for benchmarks, especially for b=1 and b=2.
  • Apply manual reasoning and prior invariant generation techniques to cases where automated tools fail for b>1.

Experimental results

Research questions

  • RQ1Can a regular model checking approach that constructs invariants from above achieve better convergence and decidability than traditional bottom-up methods?
  • RQ2Is the intersection of all inductive b-invariants regular, and can it be effectively computed for any b ≥ 0?
  • RQ3What is the computational complexity of checking whether IndInvb contains any unsafe configuration, and does it vary with b?
  • RQ4How effective are b-invariants, particularly b=1, in verifying safety properties of parameterized systems in practice?
  • RQ5Can the b-invariant hierarchy be used to guide CEGAR-style refinement or learning-based invariant synthesis in RMC?

Key findings

  • For every b ≥ 0, the intersection of all inductive b-invariants, IndInvb, is regular and recognizable by a DFA of double-exponential size in the input automaton and transducer.
  • Checking whether IndInvb intersects with unsafe configurations is in EXPSPACE, and is PSPACE-complete when b = 1.
  • IndInv1 successfully proves 46 out of 59 safety properties in a diverse set of benchmarks, including mutual exclusion and deadlock freedom.
  • For the dining philosophers with stateless forks, IndInv3 is necessary and sufficient to prove deadlock freedom, and IndInv3 equals the set of reachable configurations.
  • IndInv2 is sufficient to recover missing consistency assertions in the Berkeley and Dragon cache coherence protocols, which IndInv1 fails to verify.
  • The approach avoids the need for widening or acceleration by construction, offering a dual to traditional RMC that starts from the full configuration space.

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.