https://github.com/au-cobra/coq-rust-extraction
Coq plugin for extracting Rust code
https://github.com/au-cobra/coq-rust-extraction
coq extraction rust
Last synced: 8 months ago
JSON representation
Coq plugin for extracting Rust code
- Host: GitHub
- URL: https://github.com/au-cobra/coq-rust-extraction
- Owner: AU-COBRA
- License: mit
- Created: 2022-10-07T23:24:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-28T21:15:56.000Z (over 1 year ago)
- Last Synced: 2025-01-28T21:27:50.725Z (over 1 year ago)
- Topics: coq, extraction, rust
- Language: Coq
- Homepage:
- Size: 236 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Coq Rust Extraction
[](https://github.com/AU-COBRA/coq-rust-extraction/actions/workflows/build.yml)
[](https://github.com/AU-COBRA/coq-rust-extraction/blob/master/LICENSE)
[](https://au-cobra.github.io/coq-rust-extraction/)
A framework for extracting Coq programs to Rust.
## Meta
- Author(s):
- Danil Annenkov (initial)
- Mikkel Milo (initial)
- Jakob Botsch Nielsen (initial)
- Bas Spitters (initial)
- Eske Hoy Nielsen
- License: [MIT](LICENSE)
- Compatible Coq versions: 8.20 or later
- Additional dependencies: MetaCoq
- Coq namespace: `RustExtraction`
- Related publication(s):
- [Extracting functional programs from Coq, in Coq](https://arxiv.org/abs/2108.02995) doi:[10.1017/S0956796822000077](https://doi.org/10.1017/S0956796822000077)
- ["Extending MetaCoq Erasure: Extraction to Rust and Elm"](https://dannenkov.me/papers/extraction-rust-elm-coq-workshop2021.pdf)
- ["Extracting Smart Contracts Tested and Verified in Coq"](https://arxiv.org/abs/2012.09138) doi:[10.1145/3437992.3439934](https://doi.org/10.1145/3437992.3439934)
## Building and installation instructions
The easiest way to install the latest released version is via [OPAM](https://opam.ocaml.org/doc/Install.html):
```shell
opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq-rust-extraction
```
To instead build and install manually, do:
```shell
opam repo add coq-released https://coq.inria.fr/opam/released
git clone https://github.com/AU-COBRA/coq-rust-extraction.git
cd coq-rust-extraction
opam install . --deps-only
make #or make -j
make install
```
## Documentation
For documentation see [examples](/tests/theories/) and [generated CoqDoc](https://au-cobra.github.io/coq-rust-extraction/).
Additional examples can be found in [ConCert](https://github.com/AU-COBRA/ConCert).