A Formal Approach to AMM Fee Mechanisms with Lean 4
Marco Dessalvi, Massimo Bartoletti, Alberto Lluch-Lafuente

TL;DR
This paper introduces a formal, fee-adjusted model for Automated Market Makers in DeFi, analyzing its properties, economic implications, and providing a verified solution for arbitrage, all formalized in Lean 4.
Contribution
It extends foundational AMM models by incorporating trading fees, analyzes their impact on properties and strategies, and formalizes the results in Lean 4.
Findings
Key properties like output-boundedness are preserved with fees
Executing large trades yields more profit than splitting into smaller trades when fees are present
A unique, closed-form arbitrage solution is derived and verified in Lean 4
Abstract
Decentralized Finance (DeFi) has revolutionized financial markets by enabling complex asset-exchange protocols without trusted intermediaries. Automated Market Makers (AMMs) are a central component of DeFi, providing the core functionality of swapping assets of different types at algorithmically computed exchange rates. Several mainstream AMM implementations are based on the constant-product model, which ensures that swaps preserve the product of the token reserves in the AMM -- up to a \emph{trading fee} used to incentivize liquidity provision. Trading fees substantially complicate the economic properties of AMMs, and for this reason some AMM models abstract them away in order to simplify the analysis. However, trading fees have a non-trivial impact on users' trading strategies, making it crucial to develop refined AMM models that precisely account for their effects. We extend a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAuction Theory and Applications · Blockchain Technology Applications and Security · Financial Markets and Investment Strategies
