diff options
author | Son HO | 2024-02-01 09:57:18 +0100 |
---|---|---|
committer | GitHub | 2024-02-01 09:57:18 +0100 |
commit | 0960ad16838a43da3746f47cf5b640bfbb783d84 (patch) | |
tree | 8797cb7d6787ad9b03ed0c5266e0486a56747308 | |
parent | 689954a5c84c29c9b86f02e5009f286d909c355c (diff) | |
parent | 4f619ca103e91d31ef18535e1d7a8e1f157206c3 (diff) |
Merge pull request #67 from zhassan-aws/lean-steps
Add instructions on using files generated by the Lean backend
Diffstat (limited to '')
-rw-r--r-- | README.md | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -72,12 +72,22 @@ If you run `make`, you will generate a documentation accessible from [`doc.html` ## Usage -The Aeneas binary is in `bin`; you can run: `./bin/aeneas.exe [OPTIONS] LLBC_FILE`, +The Aeneas binary is in `bin`; you can run: `./bin/aeneas -backend {fstar|coq|lean|hol4} [OPTIONS] LLBC_FILE`, where `LLBC_FILE` is an .llbc file generated by Charon. Aeneas provides a lot of flags and options to tweak its behaviour: you can use `--help` to display a detailed documentation. +### Additional Steps for Lean Backend + +Files generated by the Lean backend import the `Base` package from Aeneas. +To use those files in Lean, create a new Lean package using `lake new`, +overwrite the `lean-toolchain` with the one inside `./backends/lean`, +and add `Base` as a dependency in the `lakefile.lean`: +``` +require Base from "PATH_TO_AENEAS_REPO/backends/lean" +``` + ## Targeted Subset And Current Limitations We target **safe** Rust. This means we have no support for unsafe Rust, though we plan to |