Verification of a Generational Garbage Collector
Shengyi Wang, Kathrin Stark, Andrew W. Appel
Abstract
We have formally verified in Rocq+VST a multi-generation collector with support for mutable references, written in C and compatible with OCaml data types. Its carefully specified API supports C programs or CertiRocq (a verified compiler from Rocq to C) is similar to that of OCaml's collector. We have demonstrated the adequacy of our API specification for the mutator (client of the garbage collector) by verifying client programs. Our program and our verification are modular so that (1) the API spec is independent of the implementation (e.g., the choice of copying vs. mark-and-sweep, generational-vs-nongenerational) and (2) the specification and verification of components of the implementation (such as the forwarding function) are independent of other components (e.g., design decisions regarding older generations, multiple threads, or "remembered sets" of mutable references).
Create a lesson
Related papers
Proving LLM-Generated GPU Kernels Correct and Safe: Floating-Point Verification in Lean and VerCors
Shared title terminology · Archibald Browne, Eugene Lee, Cristopher Salvi
Python Code Generation for Isabelle/HOL
Shared title terminology · Nikolaus Huber, Roly Perera, Dominic Orchard
DeCompCert: A Verified Decompiler for CompCert-Generated AArch64
Shared title terminology · Swarn Priya, Basavesh Ammanaghatta Shivakumar, Thomas Gilray et al.
Crustify: Repository-Level Generation of Safe Rust Bindings with LLM Agents and Coverage-Guided Testing
Shared title terminology · Marius Momeu, Marius Arvinte, Cory Cornelius et al.
te-comp: A Complete MLIR Compiler Generating Self-Contained C Inference Engines for MCUs
Shared title terminology · Van Chan Ngo
Countable Nondeterminism in Weighted Programming with an Application to Mechanized Foundations for Probabilistic Program Verification
Shared title terminology · Sebastian Körner, Oliver Emil Bøving, Christoph Matheja