[Paper Review] Foundational VeriFast: Pragmatic Certification of Verification Tool Results through Hinted Mirroring
The paper presents Foundational VeriFast, a foundational step toward certifying VeriFast results for Rust via Hinted Mirroring, generating Rocq proof scripts to certify correctness and discussing soundness of the approach.
VeriFast is a leading tool for the modular formal verification of correctness properties of single-threaded and multi-threaded C and Rust programs. It verifies a program by symbolically executing each function in isolation, exploiting user-annotated preconditions, postconditions, and loop invariants written in a form of separation logic, and using a separation logic-based symbolic representation of memory. However, the tool itself, written in roughly 30K lines of OCaml code, has not been formally verified. Therefore, bugs in the tool could cause it to falsely report the correctness of the input program. We here report on an early result extending VeriFast to emit, upon successful verification of a Rust program, a Rocq proof script that proves correctness of the program with respect to a Rocq-encoded axiomatic semantics of Rust. This significantly enhances VeriFast's applicability in safety-critical domains. We apply hinted mirroring: we record key information from VeriFast's symbolic execution run, and use it to direct a replay of the run in Rocq.
Motivation & Objective
- Motivate the need for foundational verification of VeriFast to prevent tool-bug-induced false positives in Rust programs.
- Introduce Hinted Mirroring as a pragmatic approach to certify VeriFast verification results.
- Demonstrate generation of Rocq proof scripts that certify VeriFast results against a Rocq-encoded Rust semantics.
- Discuss soundness and limitations of the proposed certification method.
- Outline future work toward broader Rust feature support and fuller foundational verification.
Proposed method
- Describe VeriFast’s symbolic execution with separation logic for Rust and memory representation as heap chunks.
- Introduce a workflow where, after successful verification, VeriFast emits a Rocq proof script consisting of bodies, preds, specs, and symex_trees.
- Define how symex_trees encode ConsumeChunk hints to direct Rocq-based symbolic execution matching VeriFast’s steps.
- Present a soundness framework proving bodies_are_correct with respect to an axiomatic AxSem of VF MIR in Rocq.
- Compare behavior to automated steps in VeriFast and explain explicit mirroring of auto-steps and matching via hints.
Experimental results
Research questions
- RQ1Can VeriFast’s verification results for Rust be certified using a Rocq-based foundational framework through Hinted Mirroring?
- RQ2What is the scope of soundness for the SymEx component relative to the AxSem and its underlying model of VeriFast heaps?
- RQ3What challenges remain to integrate more Rust features and VeriFast capabilities into Foundational VeriFast?
- RQ4How do auto-steps and SMT-based reasoning in VeriFast translate into Rocq hints and a verifiable proof script?
- RQ5What are the limitations and potential risks of relying on axiomatic semantics for foundational certification?
Key findings
- The paper demonstrates a proof-of-concept where a VeriFast-verified Rust program can emit a Rocq proof script certifying correctness under a Rocq-encoded Rust semantics.
- Foundational VeriFast uses Hinted Mirroring to guide a Rocq-based replay of VeriFast’s symbolic execution, via symex_trees and ConsumeChunk hints.
- A soundness proof connects the Rocq-based SymEx to an axiomatic semantics (AxSem) of VF MIR, validating the certification approach under stated assumptions.
- The approach highlights differences between VeriFast automation steps and Rocq’s hint-driven verification, providing an explicit translation layer.
- The work discusses limitations including the need to support more Rust features and VeriFast capabilities and to validate the AxSem itself.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.