Invariant Checking of NRA Transition Systems via Incremental Reduction to LRA with EUF

Alessandro Cimatti, Alberto Griggio, Ahmed Irfan, Marco Roveri, Roberto Sebastiani · DOI

Abstract

Model checking invariant properties of designs, represented as transition systems, with non-linear real arithmetic (NRA), is an important though very hard problem. On the one hand NRA is a hard-to-solve theory; on the other hand most of the powerful model checking techniques lack support for NRA. In this paper, we present a counterexample-guided abstraction refinement (CEGAR) approach that leverages linearization techniques from differential calculus to enable the use of mature and efficient model checking algorithms for transition systems on linear real arithmetic (LRA) with uninterpreted functions (EUF). The results of an empirical evaluation confirm the validity and potential of this approach.

Introduction

In safety-critical domains such as autonomous vehicles and aerospace engineering, verifying that a system remains within safe operating bounds—invariant checking—is critical. However, many real-world systems are governed by non-linear real arithmetic (NRA), particularly involving variable multiplication (e.g., $x * y$). NRA is computationally expensive; complete solvers often rely on Cylindrical Algebraic Decomposition (CAD), which exhibits double-exponential complexity. Furthermore, state-of-the-art model-checking algorithms like IC3 are primarily optimized for Linear Real Arithmetic (LRA). This paper introduces a method to bridge this gap by incrementally reducing NRA problems to LRA with Uninterpreted Functions (EUF).

Methodology: Incremental Linearization via CEGAR

The core of the proposed approach is a Counterexample-Guided Abstraction Refinement (CEGAR) loop. The process begins by abstracting non-linear multiplications into uninterpreted functions, $fmul(x, y)$, governed by basic axioms like commutativity.

When a linear model checker identifies a potential counterexample, the system checks if it is "spurious"—meaning it only exists because the $fmul$ function isn't restricted enough to act like real multiplication. If spurious, the abstraction is refined using tangent planes derived from differential calculus. These planes provide linear upper and lower bounds on the hyperbolic paraboloid surface formed by the multiplication function.

Visualization of the multiplication surface $x * y$ and its linear approximation via tangent planes.

By integrating these "white-box" refinements directly into the model-checking loop, the tool can efficiently tighten the abstraction until a proof is found or a real counterexample is identified.

Model Finding and Linearization Axioms

A significant challenge in abstraction-based verification is finding real counterexamples (proving unsafety). The authors observe that many practical systems are "mostly-linear," where non-linearities only affect a small portion of the state space. To exploit this, they introduce procedures for checking NRA models that can find rational-number counterexamples by adding linearization axioms to the linear solver.

Procedures for model checking NRA: a complete procedure using an NRA solver (top) and an efficient procedure using linearization axioms (bottom).

Experimental Evaluation

The tool, IC3-NRA-prove, was evaluated against 114 NRA benchmarks, including hybrid system models (HYST), aircraft simulations (TCM), and C program derivations (SAS13).

Key Results

  • Safety Verification: IC3-NRA-prove solved 60 safe instances, outperforming iSAT3 (48 instances) and solving 9 unique problems that no other tool could handle.
  • Counterexample Generation: The tool found 15 counterexamples. While Z3-based k-induction found more (25), IC3-NRA-prove remained competitive, particularly on complex industrial designs.
  • Computational Efficiency: By avoiding the double-exponential complexity of full NRA solvers and leveraging fast LRA+EUF reasoning, the approach demonstrated superior scalability on "mostly-linear" systems.

Conclusion and Future Work

The proposed CEGAR approach successfully enables the application of powerful LRA model-checking techniques to non-linear systems. While currently biased toward rational-number models and occasionally limited by refinement mapping issues, the method shows great promise. Future research will focus on extending support to transcendental functions (e.g., $sin$, $log$), non-linear integer arithmetic (NIA), and continuous-time hybrid systems.

Summary updated

BibTeX
@inproceedings{cimatti2017invariant,
  author = {Alessandro Cimatti and Alberto Griggio and Ahmed Irfan and Marco Roveri and Roberto Sebastiani},
  title = {{Invariant Checking of NRA Transition Systems via Incremental Reduction to LRA with EUF}},
  booktitle = {TACAS},
  year = {2017},
  url = {https://openreview.net/forum?id=go0bXABs5R},
}
Figure