RefinedRust: A Type System for High-Assurance Verification of Rust Programs
Lennard Gäher, Michael Sammler, Ralf Jung, Robbert Krebbers, Derek Dreyer
Abstract
Rust is a modern systems programming language whose ownership-based type system statically guarantees memory safety, making it particularly well-suited to the domain of safety-critical systems. In recent years, a wellspring of automated deductive verification tools have emerged for establishing functional correctness of Rust code. However, none of the previous tools produce foundational proofs (machine-checkable in a generalpurpose proof assistant), and all of them are restricted to the safe fragment of Rust. This is a problem because the vast majority of Rust programs make use of unsafe code at critical points, such as in the implementation of widely-used APIs. We propose RefinedRust , a refinement type system—proven sound in the Coq proof assistant—with the goal of establishing foundational semi-automated functional correctness verification of both safe and unsafe Rust code. We have developed a prototype verification tool implementing RefinedRust. Our tool translates Rust code (with user annotations) into a model of Rust embedded in Coq, and then checks its adherence to the RefinedRust type system using separation logic automation in Coq. All proofs generated by RefinedRust are checked by the Coq proof assistant, so the automation and type system do not have to be trusted. We evaluate the effectiveness of RefinedRust by verifying a variant of Rust’s Vec implementation that involves intricate reasoning about unsafe pointer-manipulating code.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
20 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Miri: Practical Undefined Behavior Detection for Rust cites A Hybrid Approach to Semi-automated Rust Verification
- Miri: Practical Undefined Behavior Detection for Rust cites Verus: Verifying Rust Programs using Linear Ghost Types
- Miri: Practical Undefined Behavior Detection for Rust cites A Study of Undefined Behavior Across Foreign Function Boundaries in Rust Libraries
- Miri: Practical Undefined Behavior Detection for Rust cites Stacked borrows: an aliasing model for Rust
- A Hybrid Approach to Semi-automated Rust Verification cites RefinedC: automating the foundational verification of C code with refined ownership types
- A Hybrid Approach to Semi-automated Rust Verification cites Verus: Verifying Rust Programs using Linear Ghost Types
- A Hybrid Approach to Semi-automated Rust Verification cites RustHornBelt: a semantic foundation for functional verification of Rust programs with unsafe code
- A Hybrid Approach to Semi-automated Rust Verification cites Gillian, part i: a multi-language platform for symbolic execution
- A Hybrid Approach to Semi-automated Rust Verification cites Stacked borrows: an aliasing model for Rust
- Verus: Verifying Rust Programs using Linear Ghost Types cites RustHornBelt: a semantic foundation for functional verification of Rust programs with unsafe code
- Verus: Verifying Rust Programs using Linear Ghost Types cites Stacked borrows: an aliasing model for Rust
- A Study of Undefined Behavior Across Foreign Function Boundaries in Rust Libraries cites A Hybrid Approach to Semi-automated Rust Verification
- A Study of Undefined Behavior Across Foreign Function Boundaries in Rust Libraries cites Stacked borrows: an aliasing model for Rust
- Foundational Multi-Modal Program Verifiers cites RefinedC: automating the foundational verification of C code with refined ownership types
- AutoVerus: Automated Proof Generation for Rust Code cites Verus: Verifying Rust Programs using Linear Ghost Types
- AutoVerus: Automated Proof Generation for Rust Code cites RustHornBelt: a semantic foundation for functional verification of Rust programs with unsafe code
Cited by top-tier papers20
- AutoVerus: Automated Proof Generation for Rust CodeChenyuan Yang, Xuheng Li, Md Rakib Hossain Misu, Jianan Yao et al.OOPSLA 2025 · 11 citations
- A Hybrid Approach to Semi-automated Rust VerificationSacha-Élie Ayoun, Xavier Denis, Petar Maksimovic, Philippa GardnerPLDI 2025 · 9 citations
- Miri: Practical Undefined Behavior Detection for RustRalf Jung, Benjamin Kimock, Christian Poveda, Eduardo Sánchez Muñoz et al.POPL 2026 · 8 citations
- A Study of Undefined Behavior Across Foreign Function Boundaries in Rust LibrariesIan McCormack, Joshua Sunshine, Jonathan AldrichICSE 2025 · 5 citations
- Foundational Multi-Modal Program VerifiersVladimir Gladshtein, George Pîrlea, Qiyuan Zhao, Vitaly Kurin et al.POPL 2026 · 4 citations
Builds on10
- Verus: Verifying Rust Programs using Linear Ghost TypesAndrea Lattuada, Travis Hance, Chanhee Cho, Matthias Brun et al.OOPSLA 2023 · 86 citations
- RefinedC: automating the foundational verification of C code with refined ownership typesMichael Sammler, Rodolphe Lepigre, Robbert Krebbers, Kayvan Memarian et al.PLDI 2021 · 83 citations
- Stacked borrows: an aliasing model for RustRalf Jung, Hoang-Hai Dang, Jeehoon Kang, Derek DreyerPOPL 2020 · 67 citations
- RustHornBelt: a semantic foundation for functional verification of Rust programs with unsafe codeYusuke Matsushita, Xavier Denis, Jacques-Henri Jourdan, Derek DreyerPLDI 2022 · 44 citations
- Gillian, part i: a multi-language platform for symbolic executionJosé Fragoso Santos, Petar Maksimovic, Sacha-Élie Ayoun, Philippa GardnerPLDI 2020 · 38 citations
Related papers
- Bringing Foundational Verification to Real-World Rust CodeLennard Gäher, Vincent Lafeychine, Sascha Kehrli, Avraham Shinnar et al.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 et al.OOPSLA 2023 · 32 citations
- Adventure of a Lifetime: Extract Method Refactoring for RustSewen Thy, Andreea Costea, Kiran Gopinathan, Ilya SergeyOOPSLA 2023 · 6 citations
- Flux: Liquid Types for RustNico Lehmann, Adam T. Geller, Niki Vazou, Ranjit JhalaPLDI 2023 · 29 citations
