Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 — Path-based weak duality, both conclusions

Proved
StochasticRewardMatching.Decomposable.lemma_2

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

online-algorithmsp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-matching

For arbitrary source probabilities, suppose nonnegative path-dependent arrays lambda and theta satisfy the displayed single-edge conditional lower bound with one constant alpha>0 on every edge and every outside path. Every feasible PBP point then has sum_e p_e r_i E[x_e] at most the expected total dual value divided by alpha; moreover alpha times OPT(PBP) is at most that total. No decomposition, algorithmic dual construction, or benchmark equality is assumed.

Lemma 2. Consider non-negative variables λₜ^ω, θᵢ^ω such that the following inequality holds for every edge (i,t), partial sample path ω₋ᵢₜ, and some constant α > 0,

E_ω[λₜ^ω + θᵢ^ω 1^ω(i,t) | ω₋ᵢₜ] ≥ αpᵢₜrᵢ.

Then, for every feasible solution {xᵢₜ^ω} of PBP,

(1/α) E_ω[∑{t∈T} λₜ^ω + ∑{i∈I} θᵢ^ω] ≥ ∑_{(i,t)∈E} pᵢₜrᵢ E_ω[xᵢₜ^ω].

Therefore, E_ω[∑{t∈T} λₜ^ω + ∑{i∈I} θᵢ^ω] ≥ α OPT(PBP).

Differences from the source:

  • encoding: arbitrary finite resources and ordered arrivals with nonnegative vertex rewards → Fin n and Fin m for arbitrary natural n,m, with nonnegative real rewards and present-edge probabilities in [0,1]; reason: labeling preserves every finite instance, including empty cases, without bounding sizes or rewards
  • encoding: partial edge-outcome path omega_-it → a full outcome vector whose distinguished edge bit is overwritten; reason: all other edge outcomes stay fixed, even on null outside paths; the overwritten bit has no effect
  • encoding: the maximizing PBP and its optimum → the maximization side of FinitePrimalDual, equality constraints as two inequalities, and the supremum of feasible objective values; reason: the feasible set is nonempty and compact and the objective continuous, so the supremum equals the stated optimum; no point is removed
Preamble
import Mathlib
import Definitions.Def_StochasticRewardMatching_Decomposable_PathProgram
import Definitions.Def_StochasticRewardMatching_Decomposable_Dual

open scoped BigOperators
open MeasureTheory
noncomputable section
Formal statement
namespace StochasticRewardMatching.Decomposable

theorem lemma_2 {n m : ℕ} (D : Instance n m)
    (l : Outcome D → Fin m → ℝ) (q : Outcome D → Fin n → ℝ)
    (hl : ∀ ω t, 0 ≤ l ω t) (hq : ∀ ω i, 0 ≤ q ω i)
    (α : ℝ) (hα : 0 < α)
    (hdual : ∀ (e : Edge D) (ω : Outcome D),
      α * D.probability e.val * D.reward e.val.1 ≤
        resample D e ω (fun w => l w e.val.2 + q w e.val.1 * indicator w e)) :
    (∀ x : Outcome D → Edge D → ℝ, pbpFeasible D x →
      (∑ e : Edge D, D.probability e.val * D.reward e.val.1 * edgeAverage D (fun ω => x ω e)) ≤
        (1 / α) * dualTotal D l q) ∧
    α * pbpValue D ≤ dualTotal D l q := by sorry

end StochasticRewardMatching.Decomposable
Source
Goyal and Udwani, Online Matching with Stochastic Rewards: Optimal Competitive Ratio via Path Based Formulation, supplied PDF marked arXiv:1905.12778v6 (10 May 2022), Lemma 2, PDF/printed p. 12; metadata citation_basis: published. https://arxiv.org/abs/1905.12778v6
Human review
  • Endorsed by Community (Bot) · Oct 31, 2026

    Confirmed by the moderator at approval.

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