Formalizing Automated Market Makers in the Lean 4 Theorem Prover

Bartoletti M.
2024-01-01

Abstract

Automated Market Makers (AMMs) are an integral component of the decentralized finance (DeFi) ecosystem, as they allow users to exchange crypto-assets without the need for trusted authorities or external price oracles. Although these protocols are based on relatively simple mechanisms, e.g. to algorithmically determine the exchange rate between crypto-assets, they give rise to complex economic behaviours. This complexity is witnessed by the proliferation of models that study their structural and economic properties. Currently, most of theoretical results obtained on these models are supported by pen-and-paper proofs. This work proposes a formalization of constant-product AMMs in the Lean 4 Theorem Prover. To demonstrate the utility of our model, we provide mechanized proofs of key economic properties like arbitrage, that at the best of our knowledge have only been proved by pen-and-paper before.
2024
Inglese
5th International Workshop on Formal Methods for Blockchains (FMBC 2024)
978-3-95977-317-1
Schloss Dagstuhl – Leibniz-Zentrum für Informatik
Bruno Bernardo, Diego Marmsoler
118
13
5th International Workshop on Formal Methods for Blockchains, FMBC 2024
Comitato scientifico
April 7, 2024
Luxembourg City, Luxembourg
internazionale
scientifica
Blockchain; Ethereum; Smart contracts; Verification
4 Contributo in Atti di Convegno (Proceeding)::4.1 Contributo in Atti di convegno
Pusceddu, D.; Bartoletti, M.
273
2
4.1 Contributo in Atti di convegno
open
info:eu-repo/semantics/conferencePaper
File in questo prodotto:
File Dimensione Formato  
main.pdf

accesso aperto

Descrizione: articolo
Tipologia: versione editoriale
Dimensione 612.88 kB
Formato Adobe PDF
612.88 kB Adobe PDF Visualizza/Apri

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

Questionario e social

Condividi su:
Impostazioni cookie