Automating Induction-Reduction for Concurrent Object Proofs
Abstract
A principal challenge in reasoning about concurrent objects is to develop an intuitive correctness argument that nonetheless applies to unboundedly many threads. Two key strategies for tackling this unbounded domain are induction (e.g. over a trace or over threads) and Lipton's reduction (re-ordering a trace based on commutativity) and recent works are increasingly incorporating both strategies. In this paper we integrate induction over traces with unbounded left/right reductions at each step, and show how to reduce this combination to standard building blocks: Hoare logic and contextual commutativity, along with a few automaton operations. The upshot is that concurrent object proofs can be organized around a few user-provided scenarios written as "induction-reduction" specifications or "IRSpecs" (which extend to unbounded thread interleaving) and, through new proof rules, they can be automatically verified. We implemented a prototype tool that automatically verifies all of the semantic and syntactic conditions and show that IRSpecs reduce reasoning about difficult concurrent objects (e.g. the Michael-Scott Queue, the Hendler et al. Elimination Stack, the Harris et al. RDCSS) to a few intuitive canonical executions.
Create a lesson
Related papers
From Sequential to Dataflow: Formally-verified Compilation for Concurrent and Distributed Architectures
Shared title terminologycs.PLSebastian Ertel, Mohamed Elsheikh, Carmine Abate
Assessing LLM Program Reasoning through Equivalence Proofs
Shared title terminologycs.PLHaozhi Wang, Anders Miltner, Jocelyn Qiaochu Chen
A Principled Approach to Concurrency, Nondeterminism, and Asynchrony in Choreographies
Shared title terminologycs.PLXueying Qin, Marco Peressotti, Fabrizio Montesi
Validating Concurrent Correctness Witnesses with Ghosts by Thread-Modular Abstract Interpretation (Extended Version)
Shared title terminologycs.PLMichael Schwarz, Zhendong Ang, Umang Mathur
When Is Program Structure Required? Certificate-Grounded Calibration of Program-Induction Difficulty
Shared title terminologycs.PLWenzhang Du
CIRT: Calculus of Inductive Refinement Types
Shared title terminologycs.PLAlessio Ferrarini, Niki Vazou, G. A. Kavvos