BOOK-CHAPTER

Formally Verified EVM Block-Optimizations

Elvira AlbertSamir GenaimDaniel KirchnerEnrique Martin-Martin

Year: 2023 Lecture notes in computer science Pages: 176-189   Publisher: Springer Science+Business Media

Abstract

Abstract The efficiency and the security of smart contracts are their two fundamental properties, but might come at odds: the use of optimizers to enhance efficiency may introduce bugs and compromise security. Our focus is on (Ethereum Virtual Machine) block-optimizations , which enhance the efficiency of jump-free blocks of opcodes by eliminating, reordering and even changing the original opcodes. We reconcile efficiency and security by providing the verification technology to formally prove the correctness of block-optimizations on smart contracts using the Coq proof assistant. This amounts to the challenging problem of proving semantic equivalence of two blocks of instructions, which is realized by means of three novel Coq components: a symbolic execution engine which can execute an block and produce a symbolic state; a number of simplification lemmas which transform a symbolic state into an equivalent one; and a checker of symbolic states to compare the symbolic states produced for the two blocks under comparison. Artifact: https://doi.org/10.5281/zenodo.7863483

Keywords:
Computer science Symbolic execution Block (permutation group theory) Correctness Programming language Theoretical computer science Parallel computing Algorithm

Metrics

5
Cited By
3.25
FWCI (Field Weighted Citation Impact)
16
Refs
0.91
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Security and Verification in Computing
Physical Sciences →  Computer Science →  Artificial Intelligence
Logic, programming, and type systems
Physical Sciences →  Computer Science →  Artificial Intelligence
Distributed systems and fault tolerance
Physical Sciences →  Computer Science →  Computer Networks and Communications

Related Documents

JOURNAL ARTICLE

Code optimizations using formally verified properties

Yao ShiBernard BlackhamGernot Heiser

Journal:   ACM SIGPLAN Notices Year: 2013 Vol: 48 (10)Pages: 427-442
JOURNAL ARTICLE

Formally Verifying Optimizations with Block Simulations

Léo GourdinBenjamin BonneauSylvain BoulméDavid MonniauxAlexandre Bérard

Journal:   Proceedings of the ACM on Programming Languages Year: 2023 Vol: 7 (OOPSLA2)Pages: 59-88
JOURNAL ARTICLE

Formally Verified Loop-Invariant Code Motion and Assorted Optimizations

David MonniauxCyril Six

Journal:   ACM Transactions on Embedded Computing Systems Year: 2022 Vol: 22 (1)Pages: 1-27
© 2026 ScienceGate Book Chapters — All rights reserved.