NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Predicate Abstraction with Under-Approximation Refinement

Corina S. Pasareanu, Radek Pelánek, Willem Visser

TL;DR

This paper introduces a novel model checking technique that refines under-approximations of system behavior, rather than over-approximations, to effectively detect errors in complex concurrent programs. By executing concrete transitions and abstractly matching states, it explores more feasible behaviors than traditional methods, guaranteeing error detection while still being efficient.

What Problem Does This Paper Address?

Model checking is a powerful technique for verifying software, but it struggles with the state-space explosion problem, especially in concurrent systems. Traditional abstraction-refinement methods often use over-approximations, which can lead to spurious errors (false positives) and require complex refinement steps. This paper tackles the challenge of finding real errors efficiently in complex systems by proposing an approach based on under-approximations. The core idea is to explore only feasible behaviors of the system, ensuring that any detected error is genuine, and then refine this exploration to cover more of the system's behavior. This is particularly useful for safety properties where finding a trace that violates the property is the goal.

Methods

The paper presents a model checking algorithm called @SEARCH that combines concrete state-space exploration with abstract matching and refinement. Here's a breakdown of the key techniques:

  • Under-Approximation: Instead of over-approximating the system's behavior, the algorithm explores an under-approximation. This means it only considers behaviors that are guaranteed to be feasible.
  • Concrete Execution with Abstract Matching: The algorithm executes the system's concrete transitions. For each concrete state, it computes an abstract representation using a set of abstraction predicates. This abstract state is then used for matching against previously visited abstract states. If an abstract state has been seen before, the search can backtrack, effectively pruning the search space.
  • Refinement via Exactness Checking: The core of the refinement process lies in checking the "exactness" of the abstraction for each explored transition. This is done using a theorem prover to verify if the abstraction introduces any loss of precision. If a transition is found to be inexact, new predicates are generated to refine the abstraction, leading to a more precise exploration in the next iteration.
  • Iterative Refinement: The entire process is iterative. The @SEARCH procedure is repeatedly called with an increasingly refined set of predicates until either an error is found, the property is proven to hold (abstraction is exact for all explored transitions), or it's determined that no error exists.
  • Weakest Precondition Calculations: The exactness check relies on weakest precondition calculations to determine if the abstraction is precise enough.

Datasets

Not discussed in the paper. The paper focuses on a general framework and uses examples to illustrate its approach, rather than relying on specific datasets.

Key Insights and Ideas

  • Under-Approximation for Error Detection: The most significant insight is that refining under-approximations is a powerful strategy for error detection. By only exploring feasible paths, any counter-example found is guaranteed to be real, avoiding the problem of spurious errors common in over-approximation methods.
  • Abstract Matching as a Pruning Mechanism: Using abstract states for matching, rather than concrete states, allows for efficient pruning of the search space, especially in systems with infinite state spaces.
  • Refinement Guided by Exactness: The novel refinement strategy, guided by checking the exactness of abstraction for concrete transitions, is a key contribution. This is more direct than refining based on abstract counter-examples.
  • Guaranteed Convergence for Finite Bisimulation Quotients: The paper provides a theoretical guarantee that if the system has a finite bisimulation quotient, the algorithm will eventually explore a finite structure bisimilar to the original system. This is crucial for handling infinite state systems.
  • Incomparability with Must Abstractions: The paper demonstrates that its under-approximation approach can be more precise than existing "must" abstractions, offering a better chance of finding bugs.

Key Results

The paper presents theoretical results and experimental evaluations:

  • Correctness: The algorithm is proven to be correct: if it returns a counter-example, it's a real error; if it returns "unreachable," the error is indeed unreachable, and the computed structure is bisimilar to the original system.
  • Termination: While the algorithm is not guaranteed to terminate for all finite-state systems (due to potential for non-terminating refinement), it is guaranteed to terminate if the system has a finite bisimulation quotient.
  • Experimental Validation: The approach was implemented and tested on several concurrent programs, including mutual exclusion protocols (ticket, bakery), a component from an embedded spacecraft application (RAX), and a device driver.
  • For the "ticket2-err" example, the error was found in 2 iterations, exploring 15 concrete and 9 abstract states in the first iteration, and 31 concrete and 17 abstract states in the second.
  • The RAX example, which has an unbounded state space, did not terminate without additional predicates but could be made to terminate by adding predicates like e1 > 0, e2 > 0.
  • The tool successfully proved a mutual exclusion property for the ticket protocol with three processes in 5 iterations, generating up to 195 concrete and 657 abstract states.

Limitations and Future Work

  • Non-Termination for Finite State Systems: The authors acknowledge that the iterative refinement algorithm is not guaranteed to terminate even for finite-state systems. This is illustrated with an example where the algorithm keeps adding predicates indefinitely. They propose a heuristic to address this by adding predicates from the guards and properties, or dynamically generated ones.
  • Potential for Unnecessary Refinement: The "light-weight" approach, which skips theorem prover calls for exactness checks and adds new predicates regardless, can lead to unnecessary refinement.
  • Future Work:
    • Investigating property-driven refinement and checking liveness properties.
  • Integrating the approach with over-approximation based abstraction refinement.
  • Extending the algorithm to handle complex programming language features like pointers, arrays, and procedures.
  • Exploring heuristics for generating new predicates, such as those from static analysis or dynamic analysis tools.
  • Investigating the possibility of relaxing exactness criteria to potentially improve efficiency while still ensuring correctness.
  • Comparing the approach with other bisimulation quotient algorithms.

Summary updated

BibTeX
@inproceedings{pasareanu2007predicate,
  author = {Corina S. Pasareanu and Radek Pelánek and Willem Visser},
  title = {{Predicate Abstraction with Under-Approximation Refinement}},
  booktitle = {Log. Methods Comput. Sci},
  year = {2007},
  url = {https://openreview.net/forum?id=uHJP2I7flbU},
}
Figure