Skip to content
Simple verification of Rust programs via functional purification
Branch: master
Clone or download
Latest commit bd4655d Mar 6, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
presentation
ref
src
thys
.gitignore
.gitmodules
Cargo.lock
Cargo.toml
LICENSE
README.md
dodo.py Speed up ref generation Nov 16, 2016
logo.pdf
logo.png
logo.svg Add OPLSS '16 presentation Jun 29, 2016
requirements.txt
rust-nightly-version

README.md

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).

You can’t perform that action at this time.