Proof Automation for Linearizability in Separation Logic
Ike Mulder, Robbert Krebbers
摘要
Recent advances in concurrent separation logic enabled the formal verification of increasingly sophisticated fine-grained ( i.e. , lock-free) concurrent programs. For such programs, the golden standard of correctness is linearizability , which expresses that concurrent executions always behave as some valid sequence of sequential executions. Compositional approaches to linearizability (such as contextual refinement and logical atomicity) make it possible to prove linearizability of whole programs or compound data structures ( e.g. , a ticket lock) using proofs of linearizability of their individual components ( e.g. , a counter). While powerful, these approaches are also laborious—state-of-the-art tools such as Iris, FCSL, and Voila all require a form of interactive proof. This paper develops proof automation for contextual refinement and logical atomicity in Iris. The key ingredient of our proof automation is a collection of proof rules whose application is directed by both the program and the logical state. This gives rise to effective proof search strategies that can prove linearizability of simple examples fully automatically. For more complex examples, we ensure the proof automation cooperates well with interactive proof tactics by minimizing the use of backtracking. We implement our proof automation in Coq by extending and generalizing Diaframe, a proof automation extension for Iris. While the old version (Diaframe 1.0) was limited to ordinary Hoare triples, the new version (Diaframe 2.0) is extensible in its support for program verification styles: our proof search strategies for contextual refinement and logical atomicity are implemented as modules for Diaframe 2.0. We evaluate our proof automation on a set of existing benchmarks and novel proofs, showing that it provides significant reduction of proof work for both approaches to linearizability.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic 引用了 Diaframe: automated verification of fine-grained concurrent programs in Iris
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic 引用了 The future is ours: prophecy variables in separation logic
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 Diaframe: automated verification of fine-grained concurrent programs in Iris
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 A Proof Recipe for Linearizability in Relaxed Memory Separation Logic
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 The future is ours: prophecy variables in separation logic
- RefinedC: automating the foundational verification of C code with refined ownership types 引用了 The future is ours: prophecy variables in separation logic
- Diaframe: automated verification of fine-grained concurrent programs in Iris 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
- Diaframe: automated verification of fine-grained concurrent programs in Iris 引用了 The future is ours: prophecy variables in separation logic
- Beyond Backtracking: Connections in Fine-Grained Concurrent Separation Logic 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
- Beyond Backtracking: Connections in Fine-Grained Concurrent Separation Logic 引用了 Diaframe: automated verification of fine-grained concurrent programs in Iris
- Zoo: A Framework for the Verification of Concurrent OCaml 5 Programs using Separation Logic 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
- Zoo: A Framework for the Verification of Concurrent OCaml 5 Programs using Separation Logic 引用了 Diaframe: automated verification of fine-grained concurrent programs in Iris
- Zoo: A Framework for the Verification of Concurrent OCaml 5 Programs using Separation Logic 引用了 The future is ours: prophecy variables in separation logic
- A Proof Recipe for Linearizability in Relaxed Memory Separation Logic 引用了 Diaframe: automated verification of fine-grained concurrent programs in Iris
- A Proof Recipe for Linearizability in Relaxed Memory Separation Logic 引用了 The future is ours: prophecy variables in separation logic
- Simuliris: a separation logic framework for verifying concurrent program optimizations 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
引用它的顶会 Paper6
- Modular Verification of Safe Memory Reclamation in Concurrent Separation LogicJaehwang Jung, Janggun Lee, Jaemin Choi, Jaewoo Kim 等OOPSLA 2023 · 10 次引用
- A Proof Recipe for Linearizability in Relaxed Memory Separation LogicSunho Park, Jaewoo Kim, Ike Mulder, Jaehwang Jung 等PLDI 2024 · 4 次引用
- Beyond Backtracking: Connections in Fine-Grained Concurrent Separation LogicIke Mulder, Lukasz Czajka, Robbert KrebbersPLDI 2023 · 2 次引用
- Zoo: A Framework for the Verification of Concurrent OCaml 5 Programs using Separation LogicClément Allain, Gabriel SchererPOPL 2026 · 2 次引用
- Verifying Lock-Free Traversals in Relaxed Memory Separation LogicSunho Park, Jaehwang Jung, Janggun Lee, Jeehoon KangPLDI 2025 · 1 次引用
它引用的 Paper13
- RefinedC: automating the foundational verification of C code with refined ownership typesMichael Sammler, Rodolphe Lepigre, Robbert Krebbers, Kayvan Memarian 等PLDI 2021 · 83 次引用
- The future is ours: prophecy variables in separation logicRalf Jung, Rodolphe Lepigre, Gaurav Parthasarathy, Marianna Rapoport 等POPL 2020 · 62 次引用
- Simuliris: a separation logic framework for verifying concurrent program optimizationsLennard Gäher, Michael Sammler, Simon Spies, Ralf Jung 等POPL 2022 · 33 次引用
- GoJournal: a verified, concurrent, crash-safe journaling systemTej Chajed, Joseph Tassarotti, Mark Theng, Ralf Jung 等OSDI 2021 · 31 次引用
- Diaframe: automated verification of fine-grained concurrent programs in IrisIke Mulder, Robbert Krebbers, Herman GeuversPLDI 2022 · 27 次引用
相关 Paper
- Lawyer: Modular Obligations-Based Liveness Reasoning in Higher-Order Impredicative Concurrent Separation LogicEgor Namakonov, Justus Fasse, Bart Jacobs, Lars Birkedal 等OOPSLA 2026
- Concise Outlines for a Complex Logic: A Proof Outline Checker for TaDAFelix A. Wolf, Malte Schwerhoff, Peter MüllerFM 2021 · 10 次引用
- Raven: An SMT-Based Concurrency VerifierEkanshdeep Gupta, Nisarg Patel, Thomas WiesCAV 2025 · 1 次引用
- Verifying concurrent search structure templatesSiddharth Krishna, Nisarg Patel, Dennis E. Shasha, Thomas WiesPLDI 2020 · 19 次引用
- Program Logics à la CarteMax Vistrup, Michael Sammler, Ralf JungPOPL 2025 · 4 次引用
