Verified Software Toolchain (VST)
A Coq/Rocq-based toolchain with Verifiable C, a separation-logic program logic for proving C programs correct with machine-checked proofs.
At a Glance
About Verified Software Toolchain (VST)
The Verified Software Toolchain (VST) is a research project from Princeton University, with contributors including Andrew W. Appel and Lennart Beringer. It provides machine-checked proofs that assertions made about a C program hold for the machine-language program that runs. The repository's latest listed release is v2.17.
What It Is
VST is a formal verification framework built in the Coq (Rocq) proof assistant. Its central component, Verifiable C, is a program logic for the C language. It is proved sound with respect to the operational semantics of CompCert C, and the CompCert verified optimizing C compiler is in turn proved correct with respect to the assembly semantics of PowerPC, ARM, and x86 processors. Users write specifications and proofs about C source code, and the proofs carry through to compiled code.
Workflow and Components
The project site describes several research results around the core logic:
- Verifiable C tools, with a book, software, and documentation.
- The Mechanized Software Library for separation logic and indirection theory.
- VeriStar, a certified entailment checker.
- VeriSmall, a foundationally verified shape analysis.
- VST-Floyd, a separation-logic tool for verifying C programs.
The publications describe applications such as verified SHA-256, OpenSSL HMAC, and mbedTLS HMAC-DRBG.
Setup and Learning Resources
Installation is documented in the repository, starting from the Coq Platform method. A manual covers how to use Verifiable C. The README also points to Software Foundations Volume 5: Verifiable C as a tutorial with exercises, and to the book Program Logics for Certified Compilers.
Licensing Notes
Most of the VST opam distribution and test suite are under a BSD 2-clause license. Some repository subdirectories, such as CompCert and the hub submodules, carry different licenses.
Collections
Popular collections
- Local-First Databases
Collection by @joemseifi
- Team of Agents
Collection by @joemseifi
- Pick Up Where Your Agent Left Off
Collection by @caiovalverde
- Read Your Agent's Code Before You Merge
Collection by @presscheck
Add Verified Software Toolchain (VST) to one of your collections.
Community Discussions
Be the first to start a conversation about Verified Software Toolchain (VST)
Share your experience with Verified Software Toolchain (VST), ask questions, or help others learn from your insights.
Pricing
Open Source (BSD 2-clause)
VST opam distribution (msl, sepcomp, veric, floyd, concurrency) and test suite are licensed under the BSD 2-clause license.
- BSD 2-clause licensed VST opam distribution (make target "vst")
- Includes msl, sepcomp, veric, floyd, concurrency and the VST test suite
- Repo subdirectories compcert and compcert_new are licensed differently (CompCert license, dual proprietary/open-source)
- Hub submodules have their own licenses and are not part of the opam distribution
Capabilities
Key Features
- Verifiable C program logic for C programs
- Separation-logic based verification
- Machine-checked soundness proofs against CompCert C semantics
- Integration with the CompCert verified compiler
- VST-Floyd proof automation tool
- Mechanized Software Library for separation logic
- Verified case studies such as SHA-256 and HMAC
- Manual and tutorial resources
