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.
๐ฆ Functional correctness of STATICCALL in Revm
ยท 9 min read