A Hybrid Approach to Semi-automated Rust Verification
Sacha-Élie Ayoun, Xavier Denis, Petar Maksimovic, Philippa Gardner
摘要
We propose a hybrid approach to end-to-end Rust verification where the proof effort is split into powerful automated verification of safe Rust and targeted semi-automated verification of unsafe Rust. To this end, we present Gillian-Rust, a proof-of-concept semi-automated verification tool built on top of the Gillian platform that can reason about type safety and functional correctness of unsafe code. Gillian-Rust automates a rich separation logic for real-world Rust, embedding the lifetime logic of RustBelt and the parametric prophecies of RustHornBelt, and is able to verify real-world Rust standard library code with only minor annotations and with verification times orders of magnitude faster than those of comparable tools. We link Gillian-Rust with Creusot, a state-of-the-art verifier for safe Rust, by providing a systematic encoding of unsafe code specifications that Creusot can use but cannot verify, demonstrating the feasibility of our hybrid approach.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 13 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Miri: Practical Undefined Behavior Detection for Rust 引用了 Verus: Verifying Rust Programs using Linear Ghost Types
- Miri: Practical Undefined Behavior Detection for Rust 引用了 A Study of Undefined Behavior Across Foreign Function Boundaries in Rust Libraries
- Miri: Practical Undefined Behavior Detection for Rust 引用了 Stacked borrows: an aliasing model for Rust
- Miri: Practical Undefined Behavior Detection for Rust 引用了 RefinedRust: A Type System for High-Assurance Verification of Rust Programs
- RefinedC: automating the foundational verification of C code with refined ownership types 引用了 The future is ours: prophecy variables in separation logic
- Formal Foundations for Translational Separation Logic Verifiers 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
- Verus: Verifying Rust Programs using Linear Ghost Types 引用了 Stacked borrows: an aliasing model for Rust
- A Study of Undefined Behavior Across Foreign Function Boundaries in Rust Libraries 引用了 How do programmers use unsafe rust?
- A Study of Undefined Behavior Across Foreign Function Boundaries in Rust Libraries 引用了 Stacked borrows: an aliasing model for Rust
- A Study of Undefined Behavior Across Foreign Function Boundaries in Rust Libraries 引用了 RefinedRust: A Type System for High-Assurance Verification of Rust Programs
- Compositional Symbolic Execution for the Next 700 Memory Models 引用了 Formal Foundations for Translational Separation Logic Verifiers
- RefinedRust: A Type System for High-Assurance Verification of Rust Programs 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
- RefinedRust: A Type System for High-Assurance Verification of Rust Programs 引用了 Verus: Verifying Rust Programs using Linear Ghost Types
- RefinedRust: A Type System for High-Assurance Verification of Rust Programs 引用了 Stacked borrows: an aliasing model for Rust
引用它的顶会 Paper13
- RefinedRust: A Type System for High-Assurance Verification of Rust ProgramsLennard Gäher, Michael Sammler, Ralf Jung, Robbert Krebbers 等PLDI 2024 · 29 次引用
- Miri: Practical Undefined Behavior Detection for RustRalf Jung, Benjamin Kimock, Christian Poveda, Eduardo Sánchez Muñoz 等POPL 2026 · 8 次引用
- Formal Foundations for Translational Separation Logic VerifiersThibault Dardinier, Michael Sammler, Gaurav Parthasarathy, Alexander J. Summers 等POPL 2025 · 8 次引用
- A Study of Undefined Behavior Across Foreign Function Boundaries in Rust LibrariesIan McCormack, Joshua Sunshine, Jonathan AldrichICSE 2025 · 5 次引用
- Compositional Symbolic Execution for the Next 700 Memory ModelsAndreas Lööw, Seung Hoon Park, Daniele Nantes-Sobrinho, Sacha-Élie Ayoun 等OOPSLA 2025 · 4 次引用
它引用的 Paper11
- Verus: Verifying Rust Programs using Linear Ghost TypesAndrea Lattuada, Travis Hance, Chanhee Cho, Matthias Brun 等OOPSLA 2023 · 86 次引用
- RefinedC: automating the foundational verification of C code with refined ownership typesMichael Sammler, Rodolphe Lepigre, Robbert Krebbers, Kayvan Memarian 等PLDI 2021 · 83 次引用
- How do programmers use unsafe rust?Vytautas Astrauskas, Christoph Matheja, Federico Poli, Peter Müller 等OOPSLA 2020 · 78 次引用
- Stacked borrows: an aliasing model for RustRalf Jung, Hoang-Hai Dang, Jeehoon Kang, Derek DreyerPOPL 2020 · 67 次引用
- The future is ours: prophecy variables in separation logicRalf Jung, Rodolphe Lepigre, Gaurav Parthasarathy, Marianna Rapoport 等POPL 2020 · 62 次引用
相关 Paper
- RustHornBelt: a semantic foundation for functional verification of Rust programs with unsafe codeYusuke Matsushita, Xavier Denis, Jacques-Henri Jourdan, Derek DreyerPLDI 2022 · 44 次引用
- VerusBelt: A Semantic Foundation for Verus's Proof-Oriented Extensions to the Rust Type SystemTravis Hance, Laila Elbeheiry, Yusuke Matsushita, Derek DreyerPLDI 2026
- Bringing Foundational Verification to Real-World Rust CodeLennard Gäher, Vincent Lafeychine, Sascha Kehrli, Avraham Shinnar 等OOPSLA 2026
- Rust yDL: A Program Logic for RustDaniel Drodt, Reiner HähnleFM 2026
- Aliasing Limits on Translating C to Safe RustMehmet Emre, Peter Boyland, Aesha Parekh, Ryan Schroeder 等OOPSLA 2023 · 32 次引用
