Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.3 — approximate complementary slackness gives a (1+ϵ1)−1(1−ϵ0)(1+\epsilon_1)^{-1}(1-\epsilon_0)(1+ϵ1​)−1(1−ϵ0​)-MWM

Proved
ApproxMWM.Scaling.approx_slackness_approx_mwm

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

lp-dualitymatchingp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1primal-dual

Let G=(V,E)G=(V,E)G=(V,E) be a finite simple graph with real edge weights www, let MMM be a matching, and let Ω\OmegaΩ be a laminar set of full blossoms with respect to MMM. Let y:V→Ry:V\to\mathbb Ry:V→R and zzz (on vertex sets) be dual values satisfying Property 2.2(1,2):

  1. z(B)≥0z(B)\ge0z(B)≥0 for every odd set BBB, y(u)≥0y(u)\ge0y(u)≥0 for every vertex uuu, and y(u)>0y(u)>0y(u)>0 only if uuu is matched;
  2. every odd set BBB with z(B)>0z(B)>0z(B)>0 belongs to Ω\OmegaΩ, and every root blossom BBB of Ω\OmegaΩ has z(B)>0z(B)>0z(B)>0.

Suppose domination and tightness hold approximately: yz(e)≥(1−ϵ0)w(e)yz(e)\ge(1-\epsilon_0)w(e)yz(e)≥(1−ϵ0​)w(e) for every edge eee, and yz(e)≤(1+ϵ1)w(e)yz(e)\le(1+\epsilon_1)w(e)yz(e)≤(1+ϵ1​)w(e) for every e∈M∪⋃B∈ΩEBe\in M\cup\bigcup_{B\in\Omega}E_Be∈M∪⋃B∈Ω​EB​. If the yyy-values of free vertices are zero, then for every matching M′M'M′ of GGG

w(M) ≥ (1+ϵ1)−1(1−ϵ0) w(M′),w(M)\ \ge\ (1+\epsilon_1)^{-1}(1-\epsilon_0)\,w(M'),w(M) ≥ (1+ϵ1​)−1(1−ϵ0​)w(M′),

that is, MMM is a ((1+ϵ1)−1(1−ϵ0))\big((1+\epsilon_1)^{-1}(1-\epsilon_0)\big)((1+ϵ1​)−1(1−ϵ0​))-MWM.

This is the bridge from the relaxed dual conditions maintained by the scaling algorithm to an approximation guarantee for its output.

Formalization Note The paper does not bound ϵ0,ϵ1\epsilon_0,\epsilon_1ϵ0​,ϵ1​; the statement assumes only ϵ1>−1\epsilon_1>-1ϵ1​>−1, so that (1+ϵ1)−1(1+\epsilon_1)^{-1}(1+ϵ1​)−1 is positive. The comparison with "any maximum weight matching M∗M^*M∗" is stated for every matching M′M'M′, which needs no existence of a maximizer.

Preamble
import Mathlib
import Definitions.Def_ApproxMWM_Scaling_Matching
Formal statement
namespace ApproxMWM.Scaling

/-- Lemma 2.3 (Duan–Pettie, J. ACM 61(1) 2014, pp. 1:11–1:12). Let `M` be a matching of `G`, `Ω` a
laminar set of full blossoms with respect to `M` (edge sets `EB`), and `y`, `z` dual values
satisfying Property 2.2(1,2): nonnegativity (`z(B) ≥ 0` on odd sets, `y ≥ 0`, `y(u) > 0` only at
matched `u`) and active blossoms (`z(B) > 0` only for `B ∈ Ω`, every root blossom has
`z(B) > 0`); approximate domination `yz(e) ≥ (1 - ε₀) w(e)` on every edge; approximate tightness
`yz(e) ≤ (1 + ε₁) w(e)` on `M ∪ ⋃_{B ∈ Ω} E_B`; and zero `y` on free vertices. Then `M` is a
`(1 + ε₁)⁻¹ (1 - ε₀)`-MWM. The page does not bound `ε₀, ε₁`; the only range used is
`1 + ε₁ > 0`. -/
theorem approx_slackness_approx_mwm {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) (w : Sym2 V → ℝ) (M : Finset (Sym2 V)) (Ω : Finset (Finset V))
    (EB : Finset V → Finset (Sym2 V)) (y : V → ℝ) (z : Finset V → ℝ) (ε₀ ε₁ : ℝ)
    (hε₁ : -1 < ε₁)
    (hM : IsMatching G M) (hΩ : IsBlossomFamily G M Ω EB)
    (hz_nonneg : ∀ B : Finset V, Odd B.card → 0 ≤ z B)
    (hy_nonneg : ∀ u : V, 0 ≤ y u)
    (hy_matched : ∀ u : V, 0 < y u → IsMatched M u)
    (hz_active : ∀ B : Finset V, Odd B.card → 0 < z B → B ∈ Ω)
    (hz_root : ∀ B : Finset V, IsRoot Ω B → 0 < z B)
    (hdom : ∀ e ∈ G.edgeSet, (1 - ε₀) * w e ≤ yz y z e)
    (htight : ∀ e ∈ G.edgeSet, (e ∈ M ∨ ∃ B ∈ Ω, e ∈ EB B) → yz y z e ≤ (1 + ε₁) * w e)
    (hfree : ∀ u : V, IsFree M u → y u = 0) :
    IsApproxMWM G w ((1 + ε₁)⁻¹ * (1 - ε₀)) M := by sorry

end ApproxMWM.Scaling
Source
Duan and Pettie, Linear-Time Approximation for Maximum Weight Matching, J. ACM 61(1), Article 1 (2014), https://doi.org/10.1145/2529989, pp. 1:11–1:12, Lemma 2.3 (with Property 2.2, p. 1:11)
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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