Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix A, (8) for the mid-price — E^mid(h) = P(N^{mm}_{τ^{cl}_1} > 0)^{−1} e^{νh} ∫_h^∞ νe^{−νt}(g(t) + σ²f(t)) dt

Proved
AuctionDuration.ClearingError.eq_8_mid

by tianyipeng · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

call-auctionmarket-microstructurepoisson-processprice-formation

This is the mid-price counterpart of equation (8) in Appendix A of Jusselin, Mastrolia and Rosenbaum: it reduces the conditional mean squared error of the mid-price at the first clearing to expectations at deterministic times.

Consider the first call auction of the model: efficient price Pt=P0+σfWtP_t=P_0+\sigma_f W_tPt​=P0​+σf​Wt​, market makers arriving as a Poisson process NmmN^{mm}Nmm of intensity μ\muμ (arrival times τkmm\tau^{mm}_kτkmm​), an independent Exp(ν)\mathrm{Exp}(\nu)Exp(ν) opening time τ1op\tau^{op}_1τ1op​, clearing time τ1cl=τ1op+h\tau^{cl}_1=\tau^{op}_1+hτ1cl​=τ1op​+h with h≥0h\ge 0h≥0, and i.i.d. centred estimation noises gkg_kgk​ of variance σ2\sigma^2σ2. Let Ω~={Nτ1clmm>0}\tilde\Omega=\{N^{mm}_{\tau^{cl}_1}>0\}Ω~={Nτ1cl​mm​>0} and let

Emid(h)=E[(Pτ1clmid−Pτ1cl)2 ∣ Ω~],Pτ1clmid=1Nτ1clmm∑k=1Nτ1clmm(Pτkmm+gk).E^{mid}(h)=\mathbb E\big[(P^{mid}_{\tau^{cl}_1}-P_{\tau^{cl}_1})^2\,\big|\,\tilde\Omega\big],\qquad P^{mid}_{\tau^{cl}_1}=\frac{1}{N^{mm}_{\tau^{cl}_1}}\sum_{k=1}^{N^{mm}_{\tau^{cl}_1}}\big(P_{\tau^{mm}_k}+g_k\big).Emid(h)=E[(Pτ1cl​mid​−Pτ1cl​​)2​Ω~],Pτ1cl​mid​=Nτ1cl​mm​1​k=1∑Nτ1cl​mm​​(Pτkmm​​+gk​).

With the deterministic-time functions

g(t)=E[1Ntmm>0(∑k=1NtmmPτkmm−PtNtmm)2],f(t)=E[1Ntmm>0Ntmm],g(t)=\mathbb E\Big[\mathbf 1_{N^{mm}_t>0}\Big(\sum_{k=1}^{N^{mm}_t}\frac{P_{\tau^{mm}_k}-P_t}{N^{mm}_t}\Big)^2\Big],\qquad f(t)=\mathbb E\Big[\frac{\mathbf 1_{N^{mm}_t>0}}{N^{mm}_t}\Big],g(t)=E[1Ntmm​>0​(k=1∑Ntmm​​Ntmm​Pτkmm​​−Pt​​)2],f(t)=E[Ntmm​1Ntmm​>0​​],

the squared mid-price error is integrable under P(⋅∣Ω~)\mathbb P(\cdot\mid\tilde\Omega)P(⋅∣Ω~), the function t↦νe−νt(g(t)+σ2f(t))t\mapsto \nu e^{-\nu t}(g(t)+\sigma^2 f(t))t↦νe−νt(g(t)+σ2f(t)) is integrable on (h,∞)(h,\infty)(h,∞), and

Emid(h)=P(Nτ1clmm>0)−1eνh∫h+∞νe−νt(g(t)+σ2f(t)) dt.E^{mid}(h)=\mathbb P\big(N^{mm}_{\tau^{cl}_1}>0\big)^{-1}e^{\nu h}\int_h^{+\infty}\nu e^{-\nu t}\big(g(t)+\sigma^2 f(t)\big)\,dt .Emid(h)=P(Nτ1cl​mm​>0)−1eνh∫h+∞​νe−νt(g(t)+σ2f(t))dt.

This is the computation (8) of Appendix A with the market-taker term ℓ(t)/K2\ell(t)/K^2ℓ(t)/K2 removed: the clearing price (2) is the mid-price (3) plus Iτ1cl/(KNτ1clmm)I_{\tau^{cl}_1}/(KN^{mm}_{\tau^{cl}_1})Iτ1cl​​/(KNτ1cl​mm​), and Theorem 2.1 states the resulting formula (5) for Emid(h)E^{mid}(h)Emid(h) alongside the one for E(h)E(h)E(h). Together with (9), Lemma A.1 and Lemma A.2 it yields the explicit formula for Emid(h)E^{mid}(h)Emid(h).

Formalization Note The model is the platform definition AuctionDuration_ClearingError_Model used by the mission's other statements (eq_8 is the same statement for E(h)E(h)E(h)); conditioning on Ω~\tilde\OmegaΩ~ is P[|OmegaT X h].

Preamble
import Mathlib
import Definitions.Def_AuctionDuration_ClearingError_Model
Formal statement
namespace AuctionDuration.ClearingError
open MeasureTheory ProbabilityTheory QueueingFundamentals.Foundations

/-- Appendix A, p. 20, (8) for the mid-price: E^mid(h) =
P(N^mm_{τ^cl_1} > 0)^{-1} e^{νh} ∫_h^∞ νe^{−νt} (g(t) + σ² f(t)) dt. -/
theorem eq_8_mid {Ω : Type*} [MeasurableSpace Ω] (p : Params) (hp : p.Standing)
    (P : Measure Ω) (X : Auction Ω) (hX : IsModel p P X) (h : ℝ) (hh : 0 ≤ h) :
    Integrable (fun ω => (Pmid p X h ω - Peff p X (tauCl X h ω) ω) ^ 2) (P[|OmegaT X h]) ∧
    IntegrableOn (fun t => p.nu * Real.exp (-(p.nu * t)) *
        (gFun p P X t + p.sigma ^ 2 * fFun P X t)) (Set.Ioi h) ∧
    Emid p P X h = ((P (OmegaT X h)).toReal)⁻¹ * Real.exp (p.nu * h) *
      ∫ t in Set.Ioi h, p.nu * Real.exp (-(p.nu * t)) *
        (gFun p P X t + p.sigma ^ 2 * fFun P X t) := by sorry

end AuctionDuration.ClearingError
Source
Jusselin, Mastrolia & Rosenbaum, Optimal auction duration: a price formation viewpoint, arXiv:1906.01713v3, Appendix A (proof of Theorem 2.1), p. 20, eq. (8) with the ℓ term removed, giving E^mid of Theorem 2.1, p. 10, eq. (5)

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