electrolysis

Gitter

About

A tool for formally verifying Rust programs by transpiling them into definitions in the Lean theorem prover.

Installation

Because electrolysis uses rustc's unstable private API, you need a nightly compiler. Because the API is highly unstable, you need a very specific nightly version, for which you should use rustup.rs. After installing rustup, you can build this project by executing

electrolysis$ rustup override add $(cat rust-nightly-version)
electrolysis$ rustup component add rust-src
electrolysis$ cargo run core

This will build the project and export all code from the core crate necessary for binary_search (see also thys/core/config.toml) into thys/core/generated.lean (this file already exists in case you just want to examine the correctness proof).



  

electrolysis

/ a>

关于

通过将其转化为精益定理证明者的定义,正式验证Rust程序的工具。

安装

因为电解使用 rustc 的不稳定的私有API,所以需要一个夜间编译器。因为API是高度不稳定的,所以您需要一个非常特别的夜间版本,您应该使用 rustup.rs 。安装 rustup 后,可以通过执行

来构建该项目
electrolysis$ rustup override add $(cat rust-nightly-version)
electrolysis$ rustup component add rust-src
electrolysis$ cargo run core

这将构建项目并从 binary_search 所需的 core 条带库中导出所有代码(另请参见 thys / core / config.toml )转换为 thys / core / generated .lean (此文件已存在,以防您只想检查正确性证明)。




相关问题推荐