Verifying Invariants of Lock-free Data Structures with Rely-Guarantee and Refinement Types

Download: PDF.

“Verifying Invariants of Lock-free Data Structures with Rely-Guarantee and Refinement Types” by Colin S. Gordon, Michael D. Ernst, Dan Grossman, and Matthew Parkinson. ACM Transactions on Programming Languages and Systems, vol. 39, no. 3, May 2017, pp. 11:1-11:54.

Abstract

Verifying invariants of fine-grained concurrent data structures is challenging because interference from other threads may occur at any time. We propose a new way of proving invariants of fine-grained concurrent data structures: applying rely-guarantee reasoning to references in the concurrent setting. Rely-guarantee applied to references can verify bounds on thread interference, without requiring a whole program to be verified.

This paper provides three new results. First, it provides a new approach to preserving invariants and restricting usage of concurrent data structures. Our approach targets a space between simple type systems and modern concurrent program logics, offering an intermediate point between unverified code and full verification. Furthermore, it avoids sealing concurrent data structure implementations, and can interact safely with unverified imperative code. Second, we demonstrate the approach's broad applicability through a series of case studies, using two implementations: an axiomatic C OQ DSL and a library for Liquid Haskell. Third, these two implementations allow us to compare and contrast verifications by interactive proof (C OQ ) and a weaker form that can be expressed using SMT-discharged dependent refinement types (Liquid Haskell).

Download: PDF.

BibTeX entry:

@article{GordonEGP2017,
   author = {Colin S. Gordon and Michael D. Ernst and Dan Grossman and
	Matthew Parkinson},
   title = {Verifying Invariants of Lock-free Data Structures with
	Rely-Guarantee and Refinement Types},
   journal = {ACM Transactions on Programming Languages and Systems},
   volume = {39},
   number = {3},
   pages = {11:1--11:54},
   month = may,
   year = {2017}
}

(This webpage was created with bibtex2web.)

Back to Michael Ernst's publications.