Skip to main content

4 posts tagged with "rocq-of-rust"

View All Tags

ยท 5 min read

We have updated our translation and functional specification of Revm, a Rust implementation of the Ethereum Virtual Machine (EVM), to Revm v102. We use our tool rocq-of-rust to translate the Rust code to the Rocq theorem prover, where we write purely functional specifications and prove them equivalent to the translated code.

This upgrade introduced a large change in the generated Rocq code and in the interfaces used by the EVM instructions. The first translation did not compile in Rocq. We repaired the link and simulation layers one instruction family at a time and updated the tests and continuous integration pipeline to the new Revm architecture.

ยท 7 min read

For the Revm revision in our February report, we completed equivalence proofs for 94% of the EVM instruction functions in scope. We used rocq-of-rust to translate the Rust instruction bodies and proved that the covered translations agree with their functional specifications in Rocq. The no-panic results assume the specifications of the dependencies they call. The work produced about 50,000 lines of Rocq. Read the full report.

ยท 9 min read

In this blog post, we show how we state the functional correctness of the implementation of the STATICCALL instruction in Revm, an implementation of the Ethereum's virtual machine EVM in Rust. This involves running rocq-of-rust to translate the Rust code to the theorem prover Rocq, and then making a proof by refinements until obtaining a specification of the code written in purely functional style, optimized for formal verification. Under the hypotheses of the equivalence lemma, including its assumptions about called operations, the translated instruction body cannot panic.