Verifying Reachability Properties in Markov Chains via Incremental Induction

Elizabeth Polgreen, Martin Brain, Martin Fränzle, Alessandro AbatearXiv 2019

Abstract

This paper introduces pIC3, a novel algorithm for probabilistic model checking that adapts the IC3 (Incremental Construction of Inductive Clauses for Inductive Invariants) technique to Markov chains. By interleaving symbolic state-space partitioning with incremental linear inequality solving, pIC3 efficiently verifies reachability probabilities, particularly for rare events in large-scale models. Experimental results demonstrate that pIC3 can handle state spaces exceeding $10^{10}$ states, outperforming industry-standard tools like PRISM in memory efficiency and scalability for specific classes of problems.

Introduction

Formal verification of probabilistic systems, such as autonomous robots or communication protocols, typically relies on Probabilistic Model Checking (PMC). The objective is to prove that the probability of reaching a "failure state" is below a specified threshold (e.g., $P < 0.001$). While current PMC tools like PRISM are effective, they often struggle with scalability because they require representing the entire state space in memory using Binary Decision Diagrams (BDDs) or sparse matrices.

In non-probabilistic verification, the IC3 algorithm has revolutionized the field by avoiding full state-space unrolling through the incremental construction of inductive invariants. However, applying IC3 to Markov chains is challenging because probabilistic properties depend on the aggregate probability of multiple execution paths rather than a single path. This paper presents pIC3, which bridges this gap by adapting IC3's logic to quantitative analysis.

Methodology: The pIC3 Algorithm

The pIC3 algorithm decomposes the verification problem into two interleaved processes: symbolic partitioning and incremental quantitative bounding.

Symbolic Partitioning

Using an IC3-like approach, pIC3 partitions the state space into three distinct sets:

  1. Safe States: States from which the failure condition ($\neg \phi$) can never be reached.
  2. Failure States: States that already violate the property ($\neg \phi$).
  3. Danger States: States within the property-satisfying region ($\phi$) that might reach a failure state.
Conceptual partitioning of the state space into Safe, Danger, and Failure states.

The algorithm incrementally builds "frames" ($F_k$) that represent sets of states reachable within $k$ steps or satisfying certain inductive properties. As the algorithm progresses, it identifies "Counterexamples to Induction" (CTIs) to refine these partitions.

Incremental construction of inductive frames $F_k$ to isolate the danger zone.

Incremental Quantitative Bounding and Early Termination

As Danger States are identified via SAT solver calls, pIC3 constructs a system of linear inequalities. These inequalities represent the upper ($U_p$) and lower ($L_p$) bounds of the reachability probability. Instead of calculating an exact probability, pIC3 uses an SMT solver (Z3) to check if the current bounds are sufficient to prove or refute the property against the threshold. If $U_p$ falls below the threshold, the property is verified; if $L_p$ exceeds it, the property is refuted.

Evaluation and Results

The algorithm was evaluated using models based on Knuth’s dice, scaled to create massive state spaces ranging from $3.7 \times 10^5$ to over $10^{10}$ states. pIC3 was compared against PRISM 4.3.1.

  • Memory Efficiency: On the largest models ($10^{10}$ states), PRISM failed due to out-of-memory (OOM) errors. In contrast, pIC3 successfully verified these models, often in under 10 minutes, by focusing only on relevant "Danger" regions.
  • Speed and Scalability: While PRISM is faster for smaller, regular models, pIC3’s runtime grows much more slowly as model size increases. It is particularly effective for "rare events" where only a small fraction of the state space leads to failure.
  • Threshold Sensitivity: pIC3 benefits from "early termination," becoming significantly faster when a property is clearly true or false relative to the threshold.

Discussion and Conclusion

pIC3 demonstrates that inductive techniques from non-probabilistic verification can be successfully adapted to the probabilistic domain. Its performance is tied to the complexity of the "Danger Zone" (the number of CTIs) rather than the total model size. This makes it uniquely suited for verifying rare events in massive systems.

However, the approach has limitations. Its performance is sensitive to Boolean encoding (CNF), and it can become slower than traditional methods if the "Danger Zone" is very large. Future work includes improving clause generalization and exploring parallelization to further enhance scalability.

Summary updated

BibTeX
@misc{polgreen2019verifying,
  author = {Elizabeth Polgreen and Martin Brain and Martin Fränzle and Alessandro Abate},
  title = {{Verifying Reachability Properties in Markov Chains via Incremental Induction}},
  year = {2019},
  eprint = {1909.08017},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.08017},
}
Figure