arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.06064cs.LOcs.CEcs.GT
收藏

在 Lean 4 定理证明器中形式化自动做市商

Formalizing Automated Market Makers in the Lean 4 Theorem Prover

Daniele Pusceddu, Massimo Bartoletti

AI总结:

本文在 Lean 4 定理证明器中形式化了恒定乘积自动做市商,并提供了套利等关键经济属性的机械化证明,替代了传统的纸笔证明。

摘要:

自动做市商(AMMs)是去中心化金融(DeFi)生态系统中不可或缺的组成部分,因为它们允许用户在没有可信权威或外部价格预言机的情况下交换加密资产。尽管这些协议基于相对简单的机制(例如,算法性地确定加密资产之间的汇率),但它们却引发了复杂的经济行为。这种复杂性通过研究其结构和经济属性的模型的大量涌现而得以体现。目前,这些模型上获得的大部分理论结果都依赖于纸笔证明。本工作提出了在 Lean 4 定理证明器中形式化恒定乘积自动做市商(constant-product AMMs)的方案。为了证明我们模型的实用性,我们提供了关键经济属性(如套利)的机械化证明,据我们所知,这些属性此前仅通过纸笔方式证明过。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑