Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1: a solution of (1)–(3) certifies the ratio α/(1+ε)\alpha/(1+\varepsilon)α/(1+ε)

Proved
UnknownBudgetAdwords.lemma_1

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

adwordscompetitive-ratioonline-matchingp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1perturbed-greedy

Let τ\tauτ be an allocation and write OPTi\mathrm{OPT}_iOPTi​ for its reward on resource iii, OPTi\mathrm{OPT}_iOPTi​ also standing for the set of arrivals it matches to iii, and OPT=∑iOPTi\mathrm{OPT}=\sum_i\mathrm{OPT}_iOPT=∑i​OPTi​. Let ALG,α,ε\mathrm{ALG},\alpha,\varepsilonALG,α,ε be reals with 1+ε>01+\varepsilon>01+ε>0, and suppose that the numbers λt,θi\lambda_t,\theta_iλt​,θi​ satisfy

∑tλt+∑iθi≤(1+ε) ALG,θi+∑t∈OPTiλt≥α OPTi  ∀i,λt≥0, θi≥0.\sum_{t}\lambda_t+\sum_i\theta_i\le(1+\varepsilon)\,\mathrm{ALG},\qquad \theta_i+\sum_{t\in\mathrm{OPT}_i}\lambda_t\ge\alpha\,\mathrm{OPT}_i\ \ \forall i,\qquad \lambda_t\ge0,\ \theta_i\ge0.t∑​λt​+i∑​θi​≤(1+ε)ALG,θi​+t∈OPTi​∑​λt​≥αOPTi​  ∀i,λt​≥0, θi​≥0.

Then

ALG≥α1+ε OPT.\mathrm{ALG}\ge\frac{\alpha}{1+\varepsilon}\,\mathrm{OPT}.ALG≥1+εα​OPT.

This is the LP-free framework in which the paper proves Theorem 2: any feasible solution of the system is a certificate of competitiveness.

Differences from the source:

  • encoding: "c competitive" against the optimal offline allocation → the inequality c · revenue I τ ≤ expected reward for every allocation τ; reason: there are finitely many allocations, so a bound for every τ is exactly a bound for the optimal one, and no division by OPT is needed; revenue is the capped reward of p.7, with r_i = 1 w.l.o.g. (p.7)
  • generalization: OPT_i, the optimal offline allocation → τ any allocation; reason: the proof uses only feasibility of OPT, so the statement specializes to τ optimal
  • encoding: (1 + ε) with ε unspecified → the hypothesis 0 < 1 + ε; reason: the ratio α/(1 + ε) needs a positive denominator
Preamble
import Definitions.Def_MehtaOnlineAdAllocation_MSVV_Spend
open MehtaOnlineAdAllocation.MSVV
noncomputable section
Formal statement
namespace UnknownBudgetAdwords

/-- Lemma 1 (Udwani, arXiv:2110.00504v5, Lemma 1, p.12): a solution `λ, θ` of the system (1)–(3),
with `OPT_i` the reward of the allocation `τ` on `i`, gives
`ALG ≥ α / (1 + ε) · OPT`.

**Formalization Note** Competitive means the inequality against every allocation `τ`, the optimal
one included. `0 < 1 + ε` keeps the ratio meaningful. -/
theorem lemma_1 {N M : ℕ} (I : Instance N M) (τ : Allocation N M) (lamv : Fin M → ℝ) (thetav : Fin N → ℝ) (ALG α ε : ℝ) (hε : 0 < 1 + ε) (h1 : ∑ t, lamv t + ∑ i, thetav i ≤ (1 + ε) * ALG) (h2 : ∀ i, α * spend I τ i M ≤ thetav i + ∑ t ∈ Finset.univ.filter (fun t => τ t = some i), lamv t) (h3 : (∀ t, 0 ≤ lamv t) ∧ ∀ i, 0 ≤ thetav i) : α / (1 + ε) * revenue I τ ≤ ALG := by sorry

end UnknownBudgetAdwords
Source
Udwani, Adwords with Unknown Budgets and Beyond, arXiv:2110.00504v5, Lemma 1, p.12; (1)–(3), p.12
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