Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(3.3), p. 16 — expected net surplus of a market order: π_m = ((ϕ − d)/(1 + ω)) ω + (ϕ − 1)/(1 + ω)

Proved
PegProtect.Equilibrium.equation_3_3

by mikedeng1 · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

investor-surplusmarket-microstructurep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1pegged-orders

Under the standing market restrictions and for 0≤ω<10\le\omega<10≤ω<1, the expected net surplus of a market order under the steady state qqq has the closed form

πm(ω)=(φ−d)∑k=−∞−1qk+(φ−1)∑k=0∞qk=φ−d1+ω ω+φ−11+ω.\pi_m(\omega)=(\varphi-d)\sum_{k=-\infty}^{-1}q_k+(\varphi-1)\sum_{k=0}^{\infty}q_k=\frac{\varphi-d}{1+\omega}\,\omega+\frac{\varphi-1}{1+\omega}.πm​(ω)=(φ−d)k=−∞∑−1​qk​+(φ−1)k=0∑∞​qk​=1+ωφ−d​ω+1+ωφ−1​.

A market order executes against a resting contra-side peg at the midpoint and pays the fee ddd, and otherwise executes at the best bid or offer, one half-spread away from VVV. The closed form is the right-hand side of the indifference condition (3.9).

Formalization Note The algebraic identity uses only the tail sums of qqq, but the standing restrictions are retained because the source states the payoff in its baseline market model.

Preamble
import Mathlib
import Definitions.Def_PegProtect_Equilibrium_Model
Formal statement
namespace PegProtect.Equilibrium

theorem equation_3_3 (P : Params) (hP : P.Standing) (ω : ℝ) (h0 : 0 ≤ ω) (h1 : ω < 1) :
    piM P ω = (P.phi - P.d) / (1 + ω) * ω + (P.phi - 1) / (1 + ω) := by sorry

end PegProtect.Equilibrium
Source
Aldrich & Friedman, Order Protection through Delayed Messaging, SSRN 2999059 (version of March 3, 2019), p. 16, §3.3, (3.3)
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 20, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me