Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma A.2 (11), p. 21 — E[1_{N_t>0}/N_t] and E[1_{N_t>0}/N_t²] for a Poisson count

Proved
AuctionDuration.ClearingError.lemma_A_2_eq_11

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

exponential-integralinverse-momentp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1poisson-distribution

Let NtN_tNt​ be a Poisson random variable with mean mt≥0m_t\ge0mt​≥0 (for instance, the value at time ttt of an inhomogeneous Poisson process with intensity measure λ\lambdaλ, with mt=∫0tλ(ds)m_t=\int_0^t\lambda(ds)mt​=∫0t​λ(ds)). Then

E[1Nt>0Nt]=e−mt∫0mtes−1s ds,E[1Nt>0Nt2]=e−mt∫0mt1s∫0seu−1u du ds.\mathbb E\Big[\frac{\mathbf 1_{N_t>0}}{N_t}\Big]=e^{-m_t}\int_0^{m_t}\frac{e^s-1}{s}\,ds,\qquad \mathbb E\Big[\frac{\mathbf 1_{N_t>0}}{N_t^2}\Big]=e^{-m_t}\int_0^{m_t}\frac1s\int_0^s\frac{e^u-1}{u}\,du\,ds .E[Nt​1Nt​>0​​]=e−mt​∫0mt​​ses−1​ds,E[Nt2​1Nt​>0​​]=e−mt​∫0mt​​s1​∫0s​ueu−1​duds.

These inverse moments give the functions fff and ℓ\ellℓ of the reduction (8) in closed form.

Formalization Note The lemma is stated for a general inhomogeneous Poisson process, but only the law of NtN_tNt​ enters; the Lean statement takes a measurable N\mathbb NN-valued NNN with law Poisson(m)\mathrm{Poisson}(m)Poisson(m), m∈R≥0m\in\mathbb R_{\ge0}m∈R≥0​. The integrands (es−1)/s(e^s-1)/s(es−1)/s and 1s∫0s⋯\frac1s\int_0^s\cdotss1​∫0s​⋯ are 000 at s=0s=0s=0 in Lean (division by zero), a single point that does not affect the interval integrals.

Preamble
import Mathlib
import Definitions.Def_AuctionDuration_ClearingError_Model
Formal statement
namespace AuctionDuration.ClearingError
open MeasureTheory ProbabilityTheory
open scoped NNReal

/-- Lemma A.2, p. 21, (11): if N_t is Poisson with mean m_t, then
E[1_{N_t>0}/N_t] = e^{−m_t} ∫_0^{m_t} (e^s − 1)/s ds and
E[1_{N_t>0}/N_t²] = e^{−m_t} ∫_0^{m_t} (1/s) ∫_0^s (e^u − 1)/u du ds. -/
theorem lemma_A_2_eq_11 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
    (N : Ω → ℕ) (hN : Measurable N) (m : ℝ≥0) (hlaw : P.map N = poissonMeasure m) :
    ∫ ω, (if 0 < N ω then 1 / (N ω : ℝ) else 0) ∂P =
        Real.exp (-(m : ℝ)) * ∫ s in (0 : ℝ)..(m : ℝ), (Real.exp s - 1) / s ∧
    ∫ ω, (if 0 < N ω then 1 / (N ω : ℝ) ^ 2 else 0) ∂P =
        Real.exp (-(m : ℝ)) *
          ∫ s in (0 : ℝ)..(m : ℝ), (1 / s) * ∫ u in (0 : ℝ)..s, (Real.exp u - 1) / u := by sorry

end AuctionDuration.ClearingError
Source
Jusselin, Mastrolia & Rosenbaum, Optimal auction duration: a price formation viewpoint, arXiv:1906.01713v3, p. 21, Lemma A.2, (11)
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