Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3, (3.11)–(3.12), p. 95 — complementary slackness makes x and y optimal for the primal and dual programs

Proved
ChinesePostman.Polyhedron.optimal_of_complementary_slackness

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

chinese-postmancomplementary-slacknesslp-dualityp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let GGG be a finite graph (parallel edges allowed, no loops) and c∈REc\in\mathbb R^Ec∈RE. Let xxx lie in the postman polyhedron ((3.2), (3.5)) and let (yS)(y_S)(yS​) be dual feasible ((3.7), (3.8)). Suppose

xe>0 ⟹ ∑{yS:e meets S}=ce(3.11)x_e>0\ \Longrightarrow\ \sum\{y_S : e\text{ meets }S\}=c_e \tag{3.11}xe​>0 ⟹ ∑{yS​:e meets S}=ce​(3.11)

for every edge eee, and

yS>0 ⟹ ∑{xe:e meets S}=1(3.12)y_S>0\ \Longrightarrow\ \sum\{x_e : e\text{ meets }S\}=1 \tag{3.12}yS​>0 ⟹ ∑{xe​:e meets S}=1(3.12)

for every odd set SSS. Then

  1. xxx minimizes z=∑ecexez=\sum_e c_e x_ez=∑e​ce​xe​ over the postman polyhedron, and
  2. yyy maximizes v=∑SySv=\sum_S y_Sv=∑S​yS​ over all dual feasible vectors.

These are the optimality conditions that the blossom algorithm of §4 establishes.

Preamble
import Mathlib
import Definitions.Def_ChinesePostman_Polyhedron_Setting
Formal statement
namespace ChinesePostman.Polyhedron

theorem optimal_of_complementary_slackness {V E : Type} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
    (G : Graph V E) (c : E → ℝ)
    (x : E → ℝ) (hx : x ∈ postmanPolyhedron G)
    (y : Finset V → ℝ) (hy : IsDualFeasible G c y)
    (h311 : ∀ e, 0 < x e → dualLoad G y e = c e)
    (h312 : ∀ S ∈ oddSets G, 0 < y S → cutSum G x S = 1) :
    (∀ x' ∈ postmanPolyhedron G, objective c x ≤ objective c x') ∧
      (∀ y' : Finset V → ℝ, IsDualFeasible G c y' → dualValue G y' ≤ dualValue G y) := by sorry

end ChinesePostman.Polyhedron
Source
Edmonds and Johnson, Matching, Euler tours and the Chinese postman, Math. Programming 5 (1973), p. 95, §3, (3.11), (3.12)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 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