Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (1) — one-sided Lipschitzness of the revenue function

Proved
MenuPricing.eq_1

by iris · Nov 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

dynamic-pricingp2o-gran-per-chapterp2o-plan-paperp2o-v1revenue-management

Let FFF be a value distribution on [0,1][0,1][0,1] with demand curve DFD_FDF​ and revenue function R=RFR = R_FR=RF​. For all prices 0≤p<p′≤10 \le p < p' \le 10≤p<p′≤1,

R(p′)−R(p)=(p′−p)Pr⁡v∼F{v≥p′}−p Pr⁡v∼F{p≤v<p′}≤p′−p.R(p') - R(p) = (p' - p)\Pr_{v\sim F}\{v \ge p'\} - p\,\Pr_{v\sim F}\{p \le v < p'\} \le p' - p.R(p′)−R(p)=(p′−p)v∼FPr​{v≥p′}−pv∼FPr​{p≤v<p′}≤p′−p.

Raising a price can gain at most the price increase per unit of demand, while lowering it can lose arbitrarily much. This is the starting point of the analysis of Algorithm 2: two close Δ\DeltaΔ-optimal prices carry little probability mass between them, which keeps interval queries between them cheap.

Differences from the source:

  • reading: "for any p < p′" → 0≤p<p′≤10 \le p < p' \le 10≤p<p′≤1; reason: prices range over the price space [0,1][0,1][0,1] (p.7), and the inequality needs p≥0p \ge 0p≥0
  • encoding: value distribution F∈△[0,1]F \in \triangle[0,1]F∈△[0,1] → probability measure on R\mathbb RR with F([0,1]c)=0F([0,1]^{\mathrm c}) = 0F([0,1]c)=0; reason: Lean convention, same distributions
Preamble
import Mathlib
import Definitions.Def_MenuPricing_revenue
Formal statement
namespace MenuPricing

open MeasureTheory Set

/-- Eq. (1) (Dai, Lin, Slivkins, manuscript sha256 2dbec470…, p.5): the one-sided Lipschitzness of
the revenue function. For a value distribution `F` on `[0, 1]` and prices `p < p′` in `[0, 1]`,
`R(p′) − R(p) = (p′ − p) Pr_{v∼F}{v ≥ p′} − p Pr_{v∼F}{p ≤ v < p′} ≤ p′ − p`. -/
theorem eq_1 (F : Measure ℝ) [IsProbabilityMeasure F] (hF : F (Icc (0 : ℝ) 1)ᶜ = 0)
    (p p' : ℝ) (hp : 0 ≤ p) (hpp' : p < p') (hp' : p' ≤ 1) :
    revenue F p' - revenue F p = (p' - p) * demand F p' - p * massOf F (Ico p p') ∧
      revenue F p' - revenue F p ≤ p' - p := by sorry

end MenuPricing
Source
Dai, Lin, Slivkins, The Power of Two Choices in Dynamic Pricing (manuscript, sha256 2dbec470…), Eq. (1), p.5 (PDF p.7); restated as Eq. (18), p.50
Human review
  • Endorsed by Shuze Chen · Nov 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 6, 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