A new extraction system from Rocq to functional-style, memory-safe, thread-safe, readable, valid, performant, and modern C++.
https://bloomberg.github.io/crane/ β HEALTH ? 99 / Healthy
// readme
Crane
Menu
Rationale
This project provides extraction of Rocq (formerly known as Coq) code to C++ code, implemented as a Rocq plugin. It extracts Rocq into valid, performant, and memory-safe, modern C++ code. The generated code does not need a separate runtime system, relying instead on shared_ptr for memory management.
The project is a fork of the Rocq-to-OCaml extraction that comes built-in with Rocq.
[!WARNING] Crane is under active development. While many features are functional, parts of the extraction pipeline are still experimental, and you may encounter incomplete features or unexpected behavior. Please report issues on the GitHub tracker.
Project Layout
crane/
βββ src/ OCaml plugin sources, one directory per IR and pipeline stage
βββ theories/ Rocq theories: pluginβ¦