Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B.12 — E[(X−r)+]\mathbb E[(X-r)^+]E[(X−r)+]: continuity, monotonicity, 1-Lipschitz, layer-cake increments, unique root at level c>0c>0c>0, smallest extended root ess sup⁡X\operatorname{ess\,sup}XesssupX at 000

Proved
OneTrap.Core.lemma_B_12

by Shuze Chen · Nov 11, 2026 · Mathlib 0df444a (Lean v4.33.1)

contract-theoryp2o-gran-per-chapterp2o-plan-paperp2o-v1pandora-boxrobust-contractssequential-search

Let XXX be an integrable nonnegative random variable on a probability space and φ(r)=E[(X−r)+]\varphi(r)=\mathbb E[(X-r)^+]φ(r)=E[(X−r)+]. Then φ\varphiφ is continuous, nonincreasing and 111-Lipschitz; for r1<r2r_1<r_2r1​<r2​,

φ(r1)−φ(r2)=∫r1r2P(X>s) ds;\varphi(r_1)-\varphi(r_2)=\int_{r_1}^{r_2}\mathbb P(X>s)\,ds;φ(r1​)−φ(r2​)=∫r1​r2​​P(X>s)ds;

for c>0c>0c>0 the equation φ(r)=c\varphi(r)=cφ(r)=c has a unique finite solution; and the smallest extended-real solution of φ(r)=0\varphi(r)=0φ(r)=0 (with (X−∞)+:=0(X-\infty)^+:=0(X−∞)+:=0) is ess sup⁡X\operatorname{ess\,sup}XesssupX, possibly +∞+\infty+∞.

Differences from the source:

  • encoding: an integrable nonnegative wage X → X : Ω → ℝ on a probability space (Ω, μ) with Integrable X μ and 0 ≤ X almost surely; reason: a generic random variable
  • encoding: ϕ(r) = E[(X − r)+] and P(X > s) → the Bochner integral ∫ max (X − r) 0 ∂μ and (μ {s < X}).toReal, with the identity as an interval integral; reason: (X − r)+ ≤ X + |r| is integrable, so the Bochner integral is the expectation (no junk value)
  • encoding: its smallest extended-real solution (of ϕ(r) = 0) is ess sup X → IsLeast {r : EReal | ∫⁻ ((X : EReal) − r).toENNReal ∂μ = 0} (essSup (X : EReal) μ); reason: ϕ extended to EReal with (X − ∞)+ = 0 (EReal subtraction gives X − ⊤ = ⊥) and (X + ∞)+ = ∞
Preamble
import Mathlib

open MeasureTheory
Formal statement
namespace OneTrap.Core

/-- Lemma B.12 (p. 32). For an integrable nonnegative wage `X`, `ϕ(r) = E[(X − r)⁺]` is
continuous, nonincreasing and 1-Lipschitz; for `r₁ < r₂`,
`ϕ(r₁) − ϕ(r₂) = ∫_{r₁}^{r₂} P(X > s) ds`; for `c > 0`, `ϕ(r) = c` has a unique finite
solution; and the smallest extended-real solution of `E[(X − r)⁺] = 0` (with `(X − ∞)⁺ = 0`) is
`ess sup X`. -/
theorem lemma_B_12 {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
    (X : Ω → ℝ) (hXint : Integrable X μ) (hXnonneg : ∀ᵐ ω ∂μ, 0 ≤ X ω) :
    (Continuous (fun r : ℝ => ∫ ω, max (X ω - r) 0 ∂μ) ∧
      Antitone (fun r : ℝ => ∫ ω, max (X ω - r) 0 ∂μ) ∧
      LipschitzWith 1 (fun r : ℝ => ∫ ω, max (X ω - r) 0 ∂μ)) ∧
    (∀ r₁ r₂ : ℝ, r₁ < r₂ →
      (∫ ω, max (X ω - r₁) 0 ∂μ) - (∫ ω, max (X ω - r₂) 0 ∂μ) =
        ∫ s in r₁..r₂, (μ {ω | s < X ω}).toReal) ∧
    (∀ c : ℝ, 0 < c → ∃! r : ℝ, (∫ ω, max (X ω - r) 0 ∂μ) = c) ∧
    IsLeast {r : EReal | ∫⁻ ω, (((X ω : ℝ) : EReal) - r).toENNReal ∂μ = 0}
      (essSup (fun ω => ((X ω : ℝ) : EReal)) μ) := by sorry

end OneTrap.Core
Source
Feldman, Fu, Peng, Tang (2026), One Trap Is Enough: The Structure and Complexity of Robust Contracts for Sequential Search, held STOC 2027 submission (SHA-256 8b684ffb…cf066), Lemma B.12, p. 32 (PDF 33)
Human review
  • Endorsed by Community (Bot) · Nov 11, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Nov 11, 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