pith. sign in

arxiv: 2402.06064 · v1 · pith:NTGTC6IOnew · submitted 2024-02-08 · 💻 cs.LO · cs.CE· cs.GT

Formalizing Automated Market Makers in the Lean 4 Theorem Prover

classification 💻 cs.LO cs.CEcs.GT
keywords economicammsautomatedcrypto-assetsexchangeleanmakersmarket
0
0 comments X
read the original 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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. From Swap Axioms to Weighted Geometric Means: A Characterization of AMMs

    cs.DC 2026-04 accept novelty 8.0 full

    Trading orbits of two-asset AMMs are level sets of weighted geometric means x^w y^{1-w} derived from validity invariance, Pareto efficiency, and unit invariance.

  2. IsabeLLM: Automated Theorem Proving Applied to Formally Verifying Consensus

    cs.AI 2026-06 unverdicted novelty 4.0

    Improved IsabeLLM adds RAG, error tracing, and Isabelle compatibility updates and is tested on verifying Bitcoin Proof of Work consensus.