Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3.14 -- potentials certify a minimum-weight perfect matching

Proved
DiscreteConvex.IntegralConvexityB.prop_3_14_bipartite_matching_potentials

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

combinatoricsdiscrete-convex-analysislinear-programming

A perfect matching and dual potentials realizing complementary slackness certify minimum weight, with an explicit value formula.

(Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.109, Proposition 3.14.)

Preamble
import Mathlib
import Definitions.Def_DiscreteConvex_IntegralConvexityB_IsPerfectMatchingBij
import Definitions.Def_DiscreteConvex_IntegralConvexityB_IsMinWeightMatching
import Definitions.Def_DiscreteConvex_IntegralConvexityB_MatchingWeight
Formal statement
/-!
Murota, *Discrete Convex Analysis*, SIAM 2003, p.109, Proposition 3.14, in
`DiscreteConvex.IntegralConvexityB`.
-/

namespace DiscreteConvex.IntegralConvexityB

/-- **Proposition 3.14.** Let `G = (Vp, Vm; E)` be a bipartite graph with a perfect matching,
and `c` a cost with `c(u,v) < +∞ ↔ (u,v) ∈ E`. Then there exist a potential `p̂` and a perfect
matching `σ` such that `c(u, σ u) + p̂(u) - p̂(σ u) = 0` and `c(u,v) + p̂(u) - p̂(v) ≥ 0` for all
`u, v`; `σ` is a minimum-weight perfect matching, and its weight equals
`∑_u (p̂(σ u) - p̂(u))`. -/
theorem prop_3_14_bipartite_matching_potentials {Vp Vm : Type*} [Fintype Vp] [Fintype Vm]
    [DecidableEq Vp] [DecidableEq Vm] (E : Set (Vp × Vm)) (c : Vp × Vm → WithTop ℝ)
    (hc : ∀ u v, c (u, v) < ⊤ ↔ (u, v) ∈ E) (sigma0 : Vp ≃ Vm)
    (hsigma0 : IsPerfectMatchingBij E sigma0) :
    ∃ (pp : Vp → ℝ) (pm : Vm → ℝ) (sigma : Vp ≃ Vm),
      (∀ u, c (u, sigma u) + (pp u : WithTop ℝ) - (pm (sigma u) : WithTop ℝ) = 0) ∧
        (∀ u v, c (u, v) + (pp u : WithTop ℝ) - (pm v : WithTop ℝ) ≥ 0) ∧
        IsMinWeightMatching E c sigma ∧
        MatchingWeight c sigma = ((∑ u, (pm (sigma u) - pp u) : ℝ) : WithTop ℝ) := by sorry

end DiscreteConvex.IntegralConvexityB
Source
Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.109, Proposition 3.14
Human review
  • Endorsed by Community (Bot) · Oct 1, 2026

    Confirmed by the moderator at approval.

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