用 Lean 证明最优 MEV 策略
Certifying optimal MEV strategies with Lean
AI总结:
本文在 Lean 定理证明器中首次形式化 MEV,提出机器可检查的证明方法,并验证了自动做市商中夹击攻击的最优性。
摘要:
最大可提取价值(MEV)指的是一类针对去中心化应用的攻击,攻击者通过操纵区块链中交易的排序、包含或排除来获利。去中心化金融(DeFi)协议是这些攻击的主要目标,因为其逻辑严重依赖于交易的排序。迄今为止,MEV 攻击已提取了数十亿美元的价值,凸显了其对区块链安全的系统性影响。验证不存在 MEV 攻击需要确定合适的上界,即证明任何对抗性策略都无法提取比协议设计者预期更多的价值(如果有的话)。这个问题众所周知地困难:对抗性策略的空间极其庞大,使得实证研究和纸笔推理不够严谨。在本文中,我们提出了在 Lean 定理证明器中首次对 MEV 进行机械化形式化。我们引入了一种构建 MEV 上界机器可检查证明的方法,提供了超越现有技术的正确性保证。为了展示我们方法的通用性,我们对两个典型的 DeFi 协议的 MEV 进行了建模和分析。值得注意的是,我们开发了自动做市商(一种基础 DeFi 原语)中夹击攻击最优性的第一个机器可检查证明。
英文摘要:
Maximal Extractable Value (MEV) refers to a class of attacks to decentralized applications where the adversary profits by manipulating the ordering, inclusion, or exclusion of transactions in a blockchain. Decentralized Finance (DeFi) protocols are a primary target of these attacks, as their logic depends critically on transaction sequencing. To date, MEV attacks have already extracted billions of dollars in value, underscoring their systemic impact on blockchain security. Verifying the absence of MEV attacks requires determining suitable upper bounds, i.e. proving that no adversarial strategy can extract more value (if any) than expected by protocol designers. This problem is notoriously difficult: the space of adversarial strategies is extremely vast, making empirical studies and pen-and-paper reasoning insufficiently rigorous. In this paper, we present the first mechanized formalization of MEV in the Lean theorem prover. We introduce a methodology to construct machine-checked proofs of MEV bounds, providing correctness guarantees beyond what is possible with existing techniques. To demonstrate the generality of our approach, we model and analyse the MEV of two paradigmatic DeFi protocols. Notably, we develop the first machine-checked proof of the optimality of sandwich attacks in Automated Market Makers, a fundamental DeFi primitive.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。