RustCompCert: A Verified and Verifying Compiler for a Sequential Subset of Rust

๐Ÿ“… 2026-02-07
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
This work proposes the first end-to-end formally verified compiler for a sequential subset of Rust, built upon the CompCert framework, addressing the challenges of memory safety and semantic preservation in Rust compilation. By formalizing Rustโ€™s borrow-checking mechanism and integrating it into the verified compilation pipeline, the approach guarantees that the generated assembly code adheres to memory safety while precisely preserving the semantics of the source program. This study marks the first extension of CompCertโ€™s verification paradigm to Rust, establishing a complete, machine-checked proof of semantic equivalence from high-level source code to low-level target code. The resulting compiler lays a foundational infrastructure for developing high-assurance Rust applications with strong correctness guarantees.

Technology Category

Application Category

๐Ÿ“ Abstract
We present our ongoing work on developing an end-to-end verified Rust compiler based on CompCert. It provides two guarantees: one is semantics preservation from Rust to assembly, i.e., the behaviors of source code includes the behaviors of target code, with which the properties verified at the source can be preserved down to the target; the other is memory safety ensured by the verifying compilation -- the borrow checking pass, which can simplify the verification of Rust programs, e.g., by allowing the verification tools focus on the functional correctness.
Problem

Research questions and friction points this paper is trying to address.

verified compiler
Rust
semantics preservation
memory safety
borrow checking
Innovation

Methods, ideas, or system contributions that make the work stand out.

verified compiler
Rust
CompCert
memory safety
semantic preservation
๐Ÿ”Ž Similar Papers
No similar papers found.
J
Jinhua Wu
Shanghai Jiao Tong University, China
Yuting Wang
Yuting Wang
Shanghai Jiao Tong University
Proof TheoryType TheoryCompiler VerificationProgramming LanguagesVerified OS Kernels
L
Liukun Yu
Shanghai Jiao Tong University, China
L
Linglong Meng
University of Minnesota, USA