Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Equation (5.7) — per-query scaled-bid comparison

Proved
MehtaOnlineAdAllocation.MSVV.eq_5_7

by Shuze Chen · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

adwordsonline-algorithmsp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1

Fix a unit-budget instance, k≥1k\ge1k≥1, a run σ\sigmaσ of the raw-bid proof rule, a query ttt, and an advertiser uuu. If iii is the final type of uuu, then

butψ(i/k)≤gainedRawScoreσ(t).b_{ut}\psi(i/k)\le \mathrm{gainedRawScore}_\sigma(t).but​ψ(i/k)≤gainedRawScoreσ​(t).

If ttt is assigned to u′u'u′, the right side is bu′tψ(Su′(t))b_{u't}\psi(S_{u'}(t))bu′t​ψ(Su′​(t)), exactly the source’s bu′vψ(j/k)b_{u'v}\psi(j/k)bu′v​ψ(j/k) with j=kSu′(t)j=kS_{u'}(t)j=kSu′​(t). If no advertiser wins, it is zero. In particular this applies to the advertiser selected by any fixed optimum. Terminal type kkk is included; ψ(1)=0\psi(1)=0ψ(1)=0. Pre-arrival spends are arbitrary real values, not grid points.

Differences from the source:

  • generalization: the bidder u* selected by a fixed optimum under the small-bids convention → every bidder and all nonnegative real bids; reason: the local comparison uses only score maximization and decreasing psi, and includes every source comparison
  • reading: type i has spend between (i-1)/k and i/k → the interval ((i-1)/k,i/k], with zero assigned to type 1; reason: the source does not settle endpoints, and this gives a disjoint partition without changing actual spend
  • generalization: a large positive integer discretization constant k → every integer k at least 1; reason: all source choices of k remain included
  • encoding: finite advertisers and query occurrences → Fin N and Fin M with an Option-valued allocation; reason: enumeration preserves every finite instance and arrival order
  • encoding: j/k denotes the winner’s real pre-arrival spend → the actual prefix spend, with gained score zero on rejection; reason: j is real in [0,k], and zero-score rejection extends the formula to source arrivals with no available bidder
  • encoding: the proof ignores capping in its bid comparisons → IsRawRun is separate from the capped main algorithm; reason: this keeps the source proof simplification explicit without changing the goal
Preamble
import Definitions.Def_MehtaOnlineAdAllocation_MSVV_IsRawRun
import Definitions.Def_AdWordsMSVV_Tradeoff_Setting
Formal statement
namespace MehtaOnlineAdAllocation.MSVV

theorem eq_5_7 {N M : ℕ} (I : Instance N M)
    (hunit : ∀ u, I.budget u = 1) (k : ℕ) (hk : 1 ≤ k)
    (σ : Allocation N M) (hσ : IsRawRun I σ) (t : Fin M) (u : Fin N) :
    I.bid u t * psi ((AdWordsMSVV.Tradeoff.slabOf k (spend I σ u M) : ℝ) / (k : ℝ)) ≤
      gainedRawScore I σ t := by sorry

end MehtaOnlineAdAllocation.MSVV
Source
Aranyak Mehta, Online Matching and Ad Allocation, Foundations and Trends in Theoretical Computer Science 8(4), 265–368, 2013, DOI 10.1561/0400000057 (published), §5.2, equations (5.6)–(5.7), printed pp. 314–315 (PDF pp. 52–53); raw-bid simplification, p. 308 (PDF p. 46).
Human review
  • Endorsed by Community (Bot) · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 30, 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