TY - CHAP AU - Marmsoler, Diego AU - Brucker, Achim D. ED - Calinescu, Radu ED - Pasareanu, Corina PY - 2021 DA - 2021// TI - A Denotational Semantics of Solidity in Isabelle/HOL BT - Software Engineering and Formal Methods (SEFM) T3 - Lecture Notes in Computer Science PB - Springer-Verlag CY - Heidelberg KW - Solidity, Denotational Semantics, Isabelle/HOL, Gas Optimization AB - Smart contracts are programs, usually automating legal agreements such as financial transactions. Thus, bugs in smart contracts can lead to large financial losses. For example, an incorrectly initialized contract was the root cause of the Parity Wallet bug that made USD 280mil worth of Ether inaccessible. Ether is the cryptocurrency of the Ethereum blockchain that uses Solidity for expressing smart contracts. In this paper, we address this problem by presenting an executable denotational semantics for Solidity in the interactive theorem prover Isabelle/HOL. This formal semantics builds the foundation of an interactive program verification environment for Solidity programs and allows for inspecting Solidity programs by (symbolic) execution. We combine the latter with grammar-based fuzzing to ensure that our formal semantics complies to the Solidity implementation on the Ethereum Blockchain. Finally, we demonstrate the formal verification of Solidity programs by two examples: constant folding and memory optimization. SN - 3-540-25109-X L1 - https://www.brucker.ch/bibliography/download/2021/marmsoler.ea-solidity-semantics-2021.pdf UR - https://www.brucker.ch/bibliography/abstract/marmsoler.ea-solidity-semantics-2021 LA - USenglish ID - marmsoler.ea:solidity-semantics:2021 ER -