MathFin
Map / Valuation · Static replication and model-free bounds / MathFin.Markets.DeFi.ConstantProductLPLognormal

The constant-product LP position under a lognormal price

MathFin.Markets.DeFi.ConstantProductLPLognormalMSC 91G80JEL G23JEL G12 source

A fee-free constant-product pool that is kept at the external price by arbitrage holds, after the price of X (in Y) moves by the factor r, reserves worth 2 y₀ √r in Y (lpPortfolioValue_eq, Markets/DeFi/UniswapMechanics.lean), against y₀ (r + 1) for holding the deposit (hodlPortfolioValue_eq). The LP position is a square-root claim on the price. When the price move is lognormal, r = bsTerminal 1 μ σ T Z with Z standard normal (BSCallHyp), its square root is again lognormal, √r = bsTerminal 1 (μ/2 − σ²/8) (σ/2) T Z, and the library's forward identity expected_terminal_eq_forward (Models/BlackScholes/Forward.lean) computes its expectation.

Main results

  • integral_lpValue_lognormal: E[LP_T] = 2 y₀ · exp ((μ/2 − σ²/8) T).
  • integral_hodlValue_lognormal: E[HODL_T] = y₀ · (exp (μ T) + 1).
  • integral_lpValue_eq_exp_mul_integral_hodlValue: for a driftless price (μ = 0), E[LP_T] = exp (−σ² T / 8) · E[HODL_T]: the expected LP value falls short of the expected buy-and-hold value by the factor exp (−σ² T / 8).

Scope

The pool is fee-free and assumed to sit at the external price at T (the reserves are those of impermanentLossReservesX/Y); deposit at the pool price y₀ / x₀. Values are in token Y and undiscounted. Fees, the arbitrage path between 0 and T, and gas are not modelled.

References

Tags

impermanent loss, liquidity provider, Uniswap, automated market maker, constant product, lognormal price, MSC 91G80, JEL G23, JEL G12

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-cpmm-lp-expected-value-lognormal · defi.json · full statement
Expected Constant-Product LP Value Under a Lognormal Price

For a fee-free constant-product pool kept at the external price, with deposit (x0, y0) at the pool price and a driftless lognormal price move r_T = exp(-sigma^2 T/2 + sigma sqrt(T) Z), Z standard normal (BSCallHyp with zero drift), the expected value of the LP position at T is exp(-sigma^2 T/8) times the expected value of holding the deposit. Values are in token Y and undiscounted; fees and the arbitrage path are not modelled.

Declarations 3

theoremMathFin.integral_lpValue_lognormalsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {x0 y0 K μ σ T : ℝ} {Z : Ω → ℝ}, 0 < x0 → 0 < y0 → BSCallHyp Q 1 K μ σ T Z → ∫ (ω : Ω), impermanentLossReservesX x0 y0 (bsTerminal 1 μ σ T (Z ω)) * (bsTerminal 1 μ σ T (Z ω) * y0 / x0) + impermanentLossReservesY x0 y0 (bsTerminal 1 μ σ T (Z ω)) ∂Q = 2 * y0 * Real.exp ((μ / 2 - σ ^ 2 / 8) * T)

Expected value of a constant-product LP position under a lognormal price move. Deposit (x₀, y₀) at the pool price y₀ / x₀; the price of X moves by the factor r_T = bsTerminal 1 μ σ T Z, lognormal under Q (BSCallHyp, rate slot read as the drift μ). The LP position at T — reserves impermanentLossReservesX/Y x₀ y₀ r_T valued at the new price r_T · y₀ / x₀ — has expectation 2 y₀ · exp ((μ/2 − σ²/8) T).

theoremMathFin.integral_hodlValue_lognormalsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {x0 y0 K μ σ T : ℝ} {Z : Ω → ℝ}, 0 < x0 → BSCallHyp Q 1 K μ σ T Z → ∫ (ω : Ω), x0 * (bsTerminal 1 μ σ T (Z ω) * y0 / x0) + y0 ∂Q = y0 * (Real.exp (μ * T) + 1)

Expected value of holding the deposit under the same lognormal price move: E[x₀ · (r_T y₀ / x₀) + y₀] = y₀ · (exp (μ T) + 1).

theoremMathFin.integral_lpValue_eq_exp_mul_integral_hodlValuesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {x0 y0 K σ T : ℝ} {Z : Ω → ℝ}, 0 < x0 → 0 < y0 → BSCallHyp Q 1 K 0 σ T Z → ∫ (ω : Ω), impermanentLossReservesX x0 y0 (bsTerminal 1 0 σ T (Z ω)) * (bsTerminal 1 0 σ T (Z ω) * y0 / x0) + impermanentLossReservesY x0 y0 (bsTerminal 1 0 σ T (Z ω)) ∂Q = Real.exp (-(σ ^ 2 * T / 8)) * ∫ (ω : Ω), x0 * (bsTerminal 1 0 σ T (Z ω) * y0 / x0) + y0 ∂Q

In expectation the LP position trails holding by the factor exp (−σ² T / 8). For a driftless lognormal price move (μ = 0), the expected LP value at T is exp (−σ² T / 8) times the expected buy-and-hold value.