Skip to main content

One post tagged with "functional correctness"

View All Tags

ยท 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.