Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3, p. 21 — Definition 3's comonotone rounding: E[L̃⁽ʲ⁾] = L⁽ʲ⁾ and |(L̃⁽ʲ⁾ − L̃⁽ʲ′⁾) − (L⁽ʲ⁾ − L⁽ʲ′⁾)| ≤ 1/k

Proved
MultiPriceOnline.Balance.proposition_3

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

comonotoneonline-matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-rounding

Let k≥1k\ge1k≥1 be an integer and let 0<r(1)<⋯<r(m)0<r^{(1)}<\dots<r^{(m)}0<r(1)<⋯<r(m) be a price set with m≥1m\ge1m≥1. Let α\alphaα be its booking limits (7), with borders L(j)=α(1)+⋯+α(j)L^{(j)}=\alpha^{(1)}+\dots+\alpha^{(j)}L(j)=α(1)+⋯+α(j). Draw WWW uniformly from [0,1][0,1][0,1] and round every L(j)kL^{(j)}kL(j)k with the same seed (Definition 3): up if W<L(j)k−⌊L(j)k⌋W<L^{(j)}k-\lfloor L^{(j)}k\rfloorW<L(j)k−⌊L(j)k⌋, down otherwise. Write L~(j)\tilde L^{(j)}L~(j) for the result divided by kkk. Then

E[L~(j)]=L(j),j=0,…,m,(21)\mathbb E\big[\tilde L^{(j)}\big]=L^{(j)},\qquad j=0,\dots,m,\tag{21}E[L~(j)]=L(j),j=0,…,m,(21)

and for every seed W∈[0,1]W\in[0,1]W∈[0,1]

∣(L~(j)−L~(j′))−(L(j)−L(j′))∣≤1k,1≤j′<j≤m.(22)\Big|\big(\tilde L^{(j)}-\tilde L^{(j')}\big)-\big(L^{(j)}-L^{(j')}\big)\Big|\le\frac1k,\qquad 1\le j'<j\le m.\tag{22}​(L~(j)−L~(j′))−(L(j)−L(j′))​≤k1​,1≤j′<j≤m.(22)

Each border may move by up to 1/k1/k1/k, but because all borders are rounded with one seed, the length of any union of consecutive segments moves by at most 1/k1/k1/k. This is the property the proof of Theorem 5 relies on.

Formalization Note The expectation in (21) is the integral over W∈[0,1]W\in[0,1]W∈[0,1] of L~(j)\tilde L^{(j)}L~(j) as a function of the seed, not an expectation under the induced distribution on configurations. (22) is stated for every seed in [0,1][0,1][0,1], which is what the paper's proof shows.

Preamble
import Mathlib
import Definitions.Def_MultiPriceOnline_Balance_PriceSet
import Definitions.Def_MultiPriceOnline_Balance_Procedure
Formal statement
namespace MultiPriceOnline.Balance

/-- Proposition 3 (Ma–Simchi-Levi, arXiv:1905.04770v1, p. 21). For an item with inventory `k ≥ 1`
and booking limits `α` of a price set with `m ≥ 1` prices, the random borders `L̃⁽ʲ⁾` of
Definition 3 (seed `W` uniform on `[0, 1]`) satisfy
(21) `𝔼[L̃⁽ʲ⁾] = L⁽ʲ⁾` for `j = 0, …, m`, and
(22) `|(L̃⁽ʲ⁾ − L̃⁽ʲ'⁾) − (L⁽ʲ⁾ − L⁽ʲ'⁾)| ≤ 1/k` for `1 ≤ j' < j ≤ m`, for every seed `W ∈ [0, 1]`.
In unit indices `L̃⁽ʲ⁾ = cv (def3Config k m α W) j / k`. -/
theorem proposition_3 (k m : ℕ) (hk : 1 ≤ k) (hm : 1 ≤ m) (r α : ℕ → ℝ)
    (hr : IsPriceSet m r) (hα : IsBookingLimits m r α) :
    (∀ j, j ≤ m →
      ∫ W in (0 : ℝ)..1, (cv (def3Config k m α W) j : ℝ) / k = Lsum α j) ∧
    (∀ W ∈ Set.Icc (0 : ℝ) 1, ∀ j j' : ℕ, 1 ≤ j' → j' < j → j ≤ m →
      |((cv (def3Config k m α W) j : ℝ) / k - (cv (def3Config k m α W) j' : ℝ) / k) -
          (Lsum α j - Lsum α j')| ≤ 1 / k) := by sorry

end MultiPriceOnline.Balance
Source
Ma, Simchi-Levi, Algorithms for Online Matching, Assortment, and Pricing with Tight Weight-dependent Competitive Ratios, arXiv:1905.04770v1, p. 21, Proposition 3, (21)–(22); proof in App. B.1, pp. 40–41
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

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