Proposition 3, pp. 22–23 — constant product pricing is additive and split-liquidity invariant, yet front-running (x < X/2) and two-venue arbitrage are strictly profitable
ProvedCPAMMFlaws.Properties.proposition_3Let a constant product pool hold units of token and units of token , with cost function and . Selling units of into a pool earns . For , and :
- Additivity:
- Profitable front-running: if moreover , buying ahead of another buy of and then selling into the pool is strictly profitable,
- Additivity with split liquidity:
- Multi-venue arbitrage: with two identical pools , after a buy of on the first one, selling into the first pool, now , and buying on the second is strictly profitable,
The proposition shows that constant product pricing has the two consistency properties one expects of a market maker (1 and 3), yet exposes every order to profitable front-running and every trade to profitable arbitrage against an identical second venue.
Formalization Note Parts 2 and 4 are printed with and as if these were the proceeds of the sale; the proofs (p. 23–24) use the amount received, which in the sign of (3) is . Read literally, the printed left-hand sides are negative, so the statement poses the proceeds reading. Part 4 prints the first pool as ; after a buy of that pool holds (p. 15), and the statement uses . Part 2 carries , the paper's restriction for front-running (p. 19). , are the deposits of §II.C.
import Mathlib import Definitions.Def_CPAMMFlaws_Properties_Setting
namespace CPAMMFlaws.Properties
theorem proposition_3 (X Y x α k : ℝ) (hX : 0 < X) (hY : 0 < Y)
(hx : 0 < x) (hxX : x < X) (hα : 0 < α) (hα1 : α < 1) (hk : 0 < k) :
pcmm (α * x) X Y + pcmm ((1 - α) * x) (X - α * x) (Y + pcmm (α * x) X Y) = pcmm x X Y ∧
(x < X / 2 → 0 < -pcmm x X Y - pcmm (-x) (X - 2 * x) (Y + pcmm (2 * x) X Y)) ∧
pcmm x X Y = k * pcmm (x / k) (X / k) (Y / k) ∧
0 < -pcmm (-(α * x)) (X - x) (Y + pcmm x X Y) - pcmm (α * x) X Y := by sorry
end CPAMMFlaws.Properties
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.