Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B-1, p. App-4 — integration by parts of h against a distribution G on [0,1], split at r*

Disproved
RobustSPA.IID.lemma_B_1

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

distribution-functionintegration-by-partsmechanism-designp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let r∈[0,1]r \in [0,1]r∈[0,1], let hhh be continuous on [0,1][0,1][0,1] and differentiable on (0,1)(0,1)(0,1) except perhaps at v=rv = rv=r, with derivative h′h'h′ integrable on [0,1][0,1][0,1], and let GGG be a probability distribution supported on [0,1][0,1][0,1], with CDF G(t)=G((−∞,t])G(t) = G((-\infty,t])G(t)=G((−∞,t]). Then

∫[0,1]h(v) dG(v)=h(0)G(r)+∫0rh′(v)(G(r)−G(v))dv+h(r)(G(1)−G(r))+∫r1h′(v)(G(1)−G(v))dv.\int_{[0,1]} h(v)\,dG(v) = h(0)G(r) + \int_0^{r} h'(v)\big(G(r) - G(v)\big)dv + h(r)\big(G(1) - G(r)\big) + \int_{r}^1 h'(v)\big(G(1) - G(v)\big)dv.∫[0,1]​h(v)dG(v)=h(0)G(r)+∫0r​h′(v)(G(r)−G(v))dv+h(r)(G(1)−G(r))+∫r1​h′(v)(G(1)−G(v))dv.

This identity converts an expectation under GGG into integrals against the CDF of GGG; it computes the first term E[v(1)−v(1)Φ(v(1))]\mathbb E[v^{(1)} - v^{(1)}\Phi(v^{(1)})]E[v(1)−v(1)Φ(v(1))] of the regret of SPA(Φ)\mathrm{SPA}(\Phi)SPA(Φ) in the proof of Proposition 1.

Formalization Note. The page assumes "differentiable everywhere except perhaps at v=r∗v = r^*v=r∗". The paper applies the lemma to h(v)=v−vΦ(v)h(v) = v - v\Phi(v)h(v)=v−vΦ(v), which has a kink at v=1v = 1v=1 as well, so differentiability is required only on the open interval (0,1)(0,1)(0,1) minus rrr; integrability of h′h'h′ is added because the proof starts from h(v)=h(0)+∫0vh′h(v) = h(0) + \int_0^v h'h(v)=h(0)+∫0v​h′, which needs it.

Preamble
import Mathlib
import Definitions.Def_RobustSPA_IID_Setting
Formal statement
namespace RobustSPA.IID

open MeasureTheory

/-- Lemma B-1 (p. App-4). Let `h` be continuous on `[0,1]`, differentiable on `(0,1)` except
perhaps at `r ∈ [0,1]`, with integrable derivative `h'`, and let `G` be a distribution on `[0,1]`.
Then `∫_{[0,1]} h dG = h(0)G(r) + ∫_0^r h'(v)(G(r) − G(v)) dv + h(r)(G(1) − G(r))
+ ∫_r^1 h'(v)(G(1) − G(v)) dv`. -/
theorem lemma_B_1 (r : ℝ) (hr : r ∈ Set.Icc (0 : ℝ) 1) (h h' : ℝ → ℝ)
    (hcont : ContinuousOn h (Set.Icc 0 1))
    (hderiv : ∀ v ∈ Set.Ioo (0 : ℝ) 1, v ≠ r → HasDerivAt h (h' v) v)
    (hint : IntervalIntegrable h' MeasureTheory.volume 0 1)
    (G : ProbabilityMeasure ℝ) (hG : (G : Measure ℝ) (Set.Icc 0 1)ᶜ = 0) :
    ∫ v in Set.Icc (0 : ℝ) 1, h v ∂(G : Measure ℝ) =
      h 0 * cdfOf G r + ∫ v in (0 : ℝ)..r, h' v * (cdfOf G r - cdfOf G v) +
        h r * (cdfOf G 1 - cdfOf G r) + ∫ v in r..1, h' v * (cdfOf G 1 - cdfOf G v) := by sorry

end RobustSPA.IID
Source
Anunrojwong, Balseiro & Besbes, On the Robustness of Second-Price Auctions in Prior-Independent Mechanism Design, arXiv:2204.10478v5, p. App-4 (PDF p. 34), Lemma B-1
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 14, 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