IC3 Modulo Theories via Implicit Predicate Abstraction

Alessandro Cimatti, Alberto Griggio, Sergio Mover, Stefano Tonetta

TL;DR

The paper introduces IC3+IA, a powerful framework that generalizes the IC3 verification algorithm to infinite-state systems (like software) by integrating it with Implicit Predicate Abstraction. By avoiding expensive "quantifier elimination" and operating on an abstract Boolean level, the approach is significantly faster and more flexible across different mathematical theories than previous state-of-the-art methods.

What Problem Does This Paper Address?

Formal verification aims to prove that a system (like a circuit or a piece of software) never enters a "bad" state. IC3 is a legendary algorithm in hardware verification because it is incredibly efficient at finding "inductive invariants"—mathematical proofs that a property holds forever.

However, IC3 was designed for finite-state systems (Boolean logic). Modern software and complex controllers are infinite-state, involving integers, real numbers, and bit-vectors. Lifting IC3 to these "Modulo Theories" (SMT) domains is hard. Previous attempts usually relied on:

  1. Quantifier Elimination (QE): A mathematically heavy process that is often prohibitively slow.
  2. Theory-Specific Hacks: Solutions that work for real numbers but fail for integers or bit-vectors.

The authors tackle the challenge of creating a version of IC3 that is both theory-agnostic (works for many types of math) and highly efficient without needing the "bottleneck" of quantifier elimination.

Methods

The authors combine two main ingredients:

  • IC3: The core engine that builds an over-approximation of reachable states using "frames" and "clauses."
  • Implicit Predicate Abstraction (IA): Instead of trying to verify the complex "concrete" system directly, the algorithm looks at an "abstract" version defined by a set of predicates (e.g., $x > 0$).

The "Implicit" Secret Sauce: In standard predicate abstraction, you have to pre-calculate how the system moves between abstract states, which is very expensive. Implicit Abstraction avoids this by encoding the abstraction directly into the SMT queries. The algorithm "tricks" the SMT solver into thinking it's working on a simple Boolean system while the solver secretly handles the complex underlying math.

The CEGAR Loop: The algorithm follows a Counter-Example Guided Abstraction Refinement (CEGAR) strategy:

  1. Search for a bug in the abstract space.
  2. If a potential bug is found, check if it's "real" in the concrete system.
  3. If it's a "spurious" bug (caused by the abstraction being too vague), use interpolation to find new predicates and refine the abstraction.
  4. Crucially, this process is incremental: they never throw away the progress (clauses) made in previous steps.

Datasets

The authors evaluated their tool on a diverse set of benchmarks:

  • LRA (Linear Rational Arithmetic): Benchmarks from previous SMT-based IC3 research.
  • Timed Automata: Real-time system models (compared against the specialized tool ATMOC).
  • BV (Bit-Vectors): Software verification benchmarks from the SV-COMP competition and the InvGen suite.
  • LIA (Linear Integer Arithmetic): Benchmarks derived from Lustre programs (synchronous software).

Key Insights and Ideas

  • Separation of Concerns: By using abstraction, IC3 only has to worry about the Boolean logic of the predicates, while the SMT solver handles the "heavy lifting" of the specific theory (integers, reals, etc.).
  • No More Quantifier Elimination: This is the biggest win. By moving the reasoning to the abstract level, they bypass the most computationally expensive part of previous SMT-based IC3 variants.
  • Fine-Grained Scalability: The "Implicit" nature of the abstraction allows the tool to handle hundreds of predicates. Traditional "explicit" abstraction techniques usually fail once you go beyond a few dozen predicates.
  • Monotonicity: Because the abstraction only gets tighter as you add predicates, every "proof" (clause) found in an earlier, coarser abstraction remains valid. This makes the tool truly incremental.

Key Results

The experimental results were overwhelmingly positive across different domains:

  • Speed & Power: On LRA benchmarks, IC3+IA solved 20 more instances than the "concrete" SMT-based IC3 and was often an order of magnitude faster.
  • Versatility: It outperformed specialized tools in areas it wasn't even specifically designed for. For example, it solved 100 timed automata instances in 772 seconds, while the dedicated tool ATMOC only solved 41 in nearly 4,000 seconds.
  • Bit-Vector Superiority: In software verification (BV), it outperformed state-of-the-art bit-level IC3 implementations (like those in the ABC toolset).
  • Integer Logic: On Lustre (LIA) benchmarks, it significantly outperformed K-induction based tools like KIND and pKIND.

Limitations and Future Work

  • Theory Expansion: While it works for LRA, LIA, and BV, the authors plan to extend it to more complex theories like arrays and non-linear arithmetic.
  • Liveness Properties: The current work focuses on "safety" (something bad never happens). The authors aim to adapt the technique for "liveness" (something good eventually happens).
  • Predicate Discovery: The performance relies heavily on finding good predicates via interpolation. The authors suggest exploring alternative ways to discover these predicates to further boost efficiency.

Summary updated

BibTeX
@inproceedings{cimatti2014ic,
  author = {Alessandro Cimatti and Alberto Griggio and Sergio Mover and Stefano Tonetta},
  title = {{IC3 Modulo Theories via Implicit Predicate Abstraction}},
  booktitle = {TACAS},
  year = {2014},
  doi = {10.1007/978-3-642-54862-8\_4},
}
Figure