arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.06203cs.LOq-fin.MF
收藏

针对Uniswap v3集中流动性AMM的正式状态机模型:定价 timed 自动机、有限状态转换器以及可证明的舍入界限

Formal State-Machine Models for Uniswap v3 Concentrated-Liquidity AMMs: Priced Timed Automata, Finite-State Transducers, and Provable Rounding Bounds

Black Meridian Research(黑梅里迪安研究)

Julius Tranquilli, Naman Gupta

AI总结:

本文提出用定价 timed 自动机和有限状态转换器形式化Uniswap v3集中流动性AMM,证明舍入效应的可控扰动并验证其不变性。

摘要:

集中流动性自动市场 maker(CLAMM)如今已成为去中心化金融框架中的常见基本构件。其设计结合了连续交易在常数函数曲线上,以及在流动性位置变化和舍入效应累积的离散tick边界处。虽然已有大量关于CLAMM的经济和博弈论分析,但几乎没有工作在形式状态机层面分析Uniswap v3,这些状态机适用于模型检查或定理证明。本文提出了一种用于Uniswap v3风格CLAMM的形式建模方法,使用(i)定价 timed 自动机(PTA)网络和(ii)在离散tick上的有限状态转换器(FST)。流动性位置被视作具有状态的物体,只有当池子价格跨越界定其活跃范围的tick时才会转换。我们展示了如何将分段常数乘积不变量、费用增长变量和tick跨越规则编码到适用于UPPAAL等工具的PTA中,以及如何推导一个tick级FST抽象用于TLA+中的规范。我们定义了一个显式的tick级不变量用于离散化、单tick CLAMM模型,并证明其在无费用交易下在加法舍入界限内被保持。这为不变性属性中的“ε-松弛”提供了形式证明,并展示了舍入如何作为受控扰动进入。然后我们将这些模型实例化为TLA+,并使用TLC对结构忠实的实例进行穷举检查,包括一个三tick集中流动性配置和一个双向单tick模型中的有界无舍入仅套利属性。我们讨论了这些构造如何通过虚拟储备提升到Uniswap v3的tick级结构,以及由此产生的属性如何可以表述为PTA/TLA+关于跨tick行为和舍入安全性的不变量。

英文摘要:

Concentrated-liquidity automated market makers (CLAMMs), as exemplified by Uniswap v3, are now a common primitive in decentralized finance frameworks. Their design combines continuous trading on constant-function curves with discrete tick boundaries at which liquidity positions change and rounding effects accumulate. While there is a body of economic and game-theoretic analysis of CLAMMs, there is negligible work that treats Uniswap v3 at the level of formal state machines amenable to model checking or theorem proving. In this paper we propose a formal modeling approach for Uniswap v3-style CLAMMs using (i) networks of priced timed automata (PTA), and (ii) finite-state transducers (FST) over discrete ticks. Positions are treated as stateful objects that transition only when the pool price crosses the ticks that bound their active range. We show how to encode the piecewise constant-product invariant, fee-growth variables, and tick-crossing rules in a PTA suitable for tools such as UPPAAL, and how to derive a tick-level FST abstraction for specification in TLA+. We define an explicit tick-wise invariant for a discretized, single-tick CLAMM model and prove that it is preserved up to a tight additive rounding bound under fee-free swaps. This provides a formal justification for the "$ε$-slack" used in invariance properties and shows how rounding enters as a controlled perturbation. We then instantiate these models in TLA+ and use TLC to exhaustively check the resulting invariants on structurally faithful instances, including a three-tick concentrated-liquidity configuration and a bounded no-rounding-only-arbitrage property in a bidirectional single-tick model. We discuss how these constructions lift to the tick-wise structure of Uniswap v3 via virtual reserves, and how the resulting properties can be phrased as PTA/TLA+ invariants about cross-tick behaviour and rounding safety.

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

↑