Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3, pp. 92–93 — parity optimum equals odd-node matching optimum

Proved
ChinesePostman.Matching.parity_problem_eq_odd_node_matching

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

chinese-postmanmatchingmultigraphp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1parity

Let GGG be a connected finite loopless multigraph with nonnegative edge lengths cec_ece​. Write TTT for its odd-degree nodes, d(u,v)d(u,v)d(u,v) for attained shortest-path distances, z(x)=∑ecexez(x)=\sum_ec_ex_ez(x)=∑e​ce​xe​ for the cost of a nonnegative integral parity solution, and L(M)L(M)L(M) for the length of a 1-matching of TTT. There exists at least one 1-matching MMM of TTT, and

∀M  ∃x:xe∈{0,1},z(x)≤L(M),∀x  ∃M:L(M)≤z(x).\forall M\;\exists x:\quad x_e\in\{0,1\},\quad z(x)\le L(M), \qquad \forall x\;\exists M:\quad L(M)\le z(x).∀M∃x:xe​∈{0,1},z(x)≤L(M),∀x∃M:L(M)≤z(x).

Here the first quantifier ranges over 1-matchings and the second over parity solutions. Since 1-matchings of TTT exist, the first clause also produces a parity solution, so both minima are attained and equal:

min⁡{z(x):x satisfies (3.1)–(3.3)}=min⁡{L(M):M a 1-matching of Gp}.\min\{z(x): x \text{ satisfies } (3.1)\text{–}(3.3)\}=\min\{L(M): M \text{ a 1-matching of } G_p\}.min{z(x):x satisfies (3.1)–(3.3)}=min{L(M):M a 1-matching of Gp​}.

This is the reduction of the parity problem (3.1)–(3.4) to a minimum 1-matching on the complete graph GpG_pGp​ of odd nodes with shortest-path lengths; together with §2 it reduces the Chinese postman problem to matching.

Formalization Note Distances require an attaining edge-simple path and a lower bound over every walk, so ddd is never a junk infimum; connectivity makes this satisfiable. The odd-node set is computed from GGG, and a 1-matching of GpG_pGp​ is a fixed-point-free involution fff of TTT (identity off TTT) with L(M)=12∑v∈Td(v,f(v))L(M)=\frac12\sum_{v\in T}d(v,f(v))L(M)=21​∑v∈T​d(v,f(v)). The existence clause is not a hypothesis: it is a consequence (handshake lemma) stated so that the two minima are attained. The page derives the solution from an optimum matching; the first clause is stated for every matching, which the uncrossing step shows.

Preamble
import Mathlib
import Definitions.Def_ChinesePostman_Matching_Setting
Formal statement
namespace ChinesePostman.Matching


/-- §3, pp. 92–93: parity solutions and perfect matchings of odd nodes
have the same attained minimum cost. -/
theorem parity_problem_eq_odd_node_matching
    {V E : Type*} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
    (G : EdmondsMatching65.Polyhedron.Graph V E) (hG : Connected G) (c : E → ℝ) (hc : ∀ e, 0 ≤ c e)
    (d : V → V → ℝ) (hd : ∀ i j, IsShortestPathLength G c i j (d i j)) :
    (∃ f : V → V, IsOddPerfectMatching G f) ∧
    (∀ f : V → V, IsOddPerfectMatching G f →
      ∃ x : E → ℕ, IsParitySolution G x ∧ (∀ e, x e ≤ 1) ∧
        cost c x ≤ matchingLength G d f) ∧
    (∀ x : E → ℕ, IsParitySolution G x →
      ∃ f : V → V, IsOddPerfectMatching G f ∧
        matchingLength G d f ≤ cost c x) := by sorry
end ChinesePostman.Matching
Source
Edmonds and Johnson, Matching, Euler tours and the Chinese postman, Math. Programming 5 (1973), pp. 92–93, §3, the 1-matching reduction, https://doi.org/10.1007/BF01580113
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