The growing popularity of smart contracts on blockchain platforms in recent years has made the development of reliable verification techniques that ensure code is both logically correct and secure an urgent priority. One of the most effective methods adopted by existing tools is formal verification. This thesis addresses the problem of smart contract verification, particularly focusing on those developed for the Ethereum platform. It concentrates on using Constrained Horn Clauses (CHCs) as an intermediate formalism for representing and analysing program properties. Various verification tools were analysed and compared during the course of the work, particularly those based on CHCs, to identify practical limitations, methodological gaps, and opportunities for improvement. Based on this analysis, new tools and optimisations were designed and developed. On the one hand, we implemented CHCViz, a visualisation system that assists auditors and developers in inspecting and understanding CHCs generated by existing tools, such as SolCMC. On the other hand, a verifier for Yul code was built from scratch to extend the applicability of formal verification via CHCs to the recently released intermediate code from the Ethereum foundation.

Formal verification of smart contracts using Constrained Horn Clauses

MATRICARDI, GIULIA
2026-06-23

Abstract

The growing popularity of smart contracts on blockchain platforms in recent years has made the development of reliable verification techniques that ensure code is both logically correct and secure an urgent priority. One of the most effective methods adopted by existing tools is formal verification. This thesis addresses the problem of smart contract verification, particularly focusing on those developed for the Ethereum platform. It concentrates on using Constrained Horn Clauses (CHCs) as an intermediate formalism for representing and analysing program properties. Various verification tools were analysed and compared during the course of the work, particularly those based on CHCs, to identify practical limitations, methodological gaps, and opportunities for improvement. Based on this analysis, new tools and optimisations were designed and developed. On the one hand, we implemented CHCViz, a visualisation system that assists auditors and developers in inspecting and understanding CHCs generated by existing tools, such as SolCMC. On the other hand, a verifier for Yul code was built from scratch to extend the applicability of formal verification via CHCs to the recently released intermediate code from the Ethereum foundation.
23-giu-2026
Blockchain and Distributed Ledger Technology
Smart contracts; formal verification; Constrained Horn Clauses (CHC); blockchain; Ethereum; Ethereum Virtual Machine (EVM); Solidity; Yul.
FIORAVANTI, Fabio
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11581/502962
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact