Proposition 3(1), p. 22 — additivity: buying αx and then (1 − α)x from a constant product pool costs the same as buying x at once
ProvedCPAMMFlaws.Properties.proposition_3_1automated-market-makingconstant-productp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1
Let a constant product pool hold units of token and units of token , let and . Buying units first, and then units from the pool left by the first trade, , costs exactly as much as buying units in one trade:
where .
So splitting an order in time does not change its total cost on a constant product pool.
Formalization Note , are the deposits of §II.C, not printed in the proposition. The pool after the first trade is written in the printed form .
Preamble
import Mathlib import Definitions.Def_CPAMMFlaws_Properties_Setting
Formal statement
namespace CPAMMFlaws.Properties
theorem proposition_3_1 (X Y x α : ℝ) (hX : 0 < X) (hY : 0 < Y)
(hx : 0 < x) (hxX : x < X) (hα : 0 < α) (hα1 : α < 1) :
pcmm (α * x) X Y + pcmm ((1 - α) * x) (X - α * x) (Y + pcmm (α * x) X Y) =
pcmm x X Y := by sorry
end CPAMMFlaws.Properties
Source
Park, The Conceptual Flaws of Constant Product Automated Market Making, working paper dated June 8, 2021, p. 22, Proposition 3(1)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.