Reference. Regularity and Quantification: A New Approach to Verify Distributed Protocols
Proving that an unbounded distributed protocol satisfies a given safety property amounts to finding a quantified inductive invariant that implies the property for all possible instance sizes of the protocol. Existing methods for solving this problem can be described as search procedures for an invariant whose quantification prefix fits a particular template. We propose an alternative constructive approach that does not prescribe, a priori, a specific quantifier prefix. Instead, the required prefix is automatically inferred without any enumerative search by carefully analyzing the spatial and temporal regularity of the protocol. The key insight underlying this approach is that structural regularity and quantification are closely related concepts that express protocol invariance under different re-arrangements of its components and its unbounded evolution over time. We extended the finite-domain IC3/PDR algorithm to use these regularities and boost clause learning to automatically derive the required quantified inductive invariant by exploiting the connection between structural regularities and quantification. We also describe a procedure to automatically find a minimal finite size, the cutoff, that yields a quantified invariant proving safety for any size. Our approach is implemented in IC3PO, a new verifier for distributed protocols that significantly outperforms the state-of-the-art, scales orders of magnitude faster, and robustly derives compact inductive invariants fully automatically.
Cite
Cites 84 works (7 here)
With notes (7)
On Symmetry and Quantification: A New Approach to Verify Distributed Protocols goelSymmetryQuantificationNew2021
Proving that an unbounded distributed protocol satisfies a given safety property amounts to finding a quantified inductive invariant that implies the property for all possible instance sizes of the protocol. Existing methods for solving this problem can be described as search procedures for an invariant whose quantification prefix fits a particular template. We propose an alternative constructive approach that does not prescribe, a priori, a specific quantifier prefix. Instead, the required prefix is automatically inferred without any search by carefully analyzing the structural symmetries of the protocol. The key insight underlying this approach is that symmetry and quantification are closely related concepts that express protocol invariance under different re-arrangements of its components. We propose symmetric incremental induction, an extension of the finite-domain IC3/PDR algorithm, that automatically derives the required quantified inductive invariant by exploiting the connection between symmetry and quantification. While various attempts have been made to exploit symmetry in verification applications, to our knowledge, this is the first demonstration of a direct link between symmetry and quantification in the context of clause learning during incremental induction. We also describe a procedure to automatically find a minimal finite size, the cutoff, that yields a quantified invariant proving safety for any size. Our approach is implemented in IC3PO, a new verifier for distributed protocols that significantly outperforms the state-of-the-art, scales orders of magnitude faster, and robustly derives compact inductive invariants fully automatically.
AVR: Abstractly Verifying Reachability goelAVRAbstractlyVerifying2020
We present AVR, a push-button model checker for verifying state transition systems directly at the source-code level. AVR uses information embedded in the word-level syntax of the design representation to automatically perform scalable model checking by combining a novel syntax-guided abstraction-refinement technique with a word-level implementation of the IC3 algorithm. AVR provides independently-verifiable certificates that offer provable assurance and are easy to relate to the word-level system. Moreover, proof certificates can be further used in innovative ways to extract key design information and are useful in a growing number of applications.
I4: Incremental inference of inductive invariants for verification of distributed protocols maI4IncrementalInference2019
Designing and implementing distributed systems correctly is a very challenging task. Recently, formal verification has been successfully used to prove the correctness of distributed systems. At the heart of formal verification lies a computerchecked proof with an inductive invariant. Finding this inductive invariant, however, is the most difficult part of the proof. Alas, current proof techniques require inductive invariants to be found manually—and painstakingly—by the developer. In this paper, we present a new approach, Incremental Inference of Inductive Invariants (I4), to automatically generate inductive invariants for distributed protocols. The essence of our idea is simple: the inductive invariant of a finite instance of the protocol can be used to infer a general inductive invariant for the infinite distributed protocol. In I4, we create a finite instance of the protocol; use a model checking tool to automatically derive the inductive invariant for this finite instance; and generalize this invariant to an inductive invariant for the infinite protocol. Our experiments show that I4 can prove the correctness of several distributed protocols like Chord, 2PC and Transaction Chains with little to no human effort.
Towards Automatic Inference of Inductive Invariants ma-2019-towards
Ivy: Safety verification by interactive generalization padonIvySafetyVerification
Despite several decades of research, the problem of formal verification of infinite-state systems has resisted effective automation. We describe a system — Ivy — for interactively verifying safety of infinite-state systems. Ivy’s key principle is that whenever verification fails, Ivy graphically displays a concrete counterexample to induction. The user then interactively guides generalization from this counterexample. This process continues until an inductive invariant is found. Ivy searches for universally quantified invariants, and uses a restricted modeling language. This ensures that all verification conditions can be checked algorithmically. All user interactions are performed using graphical models, easing the user’s task. We describe our initial experience with verifying several distributed protocols.
IronFleet: proving practical distributed systems correct hawblitzel-2015-ironfleet
SAT-Based Model Checking without Unrolling bradleySATBasedModelChecking2011
A new form of SAT-based symbolic model checking is described. Instead of unrolling the transition relation, it incrementally generates clauses that are inductive relative to (and augment) stepwise approximate reachability information. In this way, the algorithm gradually refines the property, eventually producing either an inductive strengthening of the property or a counterexample trace. Our experimental studies show that induction is a powerful tool for generalizing the unreachability of given error states: it can refine away many states at once, and it is effective at focusing the proof search on aspects of the transition system relevant to the property. Furthermore, the incremental structure of the algorithm lends itself to a parallel implementation.
External (77)
- Towards an Automatic Proof of Lamport's Paxos (2021)
- Finding invariants of distributed systems: it's a small (enough) world after all (NSDI 21) (2021)
- DistAI: data-driven automated invariant learning for distributed protocols (OSDI 21) (2021)
- Proceedings of SAT Competition 2020: Solver and Benchmark Descriptions (2020)
- First-order quantified separators (2020)
- The Extended UTXO Model (2020)
- Native Custom Tokens in the Extended UTXO Model (2020)
- Learning the boundary of inductive invariants (2020)
- Invisible invariants are neither (2019)
- Model Checking of Verilog RTL Using IC3 with Syntax-Guided Abstraction (2019)
- Empirical Evaluation of IC3-Based Model Checking Techniques on Verilog RTL Designs (2019)
- Inferring Inductive Invariants from Phase Structures (2019)
- Verification of Threshold-Based Distributed Algorithms by Decomposition to Decidable Logics (2019)
- Complexity and information in invariant inference (2019)
- Pretend synchrony: synchronous verification of asynchronous distributed programs (2019)
- The TLA+ Toolbox (2019)
- A TLA+ specification of the Paxos Consensus algorithm (tlaplus/Examples) (2019)
- Quantifiers on Demand (2018)
- Property-Directed Inference of Universal Invariants or Proving Their Absence (2017)
- Paxos made EPR: decidable reasoning about distributed protocols (2017)
- Thread modularity at many levels: a pearl in compositional verification (2017)
- Proving Parameterized Systems Safe by Generalizing Clausal Proofs of Small Instances (2016)
- Parameterized verification through view abstraction (2016)
- The satisfiability modulo theories library (SMT-LIB) (2016)
- Verdi: a framework for implementing and formally verifying distributed systems (2015)
- How Amazon web services uses formal methods (2015)
- ParaVerifier: An Automatic Framework for Proving Parameterized Cache Coherence Protocols (2015)
- PySMT: a solver-agnostic library for fast prototyping of SMT-based algorithms (2015)
- Yices 2.2 (2014)
- In search of an understandable consensus algorithm (USENIX ATC 14) (2014)
- Cubicle: A Parallel SMT-Based Model Checker for Parameterized Systems (2012)
- CVC4 (2011)
- Byzantizing Paxos by Refinement (2011)
- Efficient implementation of property directed reachability (Eén, Mishchenko, Brayton; FMCAD) (2011)
- Verification modulo theories (VMT-LIB) (2011)
- Verifying Safety Properties with the TLA + Proof System (2010)
- Backward Reachability of Array-based Systems by SMT solving: Termination and Invariant Synthesis (2010)
- Z3: An Efficient SMT Solver (2008)
- Pre-RTL formal verification (2008)
- Symmetry and Completeness in the Analysis of Parameterized Systems (2007)
- Verifying haskell programs using constructive type theory (2005)
- IIV: An Invisible Invariant Verifier (2005)
- An Extensible SAT-solver (2004)
- Model checking and abstraction to the aid of parameterized systems (a survey) (2004)
- Chord: a scalable peer-to-peer lookup protocol for internet applications (2003)
- Specifying systems: the TLA+ language and tools for hardware and software engineers (2002)
- Isabelle/HOL: a proof assistant for higher-order logic (2002)
- Combining Symmetry Reduction and Under-Approximation for Symbolic Model Checking (2002)
- Automatic Deductive Verification with Invisible Invariants (2001)
- Parameterized Verification with Automatically Computed Inductive Assertions (2001)
- Chaff (2001)
- Paxos made simple (2001)
- A symmetry-based model checker for verification of safety and liveness properties (2000)
- A first course in abstract algebra (6th edn) (2000)
- Exploiting Symmetry When Model-Checking Software (1999)
- GRASP: a search algorithm for propositional satisfiability (1999)
- The part-time parliament (1998)
- The Coq proof assistant reference manual: version 6.1 (1997)
- Symmetry and model checking (1996)
- Better verification through symmetry (1996)
- A new approach for the verification of cache coherence protocols (1995)
- Symbolic model checking (1993)
- Symbolic model checking: 1020 States and beyond (1992)
- Reasoning about systems with many processes (1992)
- PVS: A prototype verification system (1992)
- Symbolic model checking: 10^20 states and beyond (1990)
- A structural induction theorem for processes (1989)
- Avoiding the state explosion problem in temporal logic model checking (1987)
- Limits for automatic verification of finite-state concurrent systems (1986)
- Proving the Correctness of Multiprocess Programs (1977)
- Verifying properties of parallel programs (1976)
- Toy consensus protocol (Ivy example, GitHub)
- pySMT: a library for SMT formulae manipulation and solving (GitHub aman-goel/pysmt)
- A collection of distributed protocol verification problems (ivybench, GitHub)
- Averroes 2 (AVR, GitHub)
- The Ivy language and verifier
- Cardano blockchain platform